From 81792529246bef03cc8bb16005cab8924606ef1a Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Fri, 22 Nov 2019 14:15:36 +0000 Subject: [PATCH] Replace the use of this with --- .../order_cycles/controllers/incoming_controller.js.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/admin/order_cycles/controllers/incoming_controller.js.coffee b/app/assets/javascripts/admin/order_cycles/controllers/incoming_controller.js.coffee index f092dfe18c..dabf9d2bc5 100644 --- a/app/assets/javascripts/admin/order_cycles/controllers/incoming_controller.js.coffee +++ b/app/assets/javascripts/admin/order_cycles/controllers/incoming_controller.js.coffee @@ -4,12 +4,12 @@ angular.module('admin.orderCycles').controller 'AdminOrderCycleIncomingCtrl', ($ $scope.view = 'incoming' $scope.exchangeTotalVariants = (exchange) -> - return unless this.enterprises? && this.enterprises[exchange.enterprise_id]? + return unless $scope.enterprises? && $scope.enterprises[exchange.enterprise_id]? - enterprise = this.enterprises[exchange.enterprise_id] + enterprise = $scope.enterprises[exchange.enterprise_id] return enterprise.numVariants if enterprise.numVariants? - $scope.loadExchangeProducts(this, exchange) + $scope.loadExchangeProducts($scope, exchange) return unless enterprise.supplied_products? enterprise.numVariants = $scope.countVariants(enterprise.supplied_products)