fix context for createfromclone
This commit is contained in:
parent
288c58e533
commit
ebada46a07
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user