fix:订舱通知单是否信保合同功能完善
This commit is contained in:
parent
c6ea61153a
commit
ccb1638193
@ -23,11 +23,13 @@ public class StorageTransSubmitValid extends AbstractValidator {
|
||||
for (ExtendedDataEntity dataes : dataEntities) {
|
||||
DynamicObject dataEntitie = dataes.getDataEntity();
|
||||
dataEntitie = BusinessDataServiceHelper.loadSingle(dataEntitie.getPkValue(), dataEntitie.getDynamicObjectType().getName());
|
||||
DynamicObjectCollection creditDetails = dataEntitie.getDynamicObjectCollection("yem_creditdetail");
|
||||
DynamicObject customer = dataEntitie.getDynamicObject("yem_customer");
|
||||
DynamicObject method = TotalUtil.getSettlementMethod(dataEntitie);
|
||||
DynamicObject company = dataEntitie.getDynamicObject("yem_company.yem_erporg");
|
||||
String swiftCode = TotalUtil.getSwiftCode(dataEntitie);
|
||||
DynamicObject csrCreditLine = TotalUtil.getCsrCreditLine(customer, method, company, swiftCode);
|
||||
if (!creditDetails.isEmpty()) {
|
||||
if (YEM.isNotEmpty(customer) && YEM.isNotEmpty(csrCreditLine)) {
|
||||
BigDecimal decimal = CreditBackFillUtils.calcRemainingAmount(csrCreditLine);
|
||||
if (decimal.compareTo(dataEntitie.getBigDecimal("yem_usacreditamt")) < 0) {
|
||||
@ -38,4 +40,5 @@ public class StorageTransSubmitValid extends AbstractValidator {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user