金蝶eas应付单会自动生成成本调整单,调整单又有个开关控制是否自动生成凭证,如果整个开关没有关,而且又没有配置成本调整单到凭证得botop,则会导致应付单审核报错。
![在private boolean isVoucherAfterAudit(Context ctx, CostAdjustBillInfo model)
/* / throws EASBizException, BOSException
/ / {
/ 435 / boolean isAutoVoucher = false;
/ 436 / ISCMBillParam scmParam = SCMBillParamFactory.getLocalInstance(ctx);
/ 437 / String orgUnitID = null;
/ 438 / if ((model.getEntry().get(0) != null) && (model.getEntry().size() > 0)) {
/ 439 / orgUnitID = model.getEntry().get(0).getCompanyOrgUnit().getId().toString();
/ / }
/ 441 / if (StringUtils.isEmpty(orgUnitID)) {
/ 442 / return false;
/ / }
/ 444 / String strAutoAudit = scmParam.getParamByBillTypeID(“SCM_Audit_01”, 1, orgUnitID, “3a3b5446-0106-1000-e000-01bcc0a812e6463ED552”);
/ 445 / if ((strAutoAudit != null) && (strAutoAudit.trim().length() != 0) && (strAutoAudit.trim().toLowerCase().equals(“1”))) {
/ 446 / isAutoVoucher = true;
/ / }
/ 448 / return isAutoVoucher;
/ */ }