Преглед изворни кода

use currency for change plan pricing

Henry Oswald пре 11 година
родитељ
комит
6f5b524b56
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      services/web/public/coffee/main/subscription-dashboard.coffee

+ 1 - 1
services/web/public/coffee/main/subscription-dashboard.coffee

@@ -42,7 +42,7 @@ define [
 			if $scope.prices[planCode]?
 			if $scope.prices[planCode]?
 				return
 				return
 			pricing = recurly.Pricing()
 			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)
 				totalPriceExTax = parseFloat(price.next.total)
 				$scope.$evalAsync () ->
 				$scope.$evalAsync () ->
 					$scope.prices[planCode] = $scope.currencySymbol + (totalPriceExTax + (totalPriceExTax * taxRate))
 					$scope.prices[planCode] = $scope.currencySymbol + (totalPriceExTax + (totalPriceExTax * taxRate))