mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-19 23:33:16 +01:00
Fix order line origin/origin_id when creating from proposal
This commit is contained in:
@@ -1325,6 +1325,9 @@ class Commande extends CommonOrder
|
||||
$line->marge_tx = $marginInfos[1];
|
||||
$line->marque_tx = $marginInfos[2];
|
||||
|
||||
$line->origin = $object->element;
|
||||
$line->origin_id = $object->lines[$i]->id;
|
||||
|
||||
// get extrafields from original line
|
||||
$object->lines[$i]->fetch_optionals();
|
||||
foreach ($object->lines[$i]->array_options as $options_key => $value) {
|
||||
|
||||
Reference in New Issue
Block a user