Fix line ordering during situation or replacement invoice creation (#37613)
This commit is contained in:
parent
5da56bd12c
commit
9a9b7ef491
1 changed files with 3 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue