From 7228eae76fd72cbb158b41259be306c085017820 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 2 Aug 2022 20:06:07 +1200 Subject: [PATCH] Update lineItem section in refunded part to use lineItem --- .../contribution_invoice_receipt_html.tpl | 30 +++++-------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/xml/templates/message_templates/contribution_invoice_receipt_html.tpl b/xml/templates/message_templates/contribution_invoice_receipt_html.tpl index f2cf24f97c..8c31dd1abf 100644 --- a/xml/templates/message_templates/contribution_invoice_receipt_html.tpl +++ b/xml/templates/message_templates/contribution_invoice_receipt_html.tpl @@ -72,9 +72,6 @@ {$line.title} - {if $line.description} -
{$line.description|truncate:30:"..."}
- {/if}
{$line.qty} {$line.unit_price|crmMoney:$currency} @@ -270,31 +267,20 @@ {domain.tax_term} {ts 1=$currency}Amount %1{/ts} - {foreach from=$lineItem item=value key=priceset name=pricevalue} - {if $smarty.foreach.pricevalue.index eq 0} -
- {else} -
- {/if} + {foreach from=$lineItems item=line key=index} +
- {if $value.html_type eq 'Text'} - {$value.label} - {else} - {$value.field_title} - {$value.label} - {/if} - {if $value.description} -
{$value.description|truncate:30:"..."}
- {/if} + {$line.title}
- {$value.qty} - {$value.unit_price|crmMoney:$currency} - {if $value.tax_amount != ''} - {if $value.tax_rate}{$value.tax_rate}%{/if} + {$line.qty} + {$line.unit_price|crmMoney:$currency} + {if $line.tax_amount != ''} + {if $line.tax_rate}{$line.tax_rate|crmNumberFormat}%{/if} {else} {if '{domain.tax_term}'}{ts 1='{domain.tax_term}'}No %1{/ts}{/if} {/if} - {$value.subTotal|crmMoney:$currency} + {$line.line_total|crmMoney:'{contribution.currency}'} {/foreach}
-- 2.25.1