File tree Expand file tree Collapse file tree
sources/AppBundle/Controller/Admin/Accounting/Invoice
tests/behat/features/Admin/Tresorerie Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,12 +32,6 @@ public function __invoke(Request $request): Response
3232 if ($ form ->isSubmitted () && $ form ->isValid ()) {
3333 try {
3434 $ this ->invoicingRepository ->startTransaction ();
35- $ keepIds = array_filter (array_map (fn ($ d ) => $ d ->getId (), $ invoice ->getDetails ()));
36- $ existingIds = $ this ->invoicingDetailRepository ->getRowsIdsPerInvoicingId ($ invoiceId );
37- $ toDelete = array_diff ($ existingIds , $ keepIds );
38- if ($ toDelete !== []) {
39- $ this ->invoicingDetailRepository ->removeRowsPerIds ($ toDelete );
40- }
4135 foreach ($ invoice ->getDetails () as $ detail ) {
4236 $ this ->invoicingDetailRepository ->save ($ detail );
4337 }
Original file line number Diff line number Diff line change @@ -117,7 +117,6 @@ Feature: Administration - Trésorerie - Devis/Facture
117117 And I should see a yellow label "En attente"
118118 # Modification de la facture
119119 When I follow the button of tooltip "Modifier la ligne ESN dev en folie" and wait until I see "Modifier une facture"
120- And I should see "Modifier une facture"
121120 Then I fill in "invoice[city]" with "Paris Cedex 7"
122121 And I select "1" from "invoice[paymentStatus]"
123122 And I fill in "invoice[paymentDate]" with "2026-12-31"
You can’t perform that action at this time.
0 commit comments