{* FIXME: style this table so that it looks like the text version (justification, etc.) *}
{ts}Description{/ts} |
{ts}Quantity{/ts} |
{ts}Unit Price{/ts} |
{$taxTerm} |
{ts 1=$defaultCurrency}Amount %1{/ts} |
{foreach from=$lineItem item=value key=priceset name=taxpricevalue}
{if $smarty.foreach.taxpricevalue.index eq 0}
|
{else}
|
{/if}
{if $value.html_type eq 'Text'}
{$value.label}
{else}
{$value.field_title} - {$value.label}
{/if}
{if $value.description}
{$value.description|truncate:30:"..."}
{/if}
|
{$value.qty} |
{$value.unit_price|crmMoney:$currency} |
{if $value.tax_amount != ''}
{$value.tax_rate}% |
{else}
{ts 1=$taxTerm}No %1{/ts} |
{/if}
{$value.subTotal|crmMoney:$currency} |
{/foreach}
|
|
{ts}Sub Total{/ts} |
{$subTotal|crmMoney:$currency} |
{foreach from = $dataArray item = value key = priceset}
|
{if $priceset}
{ts 1=$taxTerm 2=$priceset}TOTAL %1 %2%{/ts} |
{$value|crmMoney:$currency} |
{elseif $priceset == 0}
{ts 1=$taxTerm}TOTAL NO %1{/ts} |
{$value|crmMoney:$currency} |
{/if}
{/foreach}
|
|
|
{ts 1=$defaultCurrency}TOTAL %1{/ts} |
{$amount|crmMoney:$currency} |
|
{if $is_pay_later == 0}
|
{if $contribution_status_id == $refundedStatusId}
{ts}LESS Amount Credited{/ts}
{else}
{ts}LESS Amount Paid{/ts}
{/if}
|
{$amountPaid|crmMoney:$currency} |
|
|
|
{ts}AMOUNT DUE:{/ts} |
{$amountDue|crmMoney:$currency} |
|
{/if}
|
{if $contribution_status_id == $pendingStatusId && $is_pay_later == 1}
{ts 1=$dueDate}DUE DATE: %1{/ts} |
|
{/if}