fix context for createfromclone

This commit is contained in:
Christophe Battarel 2022-02-15 12:14:48 +01:00
parent 288c58e533
commit ebada46a07

View File

@ -755,6 +755,9 @@ class Facture extends CommonInvoice
foreach ($this->lines as $i => $val) foreach ($this->lines as $i => $val)
{ {
$newinvoiceline = $this->lines[$i]; $newinvoiceline = $this->lines[$i];
$newinvoiceline->context = $this->context;
$newinvoiceline->fk_facture = $this->id; $newinvoiceline->fk_facture = $this->id;
$newinvoiceline->origin = $this->lines[$i]->element; $newinvoiceline->origin = $this->lines[$i]->element;