From fd4979528f76d5ddd464abfea73552e806b13ac5 Mon Sep 17 00:00:00 2001 From: Pratiksha Dubey Date: Thu, 24 Jul 2014 12:44:55 +0530 Subject: [PATCH] VAT-578 Modified message template for refunded contribution --- .../contribution_invoice_receipt_html.tpl | 19 +++++++++++++------ .../contribution_invoice_receipt_html.tpl | 19 +++++++++++++------ 2 files changed, 26 insertions(+), 12 deletions(-) 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 index 98e399b484..f1ee2a2a8c 100644 --- 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 @@ -119,7 +119,13 @@ - LESS Amount Paid + + {if $contribution_status_id == $refundedStatusId} + LESS Amount Credited + {else} + LESS Amount Paid + {/if} + {$amount|crmMoney:$currency} @@ -158,8 +164,8 @@ -
PAYMENT ADVICE

To: - {$organization_name}

{$notes} +
PAYMENT ADVICE

To: + {$organization_name}

{$notes}
@@ -359,9 +365,10 @@
- + diff --git a/xml/templates/message_templates/contribution_invoice_receipt_html.tpl b/xml/templates/message_templates/contribution_invoice_receipt_html.tpl index 98e399b484..f1ee2a2a8c 100644 --- a/xml/templates/message_templates/contribution_invoice_receipt_html.tpl +++ b/xml/templates/message_templates/contribution_invoice_receipt_html.tpl @@ -119,7 +119,13 @@ - + @@ -158,8 +164,8 @@
CREDIT ADVICE

{$notes}
CREDIT ADVICE

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

{$notes}
- +
@@ -376,7 +383,7 @@ - +
Customer:
Credit Amount:{$amount|crmMoney:$currency}{$amount|crmMoney:$currency}
LESS Amount Paid + {if $contribution_status_id == $refundedStatusId} + LESS Amount Credited + {else} + LESS Amount Paid + {/if} + {$amount|crmMoney:$currency}
-
PAYMENT ADVICE

To: - {$organization_name}

{$notes} +
PAYMENT ADVICE

To: + {$organization_name}

{$notes}
@@ -359,9 +365,10 @@
- + -- 2.25.1
CREDIT ADVICE

{$notes}
CREDIT ADVICE

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

{$notes}
- +
@@ -376,7 +383,7 @@ - +
Customer:
Credit Amount:{$amount|crmMoney:$currency}{$amount|crmMoney:$currency}