Fix line ordering during situation or replacement invoice creation (#37613)

This commit is contained in:
atm-jonathan 2026-03-26 02:18:21 +01:00 committed by Laurent Destailleur
parent 5da56bd12c
commit 9a9b7ef491

View file

@ -1166,6 +1166,9 @@ class Facture extends CommonInvoice
// Source invoice load
$facture = new Facture($this->db);
// Avoid updating the row ranks
$facture->context['createfromclone'] = 1;
// Retrieve all extrafield
// fetch optionals attributes and labels
$this->fetch_optionals();