Merge pull request #23934 from Anurag810/memebership-fixes
fix: validation for membership
This commit is contained in:
commit
81f6ef3e1a
@ -70,7 +70,7 @@ class Membership(Document):
|
|||||||
settings = frappe.get_doc("Membership Settings")
|
settings = frappe.get_doc("Membership Settings")
|
||||||
|
|
||||||
if not member.customer:
|
if not member.customer:
|
||||||
frappe.throw(_("No customer linked to member {}", [member.name]))
|
frappe.throw(_("No customer linked to member {0}").format(frappe.bold(self.member)))
|
||||||
|
|
||||||
if not settings.debit_account:
|
if not settings.debit_account:
|
||||||
frappe.throw(_("You need to set <b>Debit Account</b> in Membership Settings"))
|
frappe.throw(_("You need to set <b>Debit Account</b> in Membership Settings"))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user