From 8228f49eed44f091f32d23ceb4c4e9eac49359b9 Mon Sep 17 00:00:00 2001 From: Joan Date: Mon, 6 Aug 2018 14:25:11 +0200 Subject: [PATCH] Fixed ticket basic data message type --- client/ticket/src/data/step-one/index.js | 2 +- services/print/application/template/sepa-core/sepa-core.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/ticket/src/data/step-one/index.js b/client/ticket/src/data/step-one/index.js index b960fc95b..8ed0065ad 100644 --- a/client/ticket/src/data/step-one/index.js +++ b/client/ticket/src/data/step-one/index.js @@ -102,7 +102,7 @@ class Controller { return true; }, res => { if (res.data.error.message === 'NO_AGENCY_AVAILABLE') - this.vnApp.showSuccess( + this.vnApp.showMessage( this.$translate.instant(`There's no available agency for this landing date`) ); }); diff --git a/services/print/application/template/sepa-core/sepa-core.js b/services/print/application/template/sepa-core/sepa-core.js index 512ae8ce3..b5a8910ee 100644 --- a/services/print/application/template/sepa-core/sepa-core.js +++ b/services/print/application/template/sepa-core/sepa-core.js @@ -1,6 +1,6 @@ var path = require('path'); var database = require(path.join(__dirname, '../../database.js')); -var format = require(path.join(__dirname, '../../util/format.js')); +let strftime = require('strftime'); module.exports = class SepaCore { async getData(params, cb) { @@ -50,6 +50,6 @@ module.exports = class SepaCore { } get currentDate() { - return format.date(new Date(), '/'); + return strftime('%d-%m-%Y', new Date()); } };