@ -1452,9 +1452,9 @@ Ext.extend(Shipping.MsChRecvInvSettlementEdit, Ext.Panel, {
xtype : 'container' ,
layout : 'hbox' ,
defaultType : 'textfield' ,
items : [ this . comboxAddCustCode , {
fieldLabel : Zi . LAN . Invoice Number,
name : ' Custom No',
items : [ {
fieldLabel : Zi . LAN . Number,
name : ' Bs No',
enableKeyEvents : true ,
listeners : {
specialkey : function ( field , e ) {
@ -1464,8 +1464,8 @@ Ext.extend(Shipping.MsChRecvInvSettlementEdit, Ext.Panel, {
}
}
} , {
fieldLabel : Zi . LAN . Number,
name : ' Bs No',
fieldLabel : Zi . LAN . Invoice Number,
name : ' Custom No',
enableKeyEvents : true ,
listeners : {
specialkey : function ( field , e ) {
@ -1474,7 +1474,10 @@ Ext.extend(Shipping.MsChRecvInvSettlementEdit, Ext.Panel, {
}
}
}
} , this . comboxCurr2 , {
} ,
this . comboxAddCustCode ,
this . comboxCurr2 , {
fieldLabel : Zi . LAN . FromKaiPiaoDate ,
format : 'Y-m-d' ,
xtype : 'datefield' ,
@ -5264,7 +5267,7 @@ Ext.extend(Shipping.MsChRecvInvSettlementEdit, Ext.Panel, {
var sql = ' (ISDELETE is null or ISDELETE=0) ' ;
var customNo = form . findField ( 'CustomNo' ) . getValue ( ) ;
sql = sql + getAndConSql ( sql , customNo , " (BILLNO like '%" + customNo + "%' or INVOICENO like '%" + customNo + "%' )") ;
sql = sql + getAndConSql ( sql , customNo , " (BILLNO like '%" + customNo + "%' or INVOICENO like '%" + customNo + "%' or exists(select 1 from ch_fee_invoiceapplication where INVBILLNO=cm.BILLNO and BILLNO like '%" + customNo + "%') )") ;
var CUSTNAME = form . findField ( 'CUSTNAME' ) . getValue ( ) ;