New membership: fix tax amount translation
authorMathieu Lutfy <mathieu@symbiotic.coop>
Fri, 30 Jul 2021 14:41:30 +0000 (10:41 -0400)
committerMathieu Lutfy <mathieu@bidon.ca>
Fri, 30 Jul 2021 14:41:30 +0000 (10:41 -0400)
templates/CRM/Member/Form/Membership.tpl

index 2da528bd352321f1c038a048344749da93f72d87..3387fd890ffeec091840e6d8b925453051af0695 100644 (file)
         var taxAmount = (membershipType['tax_rate']/100)*taxExclusiveAmount;
         taxAmount = isNaN (taxAmount) ? 0:taxAmount;
         cj("#total_amount").val(CRM.formatMoney(taxExclusiveAmount + taxAmount, true));
-
-        var taxMessage = taxAmount > 0 ? 'Includes '+taxTerm+' amount of '+currency+' '+taxAmount:'';
-        cj('.totaltaxAmount').html(taxMessage);
+        cj('.totaltaxAmount').html(allMemberships[membershipTypeID]['tax_message']);
       }