fix:外销合同提交效验
This commit is contained in:
parent
4f2b123a08
commit
56ca1a1883
@ -263,6 +263,7 @@ public class SalesOrderSubmitValidator extends AbstractValidator {
|
||||
long entryCurr = object.getLong("yem_curr.id");
|
||||
String entryDebcredtype = object.getString("yem_debcredtype");
|
||||
long entryCreditype = object.getLong("yem_creditype.id");
|
||||
BigDecimal yem_actremaamount = object.getBigDecimal("yem_actremaamount");
|
||||
long entryCustomer = single.getLong("yem_customer.id");
|
||||
if (
|
||||
entryCurr == currId &&
|
||||
@ -324,7 +325,7 @@ public class SalesOrderSubmitValidator extends AbstractValidator {
|
||||
sumtotalamount.subtract(sumtowardamt).setScale(2, RoundingMode.HALF_UP)
|
||||
));
|
||||
}
|
||||
} else {
|
||||
} else if (yem_actremaamount.compareTo(BigDecimal.ZERO)>0){
|
||||
// 实际来源总金额
|
||||
BigDecimal sumtotalamount = object.getBigDecimal("yem_sumtotalamount");
|
||||
// 预计去向总金额
|
||||
|
Loading…
Reference in New Issue
Block a user