fix:修改物料添加单位限制

main
HuangHuiKang 2 weeks ago
parent 9833e82771
commit adf8208fa0

@ -361,9 +361,9 @@ public class ErpProductServiceImpl implements ErpProductService {
if (productUnitService.getProductUnit(purchaseUnitId) == null) {
throw exception(PRODUCT_UNIT_NOT_EXISTS);
}
if (unitId.equals(purchaseUnitId)) {
throw exception(PRODUCT_UNIT_CONVERT_SELF_NOT_ALLOWED);
}
// if (unitId.equals(purchaseUnitId)) {
// throw exception(PRODUCT_UNIT_CONVERT_SELF_NOT_ALLOWED);
// }
if (purchaseUnitConvertQuantity == null || purchaseUnitConvertQuantity.compareTo(BigDecimal.ZERO) <= 0) {
throw exception(PRODUCT_PURCHASE_UNIT_CONVERT_QUANTITY_INVALID);
}

Loading…
Cancel
Save