fix: pricing issue
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
<div class="flex">
|
||||
<div class="field-label">
|
||||
{{ _("Total Price: ") }}
|
||||
<span class="total-price">{{ frappe.utils.fmt_money(amount, 2, currency) }}</span>
|
||||
<span class="total-price">{{ frappe.utils.fmt_money(amount_with_gst, 2, currency) if gst_applied else frappe.utils.fmt_money(amount, 2, currency) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
{% if gst_applied %}
|
||||
|
||||
@@ -17,9 +17,7 @@ def get_context(context):
|
||||
|
||||
context.original_currency = context.currency
|
||||
context.original_amount = (
|
||||
apply_gst(context.amount, None)[0]
|
||||
if context.original_currency == "INR"
|
||||
else context.amount
|
||||
(context.amount * 1.18) if context.original_currency == "INR" else context.amount
|
||||
)
|
||||
|
||||
context.exception_country = frappe.get_all(
|
||||
@@ -32,7 +30,7 @@ def get_context(context):
|
||||
|
||||
context.address = get_address()
|
||||
if context.currency == "INR":
|
||||
context.amount, context.gst_applied = apply_gst(context.amount, None)
|
||||
context.amount_with_gst, context.gst_applied = apply_gst(context.amount, None)
|
||||
|
||||
|
||||
def validate_access(doctype, docname, module):
|
||||
|
||||
Reference in New Issue
Block a user