添加后台验证售后调整数量
parent
c1038c1e59
commit
391e4082a6
|
|
@ -60,7 +60,11 @@ class AfterSaleVerify extends Form implements LazyRenderable
|
|||
throw new BizException('退款金额不能大于商品实付金额');
|
||||
}
|
||||
}
|
||||
$afterSaleService->verify($afterSale, $input['remarks3'], (int) Arr::get($input, 'amount', 0), (int) Arr::get($input, 'num', 0) ?: $afterSale->num);
|
||||
$num = (int) Arr::get($input, 'num', 0) ?: $afterSale->num ;
|
||||
if($num > $afterSale->num){
|
||||
throw new BizException('调整数量不能大于下单数量');
|
||||
}
|
||||
$afterSaleService->verify($afterSale, $input['remarks3'], (int) Arr::get($input, 'amount', 0), $num);
|
||||
} elseif ($input['state'] == 1) {//需要补充资料
|
||||
$afterSaleService->backApply($afterSale, $input['remarks1']);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue