rank duplicate on mass action
#### rank duplicate on mass action invoice from multiple orders we have to define the max rank for each line which makes it possible not to have a duplicate on the rank field in the case of several order massaction request.
This commit is contained in:
parent
591f297399
commit
5dabcec767
@ -791,7 +791,10 @@ if ($massaction == 'confirm_createbills') { // Create bills from orders.
|
||||
'HT',
|
||||
0,
|
||||
$product_type,
|
||||
$lines[$i]->rang,
|
||||
|
||||
//we have define the max rank for each line which makes it possible not to have a duplicate on the rank field in the case of several orders
|
||||
//-1 will give us the right number
|
||||
-1, // rank
|
||||
$lines[$i]->special_code,
|
||||
$objecttmp->origin,
|
||||
$lines[$i]->rowid,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user