X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FPage%2FEventInfo.php;h=778549e3e58e6266d78e16d95fbc44a885a0efd5;hb=1f08219dd209069e9474b3ef8c0f426fa89bdf62;hp=4c302e57c490e23c2ec6bb9f6ca4d7ec82237d27;hpb=a6433fdbf3c2ece57694711a0a0da9257dfa3713;p=civicrm-core.git diff --git a/CRM/Event/Page/EventInfo.php b/CRM/Event/Page/EventInfo.php index 4c302e57c4..778549e3e5 100644 --- a/CRM/Event/Page/EventInfo.php +++ b/CRM/Event/Page/EventInfo.php @@ -129,10 +129,6 @@ class CRM_Event_Page_EventInfo extends CRM_Core_Page { else { $labelClass = 'price_set_field-label'; } - // show tax rate with amount - $invoiceSettings = Civi::settings()->get('contribution_invoice_settings'); - $taxTerm = Civi::settings()->get('tax_term'); - $displayOpt = $invoiceSettings['tax_display_settings'] ?? NULL; foreach ($fieldValues['options'] as $optionId => $optionVal) { if (CRM_Utils_Array::value('visibility_id', $optionVal) != array_search('public', $visibility) && @@ -143,7 +139,7 @@ class CRM_Event_Page_EventInfo extends CRM_Core_Page { $values['feeBlock']['isDisplayAmount'][$fieldCnt] = $fieldValues['is_display_amounts'] ?? NULL; if (Civi::settings()->get('invoicing') && isset($optionVal['tax_amount'])) { - $values['feeBlock']['value'][$fieldCnt] = CRM_Price_BAO_PriceField::getTaxLabel($optionVal, 'amount', $displayOpt, $taxTerm, $eventCurrency); + $values['feeBlock']['value'][$fieldCnt] = CRM_Price_BAO_PriceField::getTaxLabel($optionVal, 'amount', $eventCurrency); $values['feeBlock']['tax_amount'][$fieldCnt] = $optionVal['tax_amount']; } else {