Merge branch 'NEW/develop_objets_referents_lots' of github.com:atm-gauthier/dolibarr into NEW/develop_objets_referents_lots

This commit is contained in:
Gauthier PC portable 024 2023-02-17 10:28:09 +01:00
commit 13a3075ffb
5 changed files with 158 additions and 163 deletions

View File

@ -699,7 +699,6 @@ function show_stats_for_batch($batch, $socid)
} }
if (isModEnabled("reception") && !empty($user->rights->reception->lire)) { if (isModEnabled("reception") && !empty($user->rights->reception->lire)) {
$nblines++; $nblines++;
$ret = $batch->loadStatsReception($socid); $ret = $batch->loadStatsReception($socid);
if ($ret < 0) { if ($ret < 0) {
@ -716,9 +715,7 @@ function show_stats_for_batch($batch, $socid)
print $batch->stats_reception['qty']; print $batch->stats_reception['qty'];
print '</td>'; print '</td>';
print '</tr>'; print '</tr>';
} elseif (isModEnabled('supplier_order') && !empty($user->rights->fournisseur->commande->lire)) { } elseif (isModEnabled('supplier_order') && !empty($user->rights->fournisseur->commande->lire)) {
$nblines++; $nblines++;
$ret = $batch->loadStatsSupplierOrder($socid); $ret = $batch->loadStatsSupplierOrder($socid);
if ($ret < 0) { if ($ret < 0) {
@ -735,7 +732,6 @@ function show_stats_for_batch($batch, $socid)
print $batch->stats_supplier_order['qty']; print $batch->stats_supplier_order['qty'];
print '</td>'; print '</td>';
print '</tr>'; print '</tr>';
} }
if (isModEnabled('mrp') && !empty($user->rights->mrp->read)) { if (isModEnabled('mrp') && !empty($user->rights->mrp->read)) {
@ -776,7 +772,6 @@ function show_stats_for_batch($batch, $socid)
return $nblines++; return $nblines++;
} }
/** /**