//retrieve event information
$params = ['id' => $this->_id];
+ $values = ['event' => NULL];
CRM_Event_BAO_Event::retrieve($params, $values['event']);
if (!$values['event']['is_active']) {
$this->assign('isShowLocation', CRM_Utils_Array::value('is_show_location', $values['event']));
+ $eventCurrency = CRM_Utils_Array::value('currency', $values['event'], $config->defaultCurrency);
+ $this->assign('eventCurrency', $eventCurrency);
+
// show event fees.
if ($this->_id && !empty($values['event']['is_monetary'])) {
- CRM_Contribute_BAO_Contribution_Utils::overrideDefaultCurrency($values['event']);
//CRM-10434
$discountId = CRM_Core_BAO_Discount::findSet($this->_id, 'civicrm_event');
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) &&
$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);
+ $values['feeBlock']['value'][$fieldCnt] = CRM_Price_BAO_PriceField::getTaxLabel($optionVal, 'amount', $eventCurrency);
$values['feeBlock']['tax_amount'][$fieldCnt] = $optionVal['tax_amount'];
}
else {