From 161df29e34707a4a11da6aeb8303dd03c9028049 Mon Sep 17 00:00:00 2001 From: Pratiksha Dubey Date: Tue, 15 Jul 2014 12:18:52 +0530 Subject: [PATCH] VAT-578 Modified message template for contribution invoice --- .../contribution_invoice_receipt_html.tpl | 88 ++++++++++--------- 1 file changed, 45 insertions(+), 43 deletions(-) diff --git a/xml/templates/message_templates/contribution_invoice_receipt_html.tpl b/xml/templates/message_templates/contribution_invoice_receipt_html.tpl index 35ddb25572..98e399b484 100644 --- a/xml/templates/message_templates/contribution_invoice_receipt_html.tpl +++ b/xml/templates/message_templates/contribution_invoice_receipt_html.tpl @@ -12,39 +12,39 @@


- +
- + {if $organization_name} - + {else} - + {/if} - + - + - + @@ -55,7 +55,7 @@
TAX INVOICE Invoice Date:Invoice Date: {$organization_name}
{$display_name} ({$organization_name}){$display_name} ({$organization_name}){$display_name}{$display_name} {$invoice_date}
{$street_address} {$supplemental_address_1}{$street_address} {$supplemental_address_1} Incoice Number:
{$supplemental_address_2} {$stateProvinceAbbreviation}{$supplemental_address_2} {$stateProvinceAbbreviation} {$invoice_id}
{$city} {$postal_code}{$city} {$postal_code} Reference:
- +
{* FIXME: style this table so that it looks like the text version (justification, etc.) *} @@ -63,23 +63,25 @@ - + - {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.tax_rate} + {if $value.tax_amount != ''} - {elseif $value.tax_amount != ''} - {else} - + {/if} @@ -94,10 +96,10 @@ {if $priceset} - + {elseif $priceset == 0} - + {/if} @@ -154,17 +156,17 @@
Description Quantity Unit PriceVAT {$taxTerm} Amount {$defaultCurrency}


{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} {$value.tax_rate}%VAT (exempt)No VATNo {$taxTerm}{$value.subTotal|crmMoney:$currency}
TOTAL VAT {$priceset}% TOTAL {$taxTerm} {$priceset}% {$value|crmMoney:$currency} TOTAL NO VATTOTAL NO {$taxTerm} {$value|crmMoney:$currency}
- +
PAYMENT ADVICE

To: {$organization_name}

{$notes}
- +
- + @@ -207,7 +209,7 @@
Customer:
{$display_name}
{$display_name}


- +
@@ -221,27 +223,27 @@ {if $organization_name} - + {else} - + {/if} - + - + - + - + @@ -252,7 +254,7 @@
CREDIT NOTE
{$display_name} ({$organization_name}){$display_name} ({$organization_name}){$display_name}{$display_name} {$invoice_date}
{$street_address} {$supplemental_address_1}{$street_address} {$supplemental_address_1} Credit Note Number:
{$supplemental_address_2} {$stateProvinceAbbreviation}{$supplemental_address_2} {$stateProvinceAbbreviation} {$invoice_id}{$creditnote_id}
{$city} {$postal_code}{$city} {$postal_code} Reference:
- +
{* FIXME: style this table so that it looks like the text version (justification, etc.) *} @@ -260,23 +262,25 @@ - + - {foreach from=$lineItem item=value key=priceset} + {foreach from=$lineItem item=value key=priceset name=pricevalue} + {if $smarty.foreach.pricevalue.index eq 0} + {else} + + {/if} - {if $value.tax_rate} + {if $value.tax_amount != ''} - {elseif $value.tax_amount != ''} - {else} - + {/if} @@ -291,11 +295,11 @@ {if $priceset} - - + + {elseif $priceset == 0} - - + + {/if} {/foreach} @@ -353,20 +357,20 @@
Description Quantity Unit PriceVAT {$taxTerm} Amount {$defaultCurrency}


{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} {$value.tax_rate}%VAT (exempt)No VATNo {$taxTerm}{$value.subTotal|crmMoney:$currency}
TOTAL VAT {$priceset}%{$value|crmMoney:$currency} TOTAL {$taxTerm} {$priceset}%{$value|crmMoney:$currency} TOTAL NO VAT{$value|crmMoney:$currency} TOTAL NO {$taxTerm}{$value|crmMoney:$currency}
- +
CREDIT ADVICE

{$notes}
- +
- + - + @@ -378,8 +382,6 @@
Customer:
{$display_name}
{$display_name}
Credit Note#: {$invoice_id}{$creditnote_id}

- - {/if} -- 2.25.1