contact address will be fetched in sales invoice onload when come through mapper

This commit is contained in:
Nabin Hait 2011-09-16 17:32:16 +05:30
parent 4f2bd45ec1
commit d0da2c2210
2 changed files with 1 additions and 2 deletions

View File

@ -33,7 +33,7 @@ cur_frm.cscript.onload_post_render = function(doc, dt, dn) {
'load_default_accounts','', 'load_default_accounts','',
function(r,rt) { function(r,rt) {
refresh_field('entries'); refresh_field('entries');
refresh_field('debit_to'); cur_frm.cscript.customer(doc,dt,dn);
} }
); );
} }

View File

@ -139,7 +139,6 @@ class DocType(TransactionBase):
Loads default accounts from items, customer when called from mapper Loads default accounts from items, customer when called from mapper
""" """
self.get_income_account('entries') self.get_income_account('entries')
self.doc.debit_to = self.get_customer_account()
def get_income_account(self,doctype): def get_income_account(self,doctype):
for d in getlist(self.doclist, doctype): for d in getlist(self.doclist, doctype):