Problem showing refunded amount on invoice

Hi everyone,

We’re creating a new invoice template with Order Printer for edited orders; eg showing refunds.

In the documentation, I found total_refunded_amount under order object, but it’s not showing even with money filter.

Is anyone having the same issue, or am I doing this wor

Any kind of helps would be much appreciated :blush:

Hi @max15characters

It’s hard to determine without screenshots or more information but from my experience creating custom edits for the Order Printer for my clients you should be able to pipe the value of total_refunded_amount into the money/currency filter.

Thanks for the reply @sanico-software

Looping the Refunds object solved the issue.

Below is the snippet that works:

{% for refund in refunds %}
  {{ refund.amount | money }}
{% endfor %}

Glad you solved it @max15characters and thanks for sharing the solution.