This commit is contained in:
2025-07-06 08:39:16 +00:00
parent 9a455c1f2d
commit e4e7df6522
21 changed files with 990 additions and 587 deletions

View File

@@ -628,7 +628,7 @@ class EcmProduct extends SugarBean
{
$db = $GLOBALS['db'];
$res = $db->query("
SELECT p.code, pc.quantity
SELECT p.code, pc.quantity, p.id
FROM ecmproductcomponents AS pc
INNER JOIN ecmproducts AS p
ON p.id = pc.ecmproduct_id
@@ -639,6 +639,7 @@ WHERE ecmcomponent_id='$this->id';
$products[] = array(
'code' => $row['code'],
'quantity' => $row['quantity'],
'id' => $row['id'],
);
}
return $products;