Skip to Content
Menu
This question has been flagged
1 Reply
3364 Views

Hello there,

For this point of sale transaction, we return an amount of 0,02 $ to customer because he paid with 115 $.

According to you, could I display this amount of 0,02 $ on the invoice?

What should be my approach?

Thanks for your tips.


 

Avatar
Discard
Author Best Answer

Here is our answer.

See at the bottom of this invoice :



Here is the code to put in the file report_invoice_document_custom.xml :

        <span t-if="o.payment_ids">

                <span t-foreach="o.payment_ids" t-as="l">

                        <p t-if="l.credit != 0.00">

                                <strong>Paiment du client : <![CDATA[ &nbsp; ]]></strong>

                                <span t-field="l.credit" t-field-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;o.currency_id&quot;}"/>

                        </p>

                        <p t-if="l.debit != 0.00">

                                <strong>Argent rendu au client : <![CDATA[ &nbsp; ]]></strong>

                                <span t-field="l.debit" t-field-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;o.currency_id&quot;}"/>

                        </p>

                </span>

        </span>

Avatar
Discard
Related Posts Replies Views Activity
3
Oct 20
4642
1
Mar 15
2627
1
Jun 21
1111
0
Jun 17
4270
0
Mar 15
4841