|
@@ -732,6 +732,7 @@ class Specialstock extends Start_Controller {
|
|
$sku = $this->input->post('sku');
|
|
$sku = $this->input->post('sku');
|
|
$title = $this->input->post('title');
|
|
$title = $this->input->post('title');
|
|
$warehouse = $this->input->post('warehouse',true);
|
|
$warehouse = $this->input->post('warehouse',true);
|
|
|
|
+ $hairnumber = $this->input->post('hairnumber',true);
|
|
$usa = $this->input->post('usa',true);
|
|
$usa = $this->input->post('usa',true);
|
|
$purchase = $this->input->post('purchase',true);
|
|
$purchase = $this->input->post('purchase',true);
|
|
$lacetype = $this->input->post('lacetype',true);
|
|
$lacetype = $this->input->post('lacetype',true);
|
|
@@ -801,6 +802,19 @@ class Specialstock extends Start_Controller {
|
|
$where .= " and state = '$state'";
|
|
$where .= " and state = '$state'";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if (!empty($hairnumber)) {
|
|
|
|
+ $where .= " and features like '%-128-%' ";
|
|
|
|
+ if ($hairnumber < 0) {
|
|
|
|
+ $class_list = $this->typeclass->find_all('classid = 43');
|
|
|
|
+ foreach ($class_list as $v) {
|
|
|
|
+ $where .= " and features not like '%-" . $v['id'] . "-%'";
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ $where .= " and features like '%-$hairnumber-%'";
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
if($ktime && $jtime)
|
|
if($ktime && $jtime)
|
|
{
|
|
{
|
|
$gj = " and enter > '$ktime' and enter < '$jtime'";
|
|
$gj = " and enter > '$ktime' and enter < '$jtime'";
|