feat: gst fields in class student
This commit is contained in:
@@ -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 %}
|
||||
|
||||
@@ -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),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user