开票申请保存校验
This commit is contained in:
parent
1e0eb5a2e8
commit
8dbfc2f47b
|
@ -288,13 +288,20 @@ public class IVApplicationServiceImpl implements IVApplicationService {
|
||||||
String src_billtype = ivApplicationVO.getParentVO().getSrc_billtype(); //来源单据类型
|
String src_billtype = ivApplicationVO.getParentVO().getSrc_billtype(); //来源单据类型
|
||||||
String src_billno = ivApplicationVO.getParentVO().getSrc_billno(); //来源单据号
|
String src_billno = ivApplicationVO.getParentVO().getSrc_billno(); //来源单据号
|
||||||
String def23 = ivApplicationVO.getParentVO().getDef23(); //bip开票类型 (3:出口发票)
|
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新增:
|
* 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)){
|
if("32".equals(src_billtype) && !StringUtil.isNullStringOrNull(src_billno) && !"3".equals(def23Code)){
|
||||||
BaseDAO dao = new BaseDAO();
|
|
||||||
String sql = "select ntotalorigmny from so_saleinvoice where dr = 0 and vbillcode = '" +src_billno+"'";
|
String sql = "select ntotalorigmny from so_saleinvoice where dr = 0 and vbillcode = '" +src_billno+"'";
|
||||||
Object obj = dao.executeQuery(sql, new ColumnProcessor());
|
Object obj = dao.executeQuery(sql, new ColumnProcessor());
|
||||||
//销售发票价税合计
|
//销售发票价税合计
|
||||||
|
|
Loading…
Reference in New Issue