Merge pull request #1939 from pateljannat/consent-on-billing-page

feat: consent on billing page
This commit is contained in:
Jannat Patel
2025-12-24 16:50:24 +05:30
committed by GitHub
3 changed files with 65 additions and 11 deletions

View File

@@ -15,6 +15,7 @@
"payment_for_document",
"payment_received",
"payment_for_certificate",
"member_consent",
"payment_details_section",
"original_amount",
"discount_amount",
@@ -181,6 +182,12 @@
"fieldtype": "Currency",
"label": "Original Amount",
"options": "currency"
},
{
"default": "0",
"fieldname": "member_consent",
"fieldtype": "Check",
"label": "Member Consent"
}
],
"index_web_pages_for_search": 1,
@@ -194,7 +201,7 @@
"link_fieldname": "payment"
}
],
"modified": "2025-11-12 12:39:52.466297",
"modified": "2025-12-19 17:55:25.968384",
"modified_by": "sayali@frappe.io",
"module": "LMS",
"name": "LMS Payment",

View File

@@ -121,6 +121,7 @@ def record_payment(
"payment_for_document_type": doctype,
"payment_for_document": docname,
"payment_for_certificate": payment_for_certificate,
"member_consent": address.member_consent,
}
)
if coupon_code: