{* FIXME: style this table so that it looks like the text version (justification, etc.) *}
- Description |
- Quantity |
- Unit Price |
- VAT |
- Amount {$defaultCurrency} |
+ Description |
+ Quantity |
+ Unit Price |
+ {$taxTerm} |
+ Amount {$defaultCurrency} |
- {foreach from=$lineItem item=value key=priceset}
-
|
+ {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_rate}
- {$value.tax_rate}% |
- {elseif $value.tax_amount != ''}
- VAT (exempt) |
+ {$value.qty} |
+ {$value.unit_price|crmMoney:$currency} |
+ {if $value.tax_amount != ''}
+ {$value.tax_rate}% |
{else}
- No VAT |
+ No {$taxTerm} |
{/if}
- {$value.subTotal|crmMoney:$currency} |
+ {$value.subTotal|crmMoney:$currency} |
{/foreach}
|
|
- Sub Total |
- {$subTotal|crmMoney:$currency} |
+ Sub Total |
+ {$subTotal|crmMoney:$currency} |
{foreach from = $dataArray item = value key = priceset}
|
{if $priceset}
- TOTAL VAT {$priceset}% |
- {$value|crmMoney:$currency} |
+ TOTAL {$taxTerm} {$priceset}% |
+ {$value|crmMoney:$currency} |
{elseif $priceset == 0}
- TOTAL NO VAT |
- {$value|crmMoney:$currency} |
+ TOTAL NO {$taxTerm} |
+ {$value|crmMoney:$currency} |
{/if}
{/foreach}
@@ -111,19 +111,23 @@
|
- TOTAL {$defaultCurrency} |
- {$amount|crmMoney:$currency} |
+ TOTAL {$defaultCurrency} |
+ {$amount|crmMoney:$currency} |
{if $is_pay_later == 0}
|
- {if $contribution_status_id == $refundedStatusId}
- LESS Credit to invoice(s) |
- {else}
- LESS Amount Paid |
- {/if}
- {$amount|crmMoney:$currency} |
+
+
+ {if $contribution_status_id == $refundedStatusId}
+ LESS Amount Credited
+ {else}
+ LESS Amount Paid
+ {/if}
+ |
+
+ {$amount|crmMoney:$currency} |
|
@@ -131,14 +135,11 @@
|
- {if $contribution_status_id == $refundedStatusId}
- REMAINING CREDIT |
- {$amountDue|crmMoney:$currency} |
- {else}
- AMOUNT DUE: |
- {$amountDue|crmMoney:$currency} |
- {/if}
- |
+
+ AMOUNT DUE: |
+ {$amountDue|crmMoney:$currency} |
+
+ |
{/if}
@@ -146,11 +147,9 @@
|
- {if $contribution_status_id == $refundedStatusId}
- |
- {else}
+
DUE DATE: {$dueDate} |
- {/if}
+
|
@@ -163,68 +162,40 @@