|
|
@ -4126,12 +4126,12 @@ Ext.extend(Shipping.MsChInvoiceAppEdit, Ext.Panel, {
|
|
|
|
this.formEdit.getForm().findField('EXCHANGERATE').setValue(rate);
|
|
|
|
this.formEdit.getForm().findField('EXCHANGERATE').setValue(rate);
|
|
|
|
this.setBank(RECVCURR);
|
|
|
|
this.setBank(RECVCURR);
|
|
|
|
INVOICECATEGORY.setValue(rec.data.INVOICECATEGORY);
|
|
|
|
INVOICECATEGORY.setValue(rec.data.INVOICECATEGORY);
|
|
|
|
var recs = DsStoreQueryBy(this.storeINVOICELINE, 'EnumValueName', rec.data.INVOICECATEGORYREF);
|
|
|
|
//var recs = DsStoreQueryBy(this.storeINVOICELINE, 'EnumValueName', rec.data.INVOICECATEGORYREF);
|
|
|
|
if (recs.getCount() > 0) {
|
|
|
|
//if (recs.getCount() > 0) {
|
|
|
|
var data = recs.getAt(0).data;
|
|
|
|
// var data = recs.getAt(0).data;
|
|
|
|
var INVOICELINE = this.formEdit.getForm().findField('INVOICELINE');
|
|
|
|
// var INVOICELINE = this.formEdit.getForm().findField('INVOICELINE');
|
|
|
|
INVOICELINE.setValue(data.EnumValueId);
|
|
|
|
// INVOICELINE.setValue(data.EnumValueId);
|
|
|
|
}
|
|
|
|
//}
|
|
|
|
if (isNullorEmpty(ACTUALCUSTOMERNAME_str)) {
|
|
|
|
if (isNullorEmpty(ACTUALCUSTOMERNAME_str)) {
|
|
|
|
//如果没有代开客户
|
|
|
|
//如果没有代开客户
|
|
|
|
var recs = DsStoreQueryBy(this.storeCustCode, 'CustName', cust);
|
|
|
|
var recs = DsStoreQueryBy(this.storeCustCode, 'CustName', cust);
|
|
|
@ -4223,12 +4223,12 @@ Ext.extend(Shipping.MsChInvoiceAppEdit, Ext.Panel, {
|
|
|
|
CUSTADDRTEL.setValue(rec.data.CUSTADDRTEL);
|
|
|
|
CUSTADDRTEL.setValue(rec.data.CUSTADDRTEL);
|
|
|
|
CUSTBANK.setValue(rec.data.CUSTBANK);
|
|
|
|
CUSTBANK.setValue(rec.data.CUSTBANK);
|
|
|
|
INVOICECATEGORY.setValue(rec.data.INVOICECATEGORY);
|
|
|
|
INVOICECATEGORY.setValue(rec.data.INVOICECATEGORY);
|
|
|
|
var recs = DsStoreQueryBy(this.storeINVOICELINE, 'EnumValueName', rec.data.INVOICECATEGORY);
|
|
|
|
//var recs = DsStoreQueryBy(this.storeINVOICELINE, 'EnumValueName', rec.data.INVOICECATEGORY);
|
|
|
|
if (recs.getCount() > 0) {
|
|
|
|
//if (recs.getCount() > 0) {
|
|
|
|
var data = recs.getAt(0).data;
|
|
|
|
// var data = recs.getAt(0).data;
|
|
|
|
var INVOICELINE = this.formEdit.getForm().findField('INVOICELINE');
|
|
|
|
// var INVOICELINE = this.formEdit.getForm().findField('INVOICELINE');
|
|
|
|
INVOICELINE.setValue(data.EnumValueId);
|
|
|
|
// INVOICELINE.setValue(data.EnumValueId);
|
|
|
|
}
|
|
|
|
//}
|
|
|
|
CUSTTEL.setValue(getEndTel(rec.data.CUSTADDRTEL));
|
|
|
|
CUSTTEL.setValue(getEndTel(rec.data.CUSTADDRTEL));
|
|
|
|
|
|
|
|
|
|
|
|
CUSTADDR.setValue(rec.data.CUSTADDRTEL.replace(getEndTel(rec.data.CUSTADDRTEL), ""));
|
|
|
|
CUSTADDR.setValue(rec.data.CUSTADDRTEL.replace(getEndTel(rec.data.CUSTADDRTEL), ""));
|
|
|
|