|
@ -232,7 +232,7 @@ public class PurchasereturnRequestMainServiceImpl implements PurchasereturnReque |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private void ifDetailQtyBigThanQty(BigDecimal detailQty, BigDecimal qty) { |
|
|
private void ifDetailQtyBigThanQty(BigDecimal detailQty, BigDecimal qty) { |
|
|
if (detailQty.compareTo(qty) < 0) { |
|
|
if (detailQty.compareTo(qty) > 0) { |
|
|
throw exception(QTY_EXCEPTION, "退货数量" + qty + "不能大于收货数量" + detailQty); |
|
|
throw exception(QTY_EXCEPTION, "退货数量" + qty + "不能大于收货数量" + detailQty); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|