|
@@ -1112,7 +1112,12 @@ class Whlabel extends Start_Controller
|
|
|
$rows[$key]['cpbz'] = $u9_info['bm'];
|
|
$rows[$key]['cpbz'] = $u9_info['bm'];
|
|
|
|
|
|
|
|
$rows[$key]['cs'] = $u9_info['jm'];
|
|
$rows[$key]['cs'] = $u9_info['jm'];
|
|
|
- $sd = $this->whlabel->find_all($where . ' and sku = "' . $value['sku'] . '" and warehouse = "' . $value['warehouse'] . '" and features = "' . $value['features'] . '"', 'details,cpid,cpbz,state');
|
|
|
|
|
|
|
+ if(empty($value['details'])){
|
|
|
|
|
+ $sd = $this->whlabel->find_all($where . ' and sku = "' . $value['sku'] . '" and warehouse = "' . $value['warehouse'] . '" and features = "' . $value['features'] . '"', 'details,cpid,cpbz,state');
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $sd = $this->whlabel->find_all($where . ' and sku = "' . $value['sku'] . '" and warehouse = "' . $value['warehouse'] . '" and features = "' . $value['features'] . '" and details = "' . $value['details'] . '"', 'details,cpid,cpbz,state');
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
$details = array();
|
|
$details = array();
|
|
|
$cpid = array();
|
|
$cpid = array();
|
|
|
$cpbz = array();
|
|
$cpbz = array();
|