取消自动开票

This commit is contained in:
lihao 2025-06-09 10:15:56 +08:00
parent 65ad8f4cf4
commit 5d24e2bf9a
2 changed files with 9 additions and 9 deletions

View File

@ -117,13 +117,13 @@ public class ApplicationSplitMergeMakeInvoiceAction implements ICommonAction {
for(IVApplicationAggVO appVo : appVos) {
IVApplicationBodyVO[] bodyVos = appVo.getBodyVOs();
if (appVo.getParentVO().getKpfs() != null && appVo.getParentVO().getKpfs() != IVAplocationKPFS.ZLKP.toIntValue() && bodyVos[0].getPk_ivappdetail().length() > 20) {
Map<String, String> failMap = new HashMap();
failMap.put("billNo", appVo.getParentVO().getBillno());
failMap.put("msg", NCLangRes4VoTransl.getNCLangRes().getStrByID("1058sal_0", "01058sal-0106"));
failMapList.add(failMap);
++failNum;
} else {
// if (appVo.getParentVO().getKpfs() != null && appVo.getParentVO().getKpfs() != IVAplocationKPFS.ZLKP.toIntValue() && bodyVos[0].getPk_ivappdetail().length() > 20) {
// Map<String, String> failMap = new HashMap();
// failMap.put("billNo", appVo.getParentVO().getBillno());
// failMap.put("msg", NCLangRes4VoTransl.getNCLangRes().getStrByID("1058sal_0", "01058sal-0106"));
// failMapList.add(failMap);
// ++failNum;
// } else {
if (bodyVos[0].getPk_ivappdetail().length() > 20) {
for(IVApplicationBodyVO bodyVo : bodyVos) {
String detailpk = bodyVo.getPk_ivappdetail();
@ -140,7 +140,7 @@ public class ApplicationSplitMergeMakeInvoiceAction implements ICommonAction {
newAppVos.add(appVo);
}
}
// }
if (appIds.size() == 0) {
return (IVApplicationAggVO[])newAppVos.toArray(new IVApplicationAggVO[0]);

View File

@ -282,7 +282,7 @@ public abstract class CommonProcessor {
//ÐéÄâÖ÷¼ü
headVo.setPk_ivapplication(new SequenceGenerator().generate());
//ĬÈÏÖ±Áª
headVo.setKpfs(IVAplocationKPFS.ZLKP.toIntValue());
// headVo.setKpfs(IVAplocationKPFS.ZLKP.toIntValue());
}
return appVos;