Merge pull request #8590 from atm-greg/FIX_supplier_invoice_line_rank

Rank of invoice_supplier lines was always -1
This commit is contained in:
Laurent Destailleur 2018-04-13 23:20:42 +02:00 committed by GitHub
commit ecdb56606d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -983,6 +983,8 @@ if (empty($reshook))
$type = $productsupplier->type;
$price_base_type = 'HT';
$rang = $object->line_max() +1;
// TODO Save the product supplier ref into database (like done for supplier propal and order) into field ref_supplier (must rename field ref into ref_supplier first)
$result=$object->addline(
$desc,
@ -999,7 +1001,7 @@ if (empty($reshook))
$tva_npr,
$price_base_type,
$type,
-1,
$rang,
0,
$array_options,
$productsupplier->fk_unit