|
@@ -829,6 +829,8 @@ class Whlabeltransport extends Start_Controller {
|
|
|
$this->whlabeltransport->save(array('time'=>$time,'cz'=>1),$data['id']);
|
|
$this->whlabeltransport->save(array('time'=>$time,'cz'=>1),$data['id']);
|
|
|
if ($this->db->trans_status() === TRUE)
|
|
if ($this->db->trans_status() === TRUE)
|
|
|
{
|
|
{
|
|
|
|
|
+ $this->db->trans_commit();
|
|
|
|
|
+ $i++;
|
|
|
$num = $this->whlabeltransport->find_count("order_no = '".$data['order_no']."' and cz = 0");
|
|
$num = $this->whlabeltransport->find_count("order_no = '".$data['order_no']."' and cz = 0");
|
|
|
if($num == 0){
|
|
if($num == 0){
|
|
|
if(!empty($data['order_no'])){
|
|
if(!empty($data['order_no'])){
|
|
@@ -843,8 +845,6 @@ class Whlabeltransport extends Start_Controller {
|
|
|
]);
|
|
]);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- $this->db->trans_commit();
|
|
|
|
|
- $i++;
|
|
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|