FIX: Special code is now transmitted by args only in order supplier (#28619)
Co-authored-by: Noé <noe@scopen.fr>
This commit is contained in:
parent
f166f15f7d
commit
55c0efae3f
1 changed files with 3 additions and 3 deletions
|
|
@ -1344,8 +1344,6 @@ if (empty($reshook)) {
|
|||
$tva_tx = get_default_tva($soc, $mysoc, $lines[$i]->fk_product, $product_fourn_price_id);
|
||||
}
|
||||
|
||||
$object->special_code = $lines[$i]->special_code;
|
||||
|
||||
$result = $object->addline(
|
||||
$desc,
|
||||
$lines[$i]->subprice,
|
||||
|
|
@ -1368,7 +1366,9 @@ if (empty($reshook)) {
|
|||
$lines[$i]->fk_unit,
|
||||
0,
|
||||
$element,
|
||||
!empty($lines[$i]->id) ? $lines[$i]->id : $lines[$i]->rowid
|
||||
!empty($lines[$i]->id) ? $lines[$i]->id : $lines[$i]->rowid,
|
||||
-1,
|
||||
$lines[$i]->special_code
|
||||
);
|
||||
|
||||
if ($result < 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue