diff --git a/client/item/src/diary/index.html b/client/item/src/diary/index.html index e2521c2900..e69d1904c2 100644 --- a/client/item/src/diary/index.html +++ b/client/item/src/diary/index.html @@ -33,9 +33,11 @@ - - {{::sale.date | date:'dd/MM/yyyy' }} + + {{::sale.date | date:'dd/MM/yyyy' }} + diff --git a/client/item/src/diary/index.spec.js b/client/item/src/diary/index.spec.js index adcc15eebb..3a8e710c91 100644 --- a/client/item/src/diary/index.spec.js +++ b/client/item/src/diary/index.spec.js @@ -7,18 +7,13 @@ describe('Item', () => { let $stateParams; let $scope; let controller; - let $httpBackend; - beforeEach(() => { - angular.mock.module('item'); - }); + beforeEach(ngModule('item')); - beforeEach(angular.mock.inject((_$componentController_, $rootScope, _$stateParams_, _$httpBackend_) => { + beforeEach(angular.mock.inject((_$componentController_, $rootScope, _$stateParams_) => { $componentController = _$componentController_; $stateParams = _$stateParams_; $stateParams.id = 1; - $httpBackend = _$httpBackend_; - $httpBackend.when('GET', /\/locale\/\w+\/[a-z]{2}\.json/).respond({}); $scope = $rootScope.$new(); controller = $componentController('vnItemDiary', {$scope: $scope, $stateParams}); controller.$scope.model = crudModel; @@ -99,7 +94,6 @@ describe('Item', () => { }); }); - describe('givenTicketIndex() setter', () => { it(`should return the index position of the line of a given ticket fk`, () => { controller.$scope.model = {data: [ diff --git a/client/item/src/diary/style.scss b/client/item/src/diary/style.scss index 18dbda1aa5..e19c0690f5 100644 --- a/client/item/src/diary/style.scss +++ b/client/item/src/diary/style.scss @@ -14,15 +14,20 @@ vn-item-diary { & vn-autocomplete > div{ width: 400px; } - .balanceNegative .balance { background-color: $main-01; + color: white; + font-weight: bold; } - .isIn .in { background-color: $main-02; + color: white; + font-weight: bold; + } + .isToday .date{ + background-color: rgba(247, 147, 30, 0.5); + font-weight: bold; } - .truncate { max-width: 250px; white-space: nowrap;