Fixed row color on sold under 0 but above account authorized overdraft.

This commit is contained in:
Alexis Lahouze 2013-02-07 16:46:55 +01:00
parent a37a69888d
commit 6281e9357b

View File

@ -128,7 +128,7 @@ var EntryController = function($scope, $http, $rootScope, $filter) {
$scope.entryRowClass = function(sold) { $scope.entryRowClass = function(sold) {
if(sold < $scope.account.authorized_overdraft) { if(sold < $scope.account.authorized_overdraft) {
return 'error'; return 'error';
} else if (entry.sold < 0) { } else if (esold < 0) {
return 'warning'; return 'warning';
} }
}; };