From 581e9e3ac734fac03a59041d27043225040ccd5e Mon Sep 17 00:00:00 2001 From: Rohan Katkar Date: Fri, 6 Jun 2014 20:58:22 +0530 Subject: [PATCH] VAT-388 Added message templates of contribution invoice receipt for handle upgrade --- .../contribution_invoice_receipt_html.tpl | 240 ++++++++++++++++++ .../contribution_invoice_receipt_subject.tpl | 2 + .../contribution_invoice_receipt_text.tpl | 1 + 3 files changed, 243 insertions(+) create mode 100644 CRM/Upgrade/4.5.alpha1.msg_template/message_templates/contribution_invoice_receipt_html.tpl create mode 100644 CRM/Upgrade/4.5.alpha1.msg_template/message_templates/contribution_invoice_receipt_subject.tpl create mode 100644 CRM/Upgrade/4.5.alpha1.msg_template/message_templates/contribution_invoice_receipt_text.tpl diff --git a/CRM/Upgrade/4.5.alpha1.msg_template/message_templates/contribution_invoice_receipt_html.tpl b/CRM/Upgrade/4.5.alpha1.msg_template/message_templates/contribution_invoice_receipt_html.tpl new file mode 100644 index 0000000000..b836f5440b --- /dev/null +++ b/CRM/Upgrade/4.5.alpha1.msg_template/message_templates/contribution_invoice_receipt_html.tpl @@ -0,0 +1,240 @@ + + + + + + + + + + + +
+
+

+ + + {if $contribution_status_id == $refundedStatusId} + + {else} + + {/if} + + {if $contribution_status_id == $refundedStatusId} + + {else} + + {/if} + + + + {if $organization_name} + + {else} + + {/if} + + + + + + + {if $contribution_status_id == $refundedStatusId} + + {else} + + {/if} + + + + + + + + + + + +
CREDIT NOTETAX INVOICEDate:Invoice Date:{$organization_name}
{$display_name} ({$organization_name}){$display_name}{$invoice_date}
{$street_address} {$supplemental_address_1}Credit Note Number:Incoice Number:
{$supplemental_address_2} {$stateProvinceAbbreviation}{$invoice_id}
{$city} {$postal_code}Reference: {$title}
+ + + + + +
+ {* FIXME: style this table so that it looks like the text version (justification, etc.) *} + + + + + + + + {foreach from=$lineItem item=value key=priceset} + + + + + + {if $value.tax_rate} + + {elseif $value.tax_amount != ''} + + {else} + + {/if} + + + {/foreach} + + + + + + + {foreach from = $dataArray item = value key = priceset} + + + {if $priceset} + + + {elseif $priceset == 0} + + + + {/if} + {/foreach} + + + + + + + + + + + + {if $is_pay_later == 0} + + + {if $contribution_status_id == $refundedStatusId} + + {else} + + {/if} + + + + + + + + + {if $contribution_status_id == $refundedStatusId} + + + {else} + + + {/if} + + + {/if} +


+ + + + + {if $contribution_status_id == $refundedStatusId} + + {else} + + {/if} + + +
Description
Quantity
Unit Price
VAT
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 VAT
{$value.subTotal|crmMoney:$currency}

Sub Total {$subTotal|crmMoney:$currency}
TOTAL VAT {$priceset}%{$value|crmMoney:$currency} TOTAL NO VAT{$value|crmMoney:$currency}

TOTAL {$defaultCurrency}{$amount|crmMoney:$currency}
LESS Credit to invoice(s)LESS Amount Paid{$amount|crmMoney:$currency}

REMAINING CREDIT{$amountDue|crmMoney:$currency}AMOUNT DUE: {$amountDue|crmMoney:$currency}
DUE DATE: {$dueDate}
+
+ + + + + +
+ + {if $contribution_status_id == $refundedStatusId} + + + + + +
CREDIT ADVICE

{$notes}
+ + + + + + + + + + + + + + + + + +
Customer: {$display_name}
Credit Note#: {$invoice_id}

Credit Amount:{$amount|crmMoney:$currency}
+
+ {else} + + + + + +
PAYMENT ADVICE

To: + {$organization_name}

{$notes} +
+ + + + + + + + + + + + + {if $is_pay_later == 1} + + + + + + {else} + + + + + + {/if} + + + + + + + + +
Customer: {$display_name}
Invoice Number: {$invoice_id}

Amount Due:{$amount|crmMoney:$currency}
Amount Due: {$amountDue|crmMoney:$currency}
Due Date: {$dueDate}

+
+ {/if} +
+ + diff --git a/CRM/Upgrade/4.5.alpha1.msg_template/message_templates/contribution_invoice_receipt_subject.tpl b/CRM/Upgrade/4.5.alpha1.msg_template/message_templates/contribution_invoice_receipt_subject.tpl new file mode 100644 index 0000000000..fb7e871ba4 --- /dev/null +++ b/CRM/Upgrade/4.5.alpha1.msg_template/message_templates/contribution_invoice_receipt_subject.tpl @@ -0,0 +1,2 @@ +{if $title}{if $component}{if $component == 'event'} {ts}Event Registration Invoice:-{$title}{/ts}{else}{ts}Contribution Invoice : + {$title}{/ts}{/if}{/if} {else} {ts}Invoice {/ts} {/if} diff --git a/CRM/Upgrade/4.5.alpha1.msg_template/message_templates/contribution_invoice_receipt_text.tpl b/CRM/Upgrade/4.5.alpha1.msg_template/message_templates/contribution_invoice_receipt_text.tpl new file mode 100644 index 0000000000..37e2edf09d --- /dev/null +++ b/CRM/Upgrade/4.5.alpha1.msg_template/message_templates/contribution_invoice_receipt_text.tpl @@ -0,0 +1 @@ +{ts}Contribution Invoice{/ts} -- 2.25.1