fix: add translation support in print templates

This commit is contained in:
AbleKSaju
2025-01-31 15:12:46 +05:30
parent 92b2b361e0
commit d0faffddf8
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -72,7 +72,7 @@
</section>
<section class="w-1/2 px-12 pb-6 text-lg" v-if="doc.taxes.length">
<p class="flex justify-center font-semibold text-lg mt-2">Tax Summary</p>
<p class="flex justify-center font-semibold text-lg mt-2">{{t`Tax Summary`}}</p>
<div
class="flex justify-between pl-5 text-base"
@@ -84,7 +84,7 @@
</div>
<div class="flex justify-between pl-5 text-base">
<p>Total Ex.Vat</p>
<p>{{t`Total Ex.Tax`}}</p>
<p>{{doc.subTotal}}</p>
</div>
</section>
@@ -116,7 +116,7 @@
<!-- Invoice Terms -->
<section class="mt-12" v-if="doc.terms">
<h3 class="text-lg font-semibold">Notes</h3>
<h3 class="text-lg font-semibold">{{t`Notes`}}/h3>
<p class="mt-4 text-lg whitespace-pre-line">{{ doc.terms }}</p>
</section>
+2 -2
View File
@@ -127,11 +127,11 @@
<!-- Invoice Terms -->
<section class="mt-12" v-if="doc.terms">
<h3 class="text-lg font-semibold">Notes</h3>
<h3 class="text-lg font-semibold">{{t`Notes`}}</h3>
<p class="mt-4 text-lg whitespace-pre-line">{{ doc.terms }}</p>
</section>
<div v-if="print.amountInWords" class="flex justify-end mt-10">
<h3 class="text-lg font-semibold mr-2">Grand Total In Words:</h3>
<h3 class="text-lg font-semibold mr-2">{{t`Grand Total In Words`}}:</h3>
<p>{{doc.grandTotalInWords}}</p>
</div>
</footer>