mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 18:04:46 +00:00
[fix] [minor] pull credit days from customer, update credit days in account of customer
This commit is contained in:
@@ -77,9 +77,9 @@ class DocType(TransactionBase):
|
||||
msgprint("Please Select Company under which you want to create account head")
|
||||
|
||||
def update_credit_days_limit(self):
|
||||
sql("""update tabAccount set credit_days = %s, credit_limit = %s
|
||||
where name = %s""", (self.doc.credit_days or 0, self.doc.credit_limit or 0,
|
||||
self.doc.name + " - " + self.get_company_abbr()))
|
||||
webnotes.conn.sql("""update tabAccount set credit_days = %s, credit_limit = %s
|
||||
where master_type='Customer' and master_name = %s""",
|
||||
(self.doc.credit_days or 0, self.doc.credit_limit or 0, self.doc.name))
|
||||
|
||||
def create_lead_address_contact(self):
|
||||
if self.doc.lead_name:
|
||||
|
||||
Reference in New Issue
Block a user