mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
[fix] [minor] set customer/supplier defaults
This commit is contained in:
@@ -89,11 +89,11 @@ class DocType(BuyingController):
|
||||
return ret
|
||||
|
||||
def set_supplier_defaults(self):
|
||||
self.doc.fields.update(self.get_cust())
|
||||
self.doc.fields.update(self.get_supplier())
|
||||
self.doc.fields.update(self.get_credit_to())
|
||||
super(DocType, self).set_supplier_defaults()
|
||||
|
||||
def get_cust(self):
|
||||
def get_supplier(self):
|
||||
ret = {}
|
||||
if self.doc.credit_to:
|
||||
acc = webnotes.conn.get_value('Account',self.doc.credit_to,['master_name', 'credit_days'])
|
||||
|
||||
Reference in New Issue
Block a user