64 lines
2.2 KiB
HTML
64 lines
2.2 KiB
HTML
|
<table class="table">
|
||
|
<thead class="table-primary">
|
||
|
<tr>
|
||
|
<th>Description</th>
|
||
|
<th>Unit Price (MYR)</th>
|
||
|
<th>Quantity</th>
|
||
|
<th>Total (MYR)</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<tr>
|
||
|
<td th:text="'Service Fee - ' + ${spForm.appType.mstrDtDesc.en} + ' (' + ${spForm.applicant.fullname} + ')'" />
|
||
|
<td th:text="${#numbers.formatDecimal(payForm.unitPrice, 0, 'COMMA', 2, 'POINT')}" />
|
||
|
<td>1</td>
|
||
|
<td th:text="${#numbers.formatDecimal(payForm.unitPrice, 0, 'COMMA', 2, 'POINT')}" />
|
||
|
</tr>
|
||
|
<th:block th:if="${spForm.appType.mstrDtCode} == 'GW' OR ${spForm.appType.mstrDtCode} == 'EXP'"
|
||
|
th:with="dependentAmt = ${payForm.quantity - 1},
|
||
|
totalDependentAmt = ${payForm.unitPrice * dependentAmt},
|
||
|
subTotal = ${totalDependentAmt + payForm.unitPrice}">
|
||
|
<th:block th:each="dependent , iter : ${spForm?.applicant?.dependents}">
|
||
|
<tr>
|
||
|
<td th:text="'Service Fee - Dependant' + ' (' + ${spForm.applicant.fullname} + ')'" />
|
||
|
<td th:text="${#numbers.formatDecimal(payForm.unitPrice, 0, 'COMMA', 2, 'POINT')}" />
|
||
|
<td>1</td>
|
||
|
<td th:text="${#numbers.formatDecimal(payForm.unitPrice, 0, 'COMMA', 2, 'POINT')}" />
|
||
|
</tr>
|
||
|
</th:block>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td></td>
|
||
|
<td>Subtotal</td>
|
||
|
<td th:text="${#numbers.formatDecimal(subTotal, 0, 'COMMA', 2, 'POINT')}" />
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td></td>
|
||
|
<td th:text=" 'SST(' + ${#numbers.formatDecimal(payForm.sst * 100, 0, 'COMMA', 0, 'POINT')} + '%)' " />
|
||
|
<td th:text="${#numbers.formatDecimal(subTotal * payForm.sst, 0, 'COMMA', 2, 'POINT')}" />
|
||
|
</tr>
|
||
|
</th:block>
|
||
|
<th:block th:if="${spForm.appType.mstrDtCode} == 'STD' OR ${spForm.appType.mstrDtCode} == 'VST' ">
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td></td>
|
||
|
<td>Subtotal</td>
|
||
|
<td th:text="${#numbers.formatDecimal(payForm.unitPrice, 0, 'COMMA', 2, 'POINT')}" />
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td></td>
|
||
|
<td th:text=" 'SST(' + ${payForm.sst * 100} + ')' " />
|
||
|
<td th:text="${#numbers.formatDecimal(payForm.unitPrice * payForm.sst, 1, 'COMMA', 2, 'POINT')}" />
|
||
|
</tr>
|
||
|
</th:block>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td></td>
|
||
|
<td>Total</td>
|
||
|
<td th:text="${#numbers.formatDecimal(payForm.txnAmount, 0, 'COMMA', 2, 'POINT')}" />
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|