production scheduler fix

This commit is contained in:
2025-04-02 15:24:40 +00:00
parent a879b73ea6
commit 8095cfe88a
11 changed files with 398 additions and 419 deletions

View File

@@ -316,8 +316,8 @@ class EcmProduct extends SugarBean {
$this->url9 = '<a href="'.$this->url9.'" target="_blank"/>'.$this->url9.'</a>';
}
$r = $GLOBALS['db']->fetchByAssoc($GLOBALS['db']->query("SELECT SUM(quantity) as qty FROM ecmstockstates WHERE product_id='".$this->id."'"));
$this->ems_qty_in_stock = $r['qty'];
//$r = $GLOBALS['db']->fetchByAssoc($GLOBALS['db']->query("SELECT SUM(quantity) as qty FROM ecmstockstates WHERE product_id='".$this->id."'"));
//$this->ems_qty_in_stock = $r['qty'];
}
function getSale($date){
foreach($date as $d){