This commit is contained in:
Carlos Jimenez Ruiz 2019-01-24 09:08:38 +01:00
commit 79ee9bb0da
4 changed files with 9 additions and 9 deletions

View File

@ -30,7 +30,7 @@ describe('Client', () => {
expect(controller.notifyChanges).toHaveBeenCalledWith();
});
});
// Excluded due mailer changes #79
// Excluded due mailer changes #1001
xdescribe('notifyChanges()', () => {
it(`should perform a GET query`, () => {
$httpBackend.when('GET', `/mailer/notification/payment-update/101`).respond(true);

View File

@ -43,8 +43,6 @@
<vn-th field="state" >State</vn-th>
<vn-th field="agencyMode">Agency</vn-th>
<vn-th field="warehouse">Warehouse</vn-th>
<vn-th field="refFk" number>Invoice</vn-th>
<vn-th field="routeFk" number>Route</vn-th>
<vn-th number>Total</vn-th>
<vn-th></vn-th>
</vn-tr>
@ -75,8 +73,6 @@
<vn-td class="{{$ctrl.stateColor(ticket)}}">{{::ticket.state}}</vn-td>
<vn-td>{{::ticket.agencyMode}}</vn-td>
<vn-td>{{::ticket.warehouse}}</vn-td>
<vn-td number>{{::ticket.refFk | dashIfEmpty}}</vn-td>
<vn-td number>{{::ticket.routeFk | dashIfEmpty}}</vn-td>
<vn-td number>{{::ticket.total | currency: '€': 2}}</vn-td>
<vn-td>
<vn-icon-button

View File

@ -2,16 +2,17 @@ import ngModule from '../module';
import './style.scss';
export default class Controller {
constructor($scope, $state, $stateparams) {
constructor($scope, $state, $stateParams) {
this.$ = $scope;
this.$stateparams = $stateparams;
this.$stateParams = $stateParams;
this.$state = $state;
this.selectedTicket = null;
this.moreOptions = [
{callback: this.goToTurns, name: 'Turns', always: true},
];
if (!$state && !$stateparams) {
if (!$stateParams.q) {
console.log($stateParams);
let today = new Date();
let offset = today.getTimezoneOffset() * 60000;
today.setHours(0, 0, 0, 0);
@ -96,7 +97,7 @@ export default class Controller {
}
}
Controller.$inject = ['$scope', '$state'];
Controller.$inject = ['$scope', '$state', '$stateParams'];
ngModule.component('vnTicketIndex', {
template: require('./index.html'),

View File

@ -17,6 +17,9 @@
<vn-label-value label="Package size"
value="{{$ctrl.summary.packages}}">
</vn-label-value>
<vn-label-value label="Invoice"
value="{{$ctrl.summary.refFk}}">
</vn-label-value>
</vn-one>
<vn-one>
<vn-label-value label="Shipped"