From 466114726a81051e5c9f580d015620faece69239 Mon Sep 17 00:00:00 2001 From: pratikshad Date: Tue, 23 Dec 2014 18:28:36 +0530 Subject: [PATCH] CRM-15409 fix issue of printpdf button on popup and spelling mistecks of invoice template and also added new feature into offline membership page to show totaltaxamount with their tax term ---------------------------------------- * CRM-15409: Add Sales Tax and Invoicing support https://issues.civicrm.org/jira/browse/CRM-15409 --- CRM/Member/Form/Membership.php | 7 +++++++ .../contribution_invoice_receipt_html.tpl | 4 ++-- templates/CRM/Member/Form/Membership.tpl | 11 +++++++---- .../contribution_invoice_receipt_html.tpl | 4 ++-- 4 files changed, 18 insertions(+), 8 deletions(-) diff --git a/CRM/Member/Form/Membership.php b/CRM/Member/Form/Membership.php index 38b3d6e432..f52cb84318 100644 --- a/CRM/Member/Form/Membership.php +++ b/CRM/Member/Form/Membership.php @@ -373,6 +373,13 @@ class CRM_Member_Form_Membership extends CRM_Member_Form { } $this->assign('taxRates', json_encode(CRM_Core_PseudoConstant::getTaxRates())); + $config = CRM_Core_Config::singleton(); + $this->assign('currency', $config->defaultCurrencySymbol); + $invoiceSettings = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME,'contribution_invoice_settings'); + $invoicing = CRM_Utils_Array::value('invoicing', $invoiceSettings); + if (isset($invoicing)){ + $this->assign('taxTerm', CRM_Utils_Array::value('tax_term', $invoiceSettings)); + } // build price set form. $buildPriceSet = FALSE; if ($this->_priceSetId || !empty($_POST['price_set_id'])) { diff --git a/CRM/Upgrade/4.6.alpha1.msg_template/message_templates/contribution_invoice_receipt_html.tpl b/CRM/Upgrade/4.6.alpha1.msg_template/message_templates/contribution_invoice_receipt_html.tpl index bb5cf90338..e51ffe6bcb 100644 --- a/CRM/Upgrade/4.6.alpha1.msg_template/message_templates/contribution_invoice_receipt_html.tpl +++ b/CRM/Upgrade/4.6.alpha1.msg_template/message_templates/contribution_invoice_receipt_html.tpl @@ -13,7 +13,7 @@
- + @@ -35,7 +35,7 @@ - + diff --git a/templates/CRM/Member/Form/Membership.tpl b/templates/CRM/Member/Form/Membership.tpl index c24cb02f39..80aa2a3014 100644 --- a/templates/CRM/Member/Form/Membership.tpl +++ b/templates/CRM/Member/Form/Membership.tpl @@ -169,7 +169,7 @@ + {ts}Membership payment amount.{/ts}
@@ -233,7 +233,7 @@ + {ts}Membership payment amount. A contribution record will be created for this amount.{/ts}
@@ -341,7 +341,6 @@ {literal}
TAX INVOICEINVOICE Invoice Date: {$domain_organization}
{$street_address} {$supplemental_address_1} Incoice Number:Invoice Number: {if $domain_supplemental_address_2 }{$domain_supplemental_address_2}{/if} {if $domain_state }{$domain_state}{/if}
{$form.total_amount.label} {$form.total_amount.html}
- {ts}Membership payment amount.{/ts}
{$form.is_different_contribution_contact.label}
{$form.total_amount.label} {$form.total_amount.html}
- {ts}Membership payment amount. A contribution record will be created for this amount.{/ts}
{$form.receive_date.label}