fix: sales order not saving due type mismatch in promo scheme (#24748) (#25222)

This commit is contained in:
Abdullah Abouzekry 2021-04-13 08:06:39 +02:00 committed by GitHub
parent 34d00772e7
commit 20140425c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -471,7 +471,7 @@ def apply_pricing_rule_on_transaction(doc):
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}")
.format(doc.name))
else: