From 8dbfc2f47b4332083a579eff77b3fd62bb326502 Mon Sep 17 00:00:00 2001 From: lj Date: Wed, 26 Mar 2025 14:44:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E7=A5=A8=E7=94=B3=E8=AF=B7=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ivsale/impl/IVApplicationServiceImpl.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/sscivm/src/private/nccloud/itf/sscivm/ivsale/impl/IVApplicationServiceImpl.java b/sscivm/src/private/nccloud/itf/sscivm/ivsale/impl/IVApplicationServiceImpl.java index 276d6b6..6c9fa63 100644 --- a/sscivm/src/private/nccloud/itf/sscivm/ivsale/impl/IVApplicationServiceImpl.java +++ b/sscivm/src/private/nccloud/itf/sscivm/ivsale/impl/IVApplicationServiceImpl.java @@ -288,13 +288,20 @@ public class IVApplicationServiceImpl implements IVApplicationService { String src_billtype = ivApplicationVO.getParentVO().getSrc_billtype(); //来源单据类型 String src_billno = ivApplicationVO.getParentVO().getSrc_billno(); //来源单据号 String def23 = ivApplicationVO.getParentVO().getDef23(); //bip开票类型 (3:出口发票) + //根据开票申请自定义项23查询自定义档案编码 + BaseDAO dao = new BaseDAO(); + String sqlDefdoc = "select code from bd_defdoc where dr = 0 and pk_defdoc = '" +def23+"'"; + Object objDefdoc = dao.executeQuery(sqlDefdoc, new ColumnProcessor()); + String def23Code = ""; + if(objDefdoc != null) { + def23Code = objDefdoc.toString(); + } /** * 2025-03-12新增: - * 开票申请自定义项 23(bip开票类型) 不等于 3,即def23 != 3 + * 开票申请自定义项 23(bip开票类型) 不等于 3,def23Code != 3 * 再做金额校验 */ - if("32".equals(src_billtype) && !StringUtil.isNullStringOrNull(src_billno) && !"3".equals(def23)){ - BaseDAO dao = new BaseDAO(); + if("32".equals(src_billtype) && !StringUtil.isNullStringOrNull(src_billno) && !"3".equals(def23Code)){ String sql = "select ntotalorigmny from so_saleinvoice where dr = 0 and vbillcode = '" +src_billno+"'"; Object obj = dao.executeQuery(sql, new ColumnProcessor()); //销售发票价税合计