Skip to content

Commit

Permalink
Alternate fix to remove extraneous tax display
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Apr 11, 2024
1 parent f4ca4ba commit 8f47458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Price/BAO/PriceField.php
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ public static function buildPriceOptionText($opt, $isDisplayAmounts, $valueField
$taxAmount = $opt['tax_amount'] ?? NULL;
if ($isDisplayAmounts) {
$optionLabel = !empty($optionLabel) ? $optionLabel . '<span class="crm-price-amount-label-separator">&nbsp;-&nbsp;</span>' : '';
if (isset($taxAmount) && $invoicing) {
if ($opt['tax_amount'] && $invoicing) {
$optionLabel = $optionLabel . self::getTaxLabel($opt, $valueFieldName);
}
else {
Expand Down

0 comments on commit 8f47458

Please sign in to comment.