Skip to content

Commit 77c471b

Browse files
committed
Retour PR
1 parent 10c4fc0 commit 77c471b

2 files changed

Lines changed: 0 additions & 7 deletions

File tree

sources/AppBundle/Controller/Admin/Accounting/Invoice/EditInvoiceAction.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff 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
}

tests/behat/features/Admin/Tresorerie/DevisFactures.feature

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)