lvhao преди 2 месеца
родител
ревизия
f27ccbd420
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      core/CoreApp/controllers/Systemprint.php

+ 3 - 0
core/CoreApp/controllers/Systemprint.php

@@ -1647,6 +1647,9 @@ class Systemprint extends Start_Controller {
 						$this->$fullorder_name->save(array('print'=>1,'failed'=>$failed),$va[$n]);
 						$this->$fullorder_name->save(array('print'=>1,'failed'=>$failed),$va[$n]);
 					}
 					}
 				}elseif(($fullorder['printcode'] == "3PE_XB")){
 				}elseif(($fullorder['printcode'] == "3PE_XB")){
+					if($fullorder['waybillid'] != ''){
+						$this->itsxb->cancel_order($fullorder['number']);
+					}
 					$barcode = $this->itsxb->get_data($fullorder);
 					$barcode = $this->itsxb->get_data($fullorder);
 					if($barcode['x'] == 1)
 					if($barcode['x'] == 1)
 					{
 					{