Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
3093b1ce86
|
@ -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());
|
||||
//销售发票价税合计
|
||||
|
|
Loading…
Reference in New Issue