解决不合格检验单回溯报错的问题-生成不合格检验单时srcbilltype字段取上游单据的同字段的值

This commit is contained in:
mzr 2024-11-12 14:27:59 +08:00
parent 75864f8c5f
commit 4e692c1e9a
1 changed files with 2 additions and 2 deletions

View File

@ -651,7 +651,7 @@ public class DhjydMasterVOServiceImpl extends ServiceSupport implements IDhjydMa
mainVO.setPrimaryKey(null); mainVO.setPrimaryKey(null);
mainVO.setStatus(VOStatus.NEW); mainVO.setStatus(VOStatus.NEW);
mainVO.setAttributeValue("srcbilltype", null); // mainVO.setAttributeValue("srcbilltype", null);
// 来源单据主键改成当前传递的检验单的主键 // 来源单据主键改成当前传递的检验单的主键
mainVO.setAttributeValue("srcbillid", pk); mainVO.setAttributeValue("srcbillid", pk);
mainVO.setAttributeValue("vsourcecode", oldCode); mainVO.setAttributeValue("vsourcecode", oldCode);
@ -702,7 +702,7 @@ public class DhjydMasterVOServiceImpl extends ServiceSupport implements IDhjydMa
oldVo.setPrimaryKey(null); oldVo.setPrimaryKey(null);
oldVo.setStatus(VOStatus.NEW); oldVo.setStatus(VOStatus.NEW);
oldVo.setAttributeValue("pk_chekbill_b", null); oldVo.setAttributeValue("pk_chekbill_b", null);
oldVo.setAttributeValue("srcbilltype", null); // oldVo.setAttributeValue("srcbilltype", null);
oldVo.setAttributeValue("srcbillid", null); oldVo.setAttributeValue("srcbillid", null);
oldVo.setAttributeValue("rowno", null); oldVo.setAttributeValue("rowno", null);
oldVo.setAttributeValue("srcrowno", null); oldVo.setAttributeValue("srcrowno", null);