feat: gst fields in class student

This commit is contained in:
Jannat Patel
2023-08-23 13:00:54 +05:30
parent 04ed7f412f
commit 47c19b4e3d
11 changed files with 175 additions and 58 deletions

View File

@@ -20,7 +20,7 @@
{{ _("Order Details") }}
</div>
<div>
{{ _("Enter the billing information and complete the payment to purchase this {0}.").format(module) }}
{{ _("Enter the billing information to complete the payment.").format(module) }}
</div>
</div>
{% endmacro %}
@@ -59,11 +59,4 @@
{%- block script %}
{{ super() }}
<script src="https://checkout.razorpay.com/v1/checkout.js"></script>
<script>
frappe.boot.user = {
"can_create": [],
"can_select": ["Country"],
"can_read": ["Country"]
};
</script>
{% endblock %}

View File

@@ -44,6 +44,7 @@ const setup_billing = () => {
fieldname: "country",
options: "Country",
reqd: 1,
only_select: 1,
},
{
fieldtype: "Data",
@@ -57,6 +58,18 @@ const setup_billing = () => {
fieldname: "phone",
reqd: 1,
},
{
fieldtype: "Data",
fieldname: "gstin",
label: __("GSTIN"),
depends_on: (doc) => console.log(doc.country),
},
{
fieldtype: "Data",
fieldname: "pan",
label: __("PAN"),
depends_on: (doc) => console.log(doc.country),
},
],
body: $("#billing-form").get(0),
});