feat:取消发运提交必录校验
This commit is contained in:
parent
c0233e4e77
commit
b2c412e4d8
@ -70,7 +70,7 @@ public class ShippingDetailSubmitValidator extends AbstractValidator {
|
||||
}
|
||||
}
|
||||
vehicleNoSingle(dataEntitie);
|
||||
validateTaxRefundRate(dataEntitie);
|
||||
// validateTaxRefundRate(dataEntitie);
|
||||
}
|
||||
}
|
||||
|
||||
@ -79,28 +79,32 @@ public class ShippingDetailSubmitValidator extends AbstractValidator {
|
||||
*
|
||||
* @param dataEntitie
|
||||
*/
|
||||
private void validateTaxRefundRate(ExtendedDataEntity dataEntitie) {
|
||||
DynamicObject dataEntity = dataEntitie.getDataEntity();
|
||||
String isdeclare = dataEntity.getString("yem_isdeclare");
|
||||
if (!"A".equals(isdeclare)) return;
|
||||
DynamicObjectCollection collection = dataEntity.getDynamicObjectCollection("yem_es_materialinfo");
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (DynamicObject dynamicObject : collection) {
|
||||
int index = collection.indexOf(dynamicObject);
|
||||
boolean ifgift = dynamicObject.getBoolean("yem_ifgift");
|
||||
if (!ifgift) {
|
||||
// BigDecimal degrate = dynamicObject.getBigDecimal("yem_degrate");
|
||||
DynamicObject hscode = dynamicObject.getDynamicObject("yem_hscode");
|
||||
if (YEM.isEmpty(hscode)) {
|
||||
sb.append(String.format("商品明细第 [ %s ] 行,海关编码为空,请填写后提交!", index + 1)).append("\r\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (sb.length() > 0) {
|
||||
this.addErrorMessage(dataEntitie, sb.toString());
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 取消,改为手动配置
|
||||
*/
|
||||
// private void validateTaxRefundRate(ExtendedDataEntity dataEntitie) {
|
||||
// DynamicObject dataEntity = dataEntitie.getDataEntity();
|
||||
// String isdeclare = dataEntity.getString("yem_isdeclare");
|
||||
// if (!"A".equals(isdeclare)) return;
|
||||
// DynamicObjectCollection collection = dataEntity.getDynamicObjectCollection("yem_es_materialinfo");
|
||||
// StringBuilder sb = new StringBuilder();
|
||||
// for (DynamicObject dynamicObject : collection) {
|
||||
// int index = collection.indexOf(dynamicObject);
|
||||
// boolean ifgift = dynamicObject.getBoolean("yem_ifgift");
|
||||
// if (!ifgift) {
|
||||
// DynamicObject hscode = dynamicObject.getDynamicObject("yem_hscode");
|
||||
// if (YEM.isEmpty(hscode)) {
|
||||
// sb.append(String.format("商品明细第 [ %s ] 行,海关编码为空,请填写后提交!", index + 1)).append("\r\n");
|
||||
// }
|
||||
//
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// if (sb.length() > 0) {
|
||||
// this.addErrorMessage(dataEntitie, sb.toString());
|
||||
// }
|
||||
// }
|
||||
|
||||
/**
|
||||
* @description 整机生产信息中整机编号唯一性校验
|
||||
|
Loading…
Reference in New Issue
Block a user