From 91f955ccf5fab1ff1833ce42ef9a3efeb7722663 Mon Sep 17 00:00:00 2001 From: vicent Date: Tue, 13 Dec 2022 09:56:05 +0100 Subject: [PATCH] refactor: move sql changes --- db/changes/10510-december/00-notification_send.sql | 1 - db/changes/225001/.gitkeep | 0 .../00-accountingMovements_add.sql | 0 modules/travel/front/extra-community/index.js | 14 ++++++++------ 4 files changed, 8 insertions(+), 7 deletions(-) delete mode 100644 db/changes/225001/.gitkeep rename db/changes/{10510-december => 225001}/00-accountingMovements_add.sql (100%) diff --git a/db/changes/10510-december/00-notification_send.sql b/db/changes/10510-december/00-notification_send.sql index 7c7c98c75a..a422cebac4 100644 --- a/db/changes/10510-december/00-notification_send.sql +++ b/db/changes/10510-december/00-notification_send.sql @@ -13,7 +13,6 @@ BEGIN * @param vAuthorFk The notification author or %NULL if there is no author * @return The notification id */ - DECLARE vNotificationFk INT; INSERT INTO notificationQueue SET notificationFk = vNotificationName, diff --git a/db/changes/225001/.gitkeep b/db/changes/225001/.gitkeep deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/db/changes/10510-december/00-accountingMovements_add.sql b/db/changes/225001/00-accountingMovements_add.sql similarity index 100% rename from db/changes/10510-december/00-accountingMovements_add.sql rename to db/changes/225001/00-accountingMovements_add.sql diff --git a/modules/travel/front/extra-community/index.js b/modules/travel/front/extra-community/index.js index a4ac487e6c..1fdbbb5a56 100644 --- a/modules/travel/front/extra-community/index.js +++ b/modules/travel/front/extra-community/index.js @@ -44,13 +44,15 @@ class Controller extends Section { } get hasDateRange() { - const userParams = this.$.model.userParams; - const hasLanded = userParams.landedTo; - const hasShipped = userParams.shippedFrom; - const hasContinent = userParams.continent; - const hasWarehouseOut = userParams.warehouseOutFk; + console.log(this.$.model); + // const userParams = Object.assign({}, this.$.model.userParams); + // console.log(userParams); + // const hasLanded = userParams.landedTo; + // const hasShipped = userParams.shippedFrom; + // const hasContinent = userParams.continent; + // const hasWarehouseOut = userParams.warehouseOutFk; - return hasLanded || hasShipped || hasContinent || hasWarehouseOut; + // return hasLanded || hasShipped || hasContinent || hasWarehouseOut; } onDragInterval() {