feat: store batch/course in LMS payment
This commit is contained in:
@@ -8,8 +8,10 @@
|
|||||||
"editable_grid": 1,
|
"editable_grid": 1,
|
||||||
"engine": "InnoDB",
|
"engine": "InnoDB",
|
||||||
"field_order": [
|
"field_order": [
|
||||||
|
"payment_for_document_type",
|
||||||
"member",
|
"member",
|
||||||
"column_break_rqkd",
|
"column_break_rqkd",
|
||||||
|
"payment_for_document",
|
||||||
"billing_name",
|
"billing_name",
|
||||||
"payment_received",
|
"payment_received",
|
||||||
"payment_details_section",
|
"payment_details_section",
|
||||||
@@ -115,11 +117,23 @@
|
|||||||
"fieldname": "amount_with_gst",
|
"fieldname": "amount_with_gst",
|
||||||
"fieldtype": "Currency",
|
"fieldtype": "Currency",
|
||||||
"label": "Amount with GST"
|
"label": "Amount with GST"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "payment_for_document_type",
|
||||||
|
"fieldtype": "Select",
|
||||||
|
"label": "Payment for Document Type",
|
||||||
|
"options": "\nLMS Course\nLMS Batch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "payment_for_document",
|
||||||
|
"fieldtype": "Dynamic Link",
|
||||||
|
"label": "Payment for Document",
|
||||||
|
"options": "payment_for_document_type"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2023-09-12 10:40:22.721371",
|
"modified": "2023-10-17 23:17:50.334975",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "LMS",
|
"module": "LMS",
|
||||||
"name": "LMS Payment",
|
"name": "LMS Payment",
|
||||||
|
|||||||
@@ -1028,6 +1028,8 @@ def record_payment(address, response, client, doctype, docname):
|
|||||||
"amount_with_gst": payment_details["amount_with_gst"],
|
"amount_with_gst": payment_details["amount_with_gst"],
|
||||||
"gstin": address.gstin,
|
"gstin": address.gstin,
|
||||||
"pan": address.pan,
|
"pan": address.pan,
|
||||||
|
"payment_for_document_type": doctype,
|
||||||
|
"payment_for_document": docname,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
payment_doc.save(ignore_permissions=True)
|
payment_doc.save(ignore_permissions=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user