|
@@ -1002,6 +1002,40 @@ class Warehouse extends Start_Controller {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+ //抽绳款 和非抽绳款的相互提醒 针对头套
|
|
|
|
|
+ if(stripos($cp,'-128-') !== false){
|
|
|
|
|
+ $cc1 = explode('-',trim($cc[1],'-'));
|
|
|
|
|
+ $newcp = '-';
|
|
|
|
|
+ foreach ($cc1 as $kk=>$vv)
|
|
|
|
|
+ {
|
|
|
|
|
+ if($kk == 1)
|
|
|
|
|
+ {
|
|
|
|
|
+ $newcp .= $vv.'-'.$cc[0].'-';
|
|
|
|
|
+ }
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ $newcp .= $vv.'-';
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ //如果是抽绳款 可以找下非抽绳的库存
|
|
|
|
|
+ if(stripos($cp,'-2661-') !== false){
|
|
|
|
|
+ $gpp = str_replace('-2661-','-',$newcp);
|
|
|
|
|
+ $ccxh = $this->whlabel->find_count("state = '0' and features = '$gpp' and warehouse = '".$v['id']."' and zd = '' and (shop IS NULL or shop = '' or shop like '%,".$shop.",%')");//通用
|
|
|
|
|
+ if($ccxh >= $num[1])
|
|
|
|
|
+ {
|
|
|
|
|
+ $hdtx .= $v['title'].' - 非抽绳有货;';
|
|
|
|
|
+ }
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $gpp = $newcp."2661-";
|
|
|
|
|
+ $ccxh = $this->whlabel->find_count("state = '0' and features = '$gpp' and warehouse = '".$v['id']."' and zd = '' and (shop IS NULL or shop = '' or shop like '%,".$shop.",%')");//通用
|
|
|
|
|
+ if($ccxh >= $num[1])
|
|
|
|
|
+ {
|
|
|
|
|
+ $hdtx .= $v['title'].' - 抽绳有货;';
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
if(stripos($cp,'-935-') !== false || stripos($cp,'-854-') !== false)//#P4/27/613 #P4/613
|
|
if(stripos($cp,'-935-') !== false || stripos($cp,'-854-') !== false)//#P4/27/613 #P4/613
|