mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
use currency for change plan pricing
This commit is contained in:
parent
79e7f82a36
commit
6f5b524b56
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue