[minor] [fix] trigger in supplier address and contact person field

This commit is contained in:
Nabin Hait
2013-07-20 18:29:45 +05:30
parent fa910593e6
commit 461b417871
5 changed files with 25 additions and 21 deletions

View File

@@ -109,11 +109,6 @@ erpnext.accounts.PurchaseInvoiceController = erpnext.buying.BuyingController.ext
// for backward compatibility: combine new and previous states
$.extend(cur_frm.cscript, new erpnext.accounts.PurchaseInvoiceController({frm: cur_frm}));
cur_frm.cscript.supplier_address = cur_frm.cscript.contact_person = function(doc,dt,dn) {
if(doc.supplier) get_server_fields('get_supplier_address', JSON.stringify({supplier: doc.supplier, address: doc.supplier_address, contact: doc.contact_person}),'', doc, dt, dn, 1);
}
cur_frm.fields_dict['entries'].grid.onrowadd = function(doc, cdt, cdn){
cl = getchildren('Purchase Invoice Item', doc.name, cur_frm.cscript.fname, doc.doctype);