[MediaWiki-commits] [Gerrit] wikimedia...crm[master]: Put offline receipt into it's own file

2016-10-25 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: Put offline  receipt into it's own file
..


Put offline  receipt into it's own file

Also fix the currency not showing in the second case on the html receipt.

Bug: T137496

Change-Id: I02c40ff336e15c7eb56771843ca82a7cef439416
---
A sites/all/modules/wmf_civicrm/templates/offline_receipt.html
A sites/all/modules/wmf_civicrm/templates/offline_receipt.txt
A sites/all/modules/wmf_civicrm/update_receipt.php
M sites/all/modules/wmf_civicrm/wmf_civicrm.install
4 files changed, 67 insertions(+), 58 deletions(-)

Approvals:
  Ejegg: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/sites/all/modules/wmf_civicrm/templates/offline_receipt.html 
b/sites/all/modules/wmf_civicrm/templates/offline_receipt.html
new file mode 100644
index 000..75f62c1
--- /dev/null
+++ b/sites/all/modules/wmf_civicrm/templates/offline_receipt.html
@@ -0,0 +1,26 @@
+
+Dear {contact.first_name},
+
+Thank you for your donation of 
{$formValues.total_amount-$totalTaxAmount|crmMoney:$currency} to the Wikimedia 
Foundation. The Wikimedia Foundation is the non-profit organization that 
supports Wikipedia and other free knowledge projects. Our mission is to build 
the most accessible and comprehensive source of free knowledge in the world.
+
+We believe that knowledge is a fundamental human right. As humanity rushes 
into our digital future, we need open, accessible, public spaces to access 
knowledge online. Wikimedia is such a space. Wikipedia delivers free knowledge 
to people, by people, in hundreds of languages around our planet.
+
+Over the course of a year, Wikipedia is edited and read by people on every 
continent, including Antarctica. Nearly half a billion people visit Wikipedia 
every month for everything from preserving cultural heritage, to improving 
cancer detection, to researching homework. They come to learn. They stay and 
discover.
+
+Everyone is a potential Wikipedian. If you don\'t find what you\'re looking 
for on Wikipedia, you can https://en.wikipedia.org/wiki/Special:UserLogin?type=signup&campaign=lila2015\";>start
 creating it yourself. The articles, words, pictures and data are created 
by a diverse community of people who volunteer to share their knowledge with 
the world.
+
+Every day, we ask ourselves how we can increase our impact, and ensure 
Wikipedia and its sister projects are even more accurate, rich, and accessible 
tomorrow than they are today. Your donation will help us get there.
+
+Thank you for keeping us growing and impacting lives another year.
+
+Wikimedia Foundation
+
+Many employers will match employee contributions: please check with your 
company to see if they have a https://wikimediafoundation.org/wiki/Matching_Gifts/form\";>corporate 
matching gift program.
+
+For your records: Your donation, number CNT-{$contactID}, on 
{$receive_date|truncate:10:\'\'|crmDate}
+was {$formValues.total_amount-$totalTaxAmount|crmMoney:$currency}.
+
+
+This letter may serve as a record of your donation. No goods or services 
were provided, in whole or in part, for this contribution. The Wikimedia 
Foundation, Inc. is a non-profit charitable corporation with 501(c)(3) tax 
exempt status in the United States. Our address is 149 New Montgomery, 6th 
Floor, San Francisco, CA, 94105. U.S. tax-exempt number: 20-0049703
+
+
diff --git a/sites/all/modules/wmf_civicrm/templates/offline_receipt.txt 
b/sites/all/modules/wmf_civicrm/templates/offline_receipt.txt
new file mode 100644
index 000..a22078b
--- /dev/null
+++ b/sites/all/modules/wmf_civicrm/templates/offline_receipt.txt
@@ -0,0 +1,22 @@
+Dear {contact.first_name},
+
+Thank you for your donation of 
{$formValues.total_amount-$totalTaxAmount|crmMoney:$currency} to the Wikimedia 
Foundation. The Wikimedia Foundation is the non-profit organization that 
supports Wikipedia and other free knowledge projects. Our mission is to build 
the most accessible and comprehensive source of free knowledge in the world.
+
+We believe that knowledge is a fundamental human right. As humanity rushes 
into our digital future, we need open, accessible, public spaces to access 
knowledge online. Wikimedia is such a space. Wikipedia delivers free knowledge 
to people, by people, in hundreds of languages around our planet.
+
+Over the course of a year, Wikipedia is edited and read by people on every 
continent, including Antarctica. Nearly half a billion people visit Wikipedia 
every month for everything from preserving cultural heritage, to improving 
cancer detection, to researching homework. They come to learn. They stay and 
discover.
+
+Everyone is a potential Wikipedian. If you don\'t find what you\'re looking 
for on Wikipedia, you can start creating it yourself. The articles, words, 
pictures and data are created by a diverse community of people who volunteer to 
share their knowledge with the world.
+
+Every day, w

[MediaWiki-commits] [Gerrit] wikimedia...crm[master]: Put offline receipt into it's own file

2016-10-24 Thread Eileen (Code Review)
Eileen has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/317744

Change subject: Put offline  receipt into it's own file
..

Put offline  receipt into it's own file

Also fix the currency not showing in the second case on the html receipt.

Bug: T137496

Change-Id: I02c40ff336e15c7eb56771843ca82a7cef439416
---
A sites/all/modules/wmf_civicrm/templates/offline_receipt.html
A sites/all/modules/wmf_civicrm/templates/offline_receipt.txt
A sites/all/modules/wmf_civicrm/update_receipt.php
M sites/all/modules/wmf_civicrm/wmf_civicrm.install
4 files changed, 67 insertions(+), 58 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm 
refs/changes/44/317744/1

diff --git a/sites/all/modules/wmf_civicrm/templates/offline_receipt.html 
b/sites/all/modules/wmf_civicrm/templates/offline_receipt.html
new file mode 100644
index 000..75f62c1
--- /dev/null
+++ b/sites/all/modules/wmf_civicrm/templates/offline_receipt.html
@@ -0,0 +1,26 @@
+
+Dear {contact.first_name},
+
+Thank you for your donation of 
{$formValues.total_amount-$totalTaxAmount|crmMoney:$currency} to the Wikimedia 
Foundation. The Wikimedia Foundation is the non-profit organization that 
supports Wikipedia and other free knowledge projects. Our mission is to build 
the most accessible and comprehensive source of free knowledge in the world.
+
+We believe that knowledge is a fundamental human right. As humanity rushes 
into our digital future, we need open, accessible, public spaces to access 
knowledge online. Wikimedia is such a space. Wikipedia delivers free knowledge 
to people, by people, in hundreds of languages around our planet.
+
+Over the course of a year, Wikipedia is edited and read by people on every 
continent, including Antarctica. Nearly half a billion people visit Wikipedia 
every month for everything from preserving cultural heritage, to improving 
cancer detection, to researching homework. They come to learn. They stay and 
discover.
+
+Everyone is a potential Wikipedian. If you don\'t find what you\'re looking 
for on Wikipedia, you can https://en.wikipedia.org/wiki/Special:UserLogin?type=signup&campaign=lila2015\";>start
 creating it yourself. The articles, words, pictures and data are created 
by a diverse community of people who volunteer to share their knowledge with 
the world.
+
+Every day, we ask ourselves how we can increase our impact, and ensure 
Wikipedia and its sister projects are even more accurate, rich, and accessible 
tomorrow than they are today. Your donation will help us get there.
+
+Thank you for keeping us growing and impacting lives another year.
+
+Wikimedia Foundation
+
+Many employers will match employee contributions: please check with your 
company to see if they have a https://wikimediafoundation.org/wiki/Matching_Gifts/form\";>corporate 
matching gift program.
+
+For your records: Your donation, number CNT-{$contactID}, on 
{$receive_date|truncate:10:\'\'|crmDate}
+was {$formValues.total_amount-$totalTaxAmount|crmMoney:$currency}.
+
+
+This letter may serve as a record of your donation. No goods or services 
were provided, in whole or in part, for this contribution. The Wikimedia 
Foundation, Inc. is a non-profit charitable corporation with 501(c)(3) tax 
exempt status in the United States. Our address is 149 New Montgomery, 6th 
Floor, San Francisco, CA, 94105. U.S. tax-exempt number: 20-0049703
+
+
diff --git a/sites/all/modules/wmf_civicrm/templates/offline_receipt.txt 
b/sites/all/modules/wmf_civicrm/templates/offline_receipt.txt
new file mode 100644
index 000..a22078b
--- /dev/null
+++ b/sites/all/modules/wmf_civicrm/templates/offline_receipt.txt
@@ -0,0 +1,22 @@
+Dear {contact.first_name},
+
+Thank you for your donation of 
{$formValues.total_amount-$totalTaxAmount|crmMoney:$currency} to the Wikimedia 
Foundation. The Wikimedia Foundation is the non-profit organization that 
supports Wikipedia and other free knowledge projects. Our mission is to build 
the most accessible and comprehensive source of free knowledge in the world.
+
+We believe that knowledge is a fundamental human right. As humanity rushes 
into our digital future, we need open, accessible, public spaces to access 
knowledge online. Wikimedia is such a space. Wikipedia delivers free knowledge 
to people, by people, in hundreds of languages around our planet.
+
+Over the course of a year, Wikipedia is edited and read by people on every 
continent, including Antarctica. Nearly half a billion people visit Wikipedia 
every month for everything from preserving cultural heritage, to improving 
cancer detection, to researching homework. They come to learn. They stay and 
discover.
+
+Everyone is a potential Wikipedian. If you don\'t find what you\'re looking 
for on Wikipedia, you can start creating it yourself. The articles, words, 
pictures and data are created by a diverse community of people who volunteer to 
s