@ -1452,9 +1452,9 @@ Ext.extend(Shipping.MsChRecvInvSettlementEdit, Ext.Panel, {
xtype : 'container' ,
xtype : 'container' ,
layout : 'hbox' ,
layout : 'hbox' ,
defaultType : 'textfield' ,
defaultType : 'textfield' ,
items : [ this . comboxAddCustCode , {
items : [ {
fieldLabel : Zi . LAN . Invoice Number,
fieldLabel : Zi . LAN . Number,
name : ' Custom No',
name : ' Bs No',
enableKeyEvents : true ,
enableKeyEvents : true ,
listeners : {
listeners : {
specialkey : function ( field , e ) {
specialkey : function ( field , e ) {
@ -1464,8 +1464,8 @@ Ext.extend(Shipping.MsChRecvInvSettlementEdit, Ext.Panel, {
}
}
}
}
} , {
} , {
fieldLabel : Zi . LAN . Number,
fieldLabel : Zi . LAN . Invoice Number,
name : ' Bs No',
name : ' Custom No',
enableKeyEvents : true ,
enableKeyEvents : true ,
listeners : {
listeners : {
specialkey : function ( field , e ) {
specialkey : function ( field , e ) {
@ -1474,7 +1474,10 @@ Ext.extend(Shipping.MsChRecvInvSettlementEdit, Ext.Panel, {
}
}
}
}
}
}
} , this . comboxCurr2 , {
} ,
this . comboxAddCustCode ,
this . comboxCurr2 , {
fieldLabel : Zi . LAN . FromKaiPiaoDate ,
fieldLabel : Zi . LAN . FromKaiPiaoDate ,
format : 'Y-m-d' ,
format : 'Y-m-d' ,
xtype : 'datefield' ,
xtype : 'datefield' ,
@ -5264,7 +5267,7 @@ Ext.extend(Shipping.MsChRecvInvSettlementEdit, Ext.Panel, {
var sql = ' (ISDELETE is null or ISDELETE=0) ' ;
var sql = ' (ISDELETE is null or ISDELETE=0) ' ;
var customNo = form . findField ( 'CustomNo' ) . getValue ( ) ;
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 ( ) ;
var CUSTNAME = form . findField ( 'CUSTNAME' ) . getValue ( ) ;