fix: add translation to make semgrep pass

This commit is contained in:
Raffael Meyer 2021-04-28 12:38:23 +02:00 committed by GitHub
parent 8787ebf83d
commit a949480acf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -276,7 +276,7 @@ class Subscription(Document):
frappe.throw(_('Subscription End Date is mandatory to follow calendar months')) frappe.throw(_('Subscription End Date is mandatory to follow calendar months'))
if billing_info[0]['billing_interval'] != 'Month': if billing_info[0]['billing_interval'] != 'Month':
frappe.throw('Billing Interval in Subscription Plan must be Month to follow calendar months') frappe.throw(_('Billing Interval in Subscription Plan must be Month to follow calendar months'))
def after_insert(self): def after_insert(self):
# todo: deal with users who collect prepayments. Maybe a new Subscription Invoice doctype? # todo: deal with users who collect prepayments. Maybe a new Subscription Invoice doctype?