调整售后修改数量
parent
391e4082a6
commit
7ac3de3449
|
|
@ -60,8 +60,8 @@ class AfterSaleVerify extends Form implements LazyRenderable
|
|||
throw new BizException('退款金额不能大于商品实付金额');
|
||||
}
|
||||
}
|
||||
$num = (int) Arr::get($input, 'num', 0) ?: $afterSale->num ;
|
||||
if($num > $afterSale->num){
|
||||
$num = (int) Arr::get($input, 'num', 0) ?: $afterSale->num;
|
||||
if ($num > $afterSale->orderProduct->quantity) {
|
||||
throw new BizException('调整数量不能大于下单数量');
|
||||
}
|
||||
$afterSaleService->verify($afterSale, $input['remarks3'], (int) Arr::get($input, 'amount', 0), $num);
|
||||
|
|
|
|||
Loading…
Reference in New Issue