projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3aacfe1
)
Fix invoice being sent instead of receipt if contribution 'is_pay_later' is true
author
Matthew Wire
<mjw@mjwconsult.co.uk>
Wed, 17 May 2023 14:16:28 +0000
(15:16 +0100)
committer
Matthew Wire
<mjw@mjwconsult.co.uk>
Tue, 23 May 2023 17:07:55 +0000
(18:07 +0100)
xml/templates/message_templates/contribution_online_receipt_subject.tpl
patch
|
blob
|
blame
|
history
xml/templates/message_templates/membership_online_receipt_subject.tpl
patch
|
blob
|
blame
|
history
diff --git
a/xml/templates/message_templates/contribution_online_receipt_subject.tpl
b/xml/templates/message_templates/contribution_online_receipt_subject.tpl
index 052dce5bd7487c768fb4a07181a4872ca60c9ca5..43eed64b71bfb8020202ad754cb0ba875d205c87 100644
(file)
--- a/
xml/templates/message_templates/contribution_online_receipt_subject.tpl
+++ b/
xml/templates/message_templates/contribution_online_receipt_subject.tpl
@@
-1
+1
@@
-{if
$is_pay_later
}{ts}Invoice{/ts}{else}{ts}Receipt{/ts}{/if} - {$title} - {contact.display_name}
+{if
'{contribution.contribution_status_id:name}' === 'Pending'
}{ts}Invoice{/ts}{else}{ts}Receipt{/ts}{/if} - {$title} - {contact.display_name}
diff --git
a/xml/templates/message_templates/membership_online_receipt_subject.tpl
b/xml/templates/message_templates/membership_online_receipt_subject.tpl
index 052dce5bd7487c768fb4a07181a4872ca60c9ca5..43eed64b71bfb8020202ad754cb0ba875d205c87 100644
(file)
--- a/
xml/templates/message_templates/membership_online_receipt_subject.tpl
+++ b/
xml/templates/message_templates/membership_online_receipt_subject.tpl
@@
-1
+1
@@
-{if
$is_pay_later
}{ts}Invoice{/ts}{else}{ts}Receipt{/ts}{/if} - {$title} - {contact.display_name}
+{if
'{contribution.contribution_status_id:name}' === 'Pending'
}{ts}Invoice{/ts}{else}{ts}Receipt{/ts}{/if} - {$title} - {contact.display_name}