Skip to content

Refonte Trésorie > Devis - Ajout / Edition#2016

Open
vgreb wants to merge 2 commits intoafup:masterfrom
vgreb:refacto/accounting-quotation-add-edit
Open

Refonte Trésorie > Devis - Ajout / Edition#2016
vgreb wants to merge 2 commits intoafup:masterfrom
vgreb:refacto/accounting-quotation-add-edit

Conversation

@vgreb
Copy link
Copy Markdown
Collaborator

@vgreb vgreb commented Dec 9, 2025

J'ai un peu modifié la gestions des lignes de devis sur la page d'ajout/modification d'un devis. On peut maintenant rajouter une ligne au besoin.

Avant :
devis-avant

Après :
devis-après

La gestion des lignes est faite en javascript, pour pouvoir tester cel, j'ai dû rajouter la possibilité de faire des tests avec un vrai navigatuer. Les tests necessitant du javascript sont pilotés avec Behat via Panther sur le navigateur Chromium.

@vgreb vgreb self-assigned this Dec 9, 2025
@vgreb
Copy link
Copy Markdown
Collaborator Author

vgreb commented Dec 9, 2025

resolves #2002

@vgreb vgreb force-pushed the refacto/accounting-quotation-add-edit branch 6 times, most recently from 686683e to 15cc2a5 Compare December 16, 2025 20:40
@vgreb vgreb force-pushed the refacto/accounting-quotation-add-edit branch 8 times, most recently from 556dddb to 0034d1f Compare December 20, 2025 21:30
@vgreb vgreb marked this pull request as ready for review December 20, 2025 22:03
@vgreb vgreb requested review from Mopolo and stakovicz December 20, 2025 22:03
@vgreb vgreb force-pushed the refacto/accounting-quotation-add-edit branch from 0034d1f to eef10b5 Compare December 23, 2025 21:45
@vgreb vgreb force-pushed the refacto/accounting-quotation-add-edit branch from eef10b5 to 257149a Compare January 12, 2026 11:24
Copy link
Copy Markdown
Contributor

@stakovicz stakovicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gros boulot ! Bravo !
Il reste aussi des commentaires non résolus.

@vgreb vgreb force-pushed the refacto/accounting-quotation-add-edit branch 4 times, most recently from 9f239ee to 7e2ca90 Compare January 29, 2026 06:30
@vgreb
Copy link
Copy Markdown
Collaborator Author

vgreb commented Jan 29, 2026

@stakovicz @Mopolo j'ai implémenté une solution plus propre que le "wait Xs" dans les tests behat. Je retente l'assertion toutes les 100ms pendant un temps donné (cf. Afup\Tests\Behat\Bootstrap\WaitContext).

Copy link
Copy Markdown
Contributor

@Mopolo Mopolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est beaucoup mieux le wait que t'as fait là !

Faudra voir à l'usage si on besoin de setup du retry auto de ces tests.

Quelques remarques encore mais je trouve qu'on approche du merge :)

@vgreb vgreb force-pushed the refacto/accounting-quotation-add-edit branch 5 times, most recently from f9bffb4 to 0099025 Compare March 1, 2026 18:09
Copy link
Copy Markdown
Contributor

@Mopolo Mopolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

J'ai un soucis avec les anciens devis.

Pour reproduire :

  • checkout master
  • créer un devis avec une seule ligne
  • checkout cette PR
  • éditer le devis

Et là deux soucis :

  • si je ne modifie rien et que je tente d'enregistrer la validation html5 bloque à cause des 4 lignes vides
  • si je supprime les 4 lignes vides via le bouton, quand je tente d'enregistrer j'ai un message d'erreur en haut de la page après le refresh (L'écriture n'a pas pu être enregistrée) mais pas de détail sur ce qui coince

@vgreb vgreb force-pushed the refacto/accounting-quotation-add-edit branch 4 times, most recently from 4af6b12 to 94e821d Compare March 2, 2026 21:46
@vgreb
Copy link
Copy Markdown
Collaborator Author

vgreb commented Mar 2, 2026

J'ai un soucis avec les anciens devis.

Pour reproduire :

* checkout `master`

* créer un devis avec une seule ligne

* checkout cette PR

* éditer le devis

Et là deux soucis :

* si je ne modifie rien et que je tente d'enregistrer la validation html5 bloque à cause des 4 lignes vides

* si je supprime les 4 lignes vides via le bouton, quand je tente d'enregistrer j'ai un message d'erreur en haut de la page après le refresh (`L'écriture n'a pas pu être enregistrée`) mais pas de détail sur ce qui coince

@Mopolo J'ai rajouté une méthode qui supprime les lignes "vides" de devis lorsqu'on edite un devis créé avant le merge de la refonte.
J'ai aussi fais une modification sur la gestion legacy des factures.

@vgreb
Copy link
Copy Markdown
Collaborator Author

vgreb commented Mar 2, 2026

closes #2002

@vgreb vgreb requested a review from Mopolo March 4, 2026 14:34
@vgreb vgreb force-pushed the refacto/accounting-quotation-add-edit branch from 94e821d to e9a3903 Compare March 16, 2026 18:52
@vgreb vgreb requested a review from agallou as a code owner March 16, 2026 18:52
@vgreb vgreb force-pushed the refacto/accounting-quotation-add-edit branch 3 times, most recently from 4f049af to af3718a Compare March 24, 2026 23:43
@vgreb
Copy link
Copy Markdown
Collaborator Author

vgreb commented Mar 25, 2026

Aller @Mopolo cette fois c'est la bonne 😅 !
J'ai rajouté un test pour valider la duplication d'un devis dans le scenario behat

Copy link
Copy Markdown
Contributor

@Mopolo Mopolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quelques dernières remarques, pour moi c'est presque bon pour merge.

J'ai refais des tests en local et ça fonctionne bien.

@vgreb vgreb force-pushed the refacto/accounting-quotation-add-edit branch 4 times, most recently from dba06db to 1778b91 Compare April 2, 2026 11:47
@vgreb vgreb force-pushed the refacto/accounting-quotation-add-edit branch from 1778b91 to 0991656 Compare April 2, 2026 11:58
@vgreb vgreb requested a review from Mopolo April 2, 2026 12:00
Copy link
Copy Markdown
Contributor

@Mopolo Mopolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testé en local et tout roule.

Merci pour cet énorme boulot 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants