bugfix migration ad specs

This commit is contained in:
Rafael Schouten
2014-09-27 18:14:10 +10:00
parent beb85e862a
commit b821107c27
17 changed files with 94 additions and 105 deletions

View File

@@ -3,6 +3,7 @@ angular.module("admin.enterprises")
$scope.Enterprise = Enterprise.enterprise
$scope.PaymentMethods = PaymentMethods.paymentMethods
$scope.ShippingMethods = ShippingMethods.shippingMethods
$scope.Enterprise.sells = "none"
for payment_method in $scope.PaymentMethods
payment_method.selected = payment_method.id in $scope.Enterprise.payment_method_ids
@@ -32,4 +33,4 @@ angular.module("admin.enterprises")
$scope.ShippingMethods.reduce (count, shipping_method) ->
count++ if shipping_method.selected
count
, 0
, 0