申请开票 添加明细时 防止用“类型”更新“发票类型”导致发票类型变空

main
dengyu 2 weeks ago
parent 0f03d6f536
commit ca807e0064

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

Loading…
Cancel
Save