contact address will be fetched in sales invoice onload when come through mapper
This commit is contained in:
parent
4f2bd45ec1
commit
d0da2c2210
@ -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);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user