From 780fff6fb7f03993ff332176228c02bea60e7a55 Mon Sep 17 00:00:00 2001 From: samuelsov Date: Tue, 18 Aug 2015 11:28:03 -0400 Subject: [PATCH] CRM-16561 - translatable tax invoice template --- .../contribution_invoice_receipt_html.tpl | 85 +++++++++---------- 1 file changed, 42 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 e51ffe6bcb..e88f1bd39b 100644 --- a/xml/templates/message_templates/contribution_invoice_receipt_html.tpl +++ b/xml/templates/message_templates/contribution_invoice_receipt_html.tpl @@ -13,9 +13,9 @@
- + - + @@ -35,7 +35,7 @@ - + @@ -54,7 +54,7 @@ - + @@ -79,11 +79,11 @@
INVOICE{ts}INVOICE{/ts} Invoice Date:{ts}Invoice Date:{/ts} {$domain_organization}
{$street_address} {$supplemental_address_1} Invoice Number:{ts}Invoice Number:{/ts} {if $domain_supplemental_address_2 }{$domain_supplemental_address_2}{/if} {if $domain_state }{$domain_state}{/if}
{$city} {$postal_code} Reference:{ts}Reference:{/ts} {if $domain_country} {$domain_country} {/if} {* FIXME: style this table so that it looks like the text version (justification, etc.) *} - - - + + + - + {foreach from=$lineItem item=value key=priceset name=taxpricevalue} {if $smarty.foreach.taxpricevalue.index eq 0} @@ -100,7 +100,7 @@ {if $value.tax_amount != ''} {else} - + {/if} @@ -108,17 +108,17 @@ - + {foreach from = $dataArray item = value key = priceset} {if $priceset} - + {elseif $priceset == 0} - + {/if} @@ -130,7 +130,7 @@ - + @@ -139,9 +139,9 @@ @@ -152,7 +152,7 @@ - + {/if} @@ -161,7 +161,7 @@ - +
DescriptionQuantityUnit Price{ts}Description{/ts}{ts}Quantity{/ts}{ts}Unit Price{/ts} {$taxTerm} Amount {$defaultCurrency}{ts 1=$defaultCurrency}Amount %1{/ts}
{$value.tax_rate}%No {$taxTerm}{ts 1=$taxTerm}No %1{/ts}{$value.subTotal|crmMoney:$currency}

Sub Total{ts}Sub Total{/ts} {$subTotal|crmMoney:$currency}
TOTAL {$taxTerm} {$priceset}% {ts 1=$taxTerm 2=$priceset}TOTAL %1 %2%{/ts} {$value|crmMoney:$currency} TOTAL NO {$taxTerm}{ts 1=$taxTerm}TOTAL NO %1{/ts} {$value|crmMoney:$currency}
TOTAL {$defaultCurrency}{ts 1=$defaultCurrency}TOTAL %1{/ts} {$amount|crmMoney:$currency}
{if $contribution_status_id == $refundedStatusId} - LESS Amount Credited + {ts}LESS Amount Credited{/ts} {else} - LESS Amount Paid + {ts}LESS Amount Paid{/ts} {/if} {$amount|crmMoney:$currency}
AMOUNT DUE: {ts}AMOUNT DUE:{/ts} {$amountDue|crmMoney:$currency}
DUE DATE: {$dueDate}{ts 1=$dueDate}DUE DATE: %1{/ts}
@@ -175,7 +175,7 @@
-
PAYMENT ADVICE

To:
+
{ts}PAYMENT ADVICE{/ts}

{ts}To: {/ts}
{$domain_organization}
{$domain_street_address} {$domain_supplemental_address_1}
{$domain_supplemental_address_2} {$domain_state}
@@ -189,31 +189,31 @@ - + - + {if $is_pay_later == 1} - + {else} - + {/if} - + @@ -235,9 +235,9 @@
Customer: {ts}Customer: {/ts} {$display_name}
Invoice Number: {ts}Invoice Number: {/ts} {$invoice_id}

Amount Due:{ts}Amount Due:{/ts} {$amount|crmMoney:$currency}
Amount Due: {ts}Amount Due: {/ts} {$amountDue|crmMoney:$currency}
Due Date: {ts}Due Date: {/ts} {$dueDate}
- + - + @@ -259,7 +259,7 @@ - + - + @@ -311,11 +311,11 @@
CREDIT NOTE{ts}CREDIT NOTE{/ts} Date:{ts}Date:{/ts} {$domain_organization}
{$street_address} {$supplemental_address_1} Credit Note Number:{ts}Credit Note Number:{/ts} {if $domain_supplemental_address_2 } {$domain_supplemental_address_2} {/if} @@ -283,7 +283,7 @@
{$city} {$postal_code} Reference:{ts}Reference:{/ts} {if $domain_country} {$domain_country} {/if} {* FIXME: style this table so that it looks like the text version (justification, etc.) *} - - - + + + - + {foreach from=$lineItem item=value key=priceset name=pricevalue} {if $smarty.foreach.pricevalue.index eq 0} @@ -332,7 +332,7 @@ {if $value.tax_amount != ''} {else} - + {/if} @@ -340,17 +340,17 @@ - + {foreach from = $dataArray item = value key = priceset} {if $priceset} - + {elseif $priceset == 0} - + {/if} @@ -362,14 +362,14 @@ - + {if $is_pay_later == 0} - + @@ -378,7 +378,7 @@ - + @@ -404,24 +404,23 @@
DescriptionQuantityUnit Price{ts}Description{/ts}{ts}Quantity{/ts}{ts}Unit Price{/ts} {$taxTerm} Amount {$defaultCurrency}{ts 1=$defaultCurrency}Amount %1{/ts}
{$value.tax_rate}%No {$taxTerm}{ts 1=$taxTerm}No %1{/ts}{$value.subTotal|crmMoney:$currency}

Sub Total{ts}Sub Total{/ts} {$subTotal|crmMoney:$currency}
TOTAL {$taxTerm} {$priceset}% {ts 1=$taxTerm 2=$priceset}TOTAL %1 %2%{/ts} {$value|crmMoney:$currency} TOTAL NO {$taxTerm}{ts 1=$taxTerm}TOTAL NO %1{/ts} {$value|crmMoney:$currency}
TOTAL {$defaultCurrency}{ts 1=$defaultCurrency}TOTAL %1{/ts} {$amount|crmMoney:$currency}
LESS Credit to invoice(s){ts}LESS Credit to invoice(s){/ts} {$amount|crmMoney:$currency}
REMAINING CREDIT{ts}REMAINING CREDIT{/ts} {$amountDue|crmMoney:$currency}
- +
CREDIT ADVICE

Please do not pay on this advice. Deduct the amount of this Credit Note -from your next payment to us

{ts}CREDIT ADVICE{/ts}

{ts}Please do not pay on this advice. Deduct the amount of this Credit Note from your next payment to us{/ts}

- + - + - +
Customer: {ts}Customer:{/ts} {$display_name}
Credit Note#: {ts}Credit Note#:{/ts} {$creditnote_id}

Credit Amount:{ts}Credit Amount:{/ts} {$amount|crmMoney:$currency}
-- 2.25.1