Skip to content

Commit

Permalink
Update lineItem section in refunded part to use lineItem
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Aug 2, 2022
1 parent 72f9134 commit 49d9a21
Showing 1 changed file with 8 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,31 +270,20 @@
<th style="padding-left:28px;text-align:right;font-weight:bold;"><font size="1">{domain.tax_term}</font></th>
<th style="padding-left:28px;text-align:right;font-weight:bold;"><font size="1">{ts 1=$currency}Amount %1{/ts}</font></th>
</tr>
{foreach from=$lineItem item=value key=priceset name=pricevalue}
{if $smarty.foreach.pricevalue.index eq 0}
<tr><td colspan="5"><hr size="3" style="color:#000;"></hr></td></tr>
{else}
<tr><td colspan="5" style="color:#F5F5F5;"><hr></hr></td></tr>
{/if}
{foreach from=$lineItems item=line key=index}
<tr><td colspan="5"><hr {if $index == 0}size="3" style="color:#000;"{else}style="color:#F5F5F5;"{/if}></hr></td></tr>
<tr>
<td style ="text-align:left;" ><font size="1">
{if $value.html_type eq 'Text'}
{$value.label}
{else}
{$value.field_title} - {$value.label}
{/if}
{if $value.description}
<div>{$value.description|truncate:30:"..."}</div>
{/if}
{$line.title}
</font></td>
<td style="padding-left:28px;text-align:right;"><font size="1">{$value.qty}</font></td>
<td style="padding-left:28px;text-align:right;"><font size="1">{$value.unit_price|crmMoney:$currency}</font></td>
{if $value.tax_amount != ''}
<td style="padding-left:28px;text-align:right;"><font size="1">{if $value.tax_rate}{$value.tax_rate}%{/if}</font></td>
<td style="padding-left:28px;text-align:right;"><font size="1">{$line.qty}</font></td>
<td style="padding-left:28px;text-align:right;"><font size="1">{$line.unit_price|crmMoney:$currency}</font></td>
{if $line.tax_amount != ''}
<td style="padding-left:28px;text-align:right;"><font size="1">{if $line.tax_rate}{$line.tax_rate|crmNumberFormat}%{/if}</font></td>
{else}
<td style="padding-left:28px;text-align:right"><font size="1">{if '{domain.tax_term}'}{ts 1='{domain.tax_term}'}No %1{/ts}{/if}</font></td>
{/if}
<td style="padding-left:28px;text-align:right;"><font size="1">{$value.subTotal|crmMoney:$currency}</font></td>
<td style="padding-left:28px;text-align:right;"><font size="1">{$line.line_total|crmMoney:'{contribution.currency}'}</font></td>
</tr>
{/foreach}
<tr><td colspan="5" style="color:#F5F5F5;"><hr></hr></td></tr>
Expand Down

0 comments on commit 49d9a21

Please sign in to comment.