forked from Wavyzz/dolibarr
FIX wrong origin
This commit is contained in:
@@ -1014,7 +1014,7 @@ class Commande extends CommonOrder
|
||||
// Complete vat rate with code
|
||||
$vatrate = $line->tva_tx;
|
||||
if ($line->vat_src_code && !preg_match('/\(.*\)/', $vatrate)) $vatrate .= ' ('.$line->vat_src_code.')';
|
||||
|
||||
$origin = !empty($line->origin) ? $line->origin : $this->element;
|
||||
$result = $this->addline(
|
||||
$line->desc,
|
||||
$line->subprice,
|
||||
@@ -1039,7 +1039,7 @@ class Commande extends CommonOrder
|
||||
$line->label,
|
||||
$line->array_options,
|
||||
$line->fk_unit,
|
||||
$this->element,
|
||||
$origin,
|
||||
$line->id
|
||||
);
|
||||
if ($result < 0)
|
||||
|
||||
Reference in New Issue
Block a user