This commit is contained in:
@@ -904,7 +904,7 @@ func validateRequestedRefundAmountByOrder(requestedRefundAmount int64, order *mo
|
||||
|
||||
// validateApprovedRefundAmount 校验审批退款金额不能超过申请金额和订单实收金额。
|
||||
func validateApprovedRefundAmount(approvedAmount int64, requestedRefundAmount int64, order *model.Order) error {
|
||||
if approvedAmount > 0 {
|
||||
if approvedAmount < 0 {
|
||||
return errors.New(errors.CodeInvalidParam, "审批退款金额必须大于0")
|
||||
}
|
||||
if approvedAmount > requestedRefundAmount {
|
||||
|
||||
Reference in New Issue
Block a user