From 4943af6d6c4b31d300e38f117fe1b0a93a8bb4de Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 26 Mar 2012 11:42:09 +0530 Subject: [PATCH] fix in address issue - customer coming in supplied field --- erpnext/utilities/doctype/address/address.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/utilities/doctype/address/address.js b/erpnext/utilities/doctype/address/address.js index 1c2bab7f9e..8949c5a9eb 100644 --- a/erpnext/utilities/doctype/address/address.js +++ b/erpnext/utilities/doctype/address/address.js @@ -26,13 +26,13 @@ cur_frm.cscript.onload = function(doc, cdt, cdn) { doc.address_type = 'Office'; } else if(route[1]=='Customer') { var customer = locals.Customer[route[2]] - doc.supplier = customer.name; + doc.customer = customer.name; doc.customer_name = customer.customer_name; doc.address_type = 'Office'; } else if(route[1]=='Sales Partner') { var sp = locals['Sales Partner'][route[2]]; doc.sales_partner = sp.name; - ndoc.address_type = 'Office'; + doc.address_type = 'Office'; } }