cmd
This commit is contained in:
parent
417c62ce37
commit
a45046c5f0
|
|
@ -196,10 +196,10 @@ class Aftersale extends Backend
|
||||||
$params['refund_amount'] = bcadd($params['company_refund_amount'],$params['worker_refund_amount'],2);
|
$params['refund_amount'] = bcadd($params['company_refund_amount'],$params['worker_refund_amount'],2);
|
||||||
|
|
||||||
if(empty($params['company_refund_time'])){
|
if(empty($params['company_refund_time'])){
|
||||||
unset($params['company_refund_time']);
|
$params['company_refund_time'] = date('Y-m-d H:i:s');
|
||||||
}
|
}
|
||||||
if(empty($params['worker_refund_time'])){
|
if(empty($params['worker_refund_time'])){
|
||||||
unset($params['worker_refund_time']);
|
$params['worker_refund_time'] = date('Y-m-d H:i:s');
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = $row->allowField(true)->save($params);
|
$result = $row->allowField(true)->save($params);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user