mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
use currency for change plan pricing
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user