mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
style: Apply ruff formatting
This commit is contained in:
@@ -583,11 +583,7 @@ def apply_pricing_rule_on_transaction(doc):
|
|||||||
if not d.get(pr_field):
|
if not d.get(pr_field):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if (
|
if d.validate_applied_rule and (doc.get(field) or 0) < d.get(pr_field):
|
||||||
d.validate_applied_rule
|
|
||||||
and doc.get(field) is not None
|
|
||||||
and doc.get(field) < d.get(pr_field)
|
|
||||||
):
|
|
||||||
frappe.msgprint(_("User has not applied rule on the invoice {0}").format(doc.name))
|
frappe.msgprint(_("User has not applied rule on the invoice {0}").format(doc.name))
|
||||||
else:
|
else:
|
||||||
if not d.coupon_code_based:
|
if not d.coupon_code_based:
|
||||||
|
|||||||
Reference in New Issue
Block a user