对公报销单冲预付校验
This commit is contained in:
parent
847f416455
commit
81afbd7844
|
@ -26,6 +26,10 @@ public class PublicBillRecAccountCkOp extends AbstractOperationServicePlugIn {
|
|||
super.onPreparePropertys(e);
|
||||
e.getFieldKeys().add("costcompany");
|
||||
e.getFieldKeys().add("accountentry");
|
||||
|
||||
e.getFieldKeys().add("zcgj_prepay");//冲销预付
|
||||
e.getFieldKeys().add("writeoffmoney");//冲销预付
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -95,6 +99,13 @@ public class PublicBillRecAccountCkOp extends AbstractOperationServicePlugIn {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
//冲销预付检查
|
||||
String zcgjPrepay = dataEntity.getString("zcgj_prepay");
|
||||
DynamicObjectCollection writeoffmoney = dataEntity.getDynamicObjectCollection("writeoffmoney");
|
||||
if("YES".equals(zcgjPrepay) && writeoffmoney.isEmpty()){
|
||||
this.addFatalErrorMessage(extendedDataEntity, String.format("当前单据为冲销预付时,冲预付/借款分录不能为空!",i));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue