<tr>
<td class="text-right" style="width: 60%">
{{ __("paid by") }}
</td>
<td class="text-right">
{% for m in payments %}
{{ m.mode_of_payment }}
{% endfor %}
</td>
</tr>
Wrote this but this adds all the mode of payments in the list - like cash visa mastercard
I want to only show if there is any value inside and not zero i.e actually paid by that mode and not just list of all modes…
i tried adding something like this inside the loop :
hi @mdwala , thanks for the reply
unfortunately the code doesn’t work…
also this type of code with doc.payments and get_formatted () works only on server type of format which POS invoice has , Point of sale print is Js type…
And even on server type this code would display all modes and its amout like
Cash - 0.0
Visa -0.0
mastercard -2.5
i want only the mode payed for ,., like only show payed by master card in above case …
Hi @EnSeal
Unfortunately we have not yet tried v12… The code was only for v10.
We are using v12 but not implemented POS.
Have you tried to debug to see what errors raised?