Update actions_massactions.inc.php

This commit is contained in:
Laurent Destailleur 2022-07-07 20:57:29 +02:00 committed by GitHub
parent ea52403339
commit 5afe1dbb84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -641,7 +641,9 @@ if ($massaction == 'confirm_createbills') { // Create bills from orders.
$lastref = '';
$db->begin();
$nbOrders = is_array($orders) ? count($orders) : 1;
$nbOrders = is_array($orders) ? count($orders) : 1;
foreach ($orders as $id_order) {
$cmd = new Commande($db);
if ($cmd->fetch($id_order) <= 0) {