mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
style: removed print statement
This commit is contained in:
@@ -736,7 +736,6 @@ def get_pricing_rule_items(pr_doc, other_items=False) -> list:
|
|||||||
|
|
||||||
def validate_coupon_code(coupon_name):
|
def validate_coupon_code(coupon_name):
|
||||||
coupon = frappe.get_doc("Coupon Code", coupon_name)
|
coupon = frappe.get_doc("Coupon Code", coupon_name)
|
||||||
print(coupon.valid_upto < getdate(today()))
|
|
||||||
if coupon.valid_from:
|
if coupon.valid_from:
|
||||||
if coupon.valid_from > getdate(today()):
|
if coupon.valid_from > getdate(today()):
|
||||||
frappe.throw(_("Sorry, this coupon code's validity has not started"))
|
frappe.throw(_("Sorry, this coupon code's validity has not started"))
|
||||||
|
|||||||
Reference in New Issue
Block a user