mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 21:29:11 +00:00
Co-authored-by: Ankush Menat <ankush@iwebnotes.com>
This commit is contained in:
committed by
GitHub
parent
8acc3fbbf4
commit
34b6f9389c
@@ -467,7 +467,7 @@ def apply_pricing_rule_on_transaction(doc):
|
|||||||
|
|
||||||
if not d.get(pr_field): continue
|
if not d.get(pr_field): continue
|
||||||
|
|
||||||
if d.validate_applied_rule and doc.get(field) < d.get(pr_field):
|
if 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}")
|
frappe.msgprint(_("User has not applied rule on the invoice {0}")
|
||||||
.format(doc.name))
|
.format(doc.name))
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user