|
@@ -679,33 +679,36 @@ class Warehouse extends Start_Controller {
|
|
// 180%货的,200、250如果有货,给提醒
|
|
// 180%货的,200、250如果有货,给提醒
|
|
if(stripos($cp,'-72-') !== false) //13*4 HD13*4
|
|
if(stripos($cp,'-72-') !== false) //13*4 HD13*4
|
|
{
|
|
{
|
|
- $cc1 = explode('-',trim($cc[1],'-'));
|
|
|
|
- $newcp = '-';
|
|
|
|
- foreach ($cc1 as $kk=>$vv)
|
|
|
|
- {
|
|
|
|
- if($kk == 1)
|
|
|
|
- {
|
|
|
|
- $newcp .= $vv.'-'.$cc[0].'-';
|
|
|
|
- }
|
|
|
|
- else
|
|
|
|
- {
|
|
|
|
- $newcp .= $vv.'-';
|
|
|
|
|
|
+ if(isset($cc[1])){
|
|
|
|
+ $cc1 = explode('-',trim($cc[1],'-'));
|
|
|
|
+ $newcp = '-';
|
|
|
|
+ foreach ($cc1 as $kk=>$vv)
|
|
|
|
+ {
|
|
|
|
+ if($kk == 1)
|
|
|
|
+ {
|
|
|
|
+ $newcp .= $vv.'-'.$cc[0].'-';
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ $newcp .= $vv.'-';
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
- $gpp = str_replace('-72-','-73-',$newcp);
|
|
|
|
|
|
+ $gpp = str_replace('-72-','-73-',$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.",%')");//通用
|
|
$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])
|
|
if($ccxh >= $num[1])
|
|
- {
|
|
|
|
- $hdtx .= $v['title'].' - 200%密度有货;';
|
|
|
|
- }
|
|
|
|
|
|
+ {
|
|
|
|
+ $hdtx .= $v['title'].' - 200%密度有货;';
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
$gpp2 = str_replace('-72-','-74-',$newcp);
|
|
$gpp2 = str_replace('-72-','-74-',$newcp);
|
|
$ccxh = $this->whlabel->find_count("state = '0' and features = '$gpp2' and warehouse = '".$v['id']."' and zd = '' and (shop IS NULL or shop = '' or shop like '%,".$shop.",%')");//通用
|
|
$ccxh = $this->whlabel->find_count("state = '0' and features = '$gpp2' and warehouse = '".$v['id']."' and zd = '' and (shop IS NULL or shop = '' or shop like '%,".$shop.",%')");//通用
|
|
if($ccxh >= $num[1])
|
|
if($ccxh >= $num[1])
|
|
- {
|
|
|
|
- $hdtx .= $v['title'].' - 250%密度有货;';
|
|
|
|
- }
|
|
|
|
|
|
+ {
|
|
|
|
+ $hdtx .= $v['title'].' - 250%密度有货;';
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|