几处查询条件中的v_op_bs改为v_op_bill

dev
dengyu 4 weeks ago
parent 0ddb2fc8a6
commit e91aa3a095

@ -4078,7 +4078,7 @@ Ext.extend(Shipping.MsChPayAppSettlementEdit, Ext.Panel, {
var BH = form.findField('BH').getValue(); var BH = form.findField('BH').getValue();
sql = sql + getAndConSql(sql, BH, " EXISTS(select 1 from ch_fee_do where BILLNO=cm.BILLNO and EXISTS(select 1 from v_op_bs where bsno=ch_fee_do.BSNO and (CUSTNO like '%" + BH + "%' or MBLNO like '%" + BH + "%' or HBLNO like '%" + BH + "%') ))"); sql = sql + getAndConSql(sql, BH, " EXISTS(select 1 from ch_fee_do where BILLNO=cm.BILLNO and EXISTS(select 1 from v_op_bill where bsno=ch_fee_do.BSNO and (CUSTNO like '%" + BH + "%' or MBLNO like '%" + BH + "%' or HBLNO like '%" + BH + "%') ))");
var CUSTNAME = form.findField('CUSTNAME').getValue(); var CUSTNAME = form.findField('CUSTNAME').getValue();

@ -4938,7 +4938,7 @@ Ext.extend(Shipping.MsChInvoiceAppEdit, Ext.Panel, {
sql = sql + getAndConSql(sql, customNo, "BILLNO like '%" + customNo + "%'"); sql = sql + getAndConSql(sql, customNo, "BILLNO like '%" + customNo + "%'");
var MblNo = form.findField('MblNo').getValue(); var MblNo = form.findField('MblNo').getValue();
sql = sql + getAndConSql(sql, MblNo, " EXISTS(select 1 from ch_fee_do where BILLNO=cm.BILLNO and EXISTS(select 1 from v_op_bs where bsno=ch_fee_do.BSNO and (CUSTNO like '%" + MblNo + "%' or MBLNO like '%" + MblNo + "%' or HBLNO like '%" + MblNo + "%') ))"); sql = sql + getAndConSql(sql, MblNo, " EXISTS(select 1 from ch_fee_do where BILLNO=cm.BILLNO and EXISTS(select 1 from v_op_bill where bsno=ch_fee_do.BSNO and (CUSTNO like '%" + MblNo + "%' or MBLNO like '%" + MblNo + "%' or HBLNO like '%" + MblNo + "%') ))");
var PAYCOMPANYID = form.findField('PAYCOMPANYID').getValue(); var PAYCOMPANYID = form.findField('PAYCOMPANYID').getValue();
sql = sql + getAndConSql(sql, PAYCOMPANYID, "PAYCOMPANYID='" + PAYCOMPANYID + "'"); sql = sql + getAndConSql(sql, PAYCOMPANYID, "PAYCOMPANYID='" + PAYCOMPANYID + "'");

@ -6303,7 +6303,7 @@ Ext.extend(Shipping.MsChInvoiceAppEdit, Ext.Panel, {
sql = sql + getAndConSql(sql, customNo, "BILLNO like '%" + customNo + "%'"); sql = sql + getAndConSql(sql, customNo, "BILLNO like '%" + customNo + "%'");
var MblNo = form.findField('MblNo').getValue(); var MblNo = form.findField('MblNo').getValue();
sql = sql + getAndConSql(sql, MblNo, " EXISTS(select 1 from ch_fee_do where BILLNO=cm.BILLNO and EXISTS(select 1 from v_op_bs where bsno=ch_fee_do.BSNO and (CUSTNO like '%" + MblNo + "%' or MBLNO like '%" + MblNo + "%' or HBLNO like '%" + MblNo + "%') ))"); sql = sql + getAndConSql(sql, MblNo, " EXISTS(select 1 from ch_fee_do where BILLNO=cm.BILLNO and EXISTS(select 1 from v_op_bill where bsno=ch_fee_do.BSNO and (CUSTNO like '%" + MblNo + "%' or MBLNO like '%" + MblNo + "%' or HBLNO like '%" + MblNo + "%') ))");

@ -4581,7 +4581,7 @@ Ext.extend(Shipping.MsChRecvAppSettlementEdit, Ext.Panel, {
sql = sql + getAndConSql(sql, SALECORPID, " SALECORPID='" + SALECORPID + "'"); sql = sql + getAndConSql(sql, SALECORPID, " SALECORPID='" + SALECORPID + "'");
var BH = form.findField('BH').getValue(); var BH = form.findField('BH').getValue();
sql = sql + getAndConSql(sql, BH, " EXISTS(select 1 from ch_fee_do where BILLNO=cm.BILLNO and EXISTS(select 1 from v_op_bs where bsno=ch_fee_do.BSNO and (CUSTNO like '%" + BH + "%' or MBLNO like '%" + BH + "%' or HBLNO like '%" + BH + "%') ))"); sql = sql + getAndConSql(sql, BH, " EXISTS(select 1 from ch_fee_do where BILLNO=cm.BILLNO and EXISTS(select 1 from v_op_bill where bsno=ch_fee_do.BSNO and (CUSTNO like '%" + BH + "%' or MBLNO like '%" + BH + "%' or HBLNO like '%" + BH + "%') ))");
var Currency = form.findField('Currency').getValue(); var Currency = form.findField('Currency').getValue();

Loading…
Cancel
Save