edit-admin-cancel_item
This commit is contained in:
@@ -331,7 +331,7 @@ class Settle extends HD_Controller
|
||||
if($params['month']){
|
||||
$where['month'] = $params['month'];
|
||||
}elseif(!isset($params['month'])){
|
||||
$where['month'] = $params['month'] = intval(date('m'));
|
||||
$where['month'] = $params['month'] = intval(date('m',strtotime("-1 month")));
|
||||
}
|
||||
if($params['id']){
|
||||
$where['biz_id'] = $params['id'];
|
||||
@@ -410,7 +410,7 @@ class Settle extends HD_Controller
|
||||
'manager_wage' => $biz_info['manager_wage'],
|
||||
'commission' => $biz_info['commission']*$car_total,
|
||||
];
|
||||
$employee_wage = $biz_info['num'] ? ceil($car_total/$biz['num']) : 0;
|
||||
$employee_wage = $biz_info['num'] ? ceil($car_total/$biz_info['num']) : 0;
|
||||
$update['employee_wage'] = $employee_wage;
|
||||
|
||||
$settle_rows = $this->biz_settle_model->select(['stic_id'=>$row['id']],'id asc',0,0,'id,o_id');
|
||||
|
||||
@@ -491,9 +491,9 @@ class Orders extends HD_Controller
|
||||
}
|
||||
if (!$item_id) return $this->show_json(SYS_CODE_FAIL, '请选择车辆!');
|
||||
|
||||
if ($this->receiver_order_status_model->get(['o_id'=>$id,'pid_status'=>3,'status'=>1])) {
|
||||
return $this->show_json(SYS_CODE_FAIL, '已开票,不能修改!');
|
||||
}
|
||||
// if ($this->receiver_order_status_model->get(['o_id'=>$id,'pid_status'=>3,'status'=>1])) {
|
||||
// return $this->show_json(SYS_CODE_FAIL, '已开票,不能修改!');
|
||||
// }
|
||||
$res = $this->receiver_orders_v2_model->update(['item_id' => $item_id], ['id' => $id]);
|
||||
if (!$res) {
|
||||
return $this->show_json(SYS_CODE_FAIL, '保存失败');
|
||||
|
||||
Reference in New Issue
Block a user