var loadAccount = function (id, isNew) { $scope.alertType = ''; $scope.loadingTimeout = $timeout(function () { $scope.isEditLoading = true; }, 250); accountsService.getAccount(id, isNew, $scope.showFinalized).then(function (data) { $scope.currentAccount = data; $scope.currentAccount.totalBalance = 0; $scope.gridData = $scope.currentAccount.invoices; $scope.currentAccount.fullPhone = $filter('phone')($.trim(data.areaCode) + '' + $.trim(data.phone)); var systemAccounts = ["*GUESTS*", "*RESRVATN*", "*TABLES*", "*DEBIT*"]; $scope.currentAccount.isSystemAccount = false; $scope.isNew = isNew; if (!isNew) { $scope.currentAccount.isSystemAccount = systemAccounts.indexOf($scope.currentAccount.acctName.trim()) >= 0; $scope.getPagedDataAsync($scope.pagingOptions.pageSize, 1); accountsService.getAccountBalance($scope.currentAccount.acctNameHash).then(function (data) { $scope.currentAccount.totalBalance = data.balance; }); } $scope.showForm = true; $scope.alertType = ''; $scope.isEditLoading = false; $timeout.cancel($scope.loadingTimeout); $timeout(function () { $rootScope.$broadcast('sm:resizeContainer'); $rootScope.$broadcast('sm:focus'); }, 0); }); };When I set break point at the very top line of code, it breaks. However, all break points inside the
accountsService.getAccount(id, isNew, $scope.showFinalized).then(function (data) { ...are not executed. However, I can clearly see that the code does execute as the balance and system account are shown correctly.