|
@@ -47,6 +47,7 @@ class Systemfout extends Start_Controller {
|
|
|
$this->load->_model("Model_customsdeclaration","customsdeclaration");
|
|
$this->load->_model("Model_customsdeclaration","customsdeclaration");
|
|
|
$this->load->_model("Model_check","check");
|
|
$this->load->_model("Model_check","check");
|
|
|
$this->load->_model("Model_logic_express","logic_express");
|
|
$this->load->_model("Model_logic_express","logic_express");
|
|
|
|
|
+ $this->load->_model('Model_outerrors','outerrors');
|
|
|
}
|
|
}
|
|
|
//定义方法的调用规则 获取URI第二段值
|
|
//定义方法的调用规则 获取URI第二段值
|
|
|
public function _remap($arg,$arg_array)
|
|
public function _remap($arg,$arg_array)
|
|
@@ -1030,6 +1031,12 @@ class Systemfout extends Start_Controller {
|
|
|
echo json_encode(array('msg'=>'该单共打印过'.$y['printnumber'].'次,请注意核对当前发货单是否是最新发货单!','outnumber'=>$y['id'],'post'=>$p,'fullorder_name'=>$fullorder_name,'success'=>false));exit;
|
|
echo json_encode(array('msg'=>'该单共打印过'.$y['printnumber'].'次,请注意核对当前发货单是否是最新发货单!','outnumber'=>$y['id'],'post'=>$p,'fullorder_name'=>$fullorder_name,'success'=>false));exit;
|
|
|
}
|
|
}
|
|
|
$this->$fullorder_name->save($post,$y['id']);
|
|
$this->$fullorder_name->save($post,$y['id']);
|
|
|
|
|
+
|
|
|
|
|
+ //检测单子是否是扫不出库单子重新出库 如果是 就更正
|
|
|
|
|
+ $outerrors_info = $this->outerrors->find("number = '".$y['number']."'");
|
|
|
|
|
+ if(!empty($outerrors_info)){
|
|
|
|
|
+ $this->outerrors->save(array('order_status'=>1,'library_time'=>$time),$outerrors_info['id']);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
//合并订单自动发货
|
|
//合并订单自动发货
|
|
|
$hb = $this->$fullorder_name->find_all("merge = '".$y['id']."' and id != '".$y['id']."'");
|
|
$hb = $this->$fullorder_name->find_all("merge = '".$y['id']."' and id != '".$y['id']."'");
|
|
@@ -1115,6 +1122,12 @@ class Systemfout extends Start_Controller {
|
|
|
$this->$bdck->save(array('state'=>1,'cktype'=>1,'orderinfo'=>$y['orderinfo'],'waybill'=>$y['waybill'],'outk'=>$post['librarytime'],'time'=>$post['librarytime']),$v['id']);
|
|
$this->$bdck->save(array('state'=>1,'cktype'=>1,'orderinfo'=>$y['orderinfo'],'waybill'=>$y['waybill'],'outk'=>$post['librarytime'],'time'=>$post['librarytime']),$v['id']);
|
|
|
}
|
|
}
|
|
|
$this->$fullorder_name->save($post,$y['id']);
|
|
$this->$fullorder_name->save($post,$y['id']);
|
|
|
|
|
+
|
|
|
|
|
+ //检测单子是否是扫不出库单子重新出库 如果是 就更正
|
|
|
|
|
+ $outerrors_info = $this->outerrors->find("number = '".$y['number']."'");
|
|
|
|
|
+ if(!empty($outerrors_info)){
|
|
|
|
|
+ $this->outerrors->save(array('order_status'=>1,'library_time'=>$post['librarytime']),$outerrors_info['id']);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
//需要添加上合并订单的订单信息更新
|
|
//需要添加上合并订单的订单信息更新
|
|
|
$hb = $this->$fullorder_name->find_all("merge = '".$y['id']."' and id != '".$y['id']."'");
|
|
$hb = $this->$fullorder_name->find_all("merge = '".$y['id']."' and id != '".$y['id']."'");
|