mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
chore: remove stray tabs
This commit is contained in:
@@ -184,10 +184,10 @@ class Customer(TransactionBase):
|
|||||||
def validate_credit_limit_on_change(self):
|
def validate_credit_limit_on_change(self):
|
||||||
if self.get("__islocal") or not self.credit_limits:
|
if self.get("__islocal") or not self.credit_limits:
|
||||||
return
|
return
|
||||||
|
|
||||||
past_credit_limits = [d.credit_limit
|
past_credit_limits = [d.credit_limit
|
||||||
for d in frappe.db.get_all("Customer Credit Limit", filters={'parent': self.name}, fields=["credit_limit"], order_by="company")]
|
for d in frappe.db.get_all("Customer Credit Limit", filters={'parent': self.name}, fields=["credit_limit"], order_by="company")]
|
||||||
|
|
||||||
current_credit_limits = [d.credit_limit for d in sorted(self.credit_limits, key=lambda k: k.company)]
|
current_credit_limits = [d.credit_limit for d in sorted(self.credit_limits, key=lambda k: k.company)]
|
||||||
|
|
||||||
if past_credit_limits == current_credit_limits:
|
if past_credit_limits == current_credit_limits:
|
||||||
|
|||||||
Reference in New Issue
Block a user