解决批量编辑供应商带出余额报错问题-张鑫0618

This commit is contained in:
zhangxinah@yonyou.com 2025-06-18 10:24:35 +08:00
parent a09c881e95
commit a62b8ac746
1 changed files with 14 additions and 9 deletions

View File

@ -302,10 +302,13 @@ public class BodyCuspAfterEditHandler extends BodyBatchBillHandler<CardBodyAfter
String[] supplier_vid = new String[] { (String) getBodyValue(IBillFieldGet.SUPPLIER_V) };
if (StringUtil.isEmptyWithTrim(supplier_vid[0])) {
setBodyValue(null, IBillFieldGet.SUPPLIER);
if(aggvo.getParent() instanceof PayBillVO) {
setBodyValue(null, "def30");
setBodyValue(null, "def31");
setBodyValue(null, "def32");
setBodyValue(null, "def33");
}
} else {
try {
supplierVIDtoPKMap = ServiceLocator.find(ISupplierPubService.class)
@ -323,10 +326,12 @@ public class BodyCuspAfterEditHandler extends BodyBatchBillHandler<CardBodyAfter
String supplier_oid = (String) getBodyValue(IBillFieldGet.SUPPLIER);
if (StringUtil.isEmptyWithTrim(supplier_oid)) {
setBodyValue(null, IBillFieldGet.SUPPLIER_V);
if(aggvo.getParent() instanceof PayBillVO) {
setBodyValue(null, "def30");
setBodyValue(null, "def31");
setBodyValue(null, "def32");
setBodyValue(null, "def33");
}
} else {
Map<String, UFDate> supplierAndDateMap = new HashMap<String, UFDate>();
supplierAndDateMap.put(supplier_oid, thisbilldate);
@ -405,7 +410,7 @@ public class BodyCuspAfterEditHandler extends BodyBatchBillHandler<CardBodyAfter
}
// 泰开项目客开带出供应商辅助余额111
// 核算账薄编码
if (supplierVO != null) {
if (supplierVO != null && aggvo.getParent() instanceof PayBillVO) {
PayBillVO billvo = (PayBillVO) aggvo.getParent();
String pk_relorg = billvo.getPk_fiorg();
String accbookCode = getAccbookCode(pk_relorg);