Skip to content

Commit 516f41b

Browse files
committed
fix: add uom and quantity in print
1 parent 1bb0989 commit 516f41b

File tree

5 files changed

+35
-5
lines changed

5 files changed

+35
-5
lines changed

templates/Basic.template.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,13 @@ <h2 class="py-1 text-right text-lg font-semibold">{{ doc.party }}</h2>
8383
<div class="w-2/12 text-right py-4" v-if="doc.showHSN">
8484
{{ row.hsnCode }}
8585
</div>
86-
<div class="w-1/12 text-right py-4">{{ row.quantity }}</div>
86+
<div class="w-1/12 text-right py-4">
87+
<div>{{ row.quantity }}</div>
88+
<div v-if="row.transferUnit">
89+
({{row.transferQuantity}} of {{ row.transferUnit }})
90+
</div>
91+
<div v-else-if="row.unit">({{row.quantity}} of {{ row.unit }})</div>
92+
</div>
8793
<div class="w-3/12 text-right py-4">{{ row.rate }}</div>
8894
<div class="w-3/12 text-right py-4">{{ row.amount }}</div>
8995
</section>

templates/Business-POS.template.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,13 @@ <h4 class="font-semibold text-xl">Invoice</h4>
5656
>
5757
<div class="w-4 py-1">{{ index + 1 }}</div>
5858
<div class="w-2/5 py-1">{{ row.item }}</div>
59-
<div class="w-1/12 py-1 text-left">{{ row.quantity }}</div>
59+
<div class="w-1/12 py-1 text-left">
60+
<div>{{ row.quantity }}</div>
61+
<div v-if="row.transferUnit">
62+
({{row.transferQuantity}} of {{ row.transferUnit }})
63+
</div>
64+
<div v-else-if="row.unit">({{row.quantity}} of {{ row.unit }})</div>
65+
</div>
6066
<div class="w-3/12 text-right py-1">{{ row.rate }}</div>
6167
<div class="w-3/12 text-right py-1">{{ row.amount }}</div>
6268
</section>

templates/Business.Shipment.template.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,13 @@ <h3 class="w-1/3 font-semibold">{{t`party`}}</h3>
8181
{{ row.hsnCode }}
8282
</div>
8383
<div class="w-1/4 text-right py-1">{{ row.location }}</div>
84-
<div class="w-1/4 text-right py-1">{{ row.quantity }}</div>
84+
<div class="w-1/4 text-right py-1">
85+
<div>{{ row.quantity }}</div>
86+
<div v-if="row.transferUnit">
87+
({{row.transferQuantity}} of {{ row.transferUnit }})
88+
</div>
89+
<div v-else-if="row.unit">({{row.quantity}} of {{ row.unit }})</div>
90+
</div>
8591
<div class="w-3/12 text-right py-1">{{ row.rate }}</div>
8692
<div class="w-3/12 text-right py-1">{{ row.amount }}</div>
8793
</section>

templates/Business.template.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,13 @@ <h3 class="w-1/3 font-semibold">
7777
<div class="w-4/12">{{ row.item }}</div>
7878
<div class="w-4/12" v-if="doc.description">{{ row.description }}</div>
7979
<div class="w-2/12 text-right" v-if="doc.showHSN">{{ row.hsnCode }}</div>
80-
<div class="w-2/12 text-right">{{ row.quantity }}</div>
80+
<div class="w-2/12 text-right">
81+
<div>{{ row.quantity }}</div>
82+
<div v-if="row.transferUnit">
83+
({{row.transferQuantity}} of {{ row.transferUnit }})
84+
</div>
85+
<div v-else-if="row.unit">({{row.quantity}} of {{ row.unit }})</div>
86+
</div>
8187
<div class="w-3/12 text-right">{{ row.rate }}</div>
8288
<div class="w-3/12 text-right">{{ row.amount }}</div>
8389
</section>

templates/Minimal.template.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,13 @@ <h3 class="uppercase text-sm font-semibold tracking-widest text-gray-800">
115115
{{ row.description }}
116116
</div>
117117
<div class="w-2/12 text-right" v-if="doc.showHSN">{{ row.hsnCode }}</div>
118-
<div class="w-2/12 text-right">{{ row.quantity }}</div>
118+
<div class="w-2/12 text-right">
119+
<div>{{ row.quantity }}</div>
120+
<div v-if="row.transferUnit">
121+
({{row.transferQuantity}} of {{ row.transferUnit }})
122+
</div>
123+
<div v-else-if="row.unit">({{row.quantity}} of {{ row.unit }})</div>
124+
</div>
119125
<div class="w-3/12 text-right">{{ row.rate }}</div>
120126
<div class="w-3/12 text-right">{{ row.amount }}</div>
121127
</section>

0 commit comments

Comments
 (0)