use currency for change plan pricing

This commit is contained in:
Henry Oswald 2015-02-06 17:08:42 +00:00
parent 79e7f82a36
commit 6f5b524b56

View file

@ -42,7 +42,7 @@ define [
if $scope.prices[planCode]?
return
pricing = recurly.Pricing()
pricing.plan(planCode, { quantity: 1 }).done (price)->
pricing.plan(planCode, { quantity: 1 }).currency(MultiCurrencyPricing.currencyCode).done (price)->
totalPriceExTax = parseFloat(price.next.total)
$scope.$evalAsync () ->
$scope.prices[planCode] = $scope.currencySymbol + (totalPriceExTax + (totalPriceExTax * taxRate))