mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
Merge pull request #8324 from atm-maxime/fix_unit_replen
Fix unit in replenish #7225
This commit is contained in:
@@ -154,6 +154,8 @@ if ($action == 'order' && isset($_POST['valid']))
|
||||
$line->total_ttc = $line->total_ht + $line->total_tva;
|
||||
$line->remise_percent = $obj->remise_percent;
|
||||
$line->ref_fourn = $obj->ref_fourn;
|
||||
$line->type = $product->type;
|
||||
$line->fk_unit = $product->fk_unit;
|
||||
$suppliers[$obj->fk_soc]['lines'][] = $line;
|
||||
}
|
||||
}
|
||||
@@ -198,7 +200,13 @@ if ($action == 'order' && isset($_POST['valid']))
|
||||
$line->remise_percent,
|
||||
'HT',
|
||||
0,
|
||||
$line->info_bits
|
||||
$line->type,
|
||||
0,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
0,
|
||||
$line->fk_unit
|
||||
);
|
||||
}
|
||||
if ($result < 0) {
|
||||
|
||||
Reference in New Issue
Block a user