Skip to content

Commit

Permalink
Merge pull request #19007 from alexymik/patch-1
Browse files Browse the repository at this point in the history
Check for membership type fee before applying tax
  • Loading branch information
seamuslee001 authored Nov 23, 2020
2 parents a48eea0 + 4e089fd commit a7077eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CRM/Member/BAO/MembershipType.php
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,9 @@ public static function getAllMembershipTypes() {
if ($types[$id]['tax_rate'] !== 0.0) {
$multiplier += ($types[$id]['tax_rate'] / 100);
}
if (!array_key_exists('minimum_fee', $types[$id])) {
$types[$id]['minimum_fee'] = 0;
}
$types[$id]['minimum_fee_with_tax'] = (float) $types[$id]['minimum_fee'] * $multiplier;
}
Civi::cache('metadata')->set($cacheString, $types);
Expand Down

0 comments on commit a7077eb

Please sign in to comment.