|
@@ -145,6 +145,7 @@ class Model_ck extends Lin_Model
|
|
if($wh+$shopwh < $num[1] || (isset($num[2]) && $num[2] == "DNOTO" && $warehouse['zdms'] == 2))
|
|
if($wh+$shopwh < $num[1] || (isset($num[2]) && $num[2] == "DNOTO" && $warehouse['zdms'] == 2))
|
|
{
|
|
{
|
|
$this->logic_ding->sendToDing("库存验证数据【".$number."】".json_encode($num)."库存数量:".($wh+$shopwh)."仓库的占单模式".$warehouse['zdms']);
|
|
$this->logic_ding->sendToDing("库存验证数据【".$number."】".json_encode($num)."库存数量:".($wh+$shopwh)."仓库的占单模式".$warehouse['zdms']);
|
|
|
|
+ $this->logic_ding->sendToDing("库存验证数据【".$number."】"."state = '0' and number = '$num[0]' and warehouse = '".$warehouse['id']."' and (zd = '$number' or zd = '') and (shop IS NULL or shop = '')");
|
|
$save[] = $x-1;continue;//提前先加X不然出错,所以要减1
|
|
$save[] = $x-1;continue;//提前先加X不然出错,所以要减1
|
|
}
|
|
}
|
|
}
|
|
}
|