Debug v16

This commit is contained in:
Laurent Destailleur 2022-06-01 19:45:46 +02:00
parent 11ede876bb
commit 704266445c
2 changed files with 3 additions and 3 deletions

View File

@ -272,8 +272,8 @@ QtyWasAddedToTheScannedBarcode=Success !! The quantity was added to all the requ
StockChangeDisabled=Change on stock disabled
NoWarehouseDefinedForTerminal=No warehouse defined for terminal
ClearQtys=Clear all quantities
ModuleStockTransferName=Stocks Transfer
ModuleStockTransferDesc=Creation of stocks transfer objects, with generation of transfer sheet
ModuleStockTransferName=Advanced Stock Transfer
ModuleStockTransferDesc=Advanced management of Stock Transfer, with generation of transfer sheet
StockTransferNew=New stocks transfer
StockTransferList=Stocks transfers list
ConfirmValidateStockTransfer=Are you sure you want to validate this stocks transfer with reference <STRONG>%s</STRONG> ?

View File

@ -199,7 +199,7 @@ if ($id > 0 || !empty($ref)) {
$sql .= " INNER JOIN ".MAIN_DB_PREFIX."bom_bomline as bl ON bl.fk_bom=b.rowid";
$sql .= " WHERE b.entity IN (".getEntity('bom').")";
$sql .= " AND bl.fk_product = ".((int) $product->id);
$sql .= " GROUP BY b.rowid, b.ref, b.date_valid, b.status";
$sql .= " GROUP BY b.rowid, b.ref, b.status, b.date_valid, b.fk_product";
$sql .= $db->order($sortfield, $sortorder);
// Count total nb of records