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