Skip to content

Commit 4aeb989

Browse files
committed
Retour PR
1 parent 10c4fc0 commit 4aeb989

3 files changed

Lines changed: 1 addition & 7 deletions

File tree

sources/AppBundle/Accounting/Form/InvoiceType.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
118118
'keep_as_list' => true,
119119
'allow_add' => false,
120120
'allow_delete' => false,
121+
'entry_options' => ['disabled' => true],
121122
])->add('quotationNumber', TextType::class, [
122123
'label' => 'Numéro de devis',
123124
'required' => false,

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)