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:
boudet jean pascal 2022-07-04 17:17:55 +02:00 committed by GitHub
parent 591f297399
commit 5dabcec767
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,