-
Notifications
You must be signed in to change notification settings - Fork 71
Refonte - Trésorerie - Journal - Export #2077
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
4f0ac3b to
34bbce0
Compare
34bbce0 to
d18ddfa
Compare
|
ℹ️ On s'en sert beaucoup à la tréso donc je vais faire un test avec des données de prod. |
789ba90 to
4d4d104
Compare
sources/AppBundle/Controller/Admin/Accounting/Journal/ExportAction.php
Outdated
Show resolved
Hide resolved
de24339 to
62406e2
Compare
| @@ -0,0 +1,3 @@ | |||
| Date;Compte;Événement;Catégorie;Description;Débit;Crédit;Règlement;Commentaire;Justificatif;"Nom justificatif";"Montant HT";TVA;"Montant HT non soumis à TVA";"Montant HT soumis à TVA 5,5";"TVA 5,5";"Montant HT soumis à TVA 10";"TVA 10";"Montant HT soumis à TVA 20";"TVA 20";"Zone de TVA" | |||
| 2026-01-01;"Compte courant";AG;"A déterminer";"Description dépense 001";-12001.00;;;;Non;;0.00;0.000;;;;;;;;"Non définie" | |||
| 2026-01-02;"Compte courant";AG;"A déterminer";"Description recette 001";;12002.00;;;Non;;0.00;0.000;;;;;;;;"Non définie" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
J'ai fait une comparaison d'un export de prod et avec ta branche sur les mêmes données et y'a quelques différences qui pourraient avoir de l'impact :
- colonnes Débit et Crédit qui changent de format de décimale :
-0,26=>-0.26 - colonnes Débit et Crédit qui avaient un espace insécable pour les milliers :
-4 872,00=>-4872.00(et pas juste un espace simple) - certains montants float perdent en précision :
1.50=>1.5 - certains montants in perdent en précision :
125.00=>125
Je ne sais pas si le cabinet comptable a besoin de ces formats exacts mais dans le doute faudrait les garder je pense.
Ce serait bien d'ajouter une ligne dans ce fichier de test avec toutes les colonnes renseignées, comme ça on se sécurise l'export au max.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
certains montants float perdent en précision : 1.50 => 1.5
certains montants in perdent en précision : 125.00 => 125
Ces montants correspondent à quelles colonnes ?
| $value = $this->minkContext->getSession()->getPage()->getContent(); | ||
|
|
||
| if ($expected !== $value) { | ||
| if (trim($expected) !== trim($value)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
S'il y a besoin de ça, est-ce que ce serait pas un signe que les fichiers ne sont pas tout à fait exacts ?
Y'a un saut de ligne en plus quelque part peut-être ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fputcsv rajoute un saut de ligne à chaque ligne, ce qui n'est pas le cas de SplFileObject::fputcsv
62406e2 to
f06311d
Compare
f06311d to
3da0b77
Compare
fix #2074