解决批量编辑供应商带出余额报错问题-张鑫0618
This commit is contained in:
parent
a09c881e95
commit
a62b8ac746
|
@ -302,10 +302,13 @@ public class BodyCuspAfterEditHandler extends BodyBatchBillHandler<CardBodyAfter
|
||||||
String[] supplier_vid = new String[] { (String) getBodyValue(IBillFieldGet.SUPPLIER_V) };
|
String[] supplier_vid = new String[] { (String) getBodyValue(IBillFieldGet.SUPPLIER_V) };
|
||||||
if (StringUtil.isEmptyWithTrim(supplier_vid[0])) {
|
if (StringUtil.isEmptyWithTrim(supplier_vid[0])) {
|
||||||
setBodyValue(null, IBillFieldGet.SUPPLIER);
|
setBodyValue(null, IBillFieldGet.SUPPLIER);
|
||||||
setBodyValue(null, "def30");
|
if(aggvo.getParent() instanceof PayBillVO) {
|
||||||
setBodyValue(null, "def31");
|
setBodyValue(null, "def30");
|
||||||
setBodyValue(null, "def32");
|
setBodyValue(null, "def31");
|
||||||
setBodyValue(null, "def33");
|
setBodyValue(null, "def32");
|
||||||
|
setBodyValue(null, "def33");
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
supplierVIDtoPKMap = ServiceLocator.find(ISupplierPubService.class)
|
supplierVIDtoPKMap = ServiceLocator.find(ISupplierPubService.class)
|
||||||
|
@ -323,10 +326,12 @@ public class BodyCuspAfterEditHandler extends BodyBatchBillHandler<CardBodyAfter
|
||||||
String supplier_oid = (String) getBodyValue(IBillFieldGet.SUPPLIER);
|
String supplier_oid = (String) getBodyValue(IBillFieldGet.SUPPLIER);
|
||||||
if (StringUtil.isEmptyWithTrim(supplier_oid)) {
|
if (StringUtil.isEmptyWithTrim(supplier_oid)) {
|
||||||
setBodyValue(null, IBillFieldGet.SUPPLIER_V);
|
setBodyValue(null, IBillFieldGet.SUPPLIER_V);
|
||||||
setBodyValue(null, "def30");
|
if(aggvo.getParent() instanceof PayBillVO) {
|
||||||
setBodyValue(null, "def31");
|
setBodyValue(null, "def30");
|
||||||
setBodyValue(null, "def32");
|
setBodyValue(null, "def31");
|
||||||
setBodyValue(null, "def33");
|
setBodyValue(null, "def32");
|
||||||
|
setBodyValue(null, "def33");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
Map<String, UFDate> supplierAndDateMap = new HashMap<String, UFDate>();
|
Map<String, UFDate> supplierAndDateMap = new HashMap<String, UFDate>();
|
||||||
supplierAndDateMap.put(supplier_oid, thisbilldate);
|
supplierAndDateMap.put(supplier_oid, thisbilldate);
|
||||||
|
@ -405,7 +410,7 @@ public class BodyCuspAfterEditHandler extends BodyBatchBillHandler<CardBodyAfter
|
||||||
}
|
}
|
||||||
// 泰开项目客开,带出供应商辅助余额111
|
// 泰开项目客开,带出供应商辅助余额111
|
||||||
// 核算账薄编码
|
// 核算账薄编码
|
||||||
if (supplierVO != null) {
|
if (supplierVO != null && aggvo.getParent() instanceof PayBillVO) {
|
||||||
PayBillVO billvo = (PayBillVO) aggvo.getParent();
|
PayBillVO billvo = (PayBillVO) aggvo.getParent();
|
||||||
String pk_relorg = billvo.getPk_fiorg();
|
String pk_relorg = billvo.getPk_fiorg();
|
||||||
String accbookCode = getAccbookCode(pk_relorg);
|
String accbookCode = getAccbookCode(pk_relorg);
|
||||||
|
|
Loading…
Reference in New Issue