diff --git a/.gitignore b/.gitignore
index 04a977352..b741a2d44 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,10 +2,11 @@ coverage
node_modules
dist
storage
+.idea
npm-debug.log
.eslintcache
datasources.*.json
print.*.json
db.json
junit.xml
-.DS_Store
\ No newline at end of file
+.DS_Store
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 54dc05c7f..b5da1e8e6 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,8 +1,8 @@
-// Coloque su configuración en este archivo para sobrescribir la configuración predeterminada y de usuario.
-{
- // Carácter predeterminado de final de línea.
- "files.eol": "\n",
- "editor.codeActionsOnSave": {
- "source.fixAll.eslint": true
- }
-}
\ No newline at end of file
+// Coloque su configuración en este archivo para sobrescribir la configuración predeterminada y de usuario.
+{
+ // Carácter predeterminado de final de línea.
+ "files.eol": "\n",
+ "editor.codeActionsOnSave": {
+ "source.fixAll.eslint": true
+ }
+}
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 000000000..1c97e65d6
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,20 @@
+# Changelog
+
+All notable changes to this project will be documented in this file.
+
+The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
+and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+
+## [2302.01] - 2023-01-12
+
+### Added
+- [General](Inicio) Permite recuperar la contraseña
+- [Artículo](Datos Básicos) Añadido campo Unidades/Caja
+
+### Changed
+
+### Fixed
+- [General] Al utilizar el traductor de Google se descuadraban los iconos
+
+### Removed
+- [Tickets](Control clientes) Eliminada sección
diff --git a/Dockerfile b/Dockerfile
index 9caaa30a1..a59725f77 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,32 +1,43 @@
-FROM debian:stretch-slim
+FROM debian:bullseye-slim
ENV TZ Europe/Madrid
ARG DEBIAN_FRONTEND=noninteractive
+
+# NodeJs
+
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
ca-certificates \
gnupg2 \
- libfontconfig lftp \
- && apt-get -y install xvfb gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 \
- libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 \
- libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 \
- libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 \
- libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget \
- && curl -sL https://deb.nodesource.com/setup_12.x | bash - \
+ && curl -fsSL https://deb.nodesource.com/setup_14.x | bash - \
+ && apt-get install -y --no-install-recommends nodejs \
+ && npm install -g npm@8.19.2
+
+# Puppeteer
+
+RUN apt-get update \
&& apt-get install -y --no-install-recommends \
- nodejs \
- && apt-get purge -y --auto-remove \
- gnupg2 \
+ libfontconfig lftp xvfb gconf-service libasound2 libatk1.0-0 libc6 \
+ libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 \
+ libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 \
+ libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 \
+ libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 \
+ libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 \
+ fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget \
&& rm -rf /var/lib/apt/lists/* \
&& npm -g install pm2
+# Salix
+
WORKDIR /salix
+
+COPY print/package.json print/package-lock.json print/
+RUN npm --prefix ./print install --omit=dev ./print
+
COPY package.json package-lock.json ./
COPY loopback/package.json loopback/
-COPY print/package.json print/
-RUN npm install --only=prod
-RUN npm --prefix ./print install --only=prod ./print
+RUN npm install --omit=dev
COPY loopback loopback
COPY back back
diff --git a/Jenkinsfile b/Jenkinsfile
index 4a1f9ba54..b1706d802 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,5 +1,4 @@
#!/usr/bin/env groovy
-
pipeline {
agent any
options {
diff --git a/back/methods/account/privileges.js b/back/methods/account/privileges.js
new file mode 100644
index 000000000..5c5e7409d
--- /dev/null
+++ b/back/methods/account/privileges.js
@@ -0,0 +1,78 @@
+const UserError = require('vn-loopback/util/user-error');
+
+module.exports = Self => {
+ Self.remoteMethodCtx('privileges', {
+ description: 'Change role and hasGrant if user has privileges',
+ accepts: [
+ {
+ arg: 'id',
+ type: 'number',
+ required: true,
+ description: 'The user id',
+ http: {source: 'path'}
+ },
+ {
+ arg: 'roleFk',
+ type: 'number',
+ description: 'The new role for user',
+ },
+ {
+ arg: 'hasGrant',
+ type: 'boolean',
+ description: 'Whether to has grant'
+ }
+ ],
+ http: {
+ path: `/:id/privileges`,
+ verb: 'POST'
+ }
+ });
+
+ Self.privileges = async function(ctx, id, roleFk, hasGrant, options) {
+ if (!(hasGrant != null || roleFk)) return;
+
+ const models = Self.app.models;
+ const userId = ctx.req.accessToken.userId;
+
+ const myOptions = {};
+
+ if (typeof options == 'object')
+ Object.assign(myOptions, options);
+
+ const user = await models.Account.findById(userId, {fields: ['hasGrant']}, myOptions);
+
+ const userToUpdate = await models.Account.findById(id, {
+ fields: ['id', 'name', 'hasGrant', 'roleFk', 'password'],
+ include: {
+ relation: 'role',
+ scope: {
+ fields: ['name']
+ }
+ }
+ }, myOptions);
+
+ if (!user.hasGrant)
+ throw new UserError(`You don't have grant privilege`);
+
+ const hasRoleFromUser = await models.Account.hasRole(userId, userToUpdate.role().name, myOptions);
+
+ if (!hasRoleFromUser)
+ throw new UserError(`You don't own the role and you can't assign it to another user`);
+
+ if (hasGrant != null)
+ userToUpdate.hasGrant = hasGrant;
+
+ if (roleFk) {
+ const role = await models.Role.findById(roleFk, {fields: ['name']}, myOptions);
+ const hasRole = await models.Account.hasRole(userId, role.name, myOptions);
+
+ if (!hasRole)
+ throw new UserError(`You don't own the role and you can't assign it to another user`);
+
+ userToUpdate.roleFk = roleFk;
+ }
+
+ await userToUpdate.save(userToUpdate);
+ await models.UserAccount.sync(userToUpdate.name);
+ };
+};
diff --git a/back/methods/account/recover-password.js b/back/methods/account/recover-password.js
new file mode 100644
index 000000000..ddea76829
--- /dev/null
+++ b/back/methods/account/recover-password.js
@@ -0,0 +1,30 @@
+module.exports = Self => {
+ Self.remoteMethod('recoverPassword', {
+ description: 'Send email to the user',
+ accepts: [
+ {
+ arg: 'email',
+ type: 'string',
+ description: 'The email of user',
+ required: true
+ }
+ ],
+ http: {
+ path: `/recoverPassword`,
+ verb: 'POST'
+ }
+ });
+
+ Self.recoverPassword = async function(email) {
+ const models = Self.app.models;
+
+ try {
+ await models.user.resetPassword({email, emailTemplate: 'recover-password'});
+ } catch (err) {
+ if (err.code === 'EMAIL_NOT_FOUND')
+ return;
+ else
+ throw err;
+ }
+ };
+};
diff --git a/back/methods/account/specs/privileges.spec.js b/back/methods/account/specs/privileges.spec.js
new file mode 100644
index 000000000..edfe0f03f
--- /dev/null
+++ b/back/methods/account/specs/privileges.spec.js
@@ -0,0 +1,115 @@
+const models = require('vn-loopback/server/server').models;
+
+describe('account privileges()', () => {
+ const employeeId = 1;
+ const developerId = 9;
+ const sysadminId = 66;
+ const itBossId = 104;
+ const rootId = 100;
+ const clarkKent = 1103;
+
+ it('should throw an error when user not has privileges', async() => {
+ const ctx = {req: {accessToken: {userId: developerId}}};
+ const tx = await models.Account.beginTransaction({});
+
+ let error;
+ try {
+ const options = {transaction: tx};
+
+ await models.Account.privileges(ctx, employeeId, null, true, options);
+
+ await tx.rollback();
+ } catch (e) {
+ error = e;
+ await tx.rollback();
+ }
+
+ expect(error.message).toContain(`You don't have grant privilege`);
+ });
+
+ it('should throw an error when user has privileges but not has the role', async() => {
+ const ctx = {req: {accessToken: {userId: sysadminId}}};
+ const tx = await models.Account.beginTransaction({});
+
+ let error;
+ try {
+ const options = {transaction: tx};
+
+ await models.Account.privileges(ctx, employeeId, rootId, null, options);
+
+ await tx.rollback();
+ } catch (e) {
+ error = e;
+ await tx.rollback();
+ }
+
+ expect(error.message).toContain(`You don't own the role and you can't assign it to another user`);
+ });
+
+ it('should throw an error when user has privileges but not has the role from user', async() => {
+ const ctx = {req: {accessToken: {userId: sysadminId}}};
+ const tx = await models.Account.beginTransaction({});
+
+ let error;
+ try {
+ const options = {transaction: tx};
+
+ await models.Account.privileges(ctx, itBossId, developerId, null, options);
+
+ await tx.rollback();
+ } catch (e) {
+ error = e;
+ await tx.rollback();
+ }
+
+ expect(error.message).toContain(`You don't own the role and you can't assign it to another user`);
+ });
+
+ it('should change role', async() => {
+ const ctx = {req: {accessToken: {userId: sysadminId}}};
+ const tx = await models.Account.beginTransaction({});
+
+ const options = {transaction: tx};
+ const agency = await models.Role.findOne({
+ where: {
+ name: 'agency'
+ }
+ }, options);
+
+ let error;
+ let result;
+ try {
+ await models.Account.privileges(ctx, clarkKent, agency.id, null, options);
+ result = await models.Account.findById(clarkKent, null, options);
+
+ await tx.rollback();
+ } catch (e) {
+ error = e;
+ await tx.rollback();
+ }
+
+ expect(error).not.toBeDefined();
+ expect(result.roleFk).toEqual(agency.id);
+ });
+
+ it('should change hasGrant', async() => {
+ const ctx = {req: {accessToken: {userId: sysadminId}}};
+ const tx = await models.Account.beginTransaction({});
+
+ let error;
+ let result;
+ try {
+ const options = {transaction: tx};
+ await models.Account.privileges(ctx, clarkKent, null, true, options);
+ result = await models.Account.findById(clarkKent, null, options);
+
+ await tx.rollback();
+ } catch (e) {
+ error = e;
+ await tx.rollback();
+ }
+
+ expect(error).not.toBeDefined();
+ expect(result.hasGrant).toBeTruthy();
+ });
+});
diff --git a/back/methods/account/specs/set-password.spec.js b/back/methods/account/specs/set-password.spec.js
index c76fd52b8..fe71873de 100644
--- a/back/methods/account/specs/set-password.spec.js
+++ b/back/methods/account/specs/set-password.spec.js
@@ -1,6 +1,6 @@
const app = require('vn-loopback/server/server');
-describe('account changePassword()', () => {
+describe('account setPassword()', () => {
it('should throw an error when password does not meet requirements', async() => {
let req = app.models.Account.setPassword(1, 'insecurePass');
diff --git a/back/methods/campaign/latest.js b/back/methods/campaign/latest.js
index 20dda8a26..a418f1267 100644
--- a/back/methods/campaign/latest.js
+++ b/back/methods/campaign/latest.js
@@ -29,8 +29,12 @@ module.exports = Self => {
filter = mergeFilters(filter, {where});
const stmt = new ParameterizedSQL(
- `SELECT * FROM campaign`);
+ `SELECT * FROM (`);
+ stmt.merge('SELECT * FROM campaign');
stmt.merge(conn.makeWhere(filter.where));
+ stmt.merge('ORDER BY dated ASC');
+ stmt.merge('LIMIT 10000000000000000000');
+ stmt.merge(') sub');
stmt.merge('GROUP BY code');
stmt.merge(conn.makePagination(filter));
diff --git a/back/methods/chat/notifyIssues.js b/back/methods/chat/notifyIssues.js
index 902ee59cd..f618a6fb1 100644
--- a/back/methods/chat/notifyIssues.js
+++ b/back/methods/chat/notifyIssues.js
@@ -32,7 +32,7 @@ module.exports = Self => {
let message = $t(`There's a new urgent ticket:`);
const ostUri = 'https://cau.verdnatura.es/scp/tickets.php?id=';
tickets.forEach(ticket => {
- message += `\r\n[ID: *${ticket.number}* - ${ticket.subject} (@${ticket.username})](${ostUri + ticket.id})`;
+ message += `\r\n[ID: ${ticket.number} - ${ticket.subject} @${ticket.username}](${ostUri + ticket.id})`;
});
const department = await models.Department.findOne({
@@ -42,7 +42,5 @@ module.exports = Self => {
if (channelName)
return Self.send(ctx, `#${channelName}`, `@all ➔ ${message}`);
-
- return;
};
};
diff --git a/back/methods/chat/sendCheckingPresence.js b/back/methods/chat/sendCheckingPresence.js
index 3bc022429..075591969 100644
--- a/back/methods/chat/sendCheckingPresence.js
+++ b/back/methods/chat/sendCheckingPresence.js
@@ -43,6 +43,9 @@ module.exports = Self => {
if (!recipient)
throw new Error(`Could not send message "${message}" to worker id ${recipientId} from user ${userId}`);
+ if (process.env.NODE_ENV == 'test')
+ message = `[Test:Environment to user ${userId}] ` + message;
+
await models.Chat.create({
senderFk: sender.id,
recipient: `@${recipient.name}`,
diff --git a/back/methods/chat/spec/notifyIssue.spec.js b/back/methods/chat/spec/notifyIssue.spec.js
index e20d43142..1aab51793 100644
--- a/back/methods/chat/spec/notifyIssue.spec.js
+++ b/back/methods/chat/spec/notifyIssue.spec.js
@@ -27,7 +27,7 @@ describe('Chat notifyIssue()', () => {
subject: 'Issue title'}
]);
// eslint-disable-next-line max-len
- const expectedMessage = `@all ➔ There's a new urgent ticket:\r\n[ID: *00001* - Issue title (@batman)](https://cau.verdnatura.es/scp/tickets.php?id=1)`;
+ const expectedMessage = `@all ➔ There's a new urgent ticket:\r\n[ID: 00001 - Issue title @batman](https://cau.verdnatura.es/scp/tickets.php?id=1)`;
const department = await app.models.Department.findById(departmentId);
let orgChatName = department.chatName;
diff --git a/back/methods/collection/setSaleQuantity.js b/back/methods/collection/setSaleQuantity.js
index 644c44a60..b6c56ddc4 100644
--- a/back/methods/collection/setSaleQuantity.js
+++ b/back/methods/collection/setSaleQuantity.js
@@ -26,11 +26,30 @@ module.exports = Self => {
Self.setSaleQuantity = async(saleId, quantity) => {
const models = Self.app.models;
+ const myOptions = {};
+ let tx;
- const sale = await models.Sale.findById(saleId);
- return await sale.updateAttributes({
- originalQuantity: sale.quantity,
- quantity: quantity
- });
+ if (typeof options == 'object')
+ Object.assign(myOptions, options);
+
+ if (!myOptions.transaction) {
+ tx = await Self.beginTransaction({});
+ myOptions.transaction = tx;
+ }
+
+ try {
+ const sale = await models.Sale.findById(saleId, null, myOptions);
+ const saleUpdated = await sale.updateAttributes({
+ originalQuantity: sale.quantity,
+ quantity: quantity
+ }, myOptions);
+
+ if (tx) await tx.commit();
+
+ return saleUpdated;
+ } catch (e) {
+ if (tx) await tx.rollback();
+ throw e;
+ }
};
};
diff --git a/back/methods/collection/spec/setSaleQuantity.spec.js b/back/methods/collection/spec/setSaleQuantity.spec.js
index 5d06a4383..63dc3bd2d 100644
--- a/back/methods/collection/spec/setSaleQuantity.spec.js
+++ b/back/methods/collection/spec/setSaleQuantity.spec.js
@@ -2,15 +2,26 @@ const models = require('vn-loopback/server/server').models;
describe('setSaleQuantity()', () => {
it('should change quantity sale', async() => {
- const saleId = 30;
- const newQuantity = 10;
+ const tx = await models.Ticket.beginTransaction({});
- const originalSale = await models.Sale.findById(saleId);
+ try {
+ const options = {transaction: tx};
- await models.Collection.setSaleQuantity(saleId, newQuantity);
- const updateSale = await models.Sale.findById(saleId);
+ const saleId = 30;
+ const newQuantity = 10;
- expect(updateSale.originalQuantity).toEqual(originalSale.quantity);
- expect(updateSale.quantity).toEqual(newQuantity);
+ const originalSale = await models.Sale.findById(saleId, null, options);
+
+ await models.Collection.setSaleQuantity(saleId, newQuantity, options);
+ const updateSale = await models.Sale.findById(saleId, null, options);
+
+ expect(updateSale.originalQuantity).toEqual(originalSale.quantity);
+ expect(updateSale.quantity).toEqual(newQuantity);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
});
});
diff --git a/back/methods/dms/deleteTrashFiles.js b/back/methods/dms/deleteTrashFiles.js
index e8b342ccc..f14e65e9f 100644
--- a/back/methods/dms/deleteTrashFiles.js
+++ b/back/methods/dms/deleteTrashFiles.js
@@ -17,60 +17,52 @@ module.exports = Self => {
});
Self.deleteTrashFiles = async options => {
- const tx = await Self.beginTransaction({});
const myOptions = {};
if (typeof options == 'object')
Object.assign(myOptions, options);
- if (!myOptions.transaction)
- myOptions.transaction = tx;
+ if (process.env.NODE_ENV == 'test')
+ throw new UserError(`Action not allowed on the test environment`);
- try {
- if (process.env.NODE_ENV == 'test')
- throw new UserError(`Action not allowed on the test environment`);
+ const models = Self.app.models;
+ const DmsContainer = models.DmsContainer;
- const models = Self.app.models;
- const DmsContainer = models.DmsContainer;
+ const trashDmsType = await models.DmsType.findOne({
+ where: {code: 'trash'}
+ }, myOptions);
- const trashDmsType = await models.DmsType.findOne({
- where: {code: 'trash'}
- }, myOptions);
+ const date = new Date();
+ date.setMonth(date.getMonth() - 4);
- const date = new Date();
- date.setMonth(date.getMonth() - 4);
-
- const dmsToDelete = await models.Dms.find({
- where: {
- and: [
- {dmsTypeFk: trashDmsType.id},
- {created: {lt: date}}
- ]
- }
- }, myOptions);
-
- for (let dms of dmsToDelete) {
- const pathHash = DmsContainer.getHash(dms.id);
- const dmsContainer = await DmsContainer.container(pathHash);
- const dstFile = path.join(dmsContainer.client.root, pathHash, dms.file);
- try {
- await fs.unlink(dstFile);
- } catch (err) {
- continue;
- }
- const dstFolder = path.join(dmsContainer.client.root, pathHash);
- try {
- await fs.rmdir(dstFolder);
- await dms.destroy(myOptions);
- } catch (err) {
- await dms.destroy(myOptions);
- }
+ const dmsToDelete = await models.Dms.find({
+ where: {
+ and: [
+ {dmsTypeFk: trashDmsType.id},
+ {created: {lt: date}}
+ ]
}
- if (tx) await tx.commit();
- } catch (e) {
- if (tx) await tx.rollback();
+ }, myOptions);
- throw e;
+ for (let dms of dmsToDelete) {
+ const pathHash = DmsContainer.getHash(dms.id);
+ const dmsContainer = await DmsContainer.container(pathHash);
+ try {
+ const dstFile = path.join(dmsContainer.client.root, pathHash, dms.file);
+ await fs.unlink(dstFile);
+ } catch (err) {
+ if (err.code != 'ENOENT' && dms.file)
+ throw err;
+ }
+
+ await dms.destroy(myOptions);
+
+ const dstFolder = path.join(dmsContainer.client.root, pathHash);
+ try {
+ await fs.rmdir(dstFolder);
+ } catch (err) {
+ continue;
+ }
}
};
};
diff --git a/back/methods/dms/saveSign.js b/back/methods/dms/saveSign.js
new file mode 100644
index 000000000..f668c5ed2
--- /dev/null
+++ b/back/methods/dms/saveSign.js
@@ -0,0 +1,215 @@
+const md5 = require('md5');
+const fs = require('fs-extra');
+
+module.exports = Self => {
+ Self.remoteMethodCtx('saveSign', {
+ description: 'Save sign',
+ accessType: 'WRITE',
+ accepts:
+ [
+ {
+ arg: 'signContent',
+ type: 'string',
+ required: true,
+ description: 'The sign content'
+ }, {
+ arg: 'tickets',
+ type: ['number'],
+ required: true,
+ description: 'The tickets'
+ }, {
+ arg: 'signedTime',
+ type: 'date',
+ description: 'The signed time'
+ }, {
+ arg: 'addressFk',
+ type: 'number',
+ required: true,
+ description: 'The address fk'
+ }
+ ],
+ returns: {
+ type: 'Object',
+ root: true
+ },
+ http: {
+ path: `/saveSign`,
+ verb: 'POST'
+ }
+ });
+
+ async function createGestDoc(ticketId, userFk) {
+ const models = Self.app.models;
+ if (!await gestDocExists(ticketId)) {
+ const result = await models.Ticket.findOne({
+ where: {
+ id: ticketId
+ },
+ include: [
+ {
+ relation: 'warehouse',
+ scope: {
+ fields: ['id']
+ }
+ }, {
+ relation: 'client',
+ scope: {
+ fields: ['name']
+ }
+ }, {
+ relation: 'route',
+ scope: {
+ fields: ['id']
+ }
+ }
+ ]
+ });
+
+ const warehouseFk = result.warehouseFk;
+ const companyFk = result.companyFk;
+ const client = result.client.name;
+ const route = result.route.id;
+
+ const resultDmsType = await models.DmsType.findOne({
+ where: {
+ code: 'Ticket'
+ }
+ });
+
+ const resultDms = await models.Dms.create({
+ dmsTypeFk: resultDmsType.id,
+ reference: ticketId,
+ description: `Ticket ${ticketId} Cliente ${client} Ruta ${route}`,
+ companyFk: companyFk,
+ warehouseFk: warehouseFk,
+ workerFk: userFk
+ });
+
+ return resultDms.insertId;
+ }
+ }
+
+ async function gestDocExists(ticket) {
+ const models = Self.app.models;
+ const result = await models.TicketDms.findOne({
+ where: {
+ ticketFk: ticket
+ },
+ fields: ['dmsFk']
+ });
+
+ if (result == null)
+ return false;
+
+ const isSigned = await models.Ticket.findOne({
+ where: {
+ id: ticket
+ },
+ fields: ['isSigned']
+ });
+
+ if (isSigned)
+ return true;
+ else
+ await models.Dms.destroyById(ticket);
+ }
+
+ async function dmsRecover(ticket, signContent) {
+ const models = Self.app.models;
+ await models.DmsRecover.create({
+ ticketFk: ticket,
+ sign: signContent
+ });
+ }
+
+ async function ticketGestdoc(ticket, dmsFk) {
+ const models = Self.app.models;
+ models.TicketDms.replaceOrCreate({
+ ticketFk: ticket,
+ dmsFk: dmsFk
+ });
+
+ const queryVnTicketSetState = `CALL vn.ticket_setState(?, ?)`;
+
+ await Self.rawSql(queryVnTicketSetState, [ticket, 'DELIVERED']);
+ }
+
+ async function updateGestdoc(file, ticket) {
+ const models = Self.app.models;
+ models.Dms.updateOne({
+ where: {
+ id: ticket
+ },
+ file: file,
+ contentType: 'image/png'
+ });
+ }
+
+ Self.saveSign = async(ctx, signContent, tickets, signedTime) => {
+ const models = Self.app.models;
+ let tx = await Self.beginTransaction({});
+ try {
+ const userId = ctx.req.accessToken.userId;
+
+ const dmsDir = `storage/dms`;
+
+ let image = null;
+
+ for (let i = 0; i < tickets.length; i++) {
+ const alertLevel = await models.TicketState.findOne({
+ where: {
+ ticketFk: tickets[i]
+ },
+ fields: ['alertLevel']
+ });
+
+ signedTime ? signedTime != undefined : signedTime = new Date();
+
+ if (alertLevel >= 2) {
+ let dir;
+ let id = null;
+ let fileName = null;
+
+ if (!await gestDocExists(tickets[i])) {
+ id = await createGestDoc(tickets[i], userId);
+
+ const hashDir = md5(id).substring(0, 3);
+ dir = `${dmsDir}/${hashDir}`;
+
+ if (!fs.existsSync(dir))
+ fs.mkdirSync(dir);
+
+ fileName = `${id}.png`;
+ image = `${dir}/${fileName}`;
+ } else
+
+ if (image != null) {
+ if (!fs.existsSync(dir))
+ dmsRecover(tickets[i], signContent);
+ else {
+ fs.writeFile(image, signContent, 'base64', async function(err) {
+ if (err) {
+ await tx.rollback();
+ return err.message;
+ }
+ });
+ }
+ } else
+ dmsRecover(tickets[i], signContent);
+
+ if (id != null && fileName.length > 0) {
+ ticketGestdoc(tickets[i], id);
+ updateGestdoc(id, fileName);
+ }
+ }
+ }
+
+ if (tx) await tx.commit();
+
+ return 'OK';
+ } catch (err) {
+ await tx.rollback();
+ throw err.message;
+ }
+ };
+};
diff --git a/back/methods/notification/clean.js b/back/methods/notification/clean.js
new file mode 100644
index 000000000..bdc6737df
--- /dev/null
+++ b/back/methods/notification/clean.js
@@ -0,0 +1,49 @@
+module.exports = Self => {
+ Self.remoteMethod('clean', {
+ description: 'clean notifications from queue',
+ accessType: 'WRITE',
+ returns: {
+ type: 'object',
+ root: true
+ },
+ http: {
+ path: `/clean`,
+ verb: 'POST'
+ }
+ });
+
+ Self.clean = async options => {
+ const models = Self.app.models;
+ const status = ['sent', 'error'];
+
+ const myOptions = {};
+ let tx;
+
+ if (typeof options == 'object')
+ Object.assign(myOptions, options);
+
+ if (!myOptions.transaction) {
+ tx = await Self.beginTransaction({});
+ myOptions.transaction = tx;
+ }
+
+ try {
+ const config = await models.NotificationConfig.findOne({}, myOptions);
+
+ if (!config.cleanDays) return;
+
+ const cleanDate = new Date();
+ cleanDate.setDate(cleanDate.getDate() - config.cleanDays);
+
+ await models.NotificationQueue.destroyAll({
+ where: {status: {inq: status}},
+ created: {lt: cleanDate}
+ }, myOptions);
+ } catch (e) {
+ if (tx) await tx.rollback();
+ throw e;
+ }
+
+ if (tx) await tx.commit();
+ };
+};
diff --git a/back/methods/notification/send.js b/back/methods/notification/send.js
new file mode 100644
index 000000000..b2748477d
--- /dev/null
+++ b/back/methods/notification/send.js
@@ -0,0 +1,83 @@
+const {Email} = require('vn-print');
+
+module.exports = Self => {
+ Self.remoteMethod('send', {
+ description: 'Send notifications from queue',
+ accessType: 'WRITE',
+ returns: {
+ type: 'object',
+ root: true
+ },
+ http: {
+ path: `/send`,
+ verb: 'POST'
+ }
+ });
+
+ Self.send = async options => {
+ const models = Self.app.models;
+ const findStatus = 'pending';
+
+ const myOptions = {};
+ if (typeof options == 'object')
+ Object.assign(myOptions, options);
+
+ const notificationQueue = await models.NotificationQueue.find({
+ where: {status: findStatus},
+ include: [
+ {
+ relation: 'notification',
+ scope: {
+ include: {
+ relation: 'subscription',
+ scope: {
+ include: {
+ relation: 'user',
+ scope: {
+ fields: ['name', 'lang'],
+ include: {
+ relation: 'emailUser'
+ }
+ }
+ }
+ }
+ }
+ }
+
+ }
+ ]
+ }, myOptions);
+
+ const statusSent = 'sent';
+ const statusError = 'error';
+
+ for (const queue of notificationQueue) {
+ const queueName = queue.notification().name;
+ const queueParams = JSON.parse(queue.params);
+
+ for (const notificationUser of queue.notification().subscription()) {
+ try {
+ const sendParams = {
+ recipient: notificationUser.user().emailUser().email,
+ lang: notificationUser.user().lang
+ };
+
+ if (notificationUser.userFk == queue.authorFk) {
+ await queue.updateAttribute('status', statusSent);
+ continue;
+ }
+
+ const newParams = Object.assign({}, queueParams, sendParams);
+ const email = new Email(queueName, newParams);
+
+ if (process.env.NODE_ENV != 'test')
+ await email.send();
+
+ await queue.updateAttribute('status', statusSent);
+ } catch (error) {
+ await queue.updateAttribute('status', statusError);
+ }
+ }
+ }
+ };
+};
diff --git a/back/methods/notification/specs/clean.spec.js b/back/methods/notification/specs/clean.spec.js
new file mode 100644
index 000000000..4c9dc563d
--- /dev/null
+++ b/back/methods/notification/specs/clean.spec.js
@@ -0,0 +1,42 @@
+const models = require('vn-loopback/server/server').models;
+
+describe('Notification Clean()', () => {
+ it('should delete old rows with error', async() => {
+ const userId = 9;
+ const status = 'error';
+ const tx = await models.NotificationQueue.beginTransaction({});
+ const options = {transaction: tx};
+
+ const notification = await models.Notification.findOne({}, options);
+ const notificationConfig = await models.NotificationConfig.findOne({});
+
+ const cleanDate = new Date();
+ cleanDate.setDate(cleanDate.getDate() - (notificationConfig.cleanDays + 1));
+
+ let before;
+ let after;
+
+ try {
+ const notificationDelete = await models.NotificationQueue.create({
+ notificationFk: notification.name,
+ authorFk: userId,
+ status: status,
+ created: cleanDate
+ }, options);
+
+ before = await models.NotificationQueue.findById(notificationDelete.id, null, options);
+
+ await models.Notification.clean(options);
+
+ after = await models.NotificationQueue.findById(notificationDelete.id, null, options);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+
+ expect(before.notificationFk).toEqual(notification.name);
+ expect(after).toBe(null);
+ });
+});
diff --git a/back/methods/notification/specs/send.spec.js b/back/methods/notification/specs/send.spec.js
new file mode 100644
index 000000000..f0b186e06
--- /dev/null
+++ b/back/methods/notification/specs/send.spec.js
@@ -0,0 +1,33 @@
+const models = require('vn-loopback/server/server').models;
+
+describe('Notification Send()', () => {
+ it('should send notification', async() => {
+ const statusPending = 'pending';
+ const tx = await models.NotificationQueue.beginTransaction({});
+ const options = {transaction: tx};
+ const filter = {
+ where: {
+ status: statusPending
+ }
+ };
+
+ let before;
+ let after;
+
+ try {
+ before = await models.NotificationQueue.find(filter, options);
+
+ await models.Notification.send(options);
+
+ after = await models.NotificationQueue.find(filter, options);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+
+ expect(before.length).toEqual(3);
+ expect(after.length).toEqual(0);
+ });
+});
diff --git a/back/methods/osticket/closeTicket.js b/back/methods/osticket/closeTicket.js
index 87d54d3b8..33fe5958b 100644
--- a/back/methods/osticket/closeTicket.js
+++ b/back/methods/osticket/closeTicket.js
@@ -1,12 +1,13 @@
const jsdom = require('jsdom');
const mysql = require('mysql');
+const FormData = require('form-data');
module.exports = Self => {
Self.remoteMethodCtx('closeTicket', {
description: 'Close tickets without response from the user',
accessType: 'READ',
returns: {
- type: 'Object',
+ type: 'object',
root: true
},
http: {
@@ -54,9 +55,9 @@ module.exports = Self => {
});
});
- await requestToken();
+ await getRequestToken();
- async function requestToken() {
+ async function getRequestToken() {
const response = await fetch(ostUri);
const result = response.headers.get('set-cookie');
@@ -93,24 +94,45 @@ module.exports = Self => {
await close(token, secondCookie);
}
+ async function getLockCode(token, secondCookie, ticketId) {
+ const ostUri = `${config.host}/ajax.php/lock/ticket/${ticketId}`;
+ const params = {
+ method: 'POST',
+ headers: {
+ 'X-CSRFToken': token,
+ 'Cookie': secondCookie
+ }
+ };
+ const response = await fetch(ostUri, params);
+ const body = await response.text();
+ const json = JSON.parse(body);
+
+ return json.code;
+ }
+
async function close(token, secondCookie) {
for (const ticketId of ticketsId) {
- const ostUri = `${config.host}/ajax.php/tickets/${ticketId}/status`;
- const data = {
- status_id: config.newStatusId,
- comments: config.comment,
- undefined: config.action
- };
+ const lockCode = await getLockCode(token, secondCookie, ticketId);
+ let form = new FormData();
+ form.append('__CSRFToken__', token);
+ form.append('id', ticketId);
+ form.append('a', config.responseType);
+ form.append('lockCode', lockCode);
+ form.append('from_email_id', config.fromEmailId);
+ form.append('reply-to', config.replyTo);
+ form.append('cannedResp', 0);
+ form.append('response', config.comment);
+ form.append('signature', 'none');
+ form.append('reply_status_id', config.newStatusId);
+
+ const ostUri = `${config.host}/tickets.php?id=${ticketId}`;
const params = {
method: 'POST',
- body: new URLSearchParams(data),
+ body: form,
headers: {
- 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
- 'X-CSRFToken': token,
'Cookie': secondCookie
}
};
-
return fetch(ostUri, params);
}
}
diff --git a/back/methods/starred-module/specs/getStarredModules.spec.js b/back/methods/starred-module/specs/getStarredModules.spec.js
index b5d2f25c8..c962bc471 100644
--- a/back/methods/starred-module/specs/getStarredModules.spec.js
+++ b/back/methods/starred-module/specs/getStarredModules.spec.js
@@ -19,11 +19,11 @@ describe('getStarredModules()', () => {
});
it(`should return the starred modules for a given user`, async() => {
- const newStarred = await app.models.StarredModule.create({workerFk: 9, moduleFk: 'Clients', position: 1});
+ const newStarred = await app.models.StarredModule.create({workerFk: 9, moduleFk: 'customer', position: 1});
const starredModules = await app.models.StarredModule.getStarredModules(ctx);
expect(starredModules.length).toEqual(1);
- expect(starredModules[0].moduleFk).toEqual('Clients');
+ expect(starredModules[0].moduleFk).toEqual('customer');
// restores
await app.models.StarredModule.destroyById(newStarred.id);
diff --git a/back/methods/starred-module/specs/setPosition.spec.js b/back/methods/starred-module/specs/setPosition.spec.js
index 6ac9cab16..5421bd62b 100644
--- a/back/methods/starred-module/specs/setPosition.spec.js
+++ b/back/methods/starred-module/specs/setPosition.spec.js
@@ -26,29 +26,29 @@ describe('setPosition()', () => {
const filter = {
where: {
workerFk: ctx.req.accessToken.userId,
- moduleFk: 'Orders'
+ moduleFk: 'order'
}
};
try {
const options = {transaction: tx};
- await app.models.StarredModule.toggleStarredModule(ctx, 'Orders', options);
- await app.models.StarredModule.toggleStarredModule(ctx, 'Clients', options);
+ await app.models.StarredModule.toggleStarredModule(ctx, 'order', options);
+ await app.models.StarredModule.toggleStarredModule(ctx, 'customer', options);
let orders = await app.models.StarredModule.findOne(filter, options);
- filter.where.moduleFk = 'Clients';
+ filter.where.moduleFk = 'customer';
let clients = await app.models.StarredModule.findOne(filter, options);
expect(orders.position).toEqual(1);
expect(clients.position).toEqual(2);
- await app.models.StarredModule.setPosition(ctx, 'Clients', 'left', options);
+ await app.models.StarredModule.setPosition(ctx, 'customer', 'left', options);
- filter.where.moduleFk = 'Clients';
+ filter.where.moduleFk = 'customer';
clients = await app.models.StarredModule.findOne(filter, options);
- filter.where.moduleFk = 'Orders';
+ filter.where.moduleFk = 'order';
orders = await app.models.StarredModule.findOne(filter, options);
expect(clients.position).toEqual(1);
@@ -67,29 +67,29 @@ describe('setPosition()', () => {
const filter = {
where: {
workerFk: ctx.req.accessToken.userId,
- moduleFk: 'Orders'
+ moduleFk: 'order'
}
};
try {
const options = {transaction: tx};
- await app.models.StarredModule.toggleStarredModule(ctx, 'Orders', options);
- await app.models.StarredModule.toggleStarredModule(ctx, 'Clients', options);
+ await app.models.StarredModule.toggleStarredModule(ctx, 'order', options);
+ await app.models.StarredModule.toggleStarredModule(ctx, 'customer', options);
let orders = await app.models.StarredModule.findOne(filter, options);
- filter.where.moduleFk = 'Clients';
+ filter.where.moduleFk = 'customer';
let clients = await app.models.StarredModule.findOne(filter, options);
expect(orders.position).toEqual(1);
expect(clients.position).toEqual(2);
- await app.models.StarredModule.setPosition(ctx, 'Orders', 'right', options);
+ await app.models.StarredModule.setPosition(ctx, 'order', 'right', options);
- filter.where.moduleFk = 'Orders';
+ filter.where.moduleFk = 'order';
orders = await app.models.StarredModule.findOne(filter, options);
- filter.where.moduleFk = 'Clients';
+ filter.where.moduleFk = 'customer';
clients = await app.models.StarredModule.findOne(filter, options);
expect(orders.position).toEqual(2);
@@ -108,35 +108,35 @@ describe('setPosition()', () => {
const filter = {
where: {
workerFk: ctx.req.accessToken.userId,
- moduleFk: 'Items'
+ moduleFk: 'item'
}
};
try {
const options = {transaction: tx};
- await app.models.StarredModule.toggleStarredModule(ctx, 'Clients', options);
- await app.models.StarredModule.toggleStarredModule(ctx, 'Orders', options);
- await app.models.StarredModule.toggleStarredModule(ctx, 'Clients', options);
- await app.models.StarredModule.toggleStarredModule(ctx, 'Orders', options);
- await app.models.StarredModule.toggleStarredModule(ctx, 'Items', options);
- await app.models.StarredModule.toggleStarredModule(ctx, 'Claims', options);
- await app.models.StarredModule.toggleStarredModule(ctx, 'Clients', options);
- await app.models.StarredModule.toggleStarredModule(ctx, 'Orders', options);
- await app.models.StarredModule.toggleStarredModule(ctx, 'Zones', options);
+ await app.models.StarredModule.toggleStarredModule(ctx, 'customer', options);
+ await app.models.StarredModule.toggleStarredModule(ctx, 'order', options);
+ await app.models.StarredModule.toggleStarredModule(ctx, 'customer', options);
+ await app.models.StarredModule.toggleStarredModule(ctx, 'order', options);
+ await app.models.StarredModule.toggleStarredModule(ctx, 'item', options);
+ await app.models.StarredModule.toggleStarredModule(ctx, 'claim', options);
+ await app.models.StarredModule.toggleStarredModule(ctx, 'customer', options);
+ await app.models.StarredModule.toggleStarredModule(ctx, 'order', options);
+ await app.models.StarredModule.toggleStarredModule(ctx, 'zone', options);
const items = await app.models.StarredModule.findOne(filter, options);
- filter.where.moduleFk = 'Claims';
+ filter.where.moduleFk = 'claim';
const claims = await app.models.StarredModule.findOne(filter, options);
- filter.where.moduleFk = 'Clients';
+ filter.where.moduleFk = 'customer';
let clients = await app.models.StarredModule.findOne(filter, options);
- filter.where.moduleFk = 'Orders';
+ filter.where.moduleFk = 'order';
let orders = await app.models.StarredModule.findOne(filter, options);
- filter.where.moduleFk = 'Zones';
+ filter.where.moduleFk = 'zone';
const zones = await app.models.StarredModule.findOne(filter, options);
expect(items.position).toEqual(1);
@@ -145,12 +145,12 @@ describe('setPosition()', () => {
expect(orders.position).toEqual(4);
expect(zones.position).toEqual(5);
- await app.models.StarredModule.setPosition(ctx, 'Clients', 'right', options);
+ await app.models.StarredModule.setPosition(ctx, 'customer', 'right', options);
- filter.where.moduleFk = 'Orders';
+ filter.where.moduleFk = 'order';
orders = await app.models.StarredModule.findOne(filter, options);
- filter.where.moduleFk = 'Clients';
+ filter.where.moduleFk = 'customer';
clients = await app.models.StarredModule.findOne(filter, options);
expect(orders.position).toEqual(3);
@@ -169,31 +169,31 @@ describe('setPosition()', () => {
const filter = {
where: {
workerFk: ctx.req.accessToken.userId,
- moduleFk: 'Items'
+ moduleFk: 'item'
}
};
try {
const options = {transaction: tx};
- await app.models.StarredModule.toggleStarredModule(ctx, 'Items', options);
- await app.models.StarredModule.toggleStarredModule(ctx, 'Clients', options);
- await app.models.StarredModule.toggleStarredModule(ctx, 'Claims', options);
- await app.models.StarredModule.toggleStarredModule(ctx, 'Orders', options);
- await app.models.StarredModule.toggleStarredModule(ctx, 'Zones', options);
+ await app.models.StarredModule.toggleStarredModule(ctx, 'item', options);
+ await app.models.StarredModule.toggleStarredModule(ctx, 'customer', options);
+ await app.models.StarredModule.toggleStarredModule(ctx, 'claim', options);
+ await app.models.StarredModule.toggleStarredModule(ctx, 'order', options);
+ await app.models.StarredModule.toggleStarredModule(ctx, 'zone', options);
const items = await app.models.StarredModule.findOne(filter, options);
- filter.where.moduleFk = 'Clients';
+ filter.where.moduleFk = 'customer';
let clients = await app.models.StarredModule.findOne(filter, options);
- filter.where.moduleFk = 'Claims';
+ filter.where.moduleFk = 'claim';
const claims = await app.models.StarredModule.findOne(filter, options);
- filter.where.moduleFk = 'Orders';
+ filter.where.moduleFk = 'order';
let orders = await app.models.StarredModule.findOne(filter, options);
- filter.where.moduleFk = 'Zones';
+ filter.where.moduleFk = 'zone';
const zones = await app.models.StarredModule.findOne(filter, options);
expect(items.position).toEqual(1);
@@ -202,13 +202,13 @@ describe('setPosition()', () => {
expect(orders.position).toEqual(4);
expect(zones.position).toEqual(5);
- await app.models.StarredModule.toggleStarredModule(ctx, 'Claims', options);
- await app.models.StarredModule.setPosition(ctx, 'Clients', 'right', options);
+ await app.models.StarredModule.toggleStarredModule(ctx, 'claim', options);
+ await app.models.StarredModule.setPosition(ctx, 'customer', 'right', options);
- filter.where.moduleFk = 'Clients';
+ filter.where.moduleFk = 'customer';
clients = await app.models.StarredModule.findOne(filter, options);
- filter.where.moduleFk = 'Orders';
+ filter.where.moduleFk = 'order';
orders = await app.models.StarredModule.findOne(filter, options);
expect(orders.position).toEqual(2);
diff --git a/back/methods/starred-module/specs/toggleStarredModule.spec.js b/back/methods/starred-module/specs/toggleStarredModule.spec.js
index 1aed4f54a..1195834e7 100644
--- a/back/methods/starred-module/specs/toggleStarredModule.spec.js
+++ b/back/methods/starred-module/specs/toggleStarredModule.spec.js
@@ -21,15 +21,15 @@ describe('toggleStarredModule()', () => {
});
it('should create a new starred module and then remove it by calling the method again with same args', async() => {
- const starredModule = await app.models.StarredModule.toggleStarredModule(ctx, 'Orders');
+ const starredModule = await app.models.StarredModule.toggleStarredModule(ctx, 'order');
let starredModules = await app.models.StarredModule.getStarredModules(ctx);
expect(starredModules.length).toEqual(1);
- expect(starredModule.moduleFk).toEqual('Orders');
+ expect(starredModule.moduleFk).toEqual('order');
expect(starredModule.workerFk).toEqual(activeCtx.accessToken.userId);
expect(starredModule.position).toEqual(starredModules.length);
- await app.models.StarredModule.toggleStarredModule(ctx, 'Orders');
+ await app.models.StarredModule.toggleStarredModule(ctx, 'order');
starredModules = await app.models.StarredModule.getStarredModules(ctx);
expect(starredModules.length).toEqual(0);
diff --git a/back/model-config.json b/back/model-config.json
index 830a78fd4..29676e979 100644
--- a/back/model-config.json
+++ b/back/model-config.json
@@ -77,6 +77,21 @@
"Module": {
"dataSource": "vn"
},
+ "Notification": {
+ "dataSource": "vn"
+ },
+ "NotificationAcl": {
+ "dataSource": "vn"
+ },
+ "NotificationConfig": {
+ "dataSource": "vn"
+ },
+ "NotificationQueue": {
+ "dataSource": "vn"
+ },
+ "NotificationSubscription": {
+ "dataSource": "vn"
+ },
"Province": {
"dataSource": "vn"
},
@@ -101,6 +116,9 @@
"Town": {
"dataSource": "vn"
},
+ "Url": {
+ "dataSource": "vn"
+ },
"UserConfig": {
"dataSource": "vn"
},
diff --git a/back/models/account.js b/back/models/account.js
index ba703c68d..c2502380a 100644
--- a/back/models/account.js
+++ b/back/models/account.js
@@ -1,4 +1,7 @@
+/* eslint max-len: ["error", { "code": 150 }]*/
const md5 = require('md5');
+const LoopBackContext = require('loopback-context');
+const {Email} = require('vn-print');
module.exports = Self => {
require('../methods/account/login')(Self);
@@ -6,7 +9,9 @@ module.exports = Self => {
require('../methods/account/acl')(Self);
require('../methods/account/change-password')(Self);
require('../methods/account/set-password')(Self);
+ require('../methods/account/recover-password')(Self);
require('../methods/account/validate-token')(Self);
+ require('../methods/account/privileges')(Self);
// Validations
@@ -26,17 +31,62 @@ module.exports = Self => {
ctx.data.password = md5(ctx.data.password);
});
+ Self.afterRemote('prototype.patchAttributes', async(ctx, instance) => {
+ if (!ctx.args || !ctx.args.data.email) return;
+ const models = Self.app.models;
+
+ const loopBackContext = LoopBackContext.getCurrentContext();
+ const httpCtx = {req: loopBackContext.active};
+ const httpRequest = httpCtx.req.http.req;
+ const headers = httpRequest.headers;
+ const origin = headers.origin;
+ const url = origin.split(':');
+
+ const userId = ctx.instance.id;
+ const user = await models.user.findById(userId);
+
+ class Mailer {
+ async send(verifyOptions, cb) {
+ const params = {
+ url: verifyOptions.verifyHref,
+ recipient: verifyOptions.to,
+ lang: ctx.req.getLocale()
+ };
+
+ const email = new Email('email-verify', params);
+ email.send();
+
+ cb(null, verifyOptions.to);
+ }
+ }
+
+ const options = {
+ type: 'email',
+ to: instance.email,
+ from: {},
+ redirect: `${origin}/#!/account/${instance.id}/basic-data?emailConfirmed`,
+ template: false,
+ mailer: new Mailer,
+ host: url[1].split('/')[2],
+ port: url[2],
+ protocol: url[0],
+ user: Self
+ };
+
+ await user.verify(options);
+ });
+
Self.remoteMethod('getCurrentUserData', {
description: 'Gets the current user data',
accepts: [
{
arg: 'ctx',
- type: 'Object',
+ type: 'object',
http: {source: 'context'}
}
],
returns: {
- type: 'Object',
+ type: 'object',
root: true
},
http: {
@@ -57,7 +107,7 @@ module.exports = Self => {
*
* @param {Integer} userId The user id
* @param {String} name The role name
- * @param {Object} options Options
+ * @param {object} options Options
* @return {Boolean} %true if user has the role, %false otherwise
*/
Self.hasRole = async function(userId, name, options) {
@@ -69,15 +119,15 @@ module.exports = Self => {
* Get all user roles.
*
* @param {Integer} userId The user id
- * @param {Object} options Options
- * @return {Object} User role list
+ * @param {object} options Options
+ * @return {object} User role list
*/
Self.getRoles = async(userId, options) => {
let result = await Self.rawSql(
`SELECT r.name
FROM account.user u
JOIN account.roleRole rr ON rr.role = u.role
- JOIN account.role r ON r.id = rr.inheritsFrom
+ JOIN account.role r ON r.id = rr.inheritsFrom
WHERE u.id = ?`, [userId], options);
let roles = [];
diff --git a/back/models/account.json b/back/models/account.json
index 5f0b05f9b..5e35c711a 100644
--- a/back/models/account.json
+++ b/back/models/account.json
@@ -40,6 +40,9 @@
"email": {
"type": "string"
},
+ "emailVerified": {
+ "type": "boolean"
+ },
"created": {
"type": "date"
},
@@ -48,6 +51,9 @@
},
"image": {
"type": "string"
+ },
+ "hasGrant": {
+ "type": "boolean"
}
},
"relations": {
@@ -85,20 +91,34 @@
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
- },
+ },
+ {
+ "property": "recoverPassword",
+ "accessType": "EXECUTE",
+ "principalType": "ROLE",
+ "principalId": "$everyone",
+ "permission": "ALLOW"
+ },
{
- "property": "logout",
+ "property": "logout",
"accessType": "EXECUTE",
"principalType": "ROLE",
"principalId": "$authenticated",
"permission": "ALLOW"
},
{
- "property": "validateToken",
+ "property": "validateToken",
"accessType": "EXECUTE",
"principalType": "ROLE",
"principalId": "$authenticated",
"permission": "ALLOW"
+ },
+ {
+ "property": "privileges",
+ "accessType": "*",
+ "principalType": "ROLE",
+ "principalId": "$authenticated",
+ "permission": "ALLOW"
}
]
}
diff --git a/back/models/chat.js b/back/models/chat.js
index 95a1e2c29..a18edbd3f 100644
--- a/back/models/chat.js
+++ b/back/models/chat.js
@@ -4,4 +4,23 @@ module.exports = Self => {
require('../methods/chat/sendCheckingPresence')(Self);
require('../methods/chat/notifyIssues')(Self);
require('../methods/chat/sendQueued')(Self);
+
+ Self.observe('before save', async function(ctx) {
+ if (!ctx.isNewInstance) return;
+
+ let {message} = ctx.instance;
+ if (!message) return;
+
+ const parts = message.match(/(?<=\[)[a-zA-Z0-9_\-+!@#$%^&*()={};':"\\|,.<>/?\s]*(?=])/g);
+ if (!parts) return;
+
+ const replacedParts = parts.map(part => {
+ return part.replace(/[!$%^&*()={};':"\\,.<>/?]/g, '');
+ });
+
+ for (const [index, part] of parts.entries())
+ message = message.replace(part, replacedParts[index]);
+
+ ctx.instance.message = message;
+ });
};
diff --git a/back/models/dms.js b/back/models/dms.js
index 24c072f56..fc586201f 100644
--- a/back/models/dms.js
+++ b/back/models/dms.js
@@ -6,6 +6,7 @@ module.exports = Self => {
require('../methods/dms/removeFile')(Self);
require('../methods/dms/updateFile')(Self);
require('../methods/dms/deleteTrashFiles')(Self);
+ require('../methods/dms/saveSign')(Self);
Self.checkRole = async function(ctx, id) {
const models = Self.app.models;
diff --git a/back/models/notification.js b/back/models/notification.js
new file mode 100644
index 000000000..65e82e3c7
--- /dev/null
+++ b/back/models/notification.js
@@ -0,0 +1,4 @@
+module.exports = Self => {
+ require('../methods/notification/send')(Self);
+ require('../methods/notification/clean')(Self);
+};
diff --git a/back/models/notification.json b/back/models/notification.json
new file mode 100644
index 000000000..56f66bf1d
--- /dev/null
+++ b/back/models/notification.json
@@ -0,0 +1,30 @@
+{
+ "name": "Notification",
+ "base": "VnModel",
+ "options": {
+ "mysql": {
+ "table": "util.notification"
+ }
+ },
+ "properties": {
+ "id": {
+ "type": "number",
+ "id": true,
+ "description": "Identifier"
+ },
+ "name": {
+ "type": "string",
+ "required": true
+ },
+ "description": {
+ "type": "string"
+ }
+ },
+ "relations": {
+ "subscription": {
+ "type": "hasMany",
+ "model": "NotificationSubscription",
+ "foreignKey": "notificationFk"
+ }
+ }
+}
\ No newline at end of file
diff --git a/back/models/notificationAcl.json b/back/models/notificationAcl.json
new file mode 100644
index 000000000..e3e97f52d
--- /dev/null
+++ b/back/models/notificationAcl.json
@@ -0,0 +1,21 @@
+{
+ "name": "NotificationAcl",
+ "base": "VnModel",
+ "options": {
+ "mysql": {
+ "table": "util.notificationAcl"
+ }
+ },
+ "relations": {
+ "notification": {
+ "type": "belongsTo",
+ "model": "Notification",
+ "foreignKey": "notificationFk"
+ },
+ "role": {
+ "type": "belongsTo",
+ "model": "Role",
+ "foreignKey": "roleFk"
+ }
+ }
+}
\ No newline at end of file
diff --git a/back/models/notificationConfig.json b/back/models/notificationConfig.json
new file mode 100644
index 000000000..b00ed3675
--- /dev/null
+++ b/back/models/notificationConfig.json
@@ -0,0 +1,19 @@
+{
+ "name": "NotificationConfig",
+ "base": "VnModel",
+ "options": {
+ "mysql": {
+ "table": "util.notificationConfig"
+ }
+ },
+ "properties": {
+ "id": {
+ "type": "number",
+ "id": true,
+ "description": "Identifier"
+ },
+ "cleanDays": {
+ "type": "number"
+ }
+ }
+}
\ No newline at end of file
diff --git a/back/models/notificationQueue.json b/back/models/notificationQueue.json
new file mode 100644
index 000000000..9790ea595
--- /dev/null
+++ b/back/models/notificationQueue.json
@@ -0,0 +1,38 @@
+{
+ "name": "NotificationQueue",
+ "base": "VnModel",
+ "options": {
+ "mysql": {
+ "table": "util.notificationQueue"
+ }
+ },
+ "properties": {
+ "id": {
+ "type": "number",
+ "id": true,
+ "description": "Identifier"
+ },
+ "params": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ },
+ "created": {
+ "type": "date"
+ }
+ },
+ "relations": {
+ "notification": {
+ "type": "belongsTo",
+ "model": "Notification",
+ "foreignKey": "notificationFk",
+ "primaryKey": "name"
+ },
+ "author": {
+ "type": "belongsTo",
+ "model": "Account",
+ "foreignKey": "authorFk"
+ }
+ }
+}
\ No newline at end of file
diff --git a/back/models/notificationSubscription.json b/back/models/notificationSubscription.json
new file mode 100644
index 000000000..43fa6db27
--- /dev/null
+++ b/back/models/notificationSubscription.json
@@ -0,0 +1,33 @@
+{
+ "name": "NotificationSubscription",
+ "base": "VnModel",
+ "options": {
+ "mysql": {
+ "table": "util.notificationSubscription"
+ }
+ },
+ "properties": {
+ "notificationFk": {
+ "type": "number",
+ "id": true,
+ "description": "Identifier"
+ },
+ "userFk": {
+ "type": "number",
+ "id": true,
+ "description": "Identifier"
+ }
+ },
+ "relations": {
+ "notification": {
+ "type": "belongsTo",
+ "model": "Notification",
+ "foreignKey": "notificationFk"
+ },
+ "user": {
+ "type": "belongsTo",
+ "model": "Account",
+ "foreignKey": "userFk"
+ }
+ }
+}
\ No newline at end of file
diff --git a/back/models/osticket-config.json b/back/models/osticket-config.json
index d42632c6a..5a863e7bc 100644
--- a/back/models/osticket-config.json
+++ b/back/models/osticket-config.json
@@ -27,9 +27,6 @@
"newStatusId": {
"type": "number"
},
- "action": {
- "type": "string"
- },
"day": {
"type": "number"
},
@@ -47,6 +44,15 @@
},
"portDb": {
"type": "number"
+ },
+ "responseType": {
+ "type": "string"
+ },
+ "fromEmailId": {
+ "type": "number"
+ },
+ "replyTo": {
+ "type": "string"
}
}
}
\ No newline at end of file
diff --git a/back/models/specs/account.spec.js b/back/models/specs/account.spec.js
index c52bc4378..f31c81b75 100644
--- a/back/models/specs/account.spec.js
+++ b/back/models/specs/account.spec.js
@@ -1,14 +1,14 @@
-const app = require('vn-loopback/server/server');
+const models = require('vn-loopback/server/server').models;
describe('loopback model Account', () => {
it('should return true if the user has the given role', async() => {
- let result = await app.models.Account.hasRole(1, 'employee');
+ let result = await models.Account.hasRole(1, 'employee');
expect(result).toBeTruthy();
});
it('should return false if the user doesnt have the given role', async() => {
- let result = await app.models.Account.hasRole(1, 'administrator');
+ let result = await models.Account.hasRole(1, 'administrator');
expect(result).toBeFalsy();
});
diff --git a/back/models/specs/user.spec.js b/back/models/specs/user.spec.js
new file mode 100644
index 000000000..124afdc0c
--- /dev/null
+++ b/back/models/specs/user.spec.js
@@ -0,0 +1,32 @@
+const models = require('vn-loopback/server/server').models;
+const LoopBackContext = require('loopback-context');
+
+describe('account recoverPassword()', () => {
+ const userId = 1107;
+
+ const activeCtx = {
+ accessToken: {userId: userId},
+ http: {
+ req: {
+ headers: {origin: 'http://localhost'}
+ }
+ }
+ };
+
+ beforeEach(() => {
+ spyOn(LoopBackContext, 'getCurrentContext').and.returnValue({
+ active: activeCtx
+ });
+ });
+
+ it('should send email with token', async() => {
+ const userId = 1107;
+ const user = await models.Account.findById(userId);
+
+ await models.Account.recoverPassword(user.email);
+
+ const result = await models.AccessToken.findOne({where: {userId: userId}});
+
+ expect(result).toBeDefined();
+ });
+});
diff --git a/back/models/url.json b/back/models/url.json
new file mode 100644
index 000000000..8610ff28b
--- /dev/null
+++ b/back/models/url.json
@@ -0,0 +1,25 @@
+{
+ "name": "Url",
+ "base": "VnModel",
+ "options": {
+ "mysql": {
+ "table": "salix.url"
+ }
+ },
+ "properties": {
+ "appName": {
+ "type": "string",
+ "required": true,
+ "id": 1
+ },
+ "environment": {
+ "type": "string",
+ "required": true,
+ "id": 2
+ },
+ "url": {
+ "type": "string",
+ "required": true
+ }
+ }
+}
diff --git a/back/models/user.js b/back/models/user.js
new file mode 100644
index 000000000..b24d702b3
--- /dev/null
+++ b/back/models/user.js
@@ -0,0 +1,27 @@
+const LoopBackContext = require('loopback-context');
+const {Email} = require('vn-print');
+
+module.exports = function(Self) {
+ Self.on('resetPasswordRequest', async function(info) {
+ const loopBackContext = LoopBackContext.getCurrentContext();
+ const httpCtx = {req: loopBackContext.active};
+ const httpRequest = httpCtx.req.http.req;
+ const headers = httpRequest.headers;
+ const origin = headers.origin;
+
+ const user = await Self.app.models.Account.findById(info.user.id);
+ const params = {
+ recipient: info.email,
+ lang: user.lang,
+ url: `${origin}/#!/reset-password?access_token=${info.accessToken.id}`
+ };
+
+ const options = Object.assign({}, info.options);
+ for (const param in options)
+ params[param] = options[param];
+
+ const email = new Email(options.emailTemplate, params);
+
+ return email.send();
+ });
+};
diff --git a/back/tests.js b/back/tests.js
index 809906177..ab6893791 100644
--- a/back/tests.js
+++ b/back/tests.js
@@ -7,13 +7,18 @@ process.on('warning', warning => {
console.log(warning.stack);
});
+process.on('exit', async function() {
+ if (container) await container.rm();
+});
+
+let container;
async function test() {
let isCI = false;
if (process.argv[2] === 'ci')
isCI = true;
- const container = new Docker();
+ container = new Docker();
await container.run(isCI);
dataSources = JSON.parse(JSON.stringify(dataSources));
@@ -46,6 +51,7 @@ async function test() {
jasmine.addReporter(new JunitReporter.JUnitXmlReporter());
jasmine.jasmine.DEFAULT_TIMEOUT_INTERVAL = 30000;
+ jasmine.exitOnCompletion = true;
}
const backSpecs = [
@@ -60,11 +66,10 @@ async function test() {
helpers: [],
});
- jasmine.exitOnCompletion = false;
await jasmine.execute();
if (app) await app.disconnect();
if (container) await container.rm();
- console.log('app disconnected & container removed');
+ console.log('App disconnected & container removed');
}
test();
diff --git a/db/changes/10470-family/00-accountingType.sql b/db/changes/10470-family/00-accountingType.sql
deleted file mode 100644
index 964027e3a..000000000
--- a/db/changes/10470-family/00-accountingType.sql
+++ /dev/null
@@ -1,3 +0,0 @@
-ALTER TABLE `vn`.`accountingType` ADD daysInFuture INT NULL;
-ALTER TABLE `vn`.`accountingType` MODIFY COLUMN daysInFuture int(11) DEFAULT 0 NULL;
-UPDATE `vn`.`accountingType` SET daysInFuture=1 WHERE id=8;
\ No newline at end of file
diff --git a/db/changes/10470-family/00-aclItemType.sql b/db/changes/10470-family/00-aclItemType.sql
deleted file mode 100644
index 836a69dfd..000000000
--- a/db/changes/10470-family/00-aclItemType.sql
+++ /dev/null
@@ -1,4 +0,0 @@
-INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
- VALUES
- ('ItemType', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
- ('ItemType', '*', 'WRITE', 'ALLOW', 'ROLE', 'buyer');
\ No newline at end of file
diff --git a/db/changes/10470-family/00-aclMdb.sql b/db/changes/10470-family/00-aclMdb.sql
deleted file mode 100644
index b02ddc451..000000000
--- a/db/changes/10470-family/00-aclMdb.sql
+++ /dev/null
@@ -1,14 +0,0 @@
-CREATE TABLE IF NOT EXISTS `vn`.`mdbBranch` (
- `name` VARCHAR(255),
- PRIMARY KEY(`name`)
-);
-
-CREATE TABLE IF NOT EXISTS `vn`.`mdbVersion` (
- `app` VARCHAR(255) NOT NULL,
- `branchFk` VARCHAR(255) NOT NULL,
- `version` INT,
- CONSTRAINT `mdbVersion_branchFk` FOREIGN KEY (`branchFk`) REFERENCES `vn`.`mdbBranch` (`name`) ON DELETE CASCADE ON UPDATE CASCADE
-);
-
-INSERT IGNORE INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
- VALUES(318, 'MdbVersion', '*', '*', 'ALLOW', 'ROLE', 'developer');
diff --git a/db/changes/10470-family/00-chat.sql b/db/changes/10470-family/00-chat.sql
deleted file mode 100644
index d4a8f068a..000000000
--- a/db/changes/10470-family/00-chat.sql
+++ /dev/null
@@ -1,13 +0,0 @@
-CREATE TABLE `vn`.`chat` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `senderFk` int(10) unsigned DEFAULT NULL,
- `recipient` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
- `dated` date DEFAULT NULL,
- `checkUserStatus` tinyint(1) DEFAULT NULL,
- `message` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
- `status` tinyint(1) DEFAULT NULL,
- `attempts` int(1) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `chat_FK` (`senderFk`),
- CONSTRAINT `chat_FK` FOREIGN KEY (`senderFk`) REFERENCES `account`.`user` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
\ No newline at end of file
diff --git a/db/changes/10470-family/00-creditInsurance.sql b/db/changes/10470-family/00-creditInsurance.sql
deleted file mode 100644
index 9d4db470b..000000000
--- a/db/changes/10470-family/00-creditInsurance.sql
+++ /dev/null
@@ -1,8 +0,0 @@
-ALTER TABLE `vn`.`creditInsurance` ADD creditClassificationFk int(11) NULL;
-
-UPDATE `vn`.`creditInsurance` AS `destiny`
- SET `destiny`.`creditClassificationFk`= (SELECT creditClassification FROM `vn`.`creditInsurance` AS `origin` WHERE `origin`.id = `destiny`.id);
-
-ALTER TABLE `vn`.`creditInsurance`
- ADD CONSTRAINT `creditInsurance_creditClassificationFk` FOREIGN KEY (`creditClassificationFk`)
- REFERENCES `vn`.`creditClassification` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
\ No newline at end of file
diff --git a/db/changes/10470-family/00-defaultViewConfig.sql b/db/changes/10470-family/00-defaultViewConfig.sql
deleted file mode 100644
index d423599b1..000000000
--- a/db/changes/10470-family/00-defaultViewConfig.sql
+++ /dev/null
@@ -1,3 +0,0 @@
-INSERT INTO `salix`.`defaultViewConfig` (tableCode, columns)
-VALUES ('clientsDetail', '{"id":true,"phone":true,"city":true,"socialName":true,"salesPersonFk":true,"email":true,"name":false,"fi":false,"credit":false,"creditInsurance":false,"mobile":false,"street":false,"countryFk":false,"provinceFk":false,"postcode":false,"created":false,"businessTypeFk":false,"payMethodFk":false,"sageTaxTypeFk":false,"sageTransactionTypeFk":false,"isActive":false,"isVies":false,"isTaxDataChecked":false,"isEqualizated":false,"isFreezed":false,"hasToInvoice":false,"hasToInvoiceByAddress":false,"isToBeMailed":false,"hasLcr":false,"hasCoreVnl":false,"hasSepaVnl":false}');
-
diff --git a/db/changes/10470-family/00-ticket_doRefund.sql b/db/changes/10470-family/00-ticket_doRefund.sql
deleted file mode 100644
index f4ecf29d7..000000000
--- a/db/changes/10470-family/00-ticket_doRefund.sql
+++ /dev/null
@@ -1,127 +0,0 @@
-DROP PROCEDURE IF EXISTS `vn`.`ticket_doRefund`;
-
-DELIMITER $$
-$$
-CREATE DEFINER=`root`@`localhost` PROCEDURE `vn`.`ticket_doRefund`(OUT vNewTicket INT)
-BEGIN
-/**
- * Crea un ticket de abono a partir de tmp.sale y/o tmp.ticketService
- *
- * @return vNewTicket
- */
- DECLARE vDone BIT DEFAULT 0;
- DECLARE vClientFk MEDIUMINT;
- DECLARE vWarehouse TINYINT;
- DECLARE vCompany MEDIUMINT;
- DECLARE vAddress MEDIUMINT;
- DECLARE vRefundAgencyMode INT;
- DECLARE vItemFk INT;
- DECLARE vQuantity DECIMAL (10,2);
- DECLARE vConcept VARCHAR(50);
- DECLARE vPrice DECIMAL (10,2);
- DECLARE vDiscount TINYINT;
- DECLARE vSaleNew INT;
- DECLARE vSaleMain INT;
- DECLARE vZoneFk INT;
- DECLARE vDescription VARCHAR(50);
- DECLARE vTaxClassFk INT;
- DECLARE vTicketServiceTypeFk INT;
- DECLARE vOriginTicket INT;
-
- DECLARE cSales CURSOR FOR
- SELECT s.id, s.itemFk, - s.quantity, s.concept, s.price, s.discount
- FROM tmp.sale s;
-
- DECLARE cTicketServices CURSOR FOR
- SELECT ts.description, - ts.quantity, ts.price, ts.taxClassFk, ts.ticketServiceTypeFk
- FROM tmp.ticketService ts;
-
- DECLARE CONTINUE HANDLER FOR NOT FOUND SET vDone = TRUE;
-
- SELECT sub.ticketFk INTO vOriginTicket
- FROM (
- SELECT s.ticketFk
- FROM tmp.sale s
- UNION ALL
- SELECT ts.ticketFk
- FROM tmp.ticketService ts
- ) sub
- LIMIT 1;
-
- SELECT id INTO vRefundAgencyMode
- FROM agencyMode WHERE `name` = 'ABONO';
-
- SELECT clientFk, warehouseFk, companyFk, addressFk
- INTO vClientFk, vWarehouse, vCompany, vAddress
- FROM ticket
- WHERE id = vOriginTicket;
-
- SELECT id INTO vZoneFk
- FROM zone WHERE agencyModeFk = vRefundAgencyMode
- LIMIT 1;
-
- INSERT INTO vn.ticket (
- clientFk,
- shipped,
- addressFk,
- agencyModeFk,
- nickname,
- warehouseFk,
- companyFk,
- landed,
- zoneFk
- )
- SELECT
- vClientFk,
- CURDATE(),
- vAddress,
- vRefundAgencyMode,
- a.nickname,
- vWarehouse,
- vCompany,
- CURDATE(),
- vZoneFk
- FROM address a
- WHERE a.id = vAddress;
-
- SET vNewTicket = LAST_INSERT_ID();
-
- SET vDone := FALSE;
- OPEN cSales;
- FETCH cSales INTO vSaleMain, vItemFk, vQuantity, vConcept, vPrice, vDiscount;
-
- WHILE NOT vDone DO
-
- INSERT INTO vn.sale(ticketFk, itemFk, quantity, concept, price, discount)
- VALUES( vNewTicket, vItemFk, vQuantity, vConcept, vPrice, vDiscount );
-
- SET vSaleNew = LAST_INSERT_ID();
-
- INSERT INTO vn.saleComponent(saleFk,componentFk,`value`)
- SELECT vSaleNew,componentFk,`value`
- FROM vn.saleComponent
- WHERE saleFk = vSaleMain;
-
- FETCH cSales INTO vSaleMain, vItemFk, vQuantity, vConcept, vPrice, vDiscount;
-
- END WHILE;
- CLOSE cSales;
-
- SET vDone := FALSE;
- OPEN cTicketServices;
- FETCH cTicketServices INTO vDescription, vQuantity, vPrice, vTaxClassFk, vTicketServiceTypeFk;
-
- WHILE NOT vDone DO
-
- INSERT INTO vn.ticketService(description, quantity, price, taxClassFk, ticketFk, ticketServiceTypeFk)
- VALUES(vDescription, vQuantity, vPrice, vTaxClassFk, vNewTicket, vTicketServiceTypeFk);
-
- FETCH cTicketServices INTO vDescription, vQuantity, vPrice, vTaxClassFk, vTicketServiceTypeFk;
-
- END WHILE;
- CLOSE cTicketServices;
-
- INSERT INTO vn.ticketRefund(refundTicketFk, originalTicketFk)
- VALUES(vNewTicket, vOriginTicket);
-END$$
-DELIMITER ;
diff --git a/db/changes/10470-family/01-creditInsuranceTriggers.sql b/db/changes/10470-family/01-creditInsuranceTriggers.sql
deleted file mode 100644
index 53ba3ba11..000000000
--- a/db/changes/10470-family/01-creditInsuranceTriggers.sql
+++ /dev/null
@@ -1,11 +0,0 @@
-DELIMITER $$
-$$
-CREATE DEFINER=`root`@`localhost` TRIGGER `vn`.`creditInsurance_beforeInsert`
- BEFORE INSERT ON `creditInsurance`
- FOR EACH ROW
-BEGIN
- IF NEW.creditClassificationFk THEN
- SET NEW.creditClassification = NEW.creditClassificationFk;
- END IF;
-END$$
-DELIMITER ;
\ No newline at end of file
diff --git a/db/changes/10470-family/01-tableConfig.sql b/db/changes/10470-family/01-tableConfig.sql
deleted file mode 100644
index 685981d90..000000000
--- a/db/changes/10470-family/01-tableConfig.sql
+++ /dev/null
@@ -1 +0,0 @@
-RENAME TABLE `edi`.`fileConfig` to `edi`.`tableConfig`;
\ No newline at end of file
diff --git a/db/changes/10470-family/02-fileConfig.sql b/db/changes/10470-family/02-fileConfig.sql
deleted file mode 100644
index 3109a4616..000000000
--- a/db/changes/10470-family/02-fileConfig.sql
+++ /dev/null
@@ -1,22 +0,0 @@
-CREATE TABLE `edi`.`fileConfig`
-(
- name varchar(25) NOT NULL,
- checksum text NULL,
- keyValue tinyint(1) default true NOT NULL,
- constraint fileConfig_pk
- primary key (name)
-);
-
-create unique index fileConfig_name_uindex
- on `edi`.`fileConfig` (name);
-
-
-INSERT INTO `edi`.`fileConfig` (name, checksum, keyValue)
-VALUES ('FEC010104', null, 0);
-
-INSERT INTO `edi`.`fileConfig` (name, checksum, keyValue)
-VALUES ('VBN020101', null, 1);
-
-INSERT INTO `edi`.`fileConfig` (name, checksum, keyValue)
-VALUES ('florecompc2', null, 1);
-
diff --git a/db/changes/10471-family/00-chat.sql b/db/changes/10471-family/00-chat.sql
deleted file mode 100644
index 6f3c9d437..000000000
--- a/db/changes/10471-family/00-chat.sql
+++ /dev/null
@@ -1,3 +0,0 @@
-ALTER TABLE `vn`.`chat` MODIFY COLUMN message TEXT CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL NULL;
-ALTER TABLE `vn`.`chat` MODIFY COLUMN dated DATETIME DEFAULT NULL NULL;
-ALTER TABLE `vn`.`chat` ADD error TEXT NULL;
diff --git a/db/changes/10472-family/00-creditInsurance.sql b/db/changes/10472-family/00-creditInsurance.sql
deleted file mode 100644
index 4731cfb2a..000000000
--- a/db/changes/10472-family/00-creditInsurance.sql
+++ /dev/null
@@ -1,3 +0,0 @@
-ALTER TABLE `vn`.`creditInsurance`
- ADD CONSTRAINT `creditInsurance_creditClassificationFk` FOREIGN KEY (`creditClassificationFk`)
- REFERENCES `vn`.`creditClassification` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
\ No newline at end of file
diff --git a/db/changes/10480-june/00-ACL.sql b/db/changes/10480-june/00-ACL.sql
deleted file mode 100644
index b13e56e21..000000000
--- a/db/changes/10480-june/00-ACL.sql
+++ /dev/null
@@ -1,21 +0,0 @@
-INSERT INTO `salix`.`ACL` (model,property,accessType,permission,principalType,principalId)
- VALUES
- ('InvoiceOut','refund','WRITE','ALLOW','ROLE','invoicing'),
- ('InvoiceOut','refund','WRITE','ALLOW','ROLE','salesAssistant'),
- ('InvoiceOut','refund','WRITE','ALLOW','ROLE','claimManager'),
- ('Ticket','refund','WRITE','ALLOW','ROLE','invoicing'),
- ('Ticket','refund','WRITE','ALLOW','ROLE','salesAssistant'),
- ('Ticket','refund','WRITE','ALLOW','ROLE','claimManager'),
- ('Sale','refund','WRITE','ALLOW','ROLE','salesAssistant'),
- ('Sale','refund','WRITE','ALLOW','ROLE','claimManager'),
- ('TicketRefund','*','WRITE','ALLOW','ROLE','invoicing'),
- ('ClaimObservation','*','WRITE','ALLOW','ROLE','salesPerson'),
- ('ClaimObservation','*','READ','ALLOW','ROLE','salesPerson'),
- ('Client','setPassword','WRITE','ALLOW','ROLE','salesPerson'),
- ('Client','updateUser','WRITE','ALLOW','ROLE','salesPerson');
-
-DELETE FROM `salix`.`ACL` WHERE id=313;
-
-UPDATE `salix`.`ACL`
- SET principalId='invoicing'
- WHERE id=297;
\ No newline at end of file
diff --git a/db/changes/10480-june/00-aclZoneExclusionGeos.sql b/db/changes/10480-june/00-aclZoneExclusionGeos.sql
deleted file mode 100644
index 4c0f6c991..000000000
--- a/db/changes/10480-june/00-aclZoneExclusionGeos.sql
+++ /dev/null
@@ -1,4 +0,0 @@
-INSERT INTO `salix`.`ACL`(`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
- VALUES
- ('ZoneExclusionGeo', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
- ('ZoneExclusionGeo', '*', 'WRITE', 'ALLOW', 'ROLE', 'deliveryBoss');
\ No newline at end of file
diff --git a/db/changes/10480-june/00-albaran_gestdoc.sql b/db/changes/10480-june/00-albaran_gestdoc.sql
deleted file mode 100644
index a0ba93bd3..000000000
--- a/db/changes/10480-june/00-albaran_gestdoc.sql
+++ /dev/null
@@ -1,2 +0,0 @@
-ALTER TABLE `vn2008`.`albaran_gestdoc` DROP FOREIGN KEY fk_albaran_gestdoc_gestdoc1;
-ALTER TABLE `vn2008`.`albaran_gestdoc` ADD CONSTRAINT albaran_gestdoc_FK FOREIGN KEY (gestdoc_id) REFERENCES `vn`.`dms`(id) ON DELETE CASCADE ON UPDATE CASCADE;
\ No newline at end of file
diff --git a/db/changes/10480-june/00-client.sql b/db/changes/10480-june/00-client.sql
deleted file mode 100644
index 4a39bbdf9..000000000
--- a/db/changes/10480-june/00-client.sql
+++ /dev/null
@@ -1,3 +0,0 @@
-alter table `vn`.`client`
- add hasIncoterms tinyint(1) default 0 not null comment 'Received incoterms authorization from client';
-
diff --git a/db/changes/10480-june/00-deprecations.sql b/db/changes/10480-june/00-deprecations.sql
deleted file mode 100644
index 68becd13e..000000000
--- a/db/changes/10480-june/00-deprecations.sql
+++ /dev/null
@@ -1,13 +0,0 @@
-DROP FUNCTION `account`.`userGetId`;
-DROP FUNCTION `account`.`myUserGetName`;
-DROP FUNCTION `account`.`myUserGetId`;
-DROP FUNCTION `account`.`myUserHasRole`;
-DROP FUNCTION `account`.`myUserHasRoleId`;
-DROP FUNCTION `account`.`userGetName`;
-DROP FUNCTION `account`.`userHasRole`;
-DROP FUNCTION `account`.`userHasRoleId`;
-DROP PROCEDURE `account`.`myUserLogout`;
-DROP PROCEDURE `account`.`userLogin`;
-DROP PROCEDURE `account`.`userLoginWithKey`;
-DROP PROCEDURE `account`.`userLoginWithName`;
-DROP PROCEDURE `account`.`userSetPassword`;
\ No newline at end of file
diff --git a/db/changes/10480-june/00-item.sql b/db/changes/10480-june/00-item.sql
deleted file mode 100644
index a08d3f4c1..000000000
--- a/db/changes/10480-june/00-item.sql
+++ /dev/null
@@ -1 +0,0 @@
-ALTER TABLE `vn`.`item` MODIFY COLUMN description TEXT CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL NULL;
diff --git a/db/changes/10480-june/00-itemType.sql b/db/changes/10480-june/00-itemType.sql
deleted file mode 100644
index d201acf37..000000000
--- a/db/changes/10480-june/00-itemType.sql
+++ /dev/null
@@ -1,5 +0,0 @@
-ALTER TABLE `vn`.`itemType` CHANGE `transaction` transaction__ tinyint(4) DEFAULT 0 NOT NULL;
-ALTER TABLE `vn`.`itemType` CHANGE location location__ varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL NULL;
-ALTER TABLE `vn`.`itemType` CHANGE hasComponents hasComponents__ tinyint(1) DEFAULT 1 NOT NULL;
-ALTER TABLE `vn`.`itemType` CHANGE warehouseFk warehouseFk__ smallint(6) unsigned DEFAULT 60 NOT NULL;
-ALTER TABLE `vn`.`itemType` CHANGE compression compression__ decimal(5,2) DEFAULT 1.00 NULL;
\ No newline at end of file
diff --git a/db/changes/10480-june/00-route.sql b/db/changes/10480-june/00-route.sql
deleted file mode 100644
index beb7d5e41..000000000
--- a/db/changes/10480-june/00-route.sql
+++ /dev/null
@@ -1,10 +0,0 @@
-UPDATE `vn`.`route` r
- JOIN(SELECT r.id, wl.workcenterFk
- FROM `vn`.`route` r
- JOIN `vn`.`routeLog` rl ON rl.originFk = r.id
- JOIN `vn`.`workerLabour` wl ON wl.workerFk = rl.userFk
- AND r.created BETWEEN wl.started AND IFNULL(wl.ended, r.created)
- WHERE r.created BETWEEN '2021-12-01' AND CURDATE()
- AND rl.action = 'insert'
- )sub ON sub.id = r.id
- SET r.commissionWorkCenterFk = sub.workcenterFk;
\ No newline at end of file
diff --git a/db/changes/10480-june/00-sample.sql b/db/changes/10480-june/00-sample.sql
deleted file mode 100644
index 18beb736d..000000000
--- a/db/changes/10480-june/00-sample.sql
+++ /dev/null
@@ -1,2 +0,0 @@
-INSERT INTO `vn`.`sample` (code, description, isVisible, hasCompany, hasPreview, datepickerEnabled)
-VALUES ('incoterms-authorization', 'Autorización de incoterms', 1, 1, 1, 0);
\ No newline at end of file
diff --git a/db/changes/10480-june/00-shelving.sql b/db/changes/10480-june/00-shelving.sql
deleted file mode 100644
index c66d164c4..000000000
--- a/db/changes/10480-june/00-shelving.sql
+++ /dev/null
@@ -1,18 +0,0 @@
-ALTER TABLE `vn`.`itemShelving` DROP FOREIGN KEY itemShelving_fk2;
-ALTER TABLE `vn`.`shelvingLog` DROP FOREIGN KEY shelvingLog_FK_ibfk_1;
-ALTER TABLE `vn`.`smartTag` DROP FOREIGN KEY smartTag_shelving_fk;
-ALTER TABLE `vn`.`workerShelving` DROP FOREIGN KEY workerShelving_shelving_fk;
-
-ALTER TABLE `vn`.`shelving` DROP PRIMARY KEY;
-ALTER TABLE `vn`.`shelving` ADD id INT auto_increment PRIMARY KEY NULL;
-ALTER TABLE `vn`.`shelving` CHANGE id id int(11) auto_increment NOT NULL FIRST;
-ALTER TABLE `vn`.`shelving` ADD CONSTRAINT shelving_UN UNIQUE KEY (code);
-
-ALTER TABLE `vn`.`itemShelving` ADD CONSTRAINT itemShelving_fk2 FOREIGN KEY (shelvingFk) REFERENCES `vn`.`shelving`(code) ON DELETE CASCADE ON UPDATE CASCADE;
-ALTER TABLE `vn`.`shelvingLog` ADD CONSTRAINT shelvingLog_FK_ibfk_1 FOREIGN KEY (originFk) REFERENCES `vn`.`shelving`(code) ON DELETE CASCADE ON UPDATE CASCADE;
-ALTER TABLE `vn`.`smartTag` ADD CONSTRAINT smartTag_FK FOREIGN KEY (shelvingFk) REFERENCES `vn`.`shelving`(code) ON DELETE RESTRICT ON UPDATE CASCADE;
-ALTER TABLE `vn`.`workerShelving` ADD CONSTRAINT workerShelving_FK_1 FOREIGN KEY (shelvingFk) REFERENCES `vn`.`shelving`(code) ON DELETE RESTRICT ON UPDATE CASCADE;
-
-ALTER TABLE vn.shelvingLog DROP FOREIGN KEY shelvingLog_FK_ibfk_1;
-ALTER TABLE vn.shelvingLog MODIFY COLUMN originFk INT NOT NULL;
-ALTER TABLE vn.shelvingLog ADD CONSTRAINT shelvingLog_FK FOREIGN KEY (originFk) REFERENCES vn.shelving(id) ON DELETE CASCADE ON UPDATE CASCADE;
\ No newline at end of file
diff --git a/db/changes/10480-june/00-ticketRefund_beforeUpsert.sql b/db/changes/10480-june/00-ticketRefund_beforeUpsert.sql
deleted file mode 100644
index e6506c5d7..000000000
--- a/db/changes/10480-june/00-ticketRefund_beforeUpsert.sql
+++ /dev/null
@@ -1,21 +0,0 @@
-DROP PROCEDURE IF EXISTS `vn`.`ticketRefund_beforeUpsert`;
-
-DELIMITER $$
-$$
-CREATE DEFINER=`root`@`localhost` PROCEDURE `vn`.`ticketRefund_beforeUpsert`(vRefundTicketFk INT, vOriginalTicketFk INT)
-BEGIN
- DECLARE vAlreadyExists BOOLEAN DEFAULT FALSE;
-
- IF vRefundTicketFk = vOriginalTicketFk THEN
- CALL util.throw('Original ticket and refund ticket has same id');
- END IF;
-
- SELECT COUNT(*) INTO vAlreadyExists
- FROM ticketRefund
- WHERE originalTicketFk = vOriginalTicketFk;
-
- IF vAlreadyExists > 0 THEN
- CALL util.throw('This ticket is already a refund');
- END IF;
-END$$
-DELIMITER ;
diff --git a/db/changes/10480-june/01-claimObservation.sql b/db/changes/10480-june/01-claimObservation.sql
deleted file mode 100644
index 8dc126a9e..000000000
--- a/db/changes/10480-june/01-claimObservation.sql
+++ /dev/null
@@ -1,13 +0,0 @@
-CREATE TABLE `vn`.`claimObservation` (
- `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
- `claimFk` int(10) unsigned NOT NULL,
- `workerFk` int(10) unsigned DEFAULT NULL,
- `text` text COLLATE utf8_unicode_ci NOT NULL,
- `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
- PRIMARY KEY (`id`),
- KEY `worker_key` (`workerFk`),
- KEY `claim_key` (`claimFk`),
- KEY `claimObservation_created_IDX` (`created`) USING BTREE,
- CONSTRAINT `claimObservation_ibfk_1` FOREIGN KEY (`claimFk`) REFERENCES `vn`.`claim` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT `claimObservation_ibfk_2` FOREIGN KEY (`workerFk`) REFERENCES `vn`.`worker` (`id`) ON UPDATE CASCADE
-) COMMENT='Todas las observaciones referentes a una reclamación'
\ No newline at end of file
diff --git a/db/changes/10480-june/02-claimTextMigration.sql b/db/changes/10480-june/02-claimTextMigration.sql
deleted file mode 100644
index fa5f6fe83..000000000
--- a/db/changes/10480-june/02-claimTextMigration.sql
+++ /dev/null
@@ -1,2 +0,0 @@
-INSERT INTO `vn`.`claimObservation` (`claimFk`, `text`, `created`)
-SELECT `id`, `observation`, `created` FROM `vn`.`claim`
\ No newline at end of file
diff --git a/db/changes/10480-june/04-aclParking.sql b/db/changes/10480-june/04-aclParking.sql
deleted file mode 100644
index 05acd68b1..000000000
--- a/db/changes/10480-june/04-aclParking.sql
+++ /dev/null
@@ -1,2 +0,0 @@
-INSERT INTO `salix`.`ACL` (model,property,accessType,permission,principalType,principalId)
- VALUES ('Parking','*','*','ALLOW','ROLE','employee')
\ No newline at end of file
diff --git a/db/changes/10480-june/04-aclShelving.sql b/db/changes/10480-june/04-aclShelving.sql
deleted file mode 100644
index b237dfe0d..000000000
--- a/db/changes/10480-june/04-aclShelving.sql
+++ /dev/null
@@ -1,2 +0,0 @@
-INSERT INTO `salix`.`ACL` (model,property,accessType,permission,principalType,principalId)
- VALUES ('Shelving','*','*','ALLOW','ROLE','employee')
\ No newline at end of file
diff --git a/db/changes/10481-june/00-osTicketConfig.sql b/db/changes/10481-june/00-osTicketConfig.sql
deleted file mode 100644
index ad6662715..000000000
--- a/db/changes/10481-june/00-osTicketConfig.sql
+++ /dev/null
@@ -1,20 +0,0 @@
-CREATE TABLE `vn`.`osTicketConfig` (
- `id` int(11) NOT NULL,
- `host` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `user` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `password` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `oldStatus` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `newStatusId` int(11) DEFAULT NULL,
- `action` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `day` int(11) DEFAULT NULL,
- `comment` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `hostDb` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `userDb` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `passwordDb` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `portDb` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-
-INSERT INTO `vn`.`osTicketConfig`(`id`, `host`, `user`, `password`, `oldStatus`, `newStatusId`, `action`, `day`, `comment`, `hostDb`, `userDb`, `passwordDb`, `portDb`)
- VALUES
- (0, 'https://cau.verdnatura.es/scp', NULL, NULL, 'open', 3, 'Cerrar', 60, 'Este CAU se ha cerrado automáticamente', NULL, NULL, NULL, NULL);
\ No newline at end of file
diff --git a/db/changes/10490-august/00-ACL.sql b/db/changes/224701/00-ACL.sql
similarity index 100%
rename from db/changes/10490-august/00-ACL.sql
rename to db/changes/224701/00-ACL.sql
diff --git a/db/changes/224701/00-acl_receiptPdf.sql b/db/changes/224701/00-acl_receiptPdf.sql
new file mode 100644
index 000000000..42f84b87d
--- /dev/null
+++ b/db/changes/224701/00-acl_receiptPdf.sql
@@ -0,0 +1,3 @@
+INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
+ VALUES
+ ('Receipt', 'receiptPdf', '*', 'ALLOW', 'ROLE', 'salesAssistant');
diff --git a/db/changes/10490-august/00-clientConsumptionQueue.sql b/db/changes/224701/00-clientConsumptionQueue.sql
similarity index 100%
rename from db/changes/10490-august/00-clientConsumptionQueue.sql
rename to db/changes/224701/00-clientConsumptionQueue.sql
diff --git a/db/changes/10490-august/00-invoiceOutQueue.sql b/db/changes/224701/00-invoiceOutQueue.sql
similarity index 100%
rename from db/changes/10490-august/00-invoiceOutQueue.sql
rename to db/changes/224701/00-invoiceOutQueue.sql
diff --git a/db/changes/10490-august/00-itemConfig.sql b/db/changes/224701/00-itemConfig.sql
similarity index 100%
rename from db/changes/10490-august/00-itemConfig.sql
rename to db/changes/224701/00-itemConfig.sql
diff --git a/db/changes/10490-august/00-printConfig.sql b/db/changes/224701/00-printConfig.sql
similarity index 100%
rename from db/changes/10490-august/00-printConfig.sql
rename to db/changes/224701/00-printConfig.sql
diff --git a/db/changes/10490-august/00-sale_afterUpdate.sql b/db/changes/224701/00-sale_afterUpdate.sql
similarity index 100%
rename from db/changes/10490-august/00-sale_afterUpdate.sql
rename to db/changes/224701/00-sale_afterUpdate.sql
diff --git a/db/changes/10490-august/00-sample.sql b/db/changes/224701/00-sample.sql
similarity index 100%
rename from db/changes/10490-august/00-sample.sql
rename to db/changes/224701/00-sample.sql
diff --git a/db/changes/224701/00-user_hasGrant.sql b/db/changes/224701/00-user_hasGrant.sql
new file mode 100644
index 000000000..60d1273d8
--- /dev/null
+++ b/db/changes/224701/00-user_hasGrant.sql
@@ -0,0 +1 @@
+ALTER TABLE `account`.`user` ADD hasGrant TINYINT(1) NOT NULL;
diff --git a/db/changes/224702/00-ACL_workerDisableExcluded.sql b/db/changes/224702/00-ACL_workerDisableExcluded.sql
new file mode 100644
index 000000000..2fd9e8b12
--- /dev/null
+++ b/db/changes/224702/00-ACL_workerDisableExcluded.sql
@@ -0,0 +1,2 @@
+INSERT INTO `salix`.`ACL` (model,property,accessType,permission,principalId)
+ VALUES ('WorkerDisableExcluded','*','*','ALLOW','hr');
\ No newline at end of file
diff --git a/db/changes/10481-june/00-aclOsTicket.sql b/db/changes/224702/00-aclBusiness.sql
similarity index 66%
rename from db/changes/10481-june/00-aclOsTicket.sql
rename to db/changes/224702/00-aclBusiness.sql
index ae2a121f5..8ea2c6d83 100644
--- a/db/changes/10481-june/00-aclOsTicket.sql
+++ b/db/changes/224702/00-aclBusiness.sql
@@ -1,3 +1,3 @@
INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
VALUES
- ('OsTicket', '*', '*', 'ALLOW', 'ROLE', 'employee');
\ No newline at end of file
+ ('Business', '*', '*', 'ALLOW', 'ROLE', 'hr');
\ No newline at end of file
diff --git a/db/changes/10481-june/00-aclOsTicketConfig.sql b/db/changes/224702/00-aclUsesMana.sql
similarity index 65%
rename from db/changes/10481-june/00-aclOsTicketConfig.sql
rename to db/changes/224702/00-aclUsesMana.sql
index ad53ea6ae..5bb7178dd 100644
--- a/db/changes/10481-june/00-aclOsTicketConfig.sql
+++ b/db/changes/224702/00-aclUsesMana.sql
@@ -1,3 +1,3 @@
INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
VALUES
- ('OsTicketConfig', '*', '*', 'ALLOW', 'ROLE', 'it');
\ No newline at end of file
+ ('Sale', 'usesMana', '*', 'ALLOW', 'ROLE', 'employee');
\ No newline at end of file
diff --git a/db/changes/224702/00-defaultPayDem_sameAs_production.sql b/db/changes/224702/00-defaultPayDem_sameAs_production.sql
new file mode 100644
index 000000000..294247338
--- /dev/null
+++ b/db/changes/224702/00-defaultPayDem_sameAs_production.sql
@@ -0,0 +1,2 @@
+INSERT INTO `vn`.`payDem` (id,payDem)
+ VALUES (7,'0');
diff --git a/db/changes/224702/00-invoiceInPdf.sql b/db/changes/224702/00-invoiceInPdf.sql
new file mode 100644
index 000000000..bce256c05
--- /dev/null
+++ b/db/changes/224702/00-invoiceInPdf.sql
@@ -0,0 +1,4 @@
+INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
+ VALUES
+ ('InvoiceIn', 'invoiceInPdf', 'READ', 'ALLOW', 'ROLE', 'administrative'),
+ ('InvoiceIn', 'invoiceInEmail', 'WRITE', 'ALLOW', 'ROLE', 'administrative');
diff --git a/db/changes/224702/00-newSupplier_ACL.sql b/db/changes/224702/00-newSupplier_ACL.sql
new file mode 100644
index 000000000..c88f3de3f
--- /dev/null
+++ b/db/changes/224702/00-newSupplier_ACL.sql
@@ -0,0 +1,2 @@
+INSERT INTO `salix`.`ACL` (model,property,accessType,principalId)
+ VALUES ('Supplier','newSupplier','WRITE','administrative');
diff --git a/db/changes/224702/00-notificationProc.sql b/db/changes/224702/00-notificationProc.sql
new file mode 100644
index 000000000..2cf11b4f1
--- /dev/null
+++ b/db/changes/224702/00-notificationProc.sql
@@ -0,0 +1,23 @@
+DROP FUNCTION IF EXISTS `util`.`notification_send`;
+DELIMITER $$
+CREATE DEFINER=`root`@`localhost` FUNCTION `util`.`notification_send`(vNotificationName VARCHAR(255), vParams TEXT, vAuthorFk INT)
+ RETURNS INT
+ MODIFIES SQL DATA
+BEGIN
+/**
+ * Sends a notification.
+ *
+ * @param vNotificationName The notification name
+ * @param vParams The notification parameters formatted as JSON
+ * @param vAuthorFk The notification author or %NULL if there is no author
+ * @return The notification id
+ */
+
+ INSERT INTO notificationQueue
+ SET notificationFk = vNotificationName,
+ params = vParams,
+ authorFk = vAuthorFk;
+
+ RETURN LAST_INSERT_ID();
+END$$
+DELIMITER ;
diff --git a/db/changes/224702/00-notificationTables.sql b/db/changes/224702/00-notificationTables.sql
new file mode 100644
index 000000000..2db7d9874
--- /dev/null
+++ b/db/changes/224702/00-notificationTables.sql
@@ -0,0 +1,63 @@
+USE util;
+
+CREATE TABLE notification(
+ id INT PRIMARY KEY,
+ `name` VARCHAR(255) UNIQUE,
+ `description` VARCHAR(255)
+);
+
+CREATE TABLE notificationAcl(
+ notificationFk INT,
+ roleFk INT(10) unsigned,
+ PRIMARY KEY(notificationFk, roleFk)
+);
+
+ALTER TABLE `util`.`notificationAcl` ADD CONSTRAINT `notificationAcl_ibfk_1` FOREIGN KEY (`notificationFk`) REFERENCES `util`.`notification` (`id`)
+ ON DELETE CASCADE
+ ON UPDATE CASCADE;
+
+ALTER TABLE `util`.`notificationAcl` ADD CONSTRAINT `notificationAcl_ibfk_2` FOREIGN KEY (`roleFk`) REFERENCES `account`.`role`(`id`)
+ ON DELETE RESTRICT
+ ON UPDATE CASCADE;
+
+CREATE TABLE notificationSubscription(
+ notificationFk INT,
+ userFk INT(10) unsigned,
+ PRIMARY KEY(notificationFk, userFk)
+);
+
+ALTER TABLE `util`.`notificationSubscription` ADD CONSTRAINT `notificationSubscription_ibfk_1` FOREIGN KEY (`notificationFk`) REFERENCES `util`.`notification` (`id`)
+ ON DELETE CASCADE
+ ON UPDATE CASCADE;
+
+ALTER TABLE `util`.`notificationSubscription` ADD CONSTRAINT `notificationSubscription_ibfk_2` FOREIGN KEY (`userFk`) REFERENCES `account`.`user`(`id`)
+ ON DELETE CASCADE
+ ON UPDATE CASCADE;
+
+CREATE TABLE notificationQueue(
+ id INT PRIMARY KEY AUTO_INCREMENT,
+ notificationFk VARCHAR(255),
+ params JSON,
+ authorFk INT(10) unsigned NULL,
+ `status` ENUM('pending', 'sent', 'error') NOT NULL DEFAULT 'pending',
+ created DATETIME DEFAULT CURRENT_TIMESTAMP,
+ INDEX(notificationFk),
+ INDEX(authorFk),
+ INDEX(status)
+);
+
+ALTER TABLE `util`.`notificationQueue` ADD CONSTRAINT `nnotificationQueue_ibfk_1` FOREIGN KEY (`notificationFk`) REFERENCES `util`.`notification` (`name`)
+ ON DELETE CASCADE
+ ON UPDATE CASCADE;
+
+ALTER TABLE `util`.`notificationQueue` ADD CONSTRAINT `notificationQueue_ibfk_2` FOREIGN KEY (`authorFk`) REFERENCES `account`.`user`(`id`)
+ ON DELETE CASCADE
+ ON UPDATE CASCADE;
+
+CREATE TABLE notificationConfig(
+ id INT PRIMARY KEY AUTO_INCREMENT,
+ cleanDays MEDIUMINT
+);
+
+INSERT INTO notificationConfig
+ SET cleanDays = 90;
diff --git a/db/changes/224702/00-payMethodFk_Allow_Null.sql b/db/changes/224702/00-payMethodFk_Allow_Null.sql
new file mode 100644
index 000000000..6d9931d3c
--- /dev/null
+++ b/db/changes/224702/00-payMethodFk_Allow_Null.sql
@@ -0,0 +1 @@
+ALTER TABLE `vn`.`supplier` MODIFY COLUMN payMethodFk tinyint(3) unsigned NULL;
\ No newline at end of file
diff --git a/db/changes/224702/00-supplierActivityFk_Allow_Null.sql b/db/changes/224702/00-supplierActivityFk_Allow_Null.sql
new file mode 100644
index 000000000..62aac0556
--- /dev/null
+++ b/db/changes/224702/00-supplierActivityFk_Allow_Null.sql
@@ -0,0 +1 @@
+ALTER TABLE `vn`.`supplier` MODIFY COLUMN supplierActivityFk varchar(45) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL NULL;
\ No newline at end of file
diff --git a/db/changes/224702/00-ticket_closeByTicket.sql b/db/changes/224702/00-ticket_closeByTicket.sql
new file mode 100644
index 000000000..f378b1146
--- /dev/null
+++ b/db/changes/224702/00-ticket_closeByTicket.sql
@@ -0,0 +1,35 @@
+drop procedure `vn`.`ticket_closeByTicket`;
+
+DELIMITER $$
+$$
+create
+ definer = `root`@`localhost` procedure `vn`.`ticket_closeByTicket`(IN vTicketFk int)
+BEGIN
+
+/**
+ * Inserta el ticket en la tabla temporal
+ * para ser cerrado.
+ *
+ * @param vTicketFk Id del ticket
+ */
+
+ DROP TEMPORARY TABLE IF EXISTS tmp.ticket_close;
+ CREATE TEMPORARY TABLE tmp.ticket_close ENGINE = MEMORY (
+ SELECT
+ t.id AS ticketFk
+ FROM ticket t
+ JOIN agencyMode am ON am.id = t.agencyModeFk
+ LEFT JOIN ticketState ts ON ts.ticketFk = t.id
+ JOIN alertLevel al ON al.id = ts.alertLevel
+ WHERE al.code = 'PACKED' OR (am.code = 'refund' AND al.code != 'delivered')
+ AND t.id = vTicketFk
+ AND t.refFk IS NULL
+ GROUP BY t.id);
+
+ CALL ticket_close();
+
+ DROP TEMPORARY TABLE tmp.ticket_close;
+END$$
+DELIMITER ;
+
+
diff --git a/db/changes/224702/00-zipConfig.sql b/db/changes/224702/00-zipConfig.sql
new file mode 100644
index 000000000..134ce7770
--- /dev/null
+++ b/db/changes/224702/00-zipConfig.sql
@@ -0,0 +1,9 @@
+CREATE TABLE `vn`.`zipConfig` (
+ `id` double(10,2) NOT NULL,
+ `maxSize` int(11) DEFAULT NULL COMMENT 'in MegaBytes',
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+
+INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
+ VALUES
+ ('ZipConfig', '*', '*', 'ALLOW', 'ROLE', 'employee');
\ No newline at end of file
diff --git a/db/changes/224801/00-ACL.sql b/db/changes/224801/00-ACL.sql
new file mode 100644
index 000000000..0b726538c
--- /dev/null
+++ b/db/changes/224801/00-ACL.sql
@@ -0,0 +1,5 @@
+INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalType, principalId)
+VALUES
+ ('ClaimRma', '*', 'READ', 'ALLOW', 'ROLE', 'claimManager'),
+ ('ClaimRma', '*', 'WRITE', 'ALLOW', 'ROLE', 'claimManager');
+
diff --git a/db/changes/224801/00-claim.sql b/db/changes/224801/00-claim.sql
new file mode 100644
index 000000000..0b9879878
--- /dev/null
+++ b/db/changes/224801/00-claim.sql
@@ -0,0 +1 @@
+ALTER TABLE `vn`.`claim` ADD rma varchar(100) NULL ;
\ No newline at end of file
diff --git a/db/changes/224801/00-claimRma.sql b/db/changes/224801/00-claimRma.sql
new file mode 100644
index 000000000..91e1ebaba
--- /dev/null
+++ b/db/changes/224801/00-claimRma.sql
@@ -0,0 +1,7 @@
+CREATE TABLE `vn`.`claimRma` (
+ id INT UNSIGNED auto_increment NOT NULL PRIMARY KEY,
+ code varchar(100) NOT NULL,
+ created timestamp DEFAULT current_timestamp() NOT NULL,
+ workerFk INTEGER UNSIGNED NOT NULL
+)
+ENGINE=InnoDB;
diff --git a/db/changes/224901/00-aclNotification.sql b/db/changes/224901/00-aclNotification.sql
new file mode 100644
index 000000000..51d6b2471
--- /dev/null
+++ b/db/changes/224901/00-aclNotification.sql
@@ -0,0 +1,3 @@
+INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
+ VALUES
+ ('Notification', '*', 'WRITE', 'ALLOW', 'ROLE', 'developer');
diff --git a/db/changes/224901/00-packingSiteConfig.sql b/db/changes/224901/00-packingSiteConfig.sql
new file mode 100644
index 000000000..945b5a54c
--- /dev/null
+++ b/db/changes/224901/00-packingSiteConfig.sql
@@ -0,0 +1,12 @@
+CREATE TABLE `vn`.`packingSiteConfig` (
+ `id` INT(11) NOT NULL AUTO_INCREMENT,
+ `shinobiUrl` varchar(255) NOT NULL,
+ `shinobiToken` varchar(255) NOT NULL,
+ `shinobiGroupKey` varchar(255) NOT NULL,
+ `avgBoxingTime` INT(3) NULL,
+ PRIMARY KEY (`id`)
+ );
+
+INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
+ VALUES
+ ('Boxing', '*', '*', 'ALLOW', 'ROLE', 'employee');
diff --git a/db/changes/224901/00-packingSiteUpdate.sql b/db/changes/224901/00-packingSiteUpdate.sql
new file mode 100644
index 000000000..14313fd52
--- /dev/null
+++ b/db/changes/224901/00-packingSiteUpdate.sql
@@ -0,0 +1,56 @@
+ALTER TABLE `vn`.`packingSite` ADD monitorId varchar(255) NULL;
+
+UPDATE `vn`.`packingSite`
+ SET monitorId = 'VbiUcajdaT'
+ WHERE code = 'h1';
+UPDATE `vn`.`packingSite`
+ SET monitorId = 'qKMPn9aaVe'
+ WHERE code = 'h2';
+UPDATE `vn`.`packingSite`
+ SET monitorId = '3CtdIAGPAv'
+ WHERE code = 'h3';
+UPDATE `vn`.`packingSite`
+ SET monitorId = 'Xme2hiqz1f'
+ WHERE code = 'h4';
+UPDATE `vn`.`packingSite`
+ SET monitorId = 'aulxefgfJU'
+ WHERE code = 'h5';
+UPDATE `vn`.`packingSite`
+ SET monitorId = '6Ou0D1bhBw'
+ WHERE code = 'h6';
+UPDATE `vn`.`packingSite`
+ SET monitorId = 'eVUvnE6pNw'
+ WHERE code = 'h7';
+UPDATE `vn`.`packingSite`
+ SET monitorId = '0wsmSvqmrs'
+ WHERE code = 'h8';
+UPDATE `vn`.`packingSite`
+ SET monitorId = 'r2l2RyyF4I'
+ WHERE code = 'h9';
+UPDATE `vn`.`packingSite`
+ SET monitorId = 'EdjHLIiDVD'
+ WHERE code = 'h10';
+UPDATE `vn`.`packingSite`
+ SET monitorId = 'czC45kmwqI'
+ WHERE code = 'h11';
+UPDATE `vn`.`packingSite`
+ SET monitorId = 'PNsmxPaCwQ'
+ WHERE code = 'h12';
+UPDATE `vn`.`packingSite`
+ SET monitorId = 'agVssO0FDC'
+ WHERE code = 'h13';
+UPDATE `vn`.`packingSite`
+ SET monitorId = 'f2SPNENHPo'
+ WHERE code = 'h14';
+UPDATE `vn`.`packingSite`
+ SET monitorId = '6UR7gUZxks'
+ WHERE code = 'h15';
+UPDATE `vn`.`packingSite`
+ SET monitorId = 'bOB0f8WZ2V'
+ WHERE code = 'h16';
+UPDATE `vn`.`packingSite`
+ SET monitorId = 'MIR1nXaL0n'
+ WHERE code = 'h17';
+UPDATE `vn`.`packingSite`
+ SET monitorId = '0Oj9SgGTXR'
+ WHERE code = 'h18';
diff --git a/db/changes/224901/00-salix_url.sql b/db/changes/224901/00-salix_url.sql
new file mode 100644
index 000000000..ea5c3b606
--- /dev/null
+++ b/db/changes/224901/00-salix_url.sql
@@ -0,0 +1,33 @@
+CREATE TABLE `salix`.`url` (
+ `appName` varchar(100) NOT NULL,
+ `environment` varchar(100) NOT NULL,
+ `url` varchar(255) NOT NULL,
+ PRIMARY KEY (`appName`,`environment`)
+);
+
+INSERT INTO `salix`.`url` (`appName`, `environment`, `url`)
+ VALUES
+ ('salix', 'production', 'https://salix.verdnatura.es/#!/');
+INSERT INTO `salix`.`url` (`appName`, `environment`, `url`)
+ VALUES
+ ('salix', 'test', 'https://test-salix.verdnatura.es/#!/');
+INSERT INTO `salix`.`url` (`appName`, `environment`, `url`)
+ VALUES
+ ('salix', 'dev', 'http://localhost:5000/#!/');
+INSERT INTO `salix`.`url` (`appName`, `environment`, `url`)
+ VALUES
+ ('lilium', 'production', 'https://lilium.verdnatura.es/#/');
+INSERT INTO `salix`.`url` (`appName`, `environment`, `url`)
+ VALUES
+ ('lilium', 'test', 'https://test-lilium.verdnatura.es/#/');
+INSERT INTO `salix`.`url` (`appName`, `environment`, `url`)
+ VALUES
+ ('lilium', 'dev', 'http://localhost:8080/#/');
+
+INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
+ VALUES
+ ('Url', '*', 'READ', 'ALLOW', 'ROLE', 'employee');
+
+INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
+ VALUES
+ ('Url', '*', 'WRITE', 'ALLOW', 'ROLE', 'it');
diff --git a/db/changes/224902/00-aclUserPassword.sql b/db/changes/224902/00-aclUserPassword.sql
new file mode 100644
index 000000000..b92b54c28
--- /dev/null
+++ b/db/changes/224902/00-aclUserPassword.sql
@@ -0,0 +1,2 @@
+DELETE FROM `salix`.`ACL`
+ WHERE model = 'UserPassword';
diff --git a/db/changes/224902/00-deletePickupContact.sql b/db/changes/224902/00-deletePickupContact.sql
new file mode 100644
index 000000000..6bfa662c5
--- /dev/null
+++ b/db/changes/224902/00-deletePickupContact.sql
@@ -0,0 +1 @@
+ALTER TABLE `vn`.`claimConfig` DROP COLUMN `pickupContact`;
diff --git a/db/changes/224902/00-itemShelvingACL.sql b/db/changes/224902/00-itemShelvingACL.sql
new file mode 100644
index 000000000..fc32fe1ed
--- /dev/null
+++ b/db/changes/224902/00-itemShelvingACL.sql
@@ -0,0 +1,4 @@
+INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalType, principalId)
+VALUES
+ ('ItemShelving', '*', 'READ', 'ALLOW', 'ROLE', 'employee'),
+ ('ItemShelving', '*', 'WRITE', 'ALLOW', 'ROLE', 'production');
\ No newline at end of file
diff --git a/db/changes/224902/00-itemShelvingPlacementSupplyStockACL.sql b/db/changes/224902/00-itemShelvingPlacementSupplyStockACL.sql
new file mode 100644
index 000000000..25eac8d51
--- /dev/null
+++ b/db/changes/224902/00-itemShelvingPlacementSupplyStockACL.sql
@@ -0,0 +1,4 @@
+INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalType, principalId)
+VALUES
+ ('ItemShelvingPlacementSupplyStock', '*', 'READ', 'ALLOW', 'ROLE', 'employee');
+
diff --git a/db/changes/224902/00-workerTimeControlMail.sql b/db/changes/224902/00-workerTimeControlMail.sql
new file mode 100644
index 000000000..e3d169a83
--- /dev/null
+++ b/db/changes/224902/00-workerTimeControlMail.sql
@@ -0,0 +1 @@
+ALTER TABLE `vn`.`workerTimeControlMail` CHANGE emailResponse reason text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL NULL;
\ No newline at end of file
diff --git a/db/changes/224902/00-zone_getPostalCode.sql b/db/changes/224902/00-zone_getPostalCode.sql
new file mode 100644
index 000000000..58a281cb2
--- /dev/null
+++ b/db/changes/224902/00-zone_getPostalCode.sql
@@ -0,0 +1,54 @@
+DROP PROCEDURE IF EXISTS `vn`.`zone_getPostalCode`;
+
+DELIMITER $$
+$$
+CREATE DEFINER=`root`@`localhost` PROCEDURE `vn`.`zone_getPostalCode`(vSelf INT)
+BEGIN
+/**
+ * Devuelve los códigos postales incluidos en una zona
+ */
+ DECLARE vGeoFk INT DEFAULT NULL;
+
+ DROP TEMPORARY TABLE IF EXISTS tmp.zoneNodes;
+ CREATE TEMPORARY TABLE tmp.zoneNodes (
+ geoFk INT,
+ name VARCHAR(100),
+ parentFk INT,
+ sons INT,
+ isChecked BOOL DEFAULT 0,
+ zoneFk INT,
+ PRIMARY KEY zoneNodesPk (zoneFk, geoFk),
+ INDEX(geoFk))
+ ENGINE = MEMORY;
+
+ CALL zone_getLeaves2(vSelf, NULL , NULL);
+
+ UPDATE tmp.zoneNodes zn
+ SET isChecked = 0
+ WHERE parentFk IS NULL;
+
+ myLoop: LOOP
+ SET vGeoFk = NULL;
+ SELECT geoFk INTO vGeoFk
+ FROM tmp.zoneNodes zn
+ WHERE NOT isChecked
+ LIMIT 1;
+
+ CALL zone_getLeaves2(vSelf, vGeoFk, NULL);
+ UPDATE tmp.zoneNodes
+ SET isChecked = TRUE
+ WHERE geoFk = vGeoFk;
+
+ IF vGeoFk IS NULL THEN
+ LEAVE myLoop;
+ END IF;
+ END LOOP;
+
+ DELETE FROM tmp.zoneNodes
+ WHERE sons > 0;
+
+ SELECT zn.geoFk, zn.name
+ FROM tmp.zoneNodes zn
+ JOIN zone z ON z.id = zn.zoneFk;
+END$$
+DELIMITER ;
diff --git a/db/changes/10480-june/00-aclShelvingLog.sql b/db/changes/224903/00-ACL_notification_InvoiceE.sql
similarity index 58%
rename from db/changes/10480-june/00-aclShelvingLog.sql
rename to db/changes/224903/00-ACL_notification_InvoiceE.sql
index dc75142d1..660efc41e 100644
--- a/db/changes/10480-june/00-aclShelvingLog.sql
+++ b/db/changes/224903/00-ACL_notification_InvoiceE.sql
@@ -1,3 +1,2 @@
INSERT INTO `salix`.`ACL` (model,property,accessType,permission,principalType,principalId)
- VALUES
- ('ShelvingLog','*','READ','ALLOW','ROLE','employee');
\ No newline at end of file
+ VALUES ('NotificationQueue','*','*','ALLOW','ROLE','employee');
diff --git a/db/changes/224903/00-aclInvoiceOut.sql b/db/changes/224903/00-aclInvoiceOut.sql
new file mode 100644
index 000000000..7715045b5
--- /dev/null
+++ b/db/changes/224903/00-aclInvoiceOut.sql
@@ -0,0 +1,7 @@
+INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
+ VALUES
+ ('InvoiceOut', 'clientsToInvoice', 'WRITE', 'ALLOW', 'ROLE', 'invoicing');
+
+INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
+ VALUES
+ ('InvoiceOut', 'invoiceClient', 'WRITE', 'ALLOW', 'ROLE', 'invoicing');
\ No newline at end of file
diff --git a/db/changes/224903/00-alter_expedition_itemFk.sql b/db/changes/224903/00-alter_expedition_itemFk.sql
new file mode 100644
index 000000000..d2849481b
--- /dev/null
+++ b/db/changes/224903/00-alter_expedition_itemFk.sql
@@ -0,0 +1 @@
+Alter table `vn`.`expedition` RENAME COLUMN itemFk TO itemFk__;
\ No newline at end of file
diff --git a/db/changes/224903/00-clientHasInvoiceElectronic.sql b/db/changes/224903/00-clientHasInvoiceElectronic.sql
new file mode 100644
index 000000000..21f68c9ca
--- /dev/null
+++ b/db/changes/224903/00-clientHasInvoiceElectronic.sql
@@ -0,0 +1,8 @@
+ALTER TABLE
+ `vn`.`client`
+ADD
+ COLUMN `hasElectronicInvoice` TINYINT(1) NOT NULL DEFAULT 0 COMMENT 'Registro de facturas mediante FACe'
+AFTER
+ `hasInvoiceSimplified`;
+
+-- sería más correcto hasElectronicInvoice pero ya existe un campo hasInvoiceSimplified
\ No newline at end of file
diff --git a/db/changes/224903/00-collection_missingTrash.sql b/db/changes/224903/00-collection_missingTrash.sql
new file mode 100644
index 000000000..d4467c699
--- /dev/null
+++ b/db/changes/224903/00-collection_missingTrash.sql
@@ -0,0 +1 @@
+DROP PROCEDURE IF EXISTS `vn`.`collection_missingTrash`;
diff --git a/db/changes/224903/00-deleteInvoiceOutQueue.sql b/db/changes/224903/00-deleteInvoiceOutQueue.sql
new file mode 100644
index 000000000..87a3059a0
--- /dev/null
+++ b/db/changes/224903/00-deleteInvoiceOutQueue.sql
@@ -0,0 +1 @@
+DROP TABLE `vn`.`invoiceOutQueue`;
\ No newline at end of file
diff --git a/db/changes/224903/00-editTrackedACL.sql b/db/changes/224903/00-editTrackedACL.sql
new file mode 100644
index 000000000..e768fb7c7
--- /dev/null
+++ b/db/changes/224903/00-editTrackedACL.sql
@@ -0,0 +1,4 @@
+INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
+ VALUES
+ ('Sale', 'editTracked', 'WRITE', 'ALLOW', 'ROLE', 'production'),
+ ('Sale', 'editFloramondo', 'WRITE', 'ALLOW', 'ROLE', 'salesAssistant');
diff --git a/db/changes/224903/00-greuge.sql b/db/changes/224903/00-greuge.sql
new file mode 100644
index 000000000..ec4bf3146
--- /dev/null
+++ b/db/changes/224903/00-greuge.sql
@@ -0,0 +1 @@
+ALTER TABLE `vn`.`greuge` CHANGE `userFK` `userFk` int(10) unsigned DEFAULT NULL NULL;
\ No newline at end of file
diff --git a/db/changes/224903/00-insert_notification_invoiceE.sql b/db/changes/224903/00-insert_notification_invoiceE.sql
new file mode 100644
index 000000000..1d416c196
--- /dev/null
+++ b/db/changes/224903/00-insert_notification_invoiceE.sql
@@ -0,0 +1 @@
+insert into `util`.`notification` (`id`, `name`,`description`) values (2, 'invoiceElectronic', 'A electronic invoice has been generated');
\ No newline at end of file
diff --git a/db/changes/224903/00-isCompensationACL.sql b/db/changes/224903/00-isCompensationACL.sql
new file mode 100644
index 000000000..ac01758b0
--- /dev/null
+++ b/db/changes/224903/00-isCompensationACL.sql
@@ -0,0 +1,4 @@
+INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
+ VALUES
+ ('Receipt', 'balanceCompensationEmail', 'WRITE', 'ALLOW', 'ROLE', 'employee'),
+ ('Receipt', 'balanceCompensationPdf', 'READ', 'ALLOW', 'ROLE', 'employee');
diff --git a/db/changes/224903/00-osTicketConfig.sql b/db/changes/224903/00-osTicketConfig.sql
new file mode 100644
index 000000000..10a58b6c8
--- /dev/null
+++ b/db/changes/224903/00-osTicketConfig.sql
@@ -0,0 +1,8 @@
+ALTER TABLE `vn`.`osTicketConfig` DROP COLUMN `action`;
+ALTER TABLE `vn`.`osTicketConfig` ADD responseType varchar(100) NULL;
+ALTER TABLE `vn`.`osTicketConfig` ADD fromEmailId INT NULL;
+ALTER TABLE `vn`.`osTicketConfig` ADD replyTo varchar(100) NULL;
+
+UPDATE `vn`.`osTicketConfig`
+ SET responseType='reply', fromEmailId=5, replyTo='all'
+WHERE id=0;
\ No newline at end of file
diff --git a/db/changes/224903/00-ticket_canMerge.sql b/db/changes/224903/00-ticket_canMerge.sql
new file mode 100644
index 000000000..843237b64
--- /dev/null
+++ b/db/changes/224903/00-ticket_canMerge.sql
@@ -0,0 +1,14 @@
+DROP PROCEDURE IF EXISTS `vn`.`ticket_canMerge`;
+
+DELIMITER $$
+$$
+CREATE DEFINER=`root`@`localhost` PROCEDURE `vn`.`ticket_canMerge`(vDated DATE, vScopeDays INT, vLitersMax INT, vLinesMax INT, vWarehouseFk INT)
+BEGIN
+ CALL vn.ticket_canbePostponed(vDated,TIMESTAMPADD(DAY, vScopeDays, vDated),vLitersMax,vLinesMax,vWarehouseFk);
+END $$
+DELIMITER ;
+
+INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalType, principalId)
+VALUES
+ ('Ticket', 'getTicketsFuture', 'READ', 'ALLOW', 'ROLE', 'employee'),
+ ('Ticket', 'merge', 'WRITE', 'ALLOW', 'ROLE', 'employee');
diff --git a/db/changes/224903/00-ticket_canbePostponed.sql b/db/changes/224903/00-ticket_canbePostponed.sql
new file mode 100644
index 000000000..c691fa4bd
--- /dev/null
+++ b/db/changes/224903/00-ticket_canbePostponed.sql
@@ -0,0 +1,79 @@
+DROP PROCEDURE IF EXISTS `vn`.`ticket_canbePostponed`;
+
+DELIMITER $$
+$$
+CREATE DEFINER=`root`@`localhost` PROCEDURE `vn`.`ticket_canbePostponed`(vOriginDated DATE, vFutureDated DATE, vLitersMax INT, vLinesMax INT, vWarehouseFk INT)
+BEGIN
+/**
+ * Devuelve un listado de tickets susceptibles de fusionarse con otros tickets en el futuro
+ *
+ * @param vOriginDated Fecha en cuestión
+ * @param vFutureDated Fecha en el futuro a sondear
+ * @param vLitersMax Volumen máximo de los tickets a catapultar
+ * @param vLinesMax Número máximo de lineas de los tickets a catapultar
+ * @param vWarehouseFk Identificador de vn.warehouse
+ */
+ DROP TEMPORARY TABLE IF EXISTS tmp.filter;
+ CREATE TEMPORARY TABLE tmp.filter
+ (INDEX (id))
+ SELECT sv.ticketFk id,
+ GROUP_CONCAT(DISTINCT i.itemPackingTypeFk ORDER BY i.itemPackingTypeFk) ipt,
+ CAST(sum(litros) AS DECIMAL(10,0)) liters,
+ CAST(count(*) AS DECIMAL(10,0)) `lines`,
+ st.name state,
+ sub2.id ticketFuture,
+ t.landed originETD,
+ sub2.landed destETD,
+ sub2.iptd tfIpt,
+ sub2.state tfState,
+ t.clientFk,
+ t.warehouseFk,
+ ts.alertLevel,
+ t.shipped,
+ sub2.shipped tfShipped,
+ t.workerFk,
+ st.code code,
+ sub2.code tfCode
+ FROM vn.saleVolume sv
+ JOIN vn.sale s ON s.id = sv.saleFk
+ JOIN vn.item i ON i.id = s.itemFk
+ JOIN vn.ticket t ON t.id = sv.ticketFk
+ JOIN vn.address a ON a.id = t.addressFk
+ JOIN vn.province p ON p.id = a.provinceFk
+ JOIN vn.country c ON c.id = p.countryFk
+ JOIN vn.ticketState ts ON ts.ticketFk = t.id
+ JOIN vn.state st ON st.id = ts.stateFk
+ JOIN vn.alertLevel al ON al.id = ts.alertLevel
+ LEFT JOIN vn.ticketParking tp ON tp.ticketFk = t.id
+ LEFT JOIN (
+ SELECT *
+ FROM (
+ SELECT
+ t.addressFk ,
+ t.id,
+ t.landed,
+ t.shipped,
+ st.name state,
+ st.code code,
+ GROUP_CONCAT(DISTINCT i.itemPackingTypeFk ORDER BY i.itemPackingTypeFk) iptd
+ FROM vn.ticket t
+ JOIN vn.ticketState ts ON ts.ticketFk = t.id
+ JOIN vn.state st ON st.id = ts.stateFk
+ JOIN vn.sale s ON s.ticketFk = t.id
+ JOIN vn.item i ON i.id = s.itemFk
+ WHERE t.shipped BETWEEN vFutureDated
+ AND util.dayend(vFutureDated)
+ AND t.warehouseFk = vWarehouseFk
+ GROUP BY t.id
+ ) sub
+ GROUP BY sub.addressFk
+ ) sub2 ON sub2.addressFk = t.addressFk AND t.id != sub2.id
+ WHERE t.shipped BETWEEN vOriginDated AND util.dayend(vOriginDated)
+ AND t.warehouseFk = vWarehouseFk
+ AND al.code = 'FREE'
+ AND tp.ticketFk IS NULL
+ GROUP BY sv.ticketFk
+ HAVING liters <= IFNULL(vLitersMax, 9999) AND `lines` <= IFNULL(vLinesMax, 9999) AND ticketFuture;
+END$$
+DELIMITER ;
+
diff --git a/db/changes/224903/00-timeBusiness_calculate.sql b/db/changes/224903/00-timeBusiness_calculate.sql
new file mode 100644
index 000000000..ea13c4a8a
--- /dev/null
+++ b/db/changes/224903/00-timeBusiness_calculate.sql
@@ -0,0 +1,88 @@
+DROP PROCEDURE IF EXISTS `vn`.`timeBusiness_calculate`;
+
+DELIMITER $$
+$$
+CREATE DEFINER=`root`@`localhost` PROCEDURE `vn`.`timeBusiness_calculate`(vDatedFrom DATETIME, vDatedTo DATETIME)
+BEGIN
+/**
+ * Horas que debe trabajar un empleado según contrato y día.
+ * @param vDatedFrom workerTimeControl
+ * @param vDatedTo workerTimeControl
+ * @table tmp.user(userFk)
+ * @return tmp.timeBusinessCalculate
+ */
+ DROP TEMPORARY TABLE IF EXISTS tmp.timeBusinessCalculate;
+ CREATE TEMPORARY TABLE tmp.timeBusinessCalculate
+ (INDEX (departmentFk))
+ SELECT dated,
+ businessFk,
+ userFk,
+ departmentFk,
+ hourStart,
+ hourEnd,
+ timeTable,
+ timeWorkSeconds,
+ SEC_TO_TIME(timeWorkSeconds) timeWorkSexagesimal,
+ timeWorkSeconds / 3600 timeWorkDecimal,
+ timeWorkSeconds timeBusinessSeconds,
+ SEC_TO_TIME(timeWorkSeconds) timeBusinessSexagesimal,
+ timeWorkSeconds / 3600 timeBusinessDecimal,
+ name type,
+ permissionRate,
+ hoursWeek,
+ discountRate,
+ isAllowedToWork
+ FROM(SELECT t.dated,
+ b.id businessFk,
+ w.userFk,
+ b.departmentFk,
+ IF(j.start = NULL, NULL, GROUP_CONCAT(DISTINCT LEFT(j.start,5) ORDER BY j.start ASC SEPARATOR ' - ')) hourStart ,
+ IF(j.start = NULL, NULL, GROUP_CONCAT(DISTINCT LEFT(j.end,5) ORDER BY j.end ASC SEPARATOR ' - ')) hourEnd,
+ IF(j.start = NULL, NULL, GROUP_CONCAT(DISTINCT LEFT(j.start,5), " - ", LEFT(j.end,5) ORDER BY j.end ASC SEPARATOR ' - ')) timeTable,
+ IF(j.start = NULL, 0, IFNULL(SUM(TIME_TO_SEC(j.end)) - SUM(TIME_TO_SEC(j.start)), 0)) timeWorkSeconds,
+ at2.name,
+ at2.permissionRate,
+ at2.discountRate,
+ cl.hours_week hoursWeek,
+ at2.isAllowedToWork
+ FROM time t
+ LEFT JOIN business b ON t.dated BETWEEN b.started AND IFNULL(b.ended, vDatedTo)
+ LEFT JOIN worker w ON w.id = b.workerFk
+ JOIN tmp.`user` u ON u.userFK = w.userFK
+ LEFT JOIN workCenter wc ON wc.id = b.workcenterFK
+ LEFT JOIN postgresql.calendar_labour_type cl ON cl.calendar_labour_type_id = b.calendarTypeFk
+ LEFT JOIN postgresql.journey j ON j.business_id = b.id AND j.day_id = WEEKDAY(t.dated) + 1
+ LEFT JOIN postgresql.calendar_employee ce ON ce.businessFk = b.id AND ce.date = t.dated
+ LEFT JOIN absenceType at2 ON at2.id = ce.calendar_state_id
+ WHERE t.dated BETWEEN vDatedFrom AND vDatedTo
+ GROUP BY w.userFk, t.dated
+ )sub;
+
+ UPDATE tmp.timeBusinessCalculate t
+ LEFT JOIN postgresql.journey j ON j.business_id = t.businessFk
+ SET t.timeWorkSeconds = t.hoursWeek / 5 * 3600,
+ t.timeWorkSexagesimal = SEC_TO_TIME( t.hoursWeek / 5 * 3600),
+ t.timeWorkDecimal = t.hoursWeek / 5,
+ t.timeBusinessSeconds = t.hoursWeek / 5 * 3600,
+ t.timeBusinessSexagesimal = SEC_TO_TIME( t.hoursWeek / 5 * 3600),
+ t.timeBusinessDecimal = t.hoursWeek / 5
+ WHERE DAYOFWEEK(t.dated) IN(2,3,4,5,6) AND j.journey_id IS NULL ;
+
+ UPDATE tmp.timeBusinessCalculate t
+ SET t.timeWorkSeconds = t.timeWorkSeconds - (t.timeWorkSeconds * permissionRate) ,
+ t.timeWorkSexagesimal = SEC_TO_TIME ((t.timeWorkDecimal - (t.timeWorkDecimal * permissionRate)) * 3600),
+ t.timeWorkDecimal = t.timeWorkDecimal - (t.timeWorkDecimal * permissionRate)
+ WHERE permissionRate <> 0;
+
+ UPDATE tmp.timeBusinessCalculate t
+ JOIN calendarHolidays ch ON ch.dated = t.dated
+ JOIN business b ON b.id = t.businessFk
+ AND b.workcenterFk = ch.workcenterFk
+ SET t.timeWorkSeconds = 0,
+ t.timeWorkSexagesimal = 0,
+ t.timeWorkDecimal = 0,
+ t.permissionrate = 1,
+ t.type = 'Festivo'
+ WHERE t.type IS NULL;
+END$$
+DELIMITER ;
diff --git a/db/changes/224903/01-updateClientHasInvoiceElectronic.sql b/db/changes/224903/01-updateClientHasInvoiceElectronic.sql
new file mode 100644
index 000000000..af1c8ca9a
--- /dev/null
+++ b/db/changes/224903/01-updateClientHasInvoiceElectronic.sql
@@ -0,0 +1,6 @@
+UPDATE
+ `vn`.`client`
+SET
+ hasElectronicInvoice = TRUE
+WHERE
+ businessTypeFk = 'officialOrganism';
\ No newline at end of file
diff --git a/db/changes/225001/.gitkeep b/db/changes/225001/.gitkeep
new file mode 100644
index 000000000..e69de29bb
diff --git a/db/changes/225001/00-aclMdbApp.sql b/db/changes/225001/00-aclMdbApp.sql
new file mode 100644
index 000000000..b5b60546c
--- /dev/null
+++ b/db/changes/225001/00-aclMdbApp.sql
@@ -0,0 +1,4 @@
+INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
+ VALUES
+ ('MdbApp', 'lock', 'WRITE', 'ALLOW', 'ROLE', 'developer'),
+ ('MdbApp', 'unlock', 'WRITE', 'ALLOW', 'ROLE', 'developer');
diff --git a/db/changes/225201/00-ACL_saveSign.sql b/db/changes/225201/00-ACL_saveSign.sql
new file mode 100644
index 000000000..16f9931c4
--- /dev/null
+++ b/db/changes/225201/00-ACL_saveSign.sql
@@ -0,0 +1 @@
+INSERT INTO `salix`.`ACL` (`model`,`property`,`accessType`,`permission`,`principalId`) VALUES ('Dms','saveSign','*','ALLOW','employee');
diff --git a/db/changes/225201/00-accountingMovements_add.sql b/db/changes/225201/00-accountingMovements_add.sql
new file mode 100644
index 000000000..12dc176bc
--- /dev/null
+++ b/db/changes/225201/00-accountingMovements_add.sql
@@ -0,0 +1,438 @@
+DROP PROCEDURE IF EXISTS `sage`.`accountingMovements_add`;
+
+DELIMITER $$
+$$
+CREATE DEFINER=`root`@`localhost` PROCEDURE `sage`.`accountingMovements_add`(vYear INT, vCompanyFk INT)
+BEGIN
+/**
+ * Traslada la info de contabilidad generada en base a vn.XDiario a la tabla sage.movConta para poder ejecutar posteriormente el proceso de importación de datos de SQL Server
+ * Solo traladará los asientos marcados con el campo vn.XDiario.enlazadoSage = FALSE
+ * @vYear Año contable del que se quiere trasladar la información
+ * @vCompanyFk Empresa de la que se quiere trasladar datos
+ */
+ DECLARE vDatedFrom DATETIME;
+ DECLARE vDatedTo DATETIME;
+ DECLARE vDuaTransactionFk INT;
+ DECLARE vTaxImportFk INT;
+ DECLARE vTaxImportReducedFk INT;
+ DECLARE vTaxImportSuperReducedFk INT;
+ DECLARE vTransactionExportFk INT;
+ DECLARE vTransactionExportTaxFreeFk INT;
+ DECLARE vSerialDua VARCHAR(1) DEFAULT 'D';
+ DECLARE vInvoiceTypeInformativeCode VARCHAR(1);
+ DECLARE vCountryCanariasCode, vCountryCeutaMelillaCode VARCHAR(2) ;
+ DECLARE vBookEntries TEXT;
+
+ SELECT SiglaNacion INTO vCountryCanariasCode
+ FROM Naciones
+ WHERE Nacion ='ISLAS CANARIAS';
+
+ SELECT SiglaNacion INTO vCountryCeutaMelillaCode
+ FROM Naciones
+ WHERE Nacion ='CEUTA Y MELILLA';
+
+ SELECT CodigoTransaccion INTO vDuaTransactionFk
+ FROM TiposTransacciones
+ WHERE Transaccion = 'Import. bienes y serv. corrientes pdte. liquidar';
+
+ SELECT CodigoIva INTO vTaxImportFk
+ FROM TiposIva
+ WHERE Iva = 'IVA 21% importaciones';
+
+ SELECT CodigoIva INTO vTaxImportReducedFk
+ FROM TiposIva
+ WHERE Iva = 'IVA 10% importaciones';
+
+ SELECT CodigoIva INTO vTaxImportSuperReducedFk
+ FROM TiposIva
+ WHERE Iva = 'H.P. IVA Soportado Impor 4%';
+
+ SELECT CodigoTransaccion INTO vTransactionExportFk
+ FROM TiposTransacciones
+ WHERE Transaccion = 'Exportaciones definitivas';
+
+ SELECT CodigoTransaccion INTO vTransactionExportTaxFreeFk
+ FROM TiposTransacciones
+ WHERE Transaccion = 'Envíos definitivos a Canarias, Ceuta y Melilla';
+
+ SELECT codeSage INTO vInvoiceTypeInformativeCode
+ FROM invoiceType WHERE code ='informative';
+
+ SELECT CAST(CONCAT(vYear, '-01-01') AS DATETIME), util.dayEnd(CAST(CONCAT(vYear, '-12-31') AS DATE))
+ INTO vDatedFrom, vDatedTo;
+
+ TRUNCATE movContaIVA;
+
+ DELETE FROM movConta
+ WHERE enlazadoSage = FALSE
+ AND Asiento <> 1 ;
+
+ CALL clientSupplier_add(vCompanyFk);
+ CALL pgc_add(vCompanyFk);
+ CALL invoiceOut_manager(vYear, vCompanyFk);
+ CALL invoiceIn_manager(vYear, vCompanyFk);
+
+ INSERT INTO movConta(TipoEntrada,
+ Ejercicio,
+ CodigoEmpresa,
+ Asiento,
+ CargoAbono,
+ CodigoCuenta,
+ Contrapartida,
+ FechaAsiento,
+ Comentario,
+ ImporteAsiento,
+ NumeroPeriodo,
+ FechaGrabacion,
+ CodigoDivisa,
+ ImporteCambio,
+ ImporteDivisa,
+ FactorCambio,
+ IdProcesoIME,
+ TipoCarteraIME,
+ TipoAnaliticaIME,
+ StatusTraspasadoIME,
+ TipoImportacionIME,
+ Metalico347,
+ BaseIva1,
+ PorBaseCorrectora1,
+ PorIva1,
+ CuotaIva1,
+ PorRecargoEquivalencia1,
+ RecargoEquivalencia1,
+ CodigoTransaccion1,
+ BaseIva2,
+ PorBaseCorrectora2,
+ PorIva2,
+ CuotaIva2,
+ PorRecargoEquivalencia2,
+ RecargoEquivalencia2,
+ CodigoTransaccion2,
+ BaseIva3,
+ PorBaseCorrectora3,
+ PorIva3,
+ CuotaIva3,
+ PorRecargoEquivalencia3,
+ RecargoEquivalencia3,
+ CodigoTransaccion3,
+ BaseIva4,
+ PorBaseCorrectora4,
+ PorIva4,
+ CuotaIva4,
+ PorRecargoEquivalencia4,
+ RecargoEquivalencia4,
+ CodigoTransaccion4,
+ Año,
+ Serie,
+ Factura,
+ SuFacturaNo,
+ FechaFactura,
+ ImporteFactura,
+ TipoFactura,
+ CodigoCuentaFactura,
+ CifDni,
+ Nombre,
+ CodigoRetencion,
+ BaseRetencion,
+ PorRetencion,
+ ImporteRetencion,
+ SiglaNacion,
+ EjercicioFactura,
+ FechaOperacion,
+ Exclusion347,
+ MantenerAsiento,
+ ClaveOperacionFactura_,
+ TipoRectificativa,
+ FechaFacturaOriginal,
+ BaseImponibleOriginal,
+ CuotaIvaOriginal,
+ ClaseAbonoRectificativas,
+ RecargoEquivalenciaOriginal,
+ LibreA1,
+ CodigoIva1,
+ CodigoIva2,
+ CodigoIva3,
+ CodigoIva4,
+ IvaDeducible1,
+ IvaDeducible2,
+ IvaDeducible3,
+ IvaDeducible4,
+ Intracomunitaria
+ )
+ SELECT 'EN' TipoEntrada,
+ YEAR(x.FECHA) Ejercicio,
+ company_getCode(vCompanyFk) AS CodigoEmpresa,
+ x.ASIEN Asiento,
+ IF(EURODEBE <> 0 OR (EURODEBE = 0 AND EUROHABER IS NULL), 'D', 'H') CargoAbono,
+ x.SUBCTA CodigoCuenta,
+ x.CONTRA Contrapartida,
+ x.FECHA FechaAsiento,
+ x.CONCEPTO Comentario,
+ IF(x.EURODEBE, x.EURODEBE, x.EUROHABER) ImporteAsiento,
+ MONTH(x.FECHA) NumeroPeriodo,
+ IF(sub2.FECREGCON IS NULL, sub2.FECHA_EX, sub2.FECREGCON) FechaGrabacion,
+ IF(x.CAMBIO, IFNULL(mci.CodigoDivisa, sub3.code), '') CodigoDivisa,
+ x.CAMBIO ImporteCambio,
+ IFNULL(x.DEBEME, x.HABERME) ImporteDivisa,
+ IF(x.CAMBIO, TRUE, FALSE) FactorCambio,
+ NULL IdProcesoIME,
+ 0 TipoCarteraIME,
+ 0 TipoAnaliticaIME,
+ 0 StatusTraspasadoIME,
+ 0 TipoImportacionIME,
+ x.METAL Metalico347,
+ mci.BaseIva1,
+ mci.PorBaseCorrectora1,
+ mci.PorIva1,
+ mci.CuotaIva1,
+ mci.PorRecargoEquivalencia1,
+ mci.RecargoEquivalencia1,
+ mci.CodigoTransaccion1,
+ mci.BaseIva2,
+ mci.PorBaseCorrectora2,
+ mci.PorIva2,
+ mci.CuotaIva2,
+ mci.PorRecargoEquivalencia2,
+ mci.RecargoEquivalencia2,
+ mci.CodigoTransaccion2,
+ mci.BaseIva3,
+ mci.PorBaseCorrectora3,
+ mci.PorIva3,
+ mci.CuotaIva3,
+ mci.PorRecargoEquivalencia3,
+ mci.RecargoEquivalencia3,
+ mci.CodigoTransaccion3,
+ mci.BaseIva4,
+ mci.PorBaseCorrectora4,
+ mci.PorIva4,
+ mci.CuotaIva4,
+ mci.PorRecargoEquivalencia4,
+ mci.RecargoEquivalencia4,
+ mci.CodigoTransaccion4,
+ mci.Año,
+ mci.Serie,
+ mci.Factura,
+ mci.SuFacturaNo,
+ mci.FechaFactura,
+ mci.ImporteFactura,
+ mci.TipoFactura,
+ mci.CodigoCuentaFactura,
+ mci.CifDni,
+ mci.Nombre,
+ mci.CodigoRetencion,
+ mci.BaseRetencion,
+ mci.PorRetencion,
+ mci.ImporteRetencion,
+ mci.SiglaNacion,
+ mci.EjercicioFactura,
+ mci.FechaOperacion,
+ mci.Exclusion347,
+ TRUE,
+ mci.ClaveOperacionFactura,
+ mci.TipoRectificativa,
+ mci.FechaFacturaOriginal,
+ mci.BaseImponibleOriginal,
+ mci.CuotaIvaOriginal,
+ mci.ClaseAbonoRectificativas,
+ mci.RecargoEquivalenciaOriginal,
+ mci.LibreA1,
+ mci.CodigoIva1,
+ mci.CodigoIva2,
+ mci.CodigoIva3,
+ mci.CodigoIva4,
+ mci.IvaDeducible1,
+ mci.IvaDeducible2,
+ mci.IvaDeducible3,
+ mci.IvaDeducible4,
+ mci.Intracomunitaria
+ FROM vn.XDiario x
+ LEFT JOIN movContaIVA mci ON mci.id = x.id
+ LEFT JOIN (SELECT *
+ FROM (SELECT DISTINCT ASIEN, FECREGCON, FECHA_EX
+ FROM vn.XDiario
+ WHERE enlazadoSage = FALSE
+ ORDER BY ASIEN, FECREGCON DESC, FECHA_EX DESC
+ LIMIT 10000000000000000000
+ ) sub GROUP BY ASIEN
+ )sub2 ON sub2.ASIEN = x.ASIEN
+ LEFT JOIN ( SELECT DISTINCT(account),cu.code
+ FROM vn.bank b
+ JOIN vn.currency cu ON cu.id = b.currencyFk
+ WHERE cu.code <> 'EUR' -- no se informa cuando la divisa en EUR
+ )sub3 ON sub3.account = x.SUBCTA
+ WHERE x.enlazadoSage = FALSE
+ AND x.empresa_id = vCompanyFk
+ AND x.FECHA BETWEEN vDatedFrom AND vDatedTo;
+
+-- Metálicos
+ UPDATE movConta m
+ JOIN (SELECT Asiento,
+ c.socialName name,
+ c.fi,
+ n.SiglaNacion,
+ m.CodigoCuenta,
+ m.Contrapartida
+ FROM movConta m
+ LEFT JOIN vn.client c ON c.id = IF(m.CargoAbono = 'H',
+ CAST(SUBSTRING(m.CodigoCuenta, 3, LENGTH(m.CodigoCuenta)) AS UNSIGNED),
+ CAST(SUBSTRING(m.Contrapartida, 3, LENGTH(m.Contrapartida)) AS UNSIGNED))
+ LEFT JOIN Naciones n ON n.countryFk = c.countryFk
+ WHERE m.Metalico347 = TRUE
+ AND m.enlazadoSage = FALSE
+ )sub ON m.Asiento = sub.Asiento
+ SET m.Metalico347 = TRUE,
+ m.TipoFactura = vInvoiceTypeInformativeCode,
+ m.CifDni = sub.fi,
+ m.Nombre = sub.name,
+ m.SiglaNacion = sub.SiglaNacion
+ WHERE m.enlazadoSage = FALSE;
+
+ UPDATE movConta m
+ SET m.Metalico347 = FALSE,
+ m.TipoFactura = ''
+ WHERE m.CargoAbono = 'D'
+ AND m.enlazadoSage = FALSE;
+
+-- Elimina cuentas de cliente/proveedor que no se utilizarán en la importación
+ DELETE cp
+ FROM clientesProveedores cp
+ LEFT JOIN movConta mc ON mc.codigoCuenta = cp.codigoCuenta
+ AND mc.enlazadoSage = FALSE
+ WHERE mc.codigoCuenta IS NULL;
+
+-- Elimina cuentas contables que no se utilizarán en la importación
+ DELETE pc
+ FROM planCuentasPGC pc
+ LEFT JOIN movConta mc ON mc.codigoCuenta = pc.codigoCuenta
+ AND mc.enlazadoSage = FALSE
+ WHERE mc.codigoCuenta IS NULL;
+
+-- DUAS
+ UPDATE movConta mci
+ JOIN vn.XDiario x ON x.ASIEN = mci.Asiento
+ JOIN TiposIva ti ON ti.CodigoIva = x.IVA
+ JOIN vn.pgcMaster pm ON pm.code = mci.CodigoCuenta COLLATE utf8mb3_unicode_ci
+ SET mci.BaseIva1 = x.BASEEURO,
+ mci.PorIva1 = x.IVA,
+ mci.CuotaIva1 = CAST((x.IVA / 100) * x.BASEEURO AS DECIMAL(10, 2)),
+ mci.CodigoTransaccion1 = vDuaTransactionFk,
+ mci.CodigoIva1 = vTaxImportReducedFk,
+ mci.IvaDeducible1 = TRUE,
+ mci.FechaFacturaOriginal = x.FECHA_EX,
+ mci.SuFacturaNo = x.FACTURAEX,
+ mci.FechaOperacion = x.FECHA_OP,
+ mci.ImporteFactura = mci.ImporteFactura + x.BASEEURO + CAST((x.IVA / 100) * x.BASEEURO AS DECIMAL(10, 2))
+ WHERE pm.description = 'HP Iva pendiente'
+ AND mci.enlazadoSage = FALSE
+ AND x.SERIE = vSerialDua COLLATE utf8mb3_unicode_ci
+ AND ti.Iva = 'I.V.A. 10% Nacional';
+
+ UPDATE movConta mci
+ JOIN vn.XDiario x ON x.ASIEN = mci.Asiento
+ JOIN TiposIva ti ON ti.CodigoIva = x.IVA
+ JOIN vn.pgcMaster pm ON pm.code = mci.CodigoCuenta COLLATE utf8mb3_unicode_ci
+ SET mci.BaseIva2 = x.BASEEURO ,
+ mci.PorIva2 = x.IVA,
+ mci.CuotaIva2 = CAST((x.IVA / 100) * x.BASEEURO AS DECIMAL(10,2)),
+ mci.CodigoTransaccion2 = vDuaTransactionFk ,
+ mci.CodigoIva2 = vTaxImportFk,
+ mci.IvaDeducible2 = TRUE,
+ mci.ImporteFactura = mci.ImporteFactura + x.BASEEURO + CAST((x.IVA / 100) * x.BASEEURO AS DECIMAL(10, 2))
+ WHERE pm.description = 'HP Iva pendiente'
+ AND mci.enlazadoSage = FALSE
+ AND x.SERIE = vSerialDua COLLATE utf8mb3_unicode_ci
+ AND ti.Iva = 'I.V.A. 21%';
+
+ UPDATE movConta mci
+ JOIN vn.XDiario x ON x.ASIEN = mci.Asiento
+ JOIN TiposIva ti ON ti.CodigoIva = x.IVA
+ JOIN vn.pgcMaster pm ON pm.code = mci.CodigoCuenta COLLATE utf8mb3_unicode_ci
+ SET mci.BaseIva3 = x.BASEEURO ,
+ mci.PorIva3 = x.IVA,
+ mci.CuotaIva3 = CAST((x.IVA / 100) * x.BASEEURO AS DECIMAL(10,2)),
+ mci.CodigoTransaccion3 = vDuaTransactionFk ,
+ mci.CodigoIva3 = vTaxImportSuperReducedFk,
+ mci.IvaDeducible3 = TRUE,
+ mci.ImporteFactura = mci.ImporteFactura + x.BASEEURO + CAST((x.IVA / 100) * x.BASEEURO AS DECIMAL(10, 2))
+ WHERE pm.description = 'HP Iva pendiente'
+ AND mci.enlazadoSage = FALSE
+ AND x.SERIE = vSerialDua COLLATE utf8mb3_unicode_ci
+ AND ti.Iva = 'I.V.A. 4%';
+
+-- Rectificativas
+ UPDATE movConta mci
+ JOIN (SELECT x.ASIEN, x.FECHA_RT, x.SERIE_RT, x.FACTU_RT
+ FROM movConta mci
+ JOIN vn.XDiario x ON x.ASIEN = mci.Asiento
+ WHERE mci.TipoRectificativa > 0
+ AND mci.enlazadoSage = FALSE
+ AND x.FACTU_RT IS NOT NULL
+ GROUP BY x.ASIEN
+ ) sub ON sub.ASIEN = mci.Asiento
+ SET mci.EjercicioFacturaOriginal = YEAR(sub.FECHA_RT),
+ mci.SerieFacturaOriginal = sub.SERIE_RT,
+ mci.NumeroFacturaOriginal = sub.FACTU_RT
+ WHERE mci.TipoRectificativa > 0 AND
+ mci.enlazadoSage = FALSE ;
+
+-- Exportaciones Andorras y Canarias cambia TT (la cuenta es compartida)
+ UPDATE movConta mci
+ SET CodigoTransaccion1 = vTransactionExportTaxFreeFk,
+ CodigoTransaccion2 = IF(CodigoTransaccion2 = 0, 0, vTransactionExportTaxFreeFk),
+ CodigoTransaccion3 = IF(CodigoTransaccion3 = 0, 0, vTransactionExportTaxFreeFk),
+ CodigoTransaccion4 = IF(CodigoTransaccion4 = 0, 0, vTransactionExportTaxFreeFk)
+ WHERE enlazadoSage = FALSE
+ AND (CodigoTransaccion1 = vTransactionExportFk
+ OR CodigoTransaccion2 = vTransactionExportFk
+ OR CodigoTransaccion3 = vTransactionExportFk
+ OR CodigoTransaccion4 = vTransactionExportFk)
+ AND SiglaNacion IN (vCountryCanariasCode COLLATE utf8mb3_unicode_ci, vCountryCeutaMelillaCode COLLATE utf8mb3_unicode_ci);
+
+ UPDATE movConta mc
+ SET CodigoDivisa = 'USD',
+ FactorCambio = TRUE,
+ ImporteCambio = ABS( CAST( IF( ImporteDivisa <> 0 AND ImporteCambio = 0, ImporteAsiento / ImporteDivisa, ImporteCambio) AS DECIMAL( 10, 2)))
+ WHERE enlazadoSage = FALSE
+ AND (ImporteCambio <> 0 OR ImporteDivisa <> 0 OR FactorCambio);
+
+ UPDATE movConta mc
+ SET importeDivisa= -importeDivisa
+ WHERE enlazadoSage = FALSE
+ AND importeDivisa > 0
+ AND ImporteAsiento < 0;
+
+ -- Comprobación que los importes e ivas sean correctos, avisa vía CAU
+ SELECT GROUP_CONCAT(Asiento ORDER BY Asiento ASC SEPARATOR ',') INTO vBookEntries
+ FROM(SELECT sub.Asiento
+ FROM (SELECT mc.Asiento, SUM(mc.ImporteAsiento) amount
+ FROM movConta mc
+ WHERE mc.enlazadoSage = FALSE
+ GROUP BY mc.Asiento)sub
+ JOIN (SELECT x.ASIEN, SUM(IFNULL(x.EURODEBE,0) + IFNULL(x.EUROHABER,0)) amount
+ FROM vn.XDiario x
+ WHERE x.enlazadoSage = FALSE
+ GROUP BY ASIEN)sub2 ON sub2.ASIEN = sub.Asiento
+ WHERE sub.amount <> sub2.amount
+ UNION ALL
+ SELECT sub.Asiento
+ FROM (SELECT Asiento, SUM(BaseIva1 + BaseIva2 + BaseIva3 + BaseIva4) amountTaxableBase
+ FROM movConta
+ WHERE TipoFactura <> 'I'
+ AND enlazadoSage = FALSE
+ GROUP BY Asiento) sub
+ JOIN (SELECT ASIEN, SUM(BASEEURO) amountTaxableBase
+ FROM (SELECT ASIEN, SUM(BASEEURO) BASEEURO
+ FROM vn.XDiario
+ WHERE FACTURA
+ AND auxiliar <> '*'
+ AND enlazadoSage = FALSE
+ GROUP BY FACTURA, ASIEN)sub3
+ GROUP BY ASIEN) sub2 ON sub2.ASIEN = sub.Asiento
+ WHERE sub.amountTaxableBase<>sub2.amountTaxableBase
+ AND sub.amountTaxableBase/2 <> sub2.amountTaxableBase) sub;
+
+ IF vBookEntries IS NOT NULL THEN
+ SELECT util.notification_send ("book-entries-imported-incorrectly", CONCAT('{"bookEntries":"', vBookEntries,'"}'), null);
+ END IF;
+END$$
+DELIMITER ;
diff --git a/db/changes/225201/00-aclTicketLog.sql b/db/changes/225201/00-aclTicketLog.sql
new file mode 100644
index 000000000..edba17ab4
--- /dev/null
+++ b/db/changes/225201/00-aclTicketLog.sql
@@ -0,0 +1,3 @@
+INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
+ VALUES
+ ('TicketLog', 'getChanges', 'READ', 'ALLOW', 'ROLE', 'employee');
diff --git a/db/changes/225201/00-entryDeleteRef.sql b/db/changes/225201/00-entryDeleteRef.sql
new file mode 100644
index 000000000..7e47eae63
--- /dev/null
+++ b/db/changes/225201/00-entryDeleteRef.sql
@@ -0,0 +1 @@
+ALTER TABLE `vn`.`entry` DROP COLUMN `ref`;
diff --git a/db/changes/225201/00-invoiceInConfig.sql b/db/changes/225201/00-invoiceInConfig.sql
new file mode 100644
index 000000000..a27b59440
--- /dev/null
+++ b/db/changes/225201/00-invoiceInConfig.sql
@@ -0,0 +1,12 @@
+CREATE TABLE `vn`.`invoiceInConfig` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `retentionRate` int(3) NOT NULL,
+ `retentionName` varchar(25) NOT NULL,
+ `sageWithholdingFk` smallint(6) NOT NULL,
+ PRIMARY KEY (`id`),
+ CONSTRAINT `invoiceInConfig_sageWithholdingFk` FOREIGN KEY (`sageWithholdingFk`) REFERENCES `sage`.`TiposRetencion`(`CodigoRetencion`) ON DELETE CASCADE ON UPDATE CASCADE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+
+INSERT INTO `vn`.`invoiceInConfig` (`id`, `retentionRate`, `retentionName`, `sageWithholdingFk`)
+ VALUES
+ (1, -2, 'Retención 2%', 2);
diff --git a/db/changes/225201/00-mdbApp.sql b/db/changes/225201/00-mdbApp.sql
new file mode 100644
index 000000000..3202e3f08
--- /dev/null
+++ b/db/changes/225201/00-mdbApp.sql
@@ -0,0 +1,11 @@
+CREATE TABLE `vn`.`mdbApp` (
+ `app` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `baselineBranchFk` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
+ `userFk` int(10) unsigned DEFAULT NULL,
+ `locked` datetime DEFAULT NULL,
+ PRIMARY KEY (`app`),
+ KEY `mdbApp_FK` (`userFk`),
+ KEY `mdbApp_FK_1` (`baselineBranchFk`),
+ CONSTRAINT `mdbApp_FK` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
+ CONSTRAINT `mdbApp_FK_1` FOREIGN KEY (`baselineBranchFk`) REFERENCES `mdbBranch` (`name`) ON UPDATE CASCADE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci
diff --git a/db/changes/225201/00-notification_send.sql b/db/changes/225201/00-notification_send.sql
new file mode 100644
index 000000000..a422cebac
--- /dev/null
+++ b/db/changes/225201/00-notification_send.sql
@@ -0,0 +1,24 @@
+DROP FUNCTION IF EXISTS `util`.`notification_send`;
+
+DELIMITER $$
+$$
+CREATE DEFINER=`root`@`localhost` FUNCTION `util`.`notification_send`(vNotificationName VARCHAR(255), vParams TEXT, vAuthorFk INT) RETURNS int(11)
+ MODIFIES SQL DATA
+BEGIN
+/**
+ * Sends a notification.
+ *
+ * @param vNotificationName The notification name
+ * @param vParams The notification parameters formatted as JSON
+ * @param vAuthorFk The notification author or %NULL if there is no author
+ * @return The notification id
+ */
+
+ INSERT INTO notificationQueue
+ SET notificationFk = vNotificationName,
+ params = vParams,
+ authorFk = vAuthorFk;
+
+ RETURN LAST_INSERT_ID();
+END$$
+DELIMITER ;
diff --git a/db/changes/225201/00-supplier_beforeUpdate.sql b/db/changes/225201/00-supplier_beforeUpdate.sql
new file mode 100644
index 000000000..08af8666b
--- /dev/null
+++ b/db/changes/225201/00-supplier_beforeUpdate.sql
@@ -0,0 +1,46 @@
+DROP TRIGGER IF EXISTS `vn`.`supplier_beforeUpdate`;
+USE `vn`;
+
+DELIMITER $$
+$$
+CREATE DEFINER=`root`@`localhost` TRIGGER `vn`.`supplier_beforeUpdate`
+ BEFORE UPDATE ON `supplier`
+ FOR EACH ROW
+BEGIN
+ DECLARE vHasChange BOOL;
+ DECLARE vPayMethodChanged BOOL;
+ DECLARE vPayMethodHasVerified BOOL;
+ DECLARE vParams JSON;
+ DECLARE vOldPayMethodName VARCHAR(20);
+ DECLARE vNewPayMethodName VARCHAR(20);
+
+ SELECT hasVerified INTO vPayMethodHasVerified
+ FROM payMethod
+ WHERE id = NEW.payMethodFk;
+
+ SET vPayMethodChanged = NOT(NEW.payMethodFk <=> OLD.payMethodFk);
+
+ IF vPayMethodChanged THEN
+ SELECT name INTO vOldPayMethodName
+ FROM payMethod
+ WHERE id = OLD.payMethodFk;
+ SELECT name INTO vNewPayMethodName
+ FROM payMethod
+ WHERE id = NEW.payMethodFk;
+
+ SET vParams = JSON_OBJECT(
+ 'name', NEW.name,
+ 'oldPayMethod', vOldPayMethodName,
+ 'newPayMethod', vNewPayMethodName
+ );
+ SELECT util.notification_send('supplier-pay-method-update', vParams, NULL) INTO @id;
+ END IF;
+
+ SET vHasChange = NOT(NEW.payDemFk <=> OLD.payDemFk AND NEW.payDay <=> OLD.payDay) OR vPayMethodChanged;
+
+ IF vHasChange AND vPayMethodHasVerified THEN
+ SET NEW.isPayMethodChecked = FALSE;
+ END IF;
+
+END$$
+DELIMITER ;
diff --git a/db/changes/225201/00-ticketSms.sql b/db/changes/225201/00-ticketSms.sql
new file mode 100644
index 000000000..f454f99b1
--- /dev/null
+++ b/db/changes/225201/00-ticketSms.sql
@@ -0,0 +1,8 @@
+CREATE TABLE `vn`.`ticketSms` (
+ `smsFk` mediumint(8) unsigned NOT NULL,
+ `ticketFk` int(11) DEFAULT NULL,
+ PRIMARY KEY (`smsFk`),
+ KEY `ticketSms_FK_1` (`ticketFk`),
+ CONSTRAINT `ticketSms_FK` FOREIGN KEY (`smsFk`) REFERENCES `sms` (`id`) ON UPDATE CASCADE,
+ CONSTRAINT `ticketSms_FK_1` FOREIGN KEY (`ticketFk`) REFERENCES `ticket` (`id`) ON UPDATE CASCADE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci
diff --git a/db/changes/225201/00-ticket_canAdvance.sql b/db/changes/225201/00-ticket_canAdvance.sql
new file mode 100644
index 000000000..acc4dcc4a
--- /dev/null
+++ b/db/changes/225201/00-ticket_canAdvance.sql
@@ -0,0 +1,104 @@
+DROP PROCEDURE IF EXISTS `vn`.`ticket_canAdvance`;
+
+DELIMITER $$
+$$
+CREATE DEFINER=`root`@`localhost` PROCEDURE `vn`.`ticket_canAdvance`(vDateFuture DATE, vDateToAdvance DATE, vWarehouseFk INT)
+BEGIN
+/**
+ * Devuelve los tickets y la cantidad de lineas de venta que se pueden adelantar.
+ *
+ * @param vDateFuture Fecha de los tickets que se quieren adelantar.
+ * @param vDateToAdvance Fecha a cuando se quiere adelantar.
+ * @param vWarehouseFk Almacén
+ */
+
+ DECLARE vDateInventory DATE;
+
+ SELECT inventoried INTO vDateInventory FROM vn.config;
+
+ DROP TEMPORARY TABLE IF EXISTS tmp.stock;
+ CREATE TEMPORARY TABLE tmp.stock
+ (itemFk INT PRIMARY KEY,
+ amount INT)
+ ENGINE = MEMORY;
+
+ INSERT INTO tmp.stock(itemFk, amount)
+ SELECT itemFk, SUM(quantity) amount FROM
+ (
+ SELECT itemFk, quantity
+ FROM vn.itemTicketOut
+ WHERE shipped >= vDateInventory
+ AND shipped < vDateFuture
+ AND warehouseFk = vWarehouseFk
+ UNION ALL
+ SELECT itemFk, quantity
+ FROM vn.itemEntryIn
+ WHERE landed >= vDateInventory
+ AND landed < vDateFuture
+ AND isVirtualStock = FALSE
+ AND warehouseInFk = vWarehouseFk
+ UNION ALL
+ SELECT itemFk, quantity
+ FROM vn.itemEntryOut
+ WHERE shipped >= vDateInventory
+ AND shipped < vDateFuture
+ AND warehouseOutFk = vWarehouseFk
+ ) t
+ GROUP BY itemFk HAVING amount != 0;
+
+ DROP TEMPORARY TABLE IF EXISTS tmp.filter;
+ CREATE TEMPORARY TABLE tmp.filter
+ (INDEX (id))
+ SELECT s.ticketFk futureId,
+ t2.ticketFk id,
+ sum((s.quantity <= IFNULL(st.amount,0))) hasStock,
+ count(DISTINCT s.id) saleCount,
+ t2.state,
+ t2.stateCode,
+ st.name futureState,
+ st.code futureStateCode,
+ GROUP_CONCAT(DISTINCT ipt.code ORDER BY ipt.code) futureIpt,
+ t2.ipt,
+ t.workerFk,
+ CAST(sum(litros) AS DECIMAL(10,0)) liters,
+ CAST(count(*) AS DECIMAL(10,0)) `lines`,
+ t2.shipped,
+ t.shipped futureShipped,
+ t2.totalWithVat,
+ t.totalWithVat futureTotalWithVat
+ FROM vn.ticket t
+ JOIN vn.ticketState ts ON ts.ticketFk = t.id
+ JOIN vn.state st ON st.id = ts.stateFk
+ JOIN vn.saleVolume sv ON t.id = sv.ticketFk
+ JOIN (SELECT
+ t2.id ticketFk,
+ t2.addressFk,
+ st.name state,
+ st.code stateCode,
+ GROUP_CONCAT(DISTINCT ipt.code ORDER BY ipt.code) ipt,
+ t2.shipped,
+ t2.totalWithVat
+ FROM vn.ticket t2
+ JOIN vn.sale s ON s.ticketFk = t2.id
+ JOIN vn.item i ON i.id = s.itemFk
+ JOIN vn.ticketState ts ON ts.ticketFk = t2.id
+ JOIN vn.state st ON st.id = ts.stateFk
+ LEFT JOIN vn.itemPackingType ipt ON ipt.code = i.itemPackingTypeFk
+ WHERE t2.shipped BETWEEN vDateToAdvance AND util.dayend(vDateToAdvance)
+ AND t2.warehouseFk = vWarehouseFk
+ GROUP BY t2.id) t2 ON t2.addressFk = t.addressFk
+ JOIN vn.sale s ON s.ticketFk = t.id
+ JOIN vn.item i ON i.id = s.itemFk
+ LEFT JOIN vn.itemPackingType ipt ON ipt.code = i.itemPackingTypeFk
+ LEFT JOIN tmp.stock st ON st.itemFk = s.itemFk
+ WHERE t.shipped BETWEEN vDateFuture AND util.dayend(vDateFuture)
+ AND t.warehouseFk = vWarehouseFk
+ GROUP BY t.id;
+
+ DROP TEMPORARY TABLE tmp.stock;
+END$$
+DELIMITER ;
+
+INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalType, principalId)
+VALUES
+ ('Ticket', 'getTicketsAdvance', 'READ', 'ALLOW', 'ROLE', 'employee');
diff --git a/db/changes/225201/00-ticket_canbePostponed.sql b/db/changes/225201/00-ticket_canbePostponed.sql
new file mode 100644
index 000000000..572824b4b
--- /dev/null
+++ b/db/changes/225201/00-ticket_canbePostponed.sql
@@ -0,0 +1,73 @@
+DROP PROCEDURE IF EXISTS `vn`.`ticket_canbePostponed`;
+
+DELIMITER $$
+$$
+CREATE DEFINER=`root`@`localhost` PROCEDURE `vn`.`ticket_canbePostponed`(vOriginDated DATE, vFutureDated DATE, vWarehouseFk INT)
+BEGIN
+/**
+ * Devuelve un listado de tickets susceptibles de fusionarse con otros tickets en el futuro
+ *
+ * @param vOriginDated Fecha en cuestión
+ * @param vFutureDated Fecha en el futuro a sondear
+ * @param vWarehouseFk Identificador de vn.warehouse
+ */
+ DROP TEMPORARY TABLE IF EXISTS tmp.filter;
+ CREATE TEMPORARY TABLE tmp.filter
+ (INDEX (id))
+ SELECT sv.ticketFk id,
+ sub2.id futureId,
+ GROUP_CONCAT(DISTINCT i.itemPackingTypeFk ORDER BY i.itemPackingTypeFk) ipt,
+ CAST(sum(litros) AS DECIMAL(10,0)) liters,
+ CAST(count(*) AS DECIMAL(10,0)) `lines`,
+ st.name state,
+ sub2.iptd futureIpt,
+ sub2.state futureState,
+ t.clientFk,
+ t.warehouseFk,
+ ts.alertLevel,
+ t.shipped,
+ sub2.shipped futureShipped,
+ t.workerFk,
+ st.code stateCode,
+ sub2.code futureStateCode
+ FROM vn.saleVolume sv
+ JOIN vn.sale s ON s.id = sv.saleFk
+ JOIN vn.item i ON i.id = s.itemFk
+ JOIN vn.ticket t ON t.id = sv.ticketFk
+ JOIN vn.address a ON a.id = t.addressFk
+ JOIN vn.province p ON p.id = a.provinceFk
+ JOIN vn.country c ON c.id = p.countryFk
+ JOIN vn.ticketState ts ON ts.ticketFk = t.id
+ JOIN vn.state st ON st.id = ts.stateFk
+ JOIN vn.alertLevel al ON al.id = ts.alertLevel
+ LEFT JOIN vn.ticketParking tp ON tp.ticketFk = t.id
+ LEFT JOIN (
+ SELECT *
+ FROM (
+ SELECT
+ t.addressFk,
+ t.id,
+ t.shipped,
+ st.name state,
+ st.code code,
+ GROUP_CONCAT(DISTINCT i.itemPackingTypeFk ORDER BY i.itemPackingTypeFk) iptd
+ FROM vn.ticket t
+ JOIN vn.ticketState ts ON ts.ticketFk = t.id
+ JOIN vn.state st ON st.id = ts.stateFk
+ JOIN vn.sale s ON s.ticketFk = t.id
+ JOIN vn.item i ON i.id = s.itemFk
+ WHERE t.shipped BETWEEN vFutureDated
+ AND util.dayend(vFutureDated)
+ AND t.warehouseFk = vWarehouseFk
+ GROUP BY t.id
+ ) sub
+ GROUP BY sub.addressFk
+ ) sub2 ON sub2.addressFk = t.addressFk AND t.id != sub2.id
+ WHERE t.shipped BETWEEN vOriginDated AND util.dayend(vOriginDated)
+ AND t.warehouseFk = vWarehouseFk
+ AND al.code = 'FREE'
+ AND tp.ticketFk IS NULL
+ GROUP BY sv.ticketFk
+ HAVING futureId;
+END$$
+DELIMITER ;
diff --git a/db/changes/225201/00-ticket_split_merge.sql b/db/changes/225201/00-ticket_split_merge.sql
new file mode 100644
index 000000000..a1a6579e6
--- /dev/null
+++ b/db/changes/225201/00-ticket_split_merge.sql
@@ -0,0 +1,2 @@
+DROP PROCEDURE IF EXISTS `ticket_split`;
+DROP PROCEDURE IF EXISTS `ticket_merge`;
diff --git a/db/changes/225201/00-utilNotification.sql b/db/changes/225201/00-utilNotification.sql
new file mode 100644
index 000000000..74f0de5e2
--- /dev/null
+++ b/db/changes/225201/00-utilNotification.sql
@@ -0,0 +1,4 @@
+INSERT INTO `util`.`notification` (id, name, description) VALUES(3, 'book-entries-imported-incorrectly', 'accounting entries exported incorrectly');
+INSERT INTO `util`.`notificationAcl` (notificationFk, roleFk) VALUES(3, 5);
+INSERT IGNORE INTO `util`.`notificationSubscription` (notificationFk, userFk) VALUES(3, 19663);
+
diff --git a/db/changes/225201/01-create_stateI18n.sql b/db/changes/225201/01-create_stateI18n.sql
new file mode 100644
index 000000000..799360b1e
--- /dev/null
+++ b/db/changes/225201/01-create_stateI18n.sql
@@ -0,0 +1,7 @@
+CREATE TABLE `vn`.`stateI18n` (
+ `stateFk` tinyint(3) unsigned NOT NULL,
+ `lang` char(2) NOT NULL,
+ `name` varchar(255) NOT NULL,
+ PRIMARY KEY (`stateFk`, `lang`),
+ CONSTRAINT `stateI18n_state_id` FOREIGN KEY (`stateFk`) REFERENCES `vn`.`state` (`id`)
+) ENGINE = InnoDB DEFAULT CHARSET = utf8;
diff --git a/db/changes/225201/01-modules.sql b/db/changes/225201/01-modules.sql
new file mode 100644
index 000000000..82861a5e2
--- /dev/null
+++ b/db/changes/225201/01-modules.sql
@@ -0,0 +1,60 @@
+UPDATE salix.module t
+SET t.code = 'supplier'
+WHERE t.code LIKE 'Suppliers' ESCAPE '#';
+
+UPDATE salix.module t
+SET t.code = 'travel'
+WHERE t.code LIKE 'Travels' ESCAPE '#';
+
+UPDATE salix.module t
+SET t.code = 'ticket'
+WHERE t.code LIKE 'Tickets' ESCAPE '#';
+
+UPDATE salix.module t
+SET t.code = 'zone'
+WHERE t.code LIKE 'Zones' ESCAPE '#';
+
+UPDATE salix.module t
+SET t.code = 'monitor'
+WHERE t.code LIKE 'Monitors' ESCAPE '#';
+
+UPDATE salix.module t
+SET t.code = 'entry'
+WHERE t.code LIKE 'Entries' ESCAPE '#';
+
+UPDATE salix.module t
+SET t.code = 'invoiceIn'
+WHERE t.code LIKE 'Invoices in' ESCAPE '#';
+
+UPDATE salix.module t
+SET t.code = 'customer'
+WHERE t.code LIKE 'Clients' ESCAPE '#';
+
+UPDATE salix.module t
+SET t.code = 'route'
+WHERE t.code LIKE 'Routes' ESCAPE '#';
+
+UPDATE salix.module t
+SET t.code = 'item'
+WHERE t.code LIKE 'Items' ESCAPE '#';
+
+UPDATE salix.module t
+SET t.code = 'claim'
+WHERE t.code LIKE 'Claims' ESCAPE '#';
+
+UPDATE salix.module t
+SET t.code = 'user'
+WHERE t.code LIKE 'Users' ESCAPE '#';
+
+UPDATE salix.module t
+SET t.code = 'invoiceOut'
+WHERE t.code LIKE 'Invoices out' ESCAPE '#';
+
+UPDATE salix.module t
+SET t.code = 'order'
+WHERE t.code LIKE 'Orders' ESCAPE '#';
+
+UPDATE salix.module t
+SET t.code = 'worker'
+WHERE t.code LIKE 'Workers' ESCAPE '#';
+
diff --git a/db/changes/225201/02-insert_stateI18n.sql b/db/changes/225201/02-insert_stateI18n.sql
new file mode 100644
index 000000000..7df36d662
--- /dev/null
+++ b/db/changes/225201/02-insert_stateI18n.sql
@@ -0,0 +1,73 @@
+INSERT INTO
+ `vn`.`stateI18n` (`stateFk`, `lang`, `name`)
+VALUES
+ (1, 'en', 'Fix'),
+ (1, 'es', 'Arreglar'),
+ (2, 'en', 'Free'),
+ (2, 'es', 'Libre'),
+ (3, 'en', 'OK'),
+ (3, 'es', 'OK'),
+ (4, 'en', 'Printed'),
+ (4, 'es', 'Impreso'),
+ (5, 'en', 'Preparation'),
+ (5, 'es', 'Preparación'),
+ (6, 'en', 'In Review'),
+ (6, 'es', 'En Revisión'),
+ (7, 'en', 'Unfinished'),
+ (7, 'es', 'Sin Acabar'),
+ (8, 'en', 'Reviewed'),
+ (8, 'es', 'Revisado'),
+ (9, 'en', 'Fitting'),
+ (9, 'es', 'Encajando'),
+ (10, 'en', 'Fitted'),
+ (10, 'es', 'Encajado'),
+ (11, 'en', 'Billed'),
+ (11, 'es', 'Facturado'),
+ (12, 'en', 'Blocked'),
+ (12, 'es', 'Bloqueado'),
+ (13, 'en', 'In Delivery'),
+ (13, 'es', 'En Reparto'),
+ (14, 'en', 'Prepared'),
+ (14, 'es', 'Preparado'),
+ (15, 'en', 'Pending Collection'),
+ (15, 'es', 'Pendiente de Recogida'),
+ (16, 'en', 'Delivered'),
+ (16, 'es', 'Entregado'),
+ (20, 'en', 'Assigned'),
+ (20, 'es', 'Asignado'),
+ (21, 'en', 'Returned'),
+ (21, 'es', 'Retornado'),
+ (22, 'en', 'Pending to extend'),
+ (22, 'es', 'Pendiente ampliar'),
+ (23, 'en', 'URGENT'),
+ (23, 'es', 'URGENTE'),
+ (24, 'en', 'Chained'),
+ (24, 'es', 'Encadenado'),
+ (25, 'en', 'Shipping'),
+ (25, 'es', 'Embarcando'),
+ (26, 'en', 'Preparation'),
+ (26, 'es', 'Preparación previa'),
+ (27, 'en', 'Assisted preparation'),
+ (27, 'es', 'Preparación asistida'),
+ (28, 'en', 'Preparation OK'),
+ (28, 'es', 'Previa OK'),
+ (29, 'en', 'Preparation Printed'),
+ (29, 'es', 'Previa Impreso'),
+ (30, 'en', 'Shipped'),
+ (30, 'es', 'Embarcado'),
+ (31, 'en', 'Stowaway printed'),
+ (31, 'es', 'Polizón Impreso'),
+ (32, 'en', 'Stowaway OK'),
+ (32, 'es', 'Polizón OK'),
+ (33, 'en', 'Auto_Printed'),
+ (33, 'es', 'Auto_Impreso'),
+ (34, 'en', 'Pending payment'),
+ (34, 'es', 'Pendiente de pago'),
+ (35, 'en', 'Half-Embedded'),
+ (35, 'es', 'Semi-Encajado'),
+ (36, 'en', 'Preparation Reviewing'),
+ (36, 'es', 'Previa Revisando'),
+ (37, 'en', 'Preparation Reviewed'),
+ (37, 'es', 'Previa Revisado'),
+ (38, 'en', 'Preparation Chamber'),
+ (38, 'es', 'Preparación Cámara');
\ No newline at end of file
diff --git a/db/changes/225201/02-starredModule.sql b/db/changes/225201/02-starredModule.sql
new file mode 100644
index 000000000..3ca67fce4
--- /dev/null
+++ b/db/changes/225201/02-starredModule.sql
@@ -0,0 +1,16 @@
+UPDATE `vn`.starredModule SET moduleFk = 'customer' WHERE moduleFk = 'Clients';
+UPDATE `vn`.starredModule SET moduleFk = 'ticket' WHERE moduleFk = 'Tickets';
+UPDATE `vn`.starredModule SET moduleFk = 'route' WHERE moduleFk = 'Routes';
+UPDATE `vn`.starredModule SET moduleFk = 'zone' WHERE moduleFk = 'Zones';
+UPDATE `vn`.starredModule SET moduleFk = 'order' WHERE moduleFk = 'Orders';
+UPDATE `vn`.starredModule SET moduleFk = 'claim' WHERE moduleFk = 'Claims';
+UPDATE `vn`.starredModule SET moduleFk = 'item' WHERE moduleFk = 'Items';
+UPDATE `vn`.starredModule SET moduleFk = 'worker' WHERE moduleFk = 'Workers';
+UPDATE `vn`.starredModule SET moduleFk = 'entry' WHERE moduleFk = 'Entries';
+UPDATE `vn`.starredModule SET moduleFk = 'invoiceOut' WHERE moduleFk = 'Invoices out';
+UPDATE `vn`.starredModule SET moduleFk = 'invoiceIn' WHERE moduleFk = 'Invoices in';
+UPDATE `vn`.starredModule SET moduleFk = 'monitor' WHERE moduleFk = 'Monitors';
+UPDATE `vn`.starredModule SET moduleFk = 'user' WHERE moduleFk = 'Users';
+UPDATE `vn`.starredModule SET moduleFk = 'supplier' WHERE moduleFk = 'Suppliers';
+UPDATE `vn`.starredModule SET moduleFk = 'travel' WHERE moduleFk = 'Travels';
+UPDATE `vn`.starredModule SET moduleFk = 'shelving' WHERE moduleFk = 'Shelvings';
\ No newline at end of file
diff --git a/db/changes/230201/00-autoincrement_VnReport_VnPrinter.sql b/db/changes/230201/00-autoincrement_VnReport_VnPrinter.sql
new file mode 100644
index 000000000..a28bf6e90
--- /dev/null
+++ b/db/changes/230201/00-autoincrement_VnReport_VnPrinter.sql
@@ -0,0 +1,4 @@
+SET FOREIGN_KEY_CHECKS = 0;
+ALTER TABLE `vn`.`report` MODIFY COLUMN id tinyint(3) unsigned NOT NULL AUTO_INCREMENT;
+ALTER TABLE `vn`.`printer` MODIFY COLUMN id tinyint(3) unsigned NOT NULL AUTO_INCREMENT;
+SET FOREIGN_KEY_CHECKS = 1;
diff --git a/db/changes/230201/00-kkearSaleChecked.sql b/db/changes/230201/00-kkearSaleChecked.sql
new file mode 100644
index 000000000..03e854bbd
--- /dev/null
+++ b/db/changes/230201/00-kkearSaleChecked.sql
@@ -0,0 +1,2 @@
+DELETE FROM `salix`.`ACL` WHERE model="SaleChecked";
+DROP TABLE IF EXISTS `vn`.`saleChecked`;
diff --git a/db/docker.js b/db/docker.js
index 34026f85f..05217d659 100644
--- a/db/docker.js
+++ b/db/docker.js
@@ -19,8 +19,9 @@ module.exports = class Docker {
* to avoid a bug with OverlayFS driver on MacOS.
*
* @param {Boolean} ci continuous integration environment argument
+ * @param {String} networkName Name of the container network
*/
- async run(ci) {
+ async run(ci, networkName = 'jenkins') {
let d = new Date();
let pad = v => v < 10 ? '0' + v : v;
let stamp = `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())}`;
@@ -42,8 +43,12 @@ module.exports = class Docker {
let runChown = process.platform != 'linux';
+ let network = '';
+ if (ci) network = `--network="${networkName}"`;
+
log('Starting container...');
- const container = await this.execP(`docker run --env RUN_CHOWN=${runChown} -d ${dockerArgs} salix-db`);
+ const container = await this.execP(
+ `docker run ${network} --env RUN_CHOWN=${runChown} -d ${dockerArgs} salix-db`);
this.id = container.stdout.trim();
try {
@@ -51,10 +56,11 @@ module.exports = class Docker {
let inspect = await this.execP(`docker inspect -f "{{json .NetworkSettings}}" ${this.id}`);
let netSettings = JSON.parse(inspect.stdout);
- if (ci)
- this.dbConf.host = netSettings.Gateway;
-
- this.dbConf.port = netSettings.Ports['3306/tcp'][0]['HostPort'];
+ if (ci) {
+ this.dbConf.host = netSettings.Networks[networkName].IPAddress;
+ this.dbConf.port = 3306;
+ } else
+ this.dbConf.port = netSettings.Ports['3306/tcp'][0]['HostPort'];
}
await this.wait();
diff --git a/db/dump/dumpedFixtures.sql b/db/dump/dumpedFixtures.sql
index c9c265ae7..77dd8c1f7 100644
--- a/db/dump/dumpedFixtures.sql
+++ b/db/dump/dumpedFixtures.sql
@@ -1,10 +1,10 @@
USE `util`;
--- MySQL dump 10.19 Distrib 10.3.34-MariaDB, for debian-linux-gnu (x86_64)
+-- MariaDB dump 10.19 Distrib 10.9.4-MariaDB, for Linux (x86_64)
--
-- Host: db.verdnatura.es Database: util
-- ------------------------------------------------------
--- Server version 10.7.4-MariaDB-1:10.7.4+maria~bullseye-log
+-- Server version 10.7.6-MariaDB-1:10.7.6+maria~deb11-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@@ -22,7 +22,7 @@ USE `util`;
LOCK TABLES `config` WRITE;
/*!40000 ALTER TABLE `config` DISABLE KEYS */;
-INSERT INTO `config` VALUES (1,'10480',0,'production',NULL);
+INSERT INTO `config` VALUES (1,'224602',0,'production',NULL);
/*!40000 ALTER TABLE `config` ENABLE KEYS */;
UNLOCK TABLES;
@@ -32,7 +32,9 @@ UNLOCK TABLES;
LOCK TABLES `version` WRITE;
/*!40000 ALTER TABLE `version` DISABLE KEYS */;
-INSERT INTO `version` VALUES ('salix','10230','53f69ae8e526a4a5d827c237a5b076d38507b392','2020-11-09 11:06:43',NULL),('vn-database','10322','4e88fb5d53bd852a3fe96e00cf96bf77540fabc4','2022-09-15 09:48:41','10337');
+INSERT INTO `version` VALUES
+('salix','10230','53f69ae8e526a4a5d827c237a5b076d38507b392','2020-11-09 11:06:43',NULL),
+('vn-database','10396','79ff2f97f529169a98ae52193298df320158ca11','2022-11-17 15:36:38','10399');
/*!40000 ALTER TABLE `version` ENABLE KEYS */;
UNLOCK TABLES;
@@ -42,7 +44,257 @@ UNLOCK TABLES;
LOCK TABLES `versionLog` WRITE;
/*!40000 ALTER TABLE `versionLog` DISABLE KEYS */;
-INSERT INTO `versionLog` VALUES ('vn-database','00001','00-test.sql','juan@10.5.1.3','2022-01-31 10:12:26',NULL,NULL),('vn-database','00003','00-sage.sql','juan@10.5.1.3','2022-01-31 10:12:26',NULL,NULL),('vn-database','10008','00-alterRoleConfig.sql','juan@10.5.1.3','2022-01-31 10:12:26',NULL,NULL),('vn-database','10014','00-rolePrefix.sql','jenkins@10.0.2.68','2022-02-11 00:13:25',NULL,NULL),('vn-database','10017','01-firstScript.sql','jenkins@10.0.2.70','2022-03-09 11:36:54',NULL,NULL),('vn-database','10021','00-bankAccount.sql','jenkins@10.0.2.69','2022-03-16 14:11:22',NULL,NULL),('vn-database','10023','00-firstScript.sql','jenkins@10.0.2.69','2022-03-16 15:05:29',NULL,NULL),('vn-database','10026','00-invoiceInIntrastat.sql','jenkins@10.0.2.69','2022-03-21 15:10:53',NULL,NULL),('vn-database','10027','00-Clientes_cedidos.sql','jenkins@10.0.2.69','2022-03-22 15:58:12',NULL,NULL),('vn-database','10028','00-item_last_buy_.sql','jenkins@10.0.2.69','2022-03-22 15:58:12',NULL,NULL),('vn-database','10029','00-bankToViewAccountingToTable.sql','jenkins@10.0.2.69','2022-03-22 15:58:12',NULL,NULL),('vn-database','10030','00-KkejarNiche.sql','jenkins@10.0.2.69','2022-03-22 15:58:12',NULL,NULL),('vn-database','10036','00-updateBuyConfig.sql','jenkins@10.0.2.69','2022-03-29 12:36:54',NULL,NULL),('vn-database','10037','00-firstScript.sql','jenkins@10.0.2.69','2022-03-28 11:14:26',NULL,NULL),('vn-database','10038','00-printServerQueue.sql','jenkins@10.0.2.69','2022-03-29 08:13:24',NULL,NULL),('vn-database','10048','00-firstScript.sql','jenkins@10.0.2.69','2022-03-30 12:29:06',NULL,NULL),('vn-database','10058','00-vehicleAddFields.sql','jenkins@10.0.2.69','2022-04-06 08:48:34',NULL,NULL),('vn-database','10060','00-firstScript.sql','jenkins@10.0.2.69','2022-04-07 08:50:11',NULL,NULL),('vn-database','10062','00-firstScript.sql','jenkins@10.0.2.69','2022-04-06 10:51:45',NULL,NULL),('vn-database','10064','00-firstScript.sql','jenkins@10.0.2.69','2022-04-06 13:57:11',NULL,NULL),('vn-database','10066','00-firstScript.sql','jenkins@10.0.2.69','2022-04-07 08:50:12',NULL,NULL),('vn-database','10067','00-firstScript.sql','jenkins@10.0.2.69','2022-04-08 10:18:20',NULL,NULL),('vn-database','10071','00-packingSiteLog.sql','jenkins@10.0.2.69','2022-04-08 09:37:30',NULL,NULL),('vn-database','10072','00-firstScript.sql','jenkins@10.0.2.69','2022-04-08 11:01:46',NULL,NULL),('vn-database','10073','00-firstScript.sql','jenkins@10.0.2.69','2022-04-08 13:40:56',NULL,NULL),('vn-database','10074','00-firstScript.sql','jenkins@10.0.2.69','2022-04-10 13:15:05',NULL,NULL),('vn-database','10077','00-firstScript.sql','jenkins@10.0.2.69','2022-04-12 08:07:15',NULL,NULL),('vn-database','10078','00-firstScript.sql','jenkins@10.0.2.69','2022-04-13 07:44:21',NULL,NULL),('vn-database','10079','00-firstScript.sql','jenkins@10.0.2.69','2022-04-12 12:01:37',NULL,NULL),('vn-database','10086','00-firstScript.sql','jenkins@10.0.2.69','2022-04-13 08:58:34',NULL,NULL),('vn-database','10087','00-firstScript.sql','jenkins@10.0.2.69','2022-04-13 09:39:49',NULL,NULL),('vn-database','10088','00-firstScript.sql','jenkins@10.0.2.69','2022-04-13 15:05:12',NULL,NULL),('vn-database','10089','00-firstScript.sql','jenkins@10.0.2.69','2022-04-18 14:12:52',NULL,NULL),('vn-database','10090','00-firstScript.sql','jenkins@10.0.2.69','2022-04-18 14:34:46',NULL,NULL),('vn-database','10092','00-firstScript.sql','jenkins@10.0.2.69','2022-04-19 14:45:46',NULL,NULL),('vn-database','10093','00-autoradioConfig.sql','jenkins@10.0.2.69','2022-05-03 09:16:47',NULL,NULL),('vn-database','10094','00-firstScript.sql','jenkins@10.0.2.69','2022-04-20 10:57:30',NULL,NULL),('vn-database','10097','00-firstScript.sql','jenkins@10.0.2.69','2022-05-05 10:12:59',NULL,NULL),('vn-database','10099','00-firstScript.sql','jenkins@10.0.2.69','2022-04-20 14:35:27',NULL,NULL),('vn-database','10100','00-firstScript.sql','jenkins@10.0.2.69','2022-04-20 14:35:27',NULL,NULL),('vn-database','10101','00-firstScript.sql','jenkins@10.0.2.69','2022-04-21 14:59:31',NULL,NULL),('vn-database','10103','00-awbVolume.sql','jenkins@10.0.2.69','2022-05-05 10:12:59',NULL,NULL),('vn-database','10104','00-firstScript.sql','jenkins@10.0.2.69','2022-05-05 10:12:59',NULL,NULL),('vn-database','10105','00-firstScript.sql','jenkins@10.0.2.69','2022-05-05 10:13:00',NULL,NULL),('vn-database','10107','00-firstScript.sql','jenkins@10.0.2.69','2022-04-23 10:53:53',NULL,NULL),('vn-database','10112','00-firstScript.sql','jenkins@10.0.2.69','2022-05-09 09:14:53',NULL,NULL),('vn-database','10113','00-firstScript.sql','jenkins@10.0.2.69','2022-05-05 10:13:00',NULL,NULL),('vn-database','10114','00-updateConfig.sql','jenkins@10.0.2.69','2022-04-27 13:37:25',NULL,NULL),('vn-database','10116','00-firstScript.sql','jenkins@10.0.2.69','2022-04-28 11:10:14',NULL,NULL),('vn-database','10118','00-firstScript.sql','jenkins@10.0.2.69','2022-04-29 08:10:15',NULL,NULL),('vn-database','10119','00-AfegirFKPart1.sql','jenkins@10.0.2.69','2022-05-05 10:13:00',NULL,NULL),('vn-database','10119','01-AfegirFkPart2.sql','jenkins@10.0.2.69','2022-05-05 10:22:25',NULL,NULL),('vn-database','10125','00-firstScript.sql','jenkins@10.0.2.68','2022-05-18 18:44:30',NULL,NULL),('vn-database','10127','00-firstScript.sql','jenkins@10.0.2.69','2022-05-02 11:04:46',NULL,NULL),('vn-database','10128','00-firstScript.sql','jenkins@10.0.2.69','2022-05-02 13:04:31',NULL,NULL),('vn-database','10129','00-firstScript.sql','jenkins@10.0.2.69','2022-05-03 08:21:01',NULL,NULL),('vn-database','10132','00-firstScript.sql','jenkins@10.0.2.69','2022-05-05 10:22:25',NULL,NULL),('vn-database','10133','00-firstScript.sql','jenkins@10.0.2.69','2022-05-05 14:32:30',NULL,NULL),('vn-database','10134','00-firstScript.sql','jenkins@10.0.2.69','2022-05-06 07:45:25',NULL,NULL),('vn-database','10135','00-firstScript.sql','jenkins@10.0.2.69','2022-06-17 08:46:17',NULL,NULL),('vn-database','10136','00-workerTimeControl.sql','jenkins@10.0.2.69','2022-05-09 13:51:12',NULL,NULL),('vn-database','10138','00-firstScript.sql','jenkins@10.0.2.69','2022-05-10 13:58:05',NULL,NULL),('vn-database','10139','00-firstScript.sql','jenkins@10.0.2.68','2022-05-16 14:32:37',NULL,NULL),('vn-database','10139','01-secondScript.sql','jenkins@10.0.2.68','2022-05-17 12:16:13',NULL,NULL),('vn-database','10141','00-firstScript.sql','jenkins@10.0.2.70','2022-05-12 08:27:31',NULL,NULL),('vn-database','10142','00-firstScript.sql','jenkins@10.0.2.68','2022-05-20 09:20:31',NULL,NULL),('vn-database','10143','00-firstScript.sql','jenkins@10.0.2.68','2022-05-20 09:20:31',NULL,NULL),('vn-database','10144','00-AfegirFKPArt1.sql','jenkins@10.0.2.68','2022-05-20 09:22:33',NULL,NULL),('vn-database','10144','00-firstScript.sql','jenkins@10.0.2.68','2022-05-13 09:44:25',NULL,NULL),('vn-database','10147','00-firstScript.sql','jenkins@10.0.2.68','2022-05-20 09:22:33',NULL,NULL),('vn-database','10149','00-firstScript.sql','jenkins@10.0.2.68','2022-05-20 09:22:33',NULL,NULL),('vn-database','10150','00-firstScript.sql','jenkins@10.0.2.68','2022-05-17 09:57:16',NULL,NULL),('vn-database','10152','00-firstScript.sql','jenkins@10.0.2.68','2022-05-20 09:22:34',NULL,NULL),('vn-database','10153','00-firstScript.sql','jenkins@10.0.2.68','2022-05-20 09:22:34',NULL,NULL),('vn-database','10154','00-compressionKk.sql','jenkins@10.0.2.68','2022-05-20 09:22:34',NULL,NULL),('vn-database','10157','00-firstScript.sql','jenkins@10.0.2.68','2022-05-20 09:22:35',NULL,NULL),('vn-database','10158','00-firstScript.sql','jenkins@10.0.2.68','2022-06-02 12:47:21',NULL,NULL),('vn-database','10160','00-firstScript.sql','jenkins@10.0.2.69','2022-06-30 09:30:50',NULL,NULL),('vn-database','10163','00-firstScript.sql','jenkins@10.0.2.68','2022-05-23 08:17:14',NULL,NULL),('vn-database','10164','00-borrarSectorsDesus.sql','jenkins@10.0.2.68','2022-06-02 12:47:21',NULL,NULL),('vn-database','10165','00-firstScript.sql','jenkins@10.0.2.68','2022-06-02 12:47:22',NULL,NULL),('vn-database','10166','00-firstScript.sql','jenkins@10.0.2.68','2022-05-24 16:11:21',NULL,NULL),('vn-database','10167','00-renameVnActiveContrat.sql','jenkins@10.0.2.68','2022-06-02 12:47:22',NULL,NULL),('vn-database','10168','00-firstScript.sql','jenkins@10.0.2.68','2022-06-02 12:47:22',NULL,NULL),('vn-database','10169','00-createTableBankEntityConfig.sql','jenkins@10.0.2.68','2022-06-02 12:47:22',NULL,NULL),('vn-database','10169','02-addNotNullToBankEntityBic.sql','jenkins@10.0.2.68','2022-06-02 12:47:22',NULL,NULL),('vn-database','10171','00-volumeConfig.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-18 14:11:11',NULL,NULL),('vn-database','10171','01-itemWeight.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-18 16:01:34',NULL,NULL),('vn-database','10171','02-agencymode.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-18 16:01:34',NULL,NULL),('vn-database','10172','00-firstScript.sql','jenkins@10.0.2.68','2022-06-02 12:47:22',NULL,NULL),('vn-database','10174','00-firstScript.sql','jenkins@10.0.2.69','2022-06-17 08:46:17',NULL,NULL),('vn-database','10175','00-firstScript.sql','jenkins@10.0.2.69','2022-06-17 09:03:41',NULL,NULL),('vn-database','10177','00-crearTablaSpecialLabels.sql','jenkins@10.0.2.68','2022-06-02 12:47:22',NULL,NULL),('vn-database','10178','00-firstScript.sql','jenkins@10.0.2.68','2022-06-02 12:47:24',NULL,NULL),('vn-database','10179','00-firstScript.sql','jenkins@10.0.2.68','2022-06-02 12:47:24',NULL,NULL),('vn-database','10183','00-firstScript.sql','jenkins@10.0.2.68','2022-06-02 12:47:24',NULL,NULL),('vn-database','10184','00-firstScript.sql','jenkins@10.0.2.68','2022-06-03 08:05:34',NULL,NULL),('vn-database','10185','00-firstScript.sql','jenkins@10.0.2.68','2022-06-06 09:07:45',NULL,NULL),('vn-database','10186','00-desactivar_trigger.sql','jenkins@10.0.2.68','2022-06-07 09:31:23',NULL,NULL),('vn-database','10186','01-alter_Table_buy.sql','jenkins@10.0.2.68','2022-06-07 09:34:47',NULL,NULL),('vn-database','10186','02-alter_table_entryConfig.sql','jenkins@10.0.2.68','2022-06-07 09:34:47',NULL,NULL),('vn-database','10186','04-regularizar_Sticker_Inventario.sql','jenkins@10.0.2.68','2022-06-07 09:34:51',NULL,NULL),('vn-database','10186','09-reactivar_trigger.sql','jenkins@10.0.2.68','2022-06-07 09:34:51',NULL,NULL),('vn-database','10187','00-firstScript.sql','jenkins@10.0.2.68','2022-06-06 12:37:31',NULL,NULL),('vn-database','10188','00-firstScript.sql','jenkins@10.0.2.68','2022-06-06 14:03:36',NULL,NULL),('vn-database','10189','00-firstScript.sql','jenkins@10.0.2.69','2022-06-17 09:03:41',NULL,NULL),('vn-database','10191','00-firstScript.sql','jenkins@10.0.2.69','2022-06-17 09:03:41',NULL,NULL),('vn-database','10194','00-firstScript.sql','jenkins@10.0.2.69','2022-06-17 09:03:41',NULL,NULL),('vn-database','10195','00-firstScript.sql','jenkins@10.0.2.69','2022-06-17 09:03:41',NULL,NULL),('vn-database','10200','00-firstScript.sql','jenkins@10.0.2.69','2022-06-17 09:04:00',NULL,NULL),('vn-database','10201','00-firstScript.sql','jenkins@10.0.2.69','2022-06-17 09:04:00',NULL,NULL),('vn-database','10202','00-Remove_FK_to_ediGenus.sql','jenkins@10.0.2.69','2022-06-17 09:04:00',NULL,NULL),('vn-database','10203','00-firstScript.sql','jenkins@10.0.2.69','2022-06-17 09:04:01',NULL,NULL),('vn-database','10204','00-firstScript.sql','jenkins@10.0.2.69','2022-06-17 09:04:01',NULL,NULL),('vn-database','10205','00-firstScript.sql','jenkins@10.0.2.69','2022-06-17 09:04:21',NULL,NULL),('vn-database','10207','00-Alter_table_entry.sql','jenkins@10.0.2.69','2022-06-16 07:22:50',NULL,NULL),('vn-database','10207','01-Update_invoiceAmount.sql','jenkins@10.0.2.69','2022-06-16 07:23:00',NULL,NULL),('vn-database','10208','00-firstScript.sql','jenkins@10.0.2.69','2022-06-30 09:31:26',NULL,NULL),('vn-database','10209','00-firstScript.sql','jenkins@10.0.2.69','2022-06-16 08:47:40',NULL,NULL),('vn-database','10210','00-firstScript.sql','jenkins@10.0.2.69','2022-06-16 17:39:17',1046,'Base de datos no seleccionada'),('vn-database','10211','01-firstScript.sql','jenkins@10.0.2.69','2022-06-17 07:11:27',NULL,NULL),('vn-database','10215','00-renameIsInventory.sql','jenkins@10.0.2.69','2022-06-30 09:31:26',NULL,NULL),('vn-database','10216','00-firstScript.sql','jenkins@10.0.2.69','2022-06-23 11:15:28',NULL,NULL),('vn-database','10216','01-batchIndex.sql','jenkins@10.0.2.70','2022-06-27 18:10:55',NULL,NULL),('vn-database','10219','00-AddCollectionFkOnPackingSite.sql','jenkins@10.0.2.70','2022-06-29 09:23:42',NULL,NULL),('vn-database','10219','01-AddFkToCollectionFk.sql','jenkins@10.0.2.70','2022-06-29 09:23:43',NULL,NULL),('vn-database','10220','00-createPersonalProtectionEquipment.sql','jenkins@10.0.2.69','2022-06-30 09:31:26',NULL,NULL),('vn-database','10222','00-firstScript.sql','jenkins@10.0.2.69','2022-07-14 09:12:40',NULL,NULL),('vn-database','10223','00-firstScript.sql','jenkins@10.0.2.69','2022-07-14 09:13:52',NULL,NULL),('vn-database','10224','00-cosetes.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-07-21 12:03:45',NULL,NULL),('vn-database','10229','00-firstScript.sql','jenkins@10.0.2.69','2022-07-01 11:59:34',NULL,NULL),('vn-database','10231','01-tablaEktConfig.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-11 09:25:39',NULL,NULL),('vn-database','10233','00-firstScript.sql','jenkins@10.0.2.69','2022-07-14 09:13:53',NULL,NULL),('vn-database','10235','00-firstScript.sql','jenkins@10.0.2.69','2022-07-14 09:13:53',NULL,NULL),('vn-database','10236','00-firstScript.sql','jenkins@10.0.2.69','2022-07-05 12:11:40',NULL,NULL),('vn-database','10237','00-firstScript.sql','jenkins@10.0.2.69','2022-07-14 09:13:53',NULL,NULL),('vn-database','10238','00-worker_mobileExtension.sql','jenkins@10.0.2.69','2022-07-14 09:14:09',NULL,NULL),('vn-database','10239','00-firstScript.sql','jenkins@10.0.2.69','2022-07-07 21:51:58',NULL,NULL),('vn-database','10241','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-07-29 08:14:01',NULL,NULL),('vn-database','10242','00-firstScript.sql','jenkins@10.0.2.69','2022-07-14 09:14:32',NULL,NULL),('vn-database','10243','00-firstScript.sql','jenkins@10.0.2.69','2022-07-14 09:14:32',NULL,NULL),('vn-database','10245','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-07-28 08:34:51',NULL,NULL),('vn-database','10247','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-07-28 08:34:51',NULL,NULL),('vn-database','10248','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-07-20 17:27:51',NULL,NULL),('vn-database','10250','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-07-28 08:36:40',NULL,NULL),('vn-database','10253','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-07-28 08:36:57',NULL,NULL),('vn-database','10254','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-07-28 08:38:48',NULL,NULL),('vn-database','10256','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-07-28 08:38:48',NULL,NULL),('vn-database','10259','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-02 08:54:56',NULL,NULL),('vn-database','10261','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-07-22 08:42:20',NULL,NULL),('vn-database','10262','00-createTablepackagingWithFreight.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:22:13',NULL,NULL),('vn-database','10262','01-alterTablePackagingConfig.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:22:13',NULL,NULL),('vn-database','10262','02-insertsInicials.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:22:13',NULL,NULL),('vn-database','10262','03-createTablepackingWithoutFreight.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:22:14',NULL,NULL),('vn-database','10263','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-07-28 08:38:48',NULL,NULL),('vn-database','10265','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-07-28 08:38:48',NULL,NULL),('vn-database','10267','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-11 09:34:17',NULL,NULL),('vn-database','10267','01-fixMerge.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-11 09:34:17',NULL,NULL),('vn-database','10275','00-improvedGeneralLog.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-01 09:55:56',NULL,NULL),('vn-database','10277','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-08 10:26:32',NULL,NULL),('vn-database','10278','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-01 17:51:41',NULL,NULL),('vn-database','10279','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-11 09:34:17',NULL,NULL),('vn-database','10281','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-11 09:34:18',NULL,NULL),('vn-database','10282','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-11 09:34:18',NULL,NULL),('vn-database','10283','00-alterTable.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-11 09:34:18',NULL,NULL),('vn-database','10284','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-04 16:59:08',NULL,NULL),('vn-database','10285','00-firstScript.sql','jenkins@swarm-worker3.static.verdnatura.es','2022-08-05 09:19:33',NULL,NULL),('vn-database','10287','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-11 09:35:24',NULL,NULL),('vn-database','10288','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-11 09:35:24',NULL,NULL),('vn-database','10291','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-10 14:19:34',NULL,NULL),('vn-database','10293','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-08 10:26:32',NULL,NULL),('vn-database','10297','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-16 12:43:36',NULL,NULL),('vn-database','10298','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-13 21:04:13',NULL,NULL),('vn-database','10299','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:22:14',NULL,NULL),('vn-database','10301','00-productionConfig.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:22:14',NULL,NULL),('vn-database','10301','01-drop.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:22:14',NULL,NULL),('vn-database','10301','02-collection.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:22:15',NULL,NULL),('vn-database','10302','00-CreateTableEntryType.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:22:15',NULL,NULL),('vn-database','10302','01-insertDataEntryType.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:22:15',NULL,NULL),('vn-database','10302','02-alterTableEntry.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:22:22',NULL,NULL),('vn-database','10303','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:22:23',NULL,NULL),('vn-database','10304','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:23:48',NULL,NULL),('vn-database','10304','01-altertableticket.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:23:51',NULL,NULL),('vn-database','10305','00-ektAssign.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:24:52',NULL,NULL),('vn-database','10306','00-deliveryInformation.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:25:25',NULL,NULL),('vn-database','10307','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:25:26',NULL,NULL),('vn-database','10308','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:26:43',NULL,NULL),('vn-database','10309','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-06 11:37:54',NULL,NULL),('vn-database','10310','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-08 10:26:33',NULL,NULL),('vn-database','10311','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-06 11:37:55',NULL,NULL),('vn-database','10312','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-08 10:26:33',NULL,NULL),('vn-database','10313','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-08 10:27:21',NULL,NULL),('vn-database','10315','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-08 10:31:43',NULL,NULL),('vn-database','10317','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-08 10:31:43',NULL,NULL),('vn-database','10318','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-08 10:31:43',NULL,NULL),('vn-database','10321','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-08 11:11:12',NULL,NULL),('vn-database','10322','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-09 09:19:05',NULL,NULL);
+INSERT INTO `versionLog` VALUES
+('vn-database','00001','00-test.sql','juan@10.5.1.3','2022-01-31 10:12:26',NULL,NULL),
+('vn-database','00003','00-sage.sql','juan@10.5.1.3','2022-01-31 10:12:26',NULL,NULL),
+('vn-database','10008','00-alterRoleConfig.sql','juan@10.5.1.3','2022-01-31 10:12:26',NULL,NULL),
+('vn-database','10014','00-rolePrefix.sql','jenkins@10.0.2.68','2022-02-11 00:13:25',NULL,NULL),
+('vn-database','10017','01-firstScript.sql','jenkins@10.0.2.70','2022-03-09 11:36:54',NULL,NULL),
+('vn-database','10021','00-bankAccount.sql','jenkins@10.0.2.69','2022-03-16 14:11:22',NULL,NULL),
+('vn-database','10023','00-firstScript.sql','jenkins@10.0.2.69','2022-03-16 15:05:29',NULL,NULL),
+('vn-database','10026','00-invoiceInIntrastat.sql','jenkins@10.0.2.69','2022-03-21 15:10:53',NULL,NULL),
+('vn-database','10027','00-Clientes_cedidos.sql','jenkins@10.0.2.69','2022-03-22 15:58:12',NULL,NULL),
+('vn-database','10028','00-item_last_buy_.sql','jenkins@10.0.2.69','2022-03-22 15:58:12',NULL,NULL),
+('vn-database','10029','00-bankToViewAccountingToTable.sql','jenkins@10.0.2.69','2022-03-22 15:58:12',NULL,NULL),
+('vn-database','10030','00-KkejarNiche.sql','jenkins@10.0.2.69','2022-03-22 15:58:12',NULL,NULL),
+('vn-database','10036','00-updateBuyConfig.sql','jenkins@10.0.2.69','2022-03-29 12:36:54',NULL,NULL),
+('vn-database','10037','00-firstScript.sql','jenkins@10.0.2.69','2022-03-28 11:14:26',NULL,NULL),
+('vn-database','10038','00-printServerQueue.sql','jenkins@10.0.2.69','2022-03-29 08:13:24',NULL,NULL),
+('vn-database','10048','00-firstScript.sql','jenkins@10.0.2.69','2022-03-30 12:29:06',NULL,NULL),
+('vn-database','10058','00-vehicleAddFields.sql','jenkins@10.0.2.69','2022-04-06 08:48:34',NULL,NULL),
+('vn-database','10060','00-firstScript.sql','jenkins@10.0.2.69','2022-04-07 08:50:11',NULL,NULL),
+('vn-database','10062','00-firstScript.sql','jenkins@10.0.2.69','2022-04-06 10:51:45',NULL,NULL),
+('vn-database','10064','00-firstScript.sql','jenkins@10.0.2.69','2022-04-06 13:57:11',NULL,NULL),
+('vn-database','10066','00-firstScript.sql','jenkins@10.0.2.69','2022-04-07 08:50:12',NULL,NULL),
+('vn-database','10067','00-firstScript.sql','jenkins@10.0.2.69','2022-04-08 10:18:20',NULL,NULL),
+('vn-database','10071','00-packingSiteLog.sql','jenkins@10.0.2.69','2022-04-08 09:37:30',NULL,NULL),
+('vn-database','10072','00-firstScript.sql','jenkins@10.0.2.69','2022-04-08 11:01:46',NULL,NULL),
+('vn-database','10073','00-firstScript.sql','jenkins@10.0.2.69','2022-04-08 13:40:56',NULL,NULL),
+('vn-database','10074','00-firstScript.sql','jenkins@10.0.2.69','2022-04-10 13:15:05',NULL,NULL),
+('vn-database','10077','00-firstScript.sql','jenkins@10.0.2.69','2022-04-12 08:07:15',NULL,NULL),
+('vn-database','10078','00-firstScript.sql','jenkins@10.0.2.69','2022-04-13 07:44:21',NULL,NULL),
+('vn-database','10079','00-firstScript.sql','jenkins@10.0.2.69','2022-04-12 12:01:37',NULL,NULL),
+('vn-database','10086','00-firstScript.sql','jenkins@10.0.2.69','2022-04-13 08:58:34',NULL,NULL),
+('vn-database','10087','00-firstScript.sql','jenkins@10.0.2.69','2022-04-13 09:39:49',NULL,NULL),
+('vn-database','10088','00-firstScript.sql','jenkins@10.0.2.69','2022-04-13 15:05:12',NULL,NULL),
+('vn-database','10089','00-firstScript.sql','jenkins@10.0.2.69','2022-04-18 14:12:52',NULL,NULL),
+('vn-database','10090','00-firstScript.sql','jenkins@10.0.2.69','2022-04-18 14:34:46',NULL,NULL),
+('vn-database','10092','00-firstScript.sql','jenkins@10.0.2.69','2022-04-19 14:45:46',NULL,NULL),
+('vn-database','10093','00-autoradioConfig.sql','jenkins@10.0.2.69','2022-05-03 09:16:47',NULL,NULL),
+('vn-database','10094','00-firstScript.sql','jenkins@10.0.2.69','2022-04-20 10:57:30',NULL,NULL),
+('vn-database','10097','00-firstScript.sql','jenkins@10.0.2.69','2022-05-05 10:12:59',NULL,NULL),
+('vn-database','10099','00-firstScript.sql','jenkins@10.0.2.69','2022-04-20 14:35:27',NULL,NULL),
+('vn-database','10100','00-firstScript.sql','jenkins@10.0.2.69','2022-04-20 14:35:27',NULL,NULL),
+('vn-database','10101','00-firstScript.sql','jenkins@10.0.2.69','2022-04-21 14:59:31',NULL,NULL),
+('vn-database','10103','00-awbVolume.sql','jenkins@10.0.2.69','2022-05-05 10:12:59',NULL,NULL),
+('vn-database','10104','00-firstScript.sql','jenkins@10.0.2.69','2022-05-05 10:12:59',NULL,NULL),
+('vn-database','10105','00-firstScript.sql','jenkins@10.0.2.69','2022-05-05 10:13:00',NULL,NULL),
+('vn-database','10107','00-firstScript.sql','jenkins@10.0.2.69','2022-04-23 10:53:53',NULL,NULL),
+('vn-database','10112','00-firstScript.sql','jenkins@10.0.2.69','2022-05-09 09:14:53',NULL,NULL),
+('vn-database','10113','00-firstScript.sql','jenkins@10.0.2.69','2022-05-05 10:13:00',NULL,NULL),
+('vn-database','10114','00-updateConfig.sql','jenkins@10.0.2.69','2022-04-27 13:37:25',NULL,NULL),
+('vn-database','10116','00-firstScript.sql','jenkins@10.0.2.69','2022-04-28 11:10:14',NULL,NULL),
+('vn-database','10118','00-firstScript.sql','jenkins@10.0.2.69','2022-04-29 08:10:15',NULL,NULL),
+('vn-database','10119','00-AfegirFKPart1.sql','jenkins@10.0.2.69','2022-05-05 10:13:00',NULL,NULL),
+('vn-database','10119','01-AfegirFkPart2.sql','jenkins@10.0.2.69','2022-05-05 10:22:25',NULL,NULL),
+('vn-database','10125','00-firstScript.sql','jenkins@10.0.2.68','2022-05-18 18:44:30',NULL,NULL),
+('vn-database','10127','00-firstScript.sql','jenkins@10.0.2.69','2022-05-02 11:04:46',NULL,NULL),
+('vn-database','10128','00-firstScript.sql','jenkins@10.0.2.69','2022-05-02 13:04:31',NULL,NULL),
+('vn-database','10129','00-firstScript.sql','jenkins@10.0.2.69','2022-05-03 08:21:01',NULL,NULL),
+('vn-database','10132','00-firstScript.sql','jenkins@10.0.2.69','2022-05-05 10:22:25',NULL,NULL),
+('vn-database','10133','00-firstScript.sql','jenkins@10.0.2.69','2022-05-05 14:32:30',NULL,NULL),
+('vn-database','10134','00-firstScript.sql','jenkins@10.0.2.69','2022-05-06 07:45:25',NULL,NULL),
+('vn-database','10135','00-firstScript.sql','jenkins@10.0.2.69','2022-06-17 08:46:17',NULL,NULL),
+('vn-database','10136','00-workerTimeControl.sql','jenkins@10.0.2.69','2022-05-09 13:51:12',NULL,NULL),
+('vn-database','10138','00-firstScript.sql','jenkins@10.0.2.69','2022-05-10 13:58:05',NULL,NULL),
+('vn-database','10139','00-firstScript.sql','jenkins@10.0.2.68','2022-05-16 14:32:37',NULL,NULL),
+('vn-database','10139','01-secondScript.sql','jenkins@10.0.2.68','2022-05-17 12:16:13',NULL,NULL),
+('vn-database','10141','00-firstScript.sql','jenkins@10.0.2.70','2022-05-12 08:27:31',NULL,NULL),
+('vn-database','10142','00-firstScript.sql','jenkins@10.0.2.68','2022-05-20 09:20:31',NULL,NULL),
+('vn-database','10143','00-firstScript.sql','jenkins@10.0.2.68','2022-05-20 09:20:31',NULL,NULL),
+('vn-database','10144','00-AfegirFKPArt1.sql','jenkins@10.0.2.68','2022-05-20 09:22:33',NULL,NULL),
+('vn-database','10144','00-firstScript.sql','jenkins@10.0.2.68','2022-05-13 09:44:25',NULL,NULL),
+('vn-database','10147','00-firstScript.sql','jenkins@10.0.2.68','2022-05-20 09:22:33',NULL,NULL),
+('vn-database','10149','00-firstScript.sql','jenkins@10.0.2.68','2022-05-20 09:22:33',NULL,NULL),
+('vn-database','10150','00-firstScript.sql','jenkins@10.0.2.68','2022-05-17 09:57:16',NULL,NULL),
+('vn-database','10152','00-firstScript.sql','jenkins@10.0.2.68','2022-05-20 09:22:34',NULL,NULL),
+('vn-database','10153','00-firstScript.sql','jenkins@10.0.2.68','2022-05-20 09:22:34',NULL,NULL),
+('vn-database','10154','00-compressionKk.sql','jenkins@10.0.2.68','2022-05-20 09:22:34',NULL,NULL),
+('vn-database','10157','00-firstScript.sql','jenkins@10.0.2.68','2022-05-20 09:22:35',NULL,NULL),
+('vn-database','10158','00-firstScript.sql','jenkins@10.0.2.68','2022-06-02 12:47:21',NULL,NULL),
+('vn-database','10160','00-firstScript.sql','jenkins@10.0.2.69','2022-06-30 09:30:50',NULL,NULL),
+('vn-database','10163','00-firstScript.sql','jenkins@10.0.2.68','2022-05-23 08:17:14',NULL,NULL),
+('vn-database','10164','00-borrarSectorsDesus.sql','jenkins@10.0.2.68','2022-06-02 12:47:21',NULL,NULL),
+('vn-database','10165','00-firstScript.sql','jenkins@10.0.2.68','2022-06-02 12:47:22',NULL,NULL),
+('vn-database','10166','00-firstScript.sql','jenkins@10.0.2.68','2022-05-24 16:11:21',NULL,NULL),
+('vn-database','10167','00-renameVnActiveContrat.sql','jenkins@10.0.2.68','2022-06-02 12:47:22',NULL,NULL),
+('vn-database','10168','00-firstScript.sql','jenkins@10.0.2.68','2022-06-02 12:47:22',NULL,NULL),
+('vn-database','10169','00-createTableBankEntityConfig.sql','jenkins@10.0.2.68','2022-06-02 12:47:22',NULL,NULL),
+('vn-database','10169','02-addNotNullToBankEntityBic.sql','jenkins@10.0.2.68','2022-06-02 12:47:22',NULL,NULL),
+('vn-database','10171','00-volumeConfig.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-18 14:11:11',NULL,NULL),
+('vn-database','10171','01-itemWeight.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-18 16:01:34',NULL,NULL),
+('vn-database','10171','02-agencymode.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-18 16:01:34',NULL,NULL),
+('vn-database','10172','00-firstScript.sql','jenkins@10.0.2.68','2022-06-02 12:47:22',NULL,NULL),
+('vn-database','10174','00-firstScript.sql','jenkins@10.0.2.69','2022-06-17 08:46:17',NULL,NULL),
+('vn-database','10175','00-firstScript.sql','jenkins@10.0.2.69','2022-06-17 09:03:41',NULL,NULL),
+('vn-database','10177','00-crearTablaSpecialLabels.sql','jenkins@10.0.2.68','2022-06-02 12:47:22',NULL,NULL),
+('vn-database','10178','00-firstScript.sql','jenkins@10.0.2.68','2022-06-02 12:47:24',NULL,NULL),
+('vn-database','10179','00-firstScript.sql','jenkins@10.0.2.68','2022-06-02 12:47:24',NULL,NULL),
+('vn-database','10183','00-firstScript.sql','jenkins@10.0.2.68','2022-06-02 12:47:24',NULL,NULL),
+('vn-database','10184','00-firstScript.sql','jenkins@10.0.2.68','2022-06-03 08:05:34',NULL,NULL),
+('vn-database','10185','00-firstScript.sql','jenkins@10.0.2.68','2022-06-06 09:07:45',NULL,NULL),
+('vn-database','10186','00-desactivar_trigger.sql','jenkins@10.0.2.68','2022-06-07 09:31:23',NULL,NULL),
+('vn-database','10186','01-alter_Table_buy.sql','jenkins@10.0.2.68','2022-06-07 09:34:47',NULL,NULL),
+('vn-database','10186','02-alter_table_entryConfig.sql','jenkins@10.0.2.68','2022-06-07 09:34:47',NULL,NULL),
+('vn-database','10186','04-regularizar_Sticker_Inventario.sql','jenkins@10.0.2.68','2022-06-07 09:34:51',NULL,NULL),
+('vn-database','10186','09-reactivar_trigger.sql','jenkins@10.0.2.68','2022-06-07 09:34:51',NULL,NULL),
+('vn-database','10187','00-firstScript.sql','jenkins@10.0.2.68','2022-06-06 12:37:31',NULL,NULL),
+('vn-database','10188','00-firstScript.sql','jenkins@10.0.2.68','2022-06-06 14:03:36',NULL,NULL),
+('vn-database','10189','00-firstScript.sql','jenkins@10.0.2.69','2022-06-17 09:03:41',NULL,NULL),
+('vn-database','10191','00-firstScript.sql','jenkins@10.0.2.69','2022-06-17 09:03:41',NULL,NULL),
+('vn-database','10194','00-firstScript.sql','jenkins@10.0.2.69','2022-06-17 09:03:41',NULL,NULL),
+('vn-database','10195','00-firstScript.sql','jenkins@10.0.2.69','2022-06-17 09:03:41',NULL,NULL),
+('vn-database','10200','00-firstScript.sql','jenkins@10.0.2.69','2022-06-17 09:04:00',NULL,NULL),
+('vn-database','10201','00-firstScript.sql','jenkins@10.0.2.69','2022-06-17 09:04:00',NULL,NULL),
+('vn-database','10202','00-Remove_FK_to_ediGenus.sql','jenkins@10.0.2.69','2022-06-17 09:04:00',NULL,NULL),
+('vn-database','10203','00-firstScript.sql','jenkins@10.0.2.69','2022-06-17 09:04:01',NULL,NULL),
+('vn-database','10204','00-firstScript.sql','jenkins@10.0.2.69','2022-06-17 09:04:01',NULL,NULL),
+('vn-database','10205','00-firstScript.sql','jenkins@10.0.2.69','2022-06-17 09:04:21',NULL,NULL),
+('vn-database','10207','00-Alter_table_entry.sql','jenkins@10.0.2.69','2022-06-16 07:22:50',NULL,NULL),
+('vn-database','10207','01-Update_invoiceAmount.sql','jenkins@10.0.2.69','2022-06-16 07:23:00',NULL,NULL),
+('vn-database','10208','00-firstScript.sql','jenkins@10.0.2.69','2022-06-30 09:31:26',NULL,NULL),
+('vn-database','10209','00-firstScript.sql','jenkins@10.0.2.69','2022-06-16 08:47:40',NULL,NULL),
+('vn-database','10210','00-firstScript.sql','jenkins@10.0.2.69','2022-06-16 17:39:17',1046,'Base de datos no seleccionada'),
+('vn-database','10211','01-firstScript.sql','jenkins@10.0.2.69','2022-06-17 07:11:27',NULL,NULL),
+('vn-database','10215','00-renameIsInventory.sql','jenkins@10.0.2.69','2022-06-30 09:31:26',NULL,NULL),
+('vn-database','10216','00-firstScript.sql','jenkins@10.0.2.69','2022-06-23 11:15:28',NULL,NULL),
+('vn-database','10216','01-batchIndex.sql','jenkins@10.0.2.70','2022-06-27 18:10:55',NULL,NULL),
+('vn-database','10219','00-AddCollectionFkOnPackingSite.sql','jenkins@10.0.2.70','2022-06-29 09:23:42',NULL,NULL),
+('vn-database','10219','01-AddFkToCollectionFk.sql','jenkins@10.0.2.70','2022-06-29 09:23:43',NULL,NULL),
+('vn-database','10220','00-createPersonalProtectionEquipment.sql','jenkins@10.0.2.69','2022-06-30 09:31:26',NULL,NULL),
+('vn-database','10222','00-firstScript.sql','jenkins@10.0.2.69','2022-07-14 09:12:40',NULL,NULL),
+('vn-database','10223','00-firstScript.sql','jenkins@10.0.2.69','2022-07-14 09:13:52',NULL,NULL),
+('vn-database','10224','00-cosetes.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-07-21 12:03:45',NULL,NULL),
+('vn-database','10229','00-firstScript.sql','jenkins@10.0.2.69','2022-07-01 11:59:34',NULL,NULL),
+('vn-database','10231','01-tablaEktConfig.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-11 09:25:39',NULL,NULL),
+('vn-database','10233','00-firstScript.sql','jenkins@10.0.2.69','2022-07-14 09:13:53',NULL,NULL),
+('vn-database','10235','00-firstScript.sql','jenkins@10.0.2.69','2022-07-14 09:13:53',NULL,NULL),
+('vn-database','10236','00-firstScript.sql','jenkins@10.0.2.69','2022-07-05 12:11:40',NULL,NULL),
+('vn-database','10237','00-firstScript.sql','jenkins@10.0.2.69','2022-07-14 09:13:53',NULL,NULL),
+('vn-database','10238','00-worker_mobileExtension.sql','jenkins@10.0.2.69','2022-07-14 09:14:09',NULL,NULL),
+('vn-database','10239','00-firstScript.sql','jenkins@10.0.2.69','2022-07-07 21:51:58',NULL,NULL),
+('vn-database','10241','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-07-29 08:14:01',NULL,NULL),
+('vn-database','10242','00-firstScript.sql','jenkins@10.0.2.69','2022-07-14 09:14:32',NULL,NULL),
+('vn-database','10243','00-firstScript.sql','jenkins@10.0.2.69','2022-07-14 09:14:32',NULL,NULL),
+('vn-database','10245','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-07-28 08:34:51',NULL,NULL),
+('vn-database','10247','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-07-28 08:34:51',NULL,NULL),
+('vn-database','10248','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-07-20 17:27:51',NULL,NULL),
+('vn-database','10250','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-07-28 08:36:40',NULL,NULL),
+('vn-database','10253','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-07-28 08:36:57',NULL,NULL),
+('vn-database','10254','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-07-28 08:38:48',NULL,NULL),
+('vn-database','10256','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-07-28 08:38:48',NULL,NULL),
+('vn-database','10259','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-02 08:54:56',NULL,NULL),
+('vn-database','10261','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-07-22 08:42:20',NULL,NULL),
+('vn-database','10262','00-createTablepackagingWithFreight.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:22:13',NULL,NULL),
+('vn-database','10262','01-alterTablePackagingConfig.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:22:13',NULL,NULL),
+('vn-database','10262','02-insertsInicials.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:22:13',NULL,NULL),
+('vn-database','10262','03-createTablepackingWithoutFreight.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:22:14',NULL,NULL),
+('vn-database','10263','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-07-28 08:38:48',NULL,NULL),
+('vn-database','10265','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-07-28 08:38:48',NULL,NULL),
+('vn-database','10267','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-11 09:34:17',NULL,NULL),
+('vn-database','10267','01-fixMerge.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-11 09:34:17',NULL,NULL),
+('vn-database','10275','00-improvedGeneralLog.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-01 09:55:56',NULL,NULL),
+('vn-database','10277','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-08 10:26:32',NULL,NULL),
+('vn-database','10278','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-01 17:51:41',NULL,NULL),
+('vn-database','10279','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-11 09:34:17',NULL,NULL),
+('vn-database','10281','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-11 09:34:18',NULL,NULL),
+('vn-database','10282','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-11 09:34:18',NULL,NULL),
+('vn-database','10283','00-alterTable.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-11 09:34:18',NULL,NULL),
+('vn-database','10284','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-04 16:59:08',NULL,NULL),
+('vn-database','10285','00-firstScript.sql','jenkins@swarm-worker3.static.verdnatura.es','2022-08-05 09:19:33',NULL,NULL),
+('vn-database','10287','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-11 09:35:24',NULL,NULL),
+('vn-database','10288','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-11 09:35:24',NULL,NULL),
+('vn-database','10289','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-22 08:29:36',NULL,NULL),
+('vn-database','10291','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-10 14:19:34',NULL,NULL),
+('vn-database','10293','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-08 10:26:32',NULL,NULL),
+('vn-database','10297','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-16 12:43:36',NULL,NULL),
+('vn-database','10298','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-08-13 21:04:13',NULL,NULL),
+('vn-database','10299','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:22:14',NULL,NULL),
+('vn-database','10301','00-productionConfig.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:22:14',NULL,NULL),
+('vn-database','10301','01-drop.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:22:14',NULL,NULL),
+('vn-database','10301','02-collection.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:22:15',NULL,NULL),
+('vn-database','10302','00-CreateTableEntryType.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:22:15',NULL,NULL),
+('vn-database','10302','01-insertDataEntryType.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:22:15',NULL,NULL),
+('vn-database','10302','02-alterTableEntry.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:22:22',NULL,NULL),
+('vn-database','10303','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:22:23',NULL,NULL),
+('vn-database','10304','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:23:48',NULL,NULL),
+('vn-database','10304','01-altertableticket.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:23:51',NULL,NULL),
+('vn-database','10305','00-ektAssign.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:24:52',NULL,NULL),
+('vn-database','10306','00-deliveryInformation.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:25:25',NULL,NULL),
+('vn-database','10307','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:25:26',NULL,NULL),
+('vn-database','10308','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-02 17:26:43',NULL,NULL),
+('vn-database','10309','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-06 11:37:54',NULL,NULL),
+('vn-database','10310','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-08 10:26:33',NULL,NULL),
+('vn-database','10311','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-06 11:37:55',NULL,NULL),
+('vn-database','10312','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-08 10:26:33',NULL,NULL),
+('vn-database','10313','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-08 10:27:21',NULL,NULL),
+('vn-database','10314','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-20 12:37:19',NULL,NULL),
+('vn-database','10315','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-08 10:31:43',NULL,NULL),
+('vn-database','10317','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-08 10:31:43',NULL,NULL),
+('vn-database','10318','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-08 10:31:43',NULL,NULL),
+('vn-database','10319','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-20 12:37:41',NULL,NULL),
+('vn-database','10320','00-operator.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-22 08:29:37',NULL,NULL),
+('vn-database','10320','01-collection.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-22 08:29:37',NULL,NULL),
+('vn-database','10320','02-productionConfig.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-22 08:29:38',NULL,NULL),
+('vn-database','10321','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-08 11:11:12',NULL,NULL),
+('vn-database','10322','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-09 09:19:05',NULL,NULL),
+('vn-database','10326','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-22 08:29:38',NULL,NULL),
+('vn-database','10328','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-22 08:29:38',NULL,NULL),
+('vn-database','10329','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-22 08:29:38',NULL,NULL),
+('vn-database','10330','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-22 08:34:30',NULL,NULL),
+('vn-database','10332','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-22 08:34:30',NULL,NULL),
+('vn-database','10334','00-collectionHotbed.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-22 08:34:30',NULL,NULL),
+('vn-database','10334','01-saleGroupDetail.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-22 08:34:32',NULL,NULL),
+('vn-database','10335','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-10-06 09:52:38',NULL,NULL),
+('vn-database','10336','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-22 08:34:32',NULL,NULL),
+('vn-database','10337','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-22 08:34:32',NULL,NULL),
+('vn-database','10339','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-19 09:41:19',NULL,NULL),
+('vn-database','10340','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-29 11:08:03',NULL,NULL),
+('vn-database','10341','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-22 08:34:32',NULL,NULL),
+('vn-database','10342','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-29 11:08:03',NULL,NULL),
+('vn-database','10343','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-22 08:35:30',NULL,NULL),
+('vn-database','10345','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-11-04 08:25:16',NULL,NULL),
+('vn-database','10347','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-29 11:08:03',NULL,NULL),
+('vn-database','10347','01-addVirtualField.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-29 11:08:03',NULL,NULL),
+('vn-database','10349','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-10-06 09:52:38',NULL,NULL),
+('vn-database','10350','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-09-30 10:11:56',NULL,NULL),
+('vn-database','10352','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-11-04 08:25:16',NULL,NULL),
+('vn-database','10353','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-10-06 09:52:38',NULL,NULL),
+('vn-database','10354','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-10-06 09:52:38',NULL,NULL),
+('vn-database','10356','00-firstScript.sql','jenkins@swarm-worker1.static.verdnatura.es','2022-11-10 22:35:00',NULL,NULL),
+('vn-database','10356','01-orderConfigFk.sql','jenkins@swarm-worker1.static.verdnatura.es','2022-11-10 22:35:00',NULL,NULL),
+('vn-database','10356','02-orderConfigDrop.sql','jenkins@swarm-worker1.static.verdnatura.es','2022-11-10 22:35:00',NULL,NULL),
+('vn-database','10357','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-10-06 09:52:38',NULL,NULL),
+('vn-database','10359','00-improvedGeneralLog_collate.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-10-06 09:52:39',NULL,NULL),
+('vn-database','10360','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-10-06 09:52:39',NULL,NULL),
+('vn-database','10361','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-10-06 11:16:07',NULL,NULL),
+('vn-database','10362','00-dropUdfs.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-10-10 11:01:15',NULL,NULL),
+('vn-database','10363','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-11-04 08:25:17',NULL,NULL),
+('vn-database','10365','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-10-13 19:30:46',NULL,NULL),
+('vn-database','10368','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-11-04 08:25:17',NULL,NULL),
+('vn-database','10369','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-10-14 13:38:06',NULL,NULL),
+('vn-database','10370','00-deleteForeignKey.sql','jenkins@swarm-worker1.static.verdnatura.es','2022-11-17 14:32:41',NULL,NULL),
+('vn-database','10370','01-firstScript.sql','jenkins@swarm-worker1.static.verdnatura.es','2022-11-17 14:32:47',NULL,NULL),
+('vn-database','10370','02-deleteTable.sql','jenkins@swarm-worker1.static.verdnatura.es','2022-11-17 14:32:49',NULL,NULL),
+('vn-database','10370','03-accion.sql','jenkins@swarm-worker1.static.verdnatura.es','2022-11-17 14:32:49',NULL,NULL),
+('vn-database','10370','04-inter.sql','jenkins@swarm-worker1.static.verdnatura.es','2022-11-17 14:32:53',NULL,NULL),
+('vn-database','10373','00-firstScript.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-10-19 08:31:58',NULL,NULL),
+('vn-database','10378','00-rename_routeUserPercentage.sql','jenkins@swarm-worker2.static.verdnatura.es','2022-11-04 08:25:17',NULL,NULL),
+('vn-database','10383','00-firstScript.sql','jenkins@swarm-worker1.static.verdnatura.es','2022-11-17 14:32:53',NULL,NULL),
+('vn-database','10385','00-firstScript.sql','jenkins@swarm-worker1.static.verdnatura.es','2022-11-17 14:32:54',NULL,NULL),
+('vn-database','10386','00-firstScript.sql','jenkins@swarm-worker1.static.verdnatura.es','2022-11-17 14:32:54',NULL,NULL),
+('vn-database','10387','00-firstScript.sql','jenkins@swarm-worker1.static.verdnatura.es','2022-11-16 14:05:33',NULL,NULL),
+('vn-database','10396','00-firstScript.sql','jenkins@swarm-worker1.static.verdnatura.es','2022-11-17 15:36:38',NULL,NULL);
/*!40000 ALTER TABLE `versionLog` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
@@ -54,13 +306,13 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
--- Dump completed on 2022-09-16 7:03:04
+-- Dump completed on 2022-11-21 7:59:03
USE `account`;
--- MySQL dump 10.19 Distrib 10.3.34-MariaDB, for debian-linux-gnu (x86_64)
+-- MariaDB dump 10.19 Distrib 10.9.4-MariaDB, for Linux (x86_64)
--
-- Host: db.verdnatura.es Database: account
-- ------------------------------------------------------
--- Server version 10.7.4-MariaDB-1:10.7.4+maria~bullseye-log
+-- Server version 10.7.6-MariaDB-1:10.7.6+maria~deb11-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@@ -78,7 +330,77 @@ USE `account`;
LOCK TABLES `role` WRITE;
/*!40000 ALTER TABLE `role` DISABLE KEYS */;
-INSERT INTO `role` VALUES (1,'employee','Empleado básico',1,'2017-05-19 07:04:58','2017-11-29 10:06:31'),(2,'customer','Privilegios básicos de un cliente',1,'2017-05-19 07:04:58','2017-05-19 07:04:58'),(3,'agency','Consultar tablas de predicciones de bultos',1,'2017-05-19 07:04:58','2017-05-19 07:04:58'),(5,'administrative','Tareas relacionadas con la contabilidad',1,'2017-05-19 07:04:58','2017-05-19 07:04:58'),(6,'guest','Privilegios para usuarios sin cuenta',1,'2017-05-19 07:04:58','2017-05-19 07:04:58'),(9,'developer','Desarrolladores del sistema',1,'2017-05-19 07:04:58','2017-05-19 07:04:58'),(11,'account','Privilegios relacionados con el login',0,'2017-05-19 07:04:58','2017-09-20 17:06:35'),(13,'teamBoss','Jefe de equipo/departamento',1,'2017-05-19 07:04:58','2021-06-30 13:29:30'),(15,'logistic','Departamento de compras, responsables de la logistica',1,'2017-05-19 07:04:58','2018-02-12 10:50:10'),(16,'logisticBoss','Jefe del departamento de logística',1,'2017-05-19 07:04:58','2017-05-19 07:04:58'),(17,'adminBoss','Jefe del departamento de administración',1,'2017-05-19 07:04:58','2017-05-19 07:04:58'),(18,'salesPerson','Departamento de ventas',1,'2017-05-19 07:04:58','2017-05-19 07:04:58'),(19,'salesBoss','Jefe del departamento de ventas',1,'2017-05-19 07:04:58','2017-08-16 12:38:27'),(20,'manager','Gerencia',1,'2017-06-01 14:57:02','2022-07-29 07:36:15'),(21,'salesAssistant','Jefe auxiliar de ventas',1,'2017-08-16 12:40:52','2017-08-16 12:40:52'),(22,'teamManager','Jefe de departamento con privilegios de auxiliar de venta.',1,'2017-09-07 09:08:12','2017-09-07 09:08:12'),(30,'financialBoss','Director finaciero',1,'2017-09-21 11:05:36','2017-09-21 11:05:36'),(31,'freelancer','Trabajadores por cuenta ajena',1,'2017-10-10 12:57:26','2017-10-10 12:59:27'),(32,'ett','Trabajadores de empresa temporal',1,'2017-10-10 12:58:58','2017-10-10 12:59:20'),(33,'invoicing','Personal con acceso a facturación',0,'2018-01-29 16:43:34','2018-01-29 16:43:34'),(34,'agencyBoss','Jefe/a del departamento de agencias',1,'2018-01-29 16:44:39','2018-02-23 07:58:53'),(35,'buyer','Departamento de compras',1,'2018-02-12 10:35:42','2018-02-12 10:35:42'),(36,'replenisher','Trabajadores de camara',1,'2018-02-16 14:07:10','2019-04-12 05:38:08'),(37,'hr','Gestor/a de recursos humanos',1,'2018-02-22 17:34:53','2018-02-22 17:34:53'),(38,'hrBoss','Jefe/a de recursos humanos',1,'2018-02-22 17:35:09','2018-02-22 17:35:09'),(39,'adminAssistant','Jefe auxiliar administrativo',1,'2018-02-23 10:37:36','2018-02-23 10:38:41'),(40,'handmade','Departamento de confección',1,'2018-02-23 11:14:53','2018-02-23 11:39:12'),(41,'handmadeBoss','Jefe de departamento de confección',1,'2018-02-23 11:15:09','2018-02-23 11:39:26'),(42,'artificial','Departamento de artificial',1,'2018-02-23 11:39:59','2018-02-23 11:39:59'),(43,'artificialBoss','Jefe del departamento de artificial',1,'2018-02-23 11:40:16','2018-02-23 11:40:16'),(44,'accessory','Departamento de complementos',1,'2018-02-23 11:41:12','2018-02-23 11:41:12'),(45,'accessoryBoss','Jefe del departamento de complementos',1,'2018-02-23 11:41:23','2018-02-23 11:41:23'),(47,'cooler','Empleados de cámara',1,'2018-02-23 13:08:18','2018-02-23 13:08:18'),(48,'coolerBoss','Jefe del departamento de cámara',1,'2018-02-23 13:12:01','2018-02-23 13:12:01'),(49,'production','Empleado de producción',1,'2018-02-26 15:28:23','2021-02-12 09:42:35'),(50,'productionBoss','Jefe de producción',1,'2018-02-26 15:34:12','2018-02-26 15:34:12'),(51,'marketing','Departamento de marketing',1,'2018-03-01 07:28:39','2018-03-01 07:28:39'),(52,'marketingBoss','Jefe del departamento de marketing',1,'2018-03-01 07:28:57','2018-03-01 07:28:57'),(53,'insurance','Gestor de seguros de cambio',0,'2018-03-05 07:44:35','2019-02-01 13:47:57'),(54,'itemPicker','Sacador en cámara',1,'2018-03-05 12:08:17','2018-03-05 12:08:17'),(55,'itemPickerBoss','Jefe de sacadores',1,'2018-03-05 12:08:31','2018-03-05 12:08:31'),(56,'delivery','Personal de reparto',1,'2018-05-30 06:07:02','2018-05-30 06:07:02'),(57,'deliveryBoss','Jefe de personal de reparto',1,'2018-05-30 06:07:19','2018-05-30 06:07:19'),(58,'packager','Departamento encajadores',1,'2019-01-21 12:43:45','2019-01-21 12:43:45'),(59,'packagerBoss','Jefe departamento encajadores',1,'2019-01-21 12:44:10','2019-01-21 12:44:10'),(60,'productionAssi','Tareas relacionadas con producción y administración',1,'2019-01-29 13:29:01','2019-01-29 13:29:01'),(61,'replenisherBos','Jefe de Complementos/Camara',1,'2019-07-01 06:44:07','2019-07-01 06:44:07'),(62,'noLogin','Role without login access to MySQL',0,'2019-07-01 06:50:19','2019-07-02 13:42:05'),(64,'balanceSheet','Consulta de Balance',0,'2019-07-16 12:12:08','2019-07-16 12:12:08'),(65,'officeBoss','Jefe de filial',1,'2019-08-02 06:54:26','2019-08-02 06:54:26'),(66,'sysadmin','Administrador de sistema',1,'2019-08-08 06:58:56','2019-08-08 06:58:56'),(67,'adminOfficer','categoria profesional oficial de administración',1,'2020-01-03 08:09:23','2020-01-03 08:09:23'),(69,'coolerAssist','Empleado cámara con permiso compras',1,'2020-02-05 12:36:09','2020-02-05 12:36:09'),(70,'trainee','Alumno de prácticas',1,'2020-03-04 11:00:25','2020-03-04 11:00:25'),(71,'checker','Rol de revisor con privilegios de itemPicker',1,'2020-10-02 10:50:07','2020-10-02 10:50:07'),(72,'claimManager','Personal de reclamaciones',1,'2020-10-13 10:01:32','2020-10-26 07:29:46'),(73,'financial','Departamento de finanzas',1,'2020-11-16 09:30:27','2020-11-16 09:30:27'),(74,'userPhotos','Privilegios para subir fotos de usuario',1,'2021-02-03 10:24:27','2021-02-03 10:24:27'),(75,'catalogPhotos','Privilegios para subir fotos del catálogo',1,'2021-02-03 10:24:27','2021-02-03 10:24:27'),(76,'chat','Rol para utilizar el rocket chat',1,'2020-11-27 13:06:50','2020-12-17 07:49:41'),(100,'root','Rol con todos los privilegios',0,'2018-04-23 14:33:36','2020-11-12 06:50:07'),(101,'buyerBoss','Jefe del departamento de compras',1,'2021-06-16 09:53:17','2021-06-16 09:53:17'),(102,'preservedBoss','Responsable preservado',1,'2021-09-14 13:45:37','2021-09-14 13:45:37'),(103,'it','Departamento de informática',1,'2021-11-11 09:48:22','2021-11-11 09:48:22'),(104,'itBoss','Jefe de departamento de informática',1,'2021-11-11 09:48:49','2021-11-11 09:48:49'),(105,'grant','Adjudicar roles a usuarios',1,'2021-11-11 12:41:09','2021-11-11 12:41:09'),(106,'ext','Usuarios externos de la Base de datos',1,'2021-11-23 14:51:16','2021-11-23 14:51:16'),(107,'productionPlus','Creado para pepe por orden de Juanvi',1,'2022-02-08 06:47:10','2022-02-08 06:47:10'),(108,'system','System user',1,'2022-05-16 08:09:51','2022-05-16 08:09:51'),(109,'salesTeamBoss','Jefe de equipo de comerciales',1,'2022-06-14 13:45:56','2022-06-14 13:45:56');
+INSERT INTO `role` VALUES
+(1,'employee','Empleado básico',1,'2017-05-19 07:04:58','2017-11-29 10:06:31'),
+(2,'customer','Privilegios básicos de un cliente',1,'2017-05-19 07:04:58','2017-05-19 07:04:58'),
+(3,'agency','Consultar tablas de predicciones de bultos',1,'2017-05-19 07:04:58','2017-05-19 07:04:58'),
+(5,'administrative','Tareas relacionadas con la contabilidad',1,'2017-05-19 07:04:58','2017-05-19 07:04:58'),
+(6,'guest','Privilegios para usuarios sin cuenta',1,'2017-05-19 07:04:58','2017-05-19 07:04:58'),
+(9,'developer','Desarrolladores del sistema',1,'2017-05-19 07:04:58','2017-05-19 07:04:58'),
+(11,'account','Privilegios relacionados con el login',0,'2017-05-19 07:04:58','2017-09-20 17:06:35'),
+(13,'teamBoss','Jefe de equipo/departamento',1,'2017-05-19 07:04:58','2021-06-30 13:29:30'),
+(15,'logistic','Departamento de compras, responsables de la logistica',1,'2017-05-19 07:04:58','2018-02-12 10:50:10'),
+(16,'logisticBoss','Jefe del departamento de logística',1,'2017-05-19 07:04:58','2017-05-19 07:04:58'),
+(17,'adminBoss','Jefe del departamento de administración',1,'2017-05-19 07:04:58','2017-05-19 07:04:58'),
+(18,'salesPerson','Departamento de ventas',1,'2017-05-19 07:04:58','2017-05-19 07:04:58'),
+(19,'salesBoss','Jefe del departamento de ventas',1,'2017-05-19 07:04:58','2017-08-16 12:38:27'),
+(20,'manager','Gerencia',1,'2017-06-01 14:57:02','2022-07-29 07:36:15'),
+(21,'salesAssistant','Jefe auxiliar de ventas',1,'2017-08-16 12:40:52','2017-08-16 12:40:52'),
+(22,'teamManager','Jefe de departamento con privilegios de auxiliar de venta.',1,'2017-09-07 09:08:12','2017-09-07 09:08:12'),
+(30,'financialBoss','Director finaciero',1,'2017-09-21 11:05:36','2017-09-21 11:05:36'),
+(31,'freelancer','Trabajadores por cuenta ajena',1,'2017-10-10 12:57:26','2017-10-10 12:59:27'),
+(32,'ett','Trabajadores de empresa temporal',1,'2017-10-10 12:58:58','2017-10-10 12:59:20'),
+(33,'invoicing','Personal con acceso a facturación',0,'2018-01-29 16:43:34','2018-01-29 16:43:34'),
+(34,'agencyBoss','Jefe/a del departamento de agencias',1,'2018-01-29 16:44:39','2018-02-23 07:58:53'),
+(35,'buyer','Departamento de compras',1,'2018-02-12 10:35:42','2018-02-12 10:35:42'),
+(36,'replenisher','Trabajadores de camara',1,'2018-02-16 14:07:10','2019-04-12 05:38:08'),
+(37,'hr','Gestor/a de recursos humanos',1,'2018-02-22 17:34:53','2018-02-22 17:34:53'),
+(38,'hrBoss','Jefe/a de recursos humanos',1,'2018-02-22 17:35:09','2018-02-22 17:35:09'),
+(39,'adminAssistant','Jefe auxiliar administrativo',1,'2018-02-23 10:37:36','2018-02-23 10:38:41'),
+(40,'handmade','Departamento de confección',1,'2018-02-23 11:14:53','2018-02-23 11:39:12'),
+(41,'handmadeBoss','Jefe de departamento de confección',1,'2018-02-23 11:15:09','2018-02-23 11:39:26'),
+(42,'artificial','Departamento de artificial',1,'2018-02-23 11:39:59','2018-02-23 11:39:59'),
+(43,'artificialBoss','Jefe del departamento de artificial',1,'2018-02-23 11:40:16','2018-02-23 11:40:16'),
+(44,'accessory','Departamento de complementos',1,'2018-02-23 11:41:12','2018-02-23 11:41:12'),
+(45,'accessoryBoss','Jefe del departamento de complementos',1,'2018-02-23 11:41:23','2018-02-23 11:41:23'),
+(47,'cooler','Empleados de cámara',1,'2018-02-23 13:08:18','2018-02-23 13:08:18'),
+(48,'coolerBoss','Jefe del departamento de cámara',1,'2018-02-23 13:12:01','2018-02-23 13:12:01'),
+(49,'production','Empleado de producción',1,'2018-02-26 15:28:23','2021-02-12 09:42:35'),
+(50,'productionBoss','Jefe de producción',1,'2018-02-26 15:34:12','2018-02-26 15:34:12'),
+(51,'marketing','Departamento de marketing',1,'2018-03-01 07:28:39','2018-03-01 07:28:39'),
+(52,'marketingBoss','Jefe del departamento de marketing',1,'2018-03-01 07:28:57','2018-03-01 07:28:57'),
+(53,'insurance','Gestor de seguros de cambio',0,'2018-03-05 07:44:35','2019-02-01 13:47:57'),
+(54,'itemPicker','Sacador en cámara',1,'2018-03-05 12:08:17','2018-03-05 12:08:17'),
+(55,'itemPickerBoss','Jefe de sacadores',1,'2018-03-05 12:08:31','2018-03-05 12:08:31'),
+(56,'delivery','Personal de reparto',1,'2018-05-30 06:07:02','2018-05-30 06:07:02'),
+(57,'deliveryBoss','Jefe de personal de reparto',1,'2018-05-30 06:07:19','2018-05-30 06:07:19'),
+(58,'packager','Departamento encajadores',1,'2019-01-21 12:43:45','2019-01-21 12:43:45'),
+(59,'packagerBoss','Jefe departamento encajadores',1,'2019-01-21 12:44:10','2019-01-21 12:44:10'),
+(60,'productionAssi','Tareas relacionadas con producción y administración',1,'2019-01-29 13:29:01','2019-01-29 13:29:01'),
+(61,'replenisherBos','Jefe de Complementos/Camara',1,'2019-07-01 06:44:07','2019-07-01 06:44:07'),
+(62,'noLogin','Role without login access to MySQL',0,'2019-07-01 06:50:19','2019-07-02 13:42:05'),
+(64,'balanceSheet','Consulta de Balance',0,'2019-07-16 12:12:08','2019-07-16 12:12:08'),
+(65,'officeBoss','Jefe de filial',1,'2019-08-02 06:54:26','2019-08-02 06:54:26'),
+(66,'sysadmin','Administrador de sistema',1,'2019-08-08 06:58:56','2019-08-08 06:58:56'),
+(67,'adminOfficer','categoria profesional oficial de administración',1,'2020-01-03 08:09:23','2020-01-03 08:09:23'),
+(69,'coolerAssist','Empleado cámara con permiso compras',1,'2020-02-05 12:36:09','2020-02-05 12:36:09'),
+(70,'trainee','Alumno de prácticas',1,'2020-03-04 11:00:25','2020-03-04 11:00:25'),
+(71,'checker','Rol de revisor con privilegios de itemPicker',1,'2020-10-02 10:50:07','2020-10-02 10:50:07'),
+(72,'claimManager','Personal de reclamaciones',1,'2020-10-13 10:01:32','2020-10-26 07:29:46'),
+(73,'financial','Departamento de finanzas',1,'2020-11-16 09:30:27','2020-11-16 09:30:27'),
+(74,'userPhotos','Privilegios para subir fotos de usuario',1,'2021-02-03 10:24:27','2021-02-03 10:24:27'),
+(75,'catalogPhotos','Privilegios para subir fotos del catálogo',1,'2021-02-03 10:24:27','2021-02-03 10:24:27'),
+(76,'chat','Rol para utilizar el rocket chat',1,'2020-11-27 13:06:50','2020-12-17 07:49:41'),
+(100,'root','Rol con todos los privilegios',0,'2018-04-23 14:33:36','2020-11-12 06:50:07'),
+(101,'buyerBoss','Jefe del departamento de compras',1,'2021-06-16 09:53:17','2021-06-16 09:53:17'),
+(102,'preservedBoss','Responsable preservado',1,'2021-09-14 13:45:37','2021-09-14 13:45:37'),
+(103,'it','Departamento de informática',1,'2021-11-11 09:48:22','2021-11-11 09:48:22'),
+(104,'itBoss','Jefe de departamento de informática',1,'2021-11-11 09:48:49','2021-11-11 09:48:49'),
+(105,'grant','Adjudicar roles a usuarios',1,'2021-11-11 12:41:09','2021-11-11 12:41:09'),
+(106,'ext','Usuarios externos de la Base de datos',1,'2021-11-23 14:51:16','2021-11-23 14:51:16'),
+(107,'productionPlus','Creado para pepe por orden de Juanvi',1,'2022-02-08 06:47:10','2022-02-08 06:47:10'),
+(108,'system','System user',1,'2022-05-16 08:09:51','2022-05-16 08:09:51'),
+(109,'salesTeamBoss','Jefe de equipo de comerciales',1,'2022-06-14 13:45:56','2022-06-14 13:45:56');
/*!40000 ALTER TABLE `role` ENABLE KEYS */;
UNLOCK TABLES;
@@ -88,7 +410,219 @@ UNLOCK TABLES;
LOCK TABLES `roleInherit` WRITE;
/*!40000 ALTER TABLE `roleInherit` DISABLE KEYS */;
-INSERT INTO `roleInherit` VALUES (1,1,2),(2,1,3),(3,1,70),(4,2,11),(5,3,11),(6,5,1),(7,5,21),(8,5,33),(124,5,76),(167,9,103),(10,11,6),(11,13,1),(12,15,35),(143,15,49),(150,15,56),(114,15,76),(14,16,13),(15,16,15),(127,16,76),(16,17,20),(17,17,37),(18,17,39),(19,17,64),(145,17,67),(136,17,76),(20,18,1),(132,18,76),(21,19,21),(242,20,9),(22,20,13),(23,20,16),(24,20,65),(134,20,76),(25,21,13),(26,21,18),(27,21,53),(241,21,72),(131,21,76),(28,22,13),(29,22,21),(30,30,5),(31,30,20),(32,30,22),(33,30,53),(34,30,64),(118,30,76),(35,31,1),(36,32,1),(37,34,1),(38,34,13),(39,34,33),(40,35,1),(142,35,75),(129,35,76),(41,36,44),(42,36,47),(43,37,1),(139,37,74),(125,37,76),(146,38,13),(44,38,37),(45,38,64),(126,38,76),(46,39,5),(47,39,21),(48,39,57),(115,39,76),(49,40,1),(50,40,49),(51,41,13),(52,41,35),(53,41,40),(135,41,76),(54,42,35),(55,42,49),(128,42,76),(56,43,13),(57,43,42),(58,44,1),(59,45,13),(60,45,44),(61,47,1),(62,48,13),(153,48,35),(63,48,47),(64,49,36),(65,49,58),(66,50,13),(67,50,21),(68,50,35),(69,50,49),(70,50,57),(71,50,59),(133,50,76),(72,51,1),(251,51,21),(140,51,74),(141,51,75),(73,52,13),(74,52,19),(75,52,35),(76,52,51),(137,52,76),(77,53,1),(78,54,1),(79,55,13),(80,55,54),(81,56,1),(82,57,13),(245,57,33),(83,57,56),(138,57,76),(84,58,1),(85,59,13),(109,59,50),(87,60,5),(89,60,50),(90,60,57),(130,60,76),(91,61,13),(92,61,36),(93,65,19),(94,65,35),(95,65,50),(117,65,76),(168,66,9),(237,66,103),(97,67,5),(98,67,37),(99,69,35),(152,69,47),(101,70,11),(102,71,1),(103,71,58),(105,72,18),(106,73,5),(108,73,19),(107,73,64),(148,101,13),(147,101,35),(154,102,1),(248,102,13),(246,102,35),(173,103,1),(194,103,2),(181,103,3),(179,103,5),(201,103,6),(176,103,11),(231,103,13),(212,103,15),(213,103,16),(178,103,17),(230,103,18),(229,103,19),(238,103,20),(228,103,21),(232,103,22),(199,103,30),(200,103,31),(197,103,32),(207,103,33),(182,103,34),(186,103,35),(225,103,36),(204,103,37),(205,103,38),(177,103,39),(202,103,40),(203,103,41),(183,103,42),(184,103,43),(174,103,44),(175,103,45),(191,103,47),(193,103,48),(222,103,49),(224,103,50),(215,103,51),(216,103,52),(206,103,53),(210,103,54),(211,103,55),(195,103,56),(196,103,57),(219,103,58),(220,103,59),(223,103,60),(226,103,61),(185,103,64),(218,103,65),(180,103,67),(192,103,69),(233,103,70),(189,103,71),(190,103,72),(198,103,73),(234,103,74),(188,103,75),(172,103,76),(187,103,101),(221,103,102),(171,104,9),(170,104,66),(169,104,100),(166,104,103),(239,106,11),(240,107,60),(247,108,1),(250,109,13),(249,109,18);
+INSERT INTO `roleInherit` VALUES
+(1,1,2),
+(2,1,3),
+(3,1,70),
+(4,2,11),
+(5,3,11),
+(6,5,1),
+(7,5,21),
+(8,5,33),
+(124,5,76),
+(167,9,103),
+(10,11,6),
+(11,13,1),
+(12,15,35),
+(143,15,49),
+(150,15,56),
+(114,15,76),
+(14,16,13),
+(15,16,15),
+(127,16,76),
+(16,17,20),
+(17,17,37),
+(18,17,39),
+(19,17,64),
+(145,17,67),
+(136,17,76),
+(20,18,1),
+(132,18,76),
+(21,19,21),
+(242,20,9),
+(22,20,13),
+(23,20,16),
+(24,20,65),
+(134,20,76),
+(25,21,13),
+(26,21,18),
+(27,21,53),
+(241,21,72),
+(131,21,76),
+(28,22,13),
+(29,22,21),
+(30,30,5),
+(31,30,20),
+(32,30,22),
+(33,30,53),
+(34,30,64),
+(118,30,76),
+(35,31,1),
+(36,32,1),
+(37,34,1),
+(38,34,13),
+(39,34,33),
+(40,35,1),
+(142,35,75),
+(129,35,76),
+(41,36,44),
+(42,36,47),
+(43,37,1),
+(139,37,74),
+(125,37,76),
+(146,38,13),
+(44,38,37),
+(45,38,64),
+(126,38,76),
+(46,39,5),
+(47,39,21),
+(48,39,57),
+(115,39,76),
+(49,40,1),
+(50,40,49),
+(51,41,13),
+(52,41,35),
+(53,41,40),
+(135,41,76),
+(54,42,35),
+(55,42,49),
+(128,42,76),
+(56,43,13),
+(57,43,42),
+(58,44,1),
+(59,45,13),
+(60,45,44),
+(61,47,1),
+(62,48,13),
+(153,48,35),
+(63,48,47),
+(253,48,49),
+(64,49,36),
+(65,49,58),
+(66,50,13),
+(67,50,21),
+(68,50,35),
+(69,50,49),
+(70,50,57),
+(71,50,59),
+(133,50,76),
+(72,51,1),
+(251,51,21),
+(140,51,74),
+(141,51,75),
+(73,52,13),
+(74,52,19),
+(75,52,35),
+(76,52,51),
+(137,52,76),
+(77,53,1),
+(78,54,1),
+(79,55,13),
+(80,55,54),
+(81,56,1),
+(82,57,13),
+(245,57,33),
+(83,57,56),
+(138,57,76),
+(84,58,1),
+(85,59,13),
+(109,59,50),
+(87,60,5),
+(89,60,50),
+(90,60,57),
+(130,60,76),
+(91,61,13),
+(92,61,36),
+(93,65,19),
+(94,65,35),
+(95,65,50),
+(117,65,76),
+(168,66,9),
+(237,66,103),
+(97,67,5),
+(98,67,37),
+(99,69,35),
+(152,69,47),
+(101,70,11),
+(102,71,1),
+(103,71,58),
+(105,72,18),
+(106,73,5),
+(108,73,19),
+(107,73,64),
+(148,101,13),
+(147,101,35),
+(154,102,1),
+(248,102,13),
+(246,102,35),
+(173,103,1),
+(194,103,2),
+(181,103,3),
+(179,103,5),
+(201,103,6),
+(176,103,11),
+(231,103,13),
+(212,103,15),
+(213,103,16),
+(178,103,17),
+(230,103,18),
+(229,103,19),
+(238,103,20),
+(228,103,21),
+(232,103,22),
+(199,103,30),
+(200,103,31),
+(197,103,32),
+(207,103,33),
+(182,103,34),
+(186,103,35),
+(225,103,36),
+(204,103,37),
+(205,103,38),
+(177,103,39),
+(202,103,40),
+(203,103,41),
+(183,103,42),
+(184,103,43),
+(174,103,44),
+(175,103,45),
+(191,103,47),
+(193,103,48),
+(222,103,49),
+(224,103,50),
+(215,103,51),
+(216,103,52),
+(206,103,53),
+(210,103,54),
+(211,103,55),
+(195,103,56),
+(196,103,57),
+(219,103,58),
+(220,103,59),
+(223,103,60),
+(226,103,61),
+(185,103,64),
+(218,103,65),
+(180,103,67),
+(192,103,69),
+(233,103,70),
+(189,103,71),
+(190,103,72),
+(198,103,73),
+(234,103,74),
+(188,103,75),
+(172,103,76),
+(187,103,101),
+(221,103,102),
+(171,104,9),
+(170,104,66),
+(169,104,100),
+(166,104,103),
+(239,106,11),
+(240,107,60),
+(247,108,1),
+(250,109,13),
+(249,109,18);
/*!40000 ALTER TABLE `roleInherit` ENABLE KEYS */;
UNLOCK TABLES;
@@ -98,7 +632,1153 @@ UNLOCK TABLES;
LOCK TABLES `roleRole` WRITE;
/*!40000 ALTER TABLE `roleRole` DISABLE KEYS */;
-INSERT INTO `roleRole` VALUES (106016,1,1),(106017,1,2),(106018,1,3),(106021,1,6),(106020,1,11),(106019,1,70),(105934,2,2),(105936,2,6),(105935,2,11),(105820,3,3),(105822,3,6),(105821,3,11),(105790,5,1),(105797,5,2),(105796,5,3),(105789,5,5),(105802,5,6),(105801,5,11),(105794,5,13),(105798,5,18),(105791,5,21),(105792,5,33),(105799,5,53),(105795,5,70),(105800,5,72),(105793,5,76),(106118,6,6),(105957,9,1),(105958,9,2),(105959,9,3),(105960,9,5),(105961,9,6),(105955,9,9),(105962,9,11),(105963,9,13),(105964,9,15),(105965,9,16),(105966,9,17),(105967,9,18),(105968,9,19),(105969,9,20),(105970,9,21),(105971,9,22),(105972,9,30),(105973,9,31),(105974,9,32),(105975,9,33),(105976,9,34),(105977,9,35),(105978,9,36),(105979,9,37),(105980,9,38),(105981,9,39),(105982,9,40),(105983,9,41),(105984,9,42),(105985,9,43),(105986,9,44),(105987,9,45),(105988,9,47),(105989,9,48),(105990,9,49),(105991,9,50),(105992,9,51),(105993,9,52),(105994,9,53),(105995,9,54),(105996,9,55),(105997,9,56),(105998,9,57),(105999,9,58),(106000,9,59),(106001,9,60),(106002,9,61),(106003,9,64),(106004,9,65),(106005,9,67),(106006,9,69),(106007,9,70),(106008,9,71),(106009,9,72),(106010,9,73),(106011,9,74),(106012,9,75),(106013,9,76),(106014,9,101),(106015,9,102),(105956,9,103),(105710,11,6),(105709,11,11),(106812,13,1),(106813,13,2),(106814,13,3),(106817,13,6),(106816,13,11),(106811,13,13),(106815,13,70),(106332,15,1),(106336,15,2),(106335,15,3),(106339,15,6),(106338,15,11),(106324,15,15),(106325,15,35),(106330,15,36),(106333,15,44),(106337,15,47),(106326,15,49),(106327,15,56),(106329,15,58),(106334,15,70),(106331,15,75),(106328,15,76),(106346,16,1),(106351,16,2),(106350,16,3),(106357,16,6),(106356,16,11),(106341,16,13),(106342,16,15),(106340,16,16),(106345,16,35),(106352,16,36),(106355,16,44),(106354,16,47),(106344,16,49),(106347,16,56),(106353,16,58),(106349,16,70),(106348,16,75),(106343,16,76),(105736,17,1),(105747,17,2),(105746,17,3),(105741,17,5),(105769,17,6),(105740,17,9),(105768,17,11),(105739,17,13),(105751,17,15),(105738,17,16),(105728,17,17),(105753,17,18),(105750,17,19),(105729,17,20),(105742,17,21),(105767,17,22),(105766,17,30),(105765,17,31),(105764,17,32),(105744,17,33),(105763,17,34),(105749,17,35),(105762,17,36),(105730,17,37),(105761,17,38),(105731,17,39),(105760,17,40),(105759,17,41),(105758,17,42),(105757,17,43),(105770,17,44),(105771,17,45),(105772,17,47),(105773,17,48),(105774,17,49),(105748,17,50),(105775,17,51),(105776,17,52),(105754,17,53),(105777,17,54),(105778,17,55),(105756,17,56),(105743,17,57),(105779,17,58),(105780,17,59),(105781,17,60),(105782,17,61),(105732,17,64),(105737,17,65),(105733,17,67),(105783,17,69),(105745,17,70),(105784,17,71),(105755,17,72),(105785,17,73),(105735,17,74),(105786,17,75),(105734,17,76),(105787,17,101),(105788,17,102),(105752,17,103),(106725,18,1),(106728,18,2),(106727,18,3),(106731,18,6),(106730,18,11),(106724,18,18),(106729,18,70),(106726,18,76),(106718,19,1),(106721,19,2),(106720,19,3),(106723,19,6),(106722,19,11),(106713,19,13),(106714,19,18),(106711,19,19),(106712,19,21),(106715,19,53),(106719,19,70),(106716,19,72),(106717,19,76),(106367,20,1),(106375,20,2),(106374,20,3),(106373,20,5),(106372,20,6),(106359,20,9),(106371,20,11),(106360,20,13),(106366,20,15),(106361,20,16),(106370,20,17),(106376,20,18),(106365,20,19),(106358,20,20),(106377,20,21),(106378,20,22),(106379,20,30),(106380,20,31),(106381,20,32),(106382,20,33),(106383,20,34),(106364,20,35),(106384,20,36),(106385,20,37),(106386,20,38),(106387,20,39),(106388,20,40),(106389,20,41),(106390,20,42),(106391,20,43),(106392,20,44),(106393,20,45),(106394,20,47),(106395,20,48),(106396,20,49),(106369,20,50),(106397,20,51),(106398,20,52),(106399,20,53),(106400,20,54),(106401,20,55),(106402,20,56),(106403,20,57),(106404,20,58),(106405,20,59),(106406,20,60),(106407,20,61),(106408,20,64),(106362,20,65),(106409,20,67),(106410,20,69),(106411,20,70),(106412,20,71),(106413,20,72),(106414,20,73),(106415,20,74),(106416,20,75),(106363,20,76),(106417,20,101),(106418,20,102),(106368,20,103),(106705,21,1),(106708,21,2),(106707,21,3),(106710,21,6),(106709,21,11),(106700,21,13),(106701,21,18),(106699,21,21),(106702,21,53),(106706,21,70),(106703,21,72),(106704,21,76),(106822,22,1),(106828,22,2),(106827,22,3),(106830,22,6),(106829,22,11),(106819,22,13),(106821,22,18),(106820,22,21),(106818,22,22),(106823,22,53),(106826,22,70),(106824,22,72),(106825,22,76),(106061,30,1),(106069,30,2),(106068,30,3),(106050,30,5),(106081,30,6),(106058,30,9),(106082,30,11),(106057,30,13),(106063,30,15),(106056,30,16),(106080,30,17),(106066,30,18),(106070,30,19),(106051,30,20),(106060,30,21),(106052,30,22),(106049,30,30),(106079,30,31),(106078,30,32),(106059,30,33),(106077,30,34),(106071,30,35),(106076,30,36),(106075,30,37),(106074,30,38),(106073,30,39),(106083,30,40),(106084,30,41),(106085,30,42),(106086,30,43),(106087,30,44),(106088,30,45),(106089,30,47),(106090,30,48),(106091,30,49),(106072,30,50),(106092,30,51),(106093,30,52),(106053,30,53),(106094,30,54),(106095,30,55),(106096,30,56),(106097,30,57),(106098,30,58),(106099,30,59),(106100,30,60),(106101,30,61),(106054,30,64),(106062,30,65),(106102,30,67),(106103,30,69),(106067,30,70),(106104,30,71),(106065,30,72),(106105,30,73),(106106,30,74),(106107,30,75),(106055,30,76),(106108,30,101),(106109,30,102),(106064,30,103),(106111,31,1),(106112,31,2),(106113,31,3),(106116,31,6),(106115,31,11),(106110,31,31),(106114,31,70),(106023,32,1),(106024,32,2),(106025,32,3),(106028,32,6),(106027,32,11),(106022,32,32),(106026,32,70),(106176,33,33),(105824,34,1),(105829,34,2),(105828,34,3),(105831,34,6),(105830,34,11),(105825,34,13),(105826,34,33),(105823,34,34),(105827,34,70),(105866,35,1),(105871,35,2),(105870,35,3),(105873,35,6),(105872,35,11),(105865,35,35),(105869,35,70),(105867,35,75),(105868,35,76),(106612,36,1),(106614,36,2),(106613,36,3),(106617,36,6),(106616,36,11),(106609,36,36),(106610,36,44),(106611,36,47),(106615,36,70),(106149,37,1),(106154,37,2),(106153,37,3),(106156,37,6),(106155,37,11),(106148,37,37),(106152,37,70),(106150,37,74),(106151,37,76),(106163,38,1),(106166,38,2),(106165,38,3),(106168,38,6),(106167,38,11),(106158,38,13),(106159,38,37),(106157,38,38),(106160,38,64),(106164,38,70),(106162,38,74),(106161,38,76),(105719,39,1),(105725,39,2),(105724,39,3),(105712,39,5),(105727,39,6),(105726,39,11),(105717,39,13),(105716,39,18),(105713,39,21),(105718,39,33),(105711,39,39),(105720,39,53),(105722,39,56),(105714,39,57),(105723,39,70),(105721,39,72),(105715,39,76),(106120,40,1),(106123,40,2),(106122,40,3),(106130,40,6),(106129,40,11),(106125,40,36),(106119,40,40),(106128,40,44),(106127,40,47),(106121,40,49),(106126,40,58),(106124,40,70),(106138,41,1),(106142,41,2),(106141,41,3),(106147,41,6),(106146,41,11),(106132,41,13),(106133,41,35),(106139,41,36),(106134,41,40),(106131,41,41),(106145,41,44),(106144,41,47),(106136,41,49),(106143,41,58),(106140,41,70),(106137,41,75),(106135,41,76),(105838,42,1),(105843,42,2),(105842,42,3),(105846,42,6),(105845,42,11),(105833,42,35),(105836,42,36),(105832,42,42),(105840,42,44),(105844,42,47),(105834,42,49),(105839,42,58),(105841,42,70),(105837,42,75),(105835,42,76),(105851,43,1),(105857,43,2),(105856,43,3),(105863,43,6),(105862,43,11),(105848,43,13),(105850,43,35),(105858,43,36),(105849,43,42),(105847,43,43),(105861,43,44),(105860,43,47),(105852,43,49),(105859,43,58),(105855,43,70),(105854,43,75),(105853,43,76),(105694,44,1),(105695,44,2),(105696,44,3),(105699,44,6),(105698,44,11),(105693,44,44),(105697,44,70),(105703,45,1),(105705,45,2),(105704,45,3),(105708,45,6),(105707,45,11),(105701,45,13),(105702,45,44),(105700,45,45),(105706,45,70),(105905,47,1),(105906,47,2),(105907,47,3),(105910,47,6),(105909,47,11),(105904,47,47),(105908,47,70),(105928,48,1),(105931,48,2),(105930,48,3),(105933,48,6),(105932,48,11),(105923,48,13),(105924,48,35),(105925,48,47),(105922,48,48),(105929,48,70),(105927,48,75),(105926,48,76),(106526,49,1),(106529,49,2),(106528,49,3),(106531,49,6),(106530,49,11),(106522,49,36),(106525,49,44),(106524,49,47),(106521,49,49),(106523,49,58),(106527,49,70),(106572,50,1),(106579,50,2),(106578,50,3),(106581,50,6),(106580,50,11),(106559,50,13),(106571,50,18),(106560,50,21),(106573,50,33),(106561,50,35),(106567,50,36),(106576,50,44),(106575,50,47),(106562,50,49),(106558,50,50),(106570,50,53),(106574,50,56),(106563,50,57),(106566,50,58),(106564,50,59),(106577,50,70),(106569,50,72),(106568,50,75),(106565,50,76),(106420,51,1),(106427,51,2),(106426,51,3),(106433,51,6),(106432,51,11),(106424,51,13),(106428,51,18),(106421,51,21),(106419,51,51),(106429,51,53),(106425,51,70),(106430,51,72),(106422,51,74),(106423,51,75),(106431,51,76),(106443,52,1),(106448,52,2),(106447,52,3),(106451,52,6),(106450,52,11),(106435,52,13),(106445,52,18),(106436,52,19),(106442,52,21),(106437,52,35),(106438,52,51),(106434,52,52),(106444,52,53),(106446,52,70),(106449,52,72),(106440,52,74),(106441,52,75),(106439,52,76),(106170,53,1),(106171,53,2),(106172,53,3),(106175,53,6),(106174,53,11),(106169,53,53),(106173,53,70),(106309,54,1),(106310,54,2),(106311,54,3),(106314,54,6),(106313,54,11),(106308,54,54),(106312,54,70),(106318,55,1),(106320,55,2),(106319,55,3),(106323,55,6),(106322,55,11),(106316,55,13),(106317,55,54),(106315,55,55),(106321,55,70),(105938,56,1),(105939,56,2),(105940,56,3),(105943,56,6),(105942,56,11),(105937,56,56),(105941,56,70),(105949,57,1),(105952,57,2),(105951,57,3),(105954,57,6),(105953,57,11),(105945,57,13),(105946,57,33),(105947,57,56),(105944,57,57),(105950,57,70),(105948,57,76),(106480,58,1),(106481,58,2),(106482,58,3),(106485,58,6),(106484,58,11),(106479,58,58),(106483,58,70),(106490,59,1),(106500,59,2),(106499,59,3),(106509,59,6),(106508,59,11),(106487,59,13),(106497,59,18),(106489,59,21),(106504,59,33),(106491,59,35),(106502,59,36),(106507,59,44),(106506,59,47),(106492,59,49),(106488,59,50),(106496,59,53),(106505,59,56),(106493,59,57),(106503,59,58),(106486,59,59),(106498,59,70),(106495,59,72),(106501,59,75),(106494,59,76),(106540,60,1),(106552,60,2),(106551,60,3),(106533,60,5),(106557,60,6),(106556,60,11),(106537,60,13),(106549,60,18),(106539,60,21),(106538,60,33),(106541,60,35),(106545,60,36),(106555,60,44),(106554,60,47),(106542,60,49),(106534,60,50),(106548,60,53),(106544,60,56),(106535,60,57),(106553,60,58),(106543,60,59),(106532,60,60),(106550,60,70),(106547,60,72),(106546,60,75),(106536,60,76),(106622,61,1),(106626,61,2),(106625,61,3),(106628,61,6),(106627,61,11),(106619,61,13),(106620,61,36),(106621,61,44),(106623,61,47),(106618,61,61),(106624,61,70),(106452,62,62),(105864,64,64),(106460,65,1),(106468,65,2),(106467,65,3),(106478,65,6),(106477,65,11),(106458,65,13),(106471,65,18),(106454,65,19),(106461,65,21),(106473,65,33),(106455,65,35),(106465,65,36),(106476,65,44),(106475,65,47),(106462,65,49),(106456,65,50),(106470,65,53),(106474,65,56),(106463,65,57),(106472,65,58),(106464,65,59),(106453,65,65),(106466,65,70),(106469,65,72),(106459,65,75),(106457,65,76),(106746,66,1),(106745,66,2),(106747,66,3),(106748,66,5),(106749,66,6),(106743,66,9),(106750,66,11),(106751,66,13),(106752,66,15),(106753,66,16),(106754,66,17),(106755,66,18),(106756,66,19),(106757,66,20),(106758,66,21),(106759,66,22),(106760,66,30),(106761,66,31),(106762,66,32),(106763,66,33),(106764,66,34),(106765,66,35),(106766,66,36),(106767,66,37),(106768,66,38),(106769,66,39),(106770,66,40),(106771,66,41),(106772,66,42),(106773,66,43),(106774,66,44),(106775,66,45),(106776,66,47),(106777,66,48),(106778,66,49),(106779,66,50),(106780,66,51),(106781,66,52),(106782,66,53),(106783,66,54),(106784,66,55),(106785,66,56),(106786,66,57),(106787,66,58),(106788,66,59),(106789,66,60),(106790,66,61),(106791,66,64),(106792,66,65),(106742,66,66),(106793,66,67),(106794,66,69),(106795,66,70),(106796,66,71),(106797,66,72),(106798,66,73),(106799,66,74),(106800,66,75),(106801,66,76),(106802,66,101),(106803,66,102),(106744,66,103),(105807,67,1),(105815,67,2),(105814,67,3),(105804,67,5),(105819,67,6),(105818,67,11),(105812,67,13),(105811,67,18),(105806,67,21),(105808,67,33),(105805,67,37),(105816,67,53),(105803,67,67),(105813,67,70),(105817,67,72),(105810,67,74),(105809,67,76),(105915,69,1),(105919,69,2),(105918,69,3),(105921,69,6),(105920,69,11),(105912,69,35),(105913,69,47),(105911,69,69),(105917,69,70),(105914,69,75),(105916,69,76),(106833,70,6),(106832,70,11),(106831,70,70),(105888,71,1),(105891,71,2),(105890,71,3),(105894,71,6),(105893,71,11),(105889,71,58),(105892,71,70),(105887,71,71),(105897,72,1),(105900,72,2),(105899,72,3),(105903,72,6),(105902,72,11),(105896,72,18),(105901,72,70),(105895,72,72),(105898,72,76),(106038,73,1),(106043,73,2),(106042,73,3),(106033,73,5),(106048,73,6),(106047,73,11),(106040,73,13),(106044,73,18),(106034,73,19),(106037,73,21),(106036,73,33),(106045,73,53),(106035,73,64),(106041,73,70),(106046,73,72),(106032,73,73),(106039,73,76),(106834,74,74),(105885,75,75),(105886,76,76),(106655,100,1),(106651,100,2),(106637,100,3),(106635,100,5),(106662,100,6),(106654,100,9),(106632,100,11),(106695,100,13),(106673,100,15),(106674,100,16),(106634,100,17),(106691,100,18),(106690,100,19),(106675,100,20),(106689,100,21),(106696,100,22),(106659,100,30),(106660,100,31),(106656,100,32),(106668,100,33),(106638,100,34),(106642,100,35),(106687,100,36),(106665,100,37),(106666,100,38),(106633,100,39),(106663,100,40),(106664,100,41),(106639,100,42),(106640,100,43),(106630,100,44),(106631,100,45),(106648,100,47),(106650,100,48),(106683,100,49),(106685,100,50),(106676,100,51),(106677,100,52),(106667,100,53),(106671,100,54),(106672,100,55),(106652,100,56),(106653,100,57),(106680,100,58),(106681,100,59),(106684,100,60),(106688,100,61),(106678,100,62),(106641,100,64),(106679,100,65),(106693,100,66),(106636,100,67),(106649,100,69),(106697,100,70),(106646,100,71),(106647,100,72),(106658,100,73),(106698,100,74),(106644,100,75),(106645,100,76),(106629,100,100),(106643,100,101),(106682,100,102),(106669,100,103),(106670,100,104),(106661,100,105),(106657,100,106),(106686,100,107),(106694,100,108),(106692,100,109),(105878,101,1),(105882,101,2),(105881,101,3),(105884,101,6),(105883,101,11),(105875,101,13),(105876,101,35),(105880,101,70),(105877,101,75),(105879,101,76),(105874,101,101),(106511,102,1),(106516,102,2),(106515,102,3),(106520,102,6),(106519,102,11),(106512,102,13),(106513,102,35),(106514,102,70),(106517,102,75),(106518,102,76),(106510,102,102),(106178,103,1),(106179,103,2),(106180,103,3),(106181,103,5),(106182,103,6),(106237,103,9),(106183,103,11),(106184,103,13),(106185,103,15),(106186,103,16),(106187,103,17),(106188,103,18),(106189,103,19),(106190,103,20),(106191,103,21),(106192,103,22),(106193,103,30),(106194,103,31),(106195,103,32),(106196,103,33),(106197,103,34),(106198,103,35),(106199,103,36),(106200,103,37),(106201,103,38),(106202,103,39),(106203,103,40),(106204,103,41),(106205,103,42),(106206,103,43),(106207,103,44),(106208,103,45),(106209,103,47),(106210,103,48),(106211,103,49),(106212,103,50),(106213,103,51),(106214,103,52),(106215,103,53),(106216,103,54),(106217,103,55),(106218,103,56),(106219,103,57),(106220,103,58),(106221,103,59),(106222,103,60),(106223,103,61),(106224,103,64),(106225,103,65),(106226,103,67),(106227,103,69),(106228,103,70),(106229,103,71),(106230,103,72),(106231,103,73),(106232,103,74),(106233,103,75),(106234,103,76),(106235,103,101),(106236,103,102),(106177,103,103),(106246,104,1),(106245,104,2),(106244,104,3),(106243,104,5),(106247,104,6),(106239,104,9),(106248,104,11),(106249,104,13),(106250,104,15),(106251,104,16),(106252,104,17),(106253,104,18),(106254,104,19),(106255,104,20),(106256,104,21),(106257,104,22),(106258,104,30),(106259,104,31),(106260,104,32),(106261,104,33),(106262,104,34),(106263,104,35),(106264,104,36),(106265,104,37),(106266,104,38),(106267,104,39),(106268,104,40),(106269,104,41),(106270,104,42),(106271,104,43),(106272,104,44),(106273,104,45),(106274,104,47),(106275,104,48),(106276,104,49),(106277,104,50),(106278,104,51),(106279,104,52),(106280,104,53),(106281,104,54),(106282,104,55),(106283,104,56),(106284,104,57),(106285,104,58),(106286,104,59),(106287,104,60),(106288,104,61),(106304,104,62),(106289,104,64),(106290,104,65),(106240,104,66),(106291,104,67),(106292,104,69),(106293,104,70),(106294,104,71),(106295,104,72),(106296,104,73),(106297,104,74),(106298,104,75),(106299,104,76),(106241,104,100),(106300,104,101),(106301,104,102),(106242,104,103),(106238,104,104),(106303,104,105),(106302,104,106),(106305,104,107),(106307,104,108),(106306,104,109),(106117,105,105),(106031,106,6),(106030,106,11),(106029,106,106),(106591,107,1),(106603,107,2),(106602,107,3),(106584,107,5),(106608,107,6),(106607,107,11),(106588,107,13),(106600,107,18),(106590,107,21),(106589,107,33),(106592,107,35),(106596,107,36),(106606,107,44),(106605,107,47),(106593,107,49),(106585,107,50),(106599,107,53),(106595,107,56),(106586,107,57),(106604,107,58),(106594,107,59),(106583,107,60),(106601,107,70),(106598,107,72),(106597,107,75),(106587,107,76),(106582,107,107),(106805,108,1),(106806,108,2),(106807,108,3),(106810,108,6),(106809,108,11),(106808,108,70),(106804,108,108),(106736,109,1),(106738,109,2),(106737,109,3),(106741,109,6),(106740,109,11),(106733,109,13),(106734,109,18),(106739,109,70),(106735,109,76),(106732,109,109);
+INSERT INTO `roleRole` VALUES
+(113544,1,1),
+(113545,1,2),
+(113546,1,3),
+(113549,1,6),
+(113548,1,11),
+(113547,1,70),
+(113462,2,2),
+(113464,2,6),
+(113463,2,11),
+(113344,3,3),
+(113346,3,6),
+(113345,3,11),
+(113314,5,1),
+(113321,5,2),
+(113320,5,3),
+(113313,5,5),
+(113326,5,6),
+(113325,5,11),
+(113318,5,13),
+(113322,5,18),
+(113315,5,21),
+(113316,5,33),
+(113323,5,53),
+(113319,5,70),
+(113324,5,72),
+(113317,5,76),
+(113646,6,6),
+(113485,9,1),
+(113486,9,2),
+(113487,9,3),
+(113488,9,5),
+(113489,9,6),
+(113483,9,9),
+(113490,9,11),
+(113491,9,13),
+(113492,9,15),
+(113493,9,16),
+(113494,9,17),
+(113495,9,18),
+(113496,9,19),
+(113497,9,20),
+(113498,9,21),
+(113499,9,22),
+(113500,9,30),
+(113501,9,31),
+(113502,9,32),
+(113503,9,33),
+(113504,9,34),
+(113505,9,35),
+(113506,9,36),
+(113507,9,37),
+(113508,9,38),
+(113509,9,39),
+(113510,9,40),
+(113511,9,41),
+(113512,9,42),
+(113513,9,43),
+(113514,9,44),
+(113515,9,45),
+(113516,9,47),
+(113517,9,48),
+(113518,9,49),
+(113519,9,50),
+(113520,9,51),
+(113521,9,52),
+(113522,9,53),
+(113523,9,54),
+(113524,9,55),
+(113525,9,56),
+(113526,9,57),
+(113527,9,58),
+(113528,9,59),
+(113529,9,60),
+(113530,9,61),
+(113531,9,64),
+(113532,9,65),
+(113533,9,67),
+(113534,9,69),
+(113535,9,70),
+(113536,9,71),
+(113537,9,72),
+(113538,9,73),
+(113539,9,74),
+(113540,9,75),
+(113541,9,76),
+(113542,9,101),
+(113543,9,102),
+(113484,9,103),
+(113234,11,6),
+(113233,11,11),
+(114340,13,1),
+(114341,13,2),
+(114342,13,3),
+(114345,13,6),
+(114344,13,11),
+(114339,13,13),
+(114343,13,70),
+(113860,15,1),
+(113864,15,2),
+(113863,15,3),
+(113867,15,6),
+(113866,15,11),
+(113852,15,15),
+(113853,15,35),
+(113858,15,36),
+(113861,15,44),
+(113865,15,47),
+(113854,15,49),
+(113855,15,56),
+(113857,15,58),
+(113862,15,70),
+(113859,15,75),
+(113856,15,76),
+(113874,16,1),
+(113879,16,2),
+(113878,16,3),
+(113885,16,6),
+(113884,16,11),
+(113869,16,13),
+(113870,16,15),
+(113868,16,16),
+(113873,16,35),
+(113880,16,36),
+(113883,16,44),
+(113882,16,47),
+(113872,16,49),
+(113875,16,56),
+(113881,16,58),
+(113877,16,70),
+(113876,16,75),
+(113871,16,76),
+(113260,17,1),
+(113271,17,2),
+(113270,17,3),
+(113265,17,5),
+(113293,17,6),
+(113264,17,9),
+(113292,17,11),
+(113263,17,13),
+(113275,17,15),
+(113262,17,16),
+(113252,17,17),
+(113277,17,18),
+(113274,17,19),
+(113253,17,20),
+(113266,17,21),
+(113291,17,22),
+(113290,17,30),
+(113289,17,31),
+(113288,17,32),
+(113268,17,33),
+(113287,17,34),
+(113273,17,35),
+(113286,17,36),
+(113254,17,37),
+(113285,17,38),
+(113255,17,39),
+(113284,17,40),
+(113283,17,41),
+(113282,17,42),
+(113281,17,43),
+(113294,17,44),
+(113295,17,45),
+(113296,17,47),
+(113297,17,48),
+(113298,17,49),
+(113272,17,50),
+(113299,17,51),
+(113300,17,52),
+(113278,17,53),
+(113301,17,54),
+(113302,17,55),
+(113280,17,56),
+(113267,17,57),
+(113303,17,58),
+(113304,17,59),
+(113305,17,60),
+(113306,17,61),
+(113256,17,64),
+(113261,17,65),
+(113257,17,67),
+(113307,17,69),
+(113269,17,70),
+(113308,17,71),
+(113279,17,72),
+(113309,17,73),
+(113259,17,74),
+(113310,17,75),
+(113258,17,76),
+(113311,17,101),
+(113312,17,102),
+(113276,17,103),
+(114253,18,1),
+(114256,18,2),
+(114255,18,3),
+(114259,18,6),
+(114258,18,11),
+(114252,18,18),
+(114257,18,70),
+(114254,18,76),
+(114246,19,1),
+(114249,19,2),
+(114248,19,3),
+(114251,19,6),
+(114250,19,11),
+(114241,19,13),
+(114242,19,18),
+(114239,19,19),
+(114240,19,21),
+(114243,19,53),
+(114247,19,70),
+(114244,19,72),
+(114245,19,76),
+(113895,20,1),
+(113903,20,2),
+(113902,20,3),
+(113901,20,5),
+(113900,20,6),
+(113887,20,9),
+(113899,20,11),
+(113888,20,13),
+(113894,20,15),
+(113889,20,16),
+(113898,20,17),
+(113904,20,18),
+(113893,20,19),
+(113886,20,20),
+(113905,20,21),
+(113906,20,22),
+(113907,20,30),
+(113908,20,31),
+(113909,20,32),
+(113910,20,33),
+(113911,20,34),
+(113892,20,35),
+(113912,20,36),
+(113913,20,37),
+(113914,20,38),
+(113915,20,39),
+(113916,20,40),
+(113917,20,41),
+(113918,20,42),
+(113919,20,43),
+(113920,20,44),
+(113921,20,45),
+(113922,20,47),
+(113923,20,48),
+(113924,20,49),
+(113897,20,50),
+(113925,20,51),
+(113926,20,52),
+(113927,20,53),
+(113928,20,54),
+(113929,20,55),
+(113930,20,56),
+(113931,20,57),
+(113932,20,58),
+(113933,20,59),
+(113934,20,60),
+(113935,20,61),
+(113936,20,64),
+(113890,20,65),
+(113937,20,67),
+(113938,20,69),
+(113939,20,70),
+(113940,20,71),
+(113941,20,72),
+(113942,20,73),
+(113943,20,74),
+(113944,20,75),
+(113891,20,76),
+(113945,20,101),
+(113946,20,102),
+(113896,20,103),
+(114233,21,1),
+(114236,21,2),
+(114235,21,3),
+(114238,21,6),
+(114237,21,11),
+(114228,21,13),
+(114229,21,18),
+(114227,21,21),
+(114230,21,53),
+(114234,21,70),
+(114231,21,72),
+(114232,21,76),
+(114350,22,1),
+(114356,22,2),
+(114355,22,3),
+(114358,22,6),
+(114357,22,11),
+(114347,22,13),
+(114349,22,18),
+(114348,22,21),
+(114346,22,22),
+(114351,22,53),
+(114354,22,70),
+(114352,22,72),
+(114353,22,76),
+(113589,30,1),
+(113597,30,2),
+(113596,30,3),
+(113578,30,5),
+(113609,30,6),
+(113586,30,9),
+(113610,30,11),
+(113585,30,13),
+(113591,30,15),
+(113584,30,16),
+(113608,30,17),
+(113594,30,18),
+(113598,30,19),
+(113579,30,20),
+(113588,30,21),
+(113580,30,22),
+(113577,30,30),
+(113607,30,31),
+(113606,30,32),
+(113587,30,33),
+(113605,30,34),
+(113599,30,35),
+(113604,30,36),
+(113603,30,37),
+(113602,30,38),
+(113601,30,39),
+(113611,30,40),
+(113612,30,41),
+(113613,30,42),
+(113614,30,43),
+(113615,30,44),
+(113616,30,45),
+(113617,30,47),
+(113618,30,48),
+(113619,30,49),
+(113600,30,50),
+(113620,30,51),
+(113621,30,52),
+(113581,30,53),
+(113622,30,54),
+(113623,30,55),
+(113624,30,56),
+(113625,30,57),
+(113626,30,58),
+(113627,30,59),
+(113628,30,60),
+(113629,30,61),
+(113582,30,64),
+(113590,30,65),
+(113630,30,67),
+(113631,30,69),
+(113595,30,70),
+(113632,30,71),
+(113593,30,72),
+(113633,30,73),
+(113634,30,74),
+(113635,30,75),
+(113583,30,76),
+(113636,30,101),
+(113637,30,102),
+(113592,30,103),
+(113639,31,1),
+(113640,31,2),
+(113641,31,3),
+(113644,31,6),
+(113643,31,11),
+(113638,31,31),
+(113642,31,70),
+(113551,32,1),
+(113552,32,2),
+(113553,32,3),
+(113556,32,6),
+(113555,32,11),
+(113550,32,32),
+(113554,32,70),
+(113704,33,33),
+(113348,34,1),
+(113353,34,2),
+(113352,34,3),
+(113355,34,6),
+(113354,34,11),
+(113349,34,13),
+(113350,34,33),
+(113347,34,34),
+(113351,34,70),
+(113390,35,1),
+(113395,35,2),
+(113394,35,3),
+(113397,35,6),
+(113396,35,11),
+(113389,35,35),
+(113393,35,70),
+(113391,35,75),
+(113392,35,76),
+(114140,36,1),
+(114142,36,2),
+(114141,36,3),
+(114145,36,6),
+(114144,36,11),
+(114137,36,36),
+(114138,36,44),
+(114139,36,47),
+(114143,36,70),
+(113677,37,1),
+(113682,37,2),
+(113681,37,3),
+(113684,37,6),
+(113683,37,11),
+(113676,37,37),
+(113680,37,70),
+(113678,37,74),
+(113679,37,76),
+(113691,38,1),
+(113694,38,2),
+(113693,38,3),
+(113696,38,6),
+(113695,38,11),
+(113686,38,13),
+(113687,38,37),
+(113685,38,38),
+(113688,38,64),
+(113692,38,70),
+(113690,38,74),
+(113689,38,76),
+(113243,39,1),
+(113249,39,2),
+(113248,39,3),
+(113236,39,5),
+(113251,39,6),
+(113250,39,11),
+(113241,39,13),
+(113240,39,18),
+(113237,39,21),
+(113242,39,33),
+(113235,39,39),
+(113244,39,53),
+(113246,39,56),
+(113238,39,57),
+(113247,39,70),
+(113245,39,72),
+(113239,39,76),
+(113648,40,1),
+(113651,40,2),
+(113650,40,3),
+(113658,40,6),
+(113657,40,11),
+(113653,40,36),
+(113647,40,40),
+(113656,40,44),
+(113655,40,47),
+(113649,40,49),
+(113654,40,58),
+(113652,40,70),
+(113666,41,1),
+(113670,41,2),
+(113669,41,3),
+(113675,41,6),
+(113674,41,11),
+(113660,41,13),
+(113661,41,35),
+(113667,41,36),
+(113662,41,40),
+(113659,41,41),
+(113673,41,44),
+(113672,41,47),
+(113664,41,49),
+(113671,41,58),
+(113668,41,70),
+(113665,41,75),
+(113663,41,76),
+(113362,42,1),
+(113367,42,2),
+(113366,42,3),
+(113370,42,6),
+(113369,42,11),
+(113357,42,35),
+(113360,42,36),
+(113356,42,42),
+(113364,42,44),
+(113368,42,47),
+(113358,42,49),
+(113363,42,58),
+(113365,42,70),
+(113361,42,75),
+(113359,42,76),
+(113375,43,1),
+(113381,43,2),
+(113380,43,3),
+(113387,43,6),
+(113386,43,11),
+(113372,43,13),
+(113374,43,35),
+(113382,43,36),
+(113373,43,42),
+(113371,43,43),
+(113385,43,44),
+(113384,43,47),
+(113376,43,49),
+(113383,43,58),
+(113379,43,70),
+(113378,43,75),
+(113377,43,76),
+(113218,44,1),
+(113219,44,2),
+(113220,44,3),
+(113223,44,6),
+(113222,44,11),
+(113217,44,44),
+(113221,44,70),
+(113227,45,1),
+(113229,45,2),
+(113228,45,3),
+(113232,45,6),
+(113231,45,11),
+(113225,45,13),
+(113226,45,44),
+(113224,45,45),
+(113230,45,70),
+(113429,47,1),
+(113430,47,2),
+(113431,47,3),
+(113434,47,6),
+(113433,47,11),
+(113428,47,47),
+(113432,47,70),
+(113454,48,1),
+(113459,48,2),
+(113458,48,3),
+(113461,48,6),
+(113460,48,11),
+(113447,48,13),
+(113448,48,35),
+(113451,48,36),
+(113456,48,44),
+(113449,48,47),
+(113446,48,48),
+(113450,48,49),
+(113455,48,58),
+(113457,48,70),
+(113453,48,75),
+(113452,48,76),
+(114054,49,1),
+(114057,49,2),
+(114056,49,3),
+(114059,49,6),
+(114058,49,11),
+(114050,49,36),
+(114053,49,44),
+(114052,49,47),
+(114049,49,49),
+(114051,49,58),
+(114055,49,70),
+(114100,50,1),
+(114107,50,2),
+(114106,50,3),
+(114109,50,6),
+(114108,50,11),
+(114087,50,13),
+(114099,50,18),
+(114088,50,21),
+(114101,50,33),
+(114089,50,35),
+(114095,50,36),
+(114104,50,44),
+(114103,50,47),
+(114090,50,49),
+(114086,50,50),
+(114098,50,53),
+(114102,50,56),
+(114091,50,57),
+(114094,50,58),
+(114092,50,59),
+(114105,50,70),
+(114097,50,72),
+(114096,50,75),
+(114093,50,76),
+(113948,51,1),
+(113955,51,2),
+(113954,51,3),
+(113961,51,6),
+(113960,51,11),
+(113952,51,13),
+(113956,51,18),
+(113949,51,21),
+(113947,51,51),
+(113957,51,53),
+(113953,51,70),
+(113958,51,72),
+(113950,51,74),
+(113951,51,75),
+(113959,51,76),
+(113971,52,1),
+(113976,52,2),
+(113975,52,3),
+(113979,52,6),
+(113978,52,11),
+(113963,52,13),
+(113973,52,18),
+(113964,52,19),
+(113970,52,21),
+(113965,52,35),
+(113966,52,51),
+(113962,52,52),
+(113972,52,53),
+(113974,52,70),
+(113977,52,72),
+(113968,52,74),
+(113969,52,75),
+(113967,52,76),
+(113698,53,1),
+(113699,53,2),
+(113700,53,3),
+(113703,53,6),
+(113702,53,11),
+(113697,53,53),
+(113701,53,70),
+(113837,54,1),
+(113838,54,2),
+(113839,54,3),
+(113842,54,6),
+(113841,54,11),
+(113836,54,54),
+(113840,54,70),
+(113846,55,1),
+(113848,55,2),
+(113847,55,3),
+(113851,55,6),
+(113850,55,11),
+(113844,55,13),
+(113845,55,54),
+(113843,55,55),
+(113849,55,70),
+(113466,56,1),
+(113467,56,2),
+(113468,56,3),
+(113471,56,6),
+(113470,56,11),
+(113465,56,56),
+(113469,56,70),
+(113477,57,1),
+(113480,57,2),
+(113479,57,3),
+(113482,57,6),
+(113481,57,11),
+(113473,57,13),
+(113474,57,33),
+(113475,57,56),
+(113472,57,57),
+(113478,57,70),
+(113476,57,76),
+(114008,58,1),
+(114009,58,2),
+(114010,58,3),
+(114013,58,6),
+(114012,58,11),
+(114007,58,58),
+(114011,58,70),
+(114018,59,1),
+(114028,59,2),
+(114027,59,3),
+(114037,59,6),
+(114036,59,11),
+(114015,59,13),
+(114025,59,18),
+(114017,59,21),
+(114032,59,33),
+(114019,59,35),
+(114030,59,36),
+(114035,59,44),
+(114034,59,47),
+(114020,59,49),
+(114016,59,50),
+(114024,59,53),
+(114033,59,56),
+(114021,59,57),
+(114031,59,58),
+(114014,59,59),
+(114026,59,70),
+(114023,59,72),
+(114029,59,75),
+(114022,59,76),
+(114068,60,1),
+(114080,60,2),
+(114079,60,3),
+(114061,60,5),
+(114085,60,6),
+(114084,60,11),
+(114065,60,13),
+(114077,60,18),
+(114067,60,21),
+(114066,60,33),
+(114069,60,35),
+(114073,60,36),
+(114083,60,44),
+(114082,60,47),
+(114070,60,49),
+(114062,60,50),
+(114076,60,53),
+(114072,60,56),
+(114063,60,57),
+(114081,60,58),
+(114071,60,59),
+(114060,60,60),
+(114078,60,70),
+(114075,60,72),
+(114074,60,75),
+(114064,60,76),
+(114150,61,1),
+(114154,61,2),
+(114153,61,3),
+(114156,61,6),
+(114155,61,11),
+(114147,61,13),
+(114148,61,36),
+(114149,61,44),
+(114151,61,47),
+(114146,61,61),
+(114152,61,70),
+(113980,62,62),
+(113388,64,64),
+(113988,65,1),
+(113996,65,2),
+(113995,65,3),
+(114006,65,6),
+(114005,65,11),
+(113986,65,13),
+(113999,65,18),
+(113982,65,19),
+(113989,65,21),
+(114001,65,33),
+(113983,65,35),
+(113993,65,36),
+(114004,65,44),
+(114003,65,47),
+(113990,65,49),
+(113984,65,50),
+(113998,65,53),
+(114002,65,56),
+(113991,65,57),
+(114000,65,58),
+(113992,65,59),
+(113981,65,65),
+(113994,65,70),
+(113997,65,72),
+(113987,65,75),
+(113985,65,76),
+(114274,66,1),
+(114273,66,2),
+(114275,66,3),
+(114276,66,5),
+(114277,66,6),
+(114271,66,9),
+(114278,66,11),
+(114279,66,13),
+(114280,66,15),
+(114281,66,16),
+(114282,66,17),
+(114283,66,18),
+(114284,66,19),
+(114285,66,20),
+(114286,66,21),
+(114287,66,22),
+(114288,66,30),
+(114289,66,31),
+(114290,66,32),
+(114291,66,33),
+(114292,66,34),
+(114293,66,35),
+(114294,66,36),
+(114295,66,37),
+(114296,66,38),
+(114297,66,39),
+(114298,66,40),
+(114299,66,41),
+(114300,66,42),
+(114301,66,43),
+(114302,66,44),
+(114303,66,45),
+(114304,66,47),
+(114305,66,48),
+(114306,66,49),
+(114307,66,50),
+(114308,66,51),
+(114309,66,52),
+(114310,66,53),
+(114311,66,54),
+(114312,66,55),
+(114313,66,56),
+(114314,66,57),
+(114315,66,58),
+(114316,66,59),
+(114317,66,60),
+(114318,66,61),
+(114319,66,64),
+(114320,66,65),
+(114270,66,66),
+(114321,66,67),
+(114322,66,69),
+(114323,66,70),
+(114324,66,71),
+(114325,66,72),
+(114326,66,73),
+(114327,66,74),
+(114328,66,75),
+(114329,66,76),
+(114330,66,101),
+(114331,66,102),
+(114272,66,103),
+(113331,67,1),
+(113339,67,2),
+(113338,67,3),
+(113328,67,5),
+(113343,67,6),
+(113342,67,11),
+(113336,67,13),
+(113335,67,18),
+(113330,67,21),
+(113332,67,33),
+(113329,67,37),
+(113340,67,53),
+(113327,67,67),
+(113337,67,70),
+(113341,67,72),
+(113334,67,74),
+(113333,67,76),
+(113439,69,1),
+(113443,69,2),
+(113442,69,3),
+(113445,69,6),
+(113444,69,11),
+(113436,69,35),
+(113437,69,47),
+(113435,69,69),
+(113441,69,70),
+(113438,69,75),
+(113440,69,76),
+(114361,70,6),
+(114360,70,11),
+(114359,70,70),
+(113412,71,1),
+(113415,71,2),
+(113414,71,3),
+(113418,71,6),
+(113417,71,11),
+(113413,71,58),
+(113416,71,70),
+(113411,71,71),
+(113421,72,1),
+(113424,72,2),
+(113423,72,3),
+(113427,72,6),
+(113426,72,11),
+(113420,72,18),
+(113425,72,70),
+(113419,72,72),
+(113422,72,76),
+(113566,73,1),
+(113571,73,2),
+(113570,73,3),
+(113561,73,5),
+(113576,73,6),
+(113575,73,11),
+(113568,73,13),
+(113572,73,18),
+(113562,73,19),
+(113565,73,21),
+(113564,73,33),
+(113573,73,53),
+(113563,73,64),
+(113569,73,70),
+(113574,73,72),
+(113560,73,73),
+(113567,73,76),
+(114362,74,74),
+(113409,75,75),
+(113410,76,76),
+(114183,100,1),
+(114179,100,2),
+(114165,100,3),
+(114163,100,5),
+(114190,100,6),
+(114182,100,9),
+(114160,100,11),
+(114223,100,13),
+(114201,100,15),
+(114202,100,16),
+(114162,100,17),
+(114219,100,18),
+(114218,100,19),
+(114203,100,20),
+(114217,100,21),
+(114224,100,22),
+(114187,100,30),
+(114188,100,31),
+(114184,100,32),
+(114196,100,33),
+(114166,100,34),
+(114170,100,35),
+(114215,100,36),
+(114193,100,37),
+(114194,100,38),
+(114161,100,39),
+(114191,100,40),
+(114192,100,41),
+(114167,100,42),
+(114168,100,43),
+(114158,100,44),
+(114159,100,45),
+(114176,100,47),
+(114178,100,48),
+(114211,100,49),
+(114213,100,50),
+(114204,100,51),
+(114205,100,52),
+(114195,100,53),
+(114199,100,54),
+(114200,100,55),
+(114180,100,56),
+(114181,100,57),
+(114208,100,58),
+(114209,100,59),
+(114212,100,60),
+(114216,100,61),
+(114206,100,62),
+(114169,100,64),
+(114207,100,65),
+(114221,100,66),
+(114164,100,67),
+(114177,100,69),
+(114225,100,70),
+(114174,100,71),
+(114175,100,72),
+(114186,100,73),
+(114226,100,74),
+(114172,100,75),
+(114173,100,76),
+(114157,100,100),
+(114171,100,101),
+(114210,100,102),
+(114197,100,103),
+(114198,100,104),
+(114189,100,105),
+(114185,100,106),
+(114214,100,107),
+(114222,100,108),
+(114220,100,109),
+(113402,101,1),
+(113406,101,2),
+(113405,101,3),
+(113408,101,6),
+(113407,101,11),
+(113399,101,13),
+(113400,101,35),
+(113404,101,70),
+(113401,101,75),
+(113403,101,76),
+(113398,101,101),
+(114039,102,1),
+(114044,102,2),
+(114043,102,3),
+(114048,102,6),
+(114047,102,11),
+(114040,102,13),
+(114041,102,35),
+(114042,102,70),
+(114045,102,75),
+(114046,102,76),
+(114038,102,102),
+(113706,103,1),
+(113707,103,2),
+(113708,103,3),
+(113709,103,5),
+(113710,103,6),
+(113765,103,9),
+(113711,103,11),
+(113712,103,13),
+(113713,103,15),
+(113714,103,16),
+(113715,103,17),
+(113716,103,18),
+(113717,103,19),
+(113718,103,20),
+(113719,103,21),
+(113720,103,22),
+(113721,103,30),
+(113722,103,31),
+(113723,103,32),
+(113724,103,33),
+(113725,103,34),
+(113726,103,35),
+(113727,103,36),
+(113728,103,37),
+(113729,103,38),
+(113730,103,39),
+(113731,103,40),
+(113732,103,41),
+(113733,103,42),
+(113734,103,43),
+(113735,103,44),
+(113736,103,45),
+(113737,103,47),
+(113738,103,48),
+(113739,103,49),
+(113740,103,50),
+(113741,103,51),
+(113742,103,52),
+(113743,103,53),
+(113744,103,54),
+(113745,103,55),
+(113746,103,56),
+(113747,103,57),
+(113748,103,58),
+(113749,103,59),
+(113750,103,60),
+(113751,103,61),
+(113752,103,64),
+(113753,103,65),
+(113754,103,67),
+(113755,103,69),
+(113756,103,70),
+(113757,103,71),
+(113758,103,72),
+(113759,103,73),
+(113760,103,74),
+(113761,103,75),
+(113762,103,76),
+(113763,103,101),
+(113764,103,102),
+(113705,103,103),
+(113774,104,1),
+(113773,104,2),
+(113772,104,3),
+(113771,104,5),
+(113775,104,6),
+(113767,104,9),
+(113776,104,11),
+(113777,104,13),
+(113778,104,15),
+(113779,104,16),
+(113780,104,17),
+(113781,104,18),
+(113782,104,19),
+(113783,104,20),
+(113784,104,21),
+(113785,104,22),
+(113786,104,30),
+(113787,104,31),
+(113788,104,32),
+(113789,104,33),
+(113790,104,34),
+(113791,104,35),
+(113792,104,36),
+(113793,104,37),
+(113794,104,38),
+(113795,104,39),
+(113796,104,40),
+(113797,104,41),
+(113798,104,42),
+(113799,104,43),
+(113800,104,44),
+(113801,104,45),
+(113802,104,47),
+(113803,104,48),
+(113804,104,49),
+(113805,104,50),
+(113806,104,51),
+(113807,104,52),
+(113808,104,53),
+(113809,104,54),
+(113810,104,55),
+(113811,104,56),
+(113812,104,57),
+(113813,104,58),
+(113814,104,59),
+(113815,104,60),
+(113816,104,61),
+(113832,104,62),
+(113817,104,64),
+(113818,104,65),
+(113768,104,66),
+(113819,104,67),
+(113820,104,69),
+(113821,104,70),
+(113822,104,71),
+(113823,104,72),
+(113824,104,73),
+(113825,104,74),
+(113826,104,75),
+(113827,104,76),
+(113769,104,100),
+(113828,104,101),
+(113829,104,102),
+(113770,104,103),
+(113766,104,104),
+(113831,104,105),
+(113830,104,106),
+(113833,104,107),
+(113835,104,108),
+(113834,104,109),
+(113645,105,105),
+(113559,106,6),
+(113558,106,11),
+(113557,106,106),
+(114119,107,1),
+(114131,107,2),
+(114130,107,3),
+(114112,107,5),
+(114136,107,6),
+(114135,107,11),
+(114116,107,13),
+(114128,107,18),
+(114118,107,21),
+(114117,107,33),
+(114120,107,35),
+(114124,107,36),
+(114134,107,44),
+(114133,107,47),
+(114121,107,49),
+(114113,107,50),
+(114127,107,53),
+(114123,107,56),
+(114114,107,57),
+(114132,107,58),
+(114122,107,59),
+(114111,107,60),
+(114129,107,70),
+(114126,107,72),
+(114125,107,75),
+(114115,107,76),
+(114110,107,107),
+(114333,108,1),
+(114334,108,2),
+(114335,108,3),
+(114338,108,6),
+(114337,108,11),
+(114336,108,70),
+(114332,108,108),
+(114264,109,1),
+(114266,109,2),
+(114265,109,3),
+(114269,109,6),
+(114268,109,11),
+(114261,109,13),
+(114262,109,18),
+(114267,109,70),
+(114263,109,76),
+(114260,109,109);
/*!40000 ALTER TABLE `roleRole` ENABLE KEYS */;
UNLOCK TABLES;
@@ -108,7 +1788,8 @@ UNLOCK TABLES;
LOCK TABLES `userPassword` WRITE;
/*!40000 ALTER TABLE `userPassword` DISABLE KEYS */;
-INSERT INTO `userPassword` VALUES (1,7,1,0,2,1);
+INSERT INTO `userPassword` VALUES
+(1,7,1,0,2,1);
/*!40000 ALTER TABLE `userPassword` ENABLE KEYS */;
UNLOCK TABLES;
@@ -118,7 +1799,8 @@ UNLOCK TABLES;
LOCK TABLES `accountConfig` WRITE;
/*!40000 ALTER TABLE `accountConfig` DISABLE KEYS */;
-INSERT INTO `accountConfig` VALUES (1,'/mnt/homes','/bin/bash',10000,5,60,5,30);
+INSERT INTO `accountConfig` VALUES
+(1,'/mnt/homes','/bin/bash',10000,5,60,5,30);
/*!40000 ALTER TABLE `accountConfig` ENABLE KEYS */;
UNLOCK TABLES;
@@ -128,7 +1810,8 @@ UNLOCK TABLES;
LOCK TABLES `mailConfig` WRITE;
/*!40000 ALTER TABLE `mailConfig` DISABLE KEYS */;
-INSERT INTO `mailConfig` VALUES (1,'verdnatura.es');
+INSERT INTO `mailConfig` VALUES
+(1,'verdnatura.es');
/*!40000 ALTER TABLE `mailConfig` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
@@ -140,13 +1823,13 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
--- Dump completed on 2022-09-16 7:03:07
+-- Dump completed on 2022-11-21 7:59:04
USE `salix`;
--- MySQL dump 10.19 Distrib 10.3.34-MariaDB, for debian-linux-gnu (x86_64)
+-- MariaDB dump 10.19 Distrib 10.9.4-MariaDB, for Linux (x86_64)
--
-- Host: db.verdnatura.es Database: salix
-- ------------------------------------------------------
--- Server version 10.7.4-MariaDB-1:10.7.4+maria~bullseye-log
+-- Server version 10.7.6-MariaDB-1:10.7.6+maria~deb11-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@@ -164,7 +1847,359 @@ USE `salix`;
LOCK TABLES `ACL` WRITE;
/*!40000 ALTER TABLE `ACL` DISABLE KEYS */;
-INSERT INTO `ACL` VALUES (1,'Account','*','*','ALLOW','ROLE','employee'),(3,'Address','*','*','ALLOW','ROLE','employee'),(5,'AgencyService','*','READ','ALLOW','ROLE','employee'),(7,'Client','*','*','ALLOW','ROLE','employee'),(9,'ClientObservation','*','*','ALLOW','ROLE','employee'),(11,'ContactChannel','*','READ','ALLOW','ROLE','trainee'),(13,'Employee','*','READ','ALLOW','ROLE','employee'),(14,'PayMethod','*','READ','ALLOW','ROLE','trainee'),(16,'FakeProduction','*','READ','ALLOW','ROLE','employee'),(17,'Warehouse','* ','READ','ALLOW','ROLE','trainee'),(18,'State','*','READ','ALLOW','ROLE','employee'),(20,'TicketState','*','*','ALLOW','ROLE','employee'),(24,'Delivery','*','READ','ALLOW','ROLE','employee'),(25,'Zone','*','READ','ALLOW','ROLE','employee'),(26,'ClientCredit','*','*','ALLOW','ROLE','employee'),(27,'ClientCreditLimit','*','READ','ALLOW','ROLE','trainee'),(30,'GreugeType','*','READ','ALLOW','ROLE','trainee'),(31,'Mandate','*','READ','ALLOW','ROLE','trainee'),(32,'MandateType','*','READ','ALLOW','ROLE','trainee'),(33,'Company','*','READ','ALLOW','ROLE','trainee'),(34,'Greuge','*','READ','ALLOW','ROLE','trainee'),(35,'AddressObservation','*','*','ALLOW','ROLE','employee'),(36,'ObservationType','*','*','ALLOW','ROLE','employee'),(37,'Greuge','*','WRITE','ALLOW','ROLE','employee'),(38,'AgencyMode','*','READ','ALLOW','ROLE','employee'),(39,'ItemTag','*','WRITE','ALLOW','ROLE','buyer'),(40,'ItemBotanical','*','WRITE','ALLOW','ROLE','buyer'),(41,'ItemBotanical','*','READ','ALLOW','ROLE','employee'),(42,'ItemPlacement','*','WRITE','ALLOW','ROLE','buyer'),(43,'ItemPlacement','*','WRITE','ALLOW','ROLE','replenisher'),(44,'ItemPlacement','*','READ','ALLOW','ROLE','employee'),(45,'ItemBarcode','*','READ','ALLOW','ROLE','employee'),(46,'ItemBarcode','*','WRITE','ALLOW','ROLE','buyer'),(47,'ItemBarcode','*','WRITE','ALLOW','ROLE','replenisher'),(51,'ItemTag','*','READ','ALLOW','ROLE','employee'),(53,'Item','*','READ','ALLOW','ROLE','employee'),(54,'Item','*','WRITE','ALLOW','ROLE','buyer'),(55,'Recovery','*','READ','ALLOW','ROLE','trainee'),(56,'Recovery','*','WRITE','ALLOW','ROLE','administrative'),(58,'CreditClassification','*','*','ALLOW','ROLE','insurance'),(60,'CreditInsurance','*','*','ALLOW','ROLE','insurance'),(61,'InvoiceOut','*','READ','ALLOW','ROLE','employee'),(62,'Ticket','*','*','ALLOW','ROLE','employee'),(63,'TicketObservation','*','*','ALLOW','ROLE','employee'),(64,'Route','*','READ','ALLOW','ROLE','employee'),(65,'Sale','*','READ','ALLOW','ROLE','employee'),(66,'TicketTracking','*','READ','ALLOW','ROLE','employee'),(68,'TicketPackaging','*','*','ALLOW','ROLE','employee'),(69,'Packaging','*','READ','ALLOW','ROLE','employee'),(70,'Packaging','*','WRITE','ALLOW','ROLE','logistic'),(71,'SaleChecked','*','READ','ALLOW','ROLE','employee'),(72,'SaleComponent','*','READ','ALLOW','ROLE','employee'),(73,'Expedition','*','READ','ALLOW','ROLE','employee'),(74,'Expedition','*','WRITE','ALLOW','ROLE','deliveryBoss'),(75,'Expedition','*','WRITE','ALLOW','ROLE','production'),(76,'AnnualAverageInvoiced','*','READ','ALLOW','ROLE','employee'),(77,'WorkerMana','*','READ','ALLOW','ROLE','employee'),(78,'TicketTracking','*','WRITE','ALLOW','ROLE','production'),(79,'TicketTracking','changeState','*','ALLOW','ROLE','employee'),(80,'Sale','deleteSales','*','ALLOW','ROLE','employee'),(81,'Sale','moveToTicket','*','ALLOW','ROLE','employee'),(82,'Sale','updateQuantity','*','ALLOW','ROLE','employee'),(83,'Sale','updatePrice','*','ALLOW','ROLE','employee'),(84,'Sale','updateDiscount','*','ALLOW','ROLE','employee'),(85,'SaleTracking','*','READ','ALLOW','ROLE','employee'),(86,'Order','*','*','ALLOW','ROLE','employee'),(87,'OrderRow','*','*','ALLOW','ROLE','employee'),(88,'ClientContact','*','*','ALLOW','ROLE','employee'),(89,'Sale','moveToNewTicket','*','ALLOW','ROLE','employee'),(90,'Sale','reserve','*','ALLOW','ROLE','employee'),(91,'TicketWeekly','*','READ','ALLOW','ROLE','employee'),(94,'Agency','landsThatDay','*','ALLOW','ROLE','employee'),(96,'ClaimEnd','*','READ','ALLOW','ROLE','employee'),(97,'ClaimEnd','*','WRITE','ALLOW','ROLE','claimManager'),(98,'ClaimBeginning','*','*','ALLOW','ROLE','employee'),(99,'ClaimDevelopment','*','READ','ALLOW','ROLE','employee'),(100,'ClaimDevelopment','*','WRITE','ALLOW','ROLE','claimManager'),(101,'Claim','*','*','ALLOW','ROLE','employee'),(102,'Claim','createFromSales','*','ALLOW','ROLE','employee'),(104,'Item','*','WRITE','ALLOW','ROLE','marketingBoss'),(105,'ItemBarcode','*','WRITE','ALLOW','ROLE','marketingBoss'),(106,'ItemBotanical','*','WRITE','ALLOW','ROLE','marketingBoss'),(108,'ItemPlacement','*','WRITE','ALLOW','ROLE','marketingBoss'),(109,'UserConfig','*','*','ALLOW','ROLE','employee'),(110,'Bank','*','READ','ALLOW','ROLE','trainee'),(111,'ClientLog','*','READ','ALLOW','ROLE','trainee'),(112,'Defaulter','*','READ','ALLOW','ROLE','employee'),(113,'ClientRisk','*','READ','ALLOW','ROLE','trainee'),(114,'Receipt','*','READ','ALLOW','ROLE','trainee'),(115,'Receipt','*','WRITE','ALLOW','ROLE','administrative'),(116,'BankEntity','*','*','ALLOW','ROLE','employee'),(117,'ClientSample','*','*','ALLOW','ROLE','employee'),(118,'WorkerTeam','*','*','ALLOW','ROLE','salesPerson'),(119,'Travel','*','READ','ALLOW','ROLE','employee'),(120,'Travel','*','WRITE','ALLOW','ROLE','buyer'),(121,'Item','regularize','*','ALLOW','ROLE','employee'),(122,'TicketRequest','*','*','ALLOW','ROLE','employee'),(123,'Worker','*','*','ALLOW','ROLE','employee'),(124,'Client','confirmTransaction','WRITE','ALLOW','ROLE','administrative'),(125,'Agency','getAgenciesWithWarehouse','*','ALLOW','ROLE','employee'),(126,'Client','activeWorkersWithRole','*','ALLOW','ROLE','employee'),(127,'TicketLog','*','READ','ALLOW','ROLE','employee'),(129,'TicketService','*','*','ALLOW','ROLE','employee'),(130,'Expedition','*','WRITE','ALLOW','ROLE','packager'),(131,'CreditInsurance','*','READ','ALLOW','ROLE','trainee'),(132,'CreditClassification','*','READ','ALLOW','ROLE','trainee'),(133,'ItemTag','*','WRITE','ALLOW','ROLE','marketingBoss'),(135,'ZoneGeo','*','READ','ALLOW','ROLE','employee'),(136,'ZoneCalendar','*','READ','ALLOW','ROLE','employee'),(137,'ZoneIncluded','*','READ','ALLOW','ROLE','employee'),(138,'LabourHoliday','*','READ','ALLOW','ROLE','employee'),(139,'LabourHolidayLegend','*','READ','ALLOW','ROLE','employee'),(140,'LabourHolidayType','*','READ','ALLOW','ROLE','employee'),(141,'Zone','*','*','ALLOW','ROLE','deliveryBoss'),(142,'ZoneCalendar','*','WRITE','ALLOW','ROLE','deliveryBoss'),(143,'ZoneIncluded','*','*','ALLOW','ROLE','deliveryBoss'),(144,'Stowaway','*','*','ALLOW','ROLE','employee'),(145,'Ticket','getPossibleStowaways','READ','ALLOW','ROLE','employee'),(147,'UserConfigView','*','*','ALLOW','ROLE','employee'),(148,'UserConfigView','*','*','ALLOW','ROLE','employee'),(149,'Sip','*','READ','ALLOW','ROLE','employee'),(150,'Sip','*','WRITE','ALLOW','ROLE','hr'),(151,'Department','*','READ','ALLOW','ROLE','employee'),(152,'Department','*','WRITE','ALLOW','ROLE','hr'),(153,'Route','*','READ','ALLOW','ROLE','employee'),(154,'Route','*','WRITE','ALLOW','ROLE','delivery'),(155,'Calendar','*','READ','ALLOW','ROLE','hr'),(156,'WorkerLabour','*','READ','ALLOW','ROLE','hr'),(157,'Calendar','absences','READ','ALLOW','ROLE','employee'),(158,'ItemTag','*','WRITE','ALLOW','ROLE','accessory'),(160,'TicketServiceType','*','READ','ALLOW','ROLE','employee'),(161,'TicketConfig','*','READ','ALLOW','ROLE','employee'),(162,'InvoiceOut','delete','WRITE','ALLOW','ROLE','invoicing'),(163,'InvoiceOut','book','WRITE','ALLOW','ROLE','invoicing'),(165,'TicketDms','*','*','ALLOW','ROLE','employee'),(167,'Worker','isSubordinate','READ','ALLOW','ROLE','employee'),(168,'Worker','mySubordinates','READ','ALLOW','ROLE','employee'),(169,'WorkerTimeControl','filter','READ','ALLOW','ROLE','employee'),(170,'WorkerTimeControl','addTime','WRITE','ALLOW','ROLE','employee'),(171,'TicketServiceType','*','WRITE','ALLOW','ROLE','administrative'),(172,'Sms','*','READ','ALLOW','ROLE','employee'),(173,'Sms','send','WRITE','ALLOW','ROLE','employee'),(174,'Agency','getLanded','READ','ALLOW','ROLE','employee'),(175,'Agency','getShipped','READ','ALLOW','ROLE','employee'),(176,'Device','*','*','ALLOW','ROLE','employee'),(177,'Device','*','*','ALLOW','ROLE','employee'),(178,'WorkerTimeControl','*','*','ALLOW','ROLE','employee'),(179,'ItemLog','*','READ','ALLOW','ROLE','employee'),(180,'RouteLog','*','READ','ALLOW','ROLE','employee'),(181,'Dms','removeFile','WRITE','ALLOW','ROLE','employee'),(182,'Dms','uploadFile','WRITE','ALLOW','ROLE','employee'),(183,'Dms','downloadFile','READ','ALLOW','ROLE','employee'),(184,'Client','uploadFile','WRITE','ALLOW','ROLE','employee'),(185,'ClientDms','removeFile','WRITE','ALLOW','ROLE','employee'),(186,'ClientDms','*','READ','ALLOW','ROLE','trainee'),(187,'Ticket','uploadFile','WRITE','ALLOW','ROLE','employee'),(190,'Route','updateVolume','WRITE','ALLOW','ROLE','deliveryBoss'),(191,'Agency','getLanded','READ','ALLOW','ROLE','employee'),(192,'Agency','getShipped','READ','ALLOW','ROLE','employee'),(194,'Postcode','*','WRITE','ALLOW','ROLE','deliveryBoss'),(195,'Ticket','addSale','WRITE','ALLOW','ROLE','employee'),(196,'Dms','updateFile','WRITE','ALLOW','ROLE','employee'),(197,'Dms','*','READ','ALLOW','ROLE','trainee'),(198,'ClaimDms','removeFile','WRITE','ALLOW','ROLE','employee'),(199,'ClaimDms','*','READ','ALLOW','ROLE','employee'),(200,'Claim','uploadFile','WRITE','ALLOW','ROLE','employee'),(201,'Sale','updateConcept','WRITE','ALLOW','ROLE','employee'),(202,'Claim','updateClaimAction','WRITE','ALLOW','ROLE','claimManager'),(203,'UserPhone','*','*','ALLOW','ROLE','employee'),(204,'WorkerDms','removeFile','WRITE','ALLOW','ROLE','hr'),(205,'WorkerDms','*','READ','ALLOW','ROLE','hr'),(206,'Chat','*','*','ALLOW','ROLE','employee'),(207,'Chat','sendMessage','*','ALLOW','ROLE','employee'),(208,'Sale','recalculatePrice','WRITE','ALLOW','ROLE','employee'),(209,'Ticket','recalculateComponents','WRITE','ALLOW','ROLE','employee'),(211,'TravelLog','*','READ','ALLOW','ROLE','buyer'),(212,'Thermograph','*','*','ALLOW','ROLE','buyer'),(213,'TravelThermograph','*','WRITE','ALLOW','ROLE','buyer'),(214,'Entry','*','*','ALLOW','ROLE','buyer'),(215,'TicketWeekly','*','WRITE','ALLOW','ROLE','buyer'),(216,'TravelThermograph','*','READ','ALLOW','ROLE','employee'),(218,'Intrastat','*','*','ALLOW','ROLE','buyer'),(219,'Account','acl','READ','ALLOW','ROLE','account'),(220,'Account','getCurrentUserData','READ','ALLOW','ROLE','account'),(221,'UserConfig','getUserConfig','READ','ALLOW','ROLE','account'),(222,'Client','*','READ','ALLOW','ROLE','trainee'),(226,'ClientObservation','*','READ','ALLOW','ROLE','trainee'),(227,'Address','*','READ','ALLOW','ROLE','trainee'),(228,'AddressObservation','*','READ','ALLOW','ROLE','trainee'),(230,'ClientCredit','*','READ','ALLOW','ROLE','trainee'),(231,'ClientContact','*','READ','ALLOW','ROLE','trainee'),(232,'ClientSample','*','READ','ALLOW','ROLE','trainee'),(233,'EntryLog','*','READ','ALLOW','ROLE','buyer'),(234,'WorkerLog','*','READ','ALLOW','ROLE','salesAssistant'),(235,'CustomsAgent','*','*','ALLOW','ROLE','employee'),(236,'Buy','*','*','ALLOW','ROLE','buyer'),(237,'WorkerDms','filter','*','ALLOW','ROLE','employee'),(238,'Town','*','WRITE','ALLOW','ROLE','deliveryBoss'),(239,'Province','*','WRITE','ALLOW','ROLE','deliveryBoss'),(240,'supplier','*','WRITE','ALLOW','ROLE','administrative'),(241,'SupplierContact','*','WRITE','ALLOW','ROLE','administrative'),(242,'supplier','*','WRITE','ALLOW','ROLE','administrative'),(244,'supplier','*','WRITE','ALLOW','ROLE','administrative'),(246,'Account','changePassword','*','ALLOW','ROLE','account'),(247,'UserAccount','exists','*','ALLOW','ROLE','account'),(248,'RoleMapping','*','READ','ALLOW','ROLE','account'),(249,'UserPassword','*','READ','ALLOW','ROLE','account'),(250,'Town','*','WRITE','ALLOW','ROLE','deliveryBoss'),(251,'Province','*','WRITE','ALLOW','ROLE','deliveryBoss'),(252,'Supplier','*','READ','ALLOW','ROLE','employee'),(253,'Supplier','*','WRITE','ALLOW','ROLE','administrative'),(254,'SupplierLog','*','READ','ALLOW','ROLE','employee'),(256,'Image','*','WRITE','ALLOW','ROLE','employee'),(257,'FixedPrice','*','*','ALLOW','ROLE','buyer'),(258,'PayDem','*','READ','ALLOW','ROLE','employee'),(259,'Client','createReceipt','*','ALLOW','ROLE','salesAssistant'),(260,'PrintServerQueue','*','WRITE','ALLOW','ROLE','employee'),(261,'SupplierAccount','*','*','ALLOW','ROLE','administrative'),(262,'Entry','*','*','ALLOW','ROLE','administrative'),(263,'InvoiceIn','*','*','ALLOW','ROLE','administrative'),(264,'StarredModule','*','*','ALLOW','ROLE','employee'),(265,'ItemBotanical','*','WRITE','ALLOW','ROLE','logisticBoss'),(266,'ZoneLog','*','READ','ALLOW','ROLE','employee'),(267,'Genus','*','WRITE','ALLOW','ROLE','logisticBoss'),(268,'Specie','*','WRITE','ALLOW','ROLE','logisticBoss'),(269,'InvoiceOut','createPdf','WRITE','ALLOW','ROLE','employee'),(270,'SupplierAddress','*','*','ALLOW','ROLE','employee'),(271,'SalesMonitor','*','*','ALLOW','ROLE','employee'),(272,'InvoiceInLog','*','*','ALLOW','ROLE','employee'),(273,'InvoiceInTax','*','*','ALLOW','ROLE','administrative'),(274,'InvoiceInLog','*','READ','ALLOW','ROLE','administrative'),(275,'InvoiceOut','createManualInvoice','WRITE','ALLOW','ROLE','invoicing'),(276,'InvoiceOut','globalInvoicing','WRITE','ALLOW','ROLE','invoicing'),(277,'Role','*','*','ALLOW','ROLE','it'),(278,'RoleInherit','*','WRITE','ALLOW','ROLE','grant'),(279,'MailAlias','*','*','ALLOW','ROLE','marketing'),(282,'UserAccount','*','WRITE','ALLOW','ROLE','it'),(283,'EntryObservation','*','*','ALLOW','ROLE','buyer'),(284,'LdapConfig','*','*','ALLOW','ROLE','sysadmin'),(285,'SambaConfig','*','*','ALLOW','ROLE','sysadmin'),(286,'ACL','*','*','ALLOW','ROLE','developer'),(287,'AccessToken','*','*','ALLOW','ROLE','developer'),(288,'MailAliasAccount','*','*','ALLOW','ROLE','marketing'),(289,'MailAliasAccount','*','*','ALLOW','ROLE','hr'),(290,'MailAlias','*','*','ALLOW','ROLE','hr'),(291,'MailForward','*','*','ALLOW','ROLE','marketing'),(292,'MailForward','*','*','ALLOW','ROLE','hr'),(293,'RoleInherit','*','*','ALLOW','ROLE','it'),(294,'RoleRole','*','*','ALLOW','ROLE','it'),(295,'AccountConfig','*','*','ALLOW','ROLE','sysadmin'),(296,'Collection','*','READ','ALLOW','ROLE','employee'),(297,'Sale','refund','WRITE','ALLOW','ROLE','invoicing'),(298,'InvoiceInDueDay','*','*','ALLOW','ROLE','administrative'),(299,'Collection','setSaleQuantity','*','ALLOW','ROLE','employee'),(300,'Docuware','*','*','ALLOW','ROLE','employee'),(301,'Agency','*','READ','ALLOW','ROLE','employee'),(302,'AgencyTerm','*','*','ALLOW','ROLE','administrative'),(303,'ClaimLog','*','READ','ALLOW','ROLE','claimManager'),(304,'Edi','updateData','WRITE','ALLOW','ROLE','employee'),(305,'EducationLevel','*','*','ALLOW','ROLE','employee'),(306,'InvoiceInIntrastat','*','*','ALLOW','ROLE','employee'),(307,'SupplierAgencyTerm','*','*','ALLOW','ROLE','administrative'),(308,'InvoiceInIntrastat','*','*','ALLOW','ROLE','employee'),(309,'Zone','getZoneClosing','*','ALLOW','ROLE','employee'),(310,'ExpeditionState','*','READ','ALLOW','ROLE','employee'),(311,'Expense','*','READ','ALLOW','ROLE','employee'),(312,'Expense','*','WRITE','ALLOW','ROLE','administrative'),(314,'SupplierActivity','*','READ','ALLOW','ROLE','employee'),(315,'SupplierActivity','*','WRITE','ALLOW','ROLE','administrative'),(316,'Dms','deleteTrashFiles','WRITE','ALLOW','ROLE','employee'),(317,'ClientUnpaid','*','*','ALLOW','ROLE','administrative'),(318,'MdbVersion','*','*','ALLOW','ROLE','developer'),(319,'ItemType','*','READ','ALLOW','ROLE','employee'),(320,'ItemType','*','WRITE','ALLOW','ROLE','buyer'),(321,'InvoiceOut','refund','WRITE','ALLOW','ROLE','invoicing'),(322,'InvoiceOut','refund','WRITE','ALLOW','ROLE','salesAssistant'),(323,'InvoiceOut','refund','WRITE','ALLOW','ROLE','claimManager'),(324,'Ticket','refund','WRITE','ALLOW','ROLE','invoicing'),(325,'Ticket','refund','WRITE','ALLOW','ROLE','salesAssistant'),(326,'Ticket','refund','WRITE','ALLOW','ROLE','claimManager'),(327,'Sale','refund','WRITE','ALLOW','ROLE','salesAssistant'),(328,'Sale','refund','WRITE','ALLOW','ROLE','claimManager'),(329,'TicketRefund','*','WRITE','ALLOW','ROLE','invoicing'),(330,'ClaimObservation','*','WRITE','ALLOW','ROLE','salesPerson'),(331,'ClaimObservation','*','READ','ALLOW','ROLE','salesPerson'),(332,'Client','setPassword','WRITE','ALLOW','ROLE','salesPerson'),(333,'Client','updateUser','WRITE','ALLOW','ROLE','salesPerson'),(334,'ShelvingLog','*','READ','ALLOW','ROLE','employee'),(335,'ZoneExclusionGeo','*','READ','ALLOW','ROLE','employee'),(336,'ZoneExclusionGeo','*','WRITE','ALLOW','ROLE','deliveryBoss'),(337,'Parking','*','*','ALLOW','ROLE','employee'),(338,'Shelving','*','*','ALLOW','ROLE','employee');
+INSERT INTO `ACL` VALUES
+(1,'Account','*','*','ALLOW','ROLE','employee'),
+(3,'Address','*','*','ALLOW','ROLE','employee'),
+(5,'AgencyService','*','READ','ALLOW','ROLE','employee'),
+(7,'Client','*','*','ALLOW','ROLE','employee'),
+(9,'ClientObservation','*','*','ALLOW','ROLE','employee'),
+(11,'ContactChannel','*','READ','ALLOW','ROLE','trainee'),
+(13,'Employee','*','READ','ALLOW','ROLE','employee'),
+(14,'PayMethod','*','READ','ALLOW','ROLE','trainee'),
+(16,'FakeProduction','*','READ','ALLOW','ROLE','employee'),
+(17,'Warehouse','* ','READ','ALLOW','ROLE','trainee'),
+(18,'State','*','READ','ALLOW','ROLE','employee'),
+(20,'TicketState','*','*','ALLOW','ROLE','employee'),
+(24,'Delivery','*','READ','ALLOW','ROLE','employee'),
+(25,'Zone','*','READ','ALLOW','ROLE','employee'),
+(26,'ClientCredit','*','*','ALLOW','ROLE','employee'),
+(27,'ClientCreditLimit','*','READ','ALLOW','ROLE','trainee'),
+(30,'GreugeType','*','READ','ALLOW','ROLE','trainee'),
+(31,'Mandate','*','READ','ALLOW','ROLE','trainee'),
+(32,'MandateType','*','READ','ALLOW','ROLE','trainee'),
+(33,'Company','*','READ','ALLOW','ROLE','trainee'),
+(34,'Greuge','*','READ','ALLOW','ROLE','trainee'),
+(35,'AddressObservation','*','*','ALLOW','ROLE','employee'),
+(36,'ObservationType','*','*','ALLOW','ROLE','employee'),
+(37,'Greuge','*','WRITE','ALLOW','ROLE','employee'),
+(38,'AgencyMode','*','READ','ALLOW','ROLE','employee'),
+(39,'ItemTag','*','WRITE','ALLOW','ROLE','buyer'),
+(40,'ItemBotanical','*','WRITE','ALLOW','ROLE','buyer'),
+(41,'ItemBotanical','*','READ','ALLOW','ROLE','employee'),
+(42,'ItemPlacement','*','WRITE','ALLOW','ROLE','buyer'),
+(43,'ItemPlacement','*','WRITE','ALLOW','ROLE','replenisher'),
+(44,'ItemPlacement','*','READ','ALLOW','ROLE','employee'),
+(45,'ItemBarcode','*','READ','ALLOW','ROLE','employee'),
+(46,'ItemBarcode','*','WRITE','ALLOW','ROLE','buyer'),
+(47,'ItemBarcode','*','WRITE','ALLOW','ROLE','replenisher'),
+(51,'ItemTag','*','READ','ALLOW','ROLE','employee'),
+(53,'Item','*','READ','ALLOW','ROLE','employee'),
+(54,'Item','*','WRITE','ALLOW','ROLE','buyer'),
+(55,'Recovery','*','READ','ALLOW','ROLE','trainee'),
+(56,'Recovery','*','WRITE','ALLOW','ROLE','administrative'),
+(58,'CreditClassification','*','*','ALLOW','ROLE','insurance'),
+(60,'CreditInsurance','*','*','ALLOW','ROLE','insurance'),
+(61,'InvoiceOut','*','READ','ALLOW','ROLE','employee'),
+(62,'Ticket','*','*','ALLOW','ROLE','employee'),
+(63,'TicketObservation','*','*','ALLOW','ROLE','employee'),
+(64,'Route','*','READ','ALLOW','ROLE','employee'),
+(65,'Sale','*','READ','ALLOW','ROLE','employee'),
+(66,'TicketTracking','*','READ','ALLOW','ROLE','employee'),
+(68,'TicketPackaging','*','*','ALLOW','ROLE','employee'),
+(69,'Packaging','*','READ','ALLOW','ROLE','employee'),
+(70,'Packaging','*','WRITE','ALLOW','ROLE','logistic'),
+(71,'SaleChecked','*','READ','ALLOW','ROLE','employee'),
+(72,'SaleComponent','*','READ','ALLOW','ROLE','employee'),
+(73,'Expedition','*','READ','ALLOW','ROLE','employee'),
+(74,'Expedition','*','WRITE','ALLOW','ROLE','deliveryBoss'),
+(75,'Expedition','*','WRITE','ALLOW','ROLE','production'),
+(76,'AnnualAverageInvoiced','*','READ','ALLOW','ROLE','employee'),
+(77,'WorkerMana','*','READ','ALLOW','ROLE','employee'),
+(78,'TicketTracking','*','WRITE','ALLOW','ROLE','production'),
+(79,'TicketTracking','changeState','*','ALLOW','ROLE','employee'),
+(80,'Sale','deleteSales','*','ALLOW','ROLE','employee'),
+(81,'Sale','moveToTicket','*','ALLOW','ROLE','employee'),
+(82,'Sale','updateQuantity','*','ALLOW','ROLE','employee'),
+(83,'Sale','updatePrice','*','ALLOW','ROLE','employee'),
+(84,'Sale','updateDiscount','*','ALLOW','ROLE','employee'),
+(85,'SaleTracking','*','READ','ALLOW','ROLE','employee'),
+(86,'Order','*','*','ALLOW','ROLE','employee'),
+(87,'OrderRow','*','*','ALLOW','ROLE','employee'),
+(88,'ClientContact','*','*','ALLOW','ROLE','employee'),
+(89,'Sale','moveToNewTicket','*','ALLOW','ROLE','employee'),
+(90,'Sale','reserve','*','ALLOW','ROLE','employee'),
+(91,'TicketWeekly','*','READ','ALLOW','ROLE','employee'),
+(94,'Agency','landsThatDay','*','ALLOW','ROLE','employee'),
+(96,'ClaimEnd','*','READ','ALLOW','ROLE','employee'),
+(97,'ClaimEnd','*','WRITE','ALLOW','ROLE','claimManager'),
+(98,'ClaimBeginning','*','*','ALLOW','ROLE','employee'),
+(99,'ClaimDevelopment','*','READ','ALLOW','ROLE','employee'),
+(100,'ClaimDevelopment','*','WRITE','ALLOW','ROLE','claimManager'),
+(101,'Claim','*','*','ALLOW','ROLE','employee'),
+(102,'Claim','createFromSales','*','ALLOW','ROLE','employee'),
+(104,'Item','*','WRITE','ALLOW','ROLE','marketingBoss'),
+(105,'ItemBarcode','*','WRITE','ALLOW','ROLE','marketingBoss'),
+(106,'ItemBotanical','*','WRITE','ALLOW','ROLE','marketingBoss'),
+(108,'ItemPlacement','*','WRITE','ALLOW','ROLE','marketingBoss'),
+(109,'UserConfig','*','*','ALLOW','ROLE','employee'),
+(110,'Bank','*','READ','ALLOW','ROLE','trainee'),
+(111,'ClientLog','*','READ','ALLOW','ROLE','trainee'),
+(112,'Defaulter','*','READ','ALLOW','ROLE','employee'),
+(113,'ClientRisk','*','READ','ALLOW','ROLE','trainee'),
+(114,'Receipt','*','READ','ALLOW','ROLE','trainee'),
+(115,'Receipt','*','WRITE','ALLOW','ROLE','administrative'),
+(116,'BankEntity','*','*','ALLOW','ROLE','employee'),
+(117,'ClientSample','*','*','ALLOW','ROLE','employee'),
+(118,'WorkerTeam','*','*','ALLOW','ROLE','salesPerson'),
+(119,'Travel','*','READ','ALLOW','ROLE','employee'),
+(120,'Travel','*','WRITE','ALLOW','ROLE','buyer'),
+(121,'Item','regularize','*','ALLOW','ROLE','employee'),
+(122,'TicketRequest','*','*','ALLOW','ROLE','employee'),
+(123,'Worker','*','*','ALLOW','ROLE','employee'),
+(124,'Client','confirmTransaction','WRITE','ALLOW','ROLE','administrative'),
+(125,'Agency','getAgenciesWithWarehouse','*','ALLOW','ROLE','employee'),
+(126,'Client','activeWorkersWithRole','*','ALLOW','ROLE','employee'),
+(127,'TicketLog','*','READ','ALLOW','ROLE','employee'),
+(129,'TicketService','*','*','ALLOW','ROLE','employee'),
+(130,'Expedition','*','WRITE','ALLOW','ROLE','packager'),
+(131,'CreditInsurance','*','READ','ALLOW','ROLE','trainee'),
+(132,'CreditClassification','*','READ','ALLOW','ROLE','trainee'),
+(133,'ItemTag','*','WRITE','ALLOW','ROLE','marketingBoss'),
+(135,'ZoneGeo','*','READ','ALLOW','ROLE','employee'),
+(136,'ZoneCalendar','*','READ','ALLOW','ROLE','employee'),
+(137,'ZoneIncluded','*','READ','ALLOW','ROLE','employee'),
+(138,'LabourHoliday','*','READ','ALLOW','ROLE','employee'),
+(139,'LabourHolidayLegend','*','READ','ALLOW','ROLE','employee'),
+(140,'LabourHolidayType','*','READ','ALLOW','ROLE','employee'),
+(141,'Zone','*','*','ALLOW','ROLE','deliveryBoss'),
+(142,'ZoneCalendar','*','WRITE','ALLOW','ROLE','deliveryBoss'),
+(143,'ZoneIncluded','*','*','ALLOW','ROLE','deliveryBoss'),
+(144,'Stowaway','*','*','ALLOW','ROLE','employee'),
+(145,'Ticket','getPossibleStowaways','READ','ALLOW','ROLE','employee'),
+(147,'UserConfigView','*','*','ALLOW','ROLE','employee'),
+(148,'UserConfigView','*','*','ALLOW','ROLE','employee'),
+(149,'Sip','*','READ','ALLOW','ROLE','employee'),
+(150,'Sip','*','WRITE','ALLOW','ROLE','hr'),
+(151,'Department','*','READ','ALLOW','ROLE','employee'),
+(152,'Department','*','WRITE','ALLOW','ROLE','hr'),
+(153,'Route','*','READ','ALLOW','ROLE','employee'),
+(154,'Route','*','WRITE','ALLOW','ROLE','delivery'),
+(155,'Calendar','*','READ','ALLOW','ROLE','hr'),
+(156,'WorkerLabour','*','READ','ALLOW','ROLE','hr'),
+(157,'Calendar','absences','READ','ALLOW','ROLE','employee'),
+(158,'ItemTag','*','WRITE','ALLOW','ROLE','accessory'),
+(160,'TicketServiceType','*','READ','ALLOW','ROLE','employee'),
+(161,'TicketConfig','*','READ','ALLOW','ROLE','employee'),
+(162,'InvoiceOut','delete','WRITE','ALLOW','ROLE','invoicing'),
+(163,'InvoiceOut','book','WRITE','ALLOW','ROLE','invoicing'),
+(165,'TicketDms','*','*','ALLOW','ROLE','employee'),
+(167,'Worker','isSubordinate','READ','ALLOW','ROLE','employee'),
+(168,'Worker','mySubordinates','READ','ALLOW','ROLE','employee'),
+(169,'WorkerTimeControl','filter','READ','ALLOW','ROLE','employee'),
+(170,'WorkerTimeControl','addTime','WRITE','ALLOW','ROLE','employee'),
+(171,'TicketServiceType','*','WRITE','ALLOW','ROLE','administrative'),
+(172,'Sms','*','READ','ALLOW','ROLE','employee'),
+(173,'Sms','send','WRITE','ALLOW','ROLE','employee'),
+(174,'Agency','getLanded','READ','ALLOW','ROLE','employee'),
+(175,'Agency','getShipped','READ','ALLOW','ROLE','employee'),
+(176,'Device','*','*','ALLOW','ROLE','employee'),
+(177,'Device','*','*','ALLOW','ROLE','employee'),
+(178,'WorkerTimeControl','*','*','ALLOW','ROLE','employee'),
+(179,'ItemLog','*','READ','ALLOW','ROLE','employee'),
+(180,'RouteLog','*','READ','ALLOW','ROLE','employee'),
+(181,'Dms','removeFile','WRITE','ALLOW','ROLE','employee'),
+(182,'Dms','uploadFile','WRITE','ALLOW','ROLE','employee'),
+(183,'Dms','downloadFile','READ','ALLOW','ROLE','employee'),
+(184,'Client','uploadFile','WRITE','ALLOW','ROLE','employee'),
+(185,'ClientDms','removeFile','WRITE','ALLOW','ROLE','employee'),
+(186,'ClientDms','*','READ','ALLOW','ROLE','trainee'),
+(187,'Ticket','uploadFile','WRITE','ALLOW','ROLE','employee'),
+(190,'Route','updateVolume','WRITE','ALLOW','ROLE','deliveryBoss'),
+(191,'Agency','getLanded','READ','ALLOW','ROLE','employee'),
+(192,'Agency','getShipped','READ','ALLOW','ROLE','employee'),
+(194,'Postcode','*','WRITE','ALLOW','ROLE','deliveryBoss'),
+(195,'Ticket','addSale','WRITE','ALLOW','ROLE','employee'),
+(196,'Dms','updateFile','WRITE','ALLOW','ROLE','employee'),
+(197,'Dms','*','READ','ALLOW','ROLE','trainee'),
+(198,'ClaimDms','removeFile','WRITE','ALLOW','ROLE','employee'),
+(199,'ClaimDms','*','READ','ALLOW','ROLE','employee'),
+(200,'Claim','uploadFile','WRITE','ALLOW','ROLE','employee'),
+(201,'Sale','updateConcept','WRITE','ALLOW','ROLE','employee'),
+(202,'Claim','updateClaimAction','WRITE','ALLOW','ROLE','claimManager'),
+(203,'UserPhone','*','*','ALLOW','ROLE','employee'),
+(204,'WorkerDms','removeFile','WRITE','ALLOW','ROLE','hr'),
+(205,'WorkerDms','*','READ','ALLOW','ROLE','hr'),
+(206,'Chat','*','*','ALLOW','ROLE','employee'),
+(207,'Chat','sendMessage','*','ALLOW','ROLE','employee'),
+(208,'Sale','recalculatePrice','WRITE','ALLOW','ROLE','employee'),
+(209,'Ticket','recalculateComponents','WRITE','ALLOW','ROLE','employee'),
+(211,'TravelLog','*','READ','ALLOW','ROLE','buyer'),
+(212,'Thermograph','*','*','ALLOW','ROLE','buyer'),
+(213,'TravelThermograph','*','WRITE','ALLOW','ROLE','buyer'),
+(214,'Entry','*','*','ALLOW','ROLE','buyer'),
+(215,'TicketWeekly','*','WRITE','ALLOW','ROLE','buyer'),
+(216,'TravelThermograph','*','READ','ALLOW','ROLE','employee'),
+(218,'Intrastat','*','*','ALLOW','ROLE','buyer'),
+(219,'Account','acl','READ','ALLOW','ROLE','account'),
+(220,'Account','getCurrentUserData','READ','ALLOW','ROLE','account'),
+(221,'UserConfig','getUserConfig','READ','ALLOW','ROLE','account'),
+(222,'Client','*','READ','ALLOW','ROLE','trainee'),
+(226,'ClientObservation','*','READ','ALLOW','ROLE','trainee'),
+(227,'Address','*','READ','ALLOW','ROLE','trainee'),
+(228,'AddressObservation','*','READ','ALLOW','ROLE','trainee'),
+(230,'ClientCredit','*','READ','ALLOW','ROLE','trainee'),
+(231,'ClientContact','*','READ','ALLOW','ROLE','trainee'),
+(232,'ClientSample','*','READ','ALLOW','ROLE','trainee'),
+(233,'EntryLog','*','READ','ALLOW','ROLE','buyer'),
+(234,'WorkerLog','*','READ','ALLOW','ROLE','salesAssistant'),
+(235,'CustomsAgent','*','*','ALLOW','ROLE','employee'),
+(236,'Buy','*','*','ALLOW','ROLE','buyer'),
+(237,'WorkerDms','filter','*','ALLOW','ROLE','employee'),
+(238,'Town','*','WRITE','ALLOW','ROLE','deliveryBoss'),
+(239,'Province','*','WRITE','ALLOW','ROLE','deliveryBoss'),
+(240,'supplier','*','WRITE','ALLOW','ROLE','administrative'),
+(241,'SupplierContact','*','WRITE','ALLOW','ROLE','administrative'),
+(242,'supplier','*','WRITE','ALLOW','ROLE','administrative'),
+(244,'supplier','*','WRITE','ALLOW','ROLE','administrative'),
+(246,'Account','changePassword','*','ALLOW','ROLE','account'),
+(247,'UserAccount','exists','*','ALLOW','ROLE','account'),
+(248,'RoleMapping','*','READ','ALLOW','ROLE','account'),
+(249,'UserPassword','*','READ','ALLOW','ROLE','account'),
+(250,'Town','*','WRITE','ALLOW','ROLE','deliveryBoss'),
+(251,'Province','*','WRITE','ALLOW','ROLE','deliveryBoss'),
+(252,'Supplier','*','READ','ALLOW','ROLE','employee'),
+(253,'Supplier','*','WRITE','ALLOW','ROLE','administrative'),
+(254,'SupplierLog','*','READ','ALLOW','ROLE','employee'),
+(256,'Image','*','WRITE','ALLOW','ROLE','employee'),
+(257,'FixedPrice','*','*','ALLOW','ROLE','buyer'),
+(258,'PayDem','*','READ','ALLOW','ROLE','employee'),
+(259,'Client','createReceipt','*','ALLOW','ROLE','salesAssistant'),
+(260,'PrintServerQueue','*','WRITE','ALLOW','ROLE','employee'),
+(261,'SupplierAccount','*','*','ALLOW','ROLE','administrative'),
+(262,'Entry','*','*','ALLOW','ROLE','administrative'),
+(263,'InvoiceIn','*','*','ALLOW','ROLE','administrative'),
+(264,'StarredModule','*','*','ALLOW','ROLE','employee'),
+(265,'ItemBotanical','*','WRITE','ALLOW','ROLE','logisticBoss'),
+(266,'ZoneLog','*','READ','ALLOW','ROLE','employee'),
+(267,'Genus','*','WRITE','ALLOW','ROLE','logisticBoss'),
+(268,'Specie','*','WRITE','ALLOW','ROLE','logisticBoss'),
+(269,'InvoiceOut','createPdf','WRITE','ALLOW','ROLE','employee'),
+(270,'SupplierAddress','*','*','ALLOW','ROLE','employee'),
+(271,'SalesMonitor','*','*','ALLOW','ROLE','employee'),
+(272,'InvoiceInLog','*','*','ALLOW','ROLE','employee'),
+(273,'InvoiceInTax','*','*','ALLOW','ROLE','administrative'),
+(274,'InvoiceInLog','*','READ','ALLOW','ROLE','administrative'),
+(275,'InvoiceOut','createManualInvoice','WRITE','ALLOW','ROLE','invoicing'),
+(276,'InvoiceOut','globalInvoicing','WRITE','ALLOW','ROLE','invoicing'),
+(277,'Role','*','*','ALLOW','ROLE','it'),
+(278,'RoleInherit','*','WRITE','ALLOW','ROLE','grant'),
+(279,'MailAlias','*','*','ALLOW','ROLE','marketing'),
+(282,'UserAccount','*','WRITE','ALLOW','ROLE','it'),
+(283,'EntryObservation','*','*','ALLOW','ROLE','buyer'),
+(284,'LdapConfig','*','*','ALLOW','ROLE','sysadmin'),
+(285,'SambaConfig','*','*','ALLOW','ROLE','sysadmin'),
+(286,'ACL','*','*','ALLOW','ROLE','developer'),
+(287,'AccessToken','*','*','ALLOW','ROLE','developer'),
+(288,'MailAliasAccount','*','*','ALLOW','ROLE','marketing'),
+(289,'MailAliasAccount','*','*','ALLOW','ROLE','hr'),
+(290,'MailAlias','*','*','ALLOW','ROLE','hr'),
+(291,'MailForward','*','*','ALLOW','ROLE','marketing'),
+(292,'MailForward','*','*','ALLOW','ROLE','hr'),
+(293,'RoleInherit','*','*','ALLOW','ROLE','it'),
+(294,'RoleRole','*','*','ALLOW','ROLE','it'),
+(295,'AccountConfig','*','*','ALLOW','ROLE','sysadmin'),
+(296,'Collection','*','READ','ALLOW','ROLE','employee'),
+(297,'Sale','refund','WRITE','ALLOW','ROLE','invoicing'),
+(298,'InvoiceInDueDay','*','*','ALLOW','ROLE','administrative'),
+(299,'Collection','setSaleQuantity','*','ALLOW','ROLE','employee'),
+(300,'Docuware','*','*','ALLOW','ROLE','employee'),
+(301,'Agency','*','READ','ALLOW','ROLE','employee'),
+(302,'AgencyTerm','*','*','ALLOW','ROLE','administrative'),
+(303,'ClaimLog','*','READ','ALLOW','ROLE','claimManager'),
+(304,'Edi','updateData','WRITE','ALLOW','ROLE','employee'),
+(305,'EducationLevel','*','*','ALLOW','ROLE','employee'),
+(306,'InvoiceInIntrastat','*','*','ALLOW','ROLE','employee'),
+(307,'SupplierAgencyTerm','*','*','ALLOW','ROLE','administrative'),
+(308,'InvoiceInIntrastat','*','*','ALLOW','ROLE','employee'),
+(309,'Zone','getZoneClosing','*','ALLOW','ROLE','employee'),
+(310,'ExpeditionState','*','READ','ALLOW','ROLE','employee'),
+(311,'Expense','*','READ','ALLOW','ROLE','employee'),
+(312,'Expense','*','WRITE','ALLOW','ROLE','administrative'),
+(314,'SupplierActivity','*','READ','ALLOW','ROLE','employee'),
+(315,'SupplierActivity','*','WRITE','ALLOW','ROLE','administrative'),
+(316,'Dms','deleteTrashFiles','WRITE','ALLOW','ROLE','employee'),
+(317,'ClientUnpaid','*','*','ALLOW','ROLE','administrative'),
+(318,'MdbVersion','*','*','ALLOW','ROLE','developer'),
+(319,'ItemType','*','READ','ALLOW','ROLE','employee'),
+(320,'ItemType','*','WRITE','ALLOW','ROLE','buyer'),
+(321,'InvoiceOut','refund','WRITE','ALLOW','ROLE','invoicing'),
+(322,'InvoiceOut','refund','WRITE','ALLOW','ROLE','salesAssistant'),
+(323,'InvoiceOut','refund','WRITE','ALLOW','ROLE','claimManager'),
+(324,'Ticket','refund','WRITE','ALLOW','ROLE','invoicing'),
+(325,'Ticket','refund','WRITE','ALLOW','ROLE','salesAssistant'),
+(326,'Ticket','refund','WRITE','ALLOW','ROLE','claimManager'),
+(327,'Sale','refund','WRITE','ALLOW','ROLE','salesAssistant'),
+(328,'Sale','refund','WRITE','ALLOW','ROLE','claimManager'),
+(329,'TicketRefund','*','WRITE','ALLOW','ROLE','invoicing'),
+(330,'ClaimObservation','*','WRITE','ALLOW','ROLE','salesPerson'),
+(331,'ClaimObservation','*','READ','ALLOW','ROLE','salesPerson'),
+(332,'Client','setPassword','WRITE','ALLOW','ROLE','salesPerson'),
+(333,'Client','updateUser','WRITE','ALLOW','ROLE','salesPerson'),
+(334,'ShelvingLog','*','READ','ALLOW','ROLE','employee'),
+(335,'ZoneExclusionGeo','*','READ','ALLOW','ROLE','employee'),
+(336,'ZoneExclusionGeo','*','WRITE','ALLOW','ROLE','deliveryBoss'),
+(337,'Parking','*','*','ALLOW','ROLE','employee'),
+(338,'Shelving','*','*','ALLOW','ROLE','employee'),
+(339,'OsTicket','*','*','ALLOW','ROLE','employee'),
+(340,'OsTicketConfig','*','*','ALLOW','ROLE','it'),
+(341,'ClientConsumptionQueue','*','WRITE','ALLOW','ROLE','employee'),
+(342,'Ticket','deliveryNotePdf','READ','ALLOW','ROLE','employee'),
+(343,'Ticket','deliveryNoteEmail','WRITE','ALLOW','ROLE','employee'),
+(344,'Ticket','deliveryNoteCsvPdf','READ','ALLOW','ROLE','employee'),
+(345,'Ticket','deliveryNoteCsvEmail','WRITE','ALLOW','ROLE','employee'),
+(346,'Client','campaignMetricsPdf','READ','ALLOW','ROLE','employee'),
+(347,'Client','campaignMetricsEmail','WRITE','ALLOW','ROLE','employee'),
+(348,'Client','clientWelcomeHtml','READ','ALLOW','ROLE','employee'),
+(349,'Client','clientWelcomeEmail','WRITE','ALLOW','ROLE','employee'),
+(350,'Client','creditRequestPdf','READ','ALLOW','ROLE','employee'),
+(351,'Client','creditRequestHtml','READ','ALLOW','ROLE','employee'),
+(352,'Client','creditRequestEmail','WRITE','ALLOW','ROLE','employee'),
+(353,'Client','printerSetupHtml','READ','ALLOW','ROLE','employee'),
+(354,'Client','printerSetupEmail','WRITE','ALLOW','ROLE','employee'),
+(355,'Client','sepaCoreEmail','WRITE','ALLOW','ROLE','employee'),
+(356,'Client','letterDebtorPdf','READ','ALLOW','ROLE','employee'),
+(357,'Client','letterDebtorStHtml','READ','ALLOW','ROLE','employee'),
+(358,'Client','letterDebtorStEmail','WRITE','ALLOW','ROLE','employee'),
+(359,'Client','letterDebtorNdHtml','READ','ALLOW','ROLE','employee'),
+(360,'Client','letterDebtorNdEmail','WRITE','ALLOW','ROLE','employee'),
+(361,'Client','clientDebtStatementPdf','READ','ALLOW','ROLE','employee'),
+(362,'Client','clientDebtStatementHtml','READ','ALLOW','ROLE','employee'),
+(363,'Client','clientDebtStatementEmail','WRITE','ALLOW','ROLE','employee'),
+(364,'Client','incotermsAuthorizationPdf','READ','ALLOW','ROLE','employee'),
+(365,'Client','incotermsAuthorizationHtml','READ','ALLOW','ROLE','employee'),
+(366,'Client','incotermsAuthorizationEmail','WRITE','ALLOW','ROLE','employee'),
+(367,'Client','consumptionSendQueued','WRITE','ALLOW','ROLE','system'),
+(368,'InvoiceOut','invoiceEmail','WRITE','ALLOW','ROLE','employee'),
+(369,'InvoiceOut','exportationPdf','READ','ALLOW','ROLE','employee'),
+(370,'InvoiceOut','sendQueued','WRITE','ALLOW','ROLE','system'),
+(371,'Ticket','invoiceCsvPdf','READ','ALLOW','ROLE','employee'),
+(372,'Ticket','invoiceCsvEmail','WRITE','ALLOW','ROLE','employee'),
+(373,'Supplier','campaignMetricsPdf','READ','ALLOW','ROLE','employee'),
+(374,'Supplier','campaignMetricsEmail','WRITE','ALLOW','ROLE','employee'),
+(375,'Travel','extraCommunityPdf','READ','ALLOW','ROLE','employee'),
+(376,'Travel','extraCommunityEmail','WRITE','ALLOW','ROLE','employee'),
+(377,'Entry','entryOrderPdf','READ','ALLOW','ROLE','employee'),
+(378,'OsTicket','osTicketReportEmail','WRITE','ALLOW','ROLE','system'),
+(379,'Item','buyerWasteEmail','WRITE','ALLOW','ROLE','system'),
+(380,'Claim','claimPickupPdf','READ','ALLOW','ROLE','employee'),
+(381,'Claim','claimPickupEmail','WRITE','ALLOW','ROLE','claimManager'),
+(382,'Item','labelPdf','READ','ALLOW','ROLE','employee'),
+(383,'Sector','*','READ','ALLOW','ROLE','employee'),
+(384,'Sector','*','WRITE','ALLOW','ROLE','employee'),
+(385,'Route','driverRoutePdf','READ','ALLOW','ROLE','employee'),
+(386,'Route','driverRouteEmail','WRITE','ALLOW','ROLE','employee'),
+(387,'Ticket','deliveryNotePdf','READ','ALLOW','ROLE','customer'),
+(388,'Supplier','newSupplier','WRITE','ALLOW','ROLE','administrative'),
+(389,'ClaimRma','*','READ','ALLOW','ROLE','claimManager'),
+(390,'ClaimRma','*','WRITE','ALLOW','ROLE','claimManager'),
+(391,'Notification','*','WRITE','ALLOW','ROLE','system'),
+(392,'Boxing','*','*','ALLOW','ROLE','employee'),
+(393,'Url','*','READ','ALLOW','ROLE','employee'),
+(394,'Url','*','WRITE','ALLOW','ROLE','it'),
+(395,'ItemShelving','*','READ','ALLOW','ROLE','employee'),
+(396,'ItemShelving','*','WRITE','ALLOW','ROLE','production'),
+(397,'ItemShelvingPlacementSupplyStock','*','READ','ALLOW','ROLE','employee'),
+(407, 'ZipConfig', '*', '*', 'ALLOW', 'ROLE', 'employee');
/*!40000 ALTER TABLE `ACL` ENABLE KEYS */;
UNLOCK TABLES;
@@ -174,7 +2209,71 @@ UNLOCK TABLES;
LOCK TABLES `fieldAcl` WRITE;
/*!40000 ALTER TABLE `fieldAcl` DISABLE KEYS */;
-INSERT INTO `fieldAcl` VALUES (1,'Client','name','update','employee'),(2,'Client','contact','update','employee'),(3,'Client','email','update','employee'),(4,'Client','phone','update','employee'),(5,'Client','mobile','update','employee'),(6,'Client','contactChannelFk','update','employee'),(7,'Client','socialName','update','salesPerson'),(8,'Client','fi','update','salesPerson'),(9,'Client','street','update','salesPerson'),(10,'Client','postcode','update','salesPerson'),(11,'Client','city','update','salesPerson'),(12,'Client','countryFk','update','salesPerson'),(13,'Client','provinceFk','update','salesPerson'),(14,'Client','isActive','update','salesPerson'),(15,'Client','salesPersonFk','update','salesAssistant'),(16,'Client','hasToInvoice','update','salesPerson'),(17,'Client','isToBeMailed','update','salesPerson'),(18,'Client','isEqualizated','update','salesPerson'),(19,'Client','isFreezed','update','salesPerson'),(20,'Client','isVies','update','salesPerson'),(21,'Client','hasToInvoiceByAddress','update','salesPerson'),(22,'Client','isTaxDataChecked','update','salesAssistant'),(23,'Client','payMethodFk','update','salesAssistant'),(24,'Client','dueDay','update','salesAssistant'),(25,'Client','iban','update','salesAssistant'),(26,'Client','bankEntityFk','update','salesAssistant'),(27,'Client','hasLcr','update','salesAssistant'),(28,'Client','hasCoreVnl','update','salesAssistant'),(29,'Client','hasSepaVnl','update','salesAssistant'),(30,'Client','credit','update','teamBoss'),(31,'BankEntity','*','insert','salesAssistant'),(32,'Address','isDefaultAddress','*','employee'),(33,'Address','nickname','*','employee'),(34,'Address','postalCode','*','employee'),(35,'Address','provinceFk','*','employee'),(36,'Address','agencyModeFk','*','employee'),(37,'Address','phone','*','employee'),(38,'Address','mobile','*','employee'),(39,'Address','street','*','employee'),(40,'Address','city','*','employee'),(41,'Address','isActive','*','employee'),(42,'Address','isEqualizated','*','salesAssistant'),(43,'Address','clientFk','insert','employee'),(44,'ClientObservation','*','insert','employee'),(45,'Recovery','*','insert','administrative'),(46,'Recovery','finished','update','administrative'),(47,'CreditClassification','finished','update','creditInsurance'),(48,'Account','*','update','employee'),(49,'Greuge','*','insert','salesAssistant'),(50,'ClientSample','*','insert','employee'),(51,'Item','*','*','buyer'),(52,'Item','*','*','marketingBoss'),(53,'ItemBotanical','*','*','buyer'),(54,'ClaimEnd','*','*','salesAssistant'),(55,'Receipt','*','*','administrative'),(56,'ClaimBeginning','*','*','salesAssistant'),(57,'TicketRequest','*','*','salesPerson'),(58,'ClaimBeginning','*','*','salesAssistant'),(59,'TicketRequest','*','*','salesPerson'),(60,'ClaimBeginning','*','*','salesAssistant'),(61,'TicketRequest','*','*','salesPerson'),(62,'ClaimBeginning','*','*','salesAssistant'),(63,'TicketRequest','*','*','salesPerson'),(64,'ClaimBeginning','*','*','salesAssistant');
+INSERT INTO `fieldAcl` VALUES
+(1,'Client','name','update','employee'),
+(2,'Client','contact','update','employee'),
+(3,'Client','email','update','employee'),
+(4,'Client','phone','update','employee'),
+(5,'Client','mobile','update','employee'),
+(6,'Client','contactChannelFk','update','employee'),
+(7,'Client','socialName','update','salesPerson'),
+(8,'Client','fi','update','salesPerson'),
+(9,'Client','street','update','salesPerson'),
+(10,'Client','postcode','update','salesPerson'),
+(11,'Client','city','update','salesPerson'),
+(12,'Client','countryFk','update','salesPerson'),
+(13,'Client','provinceFk','update','salesPerson'),
+(14,'Client','isActive','update','salesPerson'),
+(15,'Client','salesPersonFk','update','salesAssistant'),
+(16,'Client','hasToInvoice','update','salesPerson'),
+(17,'Client','isToBeMailed','update','salesPerson'),
+(18,'Client','isEqualizated','update','salesPerson'),
+(19,'Client','isFreezed','update','salesPerson'),
+(20,'Client','isVies','update','salesPerson'),
+(21,'Client','hasToInvoiceByAddress','update','salesPerson'),
+(22,'Client','isTaxDataChecked','update','salesAssistant'),
+(23,'Client','payMethodFk','update','salesAssistant'),
+(24,'Client','dueDay','update','salesAssistant'),
+(25,'Client','iban','update','salesAssistant'),
+(26,'Client','bankEntityFk','update','salesAssistant'),
+(27,'Client','hasLcr','update','salesAssistant'),
+(28,'Client','hasCoreVnl','update','salesAssistant'),
+(29,'Client','hasSepaVnl','update','salesAssistant'),
+(30,'Client','credit','update','teamBoss'),
+(31,'BankEntity','*','insert','salesAssistant'),
+(32,'Address','isDefaultAddress','*','employee'),
+(33,'Address','nickname','*','employee'),
+(34,'Address','postalCode','*','employee'),
+(35,'Address','provinceFk','*','employee'),
+(36,'Address','agencyModeFk','*','employee'),
+(37,'Address','phone','*','employee'),
+(38,'Address','mobile','*','employee'),
+(39,'Address','street','*','employee'),
+(40,'Address','city','*','employee'),
+(41,'Address','isActive','*','employee'),
+(42,'Address','isEqualizated','*','salesAssistant'),
+(43,'Address','clientFk','insert','employee'),
+(44,'ClientObservation','*','insert','employee'),
+(45,'Recovery','*','insert','administrative'),
+(46,'Recovery','finished','update','administrative'),
+(47,'CreditClassification','finished','update','creditInsurance'),
+(48,'Account','*','update','employee'),
+(49,'Greuge','*','insert','salesAssistant'),
+(50,'ClientSample','*','insert','employee'),
+(51,'Item','*','*','buyer'),
+(52,'Item','*','*','marketingBoss'),
+(53,'ItemBotanical','*','*','buyer'),
+(54,'ClaimEnd','*','*','salesAssistant'),
+(55,'Receipt','*','*','administrative'),
+(56,'ClaimBeginning','*','*','salesAssistant'),
+(57,'TicketRequest','*','*','salesPerson'),
+(58,'ClaimBeginning','*','*','salesAssistant'),
+(59,'TicketRequest','*','*','salesPerson'),
+(60,'ClaimBeginning','*','*','salesAssistant'),
+(61,'TicketRequest','*','*','salesPerson'),
+(62,'ClaimBeginning','*','*','salesAssistant'),
+(63,'TicketRequest','*','*','salesPerson'),
+(64,'ClaimBeginning','*','*','salesAssistant');
/*!40000 ALTER TABLE `fieldAcl` ENABLE KEYS */;
UNLOCK TABLES;
@@ -184,7 +2283,22 @@ UNLOCK TABLES;
LOCK TABLES `module` WRITE;
/*!40000 ALTER TABLE `module` DISABLE KEYS */;
-INSERT INTO `module` VALUES ('Claims'),('Clients'),('Entries'),('Invoices in'),('Invoices out'),('Items'),('Monitors'),('Orders'),('Routes'),('Suppliers'),('Tickets'),('Travels'),('Users'),('Workers'),('Zones');
+INSERT INTO `module` VALUES
+('Claims'),
+('Clients'),
+('Entries'),
+('Invoices in'),
+('Invoices out'),
+('Items'),
+('Monitors'),
+('Orders'),
+('Routes'),
+('Suppliers'),
+('Tickets'),
+('Travels'),
+('Users'),
+('Workers'),
+('Zones');
/*!40000 ALTER TABLE `module` ENABLE KEYS */;
UNLOCK TABLES;
@@ -194,7 +2308,11 @@ UNLOCK TABLES;
LOCK TABLES `defaultViewConfig` WRITE;
/*!40000 ALTER TABLE `defaultViewConfig` DISABLE KEYS */;
-INSERT INTO `defaultViewConfig` VALUES ('itemsIndex','{\"intrastat\":false,\"stemMultiplier\":false,\"landed\":false,\"producer\":false}'),('latestBuys','{\"intrastat\":false,\"description\":false,\"density\":false,\"isActive\":false,\n \"freightValue\":false,\"packageValue\":false,\"isIgnored\":false,\"price2\":false,\"ektFk\":false,\"weight\":false,\n \"size\":false,\"comissionValue\":false,\"landing\":false}'),('ticketsMonitor','{\"id\":false}'),('clientsDetail','{\"id\":true,\"phone\":true,\"city\":true,\"socialName\":true,\"salesPersonFk\":true,\"email\":true,\"name\":false,\"fi\":false,\"credit\":false,\"creditInsurance\":false,\"mobile\":false,\"street\":false,\"countryFk\":false,\"provinceFk\":false,\"postcode\":false,\"created\":false,\"businessTypeFk\":false,\"payMethodFk\":false,\"sageTaxTypeFk\":false,\"sageTransactionTypeFk\":false,\"isActive\":false,\"isVies\":false,\"isTaxDataChecked\":false,\"isEqualizated\":false,\"isFreezed\":false,\"hasToInvoice\":false,\"hasToInvoiceByAddress\":false,\"isToBeMailed\":false,\"hasLcr\":false,\"hasCoreVnl\":false,\"hasSepaVnl\":false}');
+INSERT INTO `defaultViewConfig` VALUES
+('itemsIndex','{\"intrastat\":false,\"stemMultiplier\":false,\"landed\":false,\"producer\":false}'),
+('latestBuys','{\"intrastat\":false,\"description\":false,\"density\":false,\"isActive\":false,\n \"freightValue\":false,\"packageValue\":false,\"isIgnored\":false,\"price2\":false,\"ektFk\":false,\"weight\":false,\n \"size\":false,\"comissionValue\":false,\"landing\":false}'),
+('ticketsMonitor','{\"id\":false}'),
+('clientsDetail','{\"id\":true,\"phone\":true,\"city\":true,\"socialName\":true,\"salesPersonFk\":true,\"email\":true,\"name\":false,\"fi\":false,\"credit\":false,\"creditInsurance\":false,\"mobile\":false,\"street\":false,\"countryFk\":false,\"provinceFk\":false,\"postcode\":false,\"created\":false,\"businessTypeFk\":false,\"payMethodFk\":false,\"sageTaxTypeFk\":false,\"sageTransactionTypeFk\":false,\"isActive\":false,\"isVies\":false,\"isTaxDataChecked\":false,\"isEqualizated\":false,\"isFreezed\":false,\"hasToInvoice\":false,\"hasToInvoiceByAddress\":false,\"isToBeMailed\":false,\"hasLcr\":false,\"hasCoreVnl\":false,\"hasSepaVnl\":false}');
/*!40000 ALTER TABLE `defaultViewConfig` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
@@ -206,13 +2324,13 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
--- Dump completed on 2022-09-16 7:03:09
+-- Dump completed on 2022-11-21 7:59:04
USE `vn`;
--- MySQL dump 10.19 Distrib 10.3.34-MariaDB, for debian-linux-gnu (x86_64)
+-- MariaDB dump 10.19 Distrib 10.9.4-MariaDB, for Linux (x86_64)
--
-- Host: db.verdnatura.es Database: vn
-- ------------------------------------------------------
--- Server version 10.7.4-MariaDB-1:10.7.4+maria~bullseye-log
+-- Server version 10.7.6-MariaDB-1:10.7.6+maria~deb11-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@@ -230,7 +2348,11 @@ USE `vn`;
LOCK TABLES `alertLevel` WRITE;
/*!40000 ALTER TABLE `alertLevel` DISABLE KEYS */;
-INSERT INTO `alertLevel` VALUES ('FREE',0),('ON_PREPARATION',1),('PACKED',2),('DELIVERED',3);
+INSERT INTO `alertLevel` VALUES
+('FREE',0),
+('ON_PREPARATION',1),
+('PACKED',2),
+('DELIVERED',3);
/*!40000 ALTER TABLE `alertLevel` ENABLE KEYS */;
UNLOCK TABLES;
@@ -240,7 +2362,44 @@ UNLOCK TABLES;
LOCK TABLES `bookingPlanner` WRITE;
/*!40000 ALTER TABLE `bookingPlanner` DISABLE KEYS */;
-INSERT INTO `bookingPlanner` VALUES (5,'2017-06-30 22:00:00','4770000002','WORLD',7,4,1),(6,'2017-06-30 22:00:00','4770000010','NATIONAL',3,1,1),(8,'2017-06-30 22:00:00','4770000021','NATIONAL',1,2,1),(9,'2017-06-30 22:00:00','4770000101','EQU',3,1,1),(11,'2017-06-30 22:00:00','4770000110','EQU',4,1,1),(12,'2017-06-30 22:00:00','4770000215','EQU',1,2,1),(13,'2017-06-30 22:00:00','4770000521','EQU',2,2,1),(15,'2017-06-30 22:00:00','4771000000','CEE',3,1,1),(16,'2017-06-30 22:00:00','4771000001','CEE',8,3,1),(19,'2017-07-05 11:54:58','4770000020','NATIONAL',7,4,1),(20,'2017-07-05 12:09:24','4771000000','CEE',1,2,1),(21,'2017-07-05 12:09:24','4771000000','CEE',7,4,1),(22,'2017-07-05 12:12:14','4770000002','WORLD',3,1,1),(23,'2017-07-05 12:12:14','4770000002','WORLD',1,2,1),(24,'2017-07-06 08:07:21','4770000002','WORLD',7,4,5),(25,'2017-07-06 08:07:21','HolandaRED','NATIONAL',3,1,5),(27,'2017-07-06 08:07:21','HolandaGEN','NATIONAL',1,2,5),(32,'2017-07-06 08:07:21','4771000000','CEE',3,1,5),(33,'2017-07-06 08:07:21','4771000001','CEE',8,3,5),(34,'2017-07-06 08:07:21','4770000020','NATIONAL',7,4,5),(35,'2017-07-06 08:07:21','4771000000','CEE',1,2,5),(36,'2017-07-06 08:07:21','4771000000','CEE',7,4,5),(37,'2017-07-06 08:07:21','4770000002','WORLD',3,1,5),(38,'2017-07-06 08:07:21','4770000002','WORLD',1,2,5),(70,'2017-07-06 08:08:48','4770000002','WORLD',7,4,30),(71,'2017-07-06 08:08:48','IGIC reduc','NATIONAL',3,1,30),(72,'2017-07-06 08:08:48','4770000020','NATIONAL',7,4,30),(73,'2017-07-06 08:08:48','IGIC gener','NATIONAL',1,2,30),(78,'2017-07-06 08:08:48','4770000020','NATIONAL',7,4,30),(79,'2017-07-06 08:08:48','4770000002','WORLD',3,1,30),(80,'2017-07-06 08:08:48','4770000002','WORLD',1,2,30),(81,'2017-07-05 22:00:00','IGIC cero','NATIONAL',5,5,30),(82,'2019-01-01 11:51:56','4770000504','EQU',5,5,1),(83,'2019-09-11 10:54:03','4770000405','EQU',6,5,1),(84,'2019-09-11 10:58:17','4770000004','NATIONAL',5,5,1),(85,'2019-09-18 22:00:00','4771000000','CEE',5,5,1),(86,'2021-10-13 22:00:00','4770000002','WORLD',5,5,1);
+INSERT INTO `bookingPlanner` VALUES
+(5,'2017-06-30 22:00:00','4770000002','WORLD',7,4,1),
+(6,'2017-06-30 22:00:00','4770000010','NATIONAL',3,1,1),
+(8,'2017-06-30 22:00:00','4770000021','NATIONAL',1,2,1),
+(9,'2017-06-30 22:00:00','4770000101','EQU',3,1,1),
+(11,'2017-06-30 22:00:00','4770000110','EQU',4,1,1),
+(12,'2017-06-30 22:00:00','4770000215','EQU',1,2,1),
+(13,'2017-06-30 22:00:00','4770000521','EQU',2,2,1),
+(15,'2017-06-30 22:00:00','4771000000','CEE',3,1,1),
+(16,'2017-06-30 22:00:00','4771000001','CEE',8,3,1),
+(19,'2017-07-05 11:54:58','4770000020','NATIONAL',7,4,1),
+(20,'2017-07-05 12:09:24','4771000000','CEE',1,2,1),
+(21,'2017-07-05 12:09:24','4771000000','CEE',7,4,1),
+(22,'2017-07-05 12:12:14','4770000002','WORLD',3,1,1),
+(23,'2017-07-05 12:12:14','4770000002','WORLD',1,2,1),
+(24,'2017-07-06 08:07:21','4770000002','WORLD',7,4,5),
+(25,'2017-07-06 08:07:21','HolandaRED','NATIONAL',3,1,5),
+(27,'2017-07-06 08:07:21','HolandaGEN','NATIONAL',1,2,5),
+(32,'2017-07-06 08:07:21','4771000000','CEE',3,1,5),
+(33,'2017-07-06 08:07:21','4771000001','CEE',8,3,5),
+(34,'2017-07-06 08:07:21','4770000020','NATIONAL',7,4,5),
+(35,'2017-07-06 08:07:21','4771000000','CEE',1,2,5),
+(36,'2017-07-06 08:07:21','4771000000','CEE',7,4,5),
+(37,'2017-07-06 08:07:21','4770000002','WORLD',3,1,5),
+(38,'2017-07-06 08:07:21','4770000002','WORLD',1,2,5),
+(70,'2017-07-06 08:08:48','4770000002','WORLD',7,4,30),
+(71,'2017-07-06 08:08:48','IGIC reduc','NATIONAL',3,1,30),
+(72,'2017-07-06 08:08:48','4770000020','NATIONAL',7,4,30),
+(73,'2017-07-06 08:08:48','IGIC gener','NATIONAL',1,2,30),
+(78,'2017-07-06 08:08:48','4770000020','NATIONAL',7,4,30),
+(79,'2017-07-06 08:08:48','4770000002','WORLD',3,1,30),
+(80,'2017-07-06 08:08:48','4770000002','WORLD',1,2,30),
+(81,'2017-07-05 22:00:00','IGIC cero','NATIONAL',5,5,30),
+(82,'2019-01-01 11:51:56','4770000504','EQU',5,5,1),
+(83,'2019-09-11 10:54:03','4770000405','EQU',6,5,1),
+(84,'2019-09-11 10:58:17','4770000004','NATIONAL',5,5,1),
+(85,'2019-09-18 22:00:00','4771000000','CEE',5,5,1),
+(86,'2021-10-13 22:00:00','4770000002','WORLD',5,5,1);
/*!40000 ALTER TABLE `bookingPlanner` ENABLE KEYS */;
UNLOCK TABLES;
@@ -250,7 +2409,20 @@ UNLOCK TABLES;
LOCK TABLES `businessType` WRITE;
/*!40000 ALTER TABLE `businessType` DISABLE KEYS */;
-INSERT INTO `businessType` VALUES ('decoration','Decoración'),('events','Eventos'),('florist','Floristería'),('gardenCentre','Vivero'),('gardening','Jardinería'),('individual','Particular'),('mortuary','Funeraria'),('officialOrganism','Organismo oficial'),('others','Otros'),('otherSector','Profesional de otro sector'),('restoration','Restauración'),('wholesaler','Mayorista');
+INSERT INTO `businessType` VALUES
+('decoration','Decoración'),
+('events','Eventos'),
+('florist','Floristería'),
+('gardenCentre','Vivero'),
+('gardening','Jardinería'),
+('individual','Particular'),
+('mortuary','Funeraria'),
+('officialOrganism','Organismo oficial'),
+('others','Otros'),
+('otherSector','Profesional de otro sector'),
+('restoration','Restauración'),
+('trainingCentre','Centro de formación'),
+('wholesaler','Mayorista');
/*!40000 ALTER TABLE `businessType` ENABLE KEYS */;
UNLOCK TABLES;
@@ -260,7 +2432,18 @@ UNLOCK TABLES;
LOCK TABLES `cplusInvoiceType472` WRITE;
/*!40000 ALTER TABLE `cplusInvoiceType472` DISABLE KEYS */;
-INSERT INTO `cplusInvoiceType472` VALUES (1,'F1 - Factura'),(2,'F2 - Factura simplificada (ticket)'),(3,'F3 - Factura emitida en sustitución de facturas simplificadas facturadas y declaradas'),(4,'F4 - Asiento resumen de facturas'),(5,'F5 - Importaciones (DUA)'),(6,'F6 - Otros justificantes contables'),(7,'R1 - Factura rectificativa (Art. 80.1, 80.2 y error fundado en derecho)'),(8,'R2 - Factura rectificativa (Art. 80.3)'),(9,'R3 - Factura rectificativa (Art. 80.4)'),(10,'R4 - Factura rectificativa (Resto)'),(11,'R5 - Factura rectificativa en facturas simplificadas');
+INSERT INTO `cplusInvoiceType472` VALUES
+(1,'F1 - Factura'),
+(2,'F2 - Factura simplificada (ticket)'),
+(3,'F3 - Factura emitida en sustitución de facturas simplificadas facturadas y declaradas'),
+(4,'F4 - Asiento resumen de facturas'),
+(5,'F5 - Importaciones (DUA)'),
+(6,'F6 - Otros justificantes contables'),
+(7,'R1 - Factura rectificativa (Art. 80.1, 80.2 y error fundado en derecho)'),
+(8,'R2 - Factura rectificativa (Art. 80.3)'),
+(9,'R3 - Factura rectificativa (Art. 80.4)'),
+(10,'R4 - Factura rectificativa (Resto)'),
+(11,'R5 - Factura rectificativa en facturas simplificadas');
/*!40000 ALTER TABLE `cplusInvoiceType472` ENABLE KEYS */;
UNLOCK TABLES;
@@ -270,7 +2453,16 @@ UNLOCK TABLES;
LOCK TABLES `cplusInvoiceType477` WRITE;
/*!40000 ALTER TABLE `cplusInvoiceType477` DISABLE KEYS */;
-INSERT INTO `cplusInvoiceType477` VALUES (1,'F1 - Factura'),(2,'F2 - Factura simplificada (ticket)'),(3,'F3 - Factura emitida en sustitución de facturas simplificadas facturadas y declaradas'),(4,'F4 - Asiento resumen de facturas'),(5,'R1 - Factura rectificativa (Art. 80.1, 80.2 y error fundado en derecho)'),(6,'R2 - Factura rectificativa (Art. 80.3)'),(7,'R3 - Factura rectificativa (Art. 80.4)'),(8,'R4 - Factura rectificativa (Resto)'),(9,'R5 - Factura rectificativa en facturas simplificadas');
+INSERT INTO `cplusInvoiceType477` VALUES
+(1,'F1 - Factura'),
+(2,'F2 - Factura simplificada (ticket)'),
+(3,'F3 - Factura emitida en sustitución de facturas simplificadas facturadas y declaradas'),
+(4,'F4 - Asiento resumen de facturas'),
+(5,'R1 - Factura rectificativa (Art. 80.1, 80.2 y error fundado en derecho)'),
+(6,'R2 - Factura rectificativa (Art. 80.3)'),
+(7,'R3 - Factura rectificativa (Art. 80.4)'),
+(8,'R4 - Factura rectificativa (Resto)'),
+(9,'R5 - Factura rectificativa en facturas simplificadas');
/*!40000 ALTER TABLE `cplusInvoiceType477` ENABLE KEYS */;
UNLOCK TABLES;
@@ -280,7 +2472,10 @@ UNLOCK TABLES;
LOCK TABLES `cplusRectificationType` WRITE;
/*!40000 ALTER TABLE `cplusRectificationType` DISABLE KEYS */;
-INSERT INTO `cplusRectificationType` VALUES (1,'Campo vacio'),(2,'I – Por diferencias'),(3,'S – Por sustitución');
+INSERT INTO `cplusRectificationType` VALUES
+(1,'Campo vacio'),
+(2,'I – Por diferencias'),
+(3,'S – Por sustitución');
/*!40000 ALTER TABLE `cplusRectificationType` ENABLE KEYS */;
UNLOCK TABLES;
@@ -290,7 +2485,10 @@ UNLOCK TABLES;
LOCK TABLES `cplusSubjectOp` WRITE;
/*!40000 ALTER TABLE `cplusSubjectOp` DISABLE KEYS */;
-INSERT INTO `cplusSubjectOp` VALUES (1,'Campo vacio'),(2,'S1 – Sujeta – No exenta'),(3,'S2 – Sujeta – No exenta – Inv. Suj. Pasivo');
+INSERT INTO `cplusSubjectOp` VALUES
+(1,'Campo vacio'),
+(2,'S1 – Sujeta – No exenta'),
+(3,'S2 – Sujeta – No exenta – Inv. Suj. Pasivo');
/*!40000 ALTER TABLE `cplusSubjectOp` ENABLE KEYS */;
UNLOCK TABLES;
@@ -300,7 +2498,14 @@ UNLOCK TABLES;
LOCK TABLES `cplusTaxBreak` WRITE;
/*!40000 ALTER TABLE `cplusTaxBreak` DISABLE KEYS */;
-INSERT INTO `cplusTaxBreak` VALUES (1,'Campo vacio'),(2,'E1 - Exenta por el artículo 20'),(3,'E2 - Exenta por el artículo 21'),(4,'E3 - Exenta por el artículo 22'),(5,'E4 - Exenta por el artículo 24'),(6,'E5 - Exenta por el artículo 25'),(7,'E6 - Exenta por otros');
+INSERT INTO `cplusTaxBreak` VALUES
+(1,'Campo vacio'),
+(2,'E1 - Exenta por el artículo 20'),
+(3,'E2 - Exenta por el artículo 21'),
+(4,'E3 - Exenta por el artículo 22'),
+(5,'E4 - Exenta por el artículo 24'),
+(6,'E5 - Exenta por el artículo 25'),
+(7,'E6 - Exenta por otros');
/*!40000 ALTER TABLE `cplusTaxBreak` ENABLE KEYS */;
UNLOCK TABLES;
@@ -310,7 +2515,19 @@ UNLOCK TABLES;
LOCK TABLES `cplusTrascendency472` WRITE;
/*!40000 ALTER TABLE `cplusTrascendency472` DISABLE KEYS */;
-INSERT INTO `cplusTrascendency472` VALUES (1,'01 - Operación de régimen general'),(2,'02 - Operaciones por las que los empresarios satisfacen compensaciones REAGYP'),(3,'03 - Operaciones a las que se aplique el régimen especial de bienes usados, objetos de arte, antigüedades y objetos de colección (135 - 139 de LIVA)'),(4,'04 - Régimen especial oro de inversión'),(5,'05 - Régimen especial agencias de viajes'),(6,'06 - Régimen especial grupo de entidades en IVA (Nivel Avanzado)'),(7,'07 - Régimen especial criterio de caja'),(8,'08 - Operaciones sujetas al IPSI / IGIC'),(9,'09 - Adquisiciones intracomunitarias de bienes y prestaciones de servicios'),(10,'12 - Operaciones de arrendamiento de local de negocio'),(11,'13 - Factura correspondiente a una importación (informada sin asociar a un DUA)'),(12,'14 - Primer semestre 2017');
+INSERT INTO `cplusTrascendency472` VALUES
+(1,'01 - Operación de régimen general'),
+(2,'02 - Operaciones por las que los empresarios satisfacen compensaciones REAGYP'),
+(3,'03 - Operaciones a las que se aplique el régimen especial de bienes usados, objetos de arte, antigüedades y objetos de colección (135 - 139 de LIVA)'),
+(4,'04 - Régimen especial oro de inversión'),
+(5,'05 - Régimen especial agencias de viajes'),
+(6,'06 - Régimen especial grupo de entidades en IVA (Nivel Avanzado)'),
+(7,'07 - Régimen especial criterio de caja'),
+(8,'08 - Operaciones sujetas al IPSI / IGIC'),
+(9,'09 - Adquisiciones intracomunitarias de bienes y prestaciones de servicios'),
+(10,'12 - Operaciones de arrendamiento de local de negocio'),
+(11,'13 - Factura correspondiente a una importación (informada sin asociar a un DUA)'),
+(12,'14 - Primer semestre 2017');
/*!40000 ALTER TABLE `cplusTrascendency472` ENABLE KEYS */;
UNLOCK TABLES;
@@ -320,7 +2537,30 @@ UNLOCK TABLES;
LOCK TABLES `claimResponsible` WRITE;
/*!40000 ALTER TABLE `claimResponsible` DISABLE KEYS */;
-INSERT INTO `claimResponsible` VALUES (1,'Compradores',0),(2,'Proveedor',0),(3,'Entradores',0),(4,'Camareros',0),(6,'Sacadores',0),(7,'Revisadores',0),(8,'Calidad general',0),(9,'Encajadores',0),(10,'Clima',0),(11,'Comerciales',1),(12,'Clientes',1),(13,'Administración',0),(14,'Agencia',0),(15,'Repartidores',0),(16,'Informatica',0),(17,'Transp.origen',0),(18,'Confeccion',0),(19,'OTROS',0),(21,'Gerencia',0),(22,'Paletizadores',0),(23,'Preparación Previa',0),(24,'Almacén PCA',0),(25,'Huelga',0);
+INSERT INTO `claimResponsible` VALUES
+(1,'Compradores',0),
+(2,'Proveedor',0),
+(3,'Entradores',0),
+(4,'Camareros',0),
+(6,'Sacadores',0),
+(7,'Revisadores',0),
+(8,'Calidad general',0),
+(9,'Encajadores',0),
+(10,'Clima',0),
+(11,'Comerciales',1),
+(12,'Clientes',1),
+(13,'Administración',0),
+(14,'Agencia',0),
+(15,'Repartidores',0),
+(16,'Informatica',0),
+(17,'Transp.origen',0),
+(18,'Confeccion',0),
+(19,'OTROS',0),
+(21,'Gerencia',0),
+(22,'Paletizadores',0),
+(23,'Preparación Previa',0),
+(24,'Almacén PCA',0),
+(25,'Huelga',0);
/*!40000 ALTER TABLE `claimResponsible` ENABLE KEYS */;
UNLOCK TABLES;
@@ -330,7 +2570,44 @@ UNLOCK TABLES;
LOCK TABLES `claimReason` WRITE;
/*!40000 ALTER TABLE `claimReason` DISABLE KEYS */;
-INSERT INTO `claimReason` VALUES (1,'Prisas',0),(2,'Novato',0),(3,'Exceso de confianza',0),(4,'Exceso de celo',0),(5,'Indiferencia',0),(6,'Extraviado o Hurto',0),(7,'Incompetencia',0),(8,'Ubicación erronea',0),(9,'Dat.Inctos/Pak.conf',0),(10,'Datos duplicados',0),(11,'Fallo stock',0),(12,'Innovación',0),(13,'Distracción',1),(15,'Portes indebidos',0),(16,'Baja calidad',0),(17,'Defectuoso',0),(19,'Endiñado',0),(20,'Calor',0),(21,'Frio',0),(22,'Cambiado',0),(24,'Cansancio',1),(25,'Mal etiquetado',1),(26,'Cantidad malentendido',0),(30,'No revisado',1),(34,'Error fotografia',0),(40,'Fallo Personal VN',0),(41,'Fallo Personal Cliente',0),(42,'Otros',0),(43,'Precio alto',0),(44,'Abuso de confianza',0),(45,'Retraso Agencia',0),(46,'Delicado',0),(47,'Seco',0),(48,'Retraso Reparto',0),(49,'Mal Embalado',0),(50,'Tumbado',0),(51,'Enfermo/Plaga',0);
+INSERT INTO `claimReason` VALUES
+(1,'Prisas',0),
+(2,'Novato',0),
+(3,'Exceso de confianza',0),
+(4,'Exceso de celo',0),
+(5,'Indiferencia',0),
+(6,'Extraviado o Hurto',0),
+(7,'Incompetencia',0),
+(8,'Ubicación erronea',0),
+(9,'Dat.Inctos/Pak.conf',0),
+(10,'Datos duplicados',0),
+(11,'Fallo stock',0),
+(12,'Innovación',0),
+(13,'Distracción',1),
+(15,'Portes indebidos',0),
+(16,'Baja calidad',0),
+(17,'Defectuoso',0),
+(19,'Endiñado',0),
+(20,'Calor',0),
+(21,'Frio',0),
+(22,'Cambiado',0),
+(24,'Cansancio',1),
+(25,'Mal etiquetado',1),
+(26,'Cantidad malentendido',0),
+(30,'No revisado',1),
+(34,'Error fotografia',0),
+(40,'Fallo Personal VN',0),
+(41,'Fallo Personal Cliente',0),
+(42,'Otros',0),
+(43,'Precio alto',0),
+(44,'Abuso de confianza',0),
+(45,'Retraso Agencia',0),
+(46,'Delicado',0),
+(47,'Seco',0),
+(48,'Retraso Reparto',0),
+(49,'Mal Embalado',0),
+(50,'Tumbado',0),
+(51,'Enfermo/Plaga',0);
/*!40000 ALTER TABLE `claimReason` ENABLE KEYS */;
UNLOCK TABLES;
@@ -340,7 +2617,13 @@ UNLOCK TABLES;
LOCK TABLES `claimRedelivery` WRITE;
/*!40000 ALTER TABLE `claimRedelivery` DISABLE KEYS */;
-INSERT INTO `claimRedelivery` VALUES (1,'Cliente'),(2,'No dev./No especif.'),(3,'Reparto'),(4,'Agencia'),(5,'Tour'),(6,'Fuera Peninsula');
+INSERT INTO `claimRedelivery` VALUES
+(1,'Cliente'),
+(2,'No dev./No especif.'),
+(3,'Reparto'),
+(4,'Agencia'),
+(5,'Tour'),
+(6,'Fuera Peninsula');
/*!40000 ALTER TABLE `claimRedelivery` ENABLE KEYS */;
UNLOCK TABLES;
@@ -350,7 +2633,36 @@ UNLOCK TABLES;
LOCK TABLES `claimResult` WRITE;
/*!40000 ALTER TABLE `claimResult` DISABLE KEYS */;
-INSERT INTO `claimResult` VALUES (1,'Otros daños'),(2,'Roces'),(3,'Humedad'),(4,'Deshidratacion'),(5,'Error identidad'),(6,'Incompleto (Faltas)'),(7,'Error packing'),(8,'Error color'),(9,'Error medida'),(10,'Error origen'),(11,'Envejecido'),(12,'Venta Perdida'),(13,'Duplicacion'),(14,'Rechazado'),(15,'Rotura'),(16,'Deterioro/Estropeado'),(17,'Podrido'),(18,'Baboso'),(19,'Cocido'),(20,'Congelado'),(21,'Machacado'),(22,'Error precio'),(23,'Manchado'),(24,'No entregado'),(25,'Cobro indebido'),(26,'Decepcion/Esperaba mas'),(27,'Otros'),(28,'Baboso/Cocido'),(29,'Video Camara');
+INSERT INTO `claimResult` VALUES
+(1,'Otros daños'),
+(2,'Roces'),
+(3,'Humedad'),
+(4,'Deshidratacion'),
+(5,'Error identidad'),
+(6,'Incompleto (Faltas)'),
+(7,'Error packing'),
+(8,'Error color'),
+(9,'Error medida'),
+(10,'Error origen'),
+(11,'Envejecido'),
+(12,'Venta Perdida'),
+(13,'Duplicacion'),
+(14,'Rechazado'),
+(15,'Rotura'),
+(16,'Deterioro/Estropeado'),
+(17,'Podrido'),
+(18,'Baboso'),
+(19,'Cocido'),
+(20,'Congelado'),
+(21,'Machacado'),
+(22,'Error precio'),
+(23,'Manchado'),
+(24,'No entregado'),
+(25,'Cobro indebido'),
+(26,'Decepcion/Esperaba mas'),
+(27,'Otros'),
+(28,'Baboso/Cocido'),
+(29,'Video Camara');
/*!40000 ALTER TABLE `claimResult` ENABLE KEYS */;
UNLOCK TABLES;
@@ -360,7 +2672,31 @@ UNLOCK TABLES;
LOCK TABLES `component` WRITE;
/*!40000 ALTER TABLE `component` DISABLE KEYS */;
-INSERT INTO `component` VALUES (10,'Precios Especiales',4,NULL,NULL,1,'specialPrices',0),(14,'porte extra por dia semana',6,NULL,NULL,1,'extraCostPerWeekDay',0),(15,'reparto',6,NULL,NULL,1,'delivery',1),(17,'recobro',5,NULL,NULL,1,'debtCollection',0),(21,'ajuste',11,NULL,NULL,1,'adjustment',0),(22,'venta por paquete',9,1,NULL,0,'salePerPackage',0),(23,'venta por caja',9,2,NULL,0,'salePerBox',0),(28,'valor de compra',1,NULL,NULL,1,'purchaseValue',1),(29,'margen',4,NULL,NULL,1,'margin',1),(32,'descuento ultimas unidades',9,3,-0.05,0,'lastUnitsDiscount',0),(33,'venta por caja',9,1,NULL,0,'salePerBox',0),(34,'descuento comprador',4,NULL,NULL,1,'buyerDiscount',0),(35,'cartera comprador',10,NULL,NULL,1,NULL,0),(36,'descuadre',12,NULL,NULL,1,'imbalance',0),(37,'maná',7,4,NULL,0,'mana',0),(38,'embolsado',9,NULL,NULL,1,'bagged',0),(39,'maná auto',7,NULL,NULL,1,'autoMana',0),(40,'cambios Santos 2016',4,NULL,NULL,1,NULL,0),(41,'bonificacion porte',6,NULL,NULL,1,'freightCharge',0),(42,'promocion Francia',4,NULL,NULL,1,'frenchOffer',0),(43,'promocion Floramondo',4,NULL,NULL,1,'floramondoPromo',0),(44,'rappel cadena',2,NULL,NULL,1,'rappel',0),(45,'maná reclamacion',7,4,NULL,0,'manaClaim',0),(46,'recargo a particular',2,NULL,0.25,0,'individual',0);
+INSERT INTO `component` VALUES
+(10,'Precios Especiales',4,NULL,NULL,1,'specialPrices',0),
+(14,'porte extra por dia semana',6,NULL,NULL,1,'extraCostPerWeekDay',0),
+(15,'reparto',6,NULL,NULL,1,'delivery',1),
+(17,'recobro',5,NULL,NULL,1,'debtCollection',0),
+(21,'ajuste',11,NULL,NULL,1,'adjustment',0),
+(22,'venta por paquete',9,1,NULL,0,'salePerPackage',0),
+(23,'venta por caja',9,2,NULL,0,'salePerBox',0),
+(28,'valor de compra',1,NULL,NULL,1,'purchaseValue',1),
+(29,'margen',4,NULL,NULL,1,'margin',1),
+(32,'descuento ultimas unidades',9,3,-0.05,0,'lastUnitsDiscount',0),
+(33,'venta por caja',9,1,NULL,0,'salePerBox',0),
+(34,'descuento comprador',4,NULL,NULL,1,'buyerDiscount',0),
+(35,'cartera comprador',10,NULL,NULL,1,NULL,0),
+(36,'descuadre',12,NULL,NULL,1,'imbalance',0),
+(37,'maná',7,4,NULL,0,'mana',0),
+(38,'embolsado',9,NULL,NULL,1,'bagged',0),
+(39,'maná auto',7,NULL,NULL,1,'autoMana',0),
+(40,'cambios Santos 2016',4,NULL,NULL,1,NULL,0),
+(41,'bonificacion porte',6,NULL,NULL,1,'freightCharge',0),
+(42,'promocion Francia',4,NULL,NULL,1,'frenchOffer',0),
+(43,'promocion Floramondo',4,NULL,NULL,1,'floramondoPromo',0),
+(44,'rappel cadena',2,NULL,NULL,1,'rappel',0),
+(45,'maná reclamacion',7,4,NULL,0,'manaClaim',0),
+(46,'recargo a particular',2,NULL,0.25,0,'individual',0);
/*!40000 ALTER TABLE `component` ENABLE KEYS */;
UNLOCK TABLES;
@@ -370,7 +2706,19 @@ UNLOCK TABLES;
LOCK TABLES `componentType` WRITE;
/*!40000 ALTER TABLE `componentType` DISABLE KEYS */;
-INSERT INTO `componentType` VALUES (1,'coste',1,0,'COST'),(2,'com ventas',1,1,NULL),(3,'com compras',1,1,NULL),(4,'empresa',1,1,'MARGIN'),(5,'cliente',0,0,NULL),(6,'agencia',0,0,'FREIGHT'),(7,'cartera_comercial',0,0,NULL),(8,'cartera_producto',0,1,NULL),(9,'maniobra',1,0,NULL),(10,'cartera_comprador',0,1,NULL),(11,'errores',0,1,NULL),(12,'otros',0,1,NULL);
+INSERT INTO `componentType` VALUES
+(1,'coste',1,0,'COST'),
+(2,'com ventas',1,1,NULL),
+(3,'com compras',1,1,NULL),
+(4,'empresa',1,1,'MARGIN'),
+(5,'cliente',0,0,NULL),
+(6,'agencia',0,0,'FREIGHT'),
+(7,'cartera_comercial',0,0,NULL),
+(8,'cartera_producto',0,1,NULL),
+(9,'maniobra',1,0,NULL),
+(10,'cartera_comprador',0,1,NULL),
+(11,'errores',0,1,NULL),
+(12,'otros',0,1,NULL);
/*!40000 ALTER TABLE `componentType` ENABLE KEYS */;
UNLOCK TABLES;
@@ -380,7 +2728,12 @@ UNLOCK TABLES;
LOCK TABLES `continent` WRITE;
/*!40000 ALTER TABLE `continent` DISABLE KEYS */;
-INSERT INTO `continent` VALUES (1,'Asia','AS'),(2,'América','AM'),(3,'África','AF'),(4,'Europa','EU'),(5,'Oceanía','OC');
+INSERT INTO `continent` VALUES
+(1,'Asia','AS'),
+(2,'América','AM'),
+(3,'África','AF'),
+(4,'Europa','EU'),
+(5,'Oceanía','OC');
/*!40000 ALTER TABLE `continent` ENABLE KEYS */;
UNLOCK TABLES;
@@ -390,7 +2743,55 @@ UNLOCK TABLES;
LOCK TABLES `department` WRITE;
/*!40000 ALTER TABLE `department` DISABLE KEYS */;
-INSERT INTO `department` VALUES (1,NULL,'VERDNATURA',1,96,763,0,NULL,NULL,NULL,0,0,0,28,NULL,'/',NULL,0,NULL,0,0,0,0,NULL),(22,NULL,'COMPRAS',2,3,NULL,72,596,2,5,0,0,1,0,1,'/1/',NULL,1,NULL,1,0,0,0,NULL),(23,NULL,'CAMARA',13,14,NULL,72,3758,2,6,1,1,2,0,37,'/1/37/',NULL,0,NULL,0,1,1,1,NULL),(31,'IT','INFORMATICA',4,5,NULL,72,127,3,9,0,0,1,0,1,'/1/','informatica-cau',1,NULL,1,0,0,0,NULL),(34,NULL,'CONTABILIDAD',6,7,NULL,0,NULL,NULL,NULL,0,0,1,0,1,'/1/',NULL,1,NULL,1,0,0,0,NULL),(35,NULL,'FINANZAS',8,9,NULL,0,NULL,NULL,NULL,0,0,1,0,1,'/1/',NULL,1,NULL,1,0,0,0,NULL),(36,NULL,'LABORAL',10,11,NULL,0,NULL,NULL,NULL,0,0,1,0,1,'/1/',NULL,1,NULL,1,0,0,0,NULL),(37,NULL,'PRODUCCION',12,31,NULL,72,3758,3,11,1,1,1,8,1,'/1/',NULL,0,NULL,0,1,1,1,NULL),(38,NULL,'SACADO',15,16,NULL,72,230,4,14,1,0,2,0,37,'/1/37/',NULL,0,NULL,0,0,0,0,NULL),(39,NULL,'ENCAJADO',17,18,NULL,72,3758,4,12,1,0,2,0,37,'/1/37/',NULL,0,NULL,0,0,0,0,NULL),(41,NULL,'ADMINISTRACION',32,33,NULL,72,599,3,8,0,0,1,0,1,'/1/',NULL,1,NULL,1,0,0,0,NULL),(43,'VT','VENTAS',34,53,NULL,0,NULL,NULL,NULL,0,0,1,9,1,'/1/',NULL,1,'',1,0,0,0,NULL),(44,NULL,'GERENCIA',54,55,NULL,72,300,2,7,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL),(45,NULL,'LOGISTICA',56,57,NULL,72,596,3,19,0,0,1,0,1,'/1/',NULL,1,NULL,1,0,0,0,NULL),(46,NULL,'REPARTO',58,59,NULL,72,659,3,10,0,0,1,0,1,'/1/',NULL,0,NULL,0,1,0,0,NULL),(48,NULL,'ALMACENAJE',60,61,NULL,0,3758,NULL,NULL,1,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL),(49,NULL,'PROPIEDAD',62,63,NULL,72,1008,1,1,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL),(52,NULL,'CARGA AEREA',64,65,NULL,72,163,4,28,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL),(53,NULL,'MARKETING Y COMUNICACIÓN',66,67,NULL,72,1238,0,0,0,0,1,0,1,'/1/',NULL,1,NULL,1,0,0,0,NULL),(54,NULL,'ORNAMENTALES',68,69,NULL,72,433,3,21,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL),(55,NULL,'TALLER NATURAL',19,22,3366,72,3758,2,23,0,0,2,1,37,'/1/37/',NULL,0,NULL,0,1,1,0,1118),(56,NULL,'TALLER ARTIFICIAL',20,21,8470,72,1780,2,24,0,0,3,0,55,'/1/37/55/',NULL,0,NULL,0,1,1,0,1927),(58,NULL,'CAMPOS',70,73,NULL,72,3758,2,2,0,0,1,1,1,'/1/',NULL,0,NULL,0,0,0,0,NULL),(59,NULL,'MANTENIMIENTO',74,75,NULL,72,1907,4,16,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL),(60,NULL,'RECLAMACIONES',76,77,NULL,72,563,3,20,0,0,1,0,1,'/1/',NULL,1,NULL,1,0,0,0,NULL),(61,NULL,'VNH',78,79,NULL,73,1297,3,17,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL),(63,NULL,'VENTAS FRANCIA',35,36,NULL,72,277,2,27,0,0,2,0,43,'/1/43/',NULL,0,NULL,0,0,0,0,NULL),(66,NULL,'VERDNAMADRID',80,81,NULL,72,163,3,18,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL),(68,NULL,'COMPLEMENTOS',23,24,NULL,72,617,3,26,1,0,2,0,37,'/1/37/',NULL,0,NULL,0,0,0,0,NULL),(69,NULL,'VERDNABARNA',82,83,NULL,74,432,3,22,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL),(80,NULL,'EQUIPO J VALLES',37,38,4250,72,693,3,4,0,0,2,0,43,'/1/43/','jvp_equipo',1,'gestioncomercial@verdnatura.es',1,0,0,0,NULL),(86,NULL,'LIMPIEZA',84,85,NULL,72,599,0,0,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL),(89,NULL,'COORDINACION',86,87,NULL,0,3758,NULL,NULL,1,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL),(90,NULL,'TRAILER',88,89,NULL,0,NULL,NULL,NULL,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL),(91,NULL,'ARTIFICIAL',25,26,NULL,0,3758,NULL,NULL,1,0,2,0,37,'/1/37/',NULL,0,NULL,0,0,0,0,NULL),(92,NULL,'EQUIPO SILVERIO',39,40,1203,0,NULL,NULL,NULL,0,0,2,0,43,'/1/43/','sdc_equipo',1,'gestioncomercial@verdnatura.es',1,0,0,0,NULL),(93,NULL,'CONFECCION',90,91,NULL,0,3758,NULL,NULL,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,1,0,NULL),(94,NULL,'EQUIPO J BROCAL',41,42,3797,0,NULL,NULL,NULL,0,0,2,0,43,'/1/43/','jes_equipo',1,'gestioncomercial@verdnatura.es',1,0,0,0,NULL),(95,NULL,'EQUIPO C ZAMBRANO',43,44,4667,0,NULL,NULL,NULL,0,0,2,0,43,'/1/43/','czg_equipo',1,'gestioncomercial@verdnatura.es',1,0,0,0,NULL),(96,NULL,'EQUIPO C LOPEZ',45,46,4661,0,NULL,NULL,NULL,0,0,2,0,43,'/1/43/','cla_equipo',1,'gestioncomercial@verdnatura.es',1,0,0,0,NULL),(115,NULL,'EQUIPO CLAUDI',47,48,3810,0,NULL,NULL,NULL,0,0,2,0,43,'/1/43/','csr_equipo',1,'gestioncomercial@verdnatura.es',1,0,0,0,NULL),(123,NULL,'EQUIPO ELENA BASCUÑANA',49,50,7102,0,NULL,NULL,NULL,0,0,2,0,43,'/1/43/','ebt_equipo',1,'gestioncomercial@verdnatura.es',1,0,0,0,NULL),(124,NULL,'CONTROL INTERNO',92,93,NULL,72,NULL,NULL,NULL,0,0,1,0,1,'/1/',NULL,0,NULL,1,0,0,0,NULL),(125,NULL,'EQUIPO MIRIAM MAR',51,52,1118,0,NULL,NULL,NULL,0,0,2,0,43,'/1/43/','mir_equipo',1,'gestioncomercial@verdnatura.es',1,0,0,0,NULL),(126,NULL,'PRESERVADO',94,95,NULL,0,NULL,NULL,NULL,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,1,0,NULL),(128,NULL,'PALETIZADO',27,28,NULL,0,NULL,NULL,NULL,0,0,2,0,37,'/1/37/',NULL,0,NULL,0,0,0,0,NULL),(130,NULL,'REVISION',29,30,NULL,0,NULL,NULL,NULL,0,0,2,0,37,'/1/37/',NULL,0,NULL,0,0,0,0,NULL),(131,NULL,'INVERNADERO',71,72,NULL,0,NULL,NULL,NULL,0,0,2,0,58,'/1/58/',NULL,0,NULL,0,0,0,0,NULL);
+INSERT INTO `department` VALUES
+(1,NULL,'VERDNATURA',1,96,763,0,0,0,0,29,NULL,'/',NULL,0,NULL,0,0,0,0,NULL),
+(22,NULL,'COMPRAS',2,3,NULL,72,0,0,1,0,1,'/1/',NULL,1,NULL,1,0,0,0,NULL),
+(23,'CMA','CAMARA',13,14,NULL,72,1,1,2,0,37,'/1/37/',NULL,0,NULL,0,1,1,1,NULL),
+(31,'IT','INFORMATICA',4,5,NULL,72,0,0,1,0,1,'/1/','informatica-cau',1,NULL,1,0,0,0,NULL),
+(34,NULL,'CONTABILIDAD',6,7,NULL,0,0,0,1,0,1,'/1/',NULL,1,NULL,1,0,0,0,NULL),
+(35,NULL,'FINANZAS',8,9,NULL,0,0,0,1,0,1,'/1/',NULL,1,'begonya@verdnatura.es',1,0,0,0,NULL),
+(36,NULL,'LABORAL',10,11,NULL,0,0,0,1,0,1,'/1/',NULL,1,NULL,1,0,0,0,NULL),
+(37,'PROD','PRODUCCION',12,27,NULL,72,1,1,1,7,1,'/1/',NULL,0,NULL,0,1,1,1,NULL),
+(38,NULL,'SACADO',15,16,NULL,72,1,0,2,0,37,'/1/37/',NULL,0,NULL,0,0,0,0,NULL),
+(39,NULL,'ENCAJADO',17,18,NULL,72,1,0,2,0,37,'/1/37/',NULL,0,NULL,0,0,0,0,NULL),
+(41,NULL,'ADMINISTRACION',28,29,NULL,72,0,0,1,0,1,'/1/',NULL,1,NULL,1,0,0,0,NULL),
+(43,'VT','VENTAS',30,49,NULL,0,0,0,1,9,1,'/1/',NULL,1,'',1,0,0,0,NULL),
+(44,NULL,'GERENCIA',50,51,NULL,72,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL),
+(45,NULL,'LOGISTICA',52,53,NULL,72,0,0,1,0,1,'/1/',NULL,1,NULL,1,0,0,0,NULL),
+(46,NULL,'REPARTO',54,55,NULL,72,0,0,1,0,1,'/1/',NULL,0,NULL,0,1,0,0,NULL),
+(48,NULL,'ALMACENAJE',56,57,NULL,0,1,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL),
+(49,NULL,'PROPIEDAD',58,59,NULL,72,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL),
+(52,NULL,'CARGA AEREA',60,61,NULL,72,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL),
+(53,NULL,'MARKETING Y COMUNICACIÓN',62,63,NULL,72,0,0,1,0,1,'/1/',NULL,1,NULL,1,0,0,0,NULL),
+(54,NULL,'ORNAMENTALES',64,65,NULL,72,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL),
+(55,NULL,'TALLER NATURAL',66,69,3366,72,0,0,1,1,1,'/1/',NULL,0,NULL,0,1,1,0,1118),
+(56,NULL,'TALLER ARTIFICIAL',67,68,8470,72,0,0,2,0,55,'/1/55/',NULL,0,NULL,0,1,1,0,1927),
+(58,'CMP','CAMPOS',70,73,NULL,72,0,0,1,1,1,'/1/',NULL,0,NULL,0,0,0,0,NULL),
+(59,NULL,'MANTENIMIENTO',74,75,NULL,72,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL),
+(60,NULL,'RECLAMACIONES',76,77,NULL,72,0,0,1,0,1,'/1/',NULL,1,NULL,1,0,0,0,NULL),
+(61,NULL,'VNH',78,79,NULL,73,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL),
+(63,NULL,'VENTAS FRANCIA',31,32,NULL,72,0,0,2,0,43,'/1/43/',NULL,0,NULL,0,0,0,0,NULL),
+(66,NULL,'VERDNAMADRID',80,81,NULL,72,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL),
+(68,NULL,'COMPLEMENTOS',19,20,NULL,72,1,0,2,0,37,'/1/37/',NULL,0,NULL,0,1,0,0,NULL),
+(69,NULL,'VERDNABARNA',82,83,NULL,74,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL),
+(80,NULL,'EQUIPO J VALLES',33,34,4250,72,0,0,2,0,43,'/1/43/','jvp_equipo',1,'gestioncomercial@verdnatura.es',1,0,0,0,NULL),
+(86,NULL,'LIMPIEZA',84,85,NULL,72,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL),
+(89,NULL,'COORDINACION',86,87,NULL,0,1,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL),
+(90,NULL,'TRAILER',88,89,NULL,0,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,0,0,NULL),
+(91,NULL,'ARTIFICIAL',21,22,NULL,0,1,0,2,0,37,'/1/37/',NULL,0,NULL,0,0,0,0,NULL),
+(92,NULL,'EQUIPO SILVERIO',35,36,1203,0,0,0,2,0,43,'/1/43/','sdc_equipo',1,'gestioncomercial@verdnatura.es',1,0,0,0,NULL),
+(93,NULL,'CONFECCION',90,91,NULL,0,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,1,0,NULL),
+(94,NULL,'EQUIPO J BROCAL',37,38,3797,0,0,0,2,0,43,'/1/43/','jes_equipo',1,'gestioncomercial@verdnatura.es',1,0,0,0,NULL),
+(95,NULL,'EQUIPO C ZAMBRANO',39,40,4667,0,0,0,2,0,43,'/1/43/','czg_equipo',1,'gestioncomercial@verdnatura.es',1,0,0,0,NULL),
+(96,NULL,'EQUIPO C LOPEZ',41,42,4661,0,0,0,2,0,43,'/1/43/','cla_equipo',1,'gestioncomercial@verdnatura.es',1,0,0,0,NULL),
+(115,NULL,'EQUIPO CLAUDI',43,44,3810,0,0,0,2,0,43,'/1/43/','csr_equipo',1,'gestioncomercial@verdnatura.es',1,0,0,0,NULL),
+(123,NULL,'EQUIPO ELENA BASCUÑANA',45,46,7102,0,0,0,2,0,43,'/1/43/','ebt_equipo',1,'gestioncomercial@verdnatura.es',1,0,0,0,NULL),
+(124,NULL,'CONTROL INTERNO',92,93,NULL,72,0,0,1,0,1,'/1/',NULL,0,NULL,1,0,0,0,NULL),
+(125,NULL,'EQUIPO MIRIAM MAR',47,48,1118,0,0,0,2,0,43,'/1/43/','mir_equipo',1,'gestioncomercial@verdnatura.es',1,0,0,0,NULL),
+(126,NULL,'PRESERVADO',94,95,NULL,0,0,0,1,0,1,'/1/',NULL,0,NULL,0,0,1,0,NULL),
+(128,NULL,'PALETIZADO',23,24,NULL,0,0,0,2,0,37,'/1/37/',NULL,0,NULL,0,0,0,0,NULL),
+(130,NULL,'REVISION',25,26,NULL,0,0,0,2,0,37,'/1/37/',NULL,0,NULL,0,0,0,0,NULL),
+(131,NULL,'INVERNADERO',71,72,NULL,0,0,0,2,0,58,'/1/58/',NULL,0,NULL,0,0,0,0,NULL);
/*!40000 ALTER TABLE `department` ENABLE KEYS */;
UNLOCK TABLES;
@@ -400,7 +2801,11 @@ UNLOCK TABLES;
LOCK TABLES `itemPackingType` WRITE;
/*!40000 ALTER TABLE `itemPackingType` DISABLE KEYS */;
-INSERT INTO `itemPackingType` VALUES ('F','Fruta y Verdura'),('H','Horizontal'),('P','Pienso'),('V','Vertical');
+INSERT INTO `itemPackingType` VALUES
+('F','Fruta y Verdura'),
+('H','Horizontal'),
+('P','Pienso'),
+('V','Vertical');
/*!40000 ALTER TABLE `itemPackingType` ENABLE KEYS */;
UNLOCK TABLES;
@@ -410,7 +2815,31 @@ UNLOCK TABLES;
LOCK TABLES `pgc` WRITE;
/*!40000 ALTER TABLE `pgc` DISABLE KEYS */;
-INSERT INTO `pgc` VALUES ('4722000000',0.00,'Importación Exento ',1,0,0,1,0),('4722000010',10.00,'Importación Reducido ',1,0,0,1,0),('4722000021',21.00,'Importación General ',1,0,0,1,0),('4770000001',8.00,'Reducido',1,1,1,1,0),('4770000002',0.00,'Extra-Community supply',3,1,0,2,0),('4770000004',4.00,'Super reducido',1,1,1,1,0),('4770000010',10.00,'Reducido',1,1,1,1,0),('4770000020',0.00,'Exento',7,1,1,1,0),('4770000021',21.00,'General',1,1,1,1,0),('4770000101',10.00,'Reducido ',1,1,1,1,0),('4770000108',8.00,'Reducido',1,1,1,1,0),('4770000110',1.40,'Rec. Eq. Reducido',1,0,0,1,1),('4770000215',21.00,'General',1,1,1,1,0),('4770000405',0.50,'Rec. Eq. Super Reducido',1,0,0,1,1),('4770000504',4.00,'Super reducido',1,1,1,1,0),('4770000521',5.20,'Rec. Eq. General',1,0,0,1,1),('4770000701',1.00,'Rec. Eq. Reducido',1,0,0,1,1),('4771000000',0.00,'Intra-Community supply',6,1,1,1,0),('4771000001',0.00,'Intra-Community services',7,1,1,1,0),('HolandaGEN',21.00,'General',1,0,0,1,0),('HolandaRED',9.00,'Reducido',1,0,0,1,0),('IGIC cero',0.00,'Cero',1,0,0,1,0),('IGIC gener',6.50,'General',1,0,0,1,0),('IGIC reduc',3.00,'Reducido',1,0,0,1,0);
+INSERT INTO `pgc` VALUES
+('4722000000',0.00,'Importación Exento ',1,0,0,1,0),
+('4722000010',10.00,'Importación Reducido ',1,0,0,1,0),
+('4722000021',21.00,'Importación General ',1,0,0,1,0),
+('4770000001',8.00,'Reducido',1,1,1,1,0),
+('4770000002',0.00,'Extra-Community supply',3,1,0,2,0),
+('4770000004',4.00,'Super reducido',1,1,1,1,0),
+('4770000010',10.00,'Reducido',1,1,1,1,0),
+('4770000020',0.00,'Exento',7,1,1,1,0),
+('4770000021',21.00,'General',1,1,1,1,0),
+('4770000101',10.00,'Reducido ',1,1,1,1,0),
+('4770000108',8.00,'Reducido',1,1,1,1,0),
+('4770000110',1.40,'Rec. Eq. Reducido',1,0,0,1,1),
+('4770000215',21.00,'General',1,1,1,1,0),
+('4770000405',0.50,'Rec. Eq. Super Reducido',1,0,0,1,1),
+('4770000504',4.00,'Super reducido',1,1,1,1,0),
+('4770000521',5.20,'Rec. Eq. General',1,0,0,1,1),
+('4770000701',1.00,'Rec. Eq. Reducido',1,0,0,1,1),
+('4771000000',0.00,'Intra-Community supply',6,1,1,1,0),
+('4771000001',0.00,'Intra-Community services',7,1,1,1,0),
+('HolandaGEN',21.00,'General',1,0,0,1,0),
+('HolandaRED',9.00,'Reducido',1,0,0,1,0),
+('IGIC cero',0.00,'Cero',1,0,0,1,0),
+('IGIC gener',6.50,'General',1,0,0,1,0),
+('IGIC reduc',3.00,'Reducido',1,0,0,1,0);
/*!40000 ALTER TABLE `pgc` ENABLE KEYS */;
UNLOCK TABLES;
@@ -420,7 +2849,27 @@ UNLOCK TABLES;
LOCK TABLES `sample` WRITE;
/*!40000 ALTER TABLE `sample` DISABLE KEYS */;
-INSERT INTO `sample` VALUES (1,'Carta_1','Aviso inicial por saldo deudor',0,0,1,0),(2,'Carta_2','Reiteracion de aviso por saldo deudor',0,0,1,0),(3,'Cred_Up','Notificación de aumento de crédito',0,0,1,0),(4,'Cred_down','Notificación de reducción de crédito',0,0,1,0),(5,'Pet_CC','Petición de datos bancarios B2B',0,0,1,0),(6,'SolCredito','Solicitud de crédito',0,0,1,0),(7,'LeyPago','Ley de pagos',0,0,1,0),(8,'Pet_CC_Core','Petición de datos bancarios CORE',0,0,1,0),(9,'nueva_alta','Documento de nueva alta de cliente',0,0,1,0),(10,'client_welcome','Email de bienvenida para nuevo cliente',0,0,1,0),(11,'setup_printer','Email de instalación de impresora',0,0,1,0),(12,'client-welcome','Bienvenida como nuevo cliente',1,0,1,0),(13,'printer-setup','Instalación y configuración de impresora de coronas',1,0,1,0),(14,'sepa-core','Solicitud de domiciliación bancaria',1,1,0,0),(15,'letter-debtor-st','Aviso inicial por saldo deudor',1,1,1,0),(16,'letter-debtor-nd','Aviso reiterado por saldo deudor',1,1,1,0),(17,'client-lcr','Email de solicitud de datos bancarios LCR',0,1,1,0),(18,'client-debt-statement','Extracto del cliente',1,0,1,1),(19,'credit-request','Solicitud de crédito',1,1,1,0),(20,'incoterms-authorization','Autorización de incoterms',1,1,1,0);
+INSERT INTO `sample` VALUES
+(1,'Carta_1','Aviso inicial por saldo deudor',0,0,1,0,NULL),
+(2,'Carta_2','Reiteracion de aviso por saldo deudor',0,0,1,0,NULL),
+(3,'Cred_Up','Notificación de aumento de crédito',0,0,1,0,NULL),
+(4,'Cred_down','Notificación de reducción de crédito',0,0,1,0,NULL),
+(5,'Pet_CC','Petición de datos bancarios B2B',0,0,1,0,NULL),
+(6,'SolCredito','Solicitud de crédito',0,0,1,0,NULL),
+(7,'LeyPago','Ley de pagos',0,0,1,0,NULL),
+(8,'Pet_CC_Core','Petición de datos bancarios CORE',0,0,1,0,NULL),
+(9,'nueva_alta','Documento de nueva alta de cliente',0,0,1,0,NULL),
+(10,'client_welcome','Email de bienvenida para nuevo cliente',0,0,1,0,NULL),
+(11,'setup_printer','Email de instalación de impresora',0,0,1,0,NULL),
+(12,'client-welcome','Bienvenida como nuevo cliente',1,0,1,0,'Clients'),
+(13,'printer-setup','Instalación y configuración de impresora de coronas',1,0,1,0,'Clients'),
+(14,'sepa-core','Solicitud de domiciliación bancaria',1,1,0,0,'Clients'),
+(15,'letter-debtor-st','Aviso inicial por saldo deudor',1,1,1,0,'Clients'),
+(16,'letter-debtor-nd','Aviso reiterado por saldo deudor',1,1,1,0,'Clients'),
+(17,'client-lcr','Email de solicitud de datos bancarios LCR',0,1,1,0,NULL),
+(18,'client-debt-statement','Extracto del cliente',1,0,1,1,'Clients'),
+(19,'credit-request','Solicitud de crédito',1,1,1,0,'Clients'),
+(20,'incoterms-authorization','Autorización de incoterms',1,1,1,0,'Clients');
/*!40000 ALTER TABLE `sample` ENABLE KEYS */;
UNLOCK TABLES;
@@ -430,7 +2879,42 @@ UNLOCK TABLES;
LOCK TABLES `state` WRITE;
/*!40000 ALTER TABLE `state` DISABLE KEYS */;
-INSERT INTO `state` VALUES (1,'Arreglar',2,0,'FIXING',NULL,1,0,0,0,0,0,0,4,1,'alert'),(2,'Libre',2,0,'FREE',NULL,2,1,0,0,0,1,0,4,1,'notice'),(3,'OK',3,0,'OK',3,28,1,0,0,0,1,1,3,0,'success'),(4,'Impreso',4,0,'PRINTED',2,29,1,0,1,0,0,1,2,0,'success'),(5,'Preparación',6,1,'ON_PREPARATION',7,5,0,0,0,2,0,0,2,0,'warning'),(6,'En Revisión',7,1,'ON_CHECKING',NULL,6,0,1,0,3,0,0,1,0,'warning'),(7,'Sin Acabar',1,0,'NOT_READY',NULL,7,0,0,0,0,0,0,4,1,'alert'),(8,'Revisado',8,1,'CHECKED',NULL,8,0,1,0,3,0,0,1,0,'warning'),(9,'Encajando',9,2,'PACKING',NULL,9,0,1,0,0,0,0,1,0,NULL),(10,'Encajado',10,2,'PACKED',NULL,10,0,1,0,0,0,0,0,0,NULL),(11,'Facturado',0,3,'INVOICED',NULL,11,0,1,0,0,0,0,0,0,NULL),(12,'Bloqueado',0,0,'BLOCKED',NULL,12,0,0,0,0,0,0,4,1,'alert'),(13,'En Reparto',11,3,'ON_DELIVERY',NULL,13,0,1,0,0,0,0,0,0,NULL),(14,'Preparado',6,1,'PREPARED',NULL,14,0,1,0,2,0,0,1,0,'warning'),(15,'Pte Recogida',12,3,'WAITING_FOR_PICKUP',NULL,15,0,1,0,0,0,0,0,0,NULL),(16,'Entregado',13,3,'DELIVERED',NULL,16,0,1,0,0,0,0,0,0,NULL),(20,'Asignado',4,0,'PICKER_DESIGNED',NULL,20,1,0,0,0,0,0,2,0,'success'),(21,'Retornado',4,1,'PRINTED_BACK',6,21,0,0,0,0,0,0,2,0,'success'),(22,'Pte. Ampliar',2,0,'EXPANDABLE',NULL,22,0,0,0,0,0,0,4,1,'alert'),(23,'URGENTE',5,1,'LAST_CALL',NULL,23,1,0,1,0,0,0,4,1,'success'),(24,'Encadenado',4,0,'CHAINED',4,24,0,0,0,0,0,0,3,1,'success'),(25,'Embarcando',3,0,'BOARDING',5,25,1,0,0,0,0,0,3,0,'alert'),(26,'Prep Previa',5,1,'PREVIOUS_PREPARATION',1,28,0,0,0,1,0,0,2,0,'warning'),(27,'Prep Asistida',5,1,'ASSISTED_PREPARATION',7,27,0,0,0,0,0,0,2,0,'success'),(28,'Previa OK',3,0,'OK PREVIOUS',3,28,1,0,0,1,1,1,3,0,'warning'),(29,'Previa Impreso',4,0,'PRINTED PREVIOUS',2,29,1,0,1,0,0,1,2,0,'success'),(30,'Embarcado',4,1,'BOARD',5,30,0,0,0,2,0,0,3,0,'success'),(31,'Polizon Impreso',4,1,'PRINTED STOWAWAY',2,29,1,0,1,0,0,1,2,0,'success'),(32,'Polizon OK',3,1,'OK STOWAWAY',3,31,1,0,0,1,1,1,3,0,'warning'),(33,'Auto_Impreso',4,0,'PRINTED_AUTO',2,29,1,0,1,0,0,1,2,0,'success'),(34,'Pte Pago',3,0,'WAITING_FOR_PAYMENT',NULL,34,0,0,0,0,0,0,4,1,'alert'),(35,'Semi-Encajado',9,2,'HALF_PACKED',NULL,10,0,1,0,0,0,0,1,0,NULL),(36,'Previa Revisando',3,0,'PREVIOUS_CONTROL',2,37,1,0,0,4,0,1,2,0,'warning'),(37,'Previa Revisado',3,0,'PREVIOUS_CONTROLLED',2,29,1,0,1,0,0,1,2,0,'warning');
+INSERT INTO `state` VALUES
+(1,'Arreglar',2,0,'FIXING',NULL,1,0,0,0,0,0,0,4,1,'alert'),
+(2,'Libre',2,0,'FREE',NULL,2,1,0,0,0,1,0,4,1,'notice'),
+(3,'OK',3,0,'OK',3,28,1,0,0,0,1,1,3,0,'success'),
+(4,'Impreso',4,0,'PRINTED',2,29,1,0,1,0,0,1,2,0,'success'),
+(5,'Preparación',6,1,'ON_PREPARATION',7,14,0,0,0,2,0,0,2,0,'warning'),
+(6,'En Revisión',7,1,'ON_CHECKING',NULL,6,0,1,0,3,0,0,1,0,'warning'),
+(7,'Sin Acabar',1,0,'NOT_READY',NULL,7,0,0,0,0,0,0,4,1,'alert'),
+(8,'Revisado',8,1,'CHECKED',NULL,8,0,1,0,3,0,0,1,0,'warning'),
+(9,'Encajando',9,2,'PACKING',NULL,9,0,1,0,0,0,0,1,0,NULL),
+(10,'Encajado',10,2,'PACKED',NULL,10,0,1,0,0,0,0,0,0,NULL),
+(11,'Facturado',0,3,'INVOICED',NULL,11,0,1,0,0,0,0,0,0,NULL),
+(12,'Bloqueado',0,0,'BLOCKED',NULL,12,0,0,0,0,0,0,4,1,'alert'),
+(13,'En Reparto',11,3,'ON_DELIVERY',NULL,13,0,1,0,0,0,0,0,0,NULL),
+(14,'Preparado',6,1,'PREPARED',NULL,14,0,1,0,2,0,0,1,0,'warning'),
+(15,'Pte Recogida',12,3,'WAITING_FOR_PICKUP',NULL,15,0,1,0,0,0,0,0,0,NULL),
+(16,'Entregado',13,3,'DELIVERED',NULL,16,0,1,0,0,0,0,0,0,NULL),
+(20,'Asignado',4,0,'PICKER_DESIGNED',NULL,20,1,0,0,0,0,0,2,0,'success'),
+(21,'Retornado',4,1,'PRINTED_BACK',6,21,0,0,0,0,0,0,2,0,'success'),
+(22,'Pte. Ampliar',2,0,'EXPANDABLE',NULL,22,0,0,0,0,0,0,4,1,'alert'),
+(23,'URGENTE',5,1,'LAST_CALL',NULL,23,1,0,1,0,0,0,4,1,'success'),
+(24,'Encadenado',4,0,'CHAINED',4,24,0,0,0,0,0,0,3,1,'success'),
+(25,'Embarcando',3,0,'BOARDING',5,25,1,0,0,0,0,0,3,0,'alert'),
+(26,'Prep Previa',5,1,'PREVIOUS_PREPARATION',1,28,1,0,0,1,0,0,2,0,'warning'),
+(27,'Prep Asistida',5,1,'ASSISTED_PREPARATION',7,27,0,0,0,0,0,0,2,0,'success'),
+(28,'Previa OK',3,0,'OK PREVIOUS',3,28,1,0,1,1,1,1,3,0,'warning'),
+(29,'Previa Impreso',4,0,'PRINTED PREVIOUS',2,29,1,0,1,0,0,1,2,0,'success'),
+(30,'Embarcado',4,1,'BOARD',5,30,0,0,0,2,0,0,3,0,'success'),
+(31,'Polizon Impreso',4,1,'PRINTED STOWAWAY',2,29,1,0,1,0,0,1,2,0,'success'),
+(32,'Polizon OK',3,1,'OK STOWAWAY',3,31,1,0,0,1,1,1,3,0,'warning'),
+(33,'Auto_Impreso',4,0,'PRINTED_AUTO',2,29,1,0,1,0,0,1,2,0,'success'),
+(34,'Pte Pago',3,0,'WAITING_FOR_PAYMENT',NULL,34,0,0,0,0,0,0,4,1,'alert'),
+(35,'Semi-Encajado',9,2,'HALF_PACKED',NULL,10,0,1,0,0,0,0,1,0,NULL),
+(36,'Previa Revisando',3,0,'PREVIOUS_CONTROL',2,37,1,0,0,4,0,1,2,0,'warning'),
+(37,'Previa Revisado',3,0,'PREVIOUS_CONTROLLED',2,29,1,0,1,0,0,1,2,0,'warning'),
+(38,'Prep Cámara',6,1,'COOLER_PREPARATION',7,14,0,0,0,2,0,0,2,0,'warning');
/*!40000 ALTER TABLE `state` ENABLE KEYS */;
UNLOCK TABLES;
@@ -440,7 +2924,9 @@ UNLOCK TABLES;
LOCK TABLES `ticketUpdateAction` WRITE;
/*!40000 ALTER TABLE `ticketUpdateAction` DISABLE KEYS */;
-INSERT INTO `ticketUpdateAction` VALUES (1,'Cambiar los precios en el ticket','changePrice'),(3,'Convertir en maná','turnInMana');
+INSERT INTO `ticketUpdateAction` VALUES
+(1,'Cambiar los precios en el ticket','changePrice'),
+(3,'Convertir en maná','turnInMana');
/*!40000 ALTER TABLE `ticketUpdateAction` ENABLE KEYS */;
UNLOCK TABLES;
@@ -450,7 +2936,10600 @@ UNLOCK TABLES;
LOCK TABLES `time` WRITE;
/*!40000 ALTER TABLE `time` DISABLE KEYS */;
-INSERT INTO `time` VALUES ('2007-12-31',200801,12,2007,31,1,200712,2008),('2008-01-01',200801,1,2008,1,1,200801,2008),('2008-01-02',200801,1,2008,2,1,200801,2008),('2008-01-03',200801,1,2008,3,1,200801,2008),('2008-01-04',200801,1,2008,4,1,200801,2008),('2008-01-05',200801,1,2008,5,1,200801,2008),('2008-01-06',200802,1,2008,6,2,200801,2008),('2008-01-07',200802,1,2008,7,2,200801,2008),('2008-01-08',200802,1,2008,8,2,200801,2008),('2008-01-09',200802,1,2008,9,2,200801,2008),('2008-01-10',200802,1,2008,10,2,200801,2008),('2008-01-11',200802,1,2008,11,2,200801,2008),('2008-01-12',200802,1,2008,12,2,200801,2008),('2008-01-13',200803,1,2008,13,3,200801,2008),('2008-01-14',200803,1,2008,14,3,200801,2008),('2008-01-15',200803,1,2008,15,3,200801,2008),('2008-01-16',200803,1,2008,16,3,200801,2008),('2008-01-17',200803,1,2008,17,3,200801,2008),('2008-01-18',200803,1,2008,18,3,200801,2008),('2008-01-19',200803,1,2008,19,3,200801,2008),('2008-01-20',200804,1,2008,20,4,200801,2008),('2008-01-21',200804,1,2008,21,4,200801,2008),('2008-01-22',200804,1,2008,22,4,200801,2008),('2008-01-23',200804,1,2008,23,4,200801,2008),('2008-01-24',200804,1,2008,24,4,200801,2008),('2008-01-25',200804,1,2008,25,4,200801,2008),('2008-01-26',200804,1,2008,26,4,200801,2008),('2008-01-27',200805,1,2008,27,5,200801,2008),('2008-01-28',200805,1,2008,28,5,200801,2008),('2008-01-29',200805,1,2008,29,5,200801,2008),('2008-01-30',200805,1,2008,30,5,200801,2008),('2008-01-31',200805,1,2008,31,5,200801,2008),('2008-02-01',200805,2,2008,1,5,200802,2008),('2008-02-02',200805,2,2008,2,5,200802,2008),('2008-02-03',200806,2,2008,3,6,200802,2008),('2008-02-04',200806,2,2008,4,6,200802,2008),('2008-02-05',200806,2,2008,5,6,200802,2008),('2008-02-06',200806,2,2008,6,6,200802,2008),('2008-02-07',200806,2,2008,7,6,200802,2008),('2008-02-08',200806,2,2008,8,6,200802,2008),('2008-02-09',200806,2,2008,9,6,200802,2008),('2008-02-10',200807,2,2008,10,7,200802,2008),('2008-02-11',200807,2,2008,11,7,200802,2008),('2008-02-12',200807,2,2008,12,7,200802,2008),('2008-02-13',200807,2,2008,13,7,200802,2008),('2008-02-14',200807,2,2008,14,7,200802,2008),('2008-02-15',200807,2,2008,15,7,200802,2008),('2008-02-16',200807,2,2008,16,7,200802,2008),('2008-02-17',200808,2,2008,17,8,200802,2008),('2008-02-18',200808,2,2008,18,8,200802,2008),('2008-02-19',200808,2,2008,19,8,200802,2008),('2008-02-20',200808,2,2008,20,8,200802,2008),('2008-02-21',200808,2,2008,21,8,200802,2008),('2008-02-22',200808,2,2008,22,8,200802,2008),('2008-02-23',200808,2,2008,23,8,200802,2008),('2008-02-24',200809,2,2008,24,9,200802,2008),('2008-02-25',200809,2,2008,25,9,200802,2008),('2008-02-26',200809,2,2008,26,9,200802,2008),('2008-02-27',200809,2,2008,27,9,200802,2008),('2008-02-28',200809,2,2008,28,9,200802,2008),('2008-02-29',200809,2,2008,29,9,200802,2008),('2008-03-01',200809,3,2008,1,9,200803,2008),('2008-03-02',200810,3,2008,2,10,200803,2008),('2008-03-03',200810,3,2008,3,10,200803,2008),('2008-03-04',200810,3,2008,4,10,200803,2008),('2008-03-05',200810,3,2008,5,10,200803,2008),('2008-03-06',200810,3,2008,6,10,200803,2008),('2008-03-07',200810,3,2008,7,10,200803,2008),('2008-03-08',200810,3,2008,8,10,200803,2008),('2008-03-09',200811,3,2008,9,11,200803,2008),('2008-03-10',200811,3,2008,10,11,200803,2008),('2008-03-11',200811,3,2008,11,11,200803,2008),('2008-03-12',200811,3,2008,12,11,200803,2008),('2008-03-13',200811,3,2008,13,11,200803,2008),('2008-03-14',200811,3,2008,14,11,200803,2008),('2008-03-15',200811,3,2008,15,11,200803,2008),('2008-03-16',200812,3,2008,16,12,200803,2008),('2008-03-17',200812,3,2008,17,12,200803,2008),('2008-03-18',200812,3,2008,18,12,200803,2008),('2008-03-19',200812,3,2008,19,12,200803,2008),('2008-03-20',200812,3,2008,20,12,200803,2008),('2008-03-21',200812,3,2008,21,12,200803,2008),('2008-03-22',200812,3,2008,22,12,200803,2008),('2008-03-23',200813,3,2008,23,13,200803,2008),('2008-03-24',200813,3,2008,24,13,200803,2008),('2008-03-25',200813,3,2008,25,13,200803,2008),('2008-03-26',200813,3,2008,26,13,200803,2008),('2008-03-27',200813,3,2008,27,13,200803,2008),('2008-03-28',200813,3,2008,28,13,200803,2008),('2008-03-29',200813,3,2008,29,13,200803,2008),('2008-03-30',200814,3,2008,30,14,200803,2008),('2008-03-31',200814,3,2008,31,14,200803,2008),('2008-04-01',200814,4,2008,1,14,200804,2008),('2008-04-02',200814,4,2008,2,14,200804,2008),('2008-04-03',200814,4,2008,3,14,200804,2008),('2008-04-04',200814,4,2008,4,14,200804,2008),('2008-04-05',200814,4,2008,5,14,200804,2008),('2008-04-06',200815,4,2008,6,15,200804,2008),('2008-04-07',200815,4,2008,7,15,200804,2008),('2008-04-08',200815,4,2008,8,15,200804,2008),('2008-04-09',200815,4,2008,9,15,200804,2008),('2008-04-10',200815,4,2008,10,15,200804,2008),('2008-04-11',200815,4,2008,11,15,200804,2008),('2008-04-12',200815,4,2008,12,15,200804,2008),('2008-04-13',200816,4,2008,13,16,200804,2008),('2008-04-14',200816,4,2008,14,16,200804,2008),('2008-04-15',200816,4,2008,15,16,200804,2008),('2008-04-16',200816,4,2008,16,16,200804,2008),('2008-04-17',200816,4,2008,17,16,200804,2008),('2008-04-18',200816,4,2008,18,16,200804,2008),('2008-04-19',200816,4,2008,19,16,200804,2008),('2008-04-20',200817,4,2008,20,17,200804,2008),('2008-04-21',200817,4,2008,21,17,200804,2008),('2008-04-22',200817,4,2008,22,17,200804,2008),('2008-04-23',200817,4,2008,23,17,200804,2008),('2008-04-24',200817,4,2008,24,17,200804,2008),('2008-04-25',200817,4,2008,25,17,200804,2008),('2008-04-26',200817,4,2008,26,17,200804,2008),('2008-04-27',200818,4,2008,27,18,200804,2008),('2008-04-28',200818,4,2008,28,18,200804,2008),('2008-04-29',200818,4,2008,29,18,200804,2008),('2008-04-30',200818,4,2008,30,18,200804,2008),('2008-05-01',200818,5,2008,1,18,200805,2008),('2008-05-02',200818,5,2008,2,18,200805,2008),('2008-05-03',200818,5,2008,3,18,200805,2008),('2008-05-04',200819,5,2008,4,19,200805,2008),('2008-05-05',200819,5,2008,5,19,200805,2008),('2008-05-06',200819,5,2008,6,19,200805,2008),('2008-05-07',200819,5,2008,7,19,200805,2008),('2008-05-08',200819,5,2008,8,19,200805,2008),('2008-05-09',200819,5,2008,9,19,200805,2008),('2008-05-10',200819,5,2008,10,19,200805,2008),('2008-05-11',200820,5,2008,11,20,200805,2008),('2008-05-12',200820,5,2008,12,20,200805,2008),('2008-05-13',200820,5,2008,13,20,200805,2008),('2008-05-14',200820,5,2008,14,20,200805,2008),('2008-05-15',200820,5,2008,15,20,200805,2008),('2008-05-16',200820,5,2008,16,20,200805,2008),('2008-05-17',200820,5,2008,17,20,200805,2008),('2008-05-18',200821,5,2008,18,21,200805,2008),('2008-05-19',200821,5,2008,19,21,200805,2008),('2008-05-20',200821,5,2008,20,21,200805,2008),('2008-05-21',200821,5,2008,21,21,200805,2008),('2008-05-22',200821,5,2008,22,21,200805,2008),('2008-05-23',200821,5,2008,23,21,200805,2008),('2008-05-24',200821,5,2008,24,21,200805,2008),('2008-05-25',200822,5,2008,25,22,200805,2008),('2008-05-26',200822,5,2008,26,22,200805,2008),('2008-05-27',200822,5,2008,27,22,200805,2008),('2008-05-28',200822,5,2008,28,22,200805,2008),('2008-05-29',200822,5,2008,29,22,200805,2008),('2008-05-30',200822,5,2008,30,22,200805,2008),('2008-05-31',200822,5,2008,31,22,200805,2008),('2008-06-01',200823,6,2008,1,23,200806,2008),('2008-06-02',200823,6,2008,2,23,200806,2008),('2008-06-03',200823,6,2008,3,23,200806,2008),('2008-06-04',200823,6,2008,4,23,200806,2008),('2008-06-05',200823,6,2008,5,23,200806,2008),('2008-06-06',200823,6,2008,6,23,200806,2008),('2008-06-07',200823,6,2008,7,23,200806,2008),('2008-06-08',200824,6,2008,8,24,200806,2008),('2008-06-09',200824,6,2008,9,24,200806,2008),('2008-06-10',200824,6,2008,10,24,200806,2008),('2008-06-11',200824,6,2008,11,24,200806,2008),('2008-06-12',200824,6,2008,12,24,200806,2008),('2008-06-13',200824,6,2008,13,24,200806,2008),('2008-06-14',200824,6,2008,14,24,200806,2008),('2008-06-15',200825,6,2008,15,25,200806,2008),('2008-06-16',200825,6,2008,16,25,200806,2008),('2008-06-17',200825,6,2008,17,25,200806,2008),('2008-06-18',200825,6,2008,18,25,200806,2008),('2008-06-19',200825,6,2008,19,25,200806,2008),('2008-06-20',200825,6,2008,20,25,200806,2008),('2008-06-21',200825,6,2008,21,25,200806,2008),('2008-06-22',200826,6,2008,22,26,200806,2008),('2008-06-23',200826,6,2008,23,26,200806,2008),('2008-06-24',200826,6,2008,24,26,200806,2008),('2008-06-25',200826,6,2008,25,26,200806,2008),('2008-06-26',200826,6,2008,26,26,200806,2008),('2008-06-27',200826,6,2008,27,26,200806,2008),('2008-06-28',200826,6,2008,28,26,200806,2008),('2008-06-29',200827,6,2008,29,27,200806,2008),('2008-06-30',200827,6,2008,30,27,200806,2008),('2008-07-01',200827,7,2008,1,27,200807,2008),('2008-07-02',200827,7,2008,2,27,200807,2008),('2008-07-03',200827,7,2008,3,27,200807,2008),('2008-07-04',200827,7,2008,4,27,200807,2008),('2008-07-05',200827,7,2008,5,27,200807,2008),('2008-07-06',200828,7,2008,6,28,200807,2008),('2008-07-07',200828,7,2008,7,28,200807,2008),('2008-07-08',200828,7,2008,8,28,200807,2008),('2008-07-09',200828,7,2008,9,28,200807,2008),('2008-07-10',200828,7,2008,10,28,200807,2008),('2008-07-11',200828,7,2008,11,28,200807,2008),('2008-07-12',200828,7,2008,12,28,200807,2008),('2008-07-13',200829,7,2008,13,29,200807,2008),('2008-07-14',200829,7,2008,14,29,200807,2008),('2008-07-15',200829,7,2008,15,29,200807,2008),('2008-07-16',200829,7,2008,16,29,200807,2008),('2008-07-17',200829,7,2008,17,29,200807,2008),('2008-07-18',200829,7,2008,18,29,200807,2008),('2008-07-19',200829,7,2008,19,29,200807,2008),('2008-07-20',200830,7,2008,20,30,200807,2008),('2008-07-21',200830,7,2008,21,30,200807,2008),('2008-07-22',200830,7,2008,22,30,200807,2008),('2008-07-23',200830,7,2008,23,30,200807,2008),('2008-07-24',200830,7,2008,24,30,200807,2008),('2008-07-25',200830,7,2008,25,30,200807,2008),('2008-07-26',200830,7,2008,26,30,200807,2008),('2008-07-27',200831,7,2008,27,31,200807,2008),('2008-07-28',200831,7,2008,28,31,200807,2008),('2008-07-29',200831,7,2008,29,31,200807,2008),('2008-07-30',200831,7,2008,30,31,200807,2008),('2008-07-31',200831,7,2008,31,31,200807,2008),('2008-08-01',200831,8,2008,1,31,200808,2008),('2008-08-02',200831,8,2008,2,31,200808,2008),('2008-08-03',200832,8,2008,3,32,200808,2008),('2008-08-04',200832,8,2008,4,32,200808,2008),('2008-08-05',200832,8,2008,5,32,200808,2008),('2008-08-06',200832,8,2008,6,32,200808,2008),('2008-08-07',200832,8,2008,7,32,200808,2008),('2008-08-08',200832,8,2008,8,32,200808,2008),('2008-08-09',200832,8,2008,9,32,200808,2008),('2008-08-10',200833,8,2008,10,33,200808,2008),('2008-08-11',200833,8,2008,11,33,200808,2008),('2008-08-12',200833,8,2008,12,33,200808,2008),('2008-08-13',200833,8,2008,13,33,200808,2008),('2008-08-14',200833,8,2008,14,33,200808,2008),('2008-08-15',200833,8,2008,15,33,200808,2008),('2008-08-16',200833,8,2008,16,33,200808,2008),('2008-08-17',200834,8,2008,17,34,200808,2008),('2008-08-18',200834,8,2008,18,34,200808,2008),('2008-08-19',200834,8,2008,19,34,200808,2008),('2008-08-20',200834,8,2008,20,34,200808,2008),('2008-08-21',200834,8,2008,21,34,200808,2008),('2008-08-22',200834,8,2008,22,34,200808,2008),('2008-08-23',200834,8,2008,23,34,200808,2008),('2008-08-24',200835,8,2008,24,35,200808,2008),('2008-08-25',200835,8,2008,25,35,200808,2008),('2008-08-26',200835,8,2008,26,35,200808,2008),('2008-08-27',200835,8,2008,27,35,200808,2008),('2008-08-28',200835,8,2008,28,35,200808,2008),('2008-08-29',200835,8,2008,29,35,200808,2008),('2008-08-30',200835,8,2008,30,35,200808,2008),('2008-08-31',200836,8,2008,31,36,200808,2008),('2008-09-01',200836,9,2008,1,36,200809,2008),('2008-09-02',200836,9,2008,2,36,200809,2008),('2008-09-03',200836,9,2008,3,36,200809,2008),('2008-09-04',200836,9,2008,4,36,200809,2008),('2008-09-05',200836,9,2008,5,36,200809,2008),('2008-09-06',200836,9,2008,6,36,200809,2008),('2008-09-07',200837,9,2008,7,37,200809,2008),('2008-09-08',200837,9,2008,8,37,200809,2008),('2008-09-09',200837,9,2008,9,37,200809,2008),('2008-09-10',200837,9,2008,10,37,200809,2008),('2008-09-11',200837,9,2008,11,37,200809,2008),('2008-09-12',200837,9,2008,12,37,200809,2008),('2008-09-13',200837,9,2008,13,37,200809,2008),('2008-09-14',200838,9,2008,14,38,200809,2008),('2008-09-15',200838,9,2008,15,38,200809,2008),('2008-09-16',200838,9,2008,16,38,200809,2008),('2008-09-17',200838,9,2008,17,38,200809,2008),('2008-09-18',200838,9,2008,18,38,200809,2008),('2008-09-19',200838,9,2008,19,38,200809,2008),('2008-09-20',200838,9,2008,20,38,200809,2008),('2008-09-21',200839,9,2008,21,39,200809,2008),('2008-09-22',200839,9,2008,22,39,200809,2008),('2008-09-23',200839,9,2008,23,39,200809,2008),('2008-09-24',200839,9,2008,24,39,200809,2008),('2008-09-25',200839,9,2008,25,39,200809,2008),('2008-09-26',200839,9,2008,26,39,200809,2008),('2008-09-27',200839,9,2008,27,39,200809,2008),('2008-09-28',200840,9,2008,28,40,200809,2008),('2008-09-29',200840,9,2008,29,40,200809,2008),('2008-09-30',200840,9,2008,30,40,200809,2008),('2008-10-01',200840,10,2008,1,40,200810,2008),('2008-10-02',200840,10,2008,2,40,200810,2008),('2008-10-03',200840,10,2008,3,40,200810,2008),('2008-10-04',200840,10,2008,4,40,200810,2008),('2008-10-05',200841,10,2008,5,41,200810,2008),('2008-10-06',200841,10,2008,6,41,200810,2008),('2008-10-07',200841,10,2008,7,41,200810,2008),('2008-10-08',200841,10,2008,8,41,200810,2008),('2008-10-09',200841,10,2008,9,41,200810,2008),('2008-10-10',200841,10,2008,10,41,200810,2008),('2008-10-11',200841,10,2008,11,41,200810,2008),('2008-10-12',200842,10,2008,12,42,200810,2008),('2008-10-13',200842,10,2008,13,42,200810,2008),('2008-10-14',200842,10,2008,14,42,200810,2008),('2008-10-15',200842,10,2008,15,42,200810,2008),('2008-10-16',200842,10,2008,16,42,200810,2008),('2008-10-17',200842,10,2008,17,42,200810,2008),('2008-10-18',200842,10,2008,18,42,200810,2008),('2008-10-19',200843,10,2008,19,43,200810,2008),('2008-10-20',200843,10,2008,20,43,200810,2008),('2008-10-21',200843,10,2008,21,43,200810,2008),('2008-10-22',200843,10,2008,22,43,200810,2008),('2008-10-23',200843,10,2008,23,43,200810,2008),('2008-10-24',200843,10,2008,24,43,200810,2008),('2008-10-25',200843,10,2008,25,43,200810,2008),('2008-10-26',200844,10,2008,26,44,200810,2008),('2008-10-27',200844,10,2008,27,44,200810,2008),('2008-10-28',200844,10,2008,28,44,200810,2008),('2008-10-29',200844,10,2008,29,44,200810,2008),('2008-10-30',200844,10,2008,30,44,200810,2008),('2008-10-31',200844,10,2008,31,44,200810,2008),('2008-11-01',200844,11,2008,1,44,200811,2008),('2008-11-02',200845,11,2008,2,45,200811,2008),('2008-11-03',200845,11,2008,3,45,200811,2008),('2008-11-04',200845,11,2008,4,45,200811,2008),('2008-11-05',200845,11,2008,5,45,200811,2008),('2008-11-06',200845,11,2008,6,45,200811,2008),('2008-11-07',200845,11,2008,7,45,200811,2008),('2008-11-08',200845,11,2008,8,45,200811,2008),('2008-11-09',200846,11,2008,9,46,200811,2008),('2008-11-10',200846,11,2008,10,46,200811,2008),('2008-11-11',200846,11,2008,11,46,200811,2008),('2008-11-12',200846,11,2008,12,46,200811,2008),('2008-11-13',200846,11,2008,13,46,200811,2008),('2008-11-14',200846,11,2008,14,46,200811,2008),('2008-11-15',200846,11,2008,15,46,200811,2008),('2008-11-16',200847,11,2008,16,47,200811,2008),('2008-11-17',200847,11,2008,17,47,200811,2008),('2008-11-18',200847,11,2008,18,47,200811,2008),('2008-11-19',200847,11,2008,19,47,200811,2008),('2008-11-20',200847,11,2008,20,47,200811,2008),('2008-11-21',200847,11,2008,21,47,200811,2008),('2008-11-22',200847,11,2008,22,47,200811,2008),('2008-11-23',200848,11,2008,23,48,200811,2008),('2008-11-24',200848,11,2008,24,48,200811,2008),('2008-11-25',200848,11,2008,25,48,200811,2008),('2008-11-26',200848,11,2008,26,48,200811,2008),('2008-11-27',200848,11,2008,27,48,200811,2008),('2008-11-28',200848,11,2008,28,48,200811,2008),('2008-11-29',200848,11,2008,29,48,200811,2008),('2008-11-30',200849,11,2008,30,49,200811,2008),('2008-12-01',200849,12,2008,1,49,200812,2009),('2008-12-02',200849,12,2008,2,49,200812,2009),('2008-12-03',200849,12,2008,3,49,200812,2009),('2008-12-04',200849,12,2008,4,49,200812,2009),('2008-12-05',200849,12,2008,5,49,200812,2009),('2008-12-06',200849,12,2008,6,49,200812,2009),('2008-12-07',200850,12,2008,7,50,200812,2009),('2008-12-08',200850,12,2008,8,50,200812,2009),('2008-12-09',200850,12,2008,9,50,200812,2009),('2008-12-10',200850,12,2008,10,50,200812,2009),('2008-12-11',200850,12,2008,11,50,200812,2009),('2008-12-12',200850,12,2008,12,50,200812,2009),('2008-12-13',200850,12,2008,13,50,200812,2009),('2008-12-14',200851,12,2008,14,51,200812,2009),('2008-12-15',200851,12,2008,15,51,200812,2009),('2008-12-16',200851,12,2008,16,51,200812,2009),('2008-12-17',200851,12,2008,17,51,200812,2009),('2008-12-18',200851,12,2008,18,51,200812,2009),('2008-12-19',200851,12,2008,19,51,200812,2009),('2008-12-20',200851,12,2008,20,51,200812,2009),('2008-12-21',200852,12,2008,21,52,200812,2009),('2008-12-22',200852,12,2008,22,52,200812,2009),('2008-12-23',200852,12,2008,23,52,200812,2009),('2008-12-24',200852,12,2008,24,52,200812,2009),('2008-12-25',200852,12,2008,25,52,200812,2009),('2008-12-26',200852,12,2008,26,52,200812,2009),('2008-12-27',200852,12,2008,27,52,200812,2009),('2008-12-28',200853,12,2008,28,53,200812,2009),('2008-12-29',200901,12,2008,29,53,200812,2009),('2008-12-30',200901,12,2008,30,53,200812,2009),('2008-12-31',200901,12,2008,31,53,200812,2009),('2009-01-01',200901,1,2009,1,53,200901,2009),('2009-01-02',200901,1,2009,2,53,200901,2009),('2009-01-03',200901,1,2009,3,53,200901,2009),('2009-01-04',200902,1,2009,4,1,200901,2009),('2009-01-05',200902,1,2009,5,1,200901,2009),('2009-01-06',200902,1,2009,6,1,200901,2009),('2009-01-07',200902,1,2009,7,1,200901,2009),('2009-01-08',200902,1,2009,8,1,200901,2009),('2009-01-09',200902,1,2009,9,1,200901,2009),('2009-01-10',200902,1,2009,10,1,200901,2009),('2009-01-11',200903,1,2009,11,2,200901,2009),('2009-01-12',200903,1,2009,12,2,200901,2009),('2009-01-13',200903,1,2009,13,2,200901,2009),('2009-01-14',200903,1,2009,14,2,200901,2009),('2009-01-15',200903,1,2009,15,2,200901,2009),('2009-01-16',200903,1,2009,16,2,200901,2009),('2009-01-17',200903,1,2009,17,2,200901,2009),('2009-01-18',200904,1,2009,18,3,200901,2009),('2009-01-19',200904,1,2009,19,3,200901,2009),('2009-01-20',200904,1,2009,20,3,200901,2009),('2009-01-21',200904,1,2009,21,3,200901,2009),('2009-01-22',200904,1,2009,22,3,200901,2009),('2009-01-23',200904,1,2009,23,3,200901,2009),('2009-01-24',200904,1,2009,24,3,200901,2009),('2009-01-25',200905,1,2009,25,4,200901,2009),('2009-01-26',200905,1,2009,26,4,200901,2009),('2009-01-27',200905,1,2009,27,4,200901,2009),('2009-01-28',200905,1,2009,28,4,200901,2009),('2009-01-29',200905,1,2009,29,4,200901,2009),('2009-01-30',200905,1,2009,30,4,200901,2009),('2009-01-31',200905,1,2009,31,4,200901,2009),('2009-02-01',200906,2,2009,1,5,200902,2009),('2009-02-02',200906,2,2009,2,5,200902,2009),('2009-02-03',200906,2,2009,3,5,200902,2009),('2009-02-04',200906,2,2009,4,5,200902,2009),('2009-02-05',200906,2,2009,5,5,200902,2009),('2009-02-06',200906,2,2009,6,5,200902,2009),('2009-02-07',200906,2,2009,7,5,200902,2009),('2009-02-08',200907,2,2009,8,6,200902,2009),('2009-02-09',200907,2,2009,9,6,200902,2009),('2009-02-10',200907,2,2009,10,6,200902,2009),('2009-02-11',200907,2,2009,11,6,200902,2009),('2009-02-12',200907,2,2009,12,6,200902,2009),('2009-02-13',200907,2,2009,13,6,200902,2009),('2009-02-14',200907,2,2009,14,6,200902,2009),('2009-02-15',200908,2,2009,15,7,200902,2009),('2009-02-16',200908,2,2009,16,7,200902,2009),('2009-02-17',200908,2,2009,17,7,200902,2009),('2009-02-18',200908,2,2009,18,7,200902,2009),('2009-02-19',200908,2,2009,19,7,200902,2009),('2009-02-20',200908,2,2009,20,7,200902,2009),('2009-02-21',200908,2,2009,21,7,200902,2009),('2009-02-22',200909,2,2009,22,8,200902,2009),('2009-02-23',200909,2,2009,23,8,200902,2009),('2009-02-24',200909,2,2009,24,8,200902,2009),('2009-02-25',200909,2,2009,25,8,200902,2009),('2009-02-26',200909,2,2009,26,8,200902,2009),('2009-02-27',200909,2,2009,27,8,200902,2009),('2009-02-28',200909,2,2009,28,8,200902,2009),('2009-03-01',200910,3,2009,1,9,200903,2009),('2009-03-02',200910,3,2009,2,9,200903,2009),('2009-03-03',200910,3,2009,3,9,200903,2009),('2009-03-04',200910,3,2009,4,9,200903,2009),('2009-03-05',200910,3,2009,5,9,200903,2009),('2009-03-06',200910,3,2009,6,9,200903,2009),('2009-03-07',200910,3,2009,7,9,200903,2009),('2009-03-08',200911,3,2009,8,10,200903,2009),('2009-03-09',200911,3,2009,9,10,200903,2009),('2009-03-10',200911,3,2009,10,10,200903,2009),('2009-03-11',200911,3,2009,11,10,200903,2009),('2009-03-12',200911,3,2009,12,10,200903,2009),('2009-03-13',200911,3,2009,13,10,200903,2009),('2009-03-14',200911,3,2009,14,10,200903,2009),('2009-03-15',200912,3,2009,15,11,200903,2009),('2009-03-16',200912,3,2009,16,11,200903,2009),('2009-03-17',200912,3,2009,17,11,200903,2009),('2009-03-18',200912,3,2009,18,11,200903,2009),('2009-03-19',200912,3,2009,19,11,200903,2009),('2009-03-20',200912,3,2009,20,11,200903,2009),('2009-03-21',200912,3,2009,21,11,200903,2009),('2009-03-22',200913,3,2009,22,12,200903,2009),('2009-03-23',200913,3,2009,23,12,200903,2009),('2009-03-24',200913,3,2009,24,12,200903,2009),('2009-03-25',200913,3,2009,25,12,200903,2009),('2009-03-26',200913,3,2009,26,12,200903,2009),('2009-03-27',200913,3,2009,27,12,200903,2009),('2009-03-28',200913,3,2009,28,12,200903,2009),('2009-03-29',200914,3,2009,29,13,200903,2009),('2009-03-30',200914,3,2009,30,13,200903,2009),('2009-03-31',200914,3,2009,31,13,200903,2009),('2009-04-01',200914,4,2009,1,13,200904,2009),('2009-04-02',200914,4,2009,2,13,200904,2009),('2009-04-03',200914,4,2009,3,13,200904,2009),('2009-04-04',200914,4,2009,4,13,200904,2009),('2009-04-05',200915,4,2009,5,14,200904,2009),('2009-04-06',200915,4,2009,6,14,200904,2009),('2009-04-07',200915,4,2009,7,14,200904,2009),('2009-04-08',200915,4,2009,8,14,200904,2009),('2009-04-09',200915,4,2009,9,14,200904,2009),('2009-04-10',200915,4,2009,10,14,200904,2009),('2009-04-11',200915,4,2009,11,14,200904,2009),('2009-04-12',200916,4,2009,12,15,200904,2009),('2009-04-13',200916,4,2009,13,15,200904,2009),('2009-04-14',200916,4,2009,14,15,200904,2009),('2009-04-15',200916,4,2009,15,15,200904,2009),('2009-04-16',200916,4,2009,16,15,200904,2009),('2009-04-17',200916,4,2009,17,15,200904,2009),('2009-04-18',200916,4,2009,18,15,200904,2009),('2009-04-19',200917,4,2009,19,16,200904,2009),('2009-04-20',200917,4,2009,20,16,200904,2009),('2009-04-21',200917,4,2009,21,16,200904,2009),('2009-04-22',200917,4,2009,22,16,200904,2009),('2009-04-23',200917,4,2009,23,16,200904,2009),('2009-04-24',200917,4,2009,24,16,200904,2009),('2009-04-25',200917,4,2009,25,16,200904,2009),('2009-04-26',200918,4,2009,26,17,200904,2009),('2009-04-27',200918,4,2009,27,17,200904,2009),('2009-04-28',200918,4,2009,28,17,200904,2009),('2009-04-29',200918,4,2009,29,17,200904,2009),('2009-04-30',200918,4,2009,30,17,200904,2009),('2009-05-01',200918,5,2009,1,17,200905,2009),('2009-05-02',200918,5,2009,2,17,200905,2009),('2009-05-03',200919,5,2009,3,18,200905,2009),('2009-05-04',200919,5,2009,4,18,200905,2009),('2009-05-05',200919,5,2009,5,18,200905,2009),('2009-05-06',200919,5,2009,6,18,200905,2009),('2009-05-07',200919,5,2009,7,18,200905,2009),('2009-05-08',200919,5,2009,8,18,200905,2009),('2009-05-09',200919,5,2009,9,18,200905,2009),('2009-05-10',200920,5,2009,10,19,200905,2009),('2009-05-11',200920,5,2009,11,19,200905,2009),('2009-05-12',200920,5,2009,12,19,200905,2009),('2009-05-13',200920,5,2009,13,19,200905,2009),('2009-05-14',200920,5,2009,14,19,200905,2009),('2009-05-15',200920,5,2009,15,19,200905,2009),('2009-05-16',200920,5,2009,16,19,200905,2009),('2009-05-17',200921,5,2009,17,20,200905,2009),('2009-05-18',200921,5,2009,18,20,200905,2009),('2009-05-19',200921,5,2009,19,20,200905,2009),('2009-05-20',200921,5,2009,20,20,200905,2009),('2009-05-21',200921,5,2009,21,20,200905,2009),('2009-05-22',200921,5,2009,22,20,200905,2009),('2009-05-23',200921,5,2009,23,20,200905,2009),('2009-05-24',200922,5,2009,24,21,200905,2009),('2009-05-25',200922,5,2009,25,21,200905,2009),('2009-05-26',200922,5,2009,26,21,200905,2009),('2009-05-27',200922,5,2009,27,21,200905,2009),('2009-05-28',200922,5,2009,28,21,200905,2009),('2009-05-29',200922,5,2009,29,21,200905,2009),('2009-05-30',200922,5,2009,30,21,200905,2009),('2009-05-31',200923,5,2009,31,22,200905,2009),('2009-06-01',200923,6,2009,1,22,200906,2009),('2009-06-02',200923,6,2009,2,22,200906,2009),('2009-06-03',200923,6,2009,3,22,200906,2009),('2009-06-04',200923,6,2009,4,22,200906,2009),('2009-06-05',200923,6,2009,5,22,200906,2009),('2009-06-06',200923,6,2009,6,22,200906,2009),('2009-06-07',200924,6,2009,7,23,200906,2009),('2009-06-08',200924,6,2009,8,23,200906,2009),('2009-06-09',200924,6,2009,9,23,200906,2009),('2009-06-10',200924,6,2009,10,23,200906,2009),('2009-06-11',200924,6,2009,11,23,200906,2009),('2009-06-12',200924,6,2009,12,23,200906,2009),('2009-06-13',200924,6,2009,13,23,200906,2009),('2009-06-14',200925,6,2009,14,24,200906,2009),('2009-06-15',200925,6,2009,15,24,200906,2009),('2009-06-16',200925,6,2009,16,24,200906,2009),('2009-06-17',200925,6,2009,17,24,200906,2009),('2009-06-18',200925,6,2009,18,24,200906,2009),('2009-06-19',200925,6,2009,19,24,200906,2009),('2009-06-20',200925,6,2009,20,24,200906,2009),('2009-06-21',200926,6,2009,21,25,200906,2009),('2009-06-22',200926,6,2009,22,25,200906,2009),('2009-06-23',200926,6,2009,23,25,200906,2009),('2009-06-24',200926,6,2009,24,25,200906,2009),('2009-06-25',200926,6,2009,25,25,200906,2009),('2009-06-26',200926,6,2009,26,25,200906,2009),('2009-06-27',200926,6,2009,27,25,200906,2009),('2009-06-28',200927,6,2009,28,26,200906,2009),('2009-06-29',200927,6,2009,29,26,200906,2009),('2009-06-30',200927,6,2009,30,26,200906,2009),('2009-07-01',200927,7,2009,1,26,200907,2009),('2009-07-02',200927,7,2009,2,26,200907,2009),('2009-07-03',200927,7,2009,3,26,200907,2009),('2009-07-04',200927,7,2009,4,26,200907,2009),('2009-07-05',200928,7,2009,5,27,200907,2009),('2009-07-06',200928,7,2009,6,27,200907,2009),('2009-07-07',200928,7,2009,7,27,200907,2009),('2009-07-08',200928,7,2009,8,27,200907,2009),('2009-07-09',200928,7,2009,9,27,200907,2009),('2009-07-10',200928,7,2009,10,27,200907,2009),('2009-07-11',200928,7,2009,11,27,200907,2009),('2009-07-12',200929,7,2009,12,28,200907,2009),('2009-07-13',200929,7,2009,13,28,200907,2009),('2009-07-14',200929,7,2009,14,28,200907,2009),('2009-07-15',200929,7,2009,15,28,200907,2009),('2009-07-16',200929,7,2009,16,28,200907,2009),('2009-07-17',200929,7,2009,17,28,200907,2009),('2009-07-18',200929,7,2009,18,28,200907,2009),('2009-07-19',200930,7,2009,19,29,200907,2009),('2009-07-20',200930,7,2009,20,29,200907,2009),('2009-07-21',200930,7,2009,21,29,200907,2009),('2009-07-22',200930,7,2009,22,29,200907,2009),('2009-07-23',200930,7,2009,23,29,200907,2009),('2009-07-24',200930,7,2009,24,29,200907,2009),('2009-07-25',200930,7,2009,25,29,200907,2009),('2009-07-26',200931,7,2009,26,30,200907,2009),('2009-07-27',200931,7,2009,27,30,200907,2009),('2009-07-28',200931,7,2009,28,30,200907,2009),('2009-07-29',200931,7,2009,29,30,200907,2009),('2009-07-30',200931,7,2009,30,30,200907,2009),('2009-07-31',200931,7,2009,31,30,200907,2009),('2009-08-01',200931,8,2009,1,30,200908,2009),('2009-08-02',200932,8,2009,2,31,200908,2009),('2009-08-03',200932,8,2009,3,31,200908,2009),('2009-08-04',200932,8,2009,4,31,200908,2009),('2009-08-05',200932,8,2009,5,31,200908,2009),('2009-08-06',200932,8,2009,6,31,200908,2009),('2009-08-07',200932,8,2009,7,31,200908,2009),('2009-08-08',200932,8,2009,8,31,200908,2009),('2009-08-09',200933,8,2009,9,32,200908,2009),('2009-08-10',200933,8,2009,10,32,200908,2009),('2009-08-11',200933,8,2009,11,32,200908,2009),('2009-08-12',200933,8,2009,12,32,200908,2009),('2009-08-13',200933,8,2009,13,32,200908,2009),('2009-08-14',200933,8,2009,14,32,200908,2009),('2009-08-15',200933,8,2009,15,32,200908,2009),('2009-08-16',200934,8,2009,16,33,200908,2009),('2009-08-17',200934,8,2009,17,33,200908,2009),('2009-08-18',200934,8,2009,18,33,200908,2009),('2009-08-19',200934,8,2009,19,33,200908,2009),('2009-08-20',200934,8,2009,20,33,200908,2009),('2009-08-21',200934,8,2009,21,33,200908,2009),('2009-08-22',200934,8,2009,22,33,200908,2009),('2009-08-23',200935,8,2009,23,34,200908,2009),('2009-08-24',200935,8,2009,24,34,200908,2009),('2009-08-25',200935,8,2009,25,34,200908,2009),('2009-08-26',200935,8,2009,26,34,200908,2009),('2009-08-27',200935,8,2009,27,34,200908,2009),('2009-08-28',200935,8,2009,28,34,200908,2009),('2009-08-29',200935,8,2009,29,34,200908,2009),('2009-08-30',200936,8,2009,30,35,200908,2009),('2009-08-31',200936,8,2009,31,35,200908,2009),('2009-09-01',200936,9,2009,1,35,200909,2009),('2009-09-02',200936,9,2009,2,35,200909,2009),('2009-09-03',200936,9,2009,3,35,200909,2009),('2009-09-04',200936,9,2009,4,35,200909,2009),('2009-09-05',200936,9,2009,5,35,200909,2009),('2009-09-06',200937,9,2009,6,36,200909,2009),('2009-09-07',200937,9,2009,7,36,200909,2009),('2009-09-08',200937,9,2009,8,36,200909,2009),('2009-09-09',200937,9,2009,9,36,200909,2009),('2009-09-10',200937,9,2009,10,36,200909,2009),('2009-09-11',200937,9,2009,11,36,200909,2009),('2009-09-12',200937,9,2009,12,36,200909,2009),('2009-09-13',200938,9,2009,13,37,200909,2009),('2009-09-14',200938,9,2009,14,37,200909,2009),('2009-09-15',200938,9,2009,15,37,200909,2009),('2009-09-16',200938,9,2009,16,37,200909,2009),('2009-09-17',200938,9,2009,17,37,200909,2009),('2009-09-18',200938,9,2009,18,37,200909,2009),('2009-09-19',200938,9,2009,19,37,200909,2009),('2009-09-20',200939,9,2009,20,38,200909,2009),('2009-09-21',200939,9,2009,21,38,200909,2009),('2009-09-22',200939,9,2009,22,38,200909,2009),('2009-09-23',200939,9,2009,23,38,200909,2009),('2009-09-24',200939,9,2009,24,38,200909,2009),('2009-09-25',200939,9,2009,25,38,200909,2009),('2009-09-26',200939,9,2009,26,38,200909,2009),('2009-09-27',200940,9,2009,27,39,200909,2009),('2009-09-28',200940,9,2009,28,39,200909,2009),('2009-09-29',200940,9,2009,29,39,200909,2009),('2009-09-30',200940,9,2009,30,39,200909,2009),('2009-10-01',200940,10,2009,1,39,200910,2009),('2009-10-02',200940,10,2009,2,39,200910,2009),('2009-10-03',200940,10,2009,3,39,200910,2009),('2009-10-04',200941,10,2009,4,40,200910,2009),('2009-10-05',200941,10,2009,5,40,200910,2009),('2009-10-06',200941,10,2009,6,40,200910,2009),('2009-10-07',200941,10,2009,7,40,200910,2009),('2009-10-08',200941,10,2009,8,40,200910,2009),('2009-10-09',200941,10,2009,9,40,200910,2009),('2009-10-10',200941,10,2009,10,40,200910,2009),('2009-10-11',200942,10,2009,11,41,200910,2009),('2009-10-12',200942,10,2009,12,41,200910,2009),('2009-10-13',200942,10,2009,13,41,200910,2009),('2009-10-14',200942,10,2009,14,41,200910,2009),('2009-10-15',200942,10,2009,15,41,200910,2009),('2009-10-16',200942,10,2009,16,41,200910,2009),('2009-10-17',200942,10,2009,17,41,200910,2009),('2009-10-18',200943,10,2009,18,42,200910,2009),('2009-10-19',200943,10,2009,19,42,200910,2009),('2009-10-20',200943,10,2009,20,42,200910,2009),('2009-10-21',200943,10,2009,21,42,200910,2009),('2009-10-22',200943,10,2009,22,42,200910,2009),('2009-10-23',200943,10,2009,23,42,200910,2009),('2009-10-24',200943,10,2009,24,42,200910,2009),('2009-10-25',200944,10,2009,25,43,200910,2009),('2009-10-26',200944,10,2009,26,43,200910,2009),('2009-10-27',200944,10,2009,27,43,200910,2009),('2009-10-28',200944,10,2009,28,43,200910,2009),('2009-10-29',200944,10,2009,29,43,200910,2009),('2009-10-30',200944,10,2009,30,43,200910,2009),('2009-10-31',200944,10,2009,31,43,200910,2009),('2009-11-01',200945,11,2009,1,44,200911,2009),('2009-11-02',200945,11,2009,2,44,200911,2009),('2009-11-03',200945,11,2009,3,44,200911,2009),('2009-11-04',200945,11,2009,4,44,200911,2009),('2009-11-05',200945,11,2009,5,44,200911,2009),('2009-11-06',200945,11,2009,6,44,200911,2009),('2009-11-07',200945,11,2009,7,44,200911,2009),('2009-11-08',200946,11,2009,8,45,200911,2009),('2009-11-09',200946,11,2009,9,45,200911,2009),('2009-11-10',200946,11,2009,10,45,200911,2009),('2009-11-11',200946,11,2009,11,45,200911,2009),('2009-11-12',200946,11,2009,12,45,200911,2009),('2009-11-13',200946,11,2009,13,45,200911,2009),('2009-11-14',200946,11,2009,14,45,200911,2009),('2009-11-15',200947,11,2009,15,46,200911,2009),('2009-11-16',200947,11,2009,16,46,200911,2009),('2009-11-17',200947,11,2009,17,46,200911,2009),('2009-11-18',200947,11,2009,18,46,200911,2009),('2009-11-19',200947,11,2009,19,46,200911,2009),('2009-11-20',200947,11,2009,20,46,200911,2009),('2009-11-21',200947,11,2009,21,46,200911,2009),('2009-11-22',200948,11,2009,22,47,200911,2009),('2009-11-23',200948,11,2009,23,47,200911,2009),('2009-11-24',200948,11,2009,24,47,200911,2009),('2009-11-25',200948,11,2009,25,47,200911,2009),('2009-11-26',200948,11,2009,26,47,200911,2009),('2009-11-27',200948,11,2009,27,47,200911,2009),('2009-11-28',200948,11,2009,28,47,200911,2009),('2009-11-29',200949,11,2009,29,48,200911,2009),('2009-11-30',200949,11,2009,30,48,200911,2009),('2009-12-01',200949,12,2009,1,48,200912,2010),('2009-12-02',200949,12,2009,2,48,200912,2010),('2009-12-03',200949,12,2009,3,48,200912,2010),('2009-12-04',200949,12,2009,4,48,200912,2010),('2009-12-05',200949,12,2009,5,48,200912,2010),('2009-12-06',200950,12,2009,6,49,200912,2010),('2009-12-07',200950,12,2009,7,49,200912,2010),('2009-12-08',200950,12,2009,8,49,200912,2010),('2009-12-09',200950,12,2009,9,49,200912,2010),('2009-12-10',200950,12,2009,10,49,200912,2010),('2009-12-11',200950,12,2009,11,49,200912,2010),('2009-12-12',200950,12,2009,12,49,200912,2010),('2009-12-13',200951,12,2009,13,50,200912,2010),('2009-12-14',200951,12,2009,14,50,200912,2010),('2009-12-15',200951,12,2009,15,50,200912,2010),('2009-12-16',200951,12,2009,16,50,200912,2010),('2009-12-17',200951,12,2009,17,50,200912,2010),('2009-12-18',200951,12,2009,18,50,200912,2010),('2009-12-19',200951,12,2009,19,50,200912,2010),('2009-12-20',200952,12,2009,20,51,200912,2010),('2009-12-21',200952,12,2009,21,51,200912,2010),('2009-12-22',200952,12,2009,22,51,200912,2010),('2009-12-23',200952,12,2009,23,51,200912,2010),('2009-12-24',200952,12,2009,24,51,200912,2010),('2009-12-25',200952,12,2009,25,51,200912,2010),('2009-12-26',200952,12,2009,26,51,200912,2010),('2009-12-27',200953,12,2009,27,52,200912,2010),('2009-12-28',200952,12,2009,28,52,200912,2010),('2009-12-29',200952,12,2009,29,52,200912,2010),('2009-12-30',200952,12,2009,30,52,200912,2010),('2009-12-31',200952,12,2009,31,52,200912,2010),('2010-01-01',201001,1,2010,1,52,201001,2010),('2010-01-02',201001,1,2010,2,52,201001,2010),('2010-01-03',201002,1,2010,3,1,201001,2010),('2010-01-04',201001,1,2010,4,1,201001,2010),('2010-01-05',201001,1,2010,5,1,201001,2010),('2010-01-06',201001,1,2010,6,1,201001,2010),('2010-01-07',201001,1,2010,7,1,201001,2010),('2010-01-08',201001,1,2010,8,1,201001,2010),('2010-01-09',201001,1,2010,9,1,201001,2010),('2010-01-10',201002,1,2010,10,2,201001,2010),('2010-01-11',201002,1,2010,11,2,201001,2010),('2010-01-12',201002,1,2010,12,2,201001,2010),('2010-01-13',201002,1,2010,13,2,201001,2010),('2010-01-14',201002,1,2010,14,2,201001,2010),('2010-01-15',201002,1,2010,15,2,201001,2010),('2010-01-16',201002,1,2010,16,2,201001,2010),('2010-01-17',201003,1,2010,17,3,201001,2010),('2010-01-18',201003,1,2010,18,3,201001,2010),('2010-01-19',201003,1,2010,19,3,201001,2010),('2010-01-20',201003,1,2010,20,3,201001,2010),('2010-01-21',201003,1,2010,21,3,201001,2010),('2010-01-22',201003,1,2010,22,3,201001,2010),('2010-01-23',201003,1,2010,23,3,201001,2010),('2010-01-24',201004,1,2010,24,4,201001,2010),('2010-01-25',201004,1,2010,25,4,201001,2010),('2010-01-26',201004,1,2010,26,4,201001,2010),('2010-01-27',201004,1,2010,27,4,201001,2010),('2010-01-28',201004,1,2010,28,4,201001,2010),('2010-01-29',201004,1,2010,29,4,201001,2010),('2010-01-30',201004,1,2010,30,4,201001,2010),('2010-01-31',201005,1,2010,31,5,201001,2010),('2010-02-01',201005,2,2010,1,5,201002,2010),('2010-02-02',201005,2,2010,2,5,201002,2010),('2010-02-03',201005,2,2010,3,5,201002,2010),('2010-02-04',201005,2,2010,4,5,201002,2010),('2010-02-05',201005,2,2010,5,5,201002,2010),('2010-02-06',201005,2,2010,6,5,201002,2010),('2010-02-07',201006,2,2010,7,6,201002,2010),('2010-02-08',201006,2,2010,8,6,201002,2010),('2010-02-09',201006,2,2010,9,6,201002,2010),('2010-02-10',201006,2,2010,10,6,201002,2010),('2010-02-11',201006,2,2010,11,6,201002,2010),('2010-02-12',201006,2,2010,12,6,201002,2010),('2010-02-13',201006,2,2010,13,6,201002,2010),('2010-02-14',201007,2,2010,14,7,201002,2010),('2010-02-15',201007,2,2010,15,7,201002,2010),('2010-02-16',201007,2,2010,16,7,201002,2010),('2010-02-17',201007,2,2010,17,7,201002,2010),('2010-02-18',201007,2,2010,18,7,201002,2010),('2010-02-19',201007,2,2010,19,7,201002,2010),('2010-02-20',201007,2,2010,20,7,201002,2010),('2010-02-21',201008,2,2010,21,8,201002,2010),('2010-02-22',201008,2,2010,22,8,201002,2010),('2010-02-23',201008,2,2010,23,8,201002,2010),('2010-02-24',201008,2,2010,24,8,201002,2010),('2010-02-25',201008,2,2010,25,8,201002,2010),('2010-02-26',201008,2,2010,26,8,201002,2010),('2010-02-27',201008,2,2010,27,8,201002,2010),('2010-02-28',201009,2,2010,28,9,201002,2010),('2010-03-01',201009,3,2010,1,9,201003,2010),('2010-03-02',201009,3,2010,2,9,201003,2010),('2010-03-03',201009,3,2010,3,9,201003,2010),('2010-03-04',201009,3,2010,4,9,201003,2010),('2010-03-05',201009,3,2010,5,9,201003,2010),('2010-03-06',201009,3,2010,6,9,201003,2010),('2010-03-07',201010,3,2010,7,10,201003,2010),('2010-03-08',201010,3,2010,8,10,201003,2010),('2010-03-09',201010,3,2010,9,10,201003,2010),('2010-03-10',201010,3,2010,10,10,201003,2010),('2010-03-11',201010,3,2010,11,10,201003,2010),('2010-03-12',201010,3,2010,12,10,201003,2010),('2010-03-13',201010,3,2010,13,10,201003,2010),('2010-03-14',201011,3,2010,14,11,201003,2010),('2010-03-15',201011,3,2010,15,11,201003,2010),('2010-03-16',201011,3,2010,16,11,201003,2010),('2010-03-17',201011,3,2010,17,11,201003,2010),('2010-03-18',201011,3,2010,18,11,201003,2010),('2010-03-19',201011,3,2010,19,11,201003,2010),('2010-03-20',201011,3,2010,20,11,201003,2010),('2010-03-21',201012,3,2010,21,12,201003,2010),('2010-03-22',201012,3,2010,22,12,201003,2010),('2010-03-23',201012,3,2010,23,12,201003,2010),('2010-03-24',201012,3,2010,24,12,201003,2010),('2010-03-25',201012,3,2010,25,12,201003,2010),('2010-03-26',201012,3,2010,26,12,201003,2010),('2010-03-27',201012,3,2010,27,12,201003,2010),('2010-03-28',201013,3,2010,28,13,201003,2010),('2010-03-29',201013,3,2010,29,13,201003,2010),('2010-03-30',201013,3,2010,30,13,201003,2010),('2010-03-31',201013,3,2010,31,13,201003,2010),('2010-04-01',201013,4,2010,1,13,201004,2010),('2010-04-02',201013,4,2010,2,13,201004,2010),('2010-04-03',201013,4,2010,3,13,201004,2010),('2010-04-04',201014,4,2010,4,14,201004,2010),('2010-04-05',201014,4,2010,5,14,201004,2010),('2010-04-06',201014,4,2010,6,14,201004,2010),('2010-04-07',201014,4,2010,7,14,201004,2010),('2010-04-08',201014,4,2010,8,14,201004,2010),('2010-04-09',201014,4,2010,9,14,201004,2010),('2010-04-10',201014,4,2010,10,14,201004,2010),('2010-04-11',201015,4,2010,11,15,201004,2010),('2010-04-12',201015,4,2010,12,15,201004,2010),('2010-04-13',201015,4,2010,13,15,201004,2010),('2010-04-14',201015,4,2010,14,15,201004,2010),('2010-04-15',201015,4,2010,15,15,201004,2010),('2010-04-16',201015,4,2010,16,15,201004,2010),('2010-04-17',201015,4,2010,17,15,201004,2010),('2010-04-18',201016,4,2010,18,16,201004,2010),('2010-04-19',201016,4,2010,19,16,201004,2010),('2010-04-20',201016,4,2010,20,16,201004,2010),('2010-04-21',201016,4,2010,21,16,201004,2010),('2010-04-22',201016,4,2010,22,16,201004,2010),('2010-04-23',201016,4,2010,23,16,201004,2010),('2010-04-24',201016,4,2010,24,16,201004,2010),('2010-04-25',201017,4,2010,25,17,201004,2010),('2010-04-26',201017,4,2010,26,17,201004,2010),('2010-04-27',201017,4,2010,27,17,201004,2010),('2010-04-28',201017,4,2010,28,17,201004,2010),('2010-04-29',201017,4,2010,29,17,201004,2010),('2010-04-30',201017,4,2010,30,17,201004,2010),('2010-05-01',201017,5,2010,1,17,201005,2010),('2010-05-02',201018,5,2010,2,18,201005,2010),('2010-05-03',201018,5,2010,3,18,201005,2010),('2010-05-04',201018,5,2010,4,18,201005,2010),('2010-05-05',201018,5,2010,5,18,201005,2010),('2010-05-06',201018,5,2010,6,18,201005,2010),('2010-05-07',201018,5,2010,7,18,201005,2010),('2010-05-08',201018,5,2010,8,18,201005,2010),('2010-05-09',201019,5,2010,9,19,201005,2010),('2010-05-10',201019,5,2010,10,19,201005,2010),('2010-05-11',201019,5,2010,11,19,201005,2010),('2010-05-12',201019,5,2010,12,19,201005,2010),('2010-05-13',201019,5,2010,13,19,201005,2010),('2010-05-14',201019,5,2010,14,19,201005,2010),('2010-05-15',201019,5,2010,15,19,201005,2010),('2010-05-16',201020,5,2010,16,20,201005,2010),('2010-05-17',201020,5,2010,17,20,201005,2010),('2010-05-18',201020,5,2010,18,20,201005,2010),('2010-05-19',201020,5,2010,19,20,201005,2010),('2010-05-20',201020,5,2010,20,20,201005,2010),('2010-05-21',201020,5,2010,21,20,201005,2010),('2010-05-22',201020,5,2010,22,20,201005,2010),('2010-05-23',201021,5,2010,23,21,201005,2010),('2010-05-24',201021,5,2010,24,21,201005,2010),('2010-05-25',201021,5,2010,25,21,201005,2010),('2010-05-26',201021,5,2010,26,21,201005,2010),('2010-05-27',201021,5,2010,27,21,201005,2010),('2010-05-28',201021,5,2010,28,21,201005,2010),('2010-05-29',201021,5,2010,29,21,201005,2010),('2010-05-30',201022,5,2010,30,22,201005,2010),('2010-05-31',201022,5,2010,31,22,201005,2010),('2010-06-01',201022,6,2010,1,22,201006,2010),('2010-06-02',201022,6,2010,2,22,201006,2010),('2010-06-03',201022,6,2010,3,22,201006,2010),('2010-06-04',201022,6,2010,4,22,201006,2010),('2010-06-05',201022,6,2010,5,22,201006,2010),('2010-06-06',201023,6,2010,6,23,201006,2010),('2010-06-07',201023,6,2010,7,23,201006,2010),('2010-06-08',201023,6,2010,8,23,201006,2010),('2010-06-09',201023,6,2010,9,23,201006,2010),('2010-06-10',201023,6,2010,10,23,201006,2010),('2010-06-11',201023,6,2010,11,23,201006,2010),('2010-06-12',201023,6,2010,12,23,201006,2010),('2010-06-13',201024,6,2010,13,24,201006,2010),('2010-06-14',201024,6,2010,14,24,201006,2010),('2010-06-15',201024,6,2010,15,24,201006,2010),('2010-06-16',201024,6,2010,16,24,201006,2010),('2010-06-17',201024,6,2010,17,24,201006,2010),('2010-06-18',201024,6,2010,18,24,201006,2010),('2010-06-19',201024,6,2010,19,24,201006,2010),('2010-06-20',201025,6,2010,20,25,201006,2010),('2010-06-21',201025,6,2010,21,25,201006,2010),('2010-06-22',201025,6,2010,22,25,201006,2010),('2010-06-23',201025,6,2010,23,25,201006,2010),('2010-06-24',201025,6,2010,24,25,201006,2010),('2010-06-25',201025,6,2010,25,25,201006,2010),('2010-06-26',201025,6,2010,26,25,201006,2010),('2010-06-27',201026,6,2010,27,26,201006,2010),('2010-06-28',201026,6,2010,28,26,201006,2010),('2010-06-29',201026,6,2010,29,26,201006,2010),('2010-06-30',201026,6,2010,30,26,201006,2010),('2010-07-01',201026,7,2010,1,26,201007,2010),('2010-07-02',201026,7,2010,2,26,201007,2010),('2010-07-03',201026,7,2010,3,26,201007,2010),('2010-07-04',201027,7,2010,4,27,201007,2010),('2010-07-05',201027,7,2010,5,27,201007,2010),('2010-07-06',201027,7,2010,6,27,201007,2010),('2010-07-07',201027,7,2010,7,27,201007,2010),('2010-07-08',201027,7,2010,8,27,201007,2010),('2010-07-09',201027,7,2010,9,27,201007,2010),('2010-07-10',201027,7,2010,10,27,201007,2010),('2010-07-11',201028,7,2010,11,28,201007,2010),('2010-07-12',201028,7,2010,12,28,201007,2010),('2010-07-13',201028,7,2010,13,28,201007,2010),('2010-07-14',201028,7,2010,14,28,201007,2010),('2010-07-15',201028,7,2010,15,28,201007,2010),('2010-07-16',201028,7,2010,16,28,201007,2010),('2010-07-17',201028,7,2010,17,28,201007,2010),('2010-07-18',201029,7,2010,18,29,201007,2010),('2010-07-19',201029,7,2010,19,29,201007,2010),('2010-07-20',201029,7,2010,20,29,201007,2010),('2010-07-21',201029,7,2010,21,29,201007,2010),('2010-07-22',201029,7,2010,22,29,201007,2010),('2010-07-23',201029,7,2010,23,29,201007,2010),('2010-07-24',201029,7,2010,24,29,201007,2010),('2010-07-25',201030,7,2010,25,30,201007,2010),('2010-07-26',201030,7,2010,26,30,201007,2010),('2010-07-27',201030,7,2010,27,30,201007,2010),('2010-07-28',201030,7,2010,28,30,201007,2010),('2010-07-29',201030,7,2010,29,30,201007,2010),('2010-07-30',201030,7,2010,30,30,201007,2010),('2010-07-31',201030,7,2010,31,30,201007,2010),('2010-08-01',201031,8,2010,1,31,201008,2010),('2010-08-02',201031,8,2010,2,31,201008,2010),('2010-08-03',201031,8,2010,3,31,201008,2010),('2010-08-04',201031,8,2010,4,31,201008,2010),('2010-08-05',201031,8,2010,5,31,201008,2010),('2010-08-06',201031,8,2010,6,31,201008,2010),('2010-08-07',201031,8,2010,7,31,201008,2010),('2010-08-08',201032,8,2010,8,32,201008,2010),('2010-08-09',201032,8,2010,9,32,201008,2010),('2010-08-10',201032,8,2010,10,32,201008,2010),('2010-08-11',201032,8,2010,11,32,201008,2010),('2010-08-12',201032,8,2010,12,32,201008,2010),('2010-08-13',201032,8,2010,13,32,201008,2010),('2010-08-14',201032,8,2010,14,32,201008,2010),('2010-08-15',201033,8,2010,15,33,201008,2010),('2010-08-16',201033,8,2010,16,33,201008,2010),('2010-08-17',201033,8,2010,17,33,201008,2010),('2010-08-18',201033,8,2010,18,33,201008,2010),('2010-08-19',201033,8,2010,19,33,201008,2010),('2010-08-20',201033,8,2010,20,33,201008,2010),('2010-08-21',201033,8,2010,21,33,201008,2010),('2010-08-22',201034,8,2010,22,34,201008,2010),('2010-08-23',201034,8,2010,23,34,201008,2010),('2010-08-24',201034,8,2010,24,34,201008,2010),('2010-08-25',201034,8,2010,25,34,201008,2010),('2010-08-26',201034,8,2010,26,34,201008,2010),('2010-08-27',201034,8,2010,27,34,201008,2010),('2010-08-28',201034,8,2010,28,34,201008,2010),('2010-08-29',201035,8,2010,29,35,201008,2010),('2010-08-30',201035,8,2010,30,35,201008,2010),('2010-08-31',201035,8,2010,31,35,201008,2010),('2010-09-01',201035,9,2010,1,35,201009,2010),('2010-09-02',201035,9,2010,2,35,201009,2010),('2010-09-03',201035,9,2010,3,35,201009,2010),('2010-09-04',201035,9,2010,4,35,201009,2010),('2010-09-05',201036,9,2010,5,36,201009,2010),('2010-09-06',201036,9,2010,6,36,201009,2010),('2010-09-07',201036,9,2010,7,36,201009,2010),('2010-09-08',201036,9,2010,8,36,201009,2010),('2010-09-09',201036,9,2010,9,36,201009,2010),('2010-09-10',201036,9,2010,10,36,201009,2010),('2010-09-11',201036,9,2010,11,36,201009,2010),('2010-09-12',201037,9,2010,12,37,201009,2010),('2010-09-13',201037,9,2010,13,37,201009,2010),('2010-09-14',201037,9,2010,14,37,201009,2010),('2010-09-15',201037,9,2010,15,37,201009,2010),('2010-09-16',201037,9,2010,16,37,201009,2010),('2010-09-17',201037,9,2010,17,37,201009,2010),('2010-09-18',201037,9,2010,18,37,201009,2010),('2010-09-19',201038,9,2010,19,38,201009,2010),('2010-09-20',201038,9,2010,20,38,201009,2010),('2010-09-21',201038,9,2010,21,38,201009,2010),('2010-09-22',201038,9,2010,22,38,201009,2010),('2010-09-23',201038,9,2010,23,38,201009,2010),('2010-09-24',201038,9,2010,24,38,201009,2010),('2010-09-25',201038,9,2010,25,38,201009,2010),('2010-09-26',201039,9,2010,26,39,201009,2010),('2010-09-27',201039,9,2010,27,39,201009,2010),('2010-09-28',201039,9,2010,28,39,201009,2010),('2010-09-29',201039,9,2010,29,39,201009,2010),('2010-09-30',201039,9,2010,30,39,201009,2010),('2010-10-01',201039,10,2010,1,39,201010,2010),('2010-10-02',201039,10,2010,2,39,201010,2010),('2010-10-03',201040,10,2010,3,40,201010,2010),('2010-10-04',201040,10,2010,4,40,201010,2010),('2010-10-05',201040,10,2010,5,40,201010,2010),('2010-10-06',201040,10,2010,6,40,201010,2010),('2010-10-07',201040,10,2010,7,40,201010,2010),('2010-10-08',201040,10,2010,8,40,201010,2010),('2010-10-09',201040,10,2010,9,40,201010,2010),('2010-10-10',201041,10,2010,10,41,201010,2010),('2010-10-11',201041,10,2010,11,41,201010,2010),('2010-10-12',201041,10,2010,12,41,201010,2010),('2010-10-13',201041,10,2010,13,41,201010,2010),('2010-10-14',201041,10,2010,14,41,201010,2010),('2010-10-15',201041,10,2010,15,41,201010,2010),('2010-10-16',201041,10,2010,16,41,201010,2010),('2010-10-17',201042,10,2010,17,42,201010,2010),('2010-10-18',201042,10,2010,18,42,201010,2010),('2010-10-19',201042,10,2010,19,42,201010,2010),('2010-10-20',201042,10,2010,20,42,201010,2010),('2010-10-21',201042,10,2010,21,42,201010,2010),('2010-10-22',201042,10,2010,22,42,201010,2010),('2010-10-23',201042,10,2010,23,42,201010,2010),('2010-10-24',201043,10,2010,24,43,201010,2010),('2010-10-25',201043,10,2010,25,43,201010,2010),('2010-10-26',201043,10,2010,26,43,201010,2010),('2010-10-27',201043,10,2010,27,43,201010,2010),('2010-10-28',201043,10,2010,28,43,201010,2010),('2010-10-29',201043,10,2010,29,43,201010,2010),('2010-10-30',201043,10,2010,30,43,201010,2010),('2010-10-31',201044,10,2010,31,44,201010,2010),('2010-11-01',201044,11,2010,1,44,201011,2010),('2010-11-02',201044,11,2010,2,44,201011,2010),('2010-11-03',201044,11,2010,3,44,201011,2010),('2010-11-04',201044,11,2010,4,44,201011,2010),('2010-11-05',201044,11,2010,5,44,201011,2010),('2010-11-06',201044,11,2010,6,44,201011,2010),('2010-11-07',201045,11,2010,7,45,201011,2010),('2010-11-08',201045,11,2010,8,45,201011,2010),('2010-11-09',201045,11,2010,9,45,201011,2010),('2010-11-10',201045,11,2010,10,45,201011,2010),('2010-11-11',201045,11,2010,11,45,201011,2010),('2010-11-12',201045,11,2010,12,45,201011,2010),('2010-11-13',201045,11,2010,13,45,201011,2010),('2010-11-14',201046,11,2010,14,46,201011,2010),('2010-11-15',201046,11,2010,15,46,201011,2010),('2010-11-16',201046,11,2010,16,46,201011,2010),('2010-11-17',201046,11,2010,17,46,201011,2010),('2010-11-18',201046,11,2010,18,46,201011,2010),('2010-11-19',201046,11,2010,19,46,201011,2010),('2010-11-20',201046,11,2010,20,46,201011,2010),('2010-11-21',201047,11,2010,21,47,201011,2010),('2010-11-22',201047,11,2010,22,47,201011,2010),('2010-11-23',201047,11,2010,23,47,201011,2010),('2010-11-24',201047,11,2010,24,47,201011,2010),('2010-11-25',201047,11,2010,25,47,201011,2010),('2010-11-26',201047,11,2010,26,47,201011,2010),('2010-11-27',201047,11,2010,27,47,201011,2010),('2010-11-28',201048,11,2010,28,48,201011,2010),('2010-11-29',201048,11,2010,29,48,201011,2010),('2010-11-30',201048,11,2010,30,48,201011,2010),('2010-12-01',201048,12,2010,1,48,201012,2011),('2010-12-02',201048,12,2010,2,48,201012,2011),('2010-12-03',201048,12,2010,3,48,201012,2011),('2010-12-04',201048,12,2010,4,48,201012,2011),('2010-12-05',201049,12,2010,5,49,201012,2011),('2010-12-06',201049,12,2010,6,49,201012,2011),('2010-12-07',201049,12,2010,7,49,201012,2011),('2010-12-08',201049,12,2010,8,49,201012,2011),('2010-12-09',201049,12,2010,9,49,201012,2011),('2010-12-10',201049,12,2010,10,49,201012,2011),('2010-12-11',201049,12,2010,11,49,201012,2011),('2010-12-12',201050,12,2010,12,50,201012,2011),('2010-12-13',201050,12,2010,13,50,201012,2011),('2010-12-14',201050,12,2010,14,50,201012,2011),('2010-12-15',201050,12,2010,15,50,201012,2011),('2010-12-16',201050,12,2010,16,50,201012,2011),('2010-12-17',201050,12,2010,17,50,201012,2011),('2010-12-18',201050,12,2010,18,50,201012,2011),('2010-12-19',201051,12,2010,19,51,201012,2011),('2010-12-20',201051,12,2010,20,51,201012,2011),('2010-12-21',201051,12,2010,21,51,201012,2011),('2010-12-22',201051,12,2010,22,51,201012,2011),('2010-12-23',201051,12,2010,23,51,201012,2011),('2010-12-24',201051,12,2010,24,51,201012,2011),('2010-12-25',201051,12,2010,25,51,201012,2011),('2010-12-26',201052,12,2010,26,52,201012,2011),('2010-12-27',201052,12,2010,27,52,201012,2011),('2010-12-28',201052,12,2010,28,52,201012,2011),('2010-12-29',201052,12,2010,29,52,201012,2011),('2010-12-30',201052,12,2010,30,52,201012,2011),('2010-12-31',201052,12,2010,31,52,201012,2011),('2011-01-01',201052,1,2011,1,52,201101,2011),('2011-01-02',201053,1,2011,2,1,201101,2011),('2011-01-03',201101,1,2011,3,1,201101,2011),('2011-01-04',201101,1,2011,4,1,201101,2011),('2011-01-05',201101,1,2011,5,1,201101,2011),('2011-01-06',201101,1,2011,6,1,201101,2011),('2011-01-07',201101,1,2011,7,1,201101,2011),('2011-01-08',201101,1,2011,8,1,201101,2011),('2011-01-09',201102,1,2011,9,2,201101,2011),('2011-01-10',201102,1,2011,10,2,201101,2011),('2011-01-11',201102,1,2011,11,2,201101,2011),('2011-01-12',201102,1,2011,12,2,201101,2011),('2011-01-13',201102,1,2011,13,2,201101,2011),('2011-01-14',201102,1,2011,14,2,201101,2011),('2011-01-15',201102,1,2011,15,2,201101,2011),('2011-01-16',201103,1,2011,16,3,201101,2011),('2011-01-17',201103,1,2011,17,3,201101,2011),('2011-01-18',201103,1,2011,18,3,201101,2011),('2011-01-19',201103,1,2011,19,3,201101,2011),('2011-01-20',201103,1,2011,20,3,201101,2011),('2011-01-21',201103,1,2011,21,3,201101,2011),('2011-01-22',201103,1,2011,22,3,201101,2011),('2011-01-23',201104,1,2011,23,4,201101,2011),('2011-01-24',201104,1,2011,24,4,201101,2011),('2011-01-25',201104,1,2011,25,4,201101,2011),('2011-01-26',201104,1,2011,26,4,201101,2011),('2011-01-27',201104,1,2011,27,4,201101,2011),('2011-01-28',201104,1,2011,28,4,201101,2011),('2011-01-29',201104,1,2011,29,4,201101,2011),('2011-01-30',201105,1,2011,30,5,201101,2011),('2011-01-31',201105,1,2011,31,5,201101,2011),('2011-02-01',201105,2,2011,1,5,201102,2011),('2011-02-02',201105,2,2011,2,5,201102,2011),('2011-02-03',201105,2,2011,3,5,201102,2011),('2011-02-04',201105,2,2011,4,5,201102,2011),('2011-02-05',201105,2,2011,5,5,201102,2011),('2011-02-06',201106,2,2011,6,6,201102,2011),('2011-02-07',201106,2,2011,7,6,201102,2011),('2011-02-08',201106,2,2011,8,6,201102,2011),('2011-02-09',201106,2,2011,9,6,201102,2011),('2011-02-10',201106,2,2011,10,6,201102,2011),('2011-02-11',201106,2,2011,11,6,201102,2011),('2011-02-12',201106,2,2011,12,6,201102,2011),('2011-02-13',201107,2,2011,13,7,201102,2011),('2011-02-14',201107,2,2011,14,7,201102,2011),('2011-02-15',201107,2,2011,15,7,201102,2011),('2011-02-16',201107,2,2011,16,7,201102,2011),('2011-02-17',201107,2,2011,17,7,201102,2011),('2011-02-18',201107,2,2011,18,7,201102,2011),('2011-02-19',201107,2,2011,19,7,201102,2011),('2011-02-20',201108,2,2011,20,8,201102,2011),('2011-02-21',201108,2,2011,21,8,201102,2011),('2011-02-22',201108,2,2011,22,8,201102,2011),('2011-02-23',201108,2,2011,23,8,201102,2011),('2011-02-24',201108,2,2011,24,8,201102,2011),('2011-02-25',201108,2,2011,25,8,201102,2011),('2011-02-26',201108,2,2011,26,8,201102,2011),('2011-02-27',201109,2,2011,27,9,201102,2011),('2011-02-28',201109,2,2011,28,9,201102,2011),('2011-03-01',201109,3,2011,1,9,201103,2011),('2011-03-02',201109,3,2011,2,9,201103,2011),('2011-03-03',201109,3,2011,3,9,201103,2011),('2011-03-04',201109,3,2011,4,9,201103,2011),('2011-03-05',201109,3,2011,5,9,201103,2011),('2011-03-06',201110,3,2011,6,10,201103,2011),('2011-03-07',201110,3,2011,7,10,201103,2011),('2011-03-08',201110,3,2011,8,10,201103,2011),('2011-03-09',201110,3,2011,9,10,201103,2011),('2011-03-10',201110,3,2011,10,10,201103,2011),('2011-03-11',201110,3,2011,11,10,201103,2011),('2011-03-12',201110,3,2011,12,10,201103,2011),('2011-03-13',201111,3,2011,13,11,201103,2011),('2011-03-14',201111,3,2011,14,11,201103,2011),('2011-03-15',201111,3,2011,15,11,201103,2011),('2011-03-16',201111,3,2011,16,11,201103,2011),('2011-03-17',201111,3,2011,17,11,201103,2011),('2011-03-18',201111,3,2011,18,11,201103,2011),('2011-03-19',201111,3,2011,19,11,201103,2011),('2011-03-20',201112,3,2011,20,12,201103,2011),('2011-03-21',201112,3,2011,21,12,201103,2011),('2011-03-22',201112,3,2011,22,12,201103,2011),('2011-03-23',201112,3,2011,23,12,201103,2011),('2011-03-24',201112,3,2011,24,12,201103,2011),('2011-03-25',201112,3,2011,25,12,201103,2011),('2011-03-26',201112,3,2011,26,12,201103,2011),('2011-03-27',201113,3,2011,27,13,201103,2011),('2011-03-28',201113,3,2011,28,13,201103,2011),('2011-03-29',201113,3,2011,29,13,201103,2011),('2011-03-30',201113,3,2011,30,13,201103,2011),('2011-03-31',201113,3,2011,31,13,201103,2011),('2011-04-01',201113,4,2011,1,13,201104,2011),('2011-04-02',201113,4,2011,2,13,201104,2011),('2011-04-03',201114,4,2011,3,14,201104,2011),('2011-04-04',201114,4,2011,4,14,201104,2011),('2011-04-05',201114,4,2011,5,14,201104,2011),('2011-04-06',201114,4,2011,6,14,201104,2011),('2011-04-07',201114,4,2011,7,14,201104,2011),('2011-04-08',201114,4,2011,8,14,201104,2011),('2011-04-09',201114,4,2011,9,14,201104,2011),('2011-04-10',201115,4,2011,10,15,201104,2011),('2011-04-11',201115,4,2011,11,15,201104,2011),('2011-04-12',201115,4,2011,12,15,201104,2011),('2011-04-13',201115,4,2011,13,15,201104,2011),('2011-04-14',201115,4,2011,14,15,201104,2011),('2011-04-15',201115,4,2011,15,15,201104,2011),('2011-04-16',201115,4,2011,16,15,201104,2011),('2011-04-17',201116,4,2011,17,16,201104,2011),('2011-04-18',201116,4,2011,18,16,201104,2011),('2011-04-19',201116,4,2011,19,16,201104,2011),('2011-04-20',201116,4,2011,20,16,201104,2011),('2011-04-21',201116,4,2011,21,16,201104,2011),('2011-04-22',201116,4,2011,22,16,201104,2011),('2011-04-23',201116,4,2011,23,16,201104,2011),('2011-04-24',201117,4,2011,24,17,201104,2011),('2011-04-25',201117,4,2011,25,17,201104,2011),('2011-04-26',201117,4,2011,26,17,201104,2011),('2011-04-27',201117,4,2011,27,17,201104,2011),('2011-04-28',201117,4,2011,28,17,201104,2011),('2011-04-29',201117,4,2011,29,17,201104,2011),('2011-04-30',201117,4,2011,30,17,201104,2011),('2011-05-01',201118,5,2011,1,18,201105,2011),('2011-05-02',201118,5,2011,2,18,201105,2011),('2011-05-03',201118,5,2011,3,18,201105,2011),('2011-05-04',201118,5,2011,4,18,201105,2011),('2011-05-05',201118,5,2011,5,18,201105,2011),('2011-05-06',201118,5,2011,6,18,201105,2011),('2011-05-07',201118,5,2011,7,18,201105,2011),('2011-05-08',201119,5,2011,8,19,201105,2011),('2011-05-09',201119,5,2011,9,19,201105,2011),('2011-05-10',201119,5,2011,10,19,201105,2011),('2011-05-11',201119,5,2011,11,19,201105,2011),('2011-05-12',201119,5,2011,12,19,201105,2011),('2011-05-13',201119,5,2011,13,19,201105,2011),('2011-05-14',201119,5,2011,14,19,201105,2011),('2011-05-15',201120,5,2011,15,20,201105,2011),('2011-05-16',201120,5,2011,16,20,201105,2011),('2011-05-17',201120,5,2011,17,20,201105,2011),('2011-05-18',201120,5,2011,18,20,201105,2011),('2011-05-19',201120,5,2011,19,20,201105,2011),('2011-05-20',201120,5,2011,20,20,201105,2011),('2011-05-21',201120,5,2011,21,20,201105,2011),('2011-05-22',201121,5,2011,22,21,201105,2011),('2011-05-23',201121,5,2011,23,21,201105,2011),('2011-05-24',201121,5,2011,24,21,201105,2011),('2011-05-25',201121,5,2011,25,21,201105,2011),('2011-05-26',201121,5,2011,26,21,201105,2011),('2011-05-27',201121,5,2011,27,21,201105,2011),('2011-05-28',201121,5,2011,28,21,201105,2011),('2011-05-29',201122,5,2011,29,22,201105,2011),('2011-05-30',201122,5,2011,30,22,201105,2011),('2011-05-31',201122,5,2011,31,22,201105,2011),('2011-06-01',201122,6,2011,1,22,201106,2011),('2011-06-02',201122,6,2011,2,22,201106,2011),('2011-06-03',201122,6,2011,3,22,201106,2011),('2011-06-04',201122,6,2011,4,22,201106,2011),('2011-06-05',201123,6,2011,5,23,201106,2011),('2011-06-06',201123,6,2011,6,23,201106,2011),('2011-06-07',201123,6,2011,7,23,201106,2011),('2011-06-08',201123,6,2011,8,23,201106,2011),('2011-06-09',201123,6,2011,9,23,201106,2011),('2011-06-10',201123,6,2011,10,23,201106,2011),('2011-06-11',201123,6,2011,11,23,201106,2011),('2011-06-12',201124,6,2011,12,24,201106,2011),('2011-06-13',201124,6,2011,13,24,201106,2011),('2011-06-14',201124,6,2011,14,24,201106,2011),('2011-06-15',201124,6,2011,15,24,201106,2011),('2011-06-16',201124,6,2011,16,24,201106,2011),('2011-06-17',201124,6,2011,17,24,201106,2011),('2011-06-18',201124,6,2011,18,24,201106,2011),('2011-06-19',201125,6,2011,19,25,201106,2011),('2011-06-20',201125,6,2011,20,25,201106,2011),('2011-06-21',201125,6,2011,21,25,201106,2011),('2011-06-22',201125,6,2011,22,25,201106,2011),('2011-06-23',201125,6,2011,23,25,201106,2011),('2011-06-24',201125,6,2011,24,25,201106,2011),('2011-06-25',201125,6,2011,25,25,201106,2011),('2011-06-26',201126,6,2011,26,26,201106,2011),('2011-06-27',201126,6,2011,27,26,201106,2011),('2011-06-28',201126,6,2011,28,26,201106,2011),('2011-06-29',201126,6,2011,29,26,201106,2011),('2011-06-30',201126,6,2011,30,26,201106,2011),('2011-07-01',201126,7,2011,1,26,201107,2011),('2011-07-02',201126,7,2011,2,26,201107,2011),('2011-07-03',201127,7,2011,3,27,201107,2011),('2011-07-04',201127,7,2011,4,27,201107,2011),('2011-07-05',201127,7,2011,5,27,201107,2011),('2011-07-06',201127,7,2011,6,27,201107,2011),('2011-07-07',201127,7,2011,7,27,201107,2011),('2011-07-08',201127,7,2011,8,27,201107,2011),('2011-07-09',201127,7,2011,9,27,201107,2011),('2011-07-10',201128,7,2011,10,28,201107,2011),('2011-07-11',201128,7,2011,11,28,201107,2011),('2011-07-12',201128,7,2011,12,28,201107,2011),('2011-07-13',201128,7,2011,13,28,201107,2011),('2011-07-14',201128,7,2011,14,28,201107,2011),('2011-07-15',201128,7,2011,15,28,201107,2011),('2011-07-16',201128,7,2011,16,28,201107,2011),('2011-07-17',201129,7,2011,17,29,201107,2011),('2011-07-18',201129,7,2011,18,29,201107,2011),('2011-07-19',201129,7,2011,19,29,201107,2011),('2011-07-20',201129,7,2011,20,29,201107,2011),('2011-07-21',201129,7,2011,21,29,201107,2011),('2011-07-22',201129,7,2011,22,29,201107,2011),('2011-07-23',201129,7,2011,23,29,201107,2011),('2011-07-24',201130,7,2011,24,30,201107,2011),('2011-07-25',201130,7,2011,25,30,201107,2011),('2011-07-26',201130,7,2011,26,30,201107,2011),('2011-07-27',201130,7,2011,27,30,201107,2011),('2011-07-28',201130,7,2011,28,30,201107,2011),('2011-07-29',201130,7,2011,29,30,201107,2011),('2011-07-30',201130,7,2011,30,30,201107,2011),('2011-07-31',201131,7,2011,31,31,201107,2011),('2011-08-01',201131,8,2011,1,31,201108,2011),('2011-08-02',201131,8,2011,2,31,201108,2011),('2011-08-03',201131,8,2011,3,31,201108,2011),('2011-08-04',201131,8,2011,4,31,201108,2011),('2011-08-05',201131,8,2011,5,31,201108,2011),('2011-08-06',201131,8,2011,6,31,201108,2011),('2011-08-07',201132,8,2011,7,32,201108,2011),('2011-08-08',201132,8,2011,8,32,201108,2011),('2011-08-09',201132,8,2011,9,32,201108,2011),('2011-08-10',201132,8,2011,10,32,201108,2011),('2011-08-11',201132,8,2011,11,32,201108,2011),('2011-08-12',201132,8,2011,12,32,201108,2011),('2011-08-13',201132,8,2011,13,32,201108,2011),('2011-08-14',201133,8,2011,14,33,201108,2011),('2011-08-15',201133,8,2011,15,33,201108,2011),('2011-08-16',201133,8,2011,16,33,201108,2011),('2011-08-17',201133,8,2011,17,33,201108,2011),('2011-08-18',201133,8,2011,18,33,201108,2011),('2011-08-19',201133,8,2011,19,33,201108,2011),('2011-08-20',201133,8,2011,20,33,201108,2011),('2011-08-21',201134,8,2011,21,34,201108,2011),('2011-08-22',201134,8,2011,22,34,201108,2011),('2011-08-23',201134,8,2011,23,34,201108,2011),('2011-08-24',201134,8,2011,24,34,201108,2011),('2011-08-25',201134,8,2011,25,34,201108,2011),('2011-08-26',201134,8,2011,26,34,201108,2011),('2011-08-27',201134,8,2011,27,34,201108,2011),('2011-08-28',201135,8,2011,28,35,201108,2011),('2011-08-29',201135,8,2011,29,35,201108,2011),('2011-08-30',201135,8,2011,30,35,201108,2011),('2011-08-31',201135,8,2011,31,35,201108,2011),('2011-09-01',201135,9,2011,1,35,201109,2011),('2011-09-02',201135,9,2011,2,35,201109,2011),('2011-09-03',201135,9,2011,3,35,201109,2011),('2011-09-04',201136,9,2011,4,36,201109,2011),('2011-09-05',201136,9,2011,5,36,201109,2011),('2011-09-06',201136,9,2011,6,36,201109,2011),('2011-09-07',201136,9,2011,7,36,201109,2011),('2011-09-08',201136,9,2011,8,36,201109,2011),('2011-09-09',201136,9,2011,9,36,201109,2011),('2011-09-10',201136,9,2011,10,36,201109,2011),('2011-09-11',201137,9,2011,11,37,201109,2011),('2011-09-12',201137,9,2011,12,37,201109,2011),('2011-09-13',201137,9,2011,13,37,201109,2011),('2011-09-14',201137,9,2011,14,37,201109,2011),('2011-09-15',201137,9,2011,15,37,201109,2011),('2011-09-16',201137,9,2011,16,37,201109,2011),('2011-09-17',201137,9,2011,17,37,201109,2011),('2011-09-18',201138,9,2011,18,38,201109,2011),('2011-09-19',201138,9,2011,19,38,201109,2011),('2011-09-20',201138,9,2011,20,38,201109,2011),('2011-09-21',201138,9,2011,21,38,201109,2011),('2011-09-22',201138,9,2011,22,38,201109,2011),('2011-09-23',201138,9,2011,23,38,201109,2011),('2011-09-24',201138,9,2011,24,38,201109,2011),('2011-09-25',201139,9,2011,25,39,201109,2011),('2011-09-26',201139,9,2011,26,39,201109,2011),('2011-09-27',201139,9,2011,27,39,201109,2011),('2011-09-28',201139,9,2011,28,39,201109,2011),('2011-09-29',201139,9,2011,29,39,201109,2011),('2011-09-30',201139,9,2011,30,39,201109,2011),('2011-10-01',201139,10,2011,1,39,201110,2011),('2011-10-02',201140,10,2011,2,40,201110,2011),('2011-10-03',201140,10,2011,3,40,201110,2011),('2011-10-04',201140,10,2011,4,40,201110,2011),('2011-10-05',201140,10,2011,5,40,201110,2011),('2011-10-06',201140,10,2011,6,40,201110,2011),('2011-10-07',201140,10,2011,7,40,201110,2011),('2011-10-08',201140,10,2011,8,40,201110,2011),('2011-10-09',201141,10,2011,9,41,201110,2011),('2011-10-10',201141,10,2011,10,41,201110,2011),('2011-10-11',201141,10,2011,11,41,201110,2011),('2011-10-12',201141,10,2011,12,41,201110,2011),('2011-10-13',201141,10,2011,13,41,201110,2011),('2011-10-14',201141,10,2011,14,41,201110,2011),('2011-10-15',201141,10,2011,15,41,201110,2011),('2011-10-16',201142,10,2011,16,42,201110,2011),('2011-10-17',201142,10,2011,17,42,201110,2011),('2011-10-18',201142,10,2011,18,42,201110,2011),('2011-10-19',201142,10,2011,19,42,201110,2011),('2011-10-20',201142,10,2011,20,42,201110,2011),('2011-10-21',201142,10,2011,21,42,201110,2011),('2011-10-22',201142,10,2011,22,42,201110,2011),('2011-10-23',201143,10,2011,23,43,201110,2011),('2011-10-24',201143,10,2011,24,43,201110,2011),('2011-10-25',201143,10,2011,25,43,201110,2011),('2011-10-26',201143,10,2011,26,43,201110,2011),('2011-10-27',201143,10,2011,27,43,201110,2011),('2011-10-28',201143,10,2011,28,43,201110,2011),('2011-10-29',201143,10,2011,29,43,201110,2011),('2011-10-30',201144,10,2011,30,44,201110,2011),('2011-10-31',201144,10,2011,31,44,201110,2011),('2011-11-01',201144,11,2011,1,44,201111,2011),('2011-11-02',201144,11,2011,2,44,201111,2011),('2011-11-03',201144,11,2011,3,44,201111,2011),('2011-11-04',201144,11,2011,4,44,201111,2011),('2011-11-05',201144,11,2011,5,44,201111,2011),('2011-11-06',201145,11,2011,6,45,201111,2011),('2011-11-07',201145,11,2011,7,45,201111,2011),('2011-11-08',201145,11,2011,8,45,201111,2011),('2011-11-09',201145,11,2011,9,45,201111,2011),('2011-11-10',201145,11,2011,10,45,201111,2011),('2011-11-11',201145,11,2011,11,45,201111,2011),('2011-11-12',201145,11,2011,12,45,201111,2011),('2011-11-13',201146,11,2011,13,46,201111,2011),('2011-11-14',201146,11,2011,14,46,201111,2011),('2011-11-15',201146,11,2011,15,46,201111,2011),('2011-11-16',201146,11,2011,16,46,201111,2011),('2011-11-17',201146,11,2011,17,46,201111,2011),('2011-11-18',201146,11,2011,18,46,201111,2011),('2011-11-19',201146,11,2011,19,46,201111,2011),('2011-11-20',201147,11,2011,20,47,201111,2011),('2011-11-21',201147,11,2011,21,47,201111,2011),('2011-11-22',201147,11,2011,22,47,201111,2011),('2011-11-23',201147,11,2011,23,47,201111,2011),('2011-11-24',201147,11,2011,24,47,201111,2011),('2011-11-25',201147,11,2011,25,47,201111,2011),('2011-11-26',201147,11,2011,26,47,201111,2011),('2011-11-27',201148,11,2011,27,48,201111,2011),('2011-11-28',201148,11,2011,28,48,201111,2011),('2011-11-29',201148,11,2011,29,48,201111,2011),('2011-11-30',201148,11,2011,30,48,201111,2011),('2011-12-01',201148,12,2011,1,48,201112,2012),('2011-12-02',201148,12,2011,2,48,201112,2012),('2011-12-03',201148,12,2011,3,48,201112,2012),('2011-12-04',201149,12,2011,4,49,201112,2012),('2011-12-05',201149,12,2011,5,49,201112,2012),('2011-12-06',201149,12,2011,6,49,201112,2012),('2011-12-07',201149,12,2011,7,49,201112,2012),('2011-12-08',201149,12,2011,8,49,201112,2012),('2011-12-09',201149,12,2011,9,49,201112,2012),('2011-12-10',201149,12,2011,10,49,201112,2012),('2011-12-11',201150,12,2011,11,50,201112,2012),('2011-12-12',201150,12,2011,12,50,201112,2012),('2011-12-13',201150,12,2011,13,50,201112,2012),('2011-12-14',201150,12,2011,14,50,201112,2012),('2011-12-15',201150,12,2011,15,50,201112,2012),('2011-12-16',201150,12,2011,16,50,201112,2012),('2011-12-17',201150,12,2011,17,50,201112,2012),('2011-12-18',201151,12,2011,18,51,201112,2012),('2011-12-19',201151,12,2011,19,51,201112,2012),('2011-12-20',201151,12,2011,20,51,201112,2012),('2011-12-21',201151,12,2011,21,51,201112,2012),('2011-12-22',201151,12,2011,22,51,201112,2012),('2011-12-23',201151,12,2011,23,51,201112,2012),('2011-12-24',201151,12,2011,24,51,201112,2012),('2011-12-25',201152,12,2011,25,52,201112,2012),('2011-12-26',201152,12,2011,26,52,201112,2012),('2011-12-27',201152,12,2011,27,52,201112,2012),('2011-12-28',201152,12,2011,28,52,201112,2012),('2011-12-29',201152,12,2011,29,52,201112,2012),('2011-12-30',201152,12,2011,30,52,201112,2012),('2011-12-31',201152,12,2011,31,52,201112,2012),('2012-01-01',201153,1,2012,1,1,201201,2012),('2012-01-02',201201,1,2012,2,1,201201,2012),('2012-01-03',201201,1,2012,3,1,201201,2012),('2012-01-04',201201,1,2012,4,1,201201,2012),('2012-01-05',201201,1,2012,5,1,201201,2012),('2012-01-06',201201,1,2012,6,1,201201,2012),('2012-01-07',201201,1,2012,7,1,201201,2012),('2012-01-08',201202,1,2012,8,2,201201,2012),('2012-01-09',201202,1,2012,9,2,201201,2012),('2012-01-10',201202,1,2012,10,2,201201,2012),('2012-01-11',201202,1,2012,11,2,201201,2012),('2012-01-12',201202,1,2012,12,2,201201,2012),('2012-01-13',201202,1,2012,13,2,201201,2012),('2012-01-14',201202,1,2012,14,2,201201,2012),('2012-01-15',201203,1,2012,15,3,201201,2012),('2012-01-16',201203,1,2012,16,3,201201,2012),('2012-01-17',201203,1,2012,17,3,201201,2012),('2012-01-18',201203,1,2012,18,3,201201,2012),('2012-01-19',201203,1,2012,19,3,201201,2012),('2012-01-20',201203,1,2012,20,3,201201,2012),('2012-01-21',201203,1,2012,21,3,201201,2012),('2012-01-22',201204,1,2012,22,4,201201,2012),('2012-01-23',201204,1,2012,23,4,201201,2012),('2012-01-24',201204,1,2012,24,4,201201,2012),('2012-01-25',201204,1,2012,25,4,201201,2012),('2012-01-26',201204,1,2012,26,4,201201,2012),('2012-01-27',201204,1,2012,27,4,201201,2012),('2012-01-28',201204,1,2012,28,4,201201,2012),('2012-01-29',201205,1,2012,29,5,201201,2012),('2012-01-30',201205,1,2012,30,5,201201,2012),('2012-01-31',201205,1,2012,31,5,201201,2012),('2012-02-01',201205,2,2012,1,5,201202,2012),('2012-02-02',201205,2,2012,2,5,201202,2012),('2012-02-03',201205,2,2012,3,5,201202,2012),('2012-02-04',201205,2,2012,4,5,201202,2012),('2012-02-05',201206,2,2012,5,6,201202,2012),('2012-02-06',201206,2,2012,6,6,201202,2012),('2012-02-07',201206,2,2012,7,6,201202,2012),('2012-02-08',201206,2,2012,8,6,201202,2012),('2012-02-09',201206,2,2012,9,6,201202,2012),('2012-02-10',201206,2,2012,10,6,201202,2012),('2012-02-11',201206,2,2012,11,6,201202,2012),('2012-02-12',201207,2,2012,12,7,201202,2012),('2012-02-13',201207,2,2012,13,7,201202,2012),('2012-02-14',201207,2,2012,14,7,201202,2012),('2012-02-15',201207,2,2012,15,7,201202,2012),('2012-02-16',201207,2,2012,16,7,201202,2012),('2012-02-17',201207,2,2012,17,7,201202,2012),('2012-02-18',201207,2,2012,18,7,201202,2012),('2012-02-19',201208,2,2012,19,8,201202,2012),('2012-02-20',201208,2,2012,20,8,201202,2012),('2012-02-21',201208,2,2012,21,8,201202,2012),('2012-02-22',201208,2,2012,22,8,201202,2012),('2012-02-23',201208,2,2012,23,8,201202,2012),('2012-02-24',201208,2,2012,24,8,201202,2012),('2012-02-25',201208,2,2012,25,8,201202,2012),('2012-02-26',201209,2,2012,26,9,201202,2012),('2012-02-27',201209,2,2012,27,9,201202,2012),('2012-02-28',201209,2,2012,28,9,201202,2012),('2012-02-29',201209,2,2012,29,9,201202,2012),('2012-03-01',201209,3,2012,1,9,201203,2012),('2012-03-02',201209,3,2012,2,9,201203,2012),('2012-03-03',201209,3,2012,3,9,201203,2012),('2012-03-04',201210,3,2012,4,10,201203,2012),('2012-03-05',201210,3,2012,5,10,201203,2012),('2012-03-06',201210,3,2012,6,10,201203,2012),('2012-03-07',201210,3,2012,7,10,201203,2012),('2012-03-08',201210,3,2012,8,10,201203,2012),('2012-03-09',201210,3,2012,9,10,201203,2012),('2012-03-10',201210,3,2012,10,10,201203,2012),('2012-03-11',201211,3,2012,11,11,201203,2012),('2012-03-12',201211,3,2012,12,11,201203,2012),('2012-03-13',201211,3,2012,13,11,201203,2012),('2012-03-14',201211,3,2012,14,11,201203,2012),('2012-03-15',201211,3,2012,15,11,201203,2012),('2012-03-16',201211,3,2012,16,11,201203,2012),('2012-03-17',201211,3,2012,17,11,201203,2012),('2012-03-18',201212,3,2012,18,12,201203,2012),('2012-03-19',201212,3,2012,19,12,201203,2012),('2012-03-20',201212,3,2012,20,12,201203,2012),('2012-03-21',201212,3,2012,21,12,201203,2012),('2012-03-22',201212,3,2012,22,12,201203,2012),('2012-03-23',201212,3,2012,23,12,201203,2012),('2012-03-24',201212,3,2012,24,12,201203,2012),('2012-03-25',201213,3,2012,25,13,201203,2012),('2012-03-26',201213,3,2012,26,13,201203,2012),('2012-03-27',201213,3,2012,27,13,201203,2012),('2012-03-28',201213,3,2012,28,13,201203,2012),('2012-03-29',201213,3,2012,29,13,201203,2012),('2012-03-30',201213,3,2012,30,13,201203,2012),('2012-03-31',201213,3,2012,31,13,201203,2012),('2012-04-01',201214,4,2012,1,14,201204,2012),('2012-04-02',201214,4,2012,2,14,201204,2012),('2012-04-03',201214,4,2012,3,14,201204,2012),('2012-04-04',201214,4,2012,4,14,201204,2012),('2012-04-05',201214,4,2012,5,14,201204,2012),('2012-04-06',201214,4,2012,6,14,201204,2012),('2012-04-07',201214,4,2012,7,14,201204,2012),('2012-04-08',201215,4,2012,8,15,201204,2012),('2012-04-09',201215,4,2012,9,15,201204,2012),('2012-04-10',201215,4,2012,10,15,201204,2012),('2012-04-11',201215,4,2012,11,15,201204,2012),('2012-04-12',201215,4,2012,12,15,201204,2012),('2012-04-13',201215,4,2012,13,15,201204,2012),('2012-04-14',201215,4,2012,14,15,201204,2012),('2012-04-15',201216,4,2012,15,16,201204,2012),('2012-04-16',201216,4,2012,16,16,201204,2012),('2012-04-17',201216,4,2012,17,16,201204,2012),('2012-04-18',201216,4,2012,18,16,201204,2012),('2012-04-19',201216,4,2012,19,16,201204,2012),('2012-04-20',201216,4,2012,20,16,201204,2012),('2012-04-21',201216,4,2012,21,16,201204,2012),('2012-04-22',201217,4,2012,22,17,201204,2012),('2012-04-23',201217,4,2012,23,17,201204,2012),('2012-04-24',201217,4,2012,24,17,201204,2012),('2012-04-25',201217,4,2012,25,17,201204,2012),('2012-04-26',201217,4,2012,26,17,201204,2012),('2012-04-27',201217,4,2012,27,17,201204,2012),('2012-04-28',201217,4,2012,28,17,201204,2012),('2012-04-29',201218,4,2012,29,18,201204,2012),('2012-04-30',201218,4,2012,30,18,201204,2012),('2012-05-01',201218,5,2012,1,18,201205,2012),('2012-05-02',201218,5,2012,2,18,201205,2012),('2012-05-03',201218,5,2012,3,18,201205,2012),('2012-05-04',201218,5,2012,4,18,201205,2012),('2012-05-05',201218,5,2012,5,18,201205,2012),('2012-05-06',201219,5,2012,6,19,201205,2012),('2012-05-07',201219,5,2012,7,19,201205,2012),('2012-05-08',201219,5,2012,8,19,201205,2012),('2012-05-09',201219,5,2012,9,19,201205,2012),('2012-05-10',201219,5,2012,10,19,201205,2012),('2012-05-11',201219,5,2012,11,19,201205,2012),('2012-05-12',201219,5,2012,12,19,201205,2012),('2012-05-13',201220,5,2012,13,20,201205,2012),('2012-05-14',201220,5,2012,14,20,201205,2012),('2012-05-15',201220,5,2012,15,20,201205,2012),('2012-05-16',201220,5,2012,16,20,201205,2012),('2012-05-17',201220,5,2012,17,20,201205,2012),('2012-05-18',201220,5,2012,18,20,201205,2012),('2012-05-19',201220,5,2012,19,20,201205,2012),('2012-05-20',201221,5,2012,20,21,201205,2012),('2012-05-21',201221,5,2012,21,21,201205,2012),('2012-05-22',201221,5,2012,22,21,201205,2012),('2012-05-23',201221,5,2012,23,21,201205,2012),('2012-05-24',201221,5,2012,24,21,201205,2012),('2012-05-25',201221,5,2012,25,21,201205,2012),('2012-05-26',201221,5,2012,26,21,201205,2012),('2012-05-27',201222,5,2012,27,22,201205,2012),('2012-05-28',201222,5,2012,28,22,201205,2012),('2012-05-29',201222,5,2012,29,22,201205,2012),('2012-05-30',201222,5,2012,30,22,201205,2012),('2012-05-31',201222,5,2012,31,22,201205,2012),('2012-06-01',201222,6,2012,1,22,201206,2012),('2012-06-02',201222,6,2012,2,22,201206,2012),('2012-06-03',201223,6,2012,3,23,201206,2012),('2012-06-04',201223,6,2012,4,23,201206,2012),('2012-06-05',201223,6,2012,5,23,201206,2012),('2012-06-06',201223,6,2012,6,23,201206,2012),('2012-06-07',201223,6,2012,7,23,201206,2012),('2012-06-08',201223,6,2012,8,23,201206,2012),('2012-06-09',201223,6,2012,9,23,201206,2012),('2012-06-10',201224,6,2012,10,24,201206,2012),('2012-06-11',201224,6,2012,11,24,201206,2012),('2012-06-12',201224,6,2012,12,24,201206,2012),('2012-06-13',201224,6,2012,13,24,201206,2012),('2012-06-14',201224,6,2012,14,24,201206,2012),('2012-06-15',201224,6,2012,15,24,201206,2012),('2012-06-16',201224,6,2012,16,24,201206,2012),('2012-06-17',201225,6,2012,17,25,201206,2012),('2012-06-18',201225,6,2012,18,25,201206,2012),('2012-06-19',201225,6,2012,19,25,201206,2012),('2012-06-20',201225,6,2012,20,25,201206,2012),('2012-06-21',201225,6,2012,21,25,201206,2012),('2012-06-22',201225,6,2012,22,25,201206,2012),('2012-06-23',201225,6,2012,23,25,201206,2012),('2012-06-24',201226,6,2012,24,26,201206,2012),('2012-06-25',201226,6,2012,25,26,201206,2012),('2012-06-26',201226,6,2012,26,26,201206,2012),('2012-06-27',201226,6,2012,27,26,201206,2012),('2012-06-28',201226,6,2012,28,26,201206,2012),('2012-06-29',201226,6,2012,29,26,201206,2012),('2012-06-30',201226,6,2012,30,26,201206,2012),('2012-07-01',201227,7,2012,1,27,201207,2012),('2012-07-02',201227,7,2012,2,27,201207,2012),('2012-07-03',201227,7,2012,3,27,201207,2012),('2012-07-04',201227,7,2012,4,27,201207,2012),('2012-07-05',201227,7,2012,5,27,201207,2012),('2012-07-06',201227,7,2012,6,27,201207,2012),('2012-07-07',201227,7,2012,7,27,201207,2012),('2012-07-08',201228,7,2012,8,28,201207,2012),('2012-07-09',201228,7,2012,9,28,201207,2012),('2012-07-10',201228,7,2012,10,28,201207,2012),('2012-07-11',201228,7,2012,11,28,201207,2012),('2012-07-12',201228,7,2012,12,28,201207,2012),('2012-07-13',201228,7,2012,13,28,201207,2012),('2012-07-14',201228,7,2012,14,28,201207,2012),('2012-07-15',201229,7,2012,15,29,201207,2012),('2012-07-16',201229,7,2012,16,29,201207,2012),('2012-07-17',201229,7,2012,17,29,201207,2012),('2012-07-18',201229,7,2012,18,29,201207,2012),('2012-07-19',201229,7,2012,19,29,201207,2012),('2012-07-20',201229,7,2012,20,29,201207,2012),('2012-07-21',201229,7,2012,21,29,201207,2012),('2012-07-22',201230,7,2012,22,30,201207,2012),('2012-07-23',201230,7,2012,23,30,201207,2012),('2012-07-24',201230,7,2012,24,30,201207,2012),('2012-07-25',201230,7,2012,25,30,201207,2012),('2012-07-26',201230,7,2012,26,30,201207,2012),('2012-07-27',201230,7,2012,27,30,201207,2012),('2012-07-28',201230,7,2012,28,30,201207,2012),('2012-07-29',201231,7,2012,29,31,201207,2012),('2012-07-30',201231,7,2012,30,31,201207,2012),('2012-07-31',201231,7,2012,31,31,201207,2012),('2012-08-01',201231,8,2012,1,31,201208,2012),('2012-08-02',201231,8,2012,2,31,201208,2012),('2012-08-03',201231,8,2012,3,31,201208,2012),('2012-08-04',201231,8,2012,4,31,201208,2012),('2012-08-05',201232,8,2012,5,32,201208,2012),('2012-08-06',201232,8,2012,6,32,201208,2012),('2012-08-07',201232,8,2012,7,32,201208,2012),('2012-08-08',201232,8,2012,8,32,201208,2012),('2012-08-09',201232,8,2012,9,32,201208,2012),('2012-08-10',201232,8,2012,10,32,201208,2012),('2012-08-11',201232,8,2012,11,32,201208,2012),('2012-08-12',201233,8,2012,12,33,201208,2012),('2012-08-13',201233,8,2012,13,33,201208,2012),('2012-08-14',201233,8,2012,14,33,201208,2012),('2012-08-15',201233,8,2012,15,33,201208,2012),('2012-08-16',201233,8,2012,16,33,201208,2012),('2012-08-17',201233,8,2012,17,33,201208,2012),('2012-08-18',201233,8,2012,18,33,201208,2012),('2012-08-19',201234,8,2012,19,34,201208,2012),('2012-08-20',201234,8,2012,20,34,201208,2012),('2012-08-21',201234,8,2012,21,34,201208,2012),('2012-08-22',201234,8,2012,22,34,201208,2012),('2012-08-23',201234,8,2012,23,34,201208,2012),('2012-08-24',201234,8,2012,24,34,201208,2012),('2012-08-25',201234,8,2012,25,34,201208,2012),('2012-08-26',201235,8,2012,26,35,201208,2012),('2012-08-27',201235,8,2012,27,35,201208,2012),('2012-08-28',201235,8,2012,28,35,201208,2012),('2012-08-29',201235,8,2012,29,35,201208,2012),('2012-08-30',201235,8,2012,30,35,201208,2012),('2012-08-31',201235,8,2012,31,35,201208,2012),('2012-09-01',201235,9,2012,1,35,201209,2012),('2012-09-02',201236,9,2012,2,36,201209,2012),('2012-09-03',201236,9,2012,3,36,201209,2012),('2012-09-04',201236,9,2012,4,36,201209,2012),('2012-09-05',201236,9,2012,5,36,201209,2012),('2012-09-06',201236,9,2012,6,36,201209,2012),('2012-09-07',201236,9,2012,7,36,201209,2012),('2012-09-08',201236,9,2012,8,36,201209,2012),('2012-09-09',201237,9,2012,9,37,201209,2012),('2012-09-10',201237,9,2012,10,37,201209,2012),('2012-09-11',201237,9,2012,11,37,201209,2012),('2012-09-12',201237,9,2012,12,37,201209,2012),('2012-09-13',201237,9,2012,13,37,201209,2012),('2012-09-14',201237,9,2012,14,37,201209,2012),('2012-09-15',201237,9,2012,15,37,201209,2012),('2012-09-16',201238,9,2012,16,38,201209,2012),('2012-09-17',201238,9,2012,17,38,201209,2012),('2012-09-18',201238,9,2012,18,38,201209,2012),('2012-09-19',201238,9,2012,19,38,201209,2012),('2012-09-20',201238,9,2012,20,38,201209,2012),('2012-09-21',201238,9,2012,21,38,201209,2012),('2012-09-22',201238,9,2012,22,38,201209,2012),('2012-09-23',201239,9,2012,23,39,201209,2012),('2012-09-24',201239,9,2012,24,39,201209,2012),('2012-09-25',201239,9,2012,25,39,201209,2012),('2012-09-26',201239,9,2012,26,39,201209,2012),('2012-09-27',201239,9,2012,27,39,201209,2012),('2012-09-28',201239,9,2012,28,39,201209,2012),('2012-09-29',201239,9,2012,29,39,201209,2012),('2012-09-30',201240,9,2012,30,40,201209,2012),('2012-10-01',201240,10,2012,1,40,201210,2012),('2012-10-02',201240,10,2012,2,40,201210,2012),('2012-10-03',201240,10,2012,3,40,201210,2012),('2012-10-04',201240,10,2012,4,40,201210,2012),('2012-10-05',201240,10,2012,5,40,201210,2012),('2012-10-06',201240,10,2012,6,40,201210,2012),('2012-10-07',201241,10,2012,7,41,201210,2012),('2012-10-08',201241,10,2012,8,41,201210,2012),('2012-10-09',201241,10,2012,9,41,201210,2012),('2012-10-10',201241,10,2012,10,41,201210,2012),('2012-10-11',201241,10,2012,11,41,201210,2012),('2012-10-12',201241,10,2012,12,41,201210,2012),('2012-10-13',201241,10,2012,13,41,201210,2012),('2012-10-14',201242,10,2012,14,42,201210,2012),('2012-10-15',201242,10,2012,15,42,201210,2012),('2012-10-16',201242,10,2012,16,42,201210,2012),('2012-10-17',201242,10,2012,17,42,201210,2012),('2012-10-18',201242,10,2012,18,42,201210,2012),('2012-10-19',201242,10,2012,19,42,201210,2012),('2012-10-20',201242,10,2012,20,42,201210,2012),('2012-10-21',201243,10,2012,21,43,201210,2012),('2012-10-22',201243,10,2012,22,43,201210,2012),('2012-10-23',201243,10,2012,23,43,201210,2012),('2012-10-24',201243,10,2012,24,43,201210,2012),('2012-10-25',201243,10,2012,25,43,201210,2012),('2012-10-26',201243,10,2012,26,43,201210,2012),('2012-10-27',201243,10,2012,27,43,201210,2012),('2012-10-28',201244,10,2012,28,44,201210,2012),('2012-10-29',201244,10,2012,29,44,201210,2012),('2012-10-30',201244,10,2012,30,44,201210,2012),('2012-10-31',201244,10,2012,31,44,201210,2012),('2012-11-01',201244,11,2012,1,44,201211,2012),('2012-11-02',201244,11,2012,2,44,201211,2012),('2012-11-03',201244,11,2012,3,44,201211,2012),('2012-11-04',201245,11,2012,4,45,201211,2012),('2012-11-05',201245,11,2012,5,45,201211,2012),('2012-11-06',201245,11,2012,6,45,201211,2012),('2012-11-07',201245,11,2012,7,45,201211,2012),('2012-11-08',201245,11,2012,8,45,201211,2012),('2012-11-09',201245,11,2012,9,45,201211,2012),('2012-11-10',201245,11,2012,10,45,201211,2012),('2012-11-11',201246,11,2012,11,46,201211,2012),('2012-11-12',201246,11,2012,12,46,201211,2012),('2012-11-13',201246,11,2012,13,46,201211,2012),('2012-11-14',201246,11,2012,14,46,201211,2012),('2012-11-15',201246,11,2012,15,46,201211,2012),('2012-11-16',201246,11,2012,16,46,201211,2012),('2012-11-17',201246,11,2012,17,46,201211,2012),('2012-11-18',201247,11,2012,18,47,201211,2012),('2012-11-19',201247,11,2012,19,47,201211,2012),('2012-11-20',201247,11,2012,20,47,201211,2012),('2012-11-21',201247,11,2012,21,47,201211,2012),('2012-11-22',201247,11,2012,22,47,201211,2012),('2012-11-23',201247,11,2012,23,47,201211,2012),('2012-11-24',201247,11,2012,24,47,201211,2012),('2012-11-25',201248,11,2012,25,48,201211,2012),('2012-11-26',201248,11,2012,26,48,201211,2012),('2012-11-27',201248,11,2012,27,48,201211,2012),('2012-11-28',201248,11,2012,28,48,201211,2012),('2012-11-29',201248,11,2012,29,48,201211,2012),('2012-11-30',201248,11,2012,30,48,201211,2012),('2012-12-01',201248,12,2012,1,48,201212,2013),('2012-12-02',201249,12,2012,2,49,201212,2013),('2012-12-03',201249,12,2012,3,49,201212,2013),('2012-12-04',201249,12,2012,4,49,201212,2013),('2012-12-05',201249,12,2012,5,49,201212,2013),('2012-12-06',201249,12,2012,6,49,201212,2013),('2012-12-07',201249,12,2012,7,49,201212,2013),('2012-12-08',201249,12,2012,8,49,201212,2013),('2012-12-09',201250,12,2012,9,50,201212,2013),('2012-12-10',201250,12,2012,10,50,201212,2013),('2012-12-11',201250,12,2012,11,50,201212,2013),('2012-12-12',201250,12,2012,12,50,201212,2013),('2012-12-13',201250,12,2012,13,50,201212,2013),('2012-12-14',201250,12,2012,14,50,201212,2013),('2012-12-15',201250,12,2012,15,50,201212,2013),('2012-12-16',201251,12,2012,16,51,201212,2013),('2012-12-17',201251,12,2012,17,51,201212,2013),('2012-12-18',201251,12,2012,18,51,201212,2013),('2012-12-19',201251,12,2012,19,51,201212,2013),('2012-12-20',201251,12,2012,20,51,201212,2013),('2012-12-21',201251,12,2012,21,51,201212,2013),('2012-12-22',201251,12,2012,22,51,201212,2013),('2012-12-23',201252,12,2012,23,52,201212,2013),('2012-12-24',201252,12,2012,24,52,201212,2013),('2012-12-25',201252,12,2012,25,52,201212,2013),('2012-12-26',201252,12,2012,26,52,201212,2013),('2012-12-27',201252,12,2012,27,52,201212,2013),('2012-12-28',201252,12,2012,28,52,201212,2013),('2012-12-29',201252,12,2012,29,52,201212,2013),('2012-12-30',201301,12,2012,30,1,201212,2013),('2012-12-31',201301,12,2012,31,1,201212,2013),('2013-01-01',201301,1,2013,1,1,201301,2013),('2013-01-02',201301,1,2013,2,1,201301,2013),('2013-01-03',201301,1,2013,3,1,201301,2013),('2013-01-04',201301,1,2013,4,1,201301,2013),('2013-01-05',201301,1,2013,5,1,201301,2013),('2013-01-06',201302,1,2013,6,2,201301,2013),('2013-01-07',201302,1,2013,7,2,201301,2013),('2013-01-08',201302,1,2013,8,2,201301,2013),('2013-01-09',201302,1,2013,9,2,201301,2013),('2013-01-10',201302,1,2013,10,2,201301,2013),('2013-01-11',201302,1,2013,11,2,201301,2013),('2013-01-12',201302,1,2013,12,2,201301,2013),('2013-01-13',201303,1,2013,13,3,201301,2013),('2013-01-14',201303,1,2013,14,3,201301,2013),('2013-01-15',201303,1,2013,15,3,201301,2013),('2013-01-16',201303,1,2013,16,3,201301,2013),('2013-01-17',201303,1,2013,17,3,201301,2013),('2013-01-18',201303,1,2013,18,3,201301,2013),('2013-01-19',201303,1,2013,19,3,201301,2013),('2013-01-20',201304,1,2013,20,4,201301,2013),('2013-01-21',201304,1,2013,21,4,201301,2013),('2013-01-22',201304,1,2013,22,4,201301,2013),('2013-01-23',201304,1,2013,23,4,201301,2013),('2013-01-24',201304,1,2013,24,4,201301,2013),('2013-01-25',201304,1,2013,25,4,201301,2013),('2013-01-26',201304,1,2013,26,4,201301,2013),('2013-01-27',201305,1,2013,27,5,201301,2013),('2013-01-28',201305,1,2013,28,5,201301,2013),('2013-01-29',201305,1,2013,29,5,201301,2013),('2013-01-30',201305,1,2013,30,5,201301,2013),('2013-01-31',201305,1,2013,31,5,201301,2013),('2013-02-01',201305,2,2013,1,5,201302,2013),('2013-02-02',201305,2,2013,2,5,201302,2013),('2013-02-03',201306,2,2013,3,6,201302,2013),('2013-02-04',201306,2,2013,4,6,201302,2013),('2013-02-05',201306,2,2013,5,6,201302,2013),('2013-02-06',201306,2,2013,6,6,201302,2013),('2013-02-07',201306,2,2013,7,6,201302,2013),('2013-02-08',201306,2,2013,8,6,201302,2013),('2013-02-09',201306,2,2013,9,6,201302,2013),('2013-02-10',201307,2,2013,10,7,201302,2013),('2013-02-11',201307,2,2013,11,7,201302,2013),('2013-02-12',201307,2,2013,12,7,201302,2013),('2013-02-13',201307,2,2013,13,7,201302,2013),('2013-02-14',201307,2,2013,14,7,201302,2013),('2013-02-15',201307,2,2013,15,7,201302,2013),('2013-02-16',201307,2,2013,16,7,201302,2013),('2013-02-17',201308,2,2013,17,8,201302,2013),('2013-02-18',201308,2,2013,18,8,201302,2013),('2013-02-19',201308,2,2013,19,8,201302,2013),('2013-02-20',201308,2,2013,20,8,201302,2013),('2013-02-21',201308,2,2013,21,8,201302,2013),('2013-02-22',201308,2,2013,22,8,201302,2013),('2013-02-23',201308,2,2013,23,8,201302,2013),('2013-02-24',201309,2,2013,24,9,201302,2013),('2013-02-25',201309,2,2013,25,9,201302,2013),('2013-02-26',201309,2,2013,26,9,201302,2013),('2013-02-27',201309,2,2013,27,9,201302,2013),('2013-02-28',201309,2,2013,28,9,201302,2013),('2013-03-01',201309,3,2013,1,9,201303,2013),('2013-03-02',201309,3,2013,2,9,201303,2013),('2013-03-03',201310,3,2013,3,10,201303,2013),('2013-03-04',201310,3,2013,4,10,201303,2013),('2013-03-05',201310,3,2013,5,10,201303,2013),('2013-03-06',201310,3,2013,6,10,201303,2013),('2013-03-07',201310,3,2013,7,10,201303,2013),('2013-03-08',201310,3,2013,8,10,201303,2013),('2013-03-09',201310,3,2013,9,10,201303,2013),('2013-03-10',201311,3,2013,10,11,201303,2013),('2013-03-11',201311,3,2013,11,11,201303,2013),('2013-03-12',201311,3,2013,12,11,201303,2013),('2013-03-13',201311,3,2013,13,11,201303,2013),('2013-03-14',201311,3,2013,14,11,201303,2013),('2013-03-15',201311,3,2013,15,11,201303,2013),('2013-03-16',201311,3,2013,16,11,201303,2013),('2013-03-17',201312,3,2013,17,12,201303,2013),('2013-03-18',201312,3,2013,18,12,201303,2013),('2013-03-19',201312,3,2013,19,12,201303,2013),('2013-03-20',201312,3,2013,20,12,201303,2013),('2013-03-21',201312,3,2013,21,12,201303,2013),('2013-03-22',201312,3,2013,22,12,201303,2013),('2013-03-23',201312,3,2013,23,12,201303,2013),('2013-03-24',201313,3,2013,24,13,201303,2013),('2013-03-25',201313,3,2013,25,13,201303,2013),('2013-03-26',201313,3,2013,26,13,201303,2013),('2013-03-27',201313,3,2013,27,13,201303,2013),('2013-03-28',201313,3,2013,28,13,201303,2013),('2013-03-29',201313,3,2013,29,13,201303,2013),('2013-03-30',201313,3,2013,30,13,201303,2013),('2013-03-31',201314,3,2013,31,14,201303,2013),('2013-04-01',201314,4,2013,1,14,201304,2013),('2013-04-02',201314,4,2013,2,14,201304,2013),('2013-04-03',201314,4,2013,3,14,201304,2013),('2013-04-04',201314,4,2013,4,14,201304,2013),('2013-04-05',201314,4,2013,5,14,201304,2013),('2013-04-06',201314,4,2013,6,14,201304,2013),('2013-04-07',201315,4,2013,7,15,201304,2013),('2013-04-08',201315,4,2013,8,15,201304,2013),('2013-04-09',201315,4,2013,9,15,201304,2013),('2013-04-10',201315,4,2013,10,15,201304,2013),('2013-04-11',201315,4,2013,11,15,201304,2013),('2013-04-12',201315,4,2013,12,15,201304,2013),('2013-04-13',201315,4,2013,13,15,201304,2013),('2013-04-14',201316,4,2013,14,16,201304,2013),('2013-04-15',201316,4,2013,15,16,201304,2013),('2013-04-16',201316,4,2013,16,16,201304,2013),('2013-04-17',201316,4,2013,17,16,201304,2013),('2013-04-18',201316,4,2013,18,16,201304,2013),('2013-04-19',201316,4,2013,19,16,201304,2013),('2013-04-20',201316,4,2013,20,16,201304,2013),('2013-04-21',201317,4,2013,21,17,201304,2013),('2013-04-22',201317,4,2013,22,17,201304,2013),('2013-04-23',201317,4,2013,23,17,201304,2013),('2013-04-24',201317,4,2013,24,17,201304,2013),('2013-04-25',201317,4,2013,25,17,201304,2013),('2013-04-26',201317,4,2013,26,17,201304,2013),('2013-04-27',201317,4,2013,27,17,201304,2013),('2013-04-28',201318,4,2013,28,18,201304,2013),('2013-04-29',201318,4,2013,29,18,201304,2013),('2013-04-30',201318,4,2013,30,18,201304,2013),('2013-05-01',201318,5,2013,1,18,201305,2013),('2013-05-02',201318,5,2013,2,18,201305,2013),('2013-05-03',201318,5,2013,3,18,201305,2013),('2013-05-04',201318,5,2013,4,18,201305,2013),('2013-05-05',201319,5,2013,5,19,201305,2013),('2013-05-06',201319,5,2013,6,19,201305,2013),('2013-05-07',201319,5,2013,7,19,201305,2013),('2013-05-08',201319,5,2013,8,19,201305,2013),('2013-05-09',201319,5,2013,9,19,201305,2013),('2013-05-10',201319,5,2013,10,19,201305,2013),('2013-05-11',201319,5,2013,11,19,201305,2013),('2013-05-12',201320,5,2013,12,20,201305,2013),('2013-05-13',201320,5,2013,13,20,201305,2013),('2013-05-14',201320,5,2013,14,20,201305,2013),('2013-05-15',201320,5,2013,15,20,201305,2013),('2013-05-16',201320,5,2013,16,20,201305,2013),('2013-05-17',201320,5,2013,17,20,201305,2013),('2013-05-18',201320,5,2013,18,20,201305,2013),('2013-05-19',201321,5,2013,19,21,201305,2013),('2013-05-20',201321,5,2013,20,21,201305,2013),('2013-05-21',201321,5,2013,21,21,201305,2013),('2013-05-22',201321,5,2013,22,21,201305,2013),('2013-05-23',201321,5,2013,23,21,201305,2013),('2013-05-24',201321,5,2013,24,21,201305,2013),('2013-05-25',201321,5,2013,25,21,201305,2013),('2013-05-26',201322,5,2013,26,22,201305,2013),('2013-05-27',201322,5,2013,27,22,201305,2013),('2013-05-28',201322,5,2013,28,22,201305,2013),('2013-05-29',201322,5,2013,29,22,201305,2013),('2013-05-30',201322,5,2013,30,22,201305,2013),('2013-05-31',201322,5,2013,31,22,201305,2013),('2013-06-01',201322,6,2013,1,22,201306,2013),('2013-06-02',201323,6,2013,2,23,201306,2013),('2013-06-03',201323,6,2013,3,23,201306,2013),('2013-06-04',201323,6,2013,4,23,201306,2013),('2013-06-05',201323,6,2013,5,23,201306,2013),('2013-06-06',201323,6,2013,6,23,201306,2013),('2013-06-07',201323,6,2013,7,23,201306,2013),('2013-06-08',201323,6,2013,8,23,201306,2013),('2013-06-09',201324,6,2013,9,24,201306,2013),('2013-06-10',201324,6,2013,10,24,201306,2013),('2013-06-11',201324,6,2013,11,24,201306,2013),('2013-06-12',201324,6,2013,12,24,201306,2013),('2013-06-13',201324,6,2013,13,24,201306,2013),('2013-06-14',201324,6,2013,14,24,201306,2013),('2013-06-15',201324,6,2013,15,24,201306,2013),('2013-06-16',201325,6,2013,16,25,201306,2013),('2013-06-17',201325,6,2013,17,25,201306,2013),('2013-06-18',201325,6,2013,18,25,201306,2013),('2013-06-19',201325,6,2013,19,25,201306,2013),('2013-06-20',201325,6,2013,20,25,201306,2013),('2013-06-21',201325,6,2013,21,25,201306,2013),('2013-06-22',201325,6,2013,22,25,201306,2013),('2013-06-23',201326,6,2013,23,26,201306,2013),('2013-06-24',201326,6,2013,24,26,201306,2013),('2013-06-25',201326,6,2013,25,26,201306,2013),('2013-06-26',201326,6,2013,26,26,201306,2013),('2013-06-27',201326,6,2013,27,26,201306,2013),('2013-06-28',201326,6,2013,28,26,201306,2013),('2013-06-29',201326,6,2013,29,26,201306,2013),('2013-06-30',201327,6,2013,30,27,201306,2013),('2013-07-01',201327,7,2013,1,27,201307,2013),('2013-07-02',201327,7,2013,2,27,201307,2013),('2013-07-03',201327,7,2013,3,27,201307,2013),('2013-07-04',201327,7,2013,4,27,201307,2013),('2013-07-05',201327,7,2013,5,27,201307,2013),('2013-07-06',201327,7,2013,6,27,201307,2013),('2013-07-07',201328,7,2013,7,28,201307,2013),('2013-07-08',201328,7,2013,8,28,201307,2013),('2013-07-09',201328,7,2013,9,28,201307,2013),('2013-07-10',201328,7,2013,10,28,201307,2013),('2013-07-11',201328,7,2013,11,28,201307,2013),('2013-07-12',201328,7,2013,12,28,201307,2013),('2013-07-13',201328,7,2013,13,28,201307,2013),('2013-07-14',201329,7,2013,14,29,201307,2013),('2013-07-15',201329,7,2013,15,29,201307,2013),('2013-07-16',201329,7,2013,16,29,201307,2013),('2013-07-17',201329,7,2013,17,29,201307,2013),('2013-07-18',201329,7,2013,18,29,201307,2013),('2013-07-19',201329,7,2013,19,29,201307,2013),('2013-07-20',201329,7,2013,20,29,201307,2013),('2013-07-21',201330,7,2013,21,30,201307,2013),('2013-07-22',201330,7,2013,22,30,201307,2013),('2013-07-23',201330,7,2013,23,30,201307,2013),('2013-07-24',201330,7,2013,24,30,201307,2013),('2013-07-25',201330,7,2013,25,30,201307,2013),('2013-07-26',201330,7,2013,26,30,201307,2013),('2013-07-27',201330,7,2013,27,30,201307,2013),('2013-07-28',201331,7,2013,28,31,201307,2013),('2013-07-29',201331,7,2013,29,31,201307,2013),('2013-07-30',201331,7,2013,30,31,201307,2013),('2013-07-31',201331,7,2013,31,31,201307,2013),('2013-08-01',201331,8,2013,1,31,201308,2013),('2013-08-02',201331,8,2013,2,31,201308,2013),('2013-08-03',201331,8,2013,3,31,201308,2013),('2013-08-04',201332,8,2013,4,32,201308,2013),('2013-08-05',201332,8,2013,5,32,201308,2013),('2013-08-06',201332,8,2013,6,32,201308,2013),('2013-08-07',201332,8,2013,7,32,201308,2013),('2013-08-08',201332,8,2013,8,32,201308,2013),('2013-08-09',201332,8,2013,9,32,201308,2013),('2013-08-10',201332,8,2013,10,32,201308,2013),('2013-08-11',201333,8,2013,11,33,201308,2013),('2013-08-12',201333,8,2013,12,33,201308,2013),('2013-08-13',201333,8,2013,13,33,201308,2013),('2013-08-14',201333,8,2013,14,33,201308,2013),('2013-08-15',201333,8,2013,15,33,201308,2013),('2013-08-16',201333,8,2013,16,33,201308,2013),('2013-08-17',201333,8,2013,17,33,201308,2013),('2013-08-18',201334,8,2013,18,34,201308,2013),('2013-08-19',201334,8,2013,19,34,201308,2013),('2013-08-20',201334,8,2013,20,34,201308,2013),('2013-08-21',201334,8,2013,21,34,201308,2013),('2013-08-22',201334,8,2013,22,34,201308,2013),('2013-08-23',201334,8,2013,23,34,201308,2013),('2013-08-24',201334,8,2013,24,34,201308,2013),('2013-08-25',201335,8,2013,25,35,201308,2013),('2013-08-26',201335,8,2013,26,35,201308,2013),('2013-08-27',201335,8,2013,27,35,201308,2013),('2013-08-28',201335,8,2013,28,35,201308,2013),('2013-08-29',201335,8,2013,29,35,201308,2013),('2013-08-30',201335,8,2013,30,35,201308,2013),('2013-08-31',201335,8,2013,31,35,201308,2013),('2013-09-01',201336,9,2013,1,36,201309,2013),('2013-09-02',201336,9,2013,2,36,201309,2013),('2013-09-03',201336,9,2013,3,36,201309,2013),('2013-09-04',201336,9,2013,4,36,201309,2013),('2013-09-05',201336,9,2013,5,36,201309,2013),('2013-09-06',201336,9,2013,6,36,201309,2013),('2013-09-07',201336,9,2013,7,36,201309,2013),('2013-09-08',201337,9,2013,8,37,201309,2013),('2013-09-09',201337,9,2013,9,37,201309,2013),('2013-09-10',201337,9,2013,10,37,201309,2013),('2013-09-11',201337,9,2013,11,37,201309,2013),('2013-09-12',201337,9,2013,12,37,201309,2013),('2013-09-13',201337,9,2013,13,37,201309,2013),('2013-09-14',201337,9,2013,14,37,201309,2013),('2013-09-15',201338,9,2013,15,38,201309,2013),('2013-09-16',201338,9,2013,16,38,201309,2013),('2013-09-17',201338,9,2013,17,38,201309,2013),('2013-09-18',201338,9,2013,18,38,201309,2013),('2013-09-19',201338,9,2013,19,38,201309,2013),('2013-09-20',201338,9,2013,20,38,201309,2013),('2013-09-21',201338,9,2013,21,38,201309,2013),('2013-09-22',201339,9,2013,22,39,201309,2013),('2013-09-23',201339,9,2013,23,39,201309,2013),('2013-09-24',201339,9,2013,24,39,201309,2013),('2013-09-25',201339,9,2013,25,39,201309,2013),('2013-09-26',201339,9,2013,26,39,201309,2013),('2013-09-27',201339,9,2013,27,39,201309,2013),('2013-09-28',201339,9,2013,28,39,201309,2013),('2013-09-29',201340,9,2013,29,40,201309,2013),('2013-09-30',201340,9,2013,30,40,201309,2013),('2013-10-01',201340,10,2013,1,40,201310,2013),('2013-10-02',201340,10,2013,2,40,201310,2013),('2013-10-03',201340,10,2013,3,40,201310,2013),('2013-10-04',201340,10,2013,4,40,201310,2013),('2013-10-05',201340,10,2013,5,40,201310,2013),('2013-10-06',201341,10,2013,6,41,201310,2013),('2013-10-07',201341,10,2013,7,41,201310,2013),('2013-10-08',201341,10,2013,8,41,201310,2013),('2013-10-09',201341,10,2013,9,41,201310,2013),('2013-10-10',201341,10,2013,10,41,201310,2013),('2013-10-11',201341,10,2013,11,41,201310,2013),('2013-10-12',201341,10,2013,12,41,201310,2013),('2013-10-13',201342,10,2013,13,42,201310,2013),('2013-10-14',201342,10,2013,14,42,201310,2013),('2013-10-15',201342,10,2013,15,42,201310,2013),('2013-10-16',201342,10,2013,16,42,201310,2013),('2013-10-17',201342,10,2013,17,42,201310,2013),('2013-10-18',201342,10,2013,18,42,201310,2013),('2013-10-19',201342,10,2013,19,42,201310,2013),('2013-10-20',201343,10,2013,20,43,201310,2013),('2013-10-21',201343,10,2013,21,43,201310,2013),('2013-10-22',201343,10,2013,22,43,201310,2013),('2013-10-23',201343,10,2013,23,43,201310,2013),('2013-10-24',201343,10,2013,24,43,201310,2013),('2013-10-25',201343,10,2013,25,43,201310,2013),('2013-10-26',201343,10,2013,26,43,201310,2013),('2013-10-27',201344,10,2013,27,44,201310,2013),('2013-10-28',201344,10,2013,28,44,201310,2013),('2013-10-29',201344,10,2013,29,44,201310,2013),('2013-10-30',201344,10,2013,30,44,201310,2013),('2013-10-31',201344,10,2013,31,44,201310,2013),('2013-11-01',201344,11,2013,1,44,201311,2013),('2013-11-02',201344,11,2013,2,44,201311,2013),('2013-11-03',201345,11,2013,3,45,201311,2013),('2013-11-04',201345,11,2013,4,45,201311,2013),('2013-11-05',201345,11,2013,5,45,201311,2013),('2013-11-06',201345,11,2013,6,45,201311,2013),('2013-11-07',201345,11,2013,7,45,201311,2013),('2013-11-08',201345,11,2013,8,45,201311,2013),('2013-11-09',201345,11,2013,9,45,201311,2013),('2013-11-10',201346,11,2013,10,46,201311,2013),('2013-11-11',201346,11,2013,11,46,201311,2013),('2013-11-12',201346,11,2013,12,46,201311,2013),('2013-11-13',201346,11,2013,13,46,201311,2013),('2013-11-14',201346,11,2013,14,46,201311,2013),('2013-11-15',201346,11,2013,15,46,201311,2013),('2013-11-16',201346,11,2013,16,46,201311,2013),('2013-11-17',201347,11,2013,17,47,201311,2013),('2013-11-18',201347,11,2013,18,47,201311,2013),('2013-11-19',201347,11,2013,19,47,201311,2013),('2013-11-20',201347,11,2013,20,47,201311,2013),('2013-11-21',201347,11,2013,21,47,201311,2013),('2013-11-22',201347,11,2013,22,47,201311,2013),('2013-11-23',201347,11,2013,23,47,201311,2013),('2013-11-24',201348,11,2013,24,48,201311,2013),('2013-11-25',201348,11,2013,25,48,201311,2013),('2013-11-26',201348,11,2013,26,48,201311,2013),('2013-11-27',201348,11,2013,27,48,201311,2013),('2013-11-28',201348,11,2013,28,48,201311,2013),('2013-11-29',201348,11,2013,29,48,201311,2013),('2013-11-30',201348,11,2013,30,48,201311,2013),('2013-12-01',201349,12,2013,1,49,201312,2014),('2013-12-02',201349,12,2013,2,49,201312,2014),('2013-12-03',201349,12,2013,3,49,201312,2014),('2013-12-04',201349,12,2013,4,49,201312,2014),('2013-12-05',201349,12,2013,5,49,201312,2014),('2013-12-06',201349,12,2013,6,49,201312,2014),('2013-12-07',201349,12,2013,7,49,201312,2014),('2013-12-08',201350,12,2013,8,50,201312,2014),('2013-12-09',201350,12,2013,9,50,201312,2014),('2013-12-10',201350,12,2013,10,50,201312,2014),('2013-12-11',201350,12,2013,11,50,201312,2014),('2013-12-12',201350,12,2013,12,50,201312,2014),('2013-12-13',201350,12,2013,13,50,201312,2014),('2013-12-14',201350,12,2013,14,50,201312,2014),('2013-12-15',201351,12,2013,15,51,201312,2014),('2013-12-16',201351,12,2013,16,51,201312,2014),('2013-12-17',201351,12,2013,17,51,201312,2014),('2013-12-18',201351,12,2013,18,51,201312,2014),('2013-12-19',201351,12,2013,19,51,201312,2014),('2013-12-20',201351,12,2013,20,51,201312,2014),('2013-12-21',201351,12,2013,21,51,201312,2014),('2013-12-22',201352,12,2013,22,52,201312,2014),('2013-12-23',201352,12,2013,23,52,201312,2014),('2013-12-24',201352,12,2013,24,52,201312,2014),('2013-12-25',201352,12,2013,25,52,201312,2014),('2013-12-26',201352,12,2013,26,52,201312,2014),('2013-12-27',201352,12,2013,27,52,201312,2014),('2013-12-28',201352,12,2013,28,52,201312,2014),('2013-12-29',201401,12,2013,29,1,201312,2014),('2013-12-30',201401,12,2013,30,1,201312,2014),('2013-12-31',201401,12,2013,31,1,201312,2014),('2014-01-01',201401,1,2014,1,1,201401,2014),('2014-01-02',201401,1,2014,2,1,201401,2014),('2014-01-03',201401,1,2014,3,1,201401,2014),('2014-01-04',201401,1,2014,4,1,201401,2014),('2014-01-05',201402,1,2014,5,2,201401,2014),('2014-01-06',201402,1,2014,6,2,201401,2014),('2014-01-07',201402,1,2014,7,2,201401,2014),('2014-01-08',201402,1,2014,8,2,201401,2014),('2014-01-09',201402,1,2014,9,2,201401,2014),('2014-01-10',201402,1,2014,10,2,201401,2014),('2014-01-11',201402,1,2014,11,2,201401,2014),('2014-01-12',201403,1,2014,12,3,201401,2014),('2014-01-13',201403,1,2014,13,3,201401,2014),('2014-01-14',201403,1,2014,14,3,201401,2014),('2014-01-15',201403,1,2014,15,3,201401,2014),('2014-01-16',201403,1,2014,16,3,201401,2014),('2014-01-17',201403,1,2014,17,3,201401,2014),('2014-01-18',201403,1,2014,18,3,201401,2014),('2014-01-19',201404,1,2014,19,4,201401,2014),('2014-01-20',201404,1,2014,20,4,201401,2014),('2014-01-21',201404,1,2014,21,4,201401,2014),('2014-01-22',201404,1,2014,22,4,201401,2014),('2014-01-23',201404,1,2014,23,4,201401,2014),('2014-01-24',201404,1,2014,24,4,201401,2014),('2014-01-25',201404,1,2014,25,4,201401,2014),('2014-01-26',201405,1,2014,26,5,201401,2014),('2014-01-27',201405,1,2014,27,5,201401,2014),('2014-01-28',201405,1,2014,28,5,201401,2014),('2014-01-29',201405,1,2014,29,5,201401,2014),('2014-01-30',201405,1,2014,30,5,201401,2014),('2014-01-31',201405,1,2014,31,5,201401,2014),('2014-02-01',201405,2,2014,1,5,201402,2014),('2014-02-02',201406,2,2014,2,6,201402,2014),('2014-02-03',201406,2,2014,3,6,201402,2014),('2014-02-04',201406,2,2014,4,6,201402,2014),('2014-02-05',201406,2,2014,5,6,201402,2014),('2014-02-06',201406,2,2014,6,6,201402,2014),('2014-02-07',201406,2,2014,7,6,201402,2014),('2014-02-08',201406,2,2014,8,6,201402,2014),('2014-02-09',201407,2,2014,9,7,201402,2014),('2014-02-10',201407,2,2014,10,7,201402,2014),('2014-02-11',201407,2,2014,11,7,201402,2014),('2014-02-12',201407,2,2014,12,7,201402,2014),('2014-02-13',201407,2,2014,13,7,201402,2014),('2014-02-14',201407,2,2014,14,7,201402,2014),('2014-02-15',201407,2,2014,15,7,201402,2014),('2014-02-16',201408,2,2014,16,8,201402,2014),('2014-02-17',201408,2,2014,17,8,201402,2014),('2014-02-18',201408,2,2014,18,8,201402,2014),('2014-02-19',201408,2,2014,19,8,201402,2014),('2014-02-20',201408,2,2014,20,8,201402,2014),('2014-02-21',201408,2,2014,21,8,201402,2014),('2014-02-22',201408,2,2014,22,8,201402,2014),('2014-02-23',201409,2,2014,23,9,201402,2014),('2014-02-24',201409,2,2014,24,9,201402,2014),('2014-02-25',201409,2,2014,25,9,201402,2014),('2014-02-26',201409,2,2014,26,9,201402,2014),('2014-02-27',201409,2,2014,27,9,201402,2014),('2014-02-28',201409,2,2014,28,9,201402,2014),('2014-03-01',201409,3,2014,1,9,201403,2014),('2014-03-02',201410,3,2014,2,10,201403,2014),('2014-03-03',201410,3,2014,3,10,201403,2014),('2014-03-04',201410,3,2014,4,10,201403,2014),('2014-03-05',201410,3,2014,5,10,201403,2014),('2014-03-06',201410,3,2014,6,10,201403,2014),('2014-03-07',201410,3,2014,7,10,201403,2014),('2014-03-08',201410,3,2014,8,10,201403,2014),('2014-03-09',201411,3,2014,9,11,201403,2014),('2014-03-10',201411,3,2014,10,11,201403,2014),('2014-03-11',201411,3,2014,11,11,201403,2014),('2014-03-12',201411,3,2014,12,11,201403,2014),('2014-03-13',201411,3,2014,13,11,201403,2014),('2014-03-14',201411,3,2014,14,11,201403,2014),('2014-03-15',201411,3,2014,15,11,201403,2014),('2014-03-16',201412,3,2014,16,12,201403,2014),('2014-03-17',201412,3,2014,17,12,201403,2014),('2014-03-18',201412,3,2014,18,12,201403,2014),('2014-03-19',201412,3,2014,19,12,201403,2014),('2014-03-20',201412,3,2014,20,12,201403,2014),('2014-03-21',201412,3,2014,21,12,201403,2014),('2014-03-22',201412,3,2014,22,12,201403,2014),('2014-03-23',201413,3,2014,23,13,201403,2014),('2014-03-24',201413,3,2014,24,13,201403,2014),('2014-03-25',201413,3,2014,25,13,201403,2014),('2014-03-26',201413,3,2014,26,13,201403,2014),('2014-03-27',201413,3,2014,27,13,201403,2014),('2014-03-28',201413,3,2014,28,13,201403,2014),('2014-03-29',201413,3,2014,29,13,201403,2014),('2014-03-30',201414,3,2014,30,14,201403,2014),('2014-03-31',201414,3,2014,31,14,201403,2014),('2014-04-01',201414,4,2014,1,14,201404,2014),('2014-04-02',201414,4,2014,2,14,201404,2014),('2014-04-03',201414,4,2014,3,14,201404,2014),('2014-04-04',201414,4,2014,4,14,201404,2014),('2014-04-05',201414,4,2014,5,14,201404,2014),('2014-04-06',201415,4,2014,6,15,201404,2014),('2014-04-07',201415,4,2014,7,15,201404,2014),('2014-04-08',201415,4,2014,8,15,201404,2014),('2014-04-09',201415,4,2014,9,15,201404,2014),('2014-04-10',201415,4,2014,10,15,201404,2014),('2014-04-11',201415,4,2014,11,15,201404,2014),('2014-04-12',201415,4,2014,12,15,201404,2014),('2014-04-13',201416,4,2014,13,16,201404,2014),('2014-04-14',201416,4,2014,14,16,201404,2014),('2014-04-15',201416,4,2014,15,16,201404,2014),('2014-04-16',201416,4,2014,16,16,201404,2014),('2014-04-17',201416,4,2014,17,16,201404,2014),('2014-04-18',201416,4,2014,18,16,201404,2014),('2014-04-19',201416,4,2014,19,16,201404,2014),('2014-04-20',201417,4,2014,20,17,201404,2014),('2014-04-21',201417,4,2014,21,17,201404,2014),('2014-04-22',201417,4,2014,22,17,201404,2014),('2014-04-23',201417,4,2014,23,17,201404,2014),('2014-04-24',201417,4,2014,24,17,201404,2014),('2014-04-25',201417,4,2014,25,17,201404,2014),('2014-04-26',201417,4,2014,26,17,201404,2014),('2014-04-27',201418,4,2014,27,18,201404,2014),('2014-04-28',201418,4,2014,28,18,201404,2014),('2014-04-29',201418,4,2014,29,18,201404,2014),('2014-04-30',201418,4,2014,30,18,201404,2014),('2014-05-01',201418,5,2014,1,18,201405,2014),('2014-05-02',201418,5,2014,2,18,201405,2014),('2014-05-03',201418,5,2014,3,18,201405,2014),('2014-05-04',201419,5,2014,4,19,201405,2014),('2014-05-05',201419,5,2014,5,19,201405,2014),('2014-05-06',201419,5,2014,6,19,201405,2014),('2014-05-07',201419,5,2014,7,19,201405,2014),('2014-05-08',201419,5,2014,8,19,201405,2014),('2014-05-09',201419,5,2014,9,19,201405,2014),('2014-05-10',201419,5,2014,10,19,201405,2014),('2014-05-11',201420,5,2014,11,20,201405,2014),('2014-05-12',201420,5,2014,12,20,201405,2014),('2014-05-13',201420,5,2014,13,20,201405,2014),('2014-05-14',201420,5,2014,14,20,201405,2014),('2014-05-15',201420,5,2014,15,20,201405,2014),('2014-05-16',201420,5,2014,16,20,201405,2014),('2014-05-17',201420,5,2014,17,20,201405,2014),('2014-05-18',201421,5,2014,18,21,201405,2014),('2014-05-19',201421,5,2014,19,21,201405,2014),('2014-05-20',201421,5,2014,20,21,201405,2014),('2014-05-21',201421,5,2014,21,21,201405,2014),('2014-05-22',201421,5,2014,22,21,201405,2014),('2014-05-23',201421,5,2014,23,21,201405,2014),('2014-05-24',201421,5,2014,24,21,201405,2014),('2014-05-25',201422,5,2014,25,22,201405,2014),('2014-05-26',201422,5,2014,26,22,201405,2014),('2014-05-27',201422,5,2014,27,22,201405,2014),('2014-05-28',201422,5,2014,28,22,201405,2014),('2014-05-29',201422,5,2014,29,22,201405,2014),('2014-05-30',201422,5,2014,30,22,201405,2014),('2014-05-31',201422,5,2014,31,22,201405,2014),('2014-06-01',201423,6,2014,1,23,201406,2014),('2014-06-02',201423,6,2014,2,23,201406,2014),('2014-06-03',201423,6,2014,3,23,201406,2014),('2014-06-04',201423,6,2014,4,23,201406,2014),('2014-06-05',201423,6,2014,5,23,201406,2014),('2014-06-06',201423,6,2014,6,23,201406,2014),('2014-06-07',201423,6,2014,7,23,201406,2014),('2014-06-08',201424,6,2014,8,24,201406,2014),('2014-06-09',201424,6,2014,9,24,201406,2014),('2014-06-10',201424,6,2014,10,24,201406,2014),('2014-06-11',201424,6,2014,11,24,201406,2014),('2014-06-12',201424,6,2014,12,24,201406,2014),('2014-06-13',201424,6,2014,13,24,201406,2014),('2014-06-14',201424,6,2014,14,24,201406,2014),('2014-06-15',201425,6,2014,15,25,201406,2014),('2014-06-16',201425,6,2014,16,25,201406,2014),('2014-06-17',201425,6,2014,17,25,201406,2014),('2014-06-18',201425,6,2014,18,25,201406,2014),('2014-06-19',201425,6,2014,19,25,201406,2014),('2014-06-20',201425,6,2014,20,25,201406,2014),('2014-06-21',201425,6,2014,21,25,201406,2014),('2014-06-22',201426,6,2014,22,26,201406,2014),('2014-06-23',201426,6,2014,23,26,201406,2014),('2014-06-24',201426,6,2014,24,26,201406,2014),('2014-06-25',201426,6,2014,25,26,201406,2014),('2014-06-26',201426,6,2014,26,26,201406,2014),('2014-06-27',201426,6,2014,27,26,201406,2014),('2014-06-28',201426,6,2014,28,26,201406,2014),('2014-06-29',201427,6,2014,29,27,201406,2014),('2014-06-30',201427,6,2014,30,27,201406,2014),('2014-07-01',201427,7,2014,1,27,201407,2014),('2014-07-02',201427,7,2014,2,27,201407,2014),('2014-07-03',201427,7,2014,3,27,201407,2014),('2014-07-04',201427,7,2014,4,27,201407,2014),('2014-07-05',201427,7,2014,5,27,201407,2014),('2014-07-06',201428,7,2014,6,28,201407,2014),('2014-07-07',201428,7,2014,7,28,201407,2014),('2014-07-08',201428,7,2014,8,28,201407,2014),('2014-07-09',201428,7,2014,9,28,201407,2014),('2014-07-10',201428,7,2014,10,28,201407,2014),('2014-07-11',201428,7,2014,11,28,201407,2014),('2014-07-12',201428,7,2014,12,28,201407,2014),('2014-07-13',201429,7,2014,13,29,201407,2014),('2014-07-14',201429,7,2014,14,29,201407,2014),('2014-07-15',201429,7,2014,15,29,201407,2014),('2014-07-16',201429,7,2014,16,29,201407,2014),('2014-07-17',201429,7,2014,17,29,201407,2014),('2014-07-18',201429,7,2014,18,29,201407,2014),('2014-07-19',201429,7,2014,19,29,201407,2014),('2014-07-20',201430,7,2014,20,30,201407,2014),('2014-07-21',201430,7,2014,21,30,201407,2014),('2014-07-22',201430,7,2014,22,30,201407,2014),('2014-07-23',201430,7,2014,23,30,201407,2014),('2014-07-24',201430,7,2014,24,30,201407,2014),('2014-07-25',201430,7,2014,25,30,201407,2014),('2014-07-26',201430,7,2014,26,30,201407,2014),('2014-07-27',201431,7,2014,27,31,201407,2014),('2014-07-28',201431,7,2014,28,31,201407,2014),('2014-07-29',201431,7,2014,29,31,201407,2014),('2014-07-30',201431,7,2014,30,31,201407,2014),('2014-07-31',201431,7,2014,31,31,201407,2014),('2014-08-01',201431,8,2014,1,31,201408,2014),('2014-08-02',201431,8,2014,2,31,201408,2014),('2014-08-03',201432,8,2014,3,32,201408,2014),('2014-08-04',201432,8,2014,4,32,201408,2014),('2014-08-05',201432,8,2014,5,32,201408,2014),('2014-08-06',201432,8,2014,6,32,201408,2014),('2014-08-07',201432,8,2014,7,32,201408,2014),('2014-08-08',201432,8,2014,8,32,201408,2014),('2014-08-09',201432,8,2014,9,32,201408,2014),('2014-08-10',201433,8,2014,10,33,201408,2014),('2014-08-11',201433,8,2014,11,33,201408,2014),('2014-08-12',201433,8,2014,12,33,201408,2014),('2014-08-13',201433,8,2014,13,33,201408,2014),('2014-08-14',201433,8,2014,14,33,201408,2014),('2014-08-15',201433,8,2014,15,33,201408,2014),('2014-08-16',201433,8,2014,16,33,201408,2014),('2014-08-17',201434,8,2014,17,34,201408,2014),('2014-08-18',201434,8,2014,18,34,201408,2014),('2014-08-19',201434,8,2014,19,34,201408,2014),('2014-08-20',201434,8,2014,20,34,201408,2014),('2014-08-21',201434,8,2014,21,34,201408,2014),('2014-08-22',201434,8,2014,22,34,201408,2014),('2014-08-23',201434,8,2014,23,34,201408,2014),('2014-08-24',201435,8,2014,24,35,201408,2014),('2014-08-25',201435,8,2014,25,35,201408,2014),('2014-08-26',201435,8,2014,26,35,201408,2014),('2014-08-27',201435,8,2014,27,35,201408,2014),('2014-08-28',201435,8,2014,28,35,201408,2014),('2014-08-29',201435,8,2014,29,35,201408,2014),('2014-08-30',201435,8,2014,30,35,201408,2014),('2014-08-31',201436,8,2014,31,36,201408,2014),('2014-09-01',201436,9,2014,1,36,201409,2014),('2014-09-02',201436,9,2014,2,36,201409,2014),('2014-09-03',201436,9,2014,3,36,201409,2014),('2014-09-04',201436,9,2014,4,36,201409,2014),('2014-09-05',201436,9,2014,5,36,201409,2014),('2014-09-06',201436,9,2014,6,36,201409,2014),('2014-09-07',201437,9,2014,7,37,201409,2014),('2014-09-08',201437,9,2014,8,37,201409,2014),('2014-09-09',201437,9,2014,9,37,201409,2014),('2014-09-10',201437,9,2014,10,37,201409,2014),('2014-09-11',201437,9,2014,11,37,201409,2014),('2014-09-12',201437,9,2014,12,37,201409,2014),('2014-09-13',201437,9,2014,13,37,201409,2014),('2014-09-14',201438,9,2014,14,38,201409,2014),('2014-09-15',201438,9,2014,15,38,201409,2014),('2014-09-16',201438,9,2014,16,38,201409,2014),('2014-09-17',201438,9,2014,17,38,201409,2014),('2014-09-18',201438,9,2014,18,38,201409,2014),('2014-09-19',201438,9,2014,19,38,201409,2014),('2014-09-20',201438,9,2014,20,38,201409,2014),('2014-09-21',201439,9,2014,21,39,201409,2014),('2014-09-22',201439,9,2014,22,39,201409,2014),('2014-09-23',201439,9,2014,23,39,201409,2014),('2014-09-24',201439,9,2014,24,39,201409,2014),('2014-09-25',201439,9,2014,25,39,201409,2014),('2014-09-26',201439,9,2014,26,39,201409,2014),('2014-09-27',201439,9,2014,27,39,201409,2014),('2014-09-28',201440,9,2014,28,40,201409,2014),('2014-09-29',201440,9,2014,29,40,201409,2014),('2014-09-30',201440,9,2014,30,40,201409,2014),('2014-10-01',201440,10,2014,1,40,201410,2014),('2014-10-02',201440,10,2014,2,40,201410,2014),('2014-10-03',201440,10,2014,3,40,201410,2014),('2014-10-04',201440,10,2014,4,40,201410,2014),('2014-10-05',201441,10,2014,5,41,201410,2014),('2014-10-06',201441,10,2014,6,41,201410,2014),('2014-10-07',201441,10,2014,7,41,201410,2014),('2014-10-08',201441,10,2014,8,41,201410,2014),('2014-10-09',201441,10,2014,9,41,201410,2014),('2014-10-10',201441,10,2014,10,41,201410,2014),('2014-10-11',201441,10,2014,11,41,201410,2014),('2014-10-12',201442,10,2014,12,42,201410,2014),('2014-10-13',201442,10,2014,13,42,201410,2014),('2014-10-14',201442,10,2014,14,42,201410,2014),('2014-10-15',201442,10,2014,15,42,201410,2014),('2014-10-16',201442,10,2014,16,42,201410,2014),('2014-10-17',201442,10,2014,17,42,201410,2014),('2014-10-18',201442,10,2014,18,42,201410,2014),('2014-10-19',201443,10,2014,19,43,201410,2014),('2014-10-20',201443,10,2014,20,43,201410,2014),('2014-10-21',201443,10,2014,21,43,201410,2014),('2014-10-22',201443,10,2014,22,43,201410,2014),('2014-10-23',201443,10,2014,23,43,201410,2014),('2014-10-24',201443,10,2014,24,43,201410,2014),('2014-10-25',201443,10,2014,25,43,201410,2014),('2014-10-26',201444,10,2014,26,44,201410,2014),('2014-10-27',201444,10,2014,27,44,201410,2014),('2014-10-28',201444,10,2014,28,44,201410,2014),('2014-10-29',201444,10,2014,29,44,201410,2014),('2014-10-30',201444,10,2014,30,44,201410,2014),('2014-10-31',201444,10,2014,31,44,201410,2014),('2014-11-01',201444,11,2014,1,44,201411,2014),('2014-11-02',201445,11,2014,2,45,201411,2014),('2014-11-03',201445,11,2014,3,45,201411,2014),('2014-11-04',201445,11,2014,4,45,201411,2014),('2014-11-05',201445,11,2014,5,45,201411,2014),('2014-11-06',201445,11,2014,6,45,201411,2014),('2014-11-07',201445,11,2014,7,45,201411,2014),('2014-11-08',201445,11,2014,8,45,201411,2014),('2014-11-09',201446,11,2014,9,46,201411,2014),('2014-11-10',201446,11,2014,10,46,201411,2014),('2014-11-11',201446,11,2014,11,46,201411,2014),('2014-11-12',201446,11,2014,12,46,201411,2014),('2014-11-13',201446,11,2014,13,46,201411,2014),('2014-11-14',201446,11,2014,14,46,201411,2014),('2014-11-15',201446,11,2014,15,46,201411,2014),('2014-11-16',201447,11,2014,16,47,201411,2014),('2014-11-17',201447,11,2014,17,47,201411,2014),('2014-11-18',201447,11,2014,18,47,201411,2014),('2014-11-19',201447,11,2014,19,47,201411,2014),('2014-11-20',201447,11,2014,20,47,201411,2014),('2014-11-21',201447,11,2014,21,47,201411,2014),('2014-11-22',201447,11,2014,22,47,201411,2014),('2014-11-23',201448,11,2014,23,48,201411,2014),('2014-11-24',201448,11,2014,24,48,201411,2014),('2014-11-25',201448,11,2014,25,48,201411,2014),('2014-11-26',201448,11,2014,26,48,201411,2014),('2014-11-27',201448,11,2014,27,48,201411,2014),('2014-11-28',201448,11,2014,28,48,201411,2014),('2014-11-29',201448,11,2014,29,48,201411,2014),('2014-11-30',201449,11,2014,30,49,201411,2014),('2014-12-01',201449,12,2014,1,49,201412,2015),('2014-12-02',201449,12,2014,2,49,201412,2015),('2014-12-03',201449,12,2014,3,49,201412,2015),('2014-12-04',201449,12,2014,4,49,201412,2015),('2014-12-05',201449,12,2014,5,49,201412,2015),('2014-12-06',201449,12,2014,6,49,201412,2015),('2014-12-07',201450,12,2014,7,50,201412,2015),('2014-12-08',201450,12,2014,8,50,201412,2015),('2014-12-09',201450,12,2014,9,50,201412,2015),('2014-12-10',201450,12,2014,10,50,201412,2015),('2014-12-11',201450,12,2014,11,50,201412,2015),('2014-12-12',201450,12,2014,12,50,201412,2015),('2014-12-13',201450,12,2014,13,50,201412,2015),('2014-12-14',201451,12,2014,14,51,201412,2015),('2014-12-15',201451,12,2014,15,51,201412,2015),('2014-12-16',201451,12,2014,16,51,201412,2015),('2014-12-17',201451,12,2014,17,51,201412,2015),('2014-12-18',201451,12,2014,18,51,201412,2015),('2014-12-19',201451,12,2014,19,51,201412,2015),('2014-12-20',201451,12,2014,20,51,201412,2015),('2014-12-21',201452,12,2014,21,52,201412,2015),('2014-12-22',201452,12,2014,22,52,201412,2015),('2014-12-23',201452,12,2014,23,52,201412,2015),('2014-12-24',201452,12,2014,24,52,201412,2015),('2014-12-25',201452,12,2014,25,52,201412,2015),('2014-12-26',201452,12,2014,26,52,201412,2015),('2014-12-27',201452,12,2014,27,52,201412,2015),('2014-12-28',201453,12,2014,28,53,201412,2015),('2014-12-29',201453,12,2014,29,53,201412,2015),('2014-12-30',201453,12,2014,30,53,201412,2015),('2014-12-31',201453,12,2014,31,53,201412,2015),('2015-01-01',201453,1,2015,1,53,201501,2015),('2015-01-02',201453,1,2015,2,53,201501,2015),('2015-01-03',201453,1,2015,3,53,201501,2015),('2015-01-04',201501,1,2015,4,1,201501,2015),('2015-01-05',201501,1,2015,5,1,201501,2015),('2015-01-06',201501,1,2015,6,1,201501,2015),('2015-01-07',201501,1,2015,7,1,201501,2015),('2015-01-08',201501,1,2015,8,1,201501,2015),('2015-01-09',201501,1,2015,9,1,201501,2015),('2015-01-10',201501,1,2015,10,1,201501,2015),('2015-01-11',201502,1,2015,11,2,201501,2015),('2015-01-12',201502,1,2015,12,2,201501,2015),('2015-01-13',201502,1,2015,13,2,201501,2015),('2015-01-14',201502,1,2015,14,2,201501,2015),('2015-01-15',201502,1,2015,15,2,201501,2015),('2015-01-16',201502,1,2015,16,2,201501,2015),('2015-01-17',201502,1,2015,17,2,201501,2015),('2015-01-18',201503,1,2015,18,3,201501,2015),('2015-01-19',201503,1,2015,19,3,201501,2015),('2015-01-20',201503,1,2015,20,3,201501,2015),('2015-01-21',201503,1,2015,21,3,201501,2015),('2015-01-22',201503,1,2015,22,3,201501,2015),('2015-01-23',201503,1,2015,23,3,201501,2015),('2015-01-24',201503,1,2015,24,3,201501,2015),('2015-01-25',201504,1,2015,25,4,201501,2015),('2015-01-26',201504,1,2015,26,4,201501,2015),('2015-01-27',201504,1,2015,27,4,201501,2015),('2015-01-28',201504,1,2015,28,4,201501,2015),('2015-01-29',201504,1,2015,29,4,201501,2015),('2015-01-30',201504,1,2015,30,4,201501,2015),('2015-01-31',201504,1,2015,31,4,201501,2015),('2015-02-01',201505,2,2015,1,5,201502,2015),('2015-02-02',201505,2,2015,2,5,201502,2015),('2015-02-03',201505,2,2015,3,5,201502,2015),('2015-02-04',201505,2,2015,4,5,201502,2015),('2015-02-05',201505,2,2015,5,5,201502,2015),('2015-02-06',201505,2,2015,6,5,201502,2015),('2015-02-07',201505,2,2015,7,5,201502,2015),('2015-02-08',201506,2,2015,8,6,201502,2015),('2015-02-09',201506,2,2015,9,6,201502,2015),('2015-02-10',201506,2,2015,10,6,201502,2015),('2015-02-11',201506,2,2015,11,6,201502,2015),('2015-02-12',201506,2,2015,12,6,201502,2015),('2015-02-13',201506,2,2015,13,6,201502,2015),('2015-02-14',201506,2,2015,14,6,201502,2015),('2015-02-15',201507,2,2015,15,7,201502,2015),('2015-02-16',201507,2,2015,16,7,201502,2015),('2015-02-17',201507,2,2015,17,7,201502,2015),('2015-02-18',201507,2,2015,18,7,201502,2015),('2015-02-19',201507,2,2015,19,7,201502,2015),('2015-02-20',201507,2,2015,20,7,201502,2015),('2015-02-21',201507,2,2015,21,7,201502,2015),('2015-02-22',201508,2,2015,22,8,201502,2015),('2015-02-23',201508,2,2015,23,8,201502,2015),('2015-02-24',201508,2,2015,24,8,201502,2015),('2015-02-25',201508,2,2015,25,8,201502,2015),('2015-02-26',201508,2,2015,26,8,201502,2015),('2015-02-27',201508,2,2015,27,8,201502,2015),('2015-02-28',201508,2,2015,28,8,201502,2015),('2015-03-01',201509,3,2015,1,9,201503,2015),('2015-03-02',201509,3,2015,2,9,201503,2015),('2015-03-03',201509,3,2015,3,9,201503,2015),('2015-03-04',201509,3,2015,4,9,201503,2015),('2015-03-05',201509,3,2015,5,9,201503,2015),('2015-03-06',201509,3,2015,6,9,201503,2015),('2015-03-07',201509,3,2015,7,9,201503,2015),('2015-03-08',201510,3,2015,8,10,201503,2015),('2015-03-09',201510,3,2015,9,10,201503,2015),('2015-03-10',201510,3,2015,10,10,201503,2015),('2015-03-11',201510,3,2015,11,10,201503,2015),('2015-03-12',201510,3,2015,12,10,201503,2015),('2015-03-13',201510,3,2015,13,10,201503,2015),('2015-03-14',201510,3,2015,14,10,201503,2015),('2015-03-15',201511,3,2015,15,11,201503,2015),('2015-03-16',201511,3,2015,16,11,201503,2015),('2015-03-17',201511,3,2015,17,11,201503,2015),('2015-03-18',201511,3,2015,18,11,201503,2015),('2015-03-19',201511,3,2015,19,11,201503,2015),('2015-03-20',201511,3,2015,20,11,201503,2015),('2015-03-21',201511,3,2015,21,11,201503,2015),('2015-03-22',201512,3,2015,22,12,201503,2015),('2015-03-23',201512,3,2015,23,12,201503,2015),('2015-03-24',201512,3,2015,24,12,201503,2015),('2015-03-25',201512,3,2015,25,12,201503,2015),('2015-03-26',201512,3,2015,26,12,201503,2015),('2015-03-27',201512,3,2015,27,12,201503,2015),('2015-03-28',201512,3,2015,28,12,201503,2015),('2015-03-29',201513,3,2015,29,13,201503,2015),('2015-03-30',201513,3,2015,30,13,201503,2015),('2015-03-31',201513,3,2015,31,13,201503,2015),('2015-04-01',201513,4,2015,1,13,201504,2015),('2015-04-02',201513,4,2015,2,13,201504,2015),('2015-04-03',201513,4,2015,3,13,201504,2015),('2015-04-04',201513,4,2015,4,13,201504,2015),('2015-04-05',201514,4,2015,5,14,201504,2015),('2015-04-06',201514,4,2015,6,14,201504,2015),('2015-04-07',201514,4,2015,7,14,201504,2015),('2015-04-08',201514,4,2015,8,14,201504,2015),('2015-04-09',201514,4,2015,9,14,201504,2015),('2015-04-10',201514,4,2015,10,14,201504,2015),('2015-04-11',201514,4,2015,11,14,201504,2015),('2015-04-12',201515,4,2015,12,15,201504,2015),('2015-04-13',201515,4,2015,13,15,201504,2015),('2015-04-14',201515,4,2015,14,15,201504,2015),('2015-04-15',201515,4,2015,15,15,201504,2015),('2015-04-16',201515,4,2015,16,15,201504,2015),('2015-04-17',201515,4,2015,17,15,201504,2015),('2015-04-18',201515,4,2015,18,15,201504,2015),('2015-04-19',201516,4,2015,19,16,201504,2015),('2015-04-20',201516,4,2015,20,16,201504,2015),('2015-04-21',201516,4,2015,21,16,201504,2015),('2015-04-22',201516,4,2015,22,16,201504,2015),('2015-04-23',201516,4,2015,23,16,201504,2015),('2015-04-24',201516,4,2015,24,16,201504,2015),('2015-04-25',201516,4,2015,25,16,201504,2015),('2015-04-26',201517,4,2015,26,17,201504,2015),('2015-04-27',201517,4,2015,27,17,201504,2015),('2015-04-28',201517,4,2015,28,17,201504,2015),('2015-04-29',201517,4,2015,29,17,201504,2015),('2015-04-30',201517,4,2015,30,17,201504,2015),('2015-05-01',201517,5,2015,1,17,201505,2015),('2015-05-02',201517,5,2015,2,17,201505,2015),('2015-05-03',201518,5,2015,3,18,201505,2015),('2015-05-04',201518,5,2015,4,18,201505,2015),('2015-05-05',201518,5,2015,5,18,201505,2015),('2015-05-06',201518,5,2015,6,18,201505,2015),('2015-05-07',201518,5,2015,7,18,201505,2015),('2015-05-08',201518,5,2015,8,18,201505,2015),('2015-05-09',201518,5,2015,9,18,201505,2015),('2015-05-10',201519,5,2015,10,19,201505,2015),('2015-05-11',201519,5,2015,11,19,201505,2015),('2015-05-12',201519,5,2015,12,19,201505,2015),('2015-05-13',201519,5,2015,13,19,201505,2015),('2015-05-14',201519,5,2015,14,19,201505,2015),('2015-05-15',201519,5,2015,15,19,201505,2015),('2015-05-16',201519,5,2015,16,19,201505,2015),('2015-05-17',201520,5,2015,17,20,201505,2015),('2015-05-18',201520,5,2015,18,20,201505,2015),('2015-05-19',201520,5,2015,19,20,201505,2015),('2015-05-20',201520,5,2015,20,20,201505,2015),('2015-05-21',201520,5,2015,21,20,201505,2015),('2015-05-22',201520,5,2015,22,20,201505,2015),('2015-05-23',201520,5,2015,23,20,201505,2015),('2015-05-24',201521,5,2015,24,21,201505,2015),('2015-05-25',201521,5,2015,25,21,201505,2015),('2015-05-26',201521,5,2015,26,21,201505,2015),('2015-05-27',201521,5,2015,27,21,201505,2015),('2015-05-28',201521,5,2015,28,21,201505,2015),('2015-05-29',201521,5,2015,29,21,201505,2015),('2015-05-30',201521,5,2015,30,21,201505,2015),('2015-05-31',201522,5,2015,31,22,201505,2015),('2015-06-01',201522,6,2015,1,22,201506,2015),('2015-06-02',201522,6,2015,2,22,201506,2015),('2015-06-03',201522,6,2015,3,22,201506,2015),('2015-06-04',201522,6,2015,4,22,201506,2015),('2015-06-05',201522,6,2015,5,22,201506,2015),('2015-06-06',201522,6,2015,6,22,201506,2015),('2015-06-07',201523,6,2015,7,23,201506,2015),('2015-06-08',201523,6,2015,8,23,201506,2015),('2015-06-09',201523,6,2015,9,23,201506,2015),('2015-06-10',201523,6,2015,10,23,201506,2015),('2015-06-11',201523,6,2015,11,23,201506,2015),('2015-06-12',201523,6,2015,12,23,201506,2015),('2015-06-13',201523,6,2015,13,23,201506,2015),('2015-06-14',201524,6,2015,14,24,201506,2015),('2015-06-15',201524,6,2015,15,24,201506,2015),('2015-06-16',201524,6,2015,16,24,201506,2015),('2015-06-17',201524,6,2015,17,24,201506,2015),('2015-06-18',201524,6,2015,18,24,201506,2015),('2015-06-19',201524,6,2015,19,24,201506,2015),('2015-06-20',201524,6,2015,20,24,201506,2015),('2015-06-21',201525,6,2015,21,25,201506,2015),('2015-06-22',201525,6,2015,22,25,201506,2015),('2015-06-23',201525,6,2015,23,25,201506,2015),('2015-06-24',201525,6,2015,24,25,201506,2015),('2015-06-25',201525,6,2015,25,25,201506,2015),('2015-06-26',201525,6,2015,26,25,201506,2015),('2015-06-27',201525,6,2015,27,25,201506,2015),('2015-06-28',201526,6,2015,28,26,201506,2015),('2015-06-29',201526,6,2015,29,26,201506,2015),('2015-06-30',201526,6,2015,30,26,201506,2015),('2015-07-01',201526,7,2015,1,26,201507,2015),('2015-07-02',201526,7,2015,2,26,201507,2015),('2015-07-03',201526,7,2015,3,26,201507,2015),('2015-07-04',201526,7,2015,4,26,201507,2015),('2015-07-05',201527,7,2015,5,27,201507,2015),('2015-07-06',201527,7,2015,6,27,201507,2015),('2015-07-07',201527,7,2015,7,27,201507,2015),('2015-07-08',201527,7,2015,8,27,201507,2015),('2015-07-09',201527,7,2015,9,27,201507,2015),('2015-07-10',201527,7,2015,10,27,201507,2015),('2015-07-11',201527,7,2015,11,27,201507,2015),('2015-07-12',201528,7,2015,12,28,201507,2015),('2015-07-13',201528,7,2015,13,28,201507,2015),('2015-07-14',201528,7,2015,14,28,201507,2015),('2015-07-15',201528,7,2015,15,28,201507,2015),('2015-07-16',201528,7,2015,16,28,201507,2015),('2015-07-17',201528,7,2015,17,28,201507,2015),('2015-07-18',201528,7,2015,18,28,201507,2015),('2015-07-19',201529,7,2015,19,29,201507,2015),('2015-07-20',201529,7,2015,20,29,201507,2015),('2015-07-21',201529,7,2015,21,29,201507,2015),('2015-07-22',201529,7,2015,22,29,201507,2015),('2015-07-23',201529,7,2015,23,29,201507,2015),('2015-07-24',201529,7,2015,24,29,201507,2015),('2015-07-25',201529,7,2015,25,29,201507,2015),('2015-07-26',201530,7,2015,26,30,201507,2015),('2015-07-27',201530,7,2015,27,30,201507,2015),('2015-07-28',201530,7,2015,28,30,201507,2015),('2015-07-29',201530,7,2015,29,30,201507,2015),('2015-07-30',201530,7,2015,30,30,201507,2015),('2015-07-31',201530,7,2015,31,30,201507,2015),('2015-08-01',201530,8,2015,1,30,201508,2015),('2015-08-02',201531,8,2015,2,31,201508,2015),('2015-08-03',201531,8,2015,3,31,201508,2015),('2015-08-04',201531,8,2015,4,31,201508,2015),('2015-08-05',201531,8,2015,5,31,201508,2015),('2015-08-06',201531,8,2015,6,31,201508,2015),('2015-08-07',201531,8,2015,7,31,201508,2015),('2015-08-08',201531,8,2015,8,31,201508,2015),('2015-08-09',201532,8,2015,9,32,201508,2015),('2015-08-10',201532,8,2015,10,32,201508,2015),('2015-08-11',201532,8,2015,11,32,201508,2015),('2015-08-12',201532,8,2015,12,32,201508,2015),('2015-08-13',201532,8,2015,13,32,201508,2015),('2015-08-14',201532,8,2015,14,32,201508,2015),('2015-08-15',201532,8,2015,15,32,201508,2015),('2015-08-16',201533,8,2015,16,33,201508,2015),('2015-08-17',201533,8,2015,17,33,201508,2015),('2015-08-18',201533,8,2015,18,33,201508,2015),('2015-08-19',201533,8,2015,19,33,201508,2015),('2015-08-20',201533,8,2015,20,33,201508,2015),('2015-08-21',201533,8,2015,21,33,201508,2015),('2015-08-22',201533,8,2015,22,33,201508,2015),('2015-08-23',201534,8,2015,23,34,201508,2015),('2015-08-24',201534,8,2015,24,34,201508,2015),('2015-08-25',201534,8,2015,25,34,201508,2015),('2015-08-26',201534,8,2015,26,34,201508,2015),('2015-08-27',201534,8,2015,27,34,201508,2015),('2015-08-28',201534,8,2015,28,34,201508,2015),('2015-08-29',201534,8,2015,29,34,201508,2015),('2015-08-30',201535,8,2015,30,35,201508,2015),('2015-08-31',201535,8,2015,31,35,201508,2015),('2015-09-01',201535,9,2015,1,35,201509,2015),('2015-09-02',201535,9,2015,2,35,201509,2015),('2015-09-03',201535,9,2015,3,35,201509,2015),('2015-09-04',201535,9,2015,4,35,201509,2015),('2015-09-05',201535,9,2015,5,35,201509,2015),('2015-09-06',201536,9,2015,6,36,201509,2015),('2015-09-07',201536,9,2015,7,36,201509,2015),('2015-09-08',201536,9,2015,8,36,201509,2015),('2015-09-09',201536,9,2015,9,36,201509,2015),('2015-09-10',201536,9,2015,10,36,201509,2015),('2015-09-11',201536,9,2015,11,36,201509,2015),('2015-09-12',201536,9,2015,12,36,201509,2015),('2015-09-13',201537,9,2015,13,37,201509,2015),('2015-09-14',201537,9,2015,14,37,201509,2015),('2015-09-15',201537,9,2015,15,37,201509,2015),('2015-09-16',201537,9,2015,16,37,201509,2015),('2015-09-17',201537,9,2015,17,37,201509,2015),('2015-09-18',201537,9,2015,18,37,201509,2015),('2015-09-19',201537,9,2015,19,37,201509,2015),('2015-09-20',201538,9,2015,20,38,201509,2015),('2015-09-21',201538,9,2015,21,38,201509,2015),('2015-09-22',201538,9,2015,22,38,201509,2015),('2015-09-23',201538,9,2015,23,38,201509,2015),('2015-09-24',201538,9,2015,24,38,201509,2015),('2015-09-25',201538,9,2015,25,38,201509,2015),('2015-09-26',201538,9,2015,26,38,201509,2015),('2015-09-27',201539,9,2015,27,39,201509,2015),('2015-09-28',201539,9,2015,28,39,201509,2015),('2015-09-29',201539,9,2015,29,39,201509,2015),('2015-09-30',201539,9,2015,30,39,201509,2015),('2015-10-01',201539,10,2015,1,39,201510,2015),('2015-10-02',201539,10,2015,2,39,201510,2015),('2015-10-03',201539,10,2015,3,39,201510,2015),('2015-10-04',201540,10,2015,4,40,201510,2015),('2015-10-05',201540,10,2015,5,40,201510,2015),('2015-10-06',201540,10,2015,6,40,201510,2015),('2015-10-07',201540,10,2015,7,40,201510,2015),('2015-10-08',201540,10,2015,8,40,201510,2015),('2015-10-09',201540,10,2015,9,40,201510,2015),('2015-10-10',201540,10,2015,10,40,201510,2015),('2015-10-11',201541,10,2015,11,41,201510,2015),('2015-10-12',201541,10,2015,12,41,201510,2015),('2015-10-13',201541,10,2015,13,41,201510,2015),('2015-10-14',201541,10,2015,14,41,201510,2015),('2015-10-15',201541,10,2015,15,41,201510,2015),('2015-10-16',201541,10,2015,16,41,201510,2015),('2015-10-17',201541,10,2015,17,41,201510,2015),('2015-10-18',201542,10,2015,18,42,201510,2015),('2015-10-19',201542,10,2015,19,42,201510,2015),('2015-10-20',201542,10,2015,20,42,201510,2015),('2015-10-21',201542,10,2015,21,42,201510,2015),('2015-10-22',201542,10,2015,22,42,201510,2015),('2015-10-23',201542,10,2015,23,42,201510,2015),('2015-10-24',201542,10,2015,24,42,201510,2015),('2015-10-25',201543,10,2015,25,43,201510,2015),('2015-10-26',201543,10,2015,26,43,201510,2015),('2015-10-27',201543,10,2015,27,43,201510,2015),('2015-10-28',201543,10,2015,28,43,201510,2015),('2015-10-29',201543,10,2015,29,43,201510,2015),('2015-10-30',201543,10,2015,30,43,201510,2015),('2015-10-31',201543,10,2015,31,43,201510,2015),('2015-11-01',201544,11,2015,1,44,201511,2015),('2015-11-02',201544,11,2015,2,44,201511,2015),('2015-11-03',201544,11,2015,3,44,201511,2015),('2015-11-04',201544,11,2015,4,44,201511,2015),('2015-11-05',201544,11,2015,5,44,201511,2015),('2015-11-06',201544,11,2015,6,44,201511,2015),('2015-11-07',201544,11,2015,7,44,201511,2015),('2015-11-08',201545,11,2015,8,45,201511,2015),('2015-11-09',201545,11,2015,9,45,201511,2015),('2015-11-10',201545,11,2015,10,45,201511,2015),('2015-11-11',201545,11,2015,11,45,201511,2015),('2015-11-12',201545,11,2015,12,45,201511,2015),('2015-11-13',201545,11,2015,13,45,201511,2015),('2015-11-14',201545,11,2015,14,45,201511,2015),('2015-11-15',201546,11,2015,15,46,201511,2015),('2015-11-16',201546,11,2015,16,46,201511,2015),('2015-11-17',201546,11,2015,17,46,201511,2015),('2015-11-18',201546,11,2015,18,46,201511,2015),('2015-11-19',201546,11,2015,19,46,201511,2015),('2015-11-20',201546,11,2015,20,46,201511,2015),('2015-11-21',201546,11,2015,21,46,201511,2015),('2015-11-22',201547,11,2015,22,47,201511,2015),('2015-11-23',201547,11,2015,23,47,201511,2015),('2015-11-24',201547,11,2015,24,47,201511,2015),('2015-11-25',201547,11,2015,25,47,201511,2015),('2015-11-26',201547,11,2015,26,47,201511,2015),('2015-11-27',201547,11,2015,27,47,201511,2015),('2015-11-28',201547,11,2015,28,47,201511,2015),('2015-11-29',201548,11,2015,29,48,201511,2015),('2015-11-30',201548,11,2015,30,48,201511,2015),('2015-12-01',201548,12,2015,1,48,201512,2016),('2015-12-02',201548,12,2015,2,48,201512,2016),('2015-12-03',201548,12,2015,3,48,201512,2016),('2015-12-04',201548,12,2015,4,48,201512,2016),('2015-12-05',201548,12,2015,5,48,201512,2016),('2015-12-06',201549,12,2015,6,49,201512,2016),('2015-12-07',201549,12,2015,7,49,201512,2016),('2015-12-08',201549,12,2015,8,49,201512,2016),('2015-12-09',201549,12,2015,9,49,201512,2016),('2015-12-10',201549,12,2015,10,49,201512,2016),('2015-12-11',201549,12,2015,11,49,201512,2016),('2015-12-12',201549,12,2015,12,49,201512,2016),('2015-12-13',201550,12,2015,13,50,201512,2016),('2015-12-14',201550,12,2015,14,50,201512,2016),('2015-12-15',201550,12,2015,15,50,201512,2016),('2015-12-16',201550,12,2015,16,50,201512,2016),('2015-12-17',201550,12,2015,17,50,201512,2016),('2015-12-18',201550,12,2015,18,50,201512,2016),('2015-12-19',201550,12,2015,19,50,201512,2016),('2015-12-20',201551,12,2015,20,51,201512,2016),('2015-12-21',201551,12,2015,21,51,201512,2016),('2015-12-22',201551,12,2015,22,51,201512,2016),('2015-12-23',201551,12,2015,23,51,201512,2016),('2015-12-24',201551,12,2015,24,51,201512,2016),('2015-12-25',201551,12,2015,25,51,201512,2016),('2015-12-26',201551,12,2015,26,51,201512,2016),('2015-12-27',201552,12,2015,27,52,201512,2016),('2015-12-28',201552,12,2015,28,52,201512,2016),('2015-12-29',201552,12,2015,29,52,201512,2016),('2015-12-30',201552,12,2015,30,52,201512,2016),('2015-12-31',201552,12,2015,31,52,201512,2016),('2016-01-01',201552,1,2016,1,1,201601,2016),('2016-01-02',201552,1,2016,2,1,201601,2016),('2016-01-03',201601,1,2016,3,1,201601,2016),('2016-01-04',201601,1,2016,4,1,201601,2016),('2016-01-05',201601,1,2016,5,1,201601,2016),('2016-01-06',201601,1,2016,6,1,201601,2016),('2016-01-07',201601,1,2016,7,1,201601,2016),('2016-01-08',201601,1,2016,8,1,201601,2016),('2016-01-09',201601,1,2016,9,1,201601,2016),('2016-01-10',201602,1,2016,10,2,201601,2016),('2016-01-11',201602,1,2016,11,2,201601,2016),('2016-01-12',201602,1,2016,12,2,201601,2016),('2016-01-13',201602,1,2016,13,2,201601,2016),('2016-01-14',201602,1,2016,14,2,201601,2016),('2016-01-15',201602,1,2016,15,2,201601,2016),('2016-01-16',201602,1,2016,16,2,201601,2016),('2016-01-17',201603,1,2016,17,3,201601,2016),('2016-01-18',201603,1,2016,18,3,201601,2016),('2016-01-19',201603,1,2016,19,3,201601,2016),('2016-01-20',201603,1,2016,20,3,201601,2016),('2016-01-21',201603,1,2016,21,3,201601,2016),('2016-01-22',201603,1,2016,22,3,201601,2016),('2016-01-23',201603,1,2016,23,3,201601,2016),('2016-01-24',201604,1,2016,24,4,201601,2016),('2016-01-25',201604,1,2016,25,4,201601,2016),('2016-01-26',201604,1,2016,26,4,201601,2016),('2016-01-27',201604,1,2016,27,4,201601,2016),('2016-01-28',201604,1,2016,28,4,201601,2016),('2016-01-29',201604,1,2016,29,4,201601,2016),('2016-01-30',201604,1,2016,30,4,201601,2016),('2016-01-31',201605,1,2016,31,5,201601,2016),('2016-02-01',201605,2,2016,1,5,201602,2016),('2016-02-02',201605,2,2016,2,5,201602,2016),('2016-02-03',201605,2,2016,3,5,201602,2016),('2016-02-04',201605,2,2016,4,5,201602,2016),('2016-02-05',201605,2,2016,5,5,201602,2016),('2016-02-06',201605,2,2016,6,5,201602,2016),('2016-02-07',201606,2,2016,7,6,201602,2016),('2016-02-08',201606,2,2016,8,6,201602,2016),('2016-02-09',201606,2,2016,9,6,201602,2016),('2016-02-10',201606,2,2016,10,6,201602,2016),('2016-02-11',201606,2,2016,11,6,201602,2016),('2016-02-12',201606,2,2016,12,6,201602,2016),('2016-02-13',201606,2,2016,13,6,201602,2016),('2016-02-14',201607,2,2016,14,7,201602,2016),('2016-02-15',201607,2,2016,15,7,201602,2016),('2016-02-16',201607,2,2016,16,7,201602,2016),('2016-02-17',201607,2,2016,17,7,201602,2016),('2016-02-18',201607,2,2016,18,7,201602,2016),('2016-02-19',201607,2,2016,19,7,201602,2016),('2016-02-20',201607,2,2016,20,7,201602,2016),('2016-02-21',201608,2,2016,21,8,201602,2016),('2016-02-22',201608,2,2016,22,8,201602,2016),('2016-02-23',201608,2,2016,23,8,201602,2016),('2016-02-24',201608,2,2016,24,8,201602,2016),('2016-02-25',201608,2,2016,25,8,201602,2016),('2016-02-26',201608,2,2016,26,8,201602,2016),('2016-02-27',201608,2,2016,27,8,201602,2016),('2016-02-28',201609,2,2016,28,9,201602,2016),('2016-02-29',201609,2,2016,29,9,201602,2016),('2016-03-01',201609,3,2016,1,9,201603,2016),('2016-03-02',201609,3,2016,2,9,201603,2016),('2016-03-03',201609,3,2016,3,9,201603,2016),('2016-03-04',201609,3,2016,4,9,201603,2016),('2016-03-05',201609,3,2016,5,9,201603,2016),('2016-03-06',201610,3,2016,6,10,201603,2016),('2016-03-07',201610,3,2016,7,10,201603,2016),('2016-03-08',201610,3,2016,8,10,201603,2016),('2016-03-09',201610,3,2016,9,10,201603,2016),('2016-03-10',201610,3,2016,10,10,201603,2016),('2016-03-11',201610,3,2016,11,10,201603,2016),('2016-03-12',201610,3,2016,12,10,201603,2016),('2016-03-13',201611,3,2016,13,11,201603,2016),('2016-03-14',201611,3,2016,14,11,201603,2016),('2016-03-15',201611,3,2016,15,11,201603,2016),('2016-03-16',201611,3,2016,16,11,201603,2016),('2016-03-17',201611,3,2016,17,11,201603,2016),('2016-03-18',201611,3,2016,18,11,201603,2016),('2016-03-19',201611,3,2016,19,11,201603,2016),('2016-03-20',201612,3,2016,20,12,201603,2016),('2016-03-21',201612,3,2016,21,12,201603,2016),('2016-03-22',201612,3,2016,22,12,201603,2016),('2016-03-23',201612,3,2016,23,12,201603,2016),('2016-03-24',201612,3,2016,24,12,201603,2016),('2016-03-25',201612,3,2016,25,12,201603,2016),('2016-03-26',201612,3,2016,26,12,201603,2016),('2016-03-27',201613,3,2016,27,13,201603,2016),('2016-03-28',201613,3,2016,28,13,201603,2016),('2016-03-29',201613,3,2016,29,13,201603,2016),('2016-03-30',201613,3,2016,30,13,201603,2016),('2016-03-31',201613,3,2016,31,13,201603,2016),('2016-04-01',201613,4,2016,1,13,201604,2016),('2016-04-02',201613,4,2016,2,13,201604,2016),('2016-04-03',201614,4,2016,3,14,201604,2016),('2016-04-04',201614,4,2016,4,14,201604,2016),('2016-04-05',201614,4,2016,5,14,201604,2016),('2016-04-06',201614,4,2016,6,14,201604,2016),('2016-04-07',201614,4,2016,7,14,201604,2016),('2016-04-08',201614,4,2016,8,14,201604,2016),('2016-04-09',201614,4,2016,9,14,201604,2016),('2016-04-10',201615,4,2016,10,15,201604,2016),('2016-04-11',201615,4,2016,11,15,201604,2016),('2016-04-12',201615,4,2016,12,15,201604,2016),('2016-04-13',201615,4,2016,13,15,201604,2016),('2016-04-14',201615,4,2016,14,15,201604,2016),('2016-04-15',201615,4,2016,15,15,201604,2016),('2016-04-16',201615,4,2016,16,15,201604,2016),('2016-04-17',201616,4,2016,17,16,201604,2016),('2016-04-18',201616,4,2016,18,16,201604,2016),('2016-04-19',201616,4,2016,19,16,201604,2016),('2016-04-20',201616,4,2016,20,16,201604,2016),('2016-04-21',201616,4,2016,21,16,201604,2016),('2016-04-22',201616,4,2016,22,16,201604,2016),('2016-04-23',201616,4,2016,23,16,201604,2016),('2016-04-24',201617,4,2016,24,17,201604,2016),('2016-04-25',201617,4,2016,25,17,201604,2016),('2016-04-26',201617,4,2016,26,17,201604,2016),('2016-04-27',201617,4,2016,27,17,201604,2016),('2016-04-28',201617,4,2016,28,17,201604,2016),('2016-04-29',201617,4,2016,29,17,201604,2016),('2016-04-30',201617,4,2016,30,17,201604,2016),('2016-05-01',201618,5,2016,1,18,201605,2016),('2016-05-02',201618,5,2016,2,18,201605,2016),('2016-05-03',201618,5,2016,3,18,201605,2016),('2016-05-04',201618,5,2016,4,18,201605,2016),('2016-05-05',201618,5,2016,5,18,201605,2016),('2016-05-06',201618,5,2016,6,18,201605,2016),('2016-05-07',201618,5,2016,7,18,201605,2016),('2016-05-08',201619,5,2016,8,19,201605,2016),('2016-05-09',201619,5,2016,9,19,201605,2016),('2016-05-10',201619,5,2016,10,19,201605,2016),('2016-05-11',201619,5,2016,11,19,201605,2016),('2016-05-12',201619,5,2016,12,19,201605,2016),('2016-05-13',201619,5,2016,13,19,201605,2016),('2016-05-14',201619,5,2016,14,19,201605,2016),('2016-05-15',201620,5,2016,15,20,201605,2016),('2016-05-16',201620,5,2016,16,20,201605,2016),('2016-05-17',201620,5,2016,17,20,201605,2016),('2016-05-18',201620,5,2016,18,20,201605,2016),('2016-05-19',201620,5,2016,19,20,201605,2016),('2016-05-20',201620,5,2016,20,20,201605,2016),('2016-05-21',201620,5,2016,21,20,201605,2016),('2016-05-22',201621,5,2016,22,21,201605,2016),('2016-05-23',201621,5,2016,23,21,201605,2016),('2016-05-24',201621,5,2016,24,21,201605,2016),('2016-05-25',201621,5,2016,25,21,201605,2016),('2016-05-26',201621,5,2016,26,21,201605,2016),('2016-05-27',201621,5,2016,27,21,201605,2016),('2016-05-28',201621,5,2016,28,21,201605,2016),('2016-05-29',201622,5,2016,29,22,201605,2016),('2016-05-30',201622,5,2016,30,22,201605,2016),('2016-05-31',201622,5,2016,31,22,201605,2016),('2016-06-01',201622,6,2016,1,22,201606,2016),('2016-06-02',201622,6,2016,2,22,201606,2016),('2016-06-03',201622,6,2016,3,22,201606,2016),('2016-06-04',201622,6,2016,4,22,201606,2016),('2016-06-05',201623,6,2016,5,23,201606,2016),('2016-06-06',201623,6,2016,6,23,201606,2016),('2016-06-07',201623,6,2016,7,23,201606,2016),('2016-06-08',201623,6,2016,8,23,201606,2016),('2016-06-09',201623,6,2016,9,23,201606,2016),('2016-06-10',201623,6,2016,10,23,201606,2016),('2016-06-11',201623,6,2016,11,23,201606,2016),('2016-06-12',201624,6,2016,12,24,201606,2016),('2016-06-13',201624,6,2016,13,24,201606,2016),('2016-06-14',201624,6,2016,14,24,201606,2016),('2016-06-15',201624,6,2016,15,24,201606,2016),('2016-06-16',201624,6,2016,16,24,201606,2016),('2016-06-17',201624,6,2016,17,24,201606,2016),('2016-06-18',201624,6,2016,18,24,201606,2016),('2016-06-19',201625,6,2016,19,25,201606,2016),('2016-06-20',201625,6,2016,20,25,201606,2016),('2016-06-21',201625,6,2016,21,25,201606,2016),('2016-06-22',201625,6,2016,22,25,201606,2016),('2016-06-23',201625,6,2016,23,25,201606,2016),('2016-06-24',201625,6,2016,24,25,201606,2016),('2016-06-25',201625,6,2016,25,25,201606,2016),('2016-06-26',201626,6,2016,26,26,201606,2016),('2016-06-27',201626,6,2016,27,26,201606,2016),('2016-06-28',201626,6,2016,28,26,201606,2016),('2016-06-29',201626,6,2016,29,26,201606,2016),('2016-06-30',201626,6,2016,30,26,201606,2016),('2016-07-01',201626,7,2016,1,26,201607,2016),('2016-07-02',201626,7,2016,2,26,201607,2016),('2016-07-03',201627,7,2016,3,27,201607,2016),('2016-07-04',201627,7,2016,4,27,201607,2016),('2016-07-05',201627,7,2016,5,27,201607,2016),('2016-07-06',201627,7,2016,6,27,201607,2016),('2016-07-07',201627,7,2016,7,27,201607,2016),('2016-07-08',201627,7,2016,8,27,201607,2016),('2016-07-09',201627,7,2016,9,27,201607,2016),('2016-07-10',201628,7,2016,10,28,201607,2016),('2016-07-11',201628,7,2016,11,28,201607,2016),('2016-07-12',201628,7,2016,12,28,201607,2016),('2016-07-13',201628,7,2016,13,28,201607,2016),('2016-07-14',201628,7,2016,14,28,201607,2016),('2016-07-15',201628,7,2016,15,28,201607,2016),('2016-07-16',201628,7,2016,16,28,201607,2016),('2016-07-17',201629,7,2016,17,29,201607,2016),('2016-07-18',201629,7,2016,18,29,201607,2016),('2016-07-19',201629,7,2016,19,29,201607,2016),('2016-07-20',201629,7,2016,20,29,201607,2016),('2016-07-21',201629,7,2016,21,29,201607,2016),('2016-07-22',201629,7,2016,22,29,201607,2016),('2016-07-23',201629,7,2016,23,29,201607,2016),('2016-07-24',201630,7,2016,24,30,201607,2016),('2016-07-25',201630,7,2016,25,30,201607,2016),('2016-07-26',201630,7,2016,26,30,201607,2016),('2016-07-27',201630,7,2016,27,30,201607,2016),('2016-07-28',201630,7,2016,28,30,201607,2016),('2016-07-29',201630,7,2016,29,30,201607,2016),('2016-07-30',201630,7,2016,30,30,201607,2016),('2016-07-31',201631,7,2016,31,31,201607,2016),('2016-08-01',201631,8,2016,1,31,201608,2016),('2016-08-02',201631,8,2016,2,31,201608,2016),('2016-08-03',201631,8,2016,3,31,201608,2016),('2016-08-04',201631,8,2016,4,31,201608,2016),('2016-08-05',201631,8,2016,5,31,201608,2016),('2016-08-06',201631,8,2016,6,31,201608,2016),('2016-08-07',201632,8,2016,7,32,201608,2016),('2016-08-08',201632,8,2016,8,32,201608,2016),('2016-08-09',201632,8,2016,9,32,201608,2016),('2016-08-10',201632,8,2016,10,32,201608,2016),('2016-08-11',201632,8,2016,11,32,201608,2016),('2016-08-12',201632,8,2016,12,32,201608,2016),('2016-08-13',201632,8,2016,13,32,201608,2016),('2016-08-14',201633,8,2016,14,33,201608,2016),('2016-08-15',201633,8,2016,15,33,201608,2016),('2016-08-16',201633,8,2016,16,33,201608,2016),('2016-08-17',201633,8,2016,17,33,201608,2016),('2016-08-18',201633,8,2016,18,33,201608,2016),('2016-08-19',201633,8,2016,19,33,201608,2016),('2016-08-20',201633,8,2016,20,33,201608,2016),('2016-08-21',201634,8,2016,21,34,201608,2016),('2016-08-22',201634,8,2016,22,34,201608,2016),('2016-08-23',201634,8,2016,23,34,201608,2016),('2016-08-24',201634,8,2016,24,34,201608,2016),('2016-08-25',201634,8,2016,25,34,201608,2016),('2016-08-26',201634,8,2016,26,34,201608,2016),('2016-08-27',201634,8,2016,27,34,201608,2016),('2016-08-28',201635,8,2016,28,35,201608,2016),('2016-08-29',201635,8,2016,29,35,201608,2016),('2016-08-30',201635,8,2016,30,35,201608,2016),('2016-08-31',201635,8,2016,31,35,201608,2016),('2016-09-01',201635,9,2016,1,35,201609,2016),('2016-09-02',201635,9,2016,2,35,201609,2016),('2016-09-03',201635,9,2016,3,35,201609,2016),('2016-09-04',201636,9,2016,4,36,201609,2016),('2016-09-05',201636,9,2016,5,36,201609,2016),('2016-09-06',201636,9,2016,6,36,201609,2016),('2016-09-07',201636,9,2016,7,36,201609,2016),('2016-09-08',201636,9,2016,8,36,201609,2016),('2016-09-09',201636,9,2016,9,36,201609,2016),('2016-09-10',201636,9,2016,10,36,201609,2016),('2016-09-11',201637,9,2016,11,37,201609,2016),('2016-09-12',201637,9,2016,12,37,201609,2016),('2016-09-13',201637,9,2016,13,37,201609,2016),('2016-09-14',201637,9,2016,14,37,201609,2016),('2016-09-15',201637,9,2016,15,37,201609,2016),('2016-09-16',201637,9,2016,16,37,201609,2016),('2016-09-17',201637,9,2016,17,37,201609,2016),('2016-09-18',201638,9,2016,18,38,201609,2016),('2016-09-19',201638,9,2016,19,38,201609,2016),('2016-09-20',201638,9,2016,20,38,201609,2016),('2016-09-21',201638,9,2016,21,38,201609,2016),('2016-09-22',201638,9,2016,22,38,201609,2016),('2016-09-23',201638,9,2016,23,38,201609,2016),('2016-09-24',201638,9,2016,24,38,201609,2016),('2016-09-25',201639,9,2016,25,39,201609,2016),('2016-09-26',201639,9,2016,26,39,201609,2016),('2016-09-27',201639,9,2016,27,39,201609,2016),('2016-09-28',201639,9,2016,28,39,201609,2016),('2016-09-29',201639,9,2016,29,39,201609,2016),('2016-09-30',201639,9,2016,30,39,201609,2016),('2016-10-01',201639,10,2016,1,39,201610,2016),('2016-10-02',201640,10,2016,2,40,201610,2016),('2016-10-03',201640,10,2016,3,40,201610,2016),('2016-10-04',201640,10,2016,4,40,201610,2016),('2016-10-05',201640,10,2016,5,40,201610,2016),('2016-10-06',201640,10,2016,6,40,201610,2016),('2016-10-07',201640,10,2016,7,40,201610,2016),('2016-10-08',201640,10,2016,8,40,201610,2016),('2016-10-09',201641,10,2016,9,41,201610,2016),('2016-10-10',201641,10,2016,10,41,201610,2016),('2016-10-11',201641,10,2016,11,41,201610,2016),('2016-10-12',201641,10,2016,12,41,201610,2016),('2016-10-13',201641,10,2016,13,41,201610,2016),('2016-10-14',201641,10,2016,14,41,201610,2016),('2016-10-15',201641,10,2016,15,41,201610,2016),('2016-10-16',201642,10,2016,16,42,201610,2016),('2016-10-17',201642,10,2016,17,42,201610,2016),('2016-10-18',201642,10,2016,18,42,201610,2016),('2016-10-19',201642,10,2016,19,42,201610,2016),('2016-10-20',201642,10,2016,20,42,201610,2016),('2016-10-21',201642,10,2016,21,42,201610,2016),('2016-10-22',201642,10,2016,22,42,201610,2016),('2016-10-23',201643,10,2016,23,43,201610,2016),('2016-10-24',201643,10,2016,24,43,201610,2016),('2016-10-25',201643,10,2016,25,43,201610,2016),('2016-10-26',201643,10,2016,26,43,201610,2016),('2016-10-27',201643,10,2016,27,43,201610,2016),('2016-10-28',201643,10,2016,28,43,201610,2016),('2016-10-29',201643,10,2016,29,43,201610,2016),('2016-10-30',201644,10,2016,30,44,201610,2016),('2016-10-31',201644,10,2016,31,44,201610,2016),('2016-11-01',201644,11,2016,1,44,201611,2016),('2016-11-02',201644,11,2016,2,44,201611,2016),('2016-11-03',201644,11,2016,3,44,201611,2016),('2016-11-04',201644,11,2016,4,44,201611,2016),('2016-11-05',201644,11,2016,5,44,201611,2016),('2016-11-06',201645,11,2016,6,45,201611,2016),('2016-11-07',201645,11,2016,7,45,201611,2016),('2016-11-08',201645,11,2016,8,45,201611,2016),('2016-11-09',201645,11,2016,9,45,201611,2016),('2016-11-10',201645,11,2016,10,45,201611,2016),('2016-11-11',201645,11,2016,11,45,201611,2016),('2016-11-12',201645,11,2016,12,45,201611,2016),('2016-11-13',201646,11,2016,13,46,201611,2016),('2016-11-14',201646,11,2016,14,46,201611,2016),('2016-11-15',201646,11,2016,15,46,201611,2016),('2016-11-16',201646,11,2016,16,46,201611,2016),('2016-11-17',201646,11,2016,17,46,201611,2016),('2016-11-18',201646,11,2016,18,46,201611,2016),('2016-11-19',201646,11,2016,19,46,201611,2016),('2016-11-20',201647,11,2016,20,47,201611,2016),('2016-11-21',201647,11,2016,21,47,201611,2016),('2016-11-22',201647,11,2016,22,47,201611,2016),('2016-11-23',201647,11,2016,23,47,201611,2016),('2016-11-24',201647,11,2016,24,47,201611,2016),('2016-11-25',201647,11,2016,25,47,201611,2016),('2016-11-26',201647,11,2016,26,47,201611,2016),('2016-11-27',201648,11,2016,27,48,201611,2016),('2016-11-28',201648,11,2016,28,48,201611,2016),('2016-11-29',201648,11,2016,29,48,201611,2016),('2016-11-30',201648,11,2016,30,48,201611,2016),('2016-12-01',201648,12,2016,1,48,201612,2017),('2016-12-02',201648,12,2016,2,48,201612,2017),('2016-12-03',201648,12,2016,3,48,201612,2017),('2016-12-04',201649,12,2016,4,49,201612,2017),('2016-12-05',201649,12,2016,5,49,201612,2017),('2016-12-06',201649,12,2016,6,49,201612,2017),('2016-12-07',201649,12,2016,7,49,201612,2017),('2016-12-08',201649,12,2016,8,49,201612,2017),('2016-12-09',201649,12,2016,9,49,201612,2017),('2016-12-10',201649,12,2016,10,49,201612,2017),('2016-12-11',201650,12,2016,11,50,201612,2017),('2016-12-12',201650,12,2016,12,50,201612,2017),('2016-12-13',201650,12,2016,13,50,201612,2017),('2016-12-14',201650,12,2016,14,50,201612,2017),('2016-12-15',201650,12,2016,15,50,201612,2017),('2016-12-16',201650,12,2016,16,50,201612,2017),('2016-12-17',201650,12,2016,17,50,201612,2017),('2016-12-18',201651,12,2016,18,51,201612,2017),('2016-12-19',201651,12,2016,19,51,201612,2017),('2016-12-20',201651,12,2016,20,51,201612,2017),('2016-12-21',201651,12,2016,21,51,201612,2017),('2016-12-22',201651,12,2016,22,51,201612,2017),('2016-12-23',201651,12,2016,23,51,201612,2017),('2016-12-24',201651,12,2016,24,51,201612,2017),('2016-12-25',201652,12,2016,25,52,201612,2017),('2016-12-26',201652,12,2016,26,52,201612,2017),('2016-12-27',201652,12,2016,27,52,201612,2017),('2016-12-28',201652,12,2016,28,52,201612,2017),('2016-12-29',201652,12,2016,29,52,201612,2017),('2016-12-30',201652,12,2016,30,52,201612,2017),('2016-12-31',201652,12,2016,31,52,201612,2017),('2017-01-01',201701,1,2017,1,1,201701,2017),('2017-01-02',201701,1,2017,2,1,201701,2017),('2017-01-03',201701,1,2017,3,1,201701,2017),('2017-01-04',201701,1,2017,4,1,201701,2017),('2017-01-05',201701,1,2017,5,1,201701,2017),('2017-01-06',201701,1,2017,6,1,201701,2017),('2017-01-07',201701,1,2017,7,1,201701,2017),('2017-01-08',201702,1,2017,8,2,201701,2017),('2017-01-09',201702,1,2017,9,2,201701,2017),('2017-01-10',201702,1,2017,10,2,201701,2017),('2017-01-11',201702,1,2017,11,2,201701,2017),('2017-01-12',201702,1,2017,12,2,201701,2017),('2017-01-13',201702,1,2017,13,2,201701,2017),('2017-01-14',201702,1,2017,14,2,201701,2017),('2017-01-15',201703,1,2017,15,3,201701,2017),('2017-01-16',201703,1,2017,16,3,201701,2017),('2017-01-17',201703,1,2017,17,3,201701,2017),('2017-01-18',201703,1,2017,18,3,201701,2017),('2017-01-19',201703,1,2017,19,3,201701,2017),('2017-01-20',201703,1,2017,20,3,201701,2017),('2017-01-21',201703,1,2017,21,3,201701,2017),('2017-01-22',201704,1,2017,22,4,201701,2017),('2017-01-23',201704,1,2017,23,4,201701,2017),('2017-01-24',201704,1,2017,24,4,201701,2017),('2017-01-25',201704,1,2017,25,4,201701,2017),('2017-01-26',201704,1,2017,26,4,201701,2017),('2017-01-27',201704,1,2017,27,4,201701,2017),('2017-01-28',201704,1,2017,28,4,201701,2017),('2017-01-29',201705,1,2017,29,5,201701,2017),('2017-01-30',201705,1,2017,30,5,201701,2017),('2017-01-31',201705,1,2017,31,5,201701,2017),('2017-02-01',201705,2,2017,1,5,201702,2017),('2017-02-02',201705,2,2017,2,5,201702,2017),('2017-02-03',201705,2,2017,3,5,201702,2017),('2017-02-04',201705,2,2017,4,5,201702,2017),('2017-02-05',201706,2,2017,5,6,201702,2017),('2017-02-06',201706,2,2017,6,6,201702,2017),('2017-02-07',201706,2,2017,7,6,201702,2017),('2017-02-08',201706,2,2017,8,6,201702,2017),('2017-02-09',201706,2,2017,9,6,201702,2017),('2017-02-10',201706,2,2017,10,6,201702,2017),('2017-02-11',201706,2,2017,11,6,201702,2017),('2017-02-12',201707,2,2017,12,7,201702,2017),('2017-02-13',201707,2,2017,13,7,201702,2017),('2017-02-14',201707,2,2017,14,7,201702,2017),('2017-02-15',201707,2,2017,15,7,201702,2017),('2017-02-16',201707,2,2017,16,7,201702,2017),('2017-02-17',201707,2,2017,17,7,201702,2017),('2017-02-18',201707,2,2017,18,7,201702,2017),('2017-02-19',201708,2,2017,19,8,201702,2017),('2017-02-20',201708,2,2017,20,8,201702,2017),('2017-02-21',201708,2,2017,21,8,201702,2017),('2017-02-22',201708,2,2017,22,8,201702,2017),('2017-02-23',201708,2,2017,23,8,201702,2017),('2017-02-24',201708,2,2017,24,8,201702,2017),('2017-02-25',201708,2,2017,25,8,201702,2017),('2017-02-26',201709,2,2017,26,9,201702,2017),('2017-02-27',201709,2,2017,27,9,201702,2017),('2017-02-28',201709,2,2017,28,9,201702,2017),('2017-03-01',201709,3,2017,1,9,201703,2017),('2017-03-02',201709,3,2017,2,9,201703,2017),('2017-03-03',201709,3,2017,3,9,201703,2017),('2017-03-04',201709,3,2017,4,9,201703,2017),('2017-03-05',201710,3,2017,5,10,201703,2017),('2017-03-06',201710,3,2017,6,10,201703,2017),('2017-03-07',201710,3,2017,7,10,201703,2017),('2017-03-08',201710,3,2017,8,10,201703,2017),('2017-03-09',201710,3,2017,9,10,201703,2017),('2017-03-10',201710,3,2017,10,10,201703,2017),('2017-03-11',201710,3,2017,11,10,201703,2017),('2017-03-12',201711,3,2017,12,11,201703,2017),('2017-03-13',201711,3,2017,13,11,201703,2017),('2017-03-14',201711,3,2017,14,11,201703,2017),('2017-03-15',201711,3,2017,15,11,201703,2017),('2017-03-16',201711,3,2017,16,11,201703,2017),('2017-03-17',201711,3,2017,17,11,201703,2017),('2017-03-18',201711,3,2017,18,11,201703,2017),('2017-03-19',201712,3,2017,19,12,201703,2017),('2017-03-20',201712,3,2017,20,12,201703,2017),('2017-03-21',201712,3,2017,21,12,201703,2017),('2017-03-22',201712,3,2017,22,12,201703,2017),('2017-03-23',201712,3,2017,23,12,201703,2017),('2017-03-24',201712,3,2017,24,12,201703,2017),('2017-03-25',201712,3,2017,25,12,201703,2017),('2017-03-26',201713,3,2017,26,13,201703,2017),('2017-03-27',201713,3,2017,27,13,201703,2017),('2017-03-28',201713,3,2017,28,13,201703,2017),('2017-03-29',201713,3,2017,29,13,201703,2017),('2017-03-30',201713,3,2017,30,13,201703,2017),('2017-03-31',201713,3,2017,31,13,201703,2017),('2017-04-01',201713,4,2017,1,13,201704,2017),('2017-04-02',201714,4,2017,2,14,201704,2017),('2017-04-03',201714,4,2017,3,14,201704,2017),('2017-04-04',201714,4,2017,4,14,201704,2017),('2017-04-05',201714,4,2017,5,14,201704,2017),('2017-04-06',201714,4,2017,6,14,201704,2017),('2017-04-07',201714,4,2017,7,14,201704,2017),('2017-04-08',201714,4,2017,8,14,201704,2017),('2017-04-09',201715,4,2017,9,15,201704,2017),('2017-04-10',201715,4,2017,10,15,201704,2017),('2017-04-11',201715,4,2017,11,15,201704,2017),('2017-04-12',201715,4,2017,12,15,201704,2017),('2017-04-13',201715,4,2017,13,15,201704,2017),('2017-04-14',201715,4,2017,14,15,201704,2017),('2017-04-15',201715,4,2017,15,15,201704,2017),('2017-04-16',201716,4,2017,16,16,201704,2017),('2017-04-17',201716,4,2017,17,16,201704,2017),('2017-04-18',201716,4,2017,18,16,201704,2017),('2017-04-19',201716,4,2017,19,16,201704,2017),('2017-04-20',201716,4,2017,20,16,201704,2017),('2017-04-21',201716,4,2017,21,16,201704,2017),('2017-04-22',201716,4,2017,22,16,201704,2017),('2017-04-23',201717,4,2017,23,17,201704,2017),('2017-04-24',201717,4,2017,24,17,201704,2017),('2017-04-25',201717,4,2017,25,17,201704,2017),('2017-04-26',201717,4,2017,26,17,201704,2017),('2017-04-27',201717,4,2017,27,17,201704,2017),('2017-04-28',201717,4,2017,28,17,201704,2017),('2017-04-29',201717,4,2017,29,17,201704,2017),('2017-04-30',201718,4,2017,30,18,201704,2017),('2017-05-01',201718,5,2017,1,18,201705,2017),('2017-05-02',201718,5,2017,2,18,201705,2017),('2017-05-03',201718,5,2017,3,18,201705,2017),('2017-05-04',201718,5,2017,4,18,201705,2017),('2017-05-05',201718,5,2017,5,18,201705,2017),('2017-05-06',201718,5,2017,6,18,201705,2017),('2017-05-07',201719,5,2017,7,19,201705,2017),('2017-05-08',201719,5,2017,8,19,201705,2017),('2017-05-09',201719,5,2017,9,19,201705,2017),('2017-05-10',201719,5,2017,10,19,201705,2017),('2017-05-11',201719,5,2017,11,19,201705,2017),('2017-05-12',201719,5,2017,12,19,201705,2017),('2017-05-13',201719,5,2017,13,19,201705,2017),('2017-05-14',201720,5,2017,14,20,201705,2017),('2017-05-15',201720,5,2017,15,20,201705,2017),('2017-05-16',201720,5,2017,16,20,201705,2017),('2017-05-17',201720,5,2017,17,20,201705,2017),('2017-05-18',201720,5,2017,18,20,201705,2017),('2017-05-19',201720,5,2017,19,20,201705,2017),('2017-05-20',201720,5,2017,20,20,201705,2017),('2017-05-21',201721,5,2017,21,21,201705,2017),('2017-05-22',201721,5,2017,22,21,201705,2017),('2017-05-23',201721,5,2017,23,21,201705,2017),('2017-05-24',201721,5,2017,24,21,201705,2017),('2017-05-25',201721,5,2017,25,21,201705,2017),('2017-05-26',201721,5,2017,26,21,201705,2017),('2017-05-27',201721,5,2017,27,21,201705,2017),('2017-05-28',201722,5,2017,28,22,201705,2017),('2017-05-29',201722,5,2017,29,22,201705,2017),('2017-05-30',201722,5,2017,30,22,201705,2017),('2017-05-31',201722,5,2017,31,22,201705,2017),('2017-06-01',201722,6,2017,1,22,201706,2017),('2017-06-02',201722,6,2017,2,22,201706,2017),('2017-06-03',201722,6,2017,3,22,201706,2017),('2017-06-04',201723,6,2017,4,23,201706,2017),('2017-06-05',201723,6,2017,5,23,201706,2017),('2017-06-06',201723,6,2017,6,23,201706,2017),('2017-06-07',201723,6,2017,7,23,201706,2017),('2017-06-08',201723,6,2017,8,23,201706,2017),('2017-06-09',201723,6,2017,9,23,201706,2017),('2017-06-10',201723,6,2017,10,23,201706,2017),('2017-06-11',201724,6,2017,11,24,201706,2017),('2017-06-12',201724,6,2017,12,24,201706,2017),('2017-06-13',201724,6,2017,13,24,201706,2017),('2017-06-14',201724,6,2017,14,24,201706,2017),('2017-06-15',201724,6,2017,15,24,201706,2017),('2017-06-16',201724,6,2017,16,24,201706,2017),('2017-06-17',201724,6,2017,17,24,201706,2017),('2017-06-18',201725,6,2017,18,25,201706,2017),('2017-06-19',201725,6,2017,19,25,201706,2017),('2017-06-20',201725,6,2017,20,25,201706,2017),('2017-06-21',201725,6,2017,21,25,201706,2017),('2017-06-22',201725,6,2017,22,25,201706,2017),('2017-06-23',201725,6,2017,23,25,201706,2017),('2017-06-24',201725,6,2017,24,25,201706,2017),('2017-06-25',201726,6,2017,25,26,201706,2017),('2017-06-26',201726,6,2017,26,26,201706,2017),('2017-06-27',201726,6,2017,27,26,201706,2017),('2017-06-28',201726,6,2017,28,26,201706,2017),('2017-06-29',201726,6,2017,29,26,201706,2017),('2017-06-30',201726,6,2017,30,26,201706,2017),('2017-07-01',201726,7,2017,1,26,201707,2017),('2017-07-02',201727,7,2017,2,27,201707,2017),('2017-07-03',201727,7,2017,3,27,201707,2017),('2017-07-04',201727,7,2017,4,27,201707,2017),('2017-07-05',201727,7,2017,5,27,201707,2017),('2017-07-06',201727,7,2017,6,27,201707,2017),('2017-07-07',201727,7,2017,7,27,201707,2017),('2017-07-08',201727,7,2017,8,27,201707,2017),('2017-07-09',201728,7,2017,9,28,201707,2017),('2017-07-10',201728,7,2017,10,28,201707,2017),('2017-07-11',201728,7,2017,11,28,201707,2017),('2017-07-12',201728,7,2017,12,28,201707,2017),('2017-07-13',201728,7,2017,13,28,201707,2017),('2017-07-14',201728,7,2017,14,28,201707,2017),('2017-07-15',201728,7,2017,15,28,201707,2017),('2017-07-16',201729,7,2017,16,29,201707,2017),('2017-07-17',201729,7,2017,17,29,201707,2017),('2017-07-18',201729,7,2017,18,29,201707,2017),('2017-07-19',201729,7,2017,19,29,201707,2017),('2017-07-20',201729,7,2017,20,29,201707,2017),('2017-07-21',201729,7,2017,21,29,201707,2017),('2017-07-22',201729,7,2017,22,29,201707,2017),('2017-07-23',201730,7,2017,23,30,201707,2017),('2017-07-24',201730,7,2017,24,30,201707,2017),('2017-07-25',201730,7,2017,25,30,201707,2017),('2017-07-26',201730,7,2017,26,30,201707,2017),('2017-07-27',201730,7,2017,27,30,201707,2017),('2017-07-28',201730,7,2017,28,30,201707,2017),('2017-07-29',201730,7,2017,29,30,201707,2017),('2017-07-30',201731,7,2017,30,31,201707,2017),('2017-07-31',201731,7,2017,31,31,201707,2017),('2017-08-01',201731,8,2017,1,31,201708,2017),('2017-08-02',201731,8,2017,2,31,201708,2017),('2017-08-03',201731,8,2017,3,31,201708,2017),('2017-08-04',201731,8,2017,4,31,201708,2017),('2017-08-05',201731,8,2017,5,31,201708,2017),('2017-08-06',201732,8,2017,6,32,201708,2017),('2017-08-07',201732,8,2017,7,32,201708,2017),('2017-08-08',201732,8,2017,8,32,201708,2017),('2017-08-09',201732,8,2017,9,32,201708,2017),('2017-08-10',201732,8,2017,10,32,201708,2017),('2017-08-11',201732,8,2017,11,32,201708,2017),('2017-08-12',201732,8,2017,12,32,201708,2017),('2017-08-13',201733,8,2017,13,33,201708,2017),('2017-08-14',201733,8,2017,14,33,201708,2017),('2017-08-15',201733,8,2017,15,33,201708,2017),('2017-08-16',201733,8,2017,16,33,201708,2017),('2017-08-17',201733,8,2017,17,33,201708,2017),('2017-08-18',201733,8,2017,18,33,201708,2017),('2017-08-19',201733,8,2017,19,33,201708,2017),('2017-08-20',201734,8,2017,20,34,201708,2017),('2017-08-21',201734,8,2017,21,34,201708,2017),('2017-08-22',201734,8,2017,22,34,201708,2017),('2017-08-23',201734,8,2017,23,34,201708,2017),('2017-08-24',201734,8,2017,24,34,201708,2017),('2017-08-25',201734,8,2017,25,34,201708,2017),('2017-08-26',201734,8,2017,26,34,201708,2017),('2017-08-27',201735,8,2017,27,35,201708,2017),('2017-08-28',201735,8,2017,28,35,201708,2017),('2017-08-29',201735,8,2017,29,35,201708,2017),('2017-08-30',201735,8,2017,30,35,201708,2017),('2017-08-31',201735,8,2017,31,35,201708,2017),('2017-09-01',201735,9,2017,1,35,201709,2017),('2017-09-02',201735,9,2017,2,35,201709,2017),('2017-09-03',201736,9,2017,3,36,201709,2017),('2017-09-04',201736,9,2017,4,36,201709,2017),('2017-09-05',201736,9,2017,5,36,201709,2017),('2017-09-06',201736,9,2017,6,36,201709,2017),('2017-09-07',201736,9,2017,7,36,201709,2017),('2017-09-08',201736,9,2017,8,36,201709,2017),('2017-09-09',201736,9,2017,9,36,201709,2017),('2017-09-10',201737,9,2017,10,37,201709,2017),('2017-09-11',201737,9,2017,11,37,201709,2017),('2017-09-12',201737,9,2017,12,37,201709,2017),('2017-09-13',201737,9,2017,13,37,201709,2017),('2017-09-14',201737,9,2017,14,37,201709,2017),('2017-09-15',201737,9,2017,15,37,201709,2017),('2017-09-16',201737,9,2017,16,37,201709,2017),('2017-09-17',201738,9,2017,17,38,201709,2017),('2017-09-18',201738,9,2017,18,38,201709,2017),('2017-09-19',201738,9,2017,19,38,201709,2017),('2017-09-20',201738,9,2017,20,38,201709,2017),('2017-09-21',201738,9,2017,21,38,201709,2017),('2017-09-22',201738,9,2017,22,38,201709,2017),('2017-09-23',201738,9,2017,23,38,201709,2017),('2017-09-24',201739,9,2017,24,39,201709,2017),('2017-09-25',201739,9,2017,25,39,201709,2017),('2017-09-26',201739,9,2017,26,39,201709,2017),('2017-09-27',201739,9,2017,27,39,201709,2017),('2017-09-28',201739,9,2017,28,39,201709,2017),('2017-09-29',201739,9,2017,29,39,201709,2017),('2017-09-30',201739,9,2017,30,39,201709,2017),('2017-10-01',201740,10,2017,1,40,201710,2017),('2017-10-02',201740,10,2017,2,40,201710,2017),('2017-10-03',201740,10,2017,3,40,201710,2017),('2017-10-04',201740,10,2017,4,40,201710,2017),('2017-10-05',201740,10,2017,5,40,201710,2017),('2017-10-06',201740,10,2017,6,40,201710,2017),('2017-10-07',201740,10,2017,7,40,201710,2017),('2017-10-08',201741,10,2017,8,41,201710,2017),('2017-10-09',201741,10,2017,9,41,201710,2017),('2017-10-10',201741,10,2017,10,41,201710,2017),('2017-10-11',201741,10,2017,11,41,201710,2017),('2017-10-12',201741,10,2017,12,41,201710,2017),('2017-10-13',201741,10,2017,13,41,201710,2017),('2017-10-14',201741,10,2017,14,41,201710,2017),('2017-10-15',201742,10,2017,15,42,201710,2017),('2017-10-16',201742,10,2017,16,42,201710,2017),('2017-10-17',201742,10,2017,17,42,201710,2017),('2017-10-18',201742,10,2017,18,42,201710,2017),('2017-10-19',201742,10,2017,19,42,201710,2017),('2017-10-20',201742,10,2017,20,42,201710,2017),('2017-10-21',201742,10,2017,21,42,201710,2017),('2017-10-22',201743,10,2017,22,43,201710,2017),('2017-10-23',201743,10,2017,23,43,201710,2017),('2017-10-24',201743,10,2017,24,43,201710,2017),('2017-10-25',201743,10,2017,25,43,201710,2017),('2017-10-26',201743,10,2017,26,43,201710,2017),('2017-10-27',201743,10,2017,27,43,201710,2017),('2017-10-28',201743,10,2017,28,43,201710,2017),('2017-10-29',201744,10,2017,29,44,201710,2017),('2017-10-30',201744,10,2017,30,44,201710,2017),('2017-10-31',201744,10,2017,31,44,201710,2017),('2017-11-01',201744,11,2017,1,44,201711,2017),('2017-11-02',201744,11,2017,2,44,201711,2017),('2017-11-03',201744,11,2017,3,44,201711,2017),('2017-11-04',201744,11,2017,4,44,201711,2017),('2017-11-05',201745,11,2017,5,45,201711,2017),('2017-11-06',201745,11,2017,6,45,201711,2017),('2017-11-07',201745,11,2017,7,45,201711,2017),('2017-11-08',201745,11,2017,8,45,201711,2017),('2017-11-09',201745,11,2017,9,45,201711,2017),('2017-11-10',201745,11,2017,10,45,201711,2017),('2017-11-11',201745,11,2017,11,45,201711,2017),('2017-11-12',201746,11,2017,12,46,201711,2017),('2017-11-13',201746,11,2017,13,46,201711,2017),('2017-11-14',201746,11,2017,14,46,201711,2017),('2017-11-15',201746,11,2017,15,46,201711,2017),('2017-11-16',201746,11,2017,16,46,201711,2017),('2017-11-17',201746,11,2017,17,46,201711,2017),('2017-11-18',201746,11,2017,18,46,201711,2017),('2017-11-19',201747,11,2017,19,47,201711,2017),('2017-11-20',201747,11,2017,20,47,201711,2017),('2017-11-21',201747,11,2017,21,47,201711,2017),('2017-11-22',201747,11,2017,22,47,201711,2017),('2017-11-23',201747,11,2017,23,47,201711,2017),('2017-11-24',201747,11,2017,24,47,201711,2017),('2017-11-25',201747,11,2017,25,47,201711,2017),('2017-11-26',201748,11,2017,26,48,201711,2017),('2017-11-27',201748,11,2017,27,48,201711,2017),('2017-11-28',201748,11,2017,28,48,201711,2017),('2017-11-29',201748,11,2017,29,48,201711,2017),('2017-11-30',201748,11,2017,30,48,201711,2017),('2017-12-01',201748,12,2017,1,48,201712,2018),('2017-12-02',201748,12,2017,2,48,201712,2018),('2017-12-03',201749,12,2017,3,49,201712,2018),('2017-12-04',201749,12,2017,4,49,201712,2018),('2017-12-05',201749,12,2017,5,49,201712,2018),('2017-12-06',201749,12,2017,6,49,201712,2018),('2017-12-07',201749,12,2017,7,49,201712,2018),('2017-12-08',201749,12,2017,8,49,201712,2018),('2017-12-09',201749,12,2017,9,49,201712,2018),('2017-12-10',201750,12,2017,10,50,201712,2018),('2017-12-11',201750,12,2017,11,50,201712,2018),('2017-12-12',201750,12,2017,12,50,201712,2018),('2017-12-13',201750,12,2017,13,50,201712,2018),('2017-12-14',201750,12,2017,14,50,201712,2018),('2017-12-15',201750,12,2017,15,50,201712,2018),('2017-12-16',201750,12,2017,16,50,201712,2018),('2017-12-17',201751,12,2017,17,51,201712,2018),('2017-12-18',201751,12,2017,18,51,201712,2018),('2017-12-19',201751,12,2017,19,51,201712,2018),('2017-12-20',201751,12,2017,20,51,201712,2018),('2017-12-21',201751,12,2017,21,51,201712,2018),('2017-12-22',201751,12,2017,22,51,201712,2018),('2017-12-23',201751,12,2017,23,51,201712,2018),('2017-12-24',201752,12,2017,24,52,201712,2018),('2017-12-25',201752,12,2017,25,52,201712,2018),('2017-12-26',201752,12,2017,26,52,201712,2018),('2017-12-27',201752,12,2017,27,52,201712,2018),('2017-12-28',201752,12,2017,28,52,201712,2018),('2017-12-29',201752,12,2017,29,52,201712,2018),('2017-12-30',201752,12,2017,30,52,201712,2018),('2017-12-31',201801,12,2017,31,1,201712,2018),('2018-01-01',201801,1,2018,1,1,201801,2018),('2018-01-02',201801,1,2018,2,1,201801,2018),('2018-01-03',201801,1,2018,3,1,201801,2018),('2018-01-04',201801,1,2018,4,1,201801,2018),('2018-01-05',201801,1,2018,5,1,201801,2018),('2018-01-06',201801,1,2018,6,1,201801,2018),('2018-01-07',201802,1,2018,7,2,201801,2018),('2018-01-08',201802,1,2018,8,2,201801,2018),('2018-01-09',201802,1,2018,9,2,201801,2018),('2018-01-10',201802,1,2018,10,2,201801,2018),('2018-01-11',201802,1,2018,11,2,201801,2018),('2018-01-12',201802,1,2018,12,2,201801,2018),('2018-01-13',201802,1,2018,13,2,201801,2018),('2018-01-14',201803,1,2018,14,3,201801,2018),('2018-01-15',201803,1,2018,15,3,201801,2018),('2018-01-16',201803,1,2018,16,3,201801,2018),('2018-01-17',201803,1,2018,17,3,201801,2018),('2018-01-18',201803,1,2018,18,3,201801,2018),('2018-01-19',201803,1,2018,19,3,201801,2018),('2018-01-20',201803,1,2018,20,3,201801,2018),('2018-01-21',201804,1,2018,21,4,201801,2018),('2018-01-22',201804,1,2018,22,4,201801,2018),('2018-01-23',201804,1,2018,23,4,201801,2018),('2018-01-24',201804,1,2018,24,4,201801,2018),('2018-01-25',201804,1,2018,25,4,201801,2018),('2018-01-26',201804,1,2018,26,4,201801,2018),('2018-01-27',201804,1,2018,27,4,201801,2018),('2018-01-28',201805,1,2018,28,5,201801,2018),('2018-01-29',201805,1,2018,29,5,201801,2018),('2018-01-30',201805,1,2018,30,5,201801,2018),('2018-01-31',201805,1,2018,31,5,201801,2018),('2018-02-01',201805,2,2018,1,5,201802,2018),('2018-02-02',201805,2,2018,2,5,201802,2018),('2018-02-03',201805,2,2018,3,5,201802,2018),('2018-02-04',201806,2,2018,4,6,201802,2018),('2018-02-05',201806,2,2018,5,6,201802,2018),('2018-02-06',201806,2,2018,6,6,201802,2018),('2018-02-07',201806,2,2018,7,6,201802,2018),('2018-02-08',201806,2,2018,8,6,201802,2018),('2018-02-09',201806,2,2018,9,6,201802,2018),('2018-02-10',201806,2,2018,10,6,201802,2018),('2018-02-11',201807,2,2018,11,7,201802,2018),('2018-02-12',201807,2,2018,12,7,201802,2018),('2018-02-13',201807,2,2018,13,7,201802,2018),('2018-02-14',201807,2,2018,14,7,201802,2018),('2018-02-15',201807,2,2018,15,7,201802,2018),('2018-02-16',201807,2,2018,16,7,201802,2018),('2018-02-17',201807,2,2018,17,7,201802,2018),('2018-02-18',201808,2,2018,18,8,201802,2018),('2018-02-19',201808,2,2018,19,8,201802,2018),('2018-02-20',201808,2,2018,20,8,201802,2018),('2018-02-21',201808,2,2018,21,8,201802,2018),('2018-02-22',201808,2,2018,22,8,201802,2018),('2018-02-23',201808,2,2018,23,8,201802,2018),('2018-02-24',201808,2,2018,24,8,201802,2018),('2018-02-25',201809,2,2018,25,9,201802,2018),('2018-02-26',201809,2,2018,26,9,201802,2018),('2018-02-27',201809,2,2018,27,9,201802,2018),('2018-02-28',201809,2,2018,28,9,201802,2018),('2018-03-01',201809,3,2018,1,9,201803,2018),('2018-03-02',201809,3,2018,2,9,201803,2018),('2018-03-03',201809,3,2018,3,9,201803,2018),('2018-03-04',201810,3,2018,4,10,201803,2018),('2018-03-05',201810,3,2018,5,10,201803,2018),('2018-03-06',201810,3,2018,6,10,201803,2018),('2018-03-07',201810,3,2018,7,10,201803,2018),('2018-03-08',201810,3,2018,8,10,201803,2018),('2018-03-09',201810,3,2018,9,10,201803,2018),('2018-03-10',201810,3,2018,10,10,201803,2018),('2018-03-11',201811,3,2018,11,11,201803,2018),('2018-03-12',201811,3,2018,12,11,201803,2018),('2018-03-13',201811,3,2018,13,11,201803,2018),('2018-03-14',201811,3,2018,14,11,201803,2018),('2018-03-15',201811,3,2018,15,11,201803,2018),('2018-03-16',201811,3,2018,16,11,201803,2018),('2018-03-17',201811,3,2018,17,11,201803,2018),('2018-03-18',201812,3,2018,18,12,201803,2018),('2018-03-19',201812,3,2018,19,12,201803,2018),('2018-03-20',201812,3,2018,20,12,201803,2018),('2018-03-21',201812,3,2018,21,12,201803,2018),('2018-03-22',201812,3,2018,22,12,201803,2018),('2018-03-23',201812,3,2018,23,12,201803,2018),('2018-03-24',201812,3,2018,24,12,201803,2018),('2018-03-25',201813,3,2018,25,13,201803,2018),('2018-03-26',201813,3,2018,26,13,201803,2018),('2018-03-27',201813,3,2018,27,13,201803,2018),('2018-03-28',201813,3,2018,28,13,201803,2018),('2018-03-29',201813,3,2018,29,13,201803,2018),('2018-03-30',201813,3,2018,30,13,201803,2018),('2018-03-31',201813,3,2018,31,13,201803,2018),('2018-04-01',201814,4,2018,1,14,201804,2018),('2018-04-02',201814,4,2018,2,14,201804,2018),('2018-04-03',201814,4,2018,3,14,201804,2018),('2018-04-04',201814,4,2018,4,14,201804,2018),('2018-04-05',201814,4,2018,5,14,201804,2018),('2018-04-06',201814,4,2018,6,14,201804,2018),('2018-04-07',201814,4,2018,7,14,201804,2018),('2018-04-08',201815,4,2018,8,15,201804,2018),('2018-04-09',201815,4,2018,9,15,201804,2018),('2018-04-10',201815,4,2018,10,15,201804,2018),('2018-04-11',201815,4,2018,11,15,201804,2018),('2018-04-12',201815,4,2018,12,15,201804,2018),('2018-04-13',201815,4,2018,13,15,201804,2018),('2018-04-14',201815,4,2018,14,15,201804,2018),('2018-04-15',201816,4,2018,15,16,201804,2018),('2018-04-16',201816,4,2018,16,16,201804,2018),('2018-04-17',201816,4,2018,17,16,201804,2018),('2018-04-18',201816,4,2018,18,16,201804,2018),('2018-04-19',201816,4,2018,19,16,201804,2018),('2018-04-20',201816,4,2018,20,16,201804,2018),('2018-04-21',201816,4,2018,21,16,201804,2018),('2018-04-22',201817,4,2018,22,17,201804,2018),('2018-04-23',201817,4,2018,23,17,201804,2018),('2018-04-24',201817,4,2018,24,17,201804,2018),('2018-04-25',201817,4,2018,25,17,201804,2018),('2018-04-26',201817,4,2018,26,17,201804,2018),('2018-04-27',201817,4,2018,27,17,201804,2018),('2018-04-28',201817,4,2018,28,17,201804,2018),('2018-04-29',201818,4,2018,29,18,201804,2018),('2018-04-30',201818,4,2018,30,18,201804,2018),('2018-05-01',201818,5,2018,1,18,201805,2018),('2018-05-02',201818,5,2018,2,18,201805,2018),('2018-05-03',201818,5,2018,3,18,201805,2018),('2018-05-04',201818,5,2018,4,18,201805,2018),('2018-05-05',201818,5,2018,5,18,201805,2018),('2018-05-06',201819,5,2018,6,19,201805,2018),('2018-05-07',201819,5,2018,7,19,201805,2018),('2018-05-08',201819,5,2018,8,19,201805,2018),('2018-05-09',201819,5,2018,9,19,201805,2018),('2018-05-10',201819,5,2018,10,19,201805,2018),('2018-05-11',201819,5,2018,11,19,201805,2018),('2018-05-12',201819,5,2018,12,19,201805,2018),('2018-05-13',201820,5,2018,13,20,201805,2018),('2018-05-14',201820,5,2018,14,20,201805,2018),('2018-05-15',201820,5,2018,15,20,201805,2018),('2018-05-16',201820,5,2018,16,20,201805,2018),('2018-05-17',201820,5,2018,17,20,201805,2018),('2018-05-18',201820,5,2018,18,20,201805,2018),('2018-05-19',201820,5,2018,19,20,201805,2018),('2018-05-20',201821,5,2018,20,21,201805,2018),('2018-05-21',201821,5,2018,21,21,201805,2018),('2018-05-22',201821,5,2018,22,21,201805,2018),('2018-05-23',201821,5,2018,23,21,201805,2018),('2018-05-24',201821,5,2018,24,21,201805,2018),('2018-05-25',201821,5,2018,25,21,201805,2018),('2018-05-26',201821,5,2018,26,21,201805,2018),('2018-05-27',201822,5,2018,27,22,201805,2018),('2018-05-28',201822,5,2018,28,22,201805,2018),('2018-05-29',201822,5,2018,29,22,201805,2018),('2018-05-30',201822,5,2018,30,22,201805,2018),('2018-05-31',201822,5,2018,31,22,201805,2018),('2018-06-01',201822,6,2018,1,22,201806,2018),('2018-06-02',201822,6,2018,2,22,201806,2018),('2018-06-03',201823,6,2018,3,23,201806,2018),('2018-06-04',201823,6,2018,4,23,201806,2018),('2018-06-05',201823,6,2018,5,23,201806,2018),('2018-06-06',201823,6,2018,6,23,201806,2018),('2018-06-07',201823,6,2018,7,23,201806,2018),('2018-06-08',201823,6,2018,8,23,201806,2018),('2018-06-09',201823,6,2018,9,23,201806,2018),('2018-06-10',201824,6,2018,10,24,201806,2018),('2018-06-11',201824,6,2018,11,24,201806,2018),('2018-06-12',201824,6,2018,12,24,201806,2018),('2018-06-13',201824,6,2018,13,24,201806,2018),('2018-06-14',201824,6,2018,14,24,201806,2018),('2018-06-15',201824,6,2018,15,24,201806,2018),('2018-06-16',201824,6,2018,16,24,201806,2018),('2018-06-17',201825,6,2018,17,25,201806,2018),('2018-06-18',201825,6,2018,18,25,201806,2018),('2018-06-19',201825,6,2018,19,25,201806,2018),('2018-06-20',201825,6,2018,20,25,201806,2018),('2018-06-21',201825,6,2018,21,25,201806,2018),('2018-06-22',201825,6,2018,22,25,201806,2018),('2018-06-23',201825,6,2018,23,25,201806,2018),('2018-06-24',201826,6,2018,24,26,201806,2018),('2018-06-25',201826,6,2018,25,26,201806,2018),('2018-06-26',201826,6,2018,26,26,201806,2018),('2018-06-27',201826,6,2018,27,26,201806,2018),('2018-06-28',201826,6,2018,28,26,201806,2018),('2018-06-29',201826,6,2018,29,26,201806,2018),('2018-06-30',201826,6,2018,30,26,201806,2018),('2018-07-01',201827,7,2018,1,27,201807,2018),('2018-07-02',201827,7,2018,2,27,201807,2018),('2018-07-03',201827,7,2018,3,27,201807,2018),('2018-07-04',201827,7,2018,4,27,201807,2018),('2018-07-05',201827,7,2018,5,27,201807,2018),('2018-07-06',201827,7,2018,6,27,201807,2018),('2018-07-07',201827,7,2018,7,27,201807,2018),('2018-07-08',201828,7,2018,8,28,201807,2018),('2018-07-09',201828,7,2018,9,28,201807,2018),('2018-07-10',201828,7,2018,10,28,201807,2018),('2018-07-11',201828,7,2018,11,28,201807,2018),('2018-07-12',201828,7,2018,12,28,201807,2018),('2018-07-13',201828,7,2018,13,28,201807,2018),('2018-07-14',201828,7,2018,14,28,201807,2018),('2018-07-15',201829,7,2018,15,29,201807,2018),('2018-07-16',201829,7,2018,16,29,201807,2018),('2018-07-17',201829,7,2018,17,29,201807,2018),('2018-07-18',201829,7,2018,18,29,201807,2018),('2018-07-19',201829,7,2018,19,29,201807,2018),('2018-07-20',201829,7,2018,20,29,201807,2018),('2018-07-21',201829,7,2018,21,29,201807,2018),('2018-07-22',201830,7,2018,22,30,201807,2018),('2018-07-23',201830,7,2018,23,30,201807,2018),('2018-07-24',201830,7,2018,24,30,201807,2018),('2018-07-25',201830,7,2018,25,30,201807,2018),('2018-07-26',201830,7,2018,26,30,201807,2018),('2018-07-27',201830,7,2018,27,30,201807,2018),('2018-07-28',201830,7,2018,28,30,201807,2018),('2018-07-29',201831,7,2018,29,31,201807,2018),('2018-07-30',201831,7,2018,30,31,201807,2018),('2018-07-31',201831,7,2018,31,31,201807,2018),('2018-08-01',201831,8,2018,1,31,201808,2018),('2018-08-02',201831,8,2018,2,31,201808,2018),('2018-08-03',201831,8,2018,3,31,201808,2018),('2018-08-04',201831,8,2018,4,31,201808,2018),('2018-08-05',201832,8,2018,5,32,201808,2018),('2018-08-06',201832,8,2018,6,32,201808,2018),('2018-08-07',201832,8,2018,7,32,201808,2018),('2018-08-08',201832,8,2018,8,32,201808,2018),('2018-08-09',201832,8,2018,9,32,201808,2018),('2018-08-10',201832,8,2018,10,32,201808,2018),('2018-08-11',201832,8,2018,11,32,201808,2018),('2018-08-12',201833,8,2018,12,33,201808,2018),('2018-08-13',201833,8,2018,13,33,201808,2018),('2018-08-14',201833,8,2018,14,33,201808,2018),('2018-08-15',201833,8,2018,15,33,201808,2018),('2018-08-16',201833,8,2018,16,33,201808,2018),('2018-08-17',201833,8,2018,17,33,201808,2018),('2018-08-18',201833,8,2018,18,33,201808,2018),('2018-08-19',201834,8,2018,19,34,201808,2018),('2018-08-20',201834,8,2018,20,34,201808,2018),('2018-08-21',201834,8,2018,21,34,201808,2018),('2018-08-22',201834,8,2018,22,34,201808,2018),('2018-08-23',201834,8,2018,23,34,201808,2018),('2018-08-24',201834,8,2018,24,34,201808,2018),('2018-08-25',201834,8,2018,25,34,201808,2018),('2018-08-26',201835,8,2018,26,35,201808,2018),('2018-08-27',201835,8,2018,27,35,201808,2018),('2018-08-28',201835,8,2018,28,35,201808,2018),('2018-08-29',201835,8,2018,29,35,201808,2018),('2018-08-30',201835,8,2018,30,35,201808,2018),('2018-08-31',201835,8,2018,31,35,201808,2018),('2018-09-01',201835,9,2018,1,35,201809,2018),('2018-09-02',201836,9,2018,2,36,201809,2018),('2018-09-03',201836,9,2018,3,36,201809,2018),('2018-09-04',201836,9,2018,4,36,201809,2018),('2018-09-05',201836,9,2018,5,36,201809,2018),('2018-09-06',201836,9,2018,6,36,201809,2018),('2018-09-07',201836,9,2018,7,36,201809,2018),('2018-09-08',201836,9,2018,8,36,201809,2018),('2018-09-09',201837,9,2018,9,37,201809,2018),('2018-09-10',201837,9,2018,10,37,201809,2018),('2018-09-11',201837,9,2018,11,37,201809,2018),('2018-09-12',201837,9,2018,12,37,201809,2018),('2018-09-13',201837,9,2018,13,37,201809,2018),('2018-09-14',201837,9,2018,14,37,201809,2018),('2018-09-15',201837,9,2018,15,37,201809,2018),('2018-09-16',201838,9,2018,16,38,201809,2018),('2018-09-17',201838,9,2018,17,38,201809,2018),('2018-09-18',201838,9,2018,18,38,201809,2018),('2018-09-19',201838,9,2018,19,38,201809,2018),('2018-09-20',201838,9,2018,20,38,201809,2018),('2018-09-21',201838,9,2018,21,38,201809,2018),('2018-09-22',201838,9,2018,22,38,201809,2018),('2018-09-23',201839,9,2018,23,39,201809,2018),('2018-09-24',201839,9,2018,24,39,201809,2018),('2018-09-25',201839,9,2018,25,39,201809,2018),('2018-09-26',201839,9,2018,26,39,201809,2018),('2018-09-27',201839,9,2018,27,39,201809,2018),('2018-09-28',201839,9,2018,28,39,201809,2018),('2018-09-29',201839,9,2018,29,39,201809,2018),('2018-09-30',201840,9,2018,30,40,201809,2018),('2018-10-01',201840,10,2018,1,40,201810,2018),('2018-10-02',201840,10,2018,2,40,201810,2018),('2018-10-03',201840,10,2018,3,40,201810,2018),('2018-10-04',201840,10,2018,4,40,201810,2018),('2018-10-05',201840,10,2018,5,40,201810,2018),('2018-10-06',201840,10,2018,6,40,201810,2018),('2018-10-07',201841,10,2018,7,41,201810,2018),('2018-10-08',201841,10,2018,8,41,201810,2018),('2018-10-09',201841,10,2018,9,41,201810,2018),('2018-10-10',201841,10,2018,10,41,201810,2018),('2018-10-11',201841,10,2018,11,41,201810,2018),('2018-10-12',201841,10,2018,12,41,201810,2018),('2018-10-13',201841,10,2018,13,41,201810,2018),('2018-10-14',201842,10,2018,14,42,201810,2018),('2018-10-15',201842,10,2018,15,42,201810,2018),('2018-10-16',201842,10,2018,16,42,201810,2018),('2018-10-17',201842,10,2018,17,42,201810,2018),('2018-10-18',201842,10,2018,18,42,201810,2018),('2018-10-19',201842,10,2018,19,42,201810,2018),('2018-10-20',201842,10,2018,20,42,201810,2018),('2018-10-21',201843,10,2018,21,43,201810,2018),('2018-10-22',201843,10,2018,22,43,201810,2018),('2018-10-23',201843,10,2018,23,43,201810,2018),('2018-10-24',201843,10,2018,24,43,201810,2018),('2018-10-25',201843,10,2018,25,43,201810,2018),('2018-10-26',201843,10,2018,26,43,201810,2018),('2018-10-27',201843,10,2018,27,43,201810,2018),('2018-10-28',201844,10,2018,28,44,201810,2018),('2018-10-29',201844,10,2018,29,44,201810,2018),('2018-10-30',201844,10,2018,30,44,201810,2018),('2018-10-31',201844,10,2018,31,44,201810,2018),('2018-11-01',201844,11,2018,1,44,201811,2018),('2018-11-02',201844,11,2018,2,44,201811,2018),('2018-11-03',201844,11,2018,3,44,201811,2018),('2018-11-04',201845,11,2018,4,45,201811,2018),('2018-11-05',201845,11,2018,5,45,201811,2018),('2018-11-06',201845,11,2018,6,45,201811,2018),('2018-11-07',201845,11,2018,7,45,201811,2018),('2018-11-08',201845,11,2018,8,45,201811,2018),('2018-11-09',201845,11,2018,9,45,201811,2018),('2018-11-10',201845,11,2018,10,45,201811,2018),('2018-11-11',201846,11,2018,11,46,201811,2018),('2018-11-12',201846,11,2018,12,46,201811,2018),('2018-11-13',201846,11,2018,13,46,201811,2018),('2018-11-14',201846,11,2018,14,46,201811,2018),('2018-11-15',201846,11,2018,15,46,201811,2018),('2018-11-16',201846,11,2018,16,46,201811,2018),('2018-11-17',201846,11,2018,17,46,201811,2018),('2018-11-18',201847,11,2018,18,47,201811,2018),('2018-11-19',201847,11,2018,19,47,201811,2018),('2018-11-20',201847,11,2018,20,47,201811,2018),('2018-11-21',201847,11,2018,21,47,201811,2018),('2018-11-22',201847,11,2018,22,47,201811,2018),('2018-11-23',201847,11,2018,23,47,201811,2018),('2018-11-24',201847,11,2018,24,47,201811,2018),('2018-11-25',201848,11,2018,25,48,201811,2018),('2018-11-26',201848,11,2018,26,48,201811,2018),('2018-11-27',201848,11,2018,27,48,201811,2018),('2018-11-28',201848,11,2018,28,48,201811,2018),('2018-11-29',201848,11,2018,29,48,201811,2018),('2018-11-30',201848,11,2018,30,48,201811,2018),('2018-12-01',201848,12,2018,1,48,201812,2019),('2018-12-02',201849,12,2018,2,49,201812,2019),('2018-12-03',201849,12,2018,3,49,201812,2019),('2018-12-04',201849,12,2018,4,49,201812,2019),('2018-12-05',201849,12,2018,5,49,201812,2019),('2018-12-06',201849,12,2018,6,49,201812,2019),('2018-12-07',201849,12,2018,7,49,201812,2019),('2018-12-08',201849,12,2018,8,49,201812,2019),('2018-12-09',201850,12,2018,9,50,201812,2019),('2018-12-10',201850,12,2018,10,50,201812,2019),('2018-12-11',201850,12,2018,11,50,201812,2019),('2018-12-12',201850,12,2018,12,50,201812,2019),('2018-12-13',201850,12,2018,13,50,201812,2019),('2018-12-14',201850,12,2018,14,50,201812,2019),('2018-12-15',201850,12,2018,15,50,201812,2019),('2018-12-16',201851,12,2018,16,51,201812,2019),('2018-12-17',201851,12,2018,17,51,201812,2019),('2018-12-18',201851,12,2018,18,51,201812,2019),('2018-12-19',201851,12,2018,19,51,201812,2019),('2018-12-20',201851,12,2018,20,51,201812,2019),('2018-12-21',201851,12,2018,21,51,201812,2019),('2018-12-22',201851,12,2018,22,51,201812,2019),('2018-12-23',201852,12,2018,23,52,201812,2019),('2018-12-24',201852,12,2018,24,52,201812,2019),('2018-12-25',201852,12,2018,25,52,201812,2019),('2018-12-26',201852,12,2018,26,52,201812,2019),('2018-12-27',201852,12,2018,27,52,201812,2019),('2018-12-28',201852,12,2018,28,52,201812,2019),('2018-12-29',201852,12,2018,29,52,201812,2019),('2018-12-30',201901,12,2019,30,1,201812,2019),('2018-12-31',201901,12,2019,31,1,201812,2019),('2019-01-01',201901,1,2019,1,1,201901,2019),('2019-01-02',201901,1,2019,2,1,201901,2019),('2019-01-03',201901,1,2019,3,1,201901,2019),('2019-01-04',201901,1,2019,4,1,201901,2019),('2019-01-05',201901,1,2019,5,1,201901,2019),('2019-01-06',201902,1,2019,6,2,201901,2019),('2019-01-07',201902,1,2019,7,2,201901,2019),('2019-01-08',201902,1,2019,8,2,201901,2019),('2019-01-09',201902,1,2019,9,2,201901,2019),('2019-01-10',201902,1,2019,10,2,201901,2019),('2019-01-11',201902,1,2019,11,2,201901,2019),('2019-01-12',201902,1,2019,12,2,201901,2019),('2019-01-13',201903,1,2019,13,3,201901,2019),('2019-01-14',201903,1,2019,14,3,201901,2019),('2019-01-15',201903,1,2019,15,3,201901,2019),('2019-01-16',201903,1,2019,16,3,201901,2019),('2019-01-17',201903,1,2019,17,3,201901,2019),('2019-01-18',201903,1,2019,18,3,201901,2019),('2019-01-19',201903,1,2019,19,3,201901,2019),('2019-01-20',201904,1,2019,20,4,201901,2019),('2019-01-21',201904,1,2019,21,4,201901,2019),('2019-01-22',201904,1,2019,22,4,201901,2019),('2019-01-23',201904,1,2019,23,4,201901,2019),('2019-01-24',201904,1,2019,24,4,201901,2019),('2019-01-25',201904,1,2019,25,4,201901,2019),('2019-01-26',201904,1,2019,26,4,201901,2019),('2019-01-27',201905,1,2019,27,5,201901,2019),('2019-01-28',201905,1,2019,28,5,201901,2019),('2019-01-29',201905,1,2019,29,5,201901,2019),('2019-01-30',201905,1,2019,30,5,201901,2019),('2019-01-31',201905,1,2019,31,5,201901,2019),('2019-02-01',201905,2,2019,1,5,201902,2019),('2019-02-02',201905,2,2019,2,5,201902,2019),('2019-02-03',201906,2,2019,3,6,201902,2019),('2019-02-04',201906,2,2019,4,6,201902,2019),('2019-02-05',201906,2,2019,5,6,201902,2019),('2019-02-06',201906,2,2019,6,6,201902,2019),('2019-02-07',201906,2,2019,7,6,201902,2019),('2019-02-08',201906,2,2019,8,6,201902,2019),('2019-02-09',201906,2,2019,9,6,201902,2019),('2019-02-10',201907,2,2019,10,7,201902,2019),('2019-02-11',201907,2,2019,11,7,201902,2019),('2019-02-12',201907,2,2019,12,7,201902,2019),('2019-02-13',201907,2,2019,13,7,201902,2019),('2019-02-14',201907,2,2019,14,7,201902,2019),('2019-02-15',201907,2,2019,15,7,201902,2019),('2019-02-16',201907,2,2019,16,7,201902,2019),('2019-02-17',201908,2,2019,17,8,201902,2019),('2019-02-18',201908,2,2019,18,8,201902,2019),('2019-02-19',201908,2,2019,19,8,201902,2019),('2019-02-20',201908,2,2019,20,8,201902,2019),('2019-02-21',201908,2,2019,21,8,201902,2019),('2019-02-22',201908,2,2019,22,8,201902,2019),('2019-02-23',201908,2,2019,23,8,201902,2019),('2019-02-24',201909,2,2019,24,9,201902,2019),('2019-02-25',201909,2,2019,25,9,201902,2019),('2019-02-26',201909,2,2019,26,9,201902,2019),('2019-02-27',201909,2,2019,27,9,201902,2019),('2019-02-28',201909,2,2019,28,9,201902,2019),('2019-03-01',201909,3,2019,1,9,201903,2019),('2019-03-02',201909,3,2019,2,9,201903,2019),('2019-03-03',201910,3,2019,3,10,201903,2019),('2019-03-04',201910,3,2019,4,10,201903,2019),('2019-03-05',201910,3,2019,5,10,201903,2019),('2019-03-06',201910,3,2019,6,10,201903,2019),('2019-03-07',201910,3,2019,7,10,201903,2019),('2019-03-08',201910,3,2019,8,10,201903,2019),('2019-03-09',201910,3,2019,9,10,201903,2019),('2019-03-10',201911,3,2019,10,11,201903,2019),('2019-03-11',201911,3,2019,11,11,201903,2019),('2019-03-12',201911,3,2019,12,11,201903,2019),('2019-03-13',201911,3,2019,13,11,201903,2019),('2019-03-14',201911,3,2019,14,11,201903,2019),('2019-03-15',201911,3,2019,15,11,201903,2019),('2019-03-16',201911,3,2019,16,11,201903,2019),('2019-03-17',201912,3,2019,17,12,201903,2019),('2019-03-18',201912,3,2019,18,12,201903,2019),('2019-03-19',201912,3,2019,19,12,201903,2019),('2019-03-20',201912,3,2019,20,12,201903,2019),('2019-03-21',201912,3,2019,21,12,201903,2019),('2019-03-22',201912,3,2019,22,12,201903,2019),('2019-03-23',201912,3,2019,23,12,201903,2019),('2019-03-24',201913,3,2019,24,13,201903,2019),('2019-03-25',201913,3,2019,25,13,201903,2019),('2019-03-26',201913,3,2019,26,13,201903,2019),('2019-03-27',201913,3,2019,27,13,201903,2019),('2019-03-28',201913,3,2019,28,13,201903,2019),('2019-03-29',201913,3,2019,29,13,201903,2019),('2019-03-30',201913,3,2019,30,13,201903,2019),('2019-03-31',201914,3,2019,31,14,201903,2019),('2019-04-01',201914,4,2019,1,14,201904,2019),('2019-04-02',201914,4,2019,2,14,201904,2019),('2019-04-03',201914,4,2019,3,14,201904,2019),('2019-04-04',201914,4,2019,4,14,201904,2019),('2019-04-05',201914,4,2019,5,14,201904,2019),('2019-04-06',201914,4,2019,6,14,201904,2019),('2019-04-07',201915,4,2019,7,15,201904,2019),('2019-04-08',201915,4,2019,8,15,201904,2019),('2019-04-09',201915,4,2019,9,15,201904,2019),('2019-04-10',201915,4,2019,10,15,201904,2019),('2019-04-11',201915,4,2019,11,15,201904,2019),('2019-04-12',201915,4,2019,12,15,201904,2019),('2019-04-13',201915,4,2019,13,15,201904,2019),('2019-04-14',201916,4,2019,14,16,201904,2019),('2019-04-15',201916,4,2019,15,16,201904,2019),('2019-04-16',201916,4,2019,16,16,201904,2019),('2019-04-17',201916,4,2019,17,16,201904,2019),('2019-04-18',201916,4,2019,18,16,201904,2019),('2019-04-19',201916,4,2019,19,16,201904,2019),('2019-04-20',201916,4,2019,20,16,201904,2019),('2019-04-21',201917,4,2019,21,17,201904,2019),('2019-04-22',201917,4,2019,22,17,201904,2019),('2019-04-23',201917,4,2019,23,17,201904,2019),('2019-04-24',201917,4,2019,24,17,201904,2019),('2019-04-25',201917,4,2019,25,17,201904,2019),('2019-04-26',201917,4,2019,26,17,201904,2019),('2019-04-27',201917,4,2019,27,17,201904,2019),('2019-04-28',201918,4,2019,28,18,201904,2019),('2019-04-29',201918,4,2019,29,18,201904,2019),('2019-04-30',201918,4,2019,30,18,201904,2019),('2019-05-01',201918,5,2019,1,18,201905,2019),('2019-05-02',201918,5,2019,2,18,201905,2019),('2019-05-03',201918,5,2019,3,18,201905,2019),('2019-05-04',201918,5,2019,4,18,201905,2019),('2019-05-05',201919,5,2019,5,19,201905,2019),('2019-05-06',201919,5,2019,6,19,201905,2019),('2019-05-07',201919,5,2019,7,19,201905,2019),('2019-05-08',201919,5,2019,8,19,201905,2019),('2019-05-09',201919,5,2019,9,19,201905,2019),('2019-05-10',201919,5,2019,10,19,201905,2019),('2019-05-11',201919,5,2019,11,19,201905,2019),('2019-05-12',201920,5,2019,12,20,201905,2019),('2019-05-13',201920,5,2019,13,20,201905,2019),('2019-05-14',201920,5,2019,14,20,201905,2019),('2019-05-15',201920,5,2019,15,20,201905,2019),('2019-05-16',201920,5,2019,16,20,201905,2019),('2019-05-17',201920,5,2019,17,20,201905,2019),('2019-05-18',201920,5,2019,18,20,201905,2019),('2019-05-19',201921,5,2019,19,21,201905,2019),('2019-05-20',201921,5,2019,20,21,201905,2019),('2019-05-21',201921,5,2019,21,21,201905,2019),('2019-05-22',201921,5,2019,22,21,201905,2019),('2019-05-23',201921,5,2019,23,21,201905,2019),('2019-05-24',201921,5,2019,24,21,201905,2019),('2019-05-25',201921,5,2019,25,21,201905,2019),('2019-05-26',201922,5,2019,26,22,201905,2019),('2019-05-27',201922,5,2019,27,22,201905,2019),('2019-05-28',201922,5,2019,28,22,201905,2019),('2019-05-29',201922,5,2019,29,22,201905,2019),('2019-05-30',201922,5,2019,30,22,201905,2019),('2019-05-31',201922,5,2019,31,22,201905,2019),('2019-06-01',201922,6,2019,1,22,201906,2019),('2019-06-02',201923,6,2019,2,23,201906,2019),('2019-06-03',201923,6,2019,3,23,201906,2019),('2019-06-04',201923,6,2019,4,23,201906,2019),('2019-06-05',201923,6,2019,5,23,201906,2019),('2019-06-06',201923,6,2019,6,23,201906,2019),('2019-06-07',201923,6,2019,7,23,201906,2019),('2019-06-08',201923,6,2019,8,23,201906,2019),('2019-06-09',201924,6,2019,9,24,201906,2019),('2019-06-10',201924,6,2019,10,24,201906,2019),('2019-06-11',201924,6,2019,11,24,201906,2019),('2019-06-12',201924,6,2019,12,24,201906,2019),('2019-06-13',201924,6,2019,13,24,201906,2019),('2019-06-14',201924,6,2019,14,24,201906,2019),('2019-06-15',201924,6,2019,15,24,201906,2019),('2019-06-16',201925,6,2019,16,25,201906,2019),('2019-06-17',201925,6,2019,17,25,201906,2019),('2019-06-18',201925,6,2019,18,25,201906,2019),('2019-06-19',201925,6,2019,19,25,201906,2019),('2019-06-20',201925,6,2019,20,25,201906,2019),('2019-06-21',201925,6,2019,21,25,201906,2019),('2019-06-22',201925,6,2019,22,25,201906,2019),('2019-06-23',201926,6,2019,23,26,201906,2019),('2019-06-24',201926,6,2019,24,26,201906,2019),('2019-06-25',201926,6,2019,25,26,201906,2019),('2019-06-26',201926,6,2019,26,26,201906,2019),('2019-06-27',201926,6,2019,27,26,201906,2019),('2019-06-28',201926,6,2019,28,26,201906,2019),('2019-06-29',201926,6,2019,29,26,201906,2019),('2019-06-30',201927,6,2019,30,27,201906,2019),('2019-07-01',201927,7,2019,1,27,201907,2019),('2019-07-02',201927,7,2019,2,27,201907,2019),('2019-07-03',201927,7,2019,3,27,201907,2019),('2019-07-04',201927,7,2019,4,27,201907,2019),('2019-07-05',201927,7,2019,5,27,201907,2019),('2019-07-06',201927,7,2019,6,27,201907,2019),('2019-07-07',201928,7,2019,7,28,201907,2019),('2019-07-08',201928,7,2019,8,28,201907,2019),('2019-07-09',201928,7,2019,9,28,201907,2019),('2019-07-10',201928,7,2019,10,28,201907,2019),('2019-07-11',201928,7,2019,11,28,201907,2019),('2019-07-12',201928,7,2019,12,28,201907,2019),('2019-07-13',201928,7,2019,13,28,201907,2019),('2019-07-14',201929,7,2019,14,29,201907,2019),('2019-07-15',201929,7,2019,15,29,201907,2019),('2019-07-16',201929,7,2019,16,29,201907,2019),('2019-07-17',201929,7,2019,17,29,201907,2019),('2019-07-18',201929,7,2019,18,29,201907,2019),('2019-07-19',201929,7,2019,19,29,201907,2019),('2019-07-20',201929,7,2019,20,29,201907,2019),('2019-07-21',201930,7,2019,21,30,201907,2019),('2019-07-22',201930,7,2019,22,30,201907,2019),('2019-07-23',201930,7,2019,23,30,201907,2019),('2019-07-24',201930,7,2019,24,30,201907,2019),('2019-07-25',201930,7,2019,25,30,201907,2019),('2019-07-26',201930,7,2019,26,30,201907,2019),('2019-07-27',201930,7,2019,27,30,201907,2019),('2019-07-28',201931,7,2019,28,31,201907,2019),('2019-07-29',201931,7,2019,29,31,201907,2019),('2019-07-30',201931,7,2019,30,31,201907,2019),('2019-07-31',201931,7,2019,31,31,201907,2019),('2019-08-01',201931,8,2019,1,31,201908,2019),('2019-08-02',201931,8,2019,2,31,201908,2019),('2019-08-03',201931,8,2019,3,31,201908,2019),('2019-08-04',201932,8,2019,4,32,201908,2019),('2019-08-05',201932,8,2019,5,32,201908,2019),('2019-08-06',201932,8,2019,6,32,201908,2019),('2019-08-07',201932,8,2019,7,32,201908,2019),('2019-08-08',201932,8,2019,8,32,201908,2019),('2019-08-09',201932,8,2019,9,32,201908,2019),('2019-08-10',201932,8,2019,10,32,201908,2019),('2019-08-11',201933,8,2019,11,33,201908,2019),('2019-08-12',201933,8,2019,12,33,201908,2019),('2019-08-13',201933,8,2019,13,33,201908,2019),('2019-08-14',201933,8,2019,14,33,201908,2019),('2019-08-15',201933,8,2019,15,33,201908,2019),('2019-08-16',201933,8,2019,16,33,201908,2019),('2019-08-17',201933,8,2019,17,33,201908,2019),('2019-08-18',201934,8,2019,18,34,201908,2019),('2019-08-19',201934,8,2019,19,34,201908,2019),('2019-08-20',201934,8,2019,20,34,201908,2019),('2019-08-21',201934,8,2019,21,34,201908,2019),('2019-08-22',201934,8,2019,22,34,201908,2019),('2019-08-23',201934,8,2019,23,34,201908,2019),('2019-08-24',201934,8,2019,24,34,201908,2019),('2019-08-25',201935,8,2019,25,35,201908,2019),('2019-08-26',201935,8,2019,26,35,201908,2019),('2019-08-27',201935,8,2019,27,35,201908,2019),('2019-08-28',201935,8,2019,28,35,201908,2019),('2019-08-29',201935,8,2019,29,35,201908,2019),('2019-08-30',201935,8,2019,30,35,201908,2019),('2019-08-31',201935,8,2019,31,35,201908,2019),('2019-09-01',201936,9,2019,1,36,201909,2019),('2019-09-02',201936,9,2019,2,36,201909,2019),('2019-09-03',201936,9,2019,3,36,201909,2019),('2019-09-04',201936,9,2019,4,36,201909,2019),('2019-09-05',201936,9,2019,5,36,201909,2019),('2019-09-06',201936,9,2019,6,36,201909,2019),('2019-09-07',201936,9,2019,7,36,201909,2019),('2019-09-08',201937,9,2019,8,37,201909,2019),('2019-09-09',201937,9,2019,9,37,201909,2019),('2019-09-10',201937,9,2019,10,37,201909,2019),('2019-09-11',201937,9,2019,11,37,201909,2019),('2019-09-12',201937,9,2019,12,37,201909,2019),('2019-09-13',201937,9,2019,13,37,201909,2019),('2019-09-14',201937,9,2019,14,37,201909,2019),('2019-09-15',201938,9,2019,15,38,201909,2019),('2019-09-16',201938,9,2019,16,38,201909,2019),('2019-09-17',201938,9,2019,17,38,201909,2019),('2019-09-18',201938,9,2019,18,38,201909,2019),('2019-09-19',201938,9,2019,19,38,201909,2019),('2019-09-20',201938,9,2019,20,38,201909,2019),('2019-09-21',201938,9,2019,21,38,201909,2019),('2019-09-22',201939,9,2019,22,39,201909,2019),('2019-09-23',201939,9,2019,23,39,201909,2019),('2019-09-24',201939,9,2019,24,39,201909,2019),('2019-09-25',201939,9,2019,25,39,201909,2019),('2019-09-26',201939,9,2019,26,39,201909,2019),('2019-09-27',201939,9,2019,27,39,201909,2019),('2019-09-28',201939,9,2019,28,39,201909,2019),('2019-09-29',201940,9,2019,29,40,201909,2019),('2019-09-30',201940,9,2019,30,40,201909,2019),('2019-10-01',201940,10,2019,1,40,201910,2019),('2019-10-02',201940,10,2019,2,40,201910,2019),('2019-10-03',201940,10,2019,3,40,201910,2019),('2019-10-04',201940,10,2019,4,40,201910,2019),('2019-10-05',201940,10,2019,5,40,201910,2019),('2019-10-06',201941,10,2019,6,41,201910,2019),('2019-10-07',201941,10,2019,7,41,201910,2019),('2019-10-08',201941,10,2019,8,41,201910,2019),('2019-10-09',201941,10,2019,9,41,201910,2019),('2019-10-10',201941,10,2019,10,41,201910,2019),('2019-10-11',201941,10,2019,11,41,201910,2019),('2019-10-12',201941,10,2019,12,41,201910,2019),('2019-10-13',201942,10,2019,13,42,201910,2019),('2019-10-14',201942,10,2019,14,42,201910,2019),('2019-10-15',201942,10,2019,15,42,201910,2019),('2019-10-16',201942,10,2019,16,42,201910,2019),('2019-10-17',201942,10,2019,17,42,201910,2019),('2019-10-18',201942,10,2019,18,42,201910,2019),('2019-10-19',201942,10,2019,19,42,201910,2019),('2019-10-20',201943,10,2019,20,43,201910,2019),('2019-10-21',201943,10,2019,21,43,201910,2019),('2019-10-22',201943,10,2019,22,43,201910,2019),('2019-10-23',201943,10,2019,23,43,201910,2019),('2019-10-24',201943,10,2019,24,43,201910,2019),('2019-10-25',201943,10,2019,25,43,201910,2019),('2019-10-26',201943,10,2019,26,43,201910,2019),('2019-10-27',201944,10,2019,27,44,201910,2019),('2019-10-28',201944,10,2019,28,44,201910,2019),('2019-10-29',201944,10,2019,29,44,201910,2019),('2019-10-30',201944,10,2019,30,44,201910,2019),('2019-10-31',201944,10,2019,31,44,201910,2019),('2019-11-01',201944,11,2019,1,44,201911,2019),('2019-11-02',201944,11,2019,2,44,201911,2019),('2019-11-03',201945,11,2019,3,45,201911,2019),('2019-11-04',201945,11,2019,4,45,201911,2019),('2019-11-05',201945,11,2019,5,45,201911,2019),('2019-11-06',201945,11,2019,6,45,201911,2019),('2019-11-07',201945,11,2019,7,45,201911,2019),('2019-11-08',201945,11,2019,8,45,201911,2019),('2019-11-09',201945,11,2019,9,45,201911,2019),('2019-11-10',201946,11,2019,10,46,201911,2019),('2019-11-11',201946,11,2019,11,46,201911,2019),('2019-11-12',201946,11,2019,12,46,201911,2019),('2019-11-13',201946,11,2019,13,46,201911,2019),('2019-11-14',201946,11,2019,14,46,201911,2019),('2019-11-15',201946,11,2019,15,46,201911,2019),('2019-11-16',201946,11,2019,16,46,201911,2019),('2019-11-17',201947,11,2019,17,47,201911,2019),('2019-11-18',201947,11,2019,18,47,201911,2019),('2019-11-19',201947,11,2019,19,47,201911,2019),('2019-11-20',201947,11,2019,20,47,201911,2019),('2019-11-21',201947,11,2019,21,47,201911,2019),('2019-11-22',201947,11,2019,22,47,201911,2019),('2019-11-23',201947,11,2019,23,47,201911,2019),('2019-11-24',201948,11,2019,24,48,201911,2019),('2019-11-25',201948,11,2019,25,48,201911,2019),('2019-11-26',201948,11,2019,26,48,201911,2019),('2019-11-27',201948,11,2019,27,48,201911,2019),('2019-11-28',201948,11,2019,28,48,201911,2019),('2019-11-29',201948,11,2019,29,48,201911,2019),('2019-11-30',201948,11,2019,30,48,201911,2019),('2019-12-01',201949,12,2019,1,49,201912,2020),('2019-12-02',201949,12,2019,2,49,201912,2020),('2019-12-03',201949,12,2019,3,49,201912,2020),('2019-12-04',201949,12,2019,4,49,201912,2020),('2019-12-05',201949,12,2019,5,49,201912,2020),('2019-12-06',201949,12,2019,6,49,201912,2020),('2019-12-07',201949,12,2019,7,49,201912,2020),('2019-12-08',201950,12,2019,8,50,201912,2020),('2019-12-09',201950,12,2019,9,50,201912,2020),('2019-12-10',201950,12,2019,10,50,201912,2020),('2019-12-11',201950,12,2019,11,50,201912,2020),('2019-12-12',201950,12,2019,12,50,201912,2020),('2019-12-13',201950,12,2019,13,50,201912,2020),('2019-12-14',201950,12,2019,14,50,201912,2020),('2019-12-15',201951,12,2019,15,51,201912,2020),('2019-12-16',201951,12,2019,16,51,201912,2020),('2019-12-17',201951,12,2019,17,51,201912,2020),('2019-12-18',201951,12,2019,18,51,201912,2020),('2019-12-19',201951,12,2019,19,51,201912,2020),('2019-12-20',201951,12,2019,20,51,201912,2020),('2019-12-21',201951,12,2019,21,51,201912,2020),('2019-12-22',201952,12,2019,22,52,201912,2020),('2019-12-23',201952,12,2019,23,52,201912,2020),('2019-12-24',201952,12,2019,24,52,201912,2020),('2019-12-25',201952,12,2019,25,52,201912,2020),('2019-12-26',201952,12,2019,26,52,201912,2020),('2019-12-27',201952,12,2019,27,52,201912,2020),('2019-12-28',201952,12,2019,28,52,201912,2020),('2019-12-29',201953,12,2019,29,1,201912,2020),('2019-12-30',201953,12,2019,30,1,201912,2020),('2019-12-31',201953,12,2019,31,1,201912,2020),('2020-01-01',201953,1,2020,1,1,202001,2020),('2020-01-02',201953,1,2020,2,1,202001,2020),('2020-01-03',201953,1,2020,3,1,202001,2020),('2020-01-04',201953,1,2020,4,1,202001,2020),('2020-01-05',202001,1,2020,5,2,202001,2020),('2020-01-06',202001,1,2020,6,2,202001,2020),('2020-01-07',202001,1,2020,7,2,202001,2020),('2020-01-08',202001,1,2020,8,2,202001,2020),('2020-01-09',202001,1,2020,9,2,202001,2020),('2020-01-10',202001,1,2020,10,2,202001,2020),('2020-01-11',202001,1,2020,11,2,202001,2020),('2020-01-12',202002,1,2020,12,3,202001,2020),('2020-01-13',202002,1,2020,13,3,202001,2020),('2020-01-14',202002,1,2020,14,3,202001,2020),('2020-01-15',202002,1,2020,15,3,202001,2020),('2020-01-16',202002,1,2020,16,3,202001,2020),('2020-01-17',202002,1,2020,17,3,202001,2020),('2020-01-18',202002,1,2020,18,3,202001,2020),('2020-01-19',202003,1,2020,19,4,202001,2020),('2020-01-20',202003,1,2020,20,4,202001,2020),('2020-01-21',202003,1,2020,21,4,202001,2020),('2020-01-22',202003,1,2020,22,4,202001,2020),('2020-01-23',202003,1,2020,23,4,202001,2020),('2020-01-24',202003,1,2020,24,4,202001,2020),('2020-01-25',202003,1,2020,25,4,202001,2020),('2020-01-26',202004,1,2020,26,5,202001,2020),('2020-01-27',202004,1,2020,27,5,202001,2020),('2020-01-28',202004,1,2020,28,5,202001,2020),('2020-01-29',202004,1,2020,29,5,202001,2020),('2020-01-30',202004,1,2020,30,5,202001,2020),('2020-01-31',202004,1,2020,31,5,202001,2020),('2020-02-01',202004,2,2020,1,5,202002,2020),('2020-02-02',202005,2,2020,2,6,202002,2020),('2020-02-03',202005,2,2020,3,6,202002,2020),('2020-02-04',202005,2,2020,4,6,202002,2020),('2020-02-05',202005,2,2020,5,6,202002,2020),('2020-02-06',202005,2,2020,6,6,202002,2020),('2020-02-07',202005,2,2020,7,6,202002,2020),('2020-02-08',202005,2,2020,8,6,202002,2020),('2020-02-09',202006,2,2020,9,7,202002,2020),('2020-02-10',202006,2,2020,10,7,202002,2020),('2020-02-11',202006,2,2020,11,7,202002,2020),('2020-02-12',202006,2,2020,12,7,202002,2020),('2020-02-13',202006,2,2020,13,7,202002,2020),('2020-02-14',202006,2,2020,14,7,202002,2020),('2020-02-15',202006,2,2020,15,7,202002,2020),('2020-02-16',202007,2,2020,16,8,202002,2020),('2020-02-17',202007,2,2020,17,8,202002,2020),('2020-02-18',202007,2,2020,18,8,202002,2020),('2020-02-19',202007,2,2020,19,8,202002,2020),('2020-02-20',202007,2,2020,20,8,202002,2020),('2020-02-21',202007,2,2020,21,8,202002,2020),('2020-02-22',202007,2,2020,22,8,202002,2020),('2020-02-23',202008,2,2020,23,9,202002,2020),('2020-02-24',202008,2,2020,24,9,202002,2020),('2020-02-25',202008,2,2020,25,9,202002,2020),('2020-02-26',202008,2,2020,26,9,202002,2020),('2020-02-27',202008,2,2020,27,9,202002,2020),('2020-02-28',202008,2,2020,28,9,202002,2020),('2020-02-29',202008,2,2020,29,9,202002,2020),('2020-03-01',202009,3,2020,1,10,202003,2020),('2020-03-02',202009,3,2020,2,10,202003,2020),('2020-03-03',202009,3,2020,3,10,202003,2020),('2020-03-04',202009,3,2020,4,10,202003,2020),('2020-03-05',202009,3,2020,5,10,202003,2020),('2020-03-06',202009,3,2020,6,10,202003,2020),('2020-03-07',202009,3,2020,7,10,202003,2020),('2020-03-08',202010,3,2020,8,11,202003,2020),('2020-03-09',202010,3,2020,9,11,202003,2020),('2020-03-10',202010,3,2020,10,11,202003,2020),('2020-03-11',202010,3,2020,11,11,202003,2020),('2020-03-12',202010,3,2020,12,11,202003,2020),('2020-03-13',202010,3,2020,13,11,202003,2020),('2020-03-14',202010,3,2020,14,11,202003,2020),('2020-03-15',202011,3,2020,15,12,202003,2020),('2020-03-16',202011,3,2020,16,12,202003,2020),('2020-03-17',202011,3,2020,17,12,202003,2020),('2020-03-18',202011,3,2020,18,12,202003,2020),('2020-03-19',202011,3,2020,19,12,202003,2020),('2020-03-20',202011,3,2020,20,12,202003,2020),('2020-03-21',202011,3,2020,21,12,202003,2020),('2020-03-22',202012,3,2020,22,13,202003,2020),('2020-03-23',202012,3,2020,23,13,202003,2020),('2020-03-24',202012,3,2020,24,13,202003,2020),('2020-03-25',202012,3,2020,25,13,202003,2020),('2020-03-26',202012,3,2020,26,13,202003,2020),('2020-03-27',202012,3,2020,27,13,202003,2020),('2020-03-28',202012,3,2020,28,13,202003,2020),('2020-03-29',202013,3,2020,29,14,202003,2020),('2020-03-30',202013,3,2020,30,14,202003,2020),('2020-03-31',202013,3,2020,31,14,202003,2020),('2020-04-01',202013,4,2020,1,14,202004,2020),('2020-04-02',202013,4,2020,2,14,202004,2020),('2020-04-03',202013,4,2020,3,14,202004,2020),('2020-04-04',202013,4,2020,4,14,202004,2020),('2020-04-05',202014,4,2020,5,15,202004,2020),('2020-04-06',202014,4,2020,6,15,202004,2020),('2020-04-07',202014,4,2020,7,15,202004,2020),('2020-04-08',202014,4,2020,8,15,202004,2020),('2020-04-09',202014,4,2020,9,15,202004,2020),('2020-04-10',202014,4,2020,10,15,202004,2020),('2020-04-11',202014,4,2020,11,15,202004,2020),('2020-04-12',202015,4,2020,12,16,202004,2020),('2020-04-13',202015,4,2020,13,16,202004,2020),('2020-04-14',202015,4,2020,14,16,202004,2020),('2020-04-15',202015,4,2020,15,16,202004,2020),('2020-04-16',202015,4,2020,16,16,202004,2020),('2020-04-17',202015,4,2020,17,16,202004,2020),('2020-04-18',202015,4,2020,18,16,202004,2020),('2020-04-19',202016,4,2020,19,17,202004,2020),('2020-04-20',202016,4,2020,20,17,202004,2020),('2020-04-21',202016,4,2020,21,17,202004,2020),('2020-04-22',202016,4,2020,22,17,202004,2020),('2020-04-23',202016,4,2020,23,17,202004,2020),('2020-04-24',202016,4,2020,24,17,202004,2020),('2020-04-25',202016,4,2020,25,17,202004,2020),('2020-04-26',202017,4,2020,26,18,202004,2020),('2020-04-27',202017,4,2020,27,18,202004,2020),('2020-04-28',202017,4,2020,28,18,202004,2020),('2020-04-29',202017,4,2020,29,18,202004,2020),('2020-04-30',202017,4,2020,30,18,202004,2020),('2020-05-01',202017,5,2020,1,18,202005,2020),('2020-05-02',202017,5,2020,2,18,202005,2020),('2020-05-03',202018,5,2020,3,19,202005,2020),('2020-05-04',202018,5,2020,4,19,202005,2020),('2020-05-05',202018,5,2020,5,19,202005,2020),('2020-05-06',202018,5,2020,6,19,202005,2020),('2020-05-07',202018,5,2020,7,19,202005,2020),('2020-05-08',202018,5,2020,8,19,202005,2020),('2020-05-09',202018,5,2020,9,19,202005,2020),('2020-05-10',202019,5,2020,10,20,202005,2020),('2020-05-11',202019,5,2020,11,20,202005,2020),('2020-05-12',202019,5,2020,12,20,202005,2020),('2020-05-13',202019,5,2020,13,20,202005,2020),('2020-05-14',202019,5,2020,14,20,202005,2020),('2020-05-15',202019,5,2020,15,20,202005,2020),('2020-05-16',202019,5,2020,16,20,202005,2020),('2020-05-17',202020,5,2020,17,21,202005,2020),('2020-05-18',202020,5,2020,18,21,202005,2020),('2020-05-19',202020,5,2020,19,21,202005,2020),('2020-05-20',202020,5,2020,20,21,202005,2020),('2020-05-21',202020,5,2020,21,21,202005,2020),('2020-05-22',202020,5,2020,22,21,202005,2020),('2020-05-23',202020,5,2020,23,21,202005,2020),('2020-05-24',202021,5,2020,24,22,202005,2020),('2020-05-25',202021,5,2020,25,22,202005,2020),('2020-05-26',202021,5,2020,26,22,202005,2020),('2020-05-27',202021,5,2020,27,22,202005,2020),('2020-05-28',202021,5,2020,28,22,202005,2020),('2020-05-29',202021,5,2020,29,22,202005,2020),('2020-05-30',202021,5,2020,30,22,202005,2020),('2020-05-31',202022,5,2020,31,23,202005,2020),('2020-06-01',202022,6,2020,1,23,202006,2020),('2020-06-02',202022,6,2020,2,23,202006,2020),('2020-06-03',202022,6,2020,3,23,202006,2020),('2020-06-04',202022,6,2020,4,23,202006,2020),('2020-06-05',202022,6,2020,5,23,202006,2020),('2020-06-06',202022,6,2020,6,23,202006,2020),('2020-06-07',202023,6,2020,7,24,202006,2020),('2020-06-08',202023,6,2020,8,24,202006,2020),('2020-06-09',202023,6,2020,9,24,202006,2020),('2020-06-10',202023,6,2020,10,24,202006,2020),('2020-06-11',202023,6,2020,11,24,202006,2020),('2020-06-12',202023,6,2020,12,24,202006,2020),('2020-06-13',202023,6,2020,13,24,202006,2020),('2020-06-14',202024,6,2020,14,25,202006,2020),('2020-06-15',202024,6,2020,15,25,202006,2020),('2020-06-16',202024,6,2020,16,25,202006,2020),('2020-06-17',202024,6,2020,17,25,202006,2020),('2020-06-18',202024,6,2020,18,25,202006,2020),('2020-06-19',202024,6,2020,19,25,202006,2020),('2020-06-20',202024,6,2020,20,25,202006,2020),('2020-06-21',202025,6,2020,21,26,202006,2020),('2020-06-22',202025,6,2020,22,26,202006,2020),('2020-06-23',202025,6,2020,23,26,202006,2020),('2020-06-24',202025,6,2020,24,26,202006,2020),('2020-06-25',202025,6,2020,25,26,202006,2020),('2020-06-26',202025,6,2020,26,26,202006,2020),('2020-06-27',202025,6,2020,27,26,202006,2020),('2020-06-28',202026,6,2020,28,27,202006,2020),('2020-06-29',202026,6,2020,29,27,202006,2020),('2020-06-30',202026,6,2020,30,27,202006,2020),('2020-07-01',202026,7,2020,1,27,202007,2020),('2020-07-02',202026,7,2020,2,27,202007,2020),('2020-07-03',202026,7,2020,3,27,202007,2020),('2020-07-04',202026,7,2020,4,27,202007,2020),('2020-07-05',202027,7,2020,5,28,202007,2020),('2020-07-06',202027,7,2020,6,28,202007,2020),('2020-07-07',202027,7,2020,7,28,202007,2020),('2020-07-08',202027,7,2020,8,28,202007,2020),('2020-07-09',202027,7,2020,9,28,202007,2020),('2020-07-10',202027,7,2020,10,28,202007,2020),('2020-07-11',202027,7,2020,11,28,202007,2020),('2020-07-12',202028,7,2020,12,29,202007,2020),('2020-07-13',202028,7,2020,13,29,202007,2020),('2020-07-14',202028,7,2020,14,29,202007,2020),('2020-07-15',202028,7,2020,15,29,202007,2020),('2020-07-16',202028,7,2020,16,29,202007,2020),('2020-07-17',202028,7,2020,17,29,202007,2020),('2020-07-18',202028,7,2020,18,29,202007,2020),('2020-07-19',202029,7,2020,19,30,202007,2020),('2020-07-20',202029,7,2020,20,30,202007,2020),('2020-07-21',202029,7,2020,21,30,202007,2020),('2020-07-22',202029,7,2020,22,30,202007,2020),('2020-07-23',202029,7,2020,23,30,202007,2020),('2020-07-24',202029,7,2020,24,30,202007,2020),('2020-07-25',202029,7,2020,25,30,202007,2020),('2020-07-26',202030,7,2020,26,31,202007,2020),('2020-07-27',202030,7,2020,27,31,202007,2020),('2020-07-28',202030,7,2020,28,31,202007,2020),('2020-07-29',202030,7,2020,29,31,202007,2020),('2020-07-30',202030,7,2020,30,31,202007,2020),('2020-07-31',202030,7,2020,31,31,202007,2020),('2020-08-01',202030,8,2020,1,31,202008,2020),('2020-08-02',202031,8,2020,2,32,202008,2020),('2020-08-03',202031,8,2020,3,32,202008,2020),('2020-08-04',202031,8,2020,4,32,202008,2020),('2020-08-05',202031,8,2020,5,32,202008,2020),('2020-08-06',202031,8,2020,6,32,202008,2020),('2020-08-07',202031,8,2020,7,32,202008,2020),('2020-08-08',202031,8,2020,8,32,202008,2020),('2020-08-09',202032,8,2020,9,33,202008,2020),('2020-08-10',202032,8,2020,10,33,202008,2020),('2020-08-11',202032,8,2020,11,33,202008,2020),('2020-08-12',202032,8,2020,12,33,202008,2020),('2020-08-13',202032,8,2020,13,33,202008,2020),('2020-08-14',202032,8,2020,14,33,202008,2020),('2020-08-15',202032,8,2020,15,33,202008,2020),('2020-08-16',202033,8,2020,16,34,202008,2020),('2020-08-17',202033,8,2020,17,34,202008,2020),('2020-08-18',202033,8,2020,18,34,202008,2020),('2020-08-19',202033,8,2020,19,34,202008,2020),('2020-08-20',202033,8,2020,20,34,202008,2020),('2020-08-21',202033,8,2020,21,34,202008,2020),('2020-08-22',202033,8,2020,22,34,202008,2020),('2020-08-23',202034,8,2020,23,35,202008,2020),('2020-08-24',202034,8,2020,24,35,202008,2020),('2020-08-25',202034,8,2020,25,35,202008,2020),('2020-08-26',202034,8,2020,26,35,202008,2020),('2020-08-27',202034,8,2020,27,35,202008,2020),('2020-08-28',202034,8,2020,28,35,202008,2020),('2020-08-29',202034,8,2020,29,35,202008,2020),('2020-08-30',202035,8,2020,30,36,202008,2020),('2020-08-31',202035,8,2020,31,36,202008,2020),('2020-09-01',202035,9,2020,1,36,202009,2020),('2020-09-02',202035,9,2020,2,36,202009,2020),('2020-09-03',202035,9,2020,3,36,202009,2020),('2020-09-04',202035,9,2020,4,36,202009,2020),('2020-09-05',202035,9,2020,5,36,202009,2020),('2020-09-06',202036,9,2020,6,37,202009,2020),('2020-09-07',202036,9,2020,7,37,202009,2020),('2020-09-08',202036,9,2020,8,37,202009,2020),('2020-09-09',202036,9,2020,9,37,202009,2020),('2020-09-10',202036,9,2020,10,37,202009,2020),('2020-09-11',202036,9,2020,11,37,202009,2020),('2020-09-12',202036,9,2020,12,37,202009,2020),('2020-09-13',202037,9,2020,13,38,202009,2020),('2020-09-14',202037,9,2020,14,38,202009,2020),('2020-09-15',202037,9,2020,15,38,202009,2020),('2020-09-16',202037,9,2020,16,38,202009,2020),('2020-09-17',202037,9,2020,17,38,202009,2020),('2020-09-18',202037,9,2020,18,38,202009,2020),('2020-09-19',202037,9,2020,19,38,202009,2020),('2020-09-20',202038,9,2020,20,39,202009,2020),('2020-09-21',202038,9,2020,21,39,202009,2020),('2020-09-22',202038,9,2020,22,39,202009,2020),('2020-09-23',202038,9,2020,23,39,202009,2020),('2020-09-24',202038,9,2020,24,39,202009,2020),('2020-09-25',202038,9,2020,25,39,202009,2020),('2020-09-26',202038,9,2020,26,39,202009,2020),('2020-09-27',202039,9,2020,27,40,202009,2020),('2020-09-28',202039,9,2020,28,40,202009,2020),('2020-09-29',202039,9,2020,29,40,202009,2020),('2020-09-30',202039,9,2020,30,40,202009,2020),('2020-10-01',202039,10,2020,1,40,202010,2020),('2020-10-02',202039,10,2020,2,40,202010,2020),('2020-10-03',202039,10,2020,3,40,202010,2020),('2020-10-04',202040,10,2020,4,41,202010,2020),('2020-10-05',202040,10,2020,5,41,202010,2020),('2020-10-06',202040,10,2020,6,41,202010,2020),('2020-10-07',202040,10,2020,7,41,202010,2020),('2020-10-08',202040,10,2020,8,41,202010,2020),('2020-10-09',202040,10,2020,9,41,202010,2020),('2020-10-10',202040,10,2020,10,41,202010,2020),('2020-10-11',202041,10,2020,11,42,202010,2020),('2020-10-12',202041,10,2020,12,42,202010,2020),('2020-10-13',202041,10,2020,13,42,202010,2020),('2020-10-14',202041,10,2020,14,42,202010,2020),('2020-10-15',202041,10,2020,15,42,202010,2020),('2020-10-16',202041,10,2020,16,42,202010,2020),('2020-10-17',202041,10,2020,17,42,202010,2020),('2020-10-18',202042,10,2020,18,43,202010,2020),('2020-10-19',202042,10,2020,19,43,202010,2020),('2020-10-20',202042,10,2020,20,43,202010,2020),('2020-10-21',202042,10,2020,21,43,202010,2020),('2020-10-22',202042,10,2020,22,43,202010,2020),('2020-10-23',202042,10,2020,23,43,202010,2020),('2020-10-24',202042,10,2020,24,43,202010,2020),('2020-10-25',202043,10,2020,25,44,202010,2020),('2020-10-26',202043,10,2020,26,44,202010,2020),('2020-10-27',202043,10,2020,27,44,202010,2020),('2020-10-28',202043,10,2020,28,44,202010,2020),('2020-10-29',202043,10,2020,29,44,202010,2020),('2020-10-30',202043,10,2020,30,44,202010,2020),('2020-10-31',202043,10,2020,31,44,202010,2020),('2020-11-01',202044,11,2020,1,45,202011,2020),('2020-11-02',202044,11,2020,2,45,202011,2020),('2020-11-03',202044,11,2020,3,45,202011,2020),('2020-11-04',202044,11,2020,4,45,202011,2020),('2020-11-05',202044,11,2020,5,45,202011,2020),('2020-11-06',202044,11,2020,6,45,202011,2020),('2020-11-07',202044,11,2020,7,45,202011,2020),('2020-11-08',202045,11,2020,8,46,202011,2020),('2020-11-09',202045,11,2020,9,46,202011,2020),('2020-11-10',202045,11,2020,10,46,202011,2020),('2020-11-11',202045,11,2020,11,46,202011,2020),('2020-11-12',202045,11,2020,12,46,202011,2020),('2020-11-13',202045,11,2020,13,46,202011,2020),('2020-11-14',202045,11,2020,14,46,202011,2020),('2020-11-15',202046,11,2020,15,47,202011,2020),('2020-11-16',202046,11,2020,16,47,202011,2020),('2020-11-17',202046,11,2020,17,47,202011,2020),('2020-11-18',202046,11,2020,18,47,202011,2020),('2020-11-19',202046,11,2020,19,47,202011,2020),('2020-11-20',202046,11,2020,20,47,202011,2020),('2020-11-21',202046,11,2020,21,47,202011,2020),('2020-11-22',202047,11,2020,22,48,202011,2020),('2020-11-23',202047,11,2020,23,48,202011,2020),('2020-11-24',202047,11,2020,24,48,202011,2020),('2020-11-25',202047,11,2020,25,48,202011,2020),('2020-11-26',202047,11,2020,26,48,202011,2020),('2020-11-27',202047,11,2020,27,48,202011,2020),('2020-11-28',202047,11,2020,28,48,202011,2020),('2020-11-29',202048,11,2020,29,49,202011,2020),('2020-11-30',202048,11,2020,30,49,202011,2020),('2020-12-01',202048,12,2020,1,49,202012,2021),('2020-12-02',202048,12,2020,2,49,202012,2021),('2020-12-03',202048,12,2020,3,49,202012,2021),('2020-12-04',202048,12,2020,4,49,202012,2021),('2020-12-05',202048,12,2020,5,49,202012,2021),('2020-12-06',202049,12,2020,6,50,202012,2021),('2020-12-07',202049,12,2020,7,50,202012,2021),('2020-12-08',202049,12,2020,8,50,202012,2021),('2020-12-09',202049,12,2020,9,50,202012,2021),('2020-12-10',202049,12,2020,10,50,202012,2021),('2020-12-11',202049,12,2020,11,50,202012,2021),('2020-12-12',202049,12,2020,12,50,202012,2021),('2020-12-13',202050,12,2020,13,51,202012,2021),('2020-12-14',202050,12,2020,14,51,202012,2021),('2020-12-15',202050,12,2020,15,51,202012,2021),('2020-12-16',202050,12,2020,16,51,202012,2021),('2020-12-17',202050,12,2020,17,51,202012,2021),('2020-12-18',202050,12,2020,18,51,202012,2021),('2020-12-19',202050,12,2020,19,51,202012,2021),('2020-12-20',202051,12,2020,20,52,202012,2021),('2020-12-21',202051,12,2020,21,52,202012,2021),('2020-12-22',202051,12,2020,22,52,202012,2021),('2020-12-23',202051,12,2020,23,52,202012,2021),('2020-12-24',202051,12,2020,24,52,202012,2021),('2020-12-25',202051,12,2020,25,52,202012,2021),('2020-12-26',202051,12,2020,26,52,202012,2021),('2020-12-27',202052,12,2020,27,53,202012,2021),('2020-12-28',202052,12,2020,28,53,202012,2021),('2020-12-29',202052,12,2020,29,53,202012,2021),('2020-12-30',202052,12,2020,30,53,202012,2021),('2020-12-31',202052,12,2020,31,53,202012,2021),('2021-01-01',202101,1,2021,1,1,202101,2021),('2021-01-02',202101,1,2021,2,1,202101,2021),('2021-01-03',202101,1,2021,3,1,202101,2021),('2021-01-04',202101,1,2021,4,1,202101,2021),('2021-01-05',202101,1,2021,5,1,202101,2021),('2021-01-06',202101,1,2021,6,1,202101,2021),('2021-01-07',202101,1,2021,7,1,202101,2021),('2021-01-08',202101,1,2021,8,1,202101,2021),('2021-01-09',202101,1,2021,9,1,202101,2021),('2021-01-10',202102,1,2021,10,2,202101,2021),('2021-01-11',202102,1,2021,11,2,202101,2021),('2021-01-12',202102,1,2021,12,2,202101,2021),('2021-01-13',202102,1,2021,13,2,202101,2021),('2021-01-14',202102,1,2021,14,2,202101,2021),('2021-01-15',202102,1,2021,15,2,202101,2021),('2021-01-16',202102,1,2021,16,2,202101,2021),('2021-01-17',202103,1,2021,17,3,202101,2021),('2021-01-18',202103,1,2021,18,3,202101,2021),('2021-01-19',202103,1,2021,19,3,202101,2021),('2021-01-20',202103,1,2021,20,3,202101,2021),('2021-01-21',202103,1,2021,21,3,202101,2021),('2021-01-22',202103,1,2021,22,3,202101,2021),('2021-01-23',202103,1,2021,23,3,202101,2021),('2021-01-24',202104,1,2021,24,4,202101,2021),('2021-01-25',202104,1,2021,25,4,202101,2021),('2021-01-26',202104,1,2021,26,4,202101,2021),('2021-01-27',202104,1,2021,27,4,202101,2021),('2021-01-28',202104,1,2021,28,4,202101,2021),('2021-01-29',202104,1,2021,29,4,202101,2021),('2021-01-30',202104,1,2021,30,4,202101,2021),('2021-01-31',202105,1,2021,31,5,202101,2021),('2021-02-01',202105,2,2021,1,5,202102,2021),('2021-02-02',202105,2,2021,2,5,202102,2021),('2021-02-03',202105,2,2021,3,5,202102,2021),('2021-02-04',202105,2,2021,4,5,202102,2021),('2021-02-05',202105,2,2021,5,5,202102,2021),('2021-02-06',202105,2,2021,6,5,202102,2021),('2021-02-07',202106,2,2021,7,6,202102,2021),('2021-02-08',202106,2,2021,8,6,202102,2021),('2021-02-09',202106,2,2021,9,6,202102,2021),('2021-02-10',202106,2,2021,10,6,202102,2021),('2021-02-11',202106,2,2021,11,6,202102,2021),('2021-02-12',202106,2,2021,12,6,202102,2021),('2021-02-13',202106,2,2021,13,6,202102,2021),('2021-02-14',202107,2,2021,14,7,202102,2021),('2021-02-15',202107,2,2021,15,7,202102,2021),('2021-02-16',202107,2,2021,16,7,202102,2021),('2021-02-17',202107,2,2021,17,7,202102,2021),('2021-02-18',202107,2,2021,18,7,202102,2021),('2021-02-19',202107,2,2021,19,7,202102,2021),('2021-02-20',202107,2,2021,20,7,202102,2021),('2021-02-21',202108,2,2021,21,8,202102,2021),('2021-02-22',202108,2,2021,22,8,202102,2021),('2021-02-23',202108,2,2021,23,8,202102,2021),('2021-02-24',202108,2,2021,24,8,202102,2021),('2021-02-25',202108,2,2021,25,8,202102,2021),('2021-02-26',202108,2,2021,26,8,202102,2021),('2021-02-27',202108,2,2021,27,8,202102,2021),('2021-02-28',202109,2,2021,28,9,202102,2021),('2021-03-01',202109,3,2021,1,9,202103,2021),('2021-03-02',202109,3,2021,2,9,202103,2021),('2021-03-03',202109,3,2021,3,9,202103,2021),('2021-03-04',202109,3,2021,4,9,202103,2021),('2021-03-05',202109,3,2021,5,9,202103,2021),('2021-03-06',202109,3,2021,6,9,202103,2021),('2021-03-07',202110,3,2021,7,10,202103,2021),('2021-03-08',202110,3,2021,8,10,202103,2021),('2021-03-09',202110,3,2021,9,10,202103,2021),('2021-03-10',202110,3,2021,10,10,202103,2021),('2021-03-11',202110,3,2021,11,10,202103,2021),('2021-03-12',202110,3,2021,12,10,202103,2021),('2021-03-13',202110,3,2021,13,10,202103,2021),('2021-03-14',202111,3,2021,14,11,202103,2021),('2021-03-15',202111,3,2021,15,11,202103,2021),('2021-03-16',202111,3,2021,16,11,202103,2021),('2021-03-17',202111,3,2021,17,11,202103,2021),('2021-03-18',202111,3,2021,18,11,202103,2021),('2021-03-19',202111,3,2021,19,11,202103,2021),('2021-03-20',202111,3,2021,20,11,202103,2021),('2021-03-21',202112,3,2021,21,12,202103,2021),('2021-03-22',202112,3,2021,22,12,202103,2021),('2021-03-23',202112,3,2021,23,12,202103,2021),('2021-03-24',202112,3,2021,24,12,202103,2021),('2021-03-25',202112,3,2021,25,12,202103,2021),('2021-03-26',202112,3,2021,26,12,202103,2021),('2021-03-27',202112,3,2021,27,12,202103,2021),('2021-03-28',202113,3,2021,28,13,202103,2021),('2021-03-29',202113,3,2021,29,13,202103,2021),('2021-03-30',202113,3,2021,30,13,202103,2021),('2021-03-31',202113,3,2021,31,13,202103,2021),('2021-04-01',202113,4,2021,1,13,202104,2021),('2021-04-02',202113,4,2021,2,13,202104,2021),('2021-04-03',202113,4,2021,3,13,202104,2021),('2021-04-04',202114,4,2021,4,14,202104,2021),('2021-04-05',202114,4,2021,5,14,202104,2021),('2021-04-06',202114,4,2021,6,14,202104,2021),('2021-04-07',202114,4,2021,7,14,202104,2021),('2021-04-08',202114,4,2021,8,14,202104,2021),('2021-04-09',202114,4,2021,9,14,202104,2021),('2021-04-10',202114,4,2021,10,14,202104,2021),('2021-04-11',202115,4,2021,11,15,202104,2021),('2021-04-12',202115,4,2021,12,15,202104,2021),('2021-04-13',202115,4,2021,13,15,202104,2021),('2021-04-14',202115,4,2021,14,15,202104,2021),('2021-04-15',202115,4,2021,15,15,202104,2021),('2021-04-16',202115,4,2021,16,15,202104,2021),('2021-04-17',202115,4,2021,17,15,202104,2021),('2021-04-18',202116,4,2021,18,16,202104,2021),('2021-04-19',202116,4,2021,19,16,202104,2021),('2021-04-20',202116,4,2021,20,16,202104,2021),('2021-04-21',202116,4,2021,21,16,202104,2021),('2021-04-22',202116,4,2021,22,16,202104,2021),('2021-04-23',202116,4,2021,23,16,202104,2021),('2021-04-24',202116,4,2021,24,16,202104,2021),('2021-04-25',202117,4,2021,25,17,202104,2021),('2021-04-26',202117,4,2021,26,17,202104,2021),('2021-04-27',202117,4,2021,27,17,202104,2021),('2021-04-28',202117,4,2021,28,17,202104,2021),('2021-04-29',202117,4,2021,29,17,202104,2021),('2021-04-30',202117,4,2021,30,17,202104,2021),('2021-05-01',202117,5,2021,1,17,202105,2021),('2021-05-02',202118,5,2021,2,18,202105,2021),('2021-05-03',202118,5,2021,3,18,202105,2021),('2021-05-04',202118,5,2021,4,18,202105,2021),('2021-05-05',202118,5,2021,5,18,202105,2021),('2021-05-06',202118,5,2021,6,18,202105,2021),('2021-05-07',202118,5,2021,7,18,202105,2021),('2021-05-08',202118,5,2021,8,18,202105,2021),('2021-05-09',202119,5,2021,9,19,202105,2021),('2021-05-10',202119,5,2021,10,19,202105,2021),('2021-05-11',202119,5,2021,11,19,202105,2021),('2021-05-12',202119,5,2021,12,19,202105,2021),('2021-05-13',202119,5,2021,13,19,202105,2021),('2021-05-14',202119,5,2021,14,19,202105,2021),('2021-05-15',202119,5,2021,15,19,202105,2021),('2021-05-16',202120,5,2021,16,20,202105,2021),('2021-05-17',202120,5,2021,17,20,202105,2021),('2021-05-18',202120,5,2021,18,20,202105,2021),('2021-05-19',202120,5,2021,19,20,202105,2021),('2021-05-20',202120,5,2021,20,20,202105,2021),('2021-05-21',202120,5,2021,21,20,202105,2021),('2021-05-22',202120,5,2021,22,20,202105,2021),('2021-05-23',202121,5,2021,23,21,202105,2021),('2021-05-24',202121,5,2021,24,21,202105,2021),('2021-05-25',202121,5,2021,25,21,202105,2021),('2021-05-26',202121,5,2021,26,21,202105,2021),('2021-05-27',202121,5,2021,27,21,202105,2021),('2021-05-28',202121,5,2021,28,21,202105,2021),('2021-05-29',202121,5,2021,29,21,202105,2021),('2021-05-30',202122,5,2021,30,22,202105,2021),('2021-05-31',202122,5,2021,31,22,202105,2021),('2021-06-01',202122,6,2021,1,22,202106,2021),('2021-06-02',202122,6,2021,2,22,202106,2021),('2021-06-03',202122,6,2021,3,22,202106,2021),('2021-06-04',202122,6,2021,4,22,202106,2021),('2021-06-05',202122,6,2021,5,22,202106,2021),('2021-06-06',202123,6,2021,6,23,202106,2021),('2021-06-07',202123,6,2021,7,23,202106,2021),('2021-06-08',202123,6,2021,8,23,202106,2021),('2021-06-09',202123,6,2021,9,23,202106,2021),('2021-06-10',202123,6,2021,10,23,202106,2021),('2021-06-11',202123,6,2021,11,23,202106,2021),('2021-06-12',202123,6,2021,12,23,202106,2021),('2021-06-13',202124,6,2021,13,24,202106,2021),('2021-06-14',202124,6,2021,14,24,202106,2021),('2021-06-15',202124,6,2021,15,24,202106,2021),('2021-06-16',202124,6,2021,16,24,202106,2021),('2021-06-17',202124,6,2021,17,24,202106,2021),('2021-06-18',202124,6,2021,18,24,202106,2021),('2021-06-19',202124,6,2021,19,24,202106,2021),('2021-06-20',202125,6,2021,20,25,202106,2021),('2021-06-21',202125,6,2021,21,25,202106,2021),('2021-06-22',202125,6,2021,22,25,202106,2021),('2021-06-23',202125,6,2021,23,25,202106,2021),('2021-06-24',202125,6,2021,24,25,202106,2021),('2021-06-25',202125,6,2021,25,25,202106,2021),('2021-06-26',202125,6,2021,26,25,202106,2021),('2021-06-27',202126,6,2021,27,26,202106,2021),('2021-06-28',202126,6,2021,28,26,202106,2021),('2021-06-29',202126,6,2021,29,26,202106,2021),('2021-06-30',202126,6,2021,30,26,202106,2021),('2021-07-01',202126,7,2021,1,26,202107,2021),('2021-07-02',202126,7,2021,2,26,202107,2021),('2021-07-03',202126,7,2021,3,26,202107,2021),('2021-07-04',202127,7,2021,4,27,202107,2021),('2021-07-05',202127,7,2021,5,27,202107,2021),('2021-07-06',202127,7,2021,6,27,202107,2021),('2021-07-07',202127,7,2021,7,27,202107,2021),('2021-07-08',202127,7,2021,8,27,202107,2021),('2021-07-09',202127,7,2021,9,27,202107,2021),('2021-07-10',202127,7,2021,10,27,202107,2021),('2021-07-11',202128,7,2021,11,28,202107,2021),('2021-07-12',202128,7,2021,12,28,202107,2021),('2021-07-13',202128,7,2021,13,28,202107,2021),('2021-07-14',202128,7,2021,14,28,202107,2021),('2021-07-15',202128,7,2021,15,28,202107,2021),('2021-07-16',202128,7,2021,16,28,202107,2021),('2021-07-17',202128,7,2021,17,28,202107,2021),('2021-07-18',202129,7,2021,18,29,202107,2021),('2021-07-19',202129,7,2021,19,29,202107,2021),('2021-07-20',202129,7,2021,20,29,202107,2021),('2021-07-21',202129,7,2021,21,29,202107,2021),('2021-07-22',202129,7,2021,22,29,202107,2021),('2021-07-23',202129,7,2021,23,29,202107,2021),('2021-07-24',202129,7,2021,24,29,202107,2021),('2021-07-25',202130,7,2021,25,30,202107,2021),('2021-07-26',202130,7,2021,26,30,202107,2021),('2021-07-27',202130,7,2021,27,30,202107,2021),('2021-07-28',202130,7,2021,28,30,202107,2021),('2021-07-29',202130,7,2021,29,30,202107,2021),('2021-07-30',202130,7,2021,30,30,202107,2021),('2021-07-31',202130,7,2021,31,30,202107,2021),('2021-08-01',202131,8,2021,1,31,202108,2021),('2021-08-02',202131,8,2021,2,31,202108,2021),('2021-08-03',202131,8,2021,3,31,202108,2021),('2021-08-04',202131,8,2021,4,31,202108,2021),('2021-08-05',202131,8,2021,5,31,202108,2021),('2021-08-06',202131,8,2021,6,31,202108,2021),('2021-08-07',202131,8,2021,7,31,202108,2021),('2021-08-08',202132,8,2021,8,32,202108,2021),('2021-08-09',202132,8,2021,9,32,202108,2021),('2021-08-10',202132,8,2021,10,32,202108,2021),('2021-08-11',202132,8,2021,11,32,202108,2021),('2021-08-12',202132,8,2021,12,32,202108,2021),('2021-08-13',202132,8,2021,13,32,202108,2021),('2021-08-14',202132,8,2021,14,32,202108,2021),('2021-08-15',202133,8,2021,15,33,202108,2021),('2021-08-16',202133,8,2021,16,33,202108,2021),('2021-08-17',202133,8,2021,17,33,202108,2021),('2021-08-18',202133,8,2021,18,33,202108,2021),('2021-08-19',202133,8,2021,19,33,202108,2021),('2021-08-20',202133,8,2021,20,33,202108,2021),('2021-08-21',202133,8,2021,21,33,202108,2021),('2021-08-22',202134,8,2021,22,34,202108,2021),('2021-08-23',202134,8,2021,23,34,202108,2021),('2021-08-24',202134,8,2021,24,34,202108,2021),('2021-08-25',202134,8,2021,25,34,202108,2021),('2021-08-26',202134,8,2021,26,34,202108,2021),('2021-08-27',202134,8,2021,27,34,202108,2021),('2021-08-28',202134,8,2021,28,34,202108,2021),('2021-08-29',202135,8,2021,29,35,202108,2021),('2021-08-30',202135,8,2021,30,35,202108,2021),('2021-08-31',202135,8,2021,31,35,202108,2021),('2021-09-01',202135,9,2021,1,35,202109,2021),('2021-09-02',202135,9,2021,2,35,202109,2021),('2021-09-03',202135,9,2021,3,35,202109,2021),('2021-09-04',202135,9,2021,4,35,202109,2021),('2021-09-05',202136,9,2021,5,36,202109,2021),('2021-09-06',202136,9,2021,6,36,202109,2021),('2021-09-07',202136,9,2021,7,36,202109,2021),('2021-09-08',202136,9,2021,8,36,202109,2021),('2021-09-09',202136,9,2021,9,36,202109,2021),('2021-09-10',202136,9,2021,10,36,202109,2021),('2021-09-11',202136,9,2021,11,36,202109,2021),('2021-09-12',202137,9,2021,12,37,202109,2021),('2021-09-13',202137,9,2021,13,37,202109,2021),('2021-09-14',202137,9,2021,14,37,202109,2021),('2021-09-15',202137,9,2021,15,37,202109,2021),('2021-09-16',202137,9,2021,16,37,202109,2021),('2021-09-17',202137,9,2021,17,37,202109,2021),('2021-09-18',202137,9,2021,18,37,202109,2021),('2021-09-19',202138,9,2021,19,38,202109,2021),('2021-09-20',202138,9,2021,20,38,202109,2021),('2021-09-21',202138,9,2021,21,38,202109,2021),('2021-09-22',202138,9,2021,22,38,202109,2021),('2021-09-23',202138,9,2021,23,38,202109,2021),('2021-09-24',202138,9,2021,24,38,202109,2021),('2021-09-25',202138,9,2021,25,38,202109,2021),('2021-09-26',202139,9,2021,26,39,202109,2021),('2021-09-27',202139,9,2021,27,39,202109,2021),('2021-09-28',202139,9,2021,28,39,202109,2021),('2021-09-29',202139,9,2021,29,39,202109,2021),('2021-09-30',202139,9,2021,30,39,202109,2021),('2021-10-01',202139,10,2021,1,39,202110,2021),('2021-10-02',202139,10,2021,2,39,202110,2021),('2021-10-03',202140,10,2021,3,40,202110,2021),('2021-10-04',202140,10,2021,4,40,202110,2021),('2021-10-05',202140,10,2021,5,40,202110,2021),('2021-10-06',202140,10,2021,6,40,202110,2021),('2021-10-07',202140,10,2021,7,40,202110,2021),('2021-10-08',202140,10,2021,8,40,202110,2021),('2021-10-09',202140,10,2021,9,40,202110,2021),('2021-10-10',202141,10,2021,10,41,202110,2021),('2021-10-11',202141,10,2021,11,41,202110,2021),('2021-10-12',202141,10,2021,12,41,202110,2021),('2021-10-13',202141,10,2021,13,41,202110,2021),('2021-10-14',202141,10,2021,14,41,202110,2021),('2021-10-15',202141,10,2021,15,41,202110,2021),('2021-10-16',202141,10,2021,16,41,202110,2021),('2021-10-17',202142,10,2021,17,42,202110,2021),('2021-10-18',202142,10,2021,18,42,202110,2021),('2021-10-19',202142,10,2021,19,42,202110,2021),('2021-10-20',202142,10,2021,20,42,202110,2021),('2021-10-21',202142,10,2021,21,42,202110,2021),('2021-10-22',202142,10,2021,22,42,202110,2021),('2021-10-23',202142,10,2021,23,42,202110,2021),('2021-10-24',202143,10,2021,24,43,202110,2021),('2021-10-25',202143,10,2021,25,43,202110,2021),('2021-10-26',202143,10,2021,26,43,202110,2021),('2021-10-27',202143,10,2021,27,43,202110,2021),('2021-10-28',202143,10,2021,28,43,202110,2021),('2021-10-29',202143,10,2021,29,43,202110,2021),('2021-10-30',202143,10,2021,30,43,202110,2021),('2021-10-31',202144,10,2021,31,44,202110,2021),('2021-11-01',202144,11,2021,1,44,202111,2021),('2021-11-02',202144,11,2021,2,44,202111,2021),('2021-11-03',202144,11,2021,3,44,202111,2021),('2021-11-04',202144,11,2021,4,44,202111,2021),('2021-11-05',202144,11,2021,5,44,202111,2021),('2021-11-06',202144,11,2021,6,44,202111,2021),('2021-11-07',202145,11,2021,7,45,202111,2021),('2021-11-08',202145,11,2021,8,45,202111,2021),('2021-11-09',202145,11,2021,9,45,202111,2021),('2021-11-10',202145,11,2021,10,45,202111,2021),('2021-11-11',202145,11,2021,11,45,202111,2021),('2021-11-12',202145,11,2021,12,45,202111,2021),('2021-11-13',202145,11,2021,13,45,202111,2021),('2021-11-14',202146,11,2021,14,46,202111,2021),('2021-11-15',202146,11,2021,15,46,202111,2021),('2021-11-16',202146,11,2021,16,46,202111,2021),('2021-11-17',202146,11,2021,17,46,202111,2021),('2021-11-18',202146,11,2021,18,46,202111,2021),('2021-11-19',202146,11,2021,19,46,202111,2021),('2021-11-20',202146,11,2021,20,46,202111,2021),('2021-11-21',202147,11,2021,21,47,202111,2021),('2021-11-22',202147,11,2021,22,47,202111,2021),('2021-11-23',202147,11,2021,23,47,202111,2021),('2021-11-24',202147,11,2021,24,47,202111,2021),('2021-11-25',202147,11,2021,25,47,202111,2021),('2021-11-26',202147,11,2021,26,47,202111,2021),('2021-11-27',202147,11,2021,27,47,202111,2021),('2021-11-28',202148,11,2021,28,48,202111,2021),('2021-11-29',202148,11,2021,29,48,202111,2021),('2021-11-30',202148,11,2021,30,48,202111,2021),('2021-12-01',202148,12,2021,1,48,202112,2022),('2021-12-02',202148,12,2021,2,48,202112,2022),('2021-12-03',202148,12,2021,3,48,202112,2022),('2021-12-04',202148,12,2021,4,48,202112,2022),('2021-12-05',202149,12,2021,5,49,202112,2022),('2021-12-06',202149,12,2021,6,49,202112,2022),('2021-12-07',202149,12,2021,7,49,202112,2022),('2021-12-08',202149,12,2021,8,49,202112,2022),('2021-12-09',202149,12,2021,9,49,202112,2022),('2021-12-10',202149,12,2021,10,49,202112,2022),('2021-12-11',202149,12,2021,11,49,202112,2022),('2021-12-12',202150,12,2021,12,50,202112,2022),('2021-12-13',202150,12,2021,13,50,202112,2022),('2021-12-14',202150,12,2021,14,50,202112,2022),('2021-12-15',202150,12,2021,15,50,202112,2022),('2021-12-16',202150,12,2021,16,50,202112,2022),('2021-12-17',202150,12,2021,17,50,202112,2022),('2021-12-18',202150,12,2021,18,50,202112,2022),('2021-12-19',202151,12,2021,19,51,202112,2022),('2021-12-20',202151,12,2021,20,51,202112,2022),('2021-12-21',202151,12,2021,21,51,202112,2022),('2021-12-22',202151,12,2021,22,51,202112,2022),('2021-12-23',202151,12,2021,23,51,202112,2022),('2021-12-24',202151,12,2021,24,51,202112,2022),('2021-12-25',202151,12,2021,25,51,202112,2022),('2021-12-26',202152,12,2021,26,52,202112,2022),('2021-12-27',202152,12,2021,27,52,202112,2022),('2021-12-28',202152,12,2021,28,52,202112,2022),('2021-12-29',202152,12,2021,29,52,202112,2022),('2021-12-30',202152,12,2021,30,52,202112,2022),('2021-12-31',202152,12,2021,31,52,202112,2022),('2022-01-01',202152,1,2021,1,52,202201,2022),('2022-01-02',202201,1,2022,2,1,202201,2022),('2022-01-03',202201,1,2022,3,1,202201,2022),('2022-01-04',202201,1,2022,4,1,202201,2022),('2022-01-05',202201,1,2022,5,1,202201,2022),('2022-01-06',202201,1,2022,6,1,202201,2022),('2022-01-07',202201,1,2022,7,1,202201,2022),('2022-01-08',202201,1,2022,8,1,202201,2022),('2022-01-09',202202,1,2022,9,2,202201,2022),('2022-01-10',202202,1,2022,10,2,202201,2022),('2022-01-11',202202,1,2022,11,2,202201,2022),('2022-01-12',202202,1,2022,12,2,202201,2022),('2022-01-13',202202,1,2022,13,2,202201,2022),('2022-01-14',202202,1,2022,14,2,202201,2022),('2022-01-15',202202,1,2022,15,2,202201,2022),('2022-01-16',202203,1,2022,16,3,202201,2022),('2022-01-17',202203,1,2022,17,3,202201,2022),('2022-01-18',202203,1,2022,18,3,202201,2022),('2022-01-19',202203,1,2022,19,3,202201,2022),('2022-01-20',202203,1,2022,20,3,202201,2022),('2022-01-21',202203,1,2022,21,3,202201,2022),('2022-01-22',202203,1,2022,22,3,202201,2022),('2022-01-23',202204,1,2022,23,4,202201,2022),('2022-01-24',202204,1,2022,24,4,202201,2022),('2022-01-25',202204,1,2022,25,4,202201,2022),('2022-01-26',202204,1,2022,26,4,202201,2022),('2022-01-27',202204,1,2022,27,4,202201,2022),('2022-01-28',202204,1,2022,28,4,202201,2022),('2022-01-29',202204,1,2022,29,4,202201,2022),('2022-01-30',202205,1,2022,30,5,202201,2022),('2022-01-31',202205,1,2022,31,5,202201,2022),('2022-02-01',202205,2,2022,1,5,202202,2022),('2022-02-02',202205,2,2022,2,5,202202,2022),('2022-02-03',202205,2,2022,3,5,202202,2022),('2022-02-04',202205,2,2022,4,5,202202,2022),('2022-02-05',202205,2,2022,5,5,202202,2022),('2022-02-06',202206,2,2022,6,6,202202,2022),('2022-02-07',202206,2,2022,7,6,202202,2022),('2022-02-08',202206,2,2022,8,6,202202,2022),('2022-02-09',202206,2,2022,9,6,202202,2022),('2022-02-10',202206,2,2022,10,6,202202,2022),('2022-02-11',202206,2,2022,11,6,202202,2022),('2022-02-12',202206,2,2022,12,6,202202,2022),('2022-02-13',202207,2,2022,13,7,202202,2022),('2022-02-14',202207,2,2022,14,7,202202,2022),('2022-02-15',202207,2,2022,15,7,202202,2022),('2022-02-16',202207,2,2022,16,7,202202,2022),('2022-02-17',202207,2,2022,17,7,202202,2022),('2022-02-18',202207,2,2022,18,7,202202,2022),('2022-02-19',202207,2,2022,19,7,202202,2022),('2022-02-20',202208,2,2022,20,8,202202,2022),('2022-02-21',202208,2,2022,21,8,202202,2022),('2022-02-22',202208,2,2022,22,8,202202,2022),('2022-02-23',202208,2,2022,23,8,202202,2022),('2022-02-24',202208,2,2022,24,8,202202,2022),('2022-02-25',202208,2,2022,25,8,202202,2022),('2022-02-26',202208,2,2022,26,8,202202,2022),('2022-02-27',202209,2,2022,27,9,202202,2022),('2022-02-28',202209,2,2022,28,9,202202,2022),('2022-03-01',202209,3,2022,1,9,202203,2022),('2022-03-02',202209,3,2022,2,9,202203,2022),('2022-03-03',202209,3,2022,3,9,202203,2022),('2022-03-04',202209,3,2022,4,9,202203,2022),('2022-03-05',202209,3,2022,5,9,202203,2022),('2022-03-06',202210,3,2022,6,10,202203,2022),('2022-03-07',202210,3,2022,7,10,202203,2022),('2022-03-08',202210,3,2022,8,10,202203,2022),('2022-03-09',202210,3,2022,9,10,202203,2022),('2022-03-10',202210,3,2022,10,10,202203,2022),('2022-03-11',202210,3,2022,11,10,202203,2022),('2022-03-12',202210,3,2022,12,10,202203,2022),('2022-03-13',202211,3,2022,13,11,202203,2022),('2022-03-14',202211,3,2022,14,11,202203,2022),('2022-03-15',202211,3,2022,15,11,202203,2022),('2022-03-16',202211,3,2022,16,11,202203,2022),('2022-03-17',202211,3,2022,17,11,202203,2022),('2022-03-18',202211,3,2022,18,11,202203,2022),('2022-03-19',202211,3,2022,19,11,202203,2022),('2022-03-20',202212,3,2022,20,12,202203,2022),('2022-03-21',202212,3,2022,21,12,202203,2022),('2022-03-22',202212,3,2022,22,12,202203,2022),('2022-03-23',202212,3,2022,23,12,202203,2022),('2022-03-24',202212,3,2022,24,12,202203,2022),('2022-03-25',202212,3,2022,25,12,202203,2022),('2022-03-26',202212,3,2022,26,12,202203,2022),('2022-03-27',202213,3,2022,27,13,202203,2022),('2022-03-28',202213,3,2022,28,13,202203,2022),('2022-03-29',202213,3,2022,29,13,202203,2022),('2022-03-30',202213,3,2022,30,13,202203,2022),('2022-03-31',202213,3,2022,31,13,202203,2022),('2022-04-01',202213,4,2022,1,13,202204,2022),('2022-04-02',202213,4,2022,2,13,202204,2022),('2022-04-03',202214,4,2022,3,14,202204,2022),('2022-04-04',202214,4,2022,4,14,202204,2022),('2022-04-05',202214,4,2022,5,14,202204,2022),('2022-04-06',202214,4,2022,6,14,202204,2022),('2022-04-07',202214,4,2022,7,14,202204,2022),('2022-04-08',202214,4,2022,8,14,202204,2022),('2022-04-09',202214,4,2022,9,14,202204,2022),('2022-04-10',202215,4,2022,10,15,202204,2022),('2022-04-11',202215,4,2022,11,15,202204,2022),('2022-04-12',202215,4,2022,12,15,202204,2022),('2022-04-13',202215,4,2022,13,15,202204,2022),('2022-04-14',202215,4,2022,14,15,202204,2022),('2022-04-15',202215,4,2022,15,15,202204,2022),('2022-04-16',202215,4,2022,16,15,202204,2022),('2022-04-17',202216,4,2022,17,16,202204,2022),('2022-04-18',202216,4,2022,18,16,202204,2022),('2022-04-19',202216,4,2022,19,16,202204,2022),('2022-04-20',202216,4,2022,20,16,202204,2022),('2022-04-21',202216,4,2022,21,16,202204,2022),('2022-04-22',202216,4,2022,22,16,202204,2022),('2022-04-23',202216,4,2022,23,16,202204,2022),('2022-04-24',202217,4,2022,24,17,202204,2022),('2022-04-25',202217,4,2022,25,17,202204,2022),('2022-04-26',202217,4,2022,26,17,202204,2022),('2022-04-27',202217,4,2022,27,17,202204,2022),('2022-04-28',202217,4,2022,28,17,202204,2022),('2022-04-29',202217,4,2022,29,17,202204,2022),('2022-04-30',202217,4,2022,30,17,202204,2022),('2022-05-01',202218,5,2022,1,18,202205,2022),('2022-05-02',202218,5,2022,2,18,202205,2022),('2022-05-03',202218,5,2022,3,18,202205,2022),('2022-05-04',202218,5,2022,4,18,202205,2022),('2022-05-05',202218,5,2022,5,18,202205,2022),('2022-05-06',202218,5,2022,6,18,202205,2022),('2022-05-07',202218,5,2022,7,18,202205,2022),('2022-05-08',202219,5,2022,8,19,202205,2022),('2022-05-09',202219,5,2022,9,19,202205,2022),('2022-05-10',202219,5,2022,10,19,202205,2022),('2022-05-11',202219,5,2022,11,19,202205,2022),('2022-05-12',202219,5,2022,12,19,202205,2022),('2022-05-13',202219,5,2022,13,19,202205,2022),('2022-05-14',202219,5,2022,14,19,202205,2022),('2022-05-15',202220,5,2022,15,20,202205,2022),('2022-05-16',202220,5,2022,16,20,202205,2022),('2022-05-17',202220,5,2022,17,20,202205,2022),('2022-05-18',202220,5,2022,18,20,202205,2022),('2022-05-19',202220,5,2022,19,20,202205,2022),('2022-05-20',202220,5,2022,20,20,202205,2022),('2022-05-21',202220,5,2022,21,20,202205,2022),('2022-05-22',202221,5,2022,22,21,202205,2022),('2022-05-23',202221,5,2022,23,21,202205,2022),('2022-05-24',202221,5,2022,24,21,202205,2022),('2022-05-25',202221,5,2022,25,21,202205,2022),('2022-05-26',202221,5,2022,26,21,202205,2022),('2022-05-27',202221,5,2022,27,21,202205,2022),('2022-05-28',202221,5,2022,28,21,202205,2022),('2022-05-29',202222,5,2022,29,22,202205,2022),('2022-05-30',202222,5,2022,30,22,202205,2022),('2022-05-31',202222,5,2022,31,22,202205,2022),('2022-06-01',202222,6,2022,1,22,202206,2022),('2022-06-02',202222,6,2022,2,22,202206,2022),('2022-06-03',202222,6,2022,3,22,202206,2022),('2022-06-04',202222,6,2022,4,22,202206,2022),('2022-06-05',202223,6,2022,5,23,202206,2022),('2022-06-06',202223,6,2022,6,23,202206,2022),('2022-06-07',202223,6,2022,7,23,202206,2022),('2022-06-08',202223,6,2022,8,23,202206,2022),('2022-06-09',202223,6,2022,9,23,202206,2022),('2022-06-10',202223,6,2022,10,23,202206,2022),('2022-06-11',202223,6,2022,11,23,202206,2022),('2022-06-12',202224,6,2022,12,24,202206,2022),('2022-06-13',202224,6,2022,13,24,202206,2022),('2022-06-14',202224,6,2022,14,24,202206,2022),('2022-06-15',202224,6,2022,15,24,202206,2022),('2022-06-16',202224,6,2022,16,24,202206,2022),('2022-06-17',202224,6,2022,17,24,202206,2022),('2022-06-18',202224,6,2022,18,24,202206,2022),('2022-06-19',202225,6,2022,19,25,202206,2022),('2022-06-20',202225,6,2022,20,25,202206,2022),('2022-06-21',202225,6,2022,21,25,202206,2022),('2022-06-22',202225,6,2022,22,25,202206,2022),('2022-06-23',202225,6,2022,23,25,202206,2022),('2022-06-24',202225,6,2022,24,25,202206,2022),('2022-06-25',202225,6,2022,25,25,202206,2022),('2022-06-26',202226,6,2022,26,26,202206,2022),('2022-06-27',202226,6,2022,27,26,202206,2022),('2022-06-28',202226,6,2022,28,26,202206,2022),('2022-06-29',202226,6,2022,29,26,202206,2022),('2022-06-30',202226,6,2022,30,26,202206,2022),('2022-07-01',202226,7,2022,1,26,202207,2022),('2022-07-02',202226,7,2022,2,26,202207,2022),('2022-07-03',202227,7,2022,3,27,202207,2022),('2022-07-04',202227,7,2022,4,27,202207,2022),('2022-07-05',202227,7,2022,5,27,202207,2022),('2022-07-06',202227,7,2022,6,27,202207,2022),('2022-07-07',202227,7,2022,7,27,202207,2022),('2022-07-08',202227,7,2022,8,27,202207,2022),('2022-07-09',202227,7,2022,9,27,202207,2022),('2022-07-10',202228,7,2022,10,28,202207,2022),('2022-07-11',202228,7,2022,11,28,202207,2022),('2022-07-12',202228,7,2022,12,28,202207,2022),('2022-07-13',202228,7,2022,13,28,202207,2022),('2022-07-14',202228,7,2022,14,28,202207,2022),('2022-07-15',202228,7,2022,15,28,202207,2022),('2022-07-16',202228,7,2022,16,28,202207,2022),('2022-07-17',202229,7,2022,17,29,202207,2022),('2022-07-18',202229,7,2022,18,29,202207,2022),('2022-07-19',202229,7,2022,19,29,202207,2022),('2022-07-20',202229,7,2022,20,29,202207,2022),('2022-07-21',202229,7,2022,21,29,202207,2022),('2022-07-22',202229,7,2022,22,29,202207,2022),('2022-07-23',202229,7,2022,23,29,202207,2022),('2022-07-24',202230,7,2022,24,30,202207,2022),('2022-07-25',202230,7,2022,25,30,202207,2022),('2022-07-26',202230,7,2022,26,30,202207,2022),('2022-07-27',202230,7,2022,27,30,202207,2022),('2022-07-28',202230,7,2022,28,30,202207,2022),('2022-07-29',202230,7,2022,29,30,202207,2022),('2022-07-30',202230,7,2022,30,30,202207,2022),('2022-07-31',202231,7,2022,31,31,202207,2022),('2022-08-01',202231,8,2022,1,31,202208,2022),('2022-08-02',202231,8,2022,2,31,202208,2022),('2022-08-03',202231,8,2022,3,31,202208,2022),('2022-08-04',202231,8,2022,4,31,202208,2022),('2022-08-05',202231,8,2022,5,31,202208,2022),('2022-08-06',202231,8,2022,6,31,202208,2022),('2022-08-07',202232,8,2022,7,32,202208,2022),('2022-08-08',202232,8,2022,8,32,202208,2022),('2022-08-09',202232,8,2022,9,32,202208,2022),('2022-08-10',202232,8,2022,10,32,202208,2022),('2022-08-11',202232,8,2022,11,32,202208,2022),('2022-08-12',202232,8,2022,12,32,202208,2022),('2022-08-13',202232,8,2022,13,32,202208,2022),('2022-08-14',202233,8,2022,14,33,202208,2022),('2022-08-15',202233,8,2022,15,33,202208,2022),('2022-08-16',202233,8,2022,16,33,202208,2022),('2022-08-17',202233,8,2022,17,33,202208,2022),('2022-08-18',202233,8,2022,18,33,202208,2022),('2022-08-19',202233,8,2022,19,33,202208,2022),('2022-08-20',202233,8,2022,20,33,202208,2022),('2022-08-21',202234,8,2022,21,34,202208,2022),('2022-08-22',202234,8,2022,22,34,202208,2022),('2022-08-23',202234,8,2022,23,34,202208,2022),('2022-08-24',202234,8,2022,24,34,202208,2022),('2022-08-25',202234,8,2022,25,34,202208,2022),('2022-08-26',202234,8,2022,26,34,202208,2022),('2022-08-27',202234,8,2022,27,34,202208,2022),('2022-08-28',202235,8,2022,28,35,202208,2022),('2022-08-29',202235,8,2022,29,35,202208,2022),('2022-08-30',202235,8,2022,30,35,202208,2022),('2022-08-31',202235,8,2022,31,35,202208,2022),('2022-09-01',202235,9,2022,1,35,202209,2022),('2022-09-02',202235,9,2022,2,35,202209,2022),('2022-09-03',202235,9,2022,3,35,202209,2022),('2022-09-04',202236,9,2022,4,36,202209,2022),('2022-09-05',202236,9,2022,5,36,202209,2022),('2022-09-06',202236,9,2022,6,36,202209,2022),('2022-09-07',202236,9,2022,7,36,202209,2022),('2022-09-08',202236,9,2022,8,36,202209,2022),('2022-09-09',202236,9,2022,9,36,202209,2022),('2022-09-10',202236,9,2022,10,36,202209,2022),('2022-09-11',202237,9,2022,11,37,202209,2022),('2022-09-12',202237,9,2022,12,37,202209,2022),('2022-09-13',202237,9,2022,13,37,202209,2022),('2022-09-14',202237,9,2022,14,37,202209,2022),('2022-09-15',202237,9,2022,15,37,202209,2022),('2022-09-16',202237,9,2022,16,37,202209,2022),('2022-09-17',202237,9,2022,17,37,202209,2022),('2022-09-18',202238,9,2022,18,38,202209,2022),('2022-09-19',202238,9,2022,19,38,202209,2022),('2022-09-20',202238,9,2022,20,38,202209,2022),('2022-09-21',202238,9,2022,21,38,202209,2022),('2022-09-22',202238,9,2022,22,38,202209,2022),('2022-09-23',202238,9,2022,23,38,202209,2022),('2022-09-24',202238,9,2022,24,38,202209,2022),('2022-09-25',202239,9,2022,25,39,202209,2022),('2022-09-26',202239,9,2022,26,39,202209,2022),('2022-09-27',202239,9,2022,27,39,202209,2022),('2022-09-28',202239,9,2022,28,39,202209,2022),('2022-09-29',202239,9,2022,29,39,202209,2022),('2022-09-30',202239,9,2022,30,39,202209,2022),('2022-10-01',202239,10,2022,1,39,202210,2022),('2022-10-02',202240,10,2022,2,40,202210,2022),('2022-10-03',202240,10,2022,3,40,202210,2022),('2022-10-04',202240,10,2022,4,40,202210,2022),('2022-10-05',202240,10,2022,5,40,202210,2022),('2022-10-06',202240,10,2022,6,40,202210,2022),('2022-10-07',202240,10,2022,7,40,202210,2022),('2022-10-08',202240,10,2022,8,40,202210,2022),('2022-10-09',202241,10,2022,9,41,202210,2022),('2022-10-10',202241,10,2022,10,41,202210,2022),('2022-10-11',202241,10,2022,11,41,202210,2022),('2022-10-12',202241,10,2022,12,41,202210,2022),('2022-10-13',202241,10,2022,13,41,202210,2022),('2022-10-14',202241,10,2022,14,41,202210,2022),('2022-10-15',202241,10,2022,15,41,202210,2022),('2022-10-16',202242,10,2022,16,42,202210,2022),('2022-10-17',202242,10,2022,17,42,202210,2022),('2022-10-18',202242,10,2022,18,42,202210,2022),('2022-10-19',202242,10,2022,19,42,202210,2022),('2022-10-20',202242,10,2022,20,42,202210,2022),('2022-10-21',202242,10,2022,21,42,202210,2022),('2022-10-22',202242,10,2022,22,42,202210,2022),('2022-10-23',202243,10,2022,23,43,202210,2022),('2022-10-24',202243,10,2022,24,43,202210,2022),('2022-10-25',202243,10,2022,25,43,202210,2022),('2022-10-26',202243,10,2022,26,43,202210,2022),('2022-10-27',202243,10,2022,27,43,202210,2022),('2022-10-28',202243,10,2022,28,43,202210,2022),('2022-10-29',202243,10,2022,29,43,202210,2022),('2022-10-30',202244,10,2022,30,44,202210,2022),('2022-10-31',202244,10,2022,31,44,202210,2022),('2022-11-01',202244,11,2022,1,44,202211,2022),('2022-11-02',202244,11,2022,2,44,202211,2022),('2022-11-03',202244,11,2022,3,44,202211,2022),('2022-11-04',202244,11,2022,4,44,202211,2022),('2022-11-05',202244,11,2022,5,44,202211,2022),('2022-11-06',202245,11,2022,6,45,202211,2022),('2022-11-07',202245,11,2022,7,45,202211,2022),('2022-11-08',202245,11,2022,8,45,202211,2022),('2022-11-09',202245,11,2022,9,45,202211,2022),('2022-11-10',202245,11,2022,10,45,202211,2022),('2022-11-11',202245,11,2022,11,45,202211,2022),('2022-11-12',202245,11,2022,12,45,202211,2022),('2022-11-13',202246,11,2022,13,46,202211,2022),('2022-11-14',202246,11,2022,14,46,202211,2022),('2022-11-15',202246,11,2022,15,46,202211,2022),('2022-11-16',202246,11,2022,16,46,202211,2022),('2022-11-17',202246,11,2022,17,46,202211,2022),('2022-11-18',202246,11,2022,18,46,202211,2022),('2022-11-19',202246,11,2022,19,46,202211,2022),('2022-11-20',202247,11,2022,20,47,202211,2022),('2022-11-21',202247,11,2022,21,47,202211,2022),('2022-11-22',202247,11,2022,22,47,202211,2022),('2022-11-23',202247,11,2022,23,47,202211,2022),('2022-11-24',202247,11,2022,24,47,202211,2022),('2022-11-25',202247,11,2022,25,47,202211,2022),('2022-11-26',202247,11,2022,26,47,202211,2022),('2022-11-27',202248,11,2022,27,48,202211,2022),('2022-11-28',202248,11,2022,28,48,202211,2022),('2022-11-29',202248,11,2022,29,48,202211,2022),('2022-11-30',202248,11,2022,30,48,202211,2022),('2022-12-01',202248,12,2022,1,48,202212,2023),('2022-12-02',202248,12,2022,2,48,202212,2023),('2022-12-03',202248,12,2022,3,48,202212,2023),('2022-12-04',202249,12,2022,4,49,202212,2023),('2022-12-05',202249,12,2022,5,49,202212,2023),('2022-12-06',202249,12,2022,6,49,202212,2023),('2022-12-07',202249,12,2022,7,49,202212,2023),('2022-12-08',202249,12,2022,8,49,202212,2023),('2022-12-09',202249,12,2022,9,49,202212,2023),('2022-12-10',202249,12,2022,10,49,202212,2023),('2022-12-11',202250,12,2022,11,50,202212,2023),('2022-12-12',202250,12,2022,12,50,202212,2023),('2022-12-13',202250,12,2022,13,50,202212,2023),('2022-12-14',202250,12,2022,14,50,202212,2023),('2022-12-15',202250,12,2022,15,50,202212,2023),('2022-12-16',202250,12,2022,16,50,202212,2023),('2022-12-17',202250,12,2022,17,50,202212,2023),('2022-12-18',202251,12,2022,18,51,202212,2023),('2022-12-19',202251,12,2022,19,51,202212,2023),('2022-12-20',202251,12,2022,20,51,202212,2023),('2022-12-21',202251,12,2022,21,51,202212,2023),('2022-12-22',202251,12,2022,22,51,202212,2023),('2022-12-23',202251,12,2022,23,51,202212,2023),('2022-12-24',202251,12,2022,24,51,202212,2023),('2022-12-25',202252,12,2022,25,52,202212,2023),('2022-12-26',202252,12,2022,26,52,202212,2023),('2022-12-27',202252,12,2022,27,52,202212,2023),('2022-12-28',202252,12,2022,28,52,202212,2023),('2022-12-29',202252,12,2022,29,52,202212,2023),('2022-12-30',202252,12,2022,30,52,202212,2023),('2022-12-31',202252,12,2022,31,52,202212,2023),('2023-01-01',202353,1,2023,1,1,202301,2023),('2023-01-02',202301,1,2023,2,1,202301,2023),('2023-01-03',202301,1,2023,3,1,202301,2023),('2023-01-04',202301,1,2023,4,1,202301,2023),('2023-01-05',202301,1,2023,5,1,202301,2023),('2023-01-06',202301,1,2023,6,1,202301,2023),('2023-01-07',202301,1,2023,7,1,202301,2023),('2023-01-08',202302,1,2023,8,2,202301,2023),('2023-01-09',202302,1,2023,9,2,202301,2023),('2023-01-10',202302,1,2023,10,2,202301,2023),('2023-01-11',202302,1,2023,11,2,202301,2023),('2023-01-12',202302,1,2023,12,2,202301,2023),('2023-01-13',202302,1,2023,13,2,202301,2023),('2023-01-14',202302,1,2023,14,2,202301,2023),('2023-01-15',202303,1,2023,15,3,202301,2023),('2023-01-16',202303,1,2023,16,3,202301,2023),('2023-01-17',202303,1,2023,17,3,202301,2023),('2023-01-18',202303,1,2023,18,3,202301,2023),('2023-01-19',202303,1,2023,19,3,202301,2023),('2023-01-20',202303,1,2023,20,3,202301,2023),('2023-01-21',202303,1,2023,21,3,202301,2023),('2023-01-22',202304,1,2023,22,4,202301,2023),('2023-01-23',202304,1,2023,23,4,202301,2023),('2023-01-24',202304,1,2023,24,4,202301,2023),('2023-01-25',202304,1,2023,25,4,202301,2023),('2023-01-26',202304,1,2023,26,4,202301,2023),('2023-01-27',202304,1,2023,27,4,202301,2023),('2023-01-28',202304,1,2023,28,4,202301,2023),('2023-01-29',202305,1,2023,29,5,202301,2023),('2023-01-30',202305,1,2023,30,5,202301,2023),('2023-01-31',202305,1,2023,31,5,202301,2023),('2023-02-01',202305,2,2023,1,5,202302,2023),('2023-02-02',202305,2,2023,2,5,202302,2023),('2023-02-03',202305,2,2023,3,5,202302,2023),('2023-02-04',202305,2,2023,4,5,202302,2023),('2023-02-05',202306,2,2023,5,6,202302,2023),('2023-02-06',202306,2,2023,6,6,202302,2023),('2023-02-07',202306,2,2023,7,6,202302,2023),('2023-02-08',202306,2,2023,8,6,202302,2023),('2023-02-09',202306,2,2023,9,6,202302,2023),('2023-02-10',202306,2,2023,10,6,202302,2023),('2023-02-11',202306,2,2023,11,6,202302,2023),('2023-02-12',202307,2,2023,12,7,202302,2023),('2023-02-13',202307,2,2023,13,7,202302,2023),('2023-02-14',202307,2,2023,14,7,202302,2023),('2023-02-15',202307,2,2023,15,7,202302,2023),('2023-02-16',202307,2,2023,16,7,202302,2023),('2023-02-17',202307,2,2023,17,7,202302,2023),('2023-02-18',202307,2,2023,18,7,202302,2023),('2023-02-19',202308,2,2023,19,8,202302,2023),('2023-02-20',202308,2,2023,20,8,202302,2023),('2023-02-21',202308,2,2023,21,8,202302,2023),('2023-02-22',202308,2,2023,22,8,202302,2023),('2023-02-23',202308,2,2023,23,8,202302,2023),('2023-02-24',202308,2,2023,24,8,202302,2023),('2023-02-25',202308,2,2023,25,8,202302,2023),('2023-02-26',202309,2,2023,26,9,202302,2023),('2023-02-27',202309,2,2023,27,9,202302,2023),('2023-02-28',202309,2,2023,28,9,202302,2023),('2023-03-01',202309,3,2023,1,9,202303,2023),('2023-03-02',202309,3,2023,2,9,202303,2023),('2023-03-03',202309,3,2023,3,9,202303,2023),('2023-03-04',202309,3,2023,4,9,202303,2023),('2023-03-05',202310,3,2023,5,10,202303,2023),('2023-03-06',202310,3,2023,6,10,202303,2023),('2023-03-07',202310,3,2023,7,10,202303,2023),('2023-03-08',202310,3,2023,8,10,202303,2023),('2023-03-09',202310,3,2023,9,10,202303,2023),('2023-03-10',202310,3,2023,10,10,202303,2023),('2023-03-11',202310,3,2023,11,10,202303,2023),('2023-03-12',202311,3,2023,12,11,202303,2023),('2023-03-13',202311,3,2023,13,11,202303,2023),('2023-03-14',202311,3,2023,14,11,202303,2023),('2023-03-15',202311,3,2023,15,11,202303,2023),('2023-03-16',202311,3,2023,16,11,202303,2023),('2023-03-17',202311,3,2023,17,11,202303,2023),('2023-03-18',202311,3,2023,18,11,202303,2023),('2023-03-19',202312,3,2023,19,12,202303,2023),('2023-03-20',202312,3,2023,20,12,202303,2023),('2023-03-21',202312,3,2023,21,12,202303,2023),('2023-03-22',202312,3,2023,22,12,202303,2023),('2023-03-23',202312,3,2023,23,12,202303,2023),('2023-03-24',202312,3,2023,24,12,202303,2023),('2023-03-25',202312,3,2023,25,12,202303,2023),('2023-03-26',202313,3,2023,26,13,202303,2023),('2023-03-27',202313,3,2023,27,13,202303,2023),('2023-03-28',202313,3,2023,28,13,202303,2023),('2023-03-29',202313,3,2023,29,13,202303,2023),('2023-03-30',202313,3,2023,30,13,202303,2023),('2023-03-31',202313,3,2023,31,13,202303,2023),('2023-04-01',202313,4,2023,1,13,202304,2023),('2023-04-02',202314,4,2023,2,14,202304,2023),('2023-04-03',202314,4,2023,3,14,202304,2023),('2023-04-04',202314,4,2023,4,14,202304,2023),('2023-04-05',202314,4,2023,5,14,202304,2023),('2023-04-06',202314,4,2023,6,14,202304,2023),('2023-04-07',202314,4,2023,7,14,202304,2023),('2023-04-08',202314,4,2023,8,14,202304,2023),('2023-04-09',202315,4,2023,9,15,202304,2023),('2023-04-10',202315,4,2023,10,15,202304,2023),('2023-04-11',202315,4,2023,11,15,202304,2023),('2023-04-12',202315,4,2023,12,15,202304,2023),('2023-04-13',202315,4,2023,13,15,202304,2023),('2023-04-14',202315,4,2023,14,15,202304,2023),('2023-04-15',202315,4,2023,15,15,202304,2023),('2023-04-16',202316,4,2023,16,16,202304,2023),('2023-04-17',202316,4,2023,17,16,202304,2023),('2023-04-18',202316,4,2023,18,16,202304,2023),('2023-04-19',202316,4,2023,19,16,202304,2023),('2023-04-20',202316,4,2023,20,16,202304,2023),('2023-04-21',202316,4,2023,21,16,202304,2023),('2023-04-22',202316,4,2023,22,16,202304,2023),('2023-04-23',202317,4,2023,23,17,202304,2023),('2023-04-24',202317,4,2023,24,17,202304,2023),('2023-04-25',202317,4,2023,25,17,202304,2023),('2023-04-26',202317,4,2023,26,17,202304,2023),('2023-04-27',202317,4,2023,27,17,202304,2023),('2023-04-28',202317,4,2023,28,17,202304,2023),('2023-04-29',202317,4,2023,29,17,202304,2023),('2023-04-30',202318,4,2023,30,18,202304,2023),('2023-05-01',202318,5,2023,1,18,202305,2023),('2023-05-02',202318,5,2023,2,18,202305,2023),('2023-05-03',202318,5,2023,3,18,202305,2023),('2023-05-04',202318,5,2023,4,18,202305,2023),('2023-05-05',202318,5,2023,5,18,202305,2023),('2023-05-06',202318,5,2023,6,18,202305,2023),('2023-05-07',202319,5,2023,7,19,202305,2023),('2023-05-08',202319,5,2023,8,19,202305,2023),('2023-05-09',202319,5,2023,9,19,202305,2023),('2023-05-10',202319,5,2023,10,19,202305,2023),('2023-05-11',202319,5,2023,11,19,202305,2023),('2023-05-12',202319,5,2023,12,19,202305,2023),('2023-05-13',202319,5,2023,13,19,202305,2023),('2023-05-14',202320,5,2023,14,20,202305,2023),('2023-05-15',202320,5,2023,15,20,202305,2023),('2023-05-16',202320,5,2023,16,20,202305,2023),('2023-05-17',202320,5,2023,17,20,202305,2023),('2023-05-18',202320,5,2023,18,20,202305,2023),('2023-05-19',202320,5,2023,19,20,202305,2023),('2023-05-20',202320,5,2023,20,20,202305,2023),('2023-05-21',202321,5,2023,21,21,202305,2023),('2023-05-22',202321,5,2023,22,21,202305,2023),('2023-05-23',202321,5,2023,23,21,202305,2023),('2023-05-24',202321,5,2023,24,21,202305,2023),('2023-05-25',202321,5,2023,25,21,202305,2023),('2023-05-26',202321,5,2023,26,21,202305,2023),('2023-05-27',202321,5,2023,27,21,202305,2023),('2023-05-28',202322,5,2023,28,22,202305,2023),('2023-05-29',202322,5,2023,29,22,202305,2023),('2023-05-30',202322,5,2023,30,22,202305,2023),('2023-05-31',202322,5,2023,31,22,202305,2023),('2023-06-01',202322,6,2023,1,22,202306,2023),('2023-06-02',202322,6,2023,2,22,202306,2023),('2023-06-03',202322,6,2023,3,22,202306,2023),('2023-06-04',202323,6,2023,4,23,202306,2023),('2023-06-05',202323,6,2023,5,23,202306,2023),('2023-06-06',202323,6,2023,6,23,202306,2023),('2023-06-07',202323,6,2023,7,23,202306,2023),('2023-06-08',202323,6,2023,8,23,202306,2023),('2023-06-09',202323,6,2023,9,23,202306,2023),('2023-06-10',202323,6,2023,10,23,202306,2023),('2023-06-11',202324,6,2023,11,24,202306,2023),('2023-06-12',202324,6,2023,12,24,202306,2023),('2023-06-13',202324,6,2023,13,24,202306,2023),('2023-06-14',202324,6,2023,14,24,202306,2023),('2023-06-15',202324,6,2023,15,24,202306,2023),('2023-06-16',202324,6,2023,16,24,202306,2023),('2023-06-17',202324,6,2023,17,24,202306,2023),('2023-06-18',202325,6,2023,18,25,202306,2023),('2023-06-19',202325,6,2023,19,25,202306,2023),('2023-06-20',202325,6,2023,20,25,202306,2023),('2023-06-21',202325,6,2023,21,25,202306,2023),('2023-06-22',202325,6,2023,22,25,202306,2023),('2023-06-23',202325,6,2023,23,25,202306,2023),('2023-06-24',202325,6,2023,24,25,202306,2023),('2023-06-25',202326,6,2023,25,26,202306,2023),('2023-06-26',202326,6,2023,26,26,202306,2023),('2023-06-27',202326,6,2023,27,26,202306,2023),('2023-06-28',202326,6,2023,28,26,202306,2023),('2023-06-29',202326,6,2023,29,26,202306,2023),('2023-06-30',202326,6,2023,30,26,202306,2023),('2023-07-01',202326,7,2023,1,26,202307,2023),('2023-07-02',202327,7,2023,2,27,202307,2023),('2023-07-03',202327,7,2023,3,27,202307,2023),('2023-07-04',202327,7,2023,4,27,202307,2023),('2023-07-05',202327,7,2023,5,27,202307,2023),('2023-07-06',202327,7,2023,6,27,202307,2023),('2023-07-07',202327,7,2023,7,27,202307,2023),('2023-07-08',202327,7,2023,8,27,202307,2023),('2023-07-09',202328,7,2023,9,28,202307,2023),('2023-07-10',202328,7,2023,10,28,202307,2023),('2023-07-11',202328,7,2023,11,28,202307,2023),('2023-07-12',202328,7,2023,12,28,202307,2023),('2023-07-13',202328,7,2023,13,28,202307,2023),('2023-07-14',202328,7,2023,14,28,202307,2023),('2023-07-15',202328,7,2023,15,28,202307,2023),('2023-07-16',202329,7,2023,16,29,202307,2023),('2023-07-17',202329,7,2023,17,29,202307,2023),('2023-07-18',202329,7,2023,18,29,202307,2023),('2023-07-19',202329,7,2023,19,29,202307,2023),('2023-07-20',202329,7,2023,20,29,202307,2023),('2023-07-21',202329,7,2023,21,29,202307,2023),('2023-07-22',202329,7,2023,22,29,202307,2023),('2023-07-23',202330,7,2023,23,30,202307,2023),('2023-07-24',202330,7,2023,24,30,202307,2023),('2023-07-25',202330,7,2023,25,30,202307,2023),('2023-07-26',202330,7,2023,26,30,202307,2023),('2023-07-27',202330,7,2023,27,30,202307,2023),('2023-07-28',202330,7,2023,28,30,202307,2023),('2023-07-29',202330,7,2023,29,30,202307,2023),('2023-07-30',202331,7,2023,30,31,202307,2023),('2023-07-31',202331,7,2023,31,31,202307,2023),('2023-08-01',202331,8,2023,1,31,202308,2023),('2023-08-02',202331,8,2023,2,31,202308,2023),('2023-08-03',202331,8,2023,3,31,202308,2023),('2023-08-04',202331,8,2023,4,31,202308,2023),('2023-08-05',202331,8,2023,5,31,202308,2023),('2023-08-06',202332,8,2023,6,32,202308,2023),('2023-08-07',202332,8,2023,7,32,202308,2023),('2023-08-08',202332,8,2023,8,32,202308,2023),('2023-08-09',202332,8,2023,9,32,202308,2023),('2023-08-10',202332,8,2023,10,32,202308,2023),('2023-08-11',202332,8,2023,11,32,202308,2023),('2023-08-12',202332,8,2023,12,32,202308,2023),('2023-08-13',202333,8,2023,13,33,202308,2023),('2023-08-14',202333,8,2023,14,33,202308,2023),('2023-08-15',202333,8,2023,15,33,202308,2023),('2023-08-16',202333,8,2023,16,33,202308,2023),('2023-08-17',202333,8,2023,17,33,202308,2023),('2023-08-18',202333,8,2023,18,33,202308,2023),('2023-08-19',202333,8,2023,19,33,202308,2023),('2023-08-20',202334,8,2023,20,34,202308,2023),('2023-08-21',202334,8,2023,21,34,202308,2023),('2023-08-22',202334,8,2023,22,34,202308,2023),('2023-08-23',202334,8,2023,23,34,202308,2023),('2023-08-24',202334,8,2023,24,34,202308,2023),('2023-08-25',202334,8,2023,25,34,202308,2023),('2023-08-26',202334,8,2023,26,34,202308,2023),('2023-08-27',202335,8,2023,27,35,202308,2023),('2023-08-28',202335,8,2023,28,35,202308,2023),('2023-08-29',202335,8,2023,29,35,202308,2023),('2023-08-30',202335,8,2023,30,35,202308,2023),('2023-08-31',202335,8,2023,31,35,202308,2023),('2023-09-01',202335,9,2023,1,35,202309,2023),('2023-09-02',202335,9,2023,2,35,202309,2023),('2023-09-03',202336,9,2023,3,36,202309,2023),('2023-09-04',202336,9,2023,4,36,202309,2023),('2023-09-05',202336,9,2023,5,36,202309,2023),('2023-09-06',202336,9,2023,6,36,202309,2023),('2023-09-07',202336,9,2023,7,36,202309,2023),('2023-09-08',202336,9,2023,8,36,202309,2023),('2023-09-09',202336,9,2023,9,36,202309,2023),('2023-09-10',202337,9,2023,10,37,202309,2023),('2023-09-11',202337,9,2023,11,37,202309,2023),('2023-09-12',202337,9,2023,12,37,202309,2023),('2023-09-13',202337,9,2023,13,37,202309,2023),('2023-09-14',202337,9,2023,14,37,202309,2023),('2023-09-15',202337,9,2023,15,37,202309,2023),('2023-09-16',202337,9,2023,16,37,202309,2023),('2023-09-17',202338,9,2023,17,38,202309,2023),('2023-09-18',202338,9,2023,18,38,202309,2023),('2023-09-19',202338,9,2023,19,38,202309,2023),('2023-09-20',202338,9,2023,20,38,202309,2023),('2023-09-21',202338,9,2023,21,38,202309,2023),('2023-09-22',202338,9,2023,22,38,202309,2023),('2023-09-23',202338,9,2023,23,38,202309,2023),('2023-09-24',202339,9,2023,24,39,202309,2023),('2023-09-25',202339,9,2023,25,39,202309,2023),('2023-09-26',202339,9,2023,26,39,202309,2023),('2023-09-27',202339,9,2023,27,39,202309,2023),('2023-09-28',202339,9,2023,28,39,202309,2023),('2023-09-29',202339,9,2023,29,39,202309,2023),('2023-09-30',202339,9,2023,30,39,202309,2023),('2023-10-01',202340,10,2023,1,40,202310,2023),('2023-10-02',202340,10,2023,2,40,202310,2023),('2023-10-03',202340,10,2023,3,40,202310,2023),('2023-10-04',202340,10,2023,4,40,202310,2023),('2023-10-05',202340,10,2023,5,40,202310,2023),('2023-10-06',202340,10,2023,6,40,202310,2023),('2023-10-07',202340,10,2023,7,40,202310,2023),('2023-10-08',202341,10,2023,8,41,202310,2023),('2023-10-09',202341,10,2023,9,41,202310,2023),('2023-10-10',202341,10,2023,10,41,202310,2023),('2023-10-11',202341,10,2023,11,41,202310,2023),('2023-10-12',202341,10,2023,12,41,202310,2023),('2023-10-13',202341,10,2023,13,41,202310,2023),('2023-10-14',202341,10,2023,14,41,202310,2023),('2023-10-15',202342,10,2023,15,42,202310,2023),('2023-10-16',202342,10,2023,16,42,202310,2023),('2023-10-17',202342,10,2023,17,42,202310,2023),('2023-10-18',202342,10,2023,18,42,202310,2023),('2023-10-19',202342,10,2023,19,42,202310,2023),('2023-10-20',202342,10,2023,20,42,202310,2023),('2023-10-21',202342,10,2023,21,42,202310,2023),('2023-10-22',202343,10,2023,22,43,202310,2023),('2023-10-23',202343,10,2023,23,43,202310,2023),('2023-10-24',202343,10,2023,24,43,202310,2023),('2023-10-25',202343,10,2023,25,43,202310,2023),('2023-10-26',202343,10,2023,26,43,202310,2023),('2023-10-27',202343,10,2023,27,43,202310,2023),('2023-10-28',202343,10,2023,28,43,202310,2023),('2023-10-29',202344,10,2023,29,44,202310,2023),('2023-10-30',202344,10,2023,30,44,202310,2023),('2023-10-31',202344,10,2023,31,44,202310,2023),('2023-11-01',202344,11,2023,1,44,202311,2023),('2023-11-02',202344,11,2023,2,44,202311,2023),('2023-11-03',202344,11,2023,3,44,202311,2023),('2023-11-04',202344,11,2023,4,44,202311,2023),('2023-11-05',202345,11,2023,5,45,202311,2023),('2023-11-06',202345,11,2023,6,45,202311,2023),('2023-11-07',202345,11,2023,7,45,202311,2023),('2023-11-08',202345,11,2023,8,45,202311,2023),('2023-11-09',202345,11,2023,9,45,202311,2023),('2023-11-10',202345,11,2023,10,45,202311,2023),('2023-11-11',202345,11,2023,11,45,202311,2023),('2023-11-12',202346,11,2023,12,46,202311,2023),('2023-11-13',202346,11,2023,13,46,202311,2023),('2023-11-14',202346,11,2023,14,46,202311,2023),('2023-11-15',202346,11,2023,15,46,202311,2023),('2023-11-16',202346,11,2023,16,46,202311,2023),('2023-11-17',202346,11,2023,17,46,202311,2023),('2023-11-18',202346,11,2023,18,46,202311,2023),('2023-11-19',202347,11,2023,19,47,202311,2023),('2023-11-20',202347,11,2023,20,47,202311,2023),('2023-11-21',202347,11,2023,21,47,202311,2023),('2023-11-22',202347,11,2023,22,47,202311,2023),('2023-11-23',202347,11,2023,23,47,202311,2023),('2023-11-24',202347,11,2023,24,47,202311,2023),('2023-11-25',202347,11,2023,25,47,202311,2023),('2023-11-26',202348,11,2023,26,48,202311,2023),('2023-11-27',202348,11,2023,27,48,202311,2023),('2023-11-28',202348,11,2023,28,48,202311,2023),('2023-11-29',202348,11,2023,29,48,202311,2023),('2023-11-30',202348,11,2023,30,48,202311,2023),('2023-12-01',202348,12,2023,1,48,202312,2024),('2023-12-02',202348,12,2023,2,48,202312,2024),('2023-12-03',202349,12,2023,3,49,202312,2024),('2023-12-04',202349,12,2023,4,49,202312,2024),('2023-12-05',202349,12,2023,5,49,202312,2024),('2023-12-06',202349,12,2023,6,49,202312,2024),('2023-12-07',202349,12,2023,7,49,202312,2024),('2023-12-08',202349,12,2023,8,49,202312,2024),('2023-12-09',202349,12,2023,9,49,202312,2024),('2023-12-10',202350,12,2023,10,50,202312,2024),('2023-12-11',202350,12,2023,11,50,202312,2024),('2023-12-12',202350,12,2023,12,50,202312,2024),('2023-12-13',202350,12,2023,13,50,202312,2024),('2023-12-14',202350,12,2023,14,50,202312,2024),('2023-12-15',202350,12,2023,15,50,202312,2024),('2023-12-16',202350,12,2023,16,50,202312,2024),('2023-12-17',202351,12,2023,17,51,202312,2024),('2023-12-18',202351,12,2023,18,51,202312,2024),('2023-12-19',202351,12,2023,19,51,202312,2024),('2023-12-20',202351,12,2023,20,51,202312,2024),('2023-12-21',202351,12,2023,21,51,202312,2024),('2023-12-22',202351,12,2023,22,51,202312,2024),('2023-12-23',202351,12,2023,23,51,202312,2024),('2023-12-24',202352,12,2023,24,52,202312,2024),('2023-12-25',202352,12,2023,25,52,202312,2024),('2023-12-26',202352,12,2023,26,52,202312,2024),('2023-12-27',202352,12,2023,27,52,202312,2024),('2023-12-28',202352,12,2023,28,52,202312,2024),('2023-12-29',202352,12,2023,29,52,202312,2024),('2023-12-30',202352,12,2023,30,52,202312,2024),('2023-12-31',202353,12,2023,31,1,202312,2024),('2024-01-01',202401,1,2024,1,1,202401,2024),('2024-01-02',202401,1,2024,2,1,202401,2024),('2024-01-03',202401,1,2024,3,1,202401,2024),('2024-01-04',202401,1,2024,4,1,202401,2024),('2024-01-05',202401,1,2024,5,1,202401,2024),('2024-01-06',202401,1,2024,6,1,202401,2024),('2024-01-07',202402,1,2024,7,2,202401,2024),('2024-01-08',202402,1,2024,8,2,202401,2024),('2024-01-09',202402,1,2024,9,2,202401,2024),('2024-01-10',202402,1,2024,10,2,202401,2024),('2024-01-11',202402,1,2024,11,2,202401,2024),('2024-01-12',202402,1,2024,12,2,202401,2024),('2024-01-13',202402,1,2024,13,2,202401,2024),('2024-01-14',202403,1,2024,14,3,202401,2024),('2024-01-15',202403,1,2024,15,3,202401,2024),('2024-01-16',202403,1,2024,16,3,202401,2024),('2024-01-17',202403,1,2024,17,3,202401,2024),('2024-01-18',202403,1,2024,18,3,202401,2024),('2024-01-19',202403,1,2024,19,3,202401,2024),('2024-01-20',202403,1,2024,20,3,202401,2024),('2024-01-21',202404,1,2024,21,4,202401,2024),('2024-01-22',202404,1,2024,22,4,202401,2024),('2024-01-23',202404,1,2024,23,4,202401,2024),('2024-01-24',202404,1,2024,24,4,202401,2024),('2024-01-25',202404,1,2024,25,4,202401,2024),('2024-01-26',202404,1,2024,26,4,202401,2024),('2024-01-27',202404,1,2024,27,4,202401,2024),('2024-01-28',202405,1,2024,28,5,202401,2024),('2024-01-29',202405,1,2024,29,5,202401,2024),('2024-01-30',202405,1,2024,30,5,202401,2024),('2024-01-31',202405,1,2024,31,5,202401,2024),('2024-02-01',202405,2,2024,1,5,202402,2024),('2024-02-02',202405,2,2024,2,5,202402,2024),('2024-02-03',202405,2,2024,3,5,202402,2024),('2024-02-04',202406,2,2024,4,6,202402,2024),('2024-02-05',202406,2,2024,5,6,202402,2024),('2024-02-06',202406,2,2024,6,6,202402,2024),('2024-02-07',202406,2,2024,7,6,202402,2024),('2024-02-08',202406,2,2024,8,6,202402,2024),('2024-02-09',202406,2,2024,9,6,202402,2024),('2024-02-10',202406,2,2024,10,6,202402,2024),('2024-02-11',202407,2,2024,11,7,202402,2024),('2024-02-12',202407,2,2024,12,7,202402,2024),('2024-02-13',202407,2,2024,13,7,202402,2024),('2024-02-14',202407,2,2024,14,7,202402,2024),('2024-02-15',202407,2,2024,15,7,202402,2024),('2024-02-16',202407,2,2024,16,7,202402,2024),('2024-02-17',202407,2,2024,17,7,202402,2024),('2024-02-18',202408,2,2024,18,8,202402,2024),('2024-02-19',202408,2,2024,19,8,202402,2024),('2024-02-20',202408,2,2024,20,8,202402,2024),('2024-02-21',202408,2,2024,21,8,202402,2024),('2024-02-22',202408,2,2024,22,8,202402,2024),('2024-02-23',202408,2,2024,23,8,202402,2024),('2024-02-24',202408,2,2024,24,8,202402,2024),('2024-02-25',202409,2,2024,25,9,202402,2024),('2024-02-26',202409,2,2024,26,9,202402,2024),('2024-02-27',202409,2,2024,27,9,202402,2024),('2024-02-28',202409,2,2024,28,9,202402,2024),('2024-02-29',202409,2,2024,29,9,202402,2024),('2024-03-01',202409,3,2024,1,9,202403,2024),('2024-03-02',202409,3,2024,2,9,202403,2024),('2024-03-03',202410,3,2024,3,10,202403,2024),('2024-03-04',202410,3,2024,4,10,202403,2024),('2024-03-05',202410,3,2024,5,10,202403,2024),('2024-03-06',202410,3,2024,6,10,202403,2024),('2024-03-07',202410,3,2024,7,10,202403,2024),('2024-03-08',202410,3,2024,8,10,202403,2024),('2024-03-09',202410,3,2024,9,10,202403,2024),('2024-03-10',202411,3,2024,10,11,202403,2024),('2024-03-11',202411,3,2024,11,11,202403,2024),('2024-03-12',202411,3,2024,12,11,202403,2024),('2024-03-13',202411,3,2024,13,11,202403,2024),('2024-03-14',202411,3,2024,14,11,202403,2024),('2024-03-15',202411,3,2024,15,11,202403,2024),('2024-03-16',202411,3,2024,16,11,202403,2024),('2024-03-17',202412,3,2024,17,12,202403,2024),('2024-03-18',202412,3,2024,18,12,202403,2024),('2024-03-19',202412,3,2024,19,12,202403,2024),('2024-03-20',202412,3,2024,20,12,202403,2024),('2024-03-21',202412,3,2024,21,12,202403,2024),('2024-03-22',202412,3,2024,22,12,202403,2024),('2024-03-23',202412,3,2024,23,12,202403,2024),('2024-03-24',202413,3,2024,24,13,202403,2024),('2024-03-25',202413,3,2024,25,13,202403,2024),('2024-03-26',202413,3,2024,26,13,202403,2024),('2024-03-27',202413,3,2024,27,13,202403,2024),('2024-03-28',202413,3,2024,28,13,202403,2024),('2024-03-29',202413,3,2024,29,13,202403,2024),('2024-03-30',202413,3,2024,30,13,202403,2024),('2024-03-31',202414,3,2024,31,14,202403,2024),('2024-04-01',202414,4,2024,1,14,202404,2024),('2024-04-02',202414,4,2024,2,14,202404,2024),('2024-04-03',202414,4,2024,3,14,202404,2024),('2024-04-04',202414,4,2024,4,14,202404,2024),('2024-04-05',202414,4,2024,5,14,202404,2024),('2024-04-06',202414,4,2024,6,14,202404,2024),('2024-04-07',202415,4,2024,7,15,202404,2024),('2024-04-08',202415,4,2024,8,15,202404,2024),('2024-04-09',202415,4,2024,9,15,202404,2024),('2024-04-10',202415,4,2024,10,15,202404,2024),('2024-04-11',202415,4,2024,11,15,202404,2024),('2024-04-12',202415,4,2024,12,15,202404,2024),('2024-04-13',202415,4,2024,13,15,202404,2024),('2024-04-14',202416,4,2024,14,16,202404,2024),('2024-04-15',202416,4,2024,15,16,202404,2024),('2024-04-16',202416,4,2024,16,16,202404,2024),('2024-04-17',202416,4,2024,17,16,202404,2024),('2024-04-18',202416,4,2024,18,16,202404,2024),('2024-04-19',202416,4,2024,19,16,202404,2024),('2024-04-20',202416,4,2024,20,16,202404,2024),('2024-04-21',202417,4,2024,21,17,202404,2024),('2024-04-22',202417,4,2024,22,17,202404,2024),('2024-04-23',202417,4,2024,23,17,202404,2024),('2024-04-24',202417,4,2024,24,17,202404,2024),('2024-04-25',202417,4,2024,25,17,202404,2024),('2024-04-26',202417,4,2024,26,17,202404,2024),('2024-04-27',202417,4,2024,27,17,202404,2024),('2024-04-28',202418,4,2024,28,18,202404,2024),('2024-04-29',202418,4,2024,29,18,202404,2024),('2024-04-30',202418,4,2024,30,18,202404,2024),('2024-05-01',202418,5,2024,1,18,202405,2024),('2024-05-02',202418,5,2024,2,18,202405,2024),('2024-05-03',202418,5,2024,3,18,202405,2024),('2024-05-04',202418,5,2024,4,18,202405,2024),('2024-05-05',202419,5,2024,5,19,202405,2024),('2024-05-06',202419,5,2024,6,19,202405,2024),('2024-05-07',202419,5,2024,7,19,202405,2024),('2024-05-08',202419,5,2024,8,19,202405,2024),('2024-05-09',202419,5,2024,9,19,202405,2024),('2024-05-10',202419,5,2024,10,19,202405,2024),('2024-05-11',202419,5,2024,11,19,202405,2024),('2024-05-12',202420,5,2024,12,20,202405,2024),('2024-05-13',202420,5,2024,13,20,202405,2024),('2024-05-14',202420,5,2024,14,20,202405,2024),('2024-05-15',202420,5,2024,15,20,202405,2024),('2024-05-16',202420,5,2024,16,20,202405,2024),('2024-05-17',202420,5,2024,17,20,202405,2024),('2024-05-18',202420,5,2024,18,20,202405,2024),('2024-05-19',202421,5,2024,19,21,202405,2024),('2024-05-20',202421,5,2024,20,21,202405,2024),('2024-05-21',202421,5,2024,21,21,202405,2024),('2024-05-22',202421,5,2024,22,21,202405,2024),('2024-05-23',202421,5,2024,23,21,202405,2024),('2024-05-24',202421,5,2024,24,21,202405,2024),('2024-05-25',202421,5,2024,25,21,202405,2024),('2024-05-26',202422,5,2024,26,22,202405,2024),('2024-05-27',202422,5,2024,27,22,202405,2024),('2024-05-28',202422,5,2024,28,22,202405,2024),('2024-05-29',202422,5,2024,29,22,202405,2024),('2024-05-30',202422,5,2024,30,22,202405,2024),('2024-05-31',202422,5,2024,31,22,202405,2024),('2024-06-01',202422,6,2024,1,22,202406,2024),('2024-06-02',202423,6,2024,2,23,202406,2024),('2024-06-03',202423,6,2024,3,23,202406,2024),('2024-06-04',202423,6,2024,4,23,202406,2024),('2024-06-05',202423,6,2024,5,23,202406,2024),('2024-06-06',202423,6,2024,6,23,202406,2024),('2024-06-07',202423,6,2024,7,23,202406,2024),('2024-06-08',202423,6,2024,8,23,202406,2024),('2024-06-09',202424,6,2024,9,24,202406,2024),('2024-06-10',202424,6,2024,10,24,202406,2024),('2024-06-11',202424,6,2024,11,24,202406,2024),('2024-06-12',202424,6,2024,12,24,202406,2024),('2024-06-13',202424,6,2024,13,24,202406,2024),('2024-06-14',202424,6,2024,14,24,202406,2024),('2024-06-15',202424,6,2024,15,24,202406,2024),('2024-06-16',202425,6,2024,16,25,202406,2024),('2024-06-17',202425,6,2024,17,25,202406,2024),('2024-06-18',202425,6,2024,18,25,202406,2024),('2024-06-19',202425,6,2024,19,25,202406,2024),('2024-06-20',202425,6,2024,20,25,202406,2024),('2024-06-21',202425,6,2024,21,25,202406,2024),('2024-06-22',202425,6,2024,22,25,202406,2024),('2024-06-23',202426,6,2024,23,26,202406,2024),('2024-06-24',202426,6,2024,24,26,202406,2024),('2024-06-25',202426,6,2024,25,26,202406,2024),('2024-06-26',202426,6,2024,26,26,202406,2024),('2024-06-27',202426,6,2024,27,26,202406,2024),('2024-06-28',202426,6,2024,28,26,202406,2024),('2024-06-29',202426,6,2024,29,26,202406,2024),('2024-06-30',202427,6,2024,30,27,202406,2024),('2024-07-01',202427,7,2024,1,27,202407,2024),('2024-07-02',202427,7,2024,2,27,202407,2024),('2024-07-03',202427,7,2024,3,27,202407,2024),('2024-07-04',202427,7,2024,4,27,202407,2024),('2024-07-05',202427,7,2024,5,27,202407,2024),('2024-07-06',202427,7,2024,6,27,202407,2024),('2024-07-07',202428,7,2024,7,28,202407,2024),('2024-07-08',202428,7,2024,8,28,202407,2024),('2024-07-09',202428,7,2024,9,28,202407,2024),('2024-07-10',202428,7,2024,10,28,202407,2024),('2024-07-11',202428,7,2024,11,28,202407,2024),('2024-07-12',202428,7,2024,12,28,202407,2024),('2024-07-13',202428,7,2024,13,28,202407,2024),('2024-07-14',202429,7,2024,14,29,202407,2024),('2024-07-15',202429,7,2024,15,29,202407,2024),('2024-07-16',202429,7,2024,16,29,202407,2024),('2024-07-17',202429,7,2024,17,29,202407,2024),('2024-07-18',202429,7,2024,18,29,202407,2024),('2024-07-19',202429,7,2024,19,29,202407,2024),('2024-07-20',202429,7,2024,20,29,202407,2024),('2024-07-21',202430,7,2024,21,30,202407,2024),('2024-07-22',202430,7,2024,22,30,202407,2024),('2024-07-23',202430,7,2024,23,30,202407,2024),('2024-07-24',202430,7,2024,24,30,202407,2024),('2024-07-25',202430,7,2024,25,30,202407,2024),('2024-07-26',202430,7,2024,26,30,202407,2024),('2024-07-27',202430,7,2024,27,30,202407,2024),('2024-07-28',202431,7,2024,28,31,202407,2024),('2024-07-29',202431,7,2024,29,31,202407,2024),('2024-07-30',202431,7,2024,30,31,202407,2024),('2024-07-31',202431,7,2024,31,31,202407,2024),('2024-08-01',202431,8,2024,1,31,202408,2024),('2024-08-02',202431,8,2024,2,31,202408,2024),('2024-08-03',202431,8,2024,3,31,202408,2024),('2024-08-04',202432,8,2024,4,32,202408,2024),('2024-08-05',202432,8,2024,5,32,202408,2024),('2024-08-06',202432,8,2024,6,32,202408,2024),('2024-08-07',202432,8,2024,7,32,202408,2024),('2024-08-08',202432,8,2024,8,32,202408,2024),('2024-08-09',202432,8,2024,9,32,202408,2024),('2024-08-10',202432,8,2024,10,32,202408,2024),('2024-08-11',202433,8,2024,11,33,202408,2024),('2024-08-12',202433,8,2024,12,33,202408,2024),('2024-08-13',202433,8,2024,13,33,202408,2024),('2024-08-14',202433,8,2024,14,33,202408,2024),('2024-08-15',202433,8,2024,15,33,202408,2024),('2024-08-16',202433,8,2024,16,33,202408,2024),('2024-08-17',202433,8,2024,17,33,202408,2024),('2024-08-18',202434,8,2024,18,34,202408,2024),('2024-08-19',202434,8,2024,19,34,202408,2024),('2024-08-20',202434,8,2024,20,34,202408,2024),('2024-08-21',202434,8,2024,21,34,202408,2024),('2024-08-22',202434,8,2024,22,34,202408,2024),('2024-08-23',202434,8,2024,23,34,202408,2024),('2024-08-24',202434,8,2024,24,34,202408,2024),('2024-08-25',202435,8,2024,25,35,202408,2024),('2024-08-26',202435,8,2024,26,35,202408,2024),('2024-08-27',202435,8,2024,27,35,202408,2024),('2024-08-28',202435,8,2024,28,35,202408,2024),('2024-08-29',202435,8,2024,29,35,202408,2024),('2024-08-30',202435,8,2024,30,35,202408,2024),('2024-08-31',202435,8,2024,31,35,202408,2024),('2024-09-01',202436,9,2024,1,36,202409,2024),('2024-09-02',202436,9,2024,2,36,202409,2024),('2024-09-03',202436,9,2024,3,36,202409,2024),('2024-09-04',202436,9,2024,4,36,202409,2024),('2024-09-05',202436,9,2024,5,36,202409,2024),('2024-09-06',202436,9,2024,6,36,202409,2024),('2024-09-07',202436,9,2024,7,36,202409,2024),('2024-09-08',202437,9,2024,8,37,202409,2024),('2024-09-09',202437,9,2024,9,37,202409,2024),('2024-09-10',202437,9,2024,10,37,202409,2024),('2024-09-11',202437,9,2024,11,37,202409,2024),('2024-09-12',202437,9,2024,12,37,202409,2024),('2024-09-13',202437,9,2024,13,37,202409,2024),('2024-09-14',202437,9,2024,14,37,202409,2024),('2024-09-15',202438,9,2024,15,38,202409,2024),('2024-09-16',202438,9,2024,16,38,202409,2024),('2024-09-17',202438,9,2024,17,38,202409,2024),('2024-09-18',202438,9,2024,18,38,202409,2024),('2024-09-19',202438,9,2024,19,38,202409,2024),('2024-09-20',202438,9,2024,20,38,202409,2024),('2024-09-21',202438,9,2024,21,38,202409,2024),('2024-09-22',202439,9,2024,22,39,202409,2024),('2024-09-23',202439,9,2024,23,39,202409,2024),('2024-09-24',202439,9,2024,24,39,202409,2024),('2024-09-25',202439,9,2024,25,39,202409,2024),('2024-09-26',202439,9,2024,26,39,202409,2024),('2024-09-27',202439,9,2024,27,39,202409,2024),('2024-09-28',202439,9,2024,28,39,202409,2024),('2024-09-29',202440,9,2024,29,40,202409,2024),('2024-09-30',202440,9,2024,30,40,202409,2024),('2024-10-01',202440,10,2024,1,40,202410,2024),('2024-10-02',202440,10,2024,2,40,202410,2024),('2024-10-03',202440,10,2024,3,40,202410,2024),('2024-10-04',202440,10,2024,4,40,202410,2024),('2024-10-05',202440,10,2024,5,40,202410,2024),('2024-10-06',202441,10,2024,6,41,202410,2024),('2024-10-07',202441,10,2024,7,41,202410,2024),('2024-10-08',202441,10,2024,8,41,202410,2024),('2024-10-09',202441,10,2024,9,41,202410,2024),('2024-10-10',202441,10,2024,10,41,202410,2024),('2024-10-11',202441,10,2024,11,41,202410,2024),('2024-10-12',202441,10,2024,12,41,202410,2024),('2024-10-13',202442,10,2024,13,42,202410,2024),('2024-10-14',202442,10,2024,14,42,202410,2024),('2024-10-15',202442,10,2024,15,42,202410,2024),('2024-10-16',202442,10,2024,16,42,202410,2024),('2024-10-17',202442,10,2024,17,42,202410,2024),('2024-10-18',202442,10,2024,18,42,202410,2024),('2024-10-19',202442,10,2024,19,42,202410,2024),('2024-10-20',202443,10,2024,20,43,202410,2024),('2024-10-21',202443,10,2024,21,43,202410,2024),('2024-10-22',202443,10,2024,22,43,202410,2024),('2024-10-23',202443,10,2024,23,43,202410,2024),('2024-10-24',202443,10,2024,24,43,202410,2024),('2024-10-25',202443,10,2024,25,43,202410,2024),('2024-10-26',202443,10,2024,26,43,202410,2024),('2024-10-27',202444,10,2024,27,44,202410,2024),('2024-10-28',202444,10,2024,28,44,202410,2024),('2024-10-29',202444,10,2024,29,44,202410,2024),('2024-10-30',202444,10,2024,30,44,202410,2024),('2024-10-31',202444,10,2024,31,44,202410,2024),('2024-11-01',202444,11,2024,1,44,202411,2024),('2024-11-02',202444,11,2024,2,44,202411,2024),('2024-11-03',202445,11,2024,3,45,202411,2024),('2024-11-04',202445,11,2024,4,45,202411,2024),('2024-11-05',202445,11,2024,5,45,202411,2024),('2024-11-06',202445,11,2024,6,45,202411,2024),('2024-11-07',202445,11,2024,7,45,202411,2024),('2024-11-08',202445,11,2024,8,45,202411,2024),('2024-11-09',202445,11,2024,9,45,202411,2024),('2024-11-10',202446,11,2024,10,46,202411,2024),('2024-11-11',202446,11,2024,11,46,202411,2024),('2024-11-12',202446,11,2024,12,46,202411,2024),('2024-11-13',202446,11,2024,13,46,202411,2024),('2024-11-14',202446,11,2024,14,46,202411,2024),('2024-11-15',202446,11,2024,15,46,202411,2024),('2024-11-16',202446,11,2024,16,46,202411,2024),('2024-11-17',202447,11,2024,17,47,202411,2024),('2024-11-18',202447,11,2024,18,47,202411,2024),('2024-11-19',202447,11,2024,19,47,202411,2024),('2024-11-20',202447,11,2024,20,47,202411,2024),('2024-11-21',202447,11,2024,21,47,202411,2024),('2024-11-22',202447,11,2024,22,47,202411,2024),('2024-11-23',202447,11,2024,23,47,202411,2024),('2024-11-24',202448,11,2024,24,48,202411,2024),('2024-11-25',202448,11,2024,25,48,202411,2024),('2024-11-26',202448,11,2024,26,48,202411,2024),('2024-11-27',202448,11,2024,27,48,202411,2024),('2024-11-28',202448,11,2024,28,48,202411,2024),('2024-11-29',202448,11,2024,29,48,202411,2024),('2024-11-30',202448,11,2024,30,48,202411,2024),('2024-12-01',202449,12,2024,1,49,202412,2025),('2024-12-02',202449,12,2024,2,49,202412,2025),('2024-12-03',202449,12,2024,3,49,202412,2025),('2024-12-04',202449,12,2024,4,49,202412,2025),('2024-12-05',202449,12,2024,5,49,202412,2025),('2024-12-06',202449,12,2024,6,49,202412,2025),('2024-12-07',202449,12,2024,7,49,202412,2025),('2024-12-08',202450,12,2024,8,50,202412,2025),('2024-12-09',202450,12,2024,9,50,202412,2025),('2024-12-10',202450,12,2024,10,50,202412,2025),('2024-12-11',202450,12,2024,11,50,202412,2025),('2024-12-12',202450,12,2024,12,50,202412,2025),('2024-12-13',202450,12,2024,13,50,202412,2025),('2024-12-14',202450,12,2024,14,50,202412,2025),('2024-12-15',202451,12,2024,15,51,202412,2025),('2024-12-16',202451,12,2024,16,51,202412,2025),('2024-12-17',202451,12,2024,17,51,202412,2025),('2024-12-18',202451,12,2024,18,51,202412,2025),('2024-12-19',202451,12,2024,19,51,202412,2025),('2024-12-20',202451,12,2024,20,51,202412,2025),('2024-12-21',202451,12,2024,21,51,202412,2025),('2024-12-22',202452,12,2024,22,52,202412,2025),('2024-12-23',202452,12,2024,23,52,202412,2025),('2024-12-24',202452,12,2024,24,52,202412,2025),('2024-12-25',202452,12,2024,25,52,202412,2025),('2024-12-26',202452,12,2024,26,52,202412,2025),('2024-12-27',202452,12,2024,27,52,202412,2025),('2024-12-28',202452,12,2024,28,52,202412,2025),('2024-12-29',202453,12,2024,29,1,202412,2025),('2024-12-30',202401,12,2024,30,1,202412,2025),('2024-12-31',202401,12,2024,31,1,202412,2025),('2025-01-01',202501,1,2025,1,1,202501,2025),('2025-01-02',202501,1,2025,2,1,202501,2025),('2025-01-03',202501,1,2025,3,1,202501,2025),('2025-01-04',202501,1,2025,4,1,202501,2025),('2025-01-05',202502,1,2025,5,2,202501,2025),('2025-01-06',202502,1,2025,6,2,202501,2025),('2025-01-07',202502,1,2025,7,2,202501,2025),('2025-01-08',202502,1,2025,8,2,202501,2025),('2025-01-09',202502,1,2025,9,2,202501,2025),('2025-01-10',202502,1,2025,10,2,202501,2025),('2025-01-11',202502,1,2025,11,2,202501,2025),('2025-01-12',202503,1,2025,12,3,202501,2025),('2025-01-13',202503,1,2025,13,3,202501,2025),('2025-01-14',202503,1,2025,14,3,202501,2025),('2025-01-15',202503,1,2025,15,3,202501,2025),('2025-01-16',202503,1,2025,16,3,202501,2025),('2025-01-17',202503,1,2025,17,3,202501,2025),('2025-01-18',202503,1,2025,18,3,202501,2025),('2025-01-19',202504,1,2025,19,4,202501,2025),('2025-01-20',202504,1,2025,20,4,202501,2025),('2025-01-21',202504,1,2025,21,4,202501,2025),('2025-01-22',202504,1,2025,22,4,202501,2025),('2025-01-23',202504,1,2025,23,4,202501,2025),('2025-01-24',202504,1,2025,24,4,202501,2025),('2025-01-25',202504,1,2025,25,4,202501,2025),('2025-01-26',202505,1,2025,26,5,202501,2025),('2025-01-27',202505,1,2025,27,5,202501,2025),('2025-01-28',202505,1,2025,28,5,202501,2025),('2025-01-29',202505,1,2025,29,5,202501,2025),('2025-01-30',202505,1,2025,30,5,202501,2025),('2025-01-31',202505,1,2025,31,5,202501,2025),('2025-02-01',202505,2,2025,1,5,202502,2025),('2025-02-02',202506,2,2025,2,6,202502,2025),('2025-02-03',202506,2,2025,3,6,202502,2025),('2025-02-04',202506,2,2025,4,6,202502,2025),('2025-02-05',202506,2,2025,5,6,202502,2025),('2025-02-06',202506,2,2025,6,6,202502,2025),('2025-02-07',202506,2,2025,7,6,202502,2025),('2025-02-08',202506,2,2025,8,6,202502,2025),('2025-02-09',202507,2,2025,9,7,202502,2025),('2025-02-10',202507,2,2025,10,7,202502,2025),('2025-02-11',202507,2,2025,11,7,202502,2025),('2025-02-12',202507,2,2025,12,7,202502,2025),('2025-02-13',202507,2,2025,13,7,202502,2025),('2025-02-14',202507,2,2025,14,7,202502,2025),('2025-02-15',202507,2,2025,15,7,202502,2025),('2025-02-16',202508,2,2025,16,8,202502,2025),('2025-02-17',202508,2,2025,17,8,202502,2025),('2025-02-18',202508,2,2025,18,8,202502,2025),('2025-02-19',202508,2,2025,19,8,202502,2025),('2025-02-20',202508,2,2025,20,8,202502,2025),('2025-02-21',202508,2,2025,21,8,202502,2025),('2025-02-22',202508,2,2025,22,8,202502,2025),('2025-02-23',202509,2,2025,23,9,202502,2025),('2025-02-24',202509,2,2025,24,9,202502,2025),('2025-02-25',202509,2,2025,25,9,202502,2025),('2025-02-26',202509,2,2025,26,9,202502,2025),('2025-02-27',202509,2,2025,27,9,202502,2025),('2025-02-28',202509,2,2025,28,9,202502,2025),('2025-03-01',202509,3,2025,1,9,202503,2025),('2025-03-02',202510,3,2025,2,10,202503,2025),('2025-03-03',202510,3,2025,3,10,202503,2025),('2025-03-04',202510,3,2025,4,10,202503,2025),('2025-03-05',202510,3,2025,5,10,202503,2025),('2025-03-06',202510,3,2025,6,10,202503,2025),('2025-03-07',202510,3,2025,7,10,202503,2025),('2025-03-08',202510,3,2025,8,10,202503,2025),('2025-03-09',202511,3,2025,9,11,202503,2025),('2025-03-10',202511,3,2025,10,11,202503,2025),('2025-03-11',202511,3,2025,11,11,202503,2025),('2025-03-12',202511,3,2025,12,11,202503,2025),('2025-03-13',202511,3,2025,13,11,202503,2025),('2025-03-14',202511,3,2025,14,11,202503,2025),('2025-03-15',202511,3,2025,15,11,202503,2025),('2025-03-16',202512,3,2025,16,12,202503,2025),('2025-03-17',202512,3,2025,17,12,202503,2025),('2025-03-18',202512,3,2025,18,12,202503,2025),('2025-03-19',202512,3,2025,19,12,202503,2025),('2025-03-20',202512,3,2025,20,12,202503,2025),('2025-03-21',202512,3,2025,21,12,202503,2025),('2025-03-22',202512,3,2025,22,12,202503,2025),('2025-03-23',202513,3,2025,23,13,202503,2025),('2025-03-24',202513,3,2025,24,13,202503,2025),('2025-03-25',202513,3,2025,25,13,202503,2025),('2025-03-26',202513,3,2025,26,13,202503,2025),('2025-03-27',202513,3,2025,27,13,202503,2025),('2025-03-28',202513,3,2025,28,13,202503,2025),('2025-03-29',202513,3,2025,29,13,202503,2025),('2025-03-30',202514,3,2025,30,14,202503,2025),('2025-03-31',202514,3,2025,31,14,202503,2025),('2025-04-01',202514,4,2025,1,14,202504,2025),('2025-04-02',202514,4,2025,2,14,202504,2025),('2025-04-03',202514,4,2025,3,14,202504,2025),('2025-04-04',202514,4,2025,4,14,202504,2025),('2025-04-05',202514,4,2025,5,14,202504,2025),('2025-04-06',202515,4,2025,6,15,202504,2025),('2025-04-07',202515,4,2025,7,15,202504,2025),('2025-04-08',202515,4,2025,8,15,202504,2025),('2025-04-09',202515,4,2025,9,15,202504,2025),('2025-04-10',202515,4,2025,10,15,202504,2025),('2025-04-11',202515,4,2025,11,15,202504,2025),('2025-04-12',202515,4,2025,12,15,202504,2025),('2025-04-13',202516,4,2025,13,16,202504,2025),('2025-04-14',202516,4,2025,14,16,202504,2025),('2025-04-15',202516,4,2025,15,16,202504,2025),('2025-04-16',202516,4,2025,16,16,202504,2025),('2025-04-17',202516,4,2025,17,16,202504,2025),('2025-04-18',202516,4,2025,18,16,202504,2025),('2025-04-19',202516,4,2025,19,16,202504,2025),('2025-04-20',202517,4,2025,20,17,202504,2025),('2025-04-21',202517,4,2025,21,17,202504,2025),('2025-04-22',202517,4,2025,22,17,202504,2025),('2025-04-23',202517,4,2025,23,17,202504,2025),('2025-04-24',202517,4,2025,24,17,202504,2025),('2025-04-25',202517,4,2025,25,17,202504,2025),('2025-04-26',202517,4,2025,26,17,202504,2025),('2025-04-27',202518,4,2025,27,18,202504,2025),('2025-04-28',202518,4,2025,28,18,202504,2025),('2025-04-29',202518,4,2025,29,18,202504,2025),('2025-04-30',202518,4,2025,30,18,202504,2025),('2025-05-01',202518,5,2025,1,18,202505,2025),('2025-05-02',202518,5,2025,2,18,202505,2025),('2025-05-03',202518,5,2025,3,18,202505,2025),('2025-05-04',202519,5,2025,4,19,202505,2025),('2025-05-05',202519,5,2025,5,19,202505,2025),('2025-05-06',202519,5,2025,6,19,202505,2025),('2025-05-07',202519,5,2025,7,19,202505,2025),('2025-05-08',202519,5,2025,8,19,202505,2025),('2025-05-09',202519,5,2025,9,19,202505,2025),('2025-05-10',202519,5,2025,10,19,202505,2025),('2025-05-11',202520,5,2025,11,20,202505,2025),('2025-05-12',202520,5,2025,12,20,202505,2025),('2025-05-13',202520,5,2025,13,20,202505,2025),('2025-05-14',202520,5,2025,14,20,202505,2025),('2025-05-15',202520,5,2025,15,20,202505,2025),('2025-05-16',202520,5,2025,16,20,202505,2025),('2025-05-17',202520,5,2025,17,20,202505,2025),('2025-05-18',202521,5,2025,18,21,202505,2025),('2025-05-19',202521,5,2025,19,21,202505,2025),('2025-05-20',202521,5,2025,20,21,202505,2025),('2025-05-21',202521,5,2025,21,21,202505,2025),('2025-05-22',202521,5,2025,22,21,202505,2025),('2025-05-23',202521,5,2025,23,21,202505,2025),('2025-05-24',202521,5,2025,24,21,202505,2025),('2025-05-25',202522,5,2025,25,22,202505,2025),('2025-05-26',202522,5,2025,26,22,202505,2025),('2025-05-27',202522,5,2025,27,22,202505,2025),('2025-05-28',202522,5,2025,28,22,202505,2025),('2025-05-29',202522,5,2025,29,22,202505,2025),('2025-05-30',202522,5,2025,30,22,202505,2025),('2025-05-31',202522,5,2025,31,22,202505,2025),('2025-06-01',202523,6,2025,1,23,202506,2025),('2025-06-02',202523,6,2025,2,23,202506,2025),('2025-06-03',202523,6,2025,3,23,202506,2025),('2025-06-04',202523,6,2025,4,23,202506,2025),('2025-06-05',202523,6,2025,5,23,202506,2025),('2025-06-06',202523,6,2025,6,23,202506,2025),('2025-06-07',202523,6,2025,7,23,202506,2025),('2025-06-08',202524,6,2025,8,24,202506,2025),('2025-06-09',202524,6,2025,9,24,202506,2025),('2025-06-10',202524,6,2025,10,24,202506,2025),('2025-06-11',202524,6,2025,11,24,202506,2025),('2025-06-12',202524,6,2025,12,24,202506,2025),('2025-06-13',202524,6,2025,13,24,202506,2025),('2025-06-14',202524,6,2025,14,24,202506,2025),('2025-06-15',202525,6,2025,15,25,202506,2025),('2025-06-16',202525,6,2025,16,25,202506,2025),('2025-06-17',202525,6,2025,17,25,202506,2025),('2025-06-18',202525,6,2025,18,25,202506,2025),('2025-06-19',202525,6,2025,19,25,202506,2025),('2025-06-20',202525,6,2025,20,25,202506,2025),('2025-06-21',202525,6,2025,21,25,202506,2025),('2025-06-22',202526,6,2025,22,26,202506,2025),('2025-06-23',202526,6,2025,23,26,202506,2025),('2025-06-24',202526,6,2025,24,26,202506,2025),('2025-06-25',202526,6,2025,25,26,202506,2025),('2025-06-26',202526,6,2025,26,26,202506,2025),('2025-06-27',202526,6,2025,27,26,202506,2025),('2025-06-28',202526,6,2025,28,26,202506,2025),('2025-06-29',202527,6,2025,29,27,202506,2025),('2025-06-30',202527,6,2025,30,27,202506,2025),('2025-07-01',202527,7,2025,1,27,202507,2025),('2025-07-02',202527,7,2025,2,27,202507,2025),('2025-07-03',202527,7,2025,3,27,202507,2025),('2025-07-04',202527,7,2025,4,27,202507,2025),('2025-07-05',202527,7,2025,5,27,202507,2025),('2025-07-06',202528,7,2025,6,28,202507,2025),('2025-07-07',202528,7,2025,7,28,202507,2025),('2025-07-08',202528,7,2025,8,28,202507,2025),('2025-07-09',202528,7,2025,9,28,202507,2025),('2025-07-10',202528,7,2025,10,28,202507,2025),('2025-07-11',202528,7,2025,11,28,202507,2025),('2025-07-12',202528,7,2025,12,28,202507,2025),('2025-07-13',202529,7,2025,13,29,202507,2025),('2025-07-14',202529,7,2025,14,29,202507,2025),('2025-07-15',202529,7,2025,15,29,202507,2025),('2025-07-16',202529,7,2025,16,29,202507,2025),('2025-07-17',202529,7,2025,17,29,202507,2025),('2025-07-18',202529,7,2025,18,29,202507,2025),('2025-07-19',202529,7,2025,19,29,202507,2025),('2025-07-20',202530,7,2025,20,30,202507,2025),('2025-07-21',202530,7,2025,21,30,202507,2025),('2025-07-22',202530,7,2025,22,30,202507,2025),('2025-07-23',202530,7,2025,23,30,202507,2025),('2025-07-24',202530,7,2025,24,30,202507,2025),('2025-07-25',202530,7,2025,25,30,202507,2025),('2025-07-26',202530,7,2025,26,30,202507,2025),('2025-07-27',202531,7,2025,27,31,202507,2025),('2025-07-28',202531,7,2025,28,31,202507,2025),('2025-07-29',202531,7,2025,29,31,202507,2025),('2025-07-30',202531,7,2025,30,31,202507,2025),('2025-07-31',202531,7,2025,31,31,202507,2025),('2025-08-01',202531,8,2025,1,31,202508,2025),('2025-08-02',202531,8,2025,2,31,202508,2025),('2025-08-03',202532,8,2025,3,32,202508,2025),('2025-08-04',202532,8,2025,4,32,202508,2025),('2025-08-05',202532,8,2025,5,32,202508,2025),('2025-08-06',202532,8,2025,6,32,202508,2025),('2025-08-07',202532,8,2025,7,32,202508,2025),('2025-08-08',202532,8,2025,8,32,202508,2025),('2025-08-09',202532,8,2025,9,32,202508,2025),('2025-08-10',202533,8,2025,10,33,202508,2025),('2025-08-11',202533,8,2025,11,33,202508,2025),('2025-08-12',202533,8,2025,12,33,202508,2025),('2025-08-13',202533,8,2025,13,33,202508,2025),('2025-08-14',202533,8,2025,14,33,202508,2025),('2025-08-15',202533,8,2025,15,33,202508,2025),('2025-08-16',202533,8,2025,16,33,202508,2025),('2025-08-17',202534,8,2025,17,34,202508,2025),('2025-08-18',202534,8,2025,18,34,202508,2025),('2025-08-19',202534,8,2025,19,34,202508,2025),('2025-08-20',202534,8,2025,20,34,202508,2025),('2025-08-21',202534,8,2025,21,34,202508,2025),('2025-08-22',202534,8,2025,22,34,202508,2025),('2025-08-23',202534,8,2025,23,34,202508,2025),('2025-08-24',202535,8,2025,24,35,202508,2025),('2025-08-25',202535,8,2025,25,35,202508,2025),('2025-08-26',202535,8,2025,26,35,202508,2025),('2025-08-27',202535,8,2025,27,35,202508,2025),('2025-08-28',202535,8,2025,28,35,202508,2025),('2025-08-29',202535,8,2025,29,35,202508,2025),('2025-08-30',202535,8,2025,30,35,202508,2025),('2025-08-31',202536,8,2025,31,36,202508,2025),('2025-09-01',202536,9,2025,1,36,202509,2025),('2025-09-02',202536,9,2025,2,36,202509,2025),('2025-09-03',202536,9,2025,3,36,202509,2025),('2025-09-04',202536,9,2025,4,36,202509,2025),('2025-09-05',202536,9,2025,5,36,202509,2025),('2025-09-06',202536,9,2025,6,36,202509,2025),('2025-09-07',202537,9,2025,7,37,202509,2025),('2025-09-08',202537,9,2025,8,37,202509,2025),('2025-09-09',202537,9,2025,9,37,202509,2025),('2025-09-10',202537,9,2025,10,37,202509,2025),('2025-09-11',202537,9,2025,11,37,202509,2025),('2025-09-12',202537,9,2025,12,37,202509,2025),('2025-09-13',202537,9,2025,13,37,202509,2025),('2025-09-14',202538,9,2025,14,38,202509,2025),('2025-09-15',202538,9,2025,15,38,202509,2025),('2025-09-16',202538,9,2025,16,38,202509,2025),('2025-09-17',202538,9,2025,17,38,202509,2025),('2025-09-18',202538,9,2025,18,38,202509,2025),('2025-09-19',202538,9,2025,19,38,202509,2025),('2025-09-20',202538,9,2025,20,38,202509,2025),('2025-09-21',202539,9,2025,21,39,202509,2025),('2025-09-22',202539,9,2025,22,39,202509,2025),('2025-09-23',202539,9,2025,23,39,202509,2025),('2025-09-24',202539,9,2025,24,39,202509,2025),('2025-09-25',202539,9,2025,25,39,202509,2025),('2025-09-26',202539,9,2025,26,39,202509,2025),('2025-09-27',202539,9,2025,27,39,202509,2025),('2025-09-28',202540,9,2025,28,40,202509,2025),('2025-09-29',202540,9,2025,29,40,202509,2025),('2025-09-30',202540,9,2025,30,40,202509,2025),('2025-10-01',202540,10,2025,1,40,202510,2025),('2025-10-02',202540,10,2025,2,40,202510,2025),('2025-10-03',202540,10,2025,3,40,202510,2025),('2025-10-04',202540,10,2025,4,40,202510,2025),('2025-10-05',202541,10,2025,5,41,202510,2025),('2025-10-06',202541,10,2025,6,41,202510,2025),('2025-10-07',202541,10,2025,7,41,202510,2025),('2025-10-08',202541,10,2025,8,41,202510,2025),('2025-10-09',202541,10,2025,9,41,202510,2025),('2025-10-10',202541,10,2025,10,41,202510,2025),('2025-10-11',202541,10,2025,11,41,202510,2025),('2025-10-12',202542,10,2025,12,42,202510,2025),('2025-10-13',202542,10,2025,13,42,202510,2025),('2025-10-14',202542,10,2025,14,42,202510,2025),('2025-10-15',202542,10,2025,15,42,202510,2025),('2025-10-16',202542,10,2025,16,42,202510,2025),('2025-10-17',202542,10,2025,17,42,202510,2025),('2025-10-18',202542,10,2025,18,42,202510,2025),('2025-10-19',202543,10,2025,19,43,202510,2025),('2025-10-20',202543,10,2025,20,43,202510,2025),('2025-10-21',202543,10,2025,21,43,202510,2025),('2025-10-22',202543,10,2025,22,43,202510,2025),('2025-10-23',202543,10,2025,23,43,202510,2025),('2025-10-24',202543,10,2025,24,43,202510,2025),('2025-10-25',202543,10,2025,25,43,202510,2025),('2025-10-26',202544,10,2025,26,44,202510,2025),('2025-10-27',202544,10,2025,27,44,202510,2025),('2025-10-28',202544,10,2025,28,44,202510,2025),('2025-10-29',202544,10,2025,29,44,202510,2025),('2025-10-30',202544,10,2025,30,44,202510,2025),('2025-10-31',202544,10,2025,31,44,202510,2025),('2025-11-01',202544,11,2025,1,44,202511,2025),('2025-11-02',202545,11,2025,2,45,202511,2025),('2025-11-03',202545,11,2025,3,45,202511,2025),('2025-11-04',202545,11,2025,4,45,202511,2025),('2025-11-05',202545,11,2025,5,45,202511,2025),('2025-11-06',202545,11,2025,6,45,202511,2025),('2025-11-07',202545,11,2025,7,45,202511,2025),('2025-11-08',202545,11,2025,8,45,202511,2025),('2025-11-09',202546,11,2025,9,46,202511,2025),('2025-11-10',202546,11,2025,10,46,202511,2025),('2025-11-11',202546,11,2025,11,46,202511,2025),('2025-11-12',202546,11,2025,12,46,202511,2025),('2025-11-13',202546,11,2025,13,46,202511,2025),('2025-11-14',202546,11,2025,14,46,202511,2025),('2025-11-15',202546,11,2025,15,46,202511,2025),('2025-11-16',202547,11,2025,16,47,202511,2025),('2025-11-17',202547,11,2025,17,47,202511,2025),('2025-11-18',202547,11,2025,18,47,202511,2025),('2025-11-19',202547,11,2025,19,47,202511,2025),('2025-11-20',202547,11,2025,20,47,202511,2025),('2025-11-21',202547,11,2025,21,47,202511,2025),('2025-11-22',202547,11,2025,22,47,202511,2025),('2025-11-23',202548,11,2025,23,48,202511,2025),('2025-11-24',202548,11,2025,24,48,202511,2025),('2025-11-25',202548,11,2025,25,48,202511,2025),('2025-11-26',202548,11,2025,26,48,202511,2025),('2025-11-27',202548,11,2025,27,48,202511,2025),('2025-11-28',202548,11,2025,28,48,202511,2025),('2025-11-29',202548,11,2025,29,48,202511,2025),('2025-11-30',202549,11,2025,30,49,202511,2025),('2025-12-01',202549,12,2025,1,49,202512,2026),('2025-12-02',202549,12,2025,2,49,202512,2026),('2025-12-03',202549,12,2025,3,49,202512,2026),('2025-12-04',202549,12,2025,4,49,202512,2026),('2025-12-05',202549,12,2025,5,49,202512,2026),('2025-12-06',202549,12,2025,6,49,202512,2026),('2025-12-07',202550,12,2025,7,50,202512,2026),('2025-12-08',202550,12,2025,8,50,202512,2026),('2025-12-09',202550,12,2025,9,50,202512,2026),('2025-12-10',202550,12,2025,10,50,202512,2026),('2025-12-11',202550,12,2025,11,50,202512,2026),('2025-12-12',202550,12,2025,12,50,202512,2026),('2025-12-13',202550,12,2025,13,50,202512,2026),('2025-12-14',202551,12,2025,14,51,202512,2026),('2025-12-15',202551,12,2025,15,51,202512,2026),('2025-12-16',202551,12,2025,16,51,202512,2026),('2025-12-17',202551,12,2025,17,51,202512,2026),('2025-12-18',202551,12,2025,18,51,202512,2026),('2025-12-19',202551,12,2025,19,51,202512,2026),('2025-12-20',202551,12,2025,20,51,202512,2026),('2025-12-21',202552,12,2025,21,52,202512,2026),('2025-12-22',202552,12,2025,22,52,202512,2026),('2025-12-23',202552,12,2025,23,52,202512,2026),('2025-12-24',202552,12,2025,24,52,202512,2026),('2025-12-25',202552,12,2025,25,52,202512,2026),('2025-12-26',202552,12,2025,26,52,202512,2026),('2025-12-27',202552,12,2025,27,52,202512,2026),('2025-12-28',202553,12,2025,28,53,202512,2026),('2025-12-29',202501,12,2025,29,53,202512,2026),('2025-12-30',202501,12,2025,30,53,202512,2026),('2025-12-31',202501,12,2025,31,53,202512,2026),('2026-01-01',202601,1,2026,1,53,202601,2026),('2026-01-02',202601,1,2026,2,53,202601,2026),('2026-01-03',202601,1,2026,3,53,202601,2026),('2026-01-04',202602,1,2026,4,1,202601,2026),('2026-01-05',202602,1,2026,5,1,202601,2026),('2026-01-06',202602,1,2026,6,1,202601,2026),('2026-01-07',202602,1,2026,7,1,202601,2026),('2026-01-08',202602,1,2026,8,1,202601,2026),('2026-01-09',202602,1,2026,9,1,202601,2026),('2026-01-10',202602,1,2026,10,1,202601,2026),('2026-01-11',202603,1,2026,11,2,202601,2026),('2026-01-12',202603,1,2026,12,2,202601,2026),('2026-01-13',202603,1,2026,13,2,202601,2026),('2026-01-14',202603,1,2026,14,2,202601,2026),('2026-01-15',202603,1,2026,15,2,202601,2026),('2026-01-16',202603,1,2026,16,2,202601,2026),('2026-01-17',202603,1,2026,17,2,202601,2026),('2026-01-18',202604,1,2026,18,3,202601,2026),('2026-01-19',202604,1,2026,19,3,202601,2026),('2026-01-20',202604,1,2026,20,3,202601,2026),('2026-01-21',202604,1,2026,21,3,202601,2026),('2026-01-22',202604,1,2026,22,3,202601,2026),('2026-01-23',202604,1,2026,23,3,202601,2026),('2026-01-24',202604,1,2026,24,3,202601,2026),('2026-01-25',202605,1,2026,25,4,202601,2026),('2026-01-26',202605,1,2026,26,4,202601,2026),('2026-01-27',202605,1,2026,27,4,202601,2026),('2026-01-28',202605,1,2026,28,4,202601,2026),('2026-01-29',202605,1,2026,29,4,202601,2026),('2026-01-30',202605,1,2026,30,4,202601,2026),('2026-01-31',202605,1,2026,31,4,202601,2026),('2026-02-01',202606,2,2026,1,5,202602,2026),('2026-02-02',202606,2,2026,2,5,202602,2026),('2026-02-03',202606,2,2026,3,5,202602,2026),('2026-02-04',202606,2,2026,4,5,202602,2026),('2026-02-05',202606,2,2026,5,5,202602,2026),('2026-02-06',202606,2,2026,6,5,202602,2026),('2026-02-07',202606,2,2026,7,5,202602,2026),('2026-02-08',202607,2,2026,8,6,202602,2026),('2026-02-09',202607,2,2026,9,6,202602,2026),('2026-02-10',202607,2,2026,10,6,202602,2026),('2026-02-11',202607,2,2026,11,6,202602,2026),('2026-02-12',202607,2,2026,12,6,202602,2026),('2026-02-13',202607,2,2026,13,6,202602,2026),('2026-02-14',202607,2,2026,14,6,202602,2026),('2026-02-15',202608,2,2026,15,7,202602,2026),('2026-02-16',202608,2,2026,16,7,202602,2026),('2026-02-17',202608,2,2026,17,7,202602,2026),('2026-02-18',202608,2,2026,18,7,202602,2026),('2026-02-19',202608,2,2026,19,7,202602,2026),('2026-02-20',202608,2,2026,20,7,202602,2026),('2026-02-21',202608,2,2026,21,7,202602,2026),('2026-02-22',202609,2,2026,22,8,202602,2026),('2026-02-23',202609,2,2026,23,8,202602,2026),('2026-02-24',202609,2,2026,24,8,202602,2026),('2026-02-25',202609,2,2026,25,8,202602,2026),('2026-02-26',202609,2,2026,26,8,202602,2026),('2026-02-27',202609,2,2026,27,8,202602,2026),('2026-02-28',202609,2,2026,28,8,202602,2026),('2026-03-01',202610,3,2026,1,9,202603,2026),('2026-03-02',202610,3,2026,2,9,202603,2026),('2026-03-03',202610,3,2026,3,9,202603,2026),('2026-03-04',202610,3,2026,4,9,202603,2026),('2026-03-05',202610,3,2026,5,9,202603,2026),('2026-03-06',202610,3,2026,6,9,202603,2026),('2026-03-07',202610,3,2026,7,9,202603,2026),('2026-03-08',202611,3,2026,8,10,202603,2026),('2026-03-09',202611,3,2026,9,10,202603,2026),('2026-03-10',202611,3,2026,10,10,202603,2026),('2026-03-11',202611,3,2026,11,10,202603,2026),('2026-03-12',202611,3,2026,12,10,202603,2026),('2026-03-13',202611,3,2026,13,10,202603,2026),('2026-03-14',202611,3,2026,14,10,202603,2026),('2026-03-15',202612,3,2026,15,11,202603,2026),('2026-03-16',202612,3,2026,16,11,202603,2026),('2026-03-17',202612,3,2026,17,11,202603,2026),('2026-03-18',202612,3,2026,18,11,202603,2026),('2026-03-19',202612,3,2026,19,11,202603,2026),('2026-03-20',202612,3,2026,20,11,202603,2026),('2026-03-21',202612,3,2026,21,11,202603,2026),('2026-03-22',202613,3,2026,22,12,202603,2026),('2026-03-23',202613,3,2026,23,12,202603,2026),('2026-03-24',202613,3,2026,24,12,202603,2026),('2026-03-25',202613,3,2026,25,12,202603,2026),('2026-03-26',202613,3,2026,26,12,202603,2026),('2026-03-27',202613,3,2026,27,12,202603,2026),('2026-03-28',202613,3,2026,28,12,202603,2026),('2026-03-29',202614,3,2026,29,13,202603,2026),('2026-03-30',202614,3,2026,30,13,202603,2026),('2026-03-31',202614,3,2026,31,13,202603,2026),('2026-04-01',202614,4,2026,1,13,202604,2026),('2026-04-02',202614,4,2026,2,13,202604,2026),('2026-04-03',202614,4,2026,3,13,202604,2026),('2026-04-04',202614,4,2026,4,13,202604,2026),('2026-04-05',202615,4,2026,5,14,202604,2026),('2026-04-06',202615,4,2026,6,14,202604,2026),('2026-04-07',202615,4,2026,7,14,202604,2026),('2026-04-08',202615,4,2026,8,14,202604,2026),('2026-04-09',202615,4,2026,9,14,202604,2026),('2026-04-10',202615,4,2026,10,14,202604,2026),('2026-04-11',202615,4,2026,11,14,202604,2026),('2026-04-12',202616,4,2026,12,15,202604,2026),('2026-04-13',202616,4,2026,13,15,202604,2026),('2026-04-14',202616,4,2026,14,15,202604,2026),('2026-04-15',202616,4,2026,15,15,202604,2026),('2026-04-16',202616,4,2026,16,15,202604,2026),('2026-04-17',202616,4,2026,17,15,202604,2026),('2026-04-18',202616,4,2026,18,15,202604,2026),('2026-04-19',202617,4,2026,19,16,202604,2026),('2026-04-20',202617,4,2026,20,16,202604,2026),('2026-04-21',202617,4,2026,21,16,202604,2026),('2026-04-22',202617,4,2026,22,16,202604,2026),('2026-04-23',202617,4,2026,23,16,202604,2026),('2026-04-24',202617,4,2026,24,16,202604,2026),('2026-04-25',202617,4,2026,25,16,202604,2026),('2026-04-26',202618,4,2026,26,17,202604,2026),('2026-04-27',202618,4,2026,27,17,202604,2026),('2026-04-28',202618,4,2026,28,17,202604,2026),('2026-04-29',202618,4,2026,29,17,202604,2026),('2026-04-30',202618,4,2026,30,17,202604,2026),('2026-05-01',202618,5,2026,1,17,202605,2026),('2026-05-02',202618,5,2026,2,17,202605,2026),('2026-05-03',202619,5,2026,3,18,202605,2026),('2026-05-04',202619,5,2026,4,18,202605,2026),('2026-05-05',202619,5,2026,5,18,202605,2026),('2026-05-06',202619,5,2026,6,18,202605,2026),('2026-05-07',202619,5,2026,7,18,202605,2026),('2026-05-08',202619,5,2026,8,18,202605,2026),('2026-05-09',202619,5,2026,9,18,202605,2026),('2026-05-10',202620,5,2026,10,19,202605,2026),('2026-05-11',202620,5,2026,11,19,202605,2026),('2026-05-12',202620,5,2026,12,19,202605,2026),('2026-05-13',202620,5,2026,13,19,202605,2026),('2026-05-14',202620,5,2026,14,19,202605,2026),('2026-05-15',202620,5,2026,15,19,202605,2026),('2026-05-16',202620,5,2026,16,19,202605,2026),('2026-05-17',202621,5,2026,17,20,202605,2026),('2026-05-18',202621,5,2026,18,20,202605,2026),('2026-05-19',202621,5,2026,19,20,202605,2026),('2026-05-20',202621,5,2026,20,20,202605,2026),('2026-05-21',202621,5,2026,21,20,202605,2026),('2026-05-22',202621,5,2026,22,20,202605,2026),('2026-05-23',202621,5,2026,23,20,202605,2026),('2026-05-24',202622,5,2026,24,21,202605,2026),('2026-05-25',202622,5,2026,25,21,202605,2026),('2026-05-26',202622,5,2026,26,21,202605,2026),('2026-05-27',202622,5,2026,27,21,202605,2026),('2026-05-28',202622,5,2026,28,21,202605,2026),('2026-05-29',202622,5,2026,29,21,202605,2026),('2026-05-30',202622,5,2026,30,21,202605,2026),('2026-05-31',202623,5,2026,31,22,202605,2026),('2026-06-01',202623,6,2026,1,22,202606,2026),('2026-06-02',202623,6,2026,2,22,202606,2026),('2026-06-03',202623,6,2026,3,22,202606,2026),('2026-06-04',202623,6,2026,4,22,202606,2026),('2026-06-05',202623,6,2026,5,22,202606,2026),('2026-06-06',202623,6,2026,6,22,202606,2026),('2026-06-07',202624,6,2026,7,23,202606,2026),('2026-06-08',202624,6,2026,8,23,202606,2026),('2026-06-09',202624,6,2026,9,23,202606,2026),('2026-06-10',202624,6,2026,10,23,202606,2026),('2026-06-11',202624,6,2026,11,23,202606,2026),('2026-06-12',202624,6,2026,12,23,202606,2026),('2026-06-13',202624,6,2026,13,23,202606,2026),('2026-06-14',202625,6,2026,14,24,202606,2026),('2026-06-15',202625,6,2026,15,24,202606,2026),('2026-06-16',202625,6,2026,16,24,202606,2026),('2026-06-17',202625,6,2026,17,24,202606,2026),('2026-06-18',202625,6,2026,18,24,202606,2026),('2026-06-19',202625,6,2026,19,24,202606,2026),('2026-06-20',202625,6,2026,20,24,202606,2026),('2026-06-21',202626,6,2026,21,25,202606,2026),('2026-06-22',202626,6,2026,22,25,202606,2026),('2026-06-23',202626,6,2026,23,25,202606,2026),('2026-06-24',202626,6,2026,24,25,202606,2026),('2026-06-25',202626,6,2026,25,25,202606,2026),('2026-06-26',202626,6,2026,26,25,202606,2026),('2026-06-27',202626,6,2026,27,25,202606,2026),('2026-06-28',202627,6,2026,28,26,202606,2026),('2026-06-29',202627,6,2026,29,26,202606,2026),('2026-06-30',202627,6,2026,30,26,202606,2026),('2026-07-01',202627,7,2026,1,26,202607,2026),('2026-07-02',202627,7,2026,2,26,202607,2026),('2026-07-03',202627,7,2026,3,26,202607,2026),('2026-07-04',202627,7,2026,4,26,202607,2026),('2026-07-05',202628,7,2026,5,27,202607,2026),('2026-07-06',202628,7,2026,6,27,202607,2026),('2026-07-07',202628,7,2026,7,27,202607,2026),('2026-07-08',202628,7,2026,8,27,202607,2026),('2026-07-09',202628,7,2026,9,27,202607,2026),('2026-07-10',202628,7,2026,10,27,202607,2026),('2026-07-11',202628,7,2026,11,27,202607,2026),('2026-07-12',202629,7,2026,12,28,202607,2026),('2026-07-13',202629,7,2026,13,28,202607,2026),('2026-07-14',202629,7,2026,14,28,202607,2026),('2026-07-15',202629,7,2026,15,28,202607,2026),('2026-07-16',202629,7,2026,16,28,202607,2026),('2026-07-17',202629,7,2026,17,28,202607,2026),('2026-07-18',202629,7,2026,18,28,202607,2026),('2026-07-19',202630,7,2026,19,29,202607,2026),('2026-07-20',202630,7,2026,20,29,202607,2026),('2026-07-21',202630,7,2026,21,29,202607,2026),('2026-07-22',202630,7,2026,22,29,202607,2026),('2026-07-23',202630,7,2026,23,29,202607,2026),('2026-07-24',202630,7,2026,24,29,202607,2026),('2026-07-25',202630,7,2026,25,29,202607,2026),('2026-07-26',202631,7,2026,26,30,202607,2026),('2026-07-27',202631,7,2026,27,30,202607,2026),('2026-07-28',202631,7,2026,28,30,202607,2026),('2026-07-29',202631,7,2026,29,30,202607,2026),('2026-07-30',202631,7,2026,30,30,202607,2026),('2026-07-31',202631,7,2026,31,30,202607,2026),('2026-08-01',202631,8,2026,1,30,202608,2026),('2026-08-02',202632,8,2026,2,31,202608,2026),('2026-08-03',202632,8,2026,3,31,202608,2026),('2026-08-04',202632,8,2026,4,31,202608,2026),('2026-08-05',202632,8,2026,5,31,202608,2026),('2026-08-06',202632,8,2026,6,31,202608,2026),('2026-08-07',202632,8,2026,7,31,202608,2026),('2026-08-08',202632,8,2026,8,31,202608,2026),('2026-08-09',202633,8,2026,9,32,202608,2026),('2026-08-10',202633,8,2026,10,32,202608,2026),('2026-08-11',202633,8,2026,11,32,202608,2026),('2026-08-12',202633,8,2026,12,32,202608,2026),('2026-08-13',202633,8,2026,13,32,202608,2026),('2026-08-14',202633,8,2026,14,32,202608,2026),('2026-08-15',202633,8,2026,15,32,202608,2026),('2026-08-16',202634,8,2026,16,33,202608,2026),('2026-08-17',202634,8,2026,17,33,202608,2026),('2026-08-18',202634,8,2026,18,33,202608,2026),('2026-08-19',202634,8,2026,19,33,202608,2026),('2026-08-20',202634,8,2026,20,33,202608,2026),('2026-08-21',202634,8,2026,21,33,202608,2026),('2026-08-22',202634,8,2026,22,33,202608,2026),('2026-08-23',202635,8,2026,23,34,202608,2026),('2026-08-24',202635,8,2026,24,34,202608,2026),('2026-08-25',202635,8,2026,25,34,202608,2026),('2026-08-26',202635,8,2026,26,34,202608,2026),('2026-08-27',202635,8,2026,27,34,202608,2026),('2026-08-28',202635,8,2026,28,34,202608,2026),('2026-08-29',202635,8,2026,29,34,202608,2026),('2026-08-30',202636,8,2026,30,35,202608,2026),('2026-08-31',202636,8,2026,31,35,202608,2026),('2026-09-01',202636,9,2026,1,35,202609,2026),('2026-09-02',202636,9,2026,2,35,202609,2026),('2026-09-03',202636,9,2026,3,35,202609,2026),('2026-09-04',202636,9,2026,4,35,202609,2026),('2026-09-05',202636,9,2026,5,35,202609,2026),('2026-09-06',202637,9,2026,6,36,202609,2026),('2026-09-07',202637,9,2026,7,36,202609,2026),('2026-09-08',202637,9,2026,8,36,202609,2026),('2026-09-09',202637,9,2026,9,36,202609,2026),('2026-09-10',202637,9,2026,10,36,202609,2026),('2026-09-11',202637,9,2026,11,36,202609,2026),('2026-09-12',202637,9,2026,12,36,202609,2026),('2026-09-13',202638,9,2026,13,37,202609,2026),('2026-09-14',202638,9,2026,14,37,202609,2026),('2026-09-15',202638,9,2026,15,37,202609,2026),('2026-09-16',202638,9,2026,16,37,202609,2026),('2026-09-17',202638,9,2026,17,37,202609,2026),('2026-09-18',202638,9,2026,18,37,202609,2026),('2026-09-19',202638,9,2026,19,37,202609,2026),('2026-09-20',202639,9,2026,20,38,202609,2026),('2026-09-21',202639,9,2026,21,38,202609,2026),('2026-09-22',202639,9,2026,22,38,202609,2026),('2026-09-23',202639,9,2026,23,38,202609,2026),('2026-09-24',202639,9,2026,24,38,202609,2026),('2026-09-25',202639,9,2026,25,38,202609,2026),('2026-09-26',202639,9,2026,26,38,202609,2026),('2026-09-27',202640,9,2026,27,39,202609,2026),('2026-09-28',202640,9,2026,28,39,202609,2026),('2026-09-29',202640,9,2026,29,39,202609,2026),('2026-09-30',202640,9,2026,30,39,202609,2026),('2026-10-01',202640,10,2026,1,39,202610,2026),('2026-10-02',202640,10,2026,2,39,202610,2026),('2026-10-03',202640,10,2026,3,39,202610,2026),('2026-10-04',202641,10,2026,4,40,202610,2026),('2026-10-05',202641,10,2026,5,40,202610,2026),('2026-10-06',202641,10,2026,6,40,202610,2026),('2026-10-07',202641,10,2026,7,40,202610,2026),('2026-10-08',202641,10,2026,8,40,202610,2026),('2026-10-09',202641,10,2026,9,40,202610,2026),('2026-10-10',202641,10,2026,10,40,202610,2026),('2026-10-11',202642,10,2026,11,41,202610,2026),('2026-10-12',202642,10,2026,12,41,202610,2026),('2026-10-13',202642,10,2026,13,41,202610,2026),('2026-10-14',202642,10,2026,14,41,202610,2026),('2026-10-15',202642,10,2026,15,41,202610,2026),('2026-10-16',202642,10,2026,16,41,202610,2026),('2026-10-17',202642,10,2026,17,41,202610,2026),('2026-10-18',202643,10,2026,18,42,202610,2026),('2026-10-19',202643,10,2026,19,42,202610,2026),('2026-10-20',202643,10,2026,20,42,202610,2026),('2026-10-21',202643,10,2026,21,42,202610,2026),('2026-10-22',202643,10,2026,22,42,202610,2026),('2026-10-23',202643,10,2026,23,42,202610,2026),('2026-10-24',202643,10,2026,24,42,202610,2026),('2026-10-25',202644,10,2026,25,43,202610,2026),('2026-10-26',202644,10,2026,26,43,202610,2026),('2026-10-27',202644,10,2026,27,43,202610,2026),('2026-10-28',202644,10,2026,28,43,202610,2026),('2026-10-29',202644,10,2026,29,43,202610,2026),('2026-10-30',202644,10,2026,30,43,202610,2026),('2026-10-31',202644,10,2026,31,43,202610,2026),('2026-11-01',202645,11,2026,1,44,202611,2026),('2026-11-02',202645,11,2026,2,44,202611,2026),('2026-11-03',202645,11,2026,3,44,202611,2026),('2026-11-04',202645,11,2026,4,44,202611,2026),('2026-11-05',202645,11,2026,5,44,202611,2026),('2026-11-06',202645,11,2026,6,44,202611,2026),('2026-11-07',202645,11,2026,7,44,202611,2026),('2026-11-08',202646,11,2026,8,45,202611,2026),('2026-11-09',202646,11,2026,9,45,202611,2026),('2026-11-10',202646,11,2026,10,45,202611,2026),('2026-11-11',202646,11,2026,11,45,202611,2026),('2026-11-12',202646,11,2026,12,45,202611,2026),('2026-11-13',202646,11,2026,13,45,202611,2026),('2026-11-14',202646,11,2026,14,45,202611,2026),('2026-11-15',202647,11,2026,15,46,202611,2026),('2026-11-16',202647,11,2026,16,46,202611,2026),('2026-11-17',202647,11,2026,17,46,202611,2026),('2026-11-18',202647,11,2026,18,46,202611,2026),('2026-11-19',202647,11,2026,19,46,202611,2026),('2026-11-20',202647,11,2026,20,46,202611,2026),('2026-11-21',202647,11,2026,21,46,202611,2026),('2026-11-22',202648,11,2026,22,47,202611,2026),('2026-11-23',202648,11,2026,23,47,202611,2026),('2026-11-24',202648,11,2026,24,47,202611,2026),('2026-11-25',202648,11,2026,25,47,202611,2026),('2026-11-26',202648,11,2026,26,47,202611,2026),('2026-11-27',202648,11,2026,27,47,202611,2026),('2026-11-28',202648,11,2026,28,47,202611,2026),('2026-11-29',202649,11,2026,29,48,202611,2026),('2026-11-30',202649,11,2026,30,48,202611,2026),('2026-12-01',202649,12,2026,1,48,202612,2027),('2026-12-02',202649,12,2026,2,48,202612,2027),('2026-12-03',202649,12,2026,3,48,202612,2027),('2026-12-04',202649,12,2026,4,48,202612,2027),('2026-12-05',202649,12,2026,5,48,202612,2027),('2026-12-06',202650,12,2026,6,49,202612,2027),('2026-12-07',202650,12,2026,7,49,202612,2027),('2026-12-08',202650,12,2026,8,49,202612,2027),('2026-12-09',202650,12,2026,9,49,202612,2027),('2026-12-10',202650,12,2026,10,49,202612,2027),('2026-12-11',202650,12,2026,11,49,202612,2027),('2026-12-12',202650,12,2026,12,49,202612,2027),('2026-12-13',202651,12,2026,13,50,202612,2027),('2026-12-14',202651,12,2026,14,50,202612,2027),('2026-12-15',202651,12,2026,15,50,202612,2027),('2026-12-16',202651,12,2026,16,50,202612,2027),('2026-12-17',202651,12,2026,17,50,202612,2027),('2026-12-18',202651,12,2026,18,50,202612,2027),('2026-12-19',202651,12,2026,19,50,202612,2027),('2026-12-20',202652,12,2026,20,51,202612,2027),('2026-12-21',202652,12,2026,21,51,202612,2027),('2026-12-22',202652,12,2026,22,51,202612,2027),('2026-12-23',202652,12,2026,23,51,202612,2027),('2026-12-24',202652,12,2026,24,51,202612,2027),('2026-12-25',202652,12,2026,25,51,202612,2027),('2026-12-26',202652,12,2026,26,51,202612,2027),('2026-12-27',202653,12,2026,27,52,202612,2027),('2026-12-28',202653,12,2026,28,52,202612,2027),('2026-12-29',202653,12,2026,29,52,202612,2027),('2026-12-30',202653,12,2026,30,52,202612,2027),('2026-12-31',202653,12,2026,31,52,202612,2027),('2027-01-01',202753,1,2027,1,52,202701,2027),('2027-01-02',202753,1,2027,2,52,202701,2027),('2027-01-03',202754,1,2027,3,1,202701,2027),('2027-01-04',202701,1,2027,4,1,202701,2027),('2027-01-05',202701,1,2027,5,1,202701,2027),('2027-01-06',202701,1,2027,6,1,202701,2027),('2027-01-07',202701,1,2027,7,1,202701,2027),('2027-01-08',202701,1,2027,8,1,202701,2027),('2027-01-09',202701,1,2027,9,1,202701,2027),('2027-01-10',202702,1,2027,10,2,202701,2027),('2027-01-11',202702,1,2027,11,2,202701,2027),('2027-01-12',202702,1,2027,12,2,202701,2027),('2027-01-13',202702,1,2027,13,2,202701,2027),('2027-01-14',202702,1,2027,14,2,202701,2027),('2027-01-15',202702,1,2027,15,2,202701,2027),('2027-01-16',202702,1,2027,16,2,202701,2027),('2027-01-17',202703,1,2027,17,3,202701,2027),('2027-01-18',202703,1,2027,18,3,202701,2027),('2027-01-19',202703,1,2027,19,3,202701,2027),('2027-01-20',202703,1,2027,20,3,202701,2027),('2027-01-21',202703,1,2027,21,3,202701,2027),('2027-01-22',202703,1,2027,22,3,202701,2027),('2027-01-23',202703,1,2027,23,3,202701,2027),('2027-01-24',202704,1,2027,24,4,202701,2027),('2027-01-25',202704,1,2027,25,4,202701,2027),('2027-01-26',202704,1,2027,26,4,202701,2027),('2027-01-27',202704,1,2027,27,4,202701,2027),('2027-01-28',202704,1,2027,28,4,202701,2027),('2027-01-29',202704,1,2027,29,4,202701,2027),('2027-01-30',202704,1,2027,30,4,202701,2027),('2027-01-31',202705,1,2027,31,5,202701,2027),('2027-02-01',202705,2,2027,1,5,202702,2027),('2027-02-02',202705,2,2027,2,5,202702,2027),('2027-02-03',202705,2,2027,3,5,202702,2027),('2027-02-04',202705,2,2027,4,5,202702,2027),('2027-02-05',202705,2,2027,5,5,202702,2027),('2027-02-06',202705,2,2027,6,5,202702,2027),('2027-02-07',202706,2,2027,7,6,202702,2027),('2027-02-08',202706,2,2027,8,6,202702,2027),('2027-02-09',202706,2,2027,9,6,202702,2027),('2027-02-10',202706,2,2027,10,6,202702,2027),('2027-02-11',202706,2,2027,11,6,202702,2027),('2027-02-12',202706,2,2027,12,6,202702,2027),('2027-02-13',202706,2,2027,13,6,202702,2027),('2027-02-14',202707,2,2027,14,7,202702,2027),('2027-02-15',202707,2,2027,15,7,202702,2027),('2027-02-16',202707,2,2027,16,7,202702,2027),('2027-02-17',202707,2,2027,17,7,202702,2027),('2027-02-18',202707,2,2027,18,7,202702,2027),('2027-02-19',202707,2,2027,19,7,202702,2027),('2027-02-20',202707,2,2027,20,7,202702,2027),('2027-02-21',202708,2,2027,21,8,202702,2027),('2027-02-22',202708,2,2027,22,8,202702,2027),('2027-02-23',202708,2,2027,23,8,202702,2027),('2027-02-24',202708,2,2027,24,8,202702,2027),('2027-02-25',202708,2,2027,25,8,202702,2027),('2027-02-26',202708,2,2027,26,8,202702,2027),('2027-02-27',202708,2,2027,27,8,202702,2027),('2027-02-28',202709,2,2027,28,9,202702,2027),('2027-03-01',202709,3,2027,1,9,202703,2027),('2027-03-02',202709,3,2027,2,9,202703,2027),('2027-03-03',202709,3,2027,3,9,202703,2027),('2027-03-04',202709,3,2027,4,9,202703,2027),('2027-03-05',202709,3,2027,5,9,202703,2027),('2027-03-06',202709,3,2027,6,9,202703,2027),('2027-03-07',202710,3,2027,7,10,202703,2027),('2027-03-08',202710,3,2027,8,10,202703,2027),('2027-03-09',202710,3,2027,9,10,202703,2027),('2027-03-10',202710,3,2027,10,10,202703,2027),('2027-03-11',202710,3,2027,11,10,202703,2027),('2027-03-12',202710,3,2027,12,10,202703,2027),('2027-03-13',202710,3,2027,13,10,202703,2027),('2027-03-14',202711,3,2027,14,11,202703,2027),('2027-03-15',202711,3,2027,15,11,202703,2027),('2027-03-16',202711,3,2027,16,11,202703,2027),('2027-03-17',202711,3,2027,17,11,202703,2027),('2027-03-18',202711,3,2027,18,11,202703,2027),('2027-03-19',202711,3,2027,19,11,202703,2027),('2027-03-20',202711,3,2027,20,11,202703,2027),('2027-03-21',202712,3,2027,21,12,202703,2027),('2027-03-22',202712,3,2027,22,12,202703,2027),('2027-03-23',202712,3,2027,23,12,202703,2027),('2027-03-24',202712,3,2027,24,12,202703,2027),('2027-03-25',202712,3,2027,25,12,202703,2027),('2027-03-26',202712,3,2027,26,12,202703,2027),('2027-03-27',202712,3,2027,27,12,202703,2027),('2027-03-28',202713,3,2027,28,13,202703,2027),('2027-03-29',202713,3,2027,29,13,202703,2027),('2027-03-30',202713,3,2027,30,13,202703,2027),('2027-03-31',202713,3,2027,31,13,202703,2027),('2027-04-01',202713,4,2027,1,13,202704,2027),('2027-04-02',202713,4,2027,2,13,202704,2027),('2027-04-03',202713,4,2027,3,13,202704,2027),('2027-04-04',202714,4,2027,4,14,202704,2027),('2027-04-05',202714,4,2027,5,14,202704,2027),('2027-04-06',202714,4,2027,6,14,202704,2027),('2027-04-07',202714,4,2027,7,14,202704,2027),('2027-04-08',202714,4,2027,8,14,202704,2027),('2027-04-09',202714,4,2027,9,14,202704,2027),('2027-04-10',202714,4,2027,10,14,202704,2027),('2027-04-11',202715,4,2027,11,15,202704,2027),('2027-04-12',202715,4,2027,12,15,202704,2027),('2027-04-13',202715,4,2027,13,15,202704,2027),('2027-04-14',202715,4,2027,14,15,202704,2027),('2027-04-15',202715,4,2027,15,15,202704,2027),('2027-04-16',202715,4,2027,16,15,202704,2027),('2027-04-17',202715,4,2027,17,15,202704,2027),('2027-04-18',202716,4,2027,18,16,202704,2027),('2027-04-19',202716,4,2027,19,16,202704,2027),('2027-04-20',202716,4,2027,20,16,202704,2027),('2027-04-21',202716,4,2027,21,16,202704,2027),('2027-04-22',202716,4,2027,22,16,202704,2027),('2027-04-23',202716,4,2027,23,16,202704,2027),('2027-04-24',202716,4,2027,24,16,202704,2027),('2027-04-25',202717,4,2027,25,17,202704,2027),('2027-04-26',202717,4,2027,26,17,202704,2027),('2027-04-27',202717,4,2027,27,17,202704,2027),('2027-04-28',202717,4,2027,28,17,202704,2027),('2027-04-29',202717,4,2027,29,17,202704,2027),('2027-04-30',202717,4,2027,30,17,202704,2027),('2027-05-01',202717,5,2027,1,17,202705,2027),('2027-05-02',202718,5,2027,2,18,202705,2027),('2027-05-03',202718,5,2027,3,18,202705,2027),('2027-05-04',202718,5,2027,4,18,202705,2027),('2027-05-05',202718,5,2027,5,18,202705,2027),('2027-05-06',202718,5,2027,6,18,202705,2027),('2027-05-07',202718,5,2027,7,18,202705,2027),('2027-05-08',202718,5,2027,8,18,202705,2027),('2027-05-09',202719,5,2027,9,19,202705,2027),('2027-05-10',202719,5,2027,10,19,202705,2027),('2027-05-11',202719,5,2027,11,19,202705,2027),('2027-05-12',202719,5,2027,12,19,202705,2027),('2027-05-13',202719,5,2027,13,19,202705,2027),('2027-05-14',202719,5,2027,14,19,202705,2027),('2027-05-15',202719,5,2027,15,19,202705,2027),('2027-05-16',202720,5,2027,16,20,202705,2027),('2027-05-17',202720,5,2027,17,20,202705,2027),('2027-05-18',202720,5,2027,18,20,202705,2027),('2027-05-19',202720,5,2027,19,20,202705,2027),('2027-05-20',202720,5,2027,20,20,202705,2027),('2027-05-21',202720,5,2027,21,20,202705,2027),('2027-05-22',202720,5,2027,22,20,202705,2027),('2027-05-23',202721,5,2027,23,21,202705,2027),('2027-05-24',202721,5,2027,24,21,202705,2027),('2027-05-25',202721,5,2027,25,21,202705,2027),('2027-05-26',202721,5,2027,26,21,202705,2027),('2027-05-27',202721,5,2027,27,21,202705,2027),('2027-05-28',202721,5,2027,28,21,202705,2027),('2027-05-29',202721,5,2027,29,21,202705,2027),('2027-05-30',202722,5,2027,30,22,202705,2027),('2027-05-31',202722,5,2027,31,22,202705,2027),('2027-06-01',202722,6,2027,1,22,202706,2027),('2027-06-02',202722,6,2027,2,22,202706,2027),('2027-06-03',202722,6,2027,3,22,202706,2027),('2027-06-04',202722,6,2027,4,22,202706,2027),('2027-06-05',202722,6,2027,5,22,202706,2027),('2027-06-06',202723,6,2027,6,23,202706,2027),('2027-06-07',202723,6,2027,7,23,202706,2027),('2027-06-08',202723,6,2027,8,23,202706,2027),('2027-06-09',202723,6,2027,9,23,202706,2027),('2027-06-10',202723,6,2027,10,23,202706,2027),('2027-06-11',202723,6,2027,11,23,202706,2027),('2027-06-12',202723,6,2027,12,23,202706,2027),('2027-06-13',202724,6,2027,13,24,202706,2027),('2027-06-14',202724,6,2027,14,24,202706,2027),('2027-06-15',202724,6,2027,15,24,202706,2027),('2027-06-16',202724,6,2027,16,24,202706,2027),('2027-06-17',202724,6,2027,17,24,202706,2027),('2027-06-18',202724,6,2027,18,24,202706,2027),('2027-06-19',202724,6,2027,19,24,202706,2027),('2027-06-20',202725,6,2027,20,25,202706,2027),('2027-06-21',202725,6,2027,21,25,202706,2027),('2027-06-22',202725,6,2027,22,25,202706,2027),('2027-06-23',202725,6,2027,23,25,202706,2027),('2027-06-24',202725,6,2027,24,25,202706,2027),('2027-06-25',202725,6,2027,25,25,202706,2027),('2027-06-26',202725,6,2027,26,25,202706,2027),('2027-06-27',202726,6,2027,27,26,202706,2027),('2027-06-28',202726,6,2027,28,26,202706,2027),('2027-06-29',202726,6,2027,29,26,202706,2027),('2027-06-30',202726,6,2027,30,26,202706,2027),('2027-07-01',202726,7,2027,1,26,202707,2027),('2027-07-02',202726,7,2027,2,26,202707,2027),('2027-07-03',202726,7,2027,3,26,202707,2027),('2027-07-04',202727,7,2027,4,27,202707,2027),('2027-07-05',202727,7,2027,5,27,202707,2027),('2027-07-06',202727,7,2027,6,27,202707,2027),('2027-07-07',202727,7,2027,7,27,202707,2027),('2027-07-08',202727,7,2027,8,27,202707,2027),('2027-07-09',202727,7,2027,9,27,202707,2027),('2027-07-10',202727,7,2027,10,27,202707,2027),('2027-07-11',202728,7,2027,11,28,202707,2027),('2027-07-12',202728,7,2027,12,28,202707,2027),('2027-07-13',202728,7,2027,13,28,202707,2027),('2027-07-14',202728,7,2027,14,28,202707,2027),('2027-07-15',202728,7,2027,15,28,202707,2027),('2027-07-16',202728,7,2027,16,28,202707,2027),('2027-07-17',202728,7,2027,17,28,202707,2027),('2027-07-18',202729,7,2027,18,29,202707,2027),('2027-07-19',202729,7,2027,19,29,202707,2027),('2027-07-20',202729,7,2027,20,29,202707,2027),('2027-07-21',202729,7,2027,21,29,202707,2027),('2027-07-22',202729,7,2027,22,29,202707,2027),('2027-07-23',202729,7,2027,23,29,202707,2027),('2027-07-24',202729,7,2027,24,29,202707,2027),('2027-07-25',202730,7,2027,25,30,202707,2027),('2027-07-26',202730,7,2027,26,30,202707,2027),('2027-07-27',202730,7,2027,27,30,202707,2027),('2027-07-28',202730,7,2027,28,30,202707,2027),('2027-07-29',202730,7,2027,29,30,202707,2027),('2027-07-30',202730,7,2027,30,30,202707,2027),('2027-07-31',202730,7,2027,31,30,202707,2027),('2027-08-01',202731,8,2027,1,31,202708,2027),('2027-08-02',202731,8,2027,2,31,202708,2027),('2027-08-03',202731,8,2027,3,31,202708,2027),('2027-08-04',202731,8,2027,4,31,202708,2027),('2027-08-05',202731,8,2027,5,31,202708,2027),('2027-08-06',202731,8,2027,6,31,202708,2027),('2027-08-07',202731,8,2027,7,31,202708,2027),('2027-08-08',202732,8,2027,8,32,202708,2027),('2027-08-09',202732,8,2027,9,32,202708,2027),('2027-08-10',202732,8,2027,10,32,202708,2027),('2027-08-11',202732,8,2027,11,32,202708,2027),('2027-08-12',202732,8,2027,12,32,202708,2027),('2027-08-13',202732,8,2027,13,32,202708,2027),('2027-08-14',202732,8,2027,14,32,202708,2027),('2027-08-15',202733,8,2027,15,33,202708,2027),('2027-08-16',202733,8,2027,16,33,202708,2027),('2027-08-17',202733,8,2027,17,33,202708,2027),('2027-08-18',202733,8,2027,18,33,202708,2027),('2027-08-19',202733,8,2027,19,33,202708,2027),('2027-08-20',202733,8,2027,20,33,202708,2027),('2027-08-21',202733,8,2027,21,33,202708,2027),('2027-08-22',202734,8,2027,22,34,202708,2027),('2027-08-23',202734,8,2027,23,34,202708,2027),('2027-08-24',202734,8,2027,24,34,202708,2027),('2027-08-25',202734,8,2027,25,34,202708,2027),('2027-08-26',202734,8,2027,26,34,202708,2027),('2027-08-27',202734,8,2027,27,34,202708,2027),('2027-08-28',202734,8,2027,28,34,202708,2027),('2027-08-29',202735,8,2027,29,35,202708,2027),('2027-08-30',202735,8,2027,30,35,202708,2027),('2027-08-31',202735,8,2027,31,35,202708,2027),('2027-09-01',202735,9,2027,1,35,202709,2027),('2027-09-02',202735,9,2027,2,35,202709,2027),('2027-09-03',202735,9,2027,3,35,202709,2027),('2027-09-04',202735,9,2027,4,35,202709,2027),('2027-09-05',202736,9,2027,5,36,202709,2027),('2027-09-06',202736,9,2027,6,36,202709,2027),('2027-09-07',202736,9,2027,7,36,202709,2027),('2027-09-08',202736,9,2027,8,36,202709,2027),('2027-09-09',202736,9,2027,9,36,202709,2027),('2027-09-10',202736,9,2027,10,36,202709,2027),('2027-09-11',202736,9,2027,11,36,202709,2027),('2027-09-12',202737,9,2027,12,37,202709,2027),('2027-09-13',202737,9,2027,13,37,202709,2027),('2027-09-14',202737,9,2027,14,37,202709,2027),('2027-09-15',202737,9,2027,15,37,202709,2027),('2027-09-16',202737,9,2027,16,37,202709,2027),('2027-09-17',202737,9,2027,17,37,202709,2027),('2027-09-18',202737,9,2027,18,37,202709,2027),('2027-09-19',202738,9,2027,19,38,202709,2027),('2027-09-20',202738,9,2027,20,38,202709,2027),('2027-09-21',202738,9,2027,21,38,202709,2027),('2027-09-22',202738,9,2027,22,38,202709,2027),('2027-09-23',202738,9,2027,23,38,202709,2027),('2027-09-24',202738,9,2027,24,38,202709,2027),('2027-09-25',202738,9,2027,25,38,202709,2027),('2027-09-26',202739,9,2027,26,39,202709,2027),('2027-09-27',202739,9,2027,27,39,202709,2027),('2027-09-28',202739,9,2027,28,39,202709,2027),('2027-09-29',202739,9,2027,29,39,202709,2027),('2027-09-30',202739,9,2027,30,39,202709,2027),('2027-10-01',202739,10,2027,1,39,202710,2027),('2027-10-02',202739,10,2027,2,39,202710,2027),('2027-10-03',202740,10,2027,3,40,202710,2027),('2027-10-04',202740,10,2027,4,40,202710,2027),('2027-10-05',202740,10,2027,5,40,202710,2027),('2027-10-06',202740,10,2027,6,40,202710,2027),('2027-10-07',202740,10,2027,7,40,202710,2027),('2027-10-08',202740,10,2027,8,40,202710,2027),('2027-10-09',202740,10,2027,9,40,202710,2027),('2027-10-10',202741,10,2027,10,41,202710,2027),('2027-10-11',202741,10,2027,11,41,202710,2027),('2027-10-12',202741,10,2027,12,41,202710,2027),('2027-10-13',202741,10,2027,13,41,202710,2027),('2027-10-14',202741,10,2027,14,41,202710,2027),('2027-10-15',202741,10,2027,15,41,202710,2027),('2027-10-16',202741,10,2027,16,41,202710,2027),('2027-10-17',202742,10,2027,17,42,202710,2027),('2027-10-18',202742,10,2027,18,42,202710,2027),('2027-10-19',202742,10,2027,19,42,202710,2027),('2027-10-20',202742,10,2027,20,42,202710,2027),('2027-10-21',202742,10,2027,21,42,202710,2027),('2027-10-22',202742,10,2027,22,42,202710,2027),('2027-10-23',202742,10,2027,23,42,202710,2027),('2027-10-24',202743,10,2027,24,43,202710,2027),('2027-10-25',202743,10,2027,25,43,202710,2027),('2027-10-26',202743,10,2027,26,43,202710,2027),('2027-10-27',202743,10,2027,27,43,202710,2027),('2027-10-28',202743,10,2027,28,43,202710,2027),('2027-10-29',202743,10,2027,29,43,202710,2027),('2027-10-30',202743,10,2027,30,43,202710,2027),('2027-10-31',202744,10,2027,31,44,202710,2027),('2027-11-01',202744,11,2027,1,44,202711,2027),('2027-11-02',202744,11,2027,2,44,202711,2027),('2027-11-03',202744,11,2027,3,44,202711,2027),('2027-11-04',202744,11,2027,4,44,202711,2027),('2027-11-05',202744,11,2027,5,44,202711,2027),('2027-11-06',202744,11,2027,6,44,202711,2027),('2027-11-07',202745,11,2027,7,45,202711,2027),('2027-11-08',202745,11,2027,8,45,202711,2027),('2027-11-09',202745,11,2027,9,45,202711,2027),('2027-11-10',202745,11,2027,10,45,202711,2027),('2027-11-11',202745,11,2027,11,45,202711,2027),('2027-11-12',202745,11,2027,12,45,202711,2027),('2027-11-13',202745,11,2027,13,45,202711,2027),('2027-11-14',202746,11,2027,14,46,202711,2027),('2027-11-15',202746,11,2027,15,46,202711,2027),('2027-11-16',202746,11,2027,16,46,202711,2027),('2027-11-17',202746,11,2027,17,46,202711,2027),('2027-11-18',202746,11,2027,18,46,202711,2027),('2027-11-19',202746,11,2027,19,46,202711,2027),('2027-11-20',202746,11,2027,20,46,202711,2027),('2027-11-21',202747,11,2027,21,47,202711,2027),('2027-11-22',202747,11,2027,22,47,202711,2027),('2027-11-23',202747,11,2027,23,47,202711,2027),('2027-11-24',202747,11,2027,24,47,202711,2027),('2027-11-25',202747,11,2027,25,47,202711,2027),('2027-11-26',202747,11,2027,26,47,202711,2027),('2027-11-27',202747,11,2027,27,47,202711,2027),('2027-11-28',202748,11,2027,28,48,202711,2027),('2027-11-29',202748,11,2027,29,48,202711,2027),('2027-11-30',202748,11,2027,30,48,202711,2027),('2027-12-01',202748,12,2027,1,48,202712,2028),('2027-12-02',202748,12,2027,2,48,202712,2028),('2027-12-03',202748,12,2027,3,48,202712,2028),('2027-12-04',202748,12,2027,4,48,202712,2028),('2027-12-05',202749,12,2027,5,49,202712,2028),('2027-12-06',202749,12,2027,6,49,202712,2028),('2027-12-07',202749,12,2027,7,49,202712,2028),('2027-12-08',202749,12,2027,8,49,202712,2028),('2027-12-09',202749,12,2027,9,49,202712,2028),('2027-12-10',202749,12,2027,10,49,202712,2028),('2027-12-11',202749,12,2027,11,49,202712,2028),('2027-12-12',202750,12,2027,12,50,202712,2028),('2027-12-13',202750,12,2027,13,50,202712,2028),('2027-12-14',202750,12,2027,14,50,202712,2028),('2027-12-15',202750,12,2027,15,50,202712,2028),('2027-12-16',202750,12,2027,16,50,202712,2028),('2027-12-17',202750,12,2027,17,50,202712,2028),('2027-12-18',202750,12,2027,18,50,202712,2028),('2027-12-19',202751,12,2027,19,51,202712,2028),('2027-12-20',202751,12,2027,20,51,202712,2028),('2027-12-21',202751,12,2027,21,51,202712,2028),('2027-12-22',202751,12,2027,22,51,202712,2028),('2027-12-23',202751,12,2027,23,51,202712,2028),('2027-12-24',202751,12,2027,24,51,202712,2028),('2027-12-25',202751,12,2027,25,51,202712,2028),('2027-12-26',202752,12,2027,26,52,202712,2028),('2027-12-27',202752,12,2027,27,52,202712,2028),('2027-12-28',202752,12,2027,28,52,202712,2028),('2027-12-29',202752,12,2027,29,52,202712,2028),('2027-12-30',202752,12,2027,30,52,202712,2028),('2027-12-31',202752,12,2027,31,52,202712,2028),('2028-01-01',202852,1,2028,1,52,202801,2028),('2028-01-02',202853,1,2028,2,1,202801,2028),('2028-01-03',202801,1,2028,3,1,202801,2028),('2028-01-04',202801,1,2028,4,1,202801,2028),('2028-01-05',202801,1,2028,5,1,202801,2028),('2028-01-06',202801,1,2028,6,1,202801,2028),('2028-01-07',202801,1,2028,7,1,202801,2028),('2028-01-08',202801,1,2028,8,1,202801,2028),('2028-01-09',202802,1,2028,9,2,202801,2028),('2028-01-10',202802,1,2028,10,2,202801,2028),('2028-01-11',202802,1,2028,11,2,202801,2028),('2028-01-12',202802,1,2028,12,2,202801,2028),('2028-01-13',202802,1,2028,13,2,202801,2028),('2028-01-14',202802,1,2028,14,2,202801,2028),('2028-01-15',202802,1,2028,15,2,202801,2028),('2028-01-16',202803,1,2028,16,3,202801,2028),('2028-01-17',202803,1,2028,17,3,202801,2028),('2028-01-18',202803,1,2028,18,3,202801,2028),('2028-01-19',202803,1,2028,19,3,202801,2028),('2028-01-20',202803,1,2028,20,3,202801,2028),('2028-01-21',202803,1,2028,21,3,202801,2028),('2028-01-22',202803,1,2028,22,3,202801,2028),('2028-01-23',202804,1,2028,23,4,202801,2028),('2028-01-24',202804,1,2028,24,4,202801,2028),('2028-01-25',202804,1,2028,25,4,202801,2028),('2028-01-26',202804,1,2028,26,4,202801,2028),('2028-01-27',202804,1,2028,27,4,202801,2028),('2028-01-28',202804,1,2028,28,4,202801,2028),('2028-01-29',202804,1,2028,29,4,202801,2028),('2028-01-30',202805,1,2028,30,5,202801,2028),('2028-01-31',202805,1,2028,31,5,202801,2028),('2028-02-01',202805,2,2028,1,5,202802,2028),('2028-02-02',202805,2,2028,2,5,202802,2028),('2028-02-03',202805,2,2028,3,5,202802,2028),('2028-02-04',202805,2,2028,4,5,202802,2028),('2028-02-05',202805,2,2028,5,5,202802,2028),('2028-02-06',202806,2,2028,6,6,202802,2028),('2028-02-07',202806,2,2028,7,6,202802,2028),('2028-02-08',202806,2,2028,8,6,202802,2028),('2028-02-09',202806,2,2028,9,6,202802,2028),('2028-02-10',202806,2,2028,10,6,202802,2028),('2028-02-11',202806,2,2028,11,6,202802,2028),('2028-02-12',202806,2,2028,12,6,202802,2028),('2028-02-13',202807,2,2028,13,7,202802,2028),('2028-02-14',202807,2,2028,14,7,202802,2028),('2028-02-15',202807,2,2028,15,7,202802,2028),('2028-02-16',202807,2,2028,16,7,202802,2028),('2028-02-17',202807,2,2028,17,7,202802,2028),('2028-02-18',202807,2,2028,18,7,202802,2028),('2028-02-19',202807,2,2028,19,7,202802,2028),('2028-02-20',202808,2,2028,20,8,202802,2028),('2028-02-21',202808,2,2028,21,8,202802,2028),('2028-02-22',202808,2,2028,22,8,202802,2028),('2028-02-23',202808,2,2028,23,8,202802,2028),('2028-02-24',202808,2,2028,24,8,202802,2028),('2028-02-25',202808,2,2028,25,8,202802,2028),('2028-02-26',202808,2,2028,26,8,202802,2028),('2028-02-27',202809,2,2028,27,9,202802,2028),('2028-02-28',202809,2,2028,28,9,202802,2028),('2028-02-29',202809,2,2028,29,9,202802,2028),('2028-03-01',202809,3,2028,1,9,202803,2028),('2028-03-02',202809,3,2028,2,9,202803,2028),('2028-03-03',202809,3,2028,3,9,202803,2028),('2028-03-04',202809,3,2028,4,9,202803,2028),('2028-03-05',202810,3,2028,5,10,202803,2028),('2028-03-06',202810,3,2028,6,10,202803,2028),('2028-03-07',202810,3,2028,7,10,202803,2028),('2028-03-08',202810,3,2028,8,10,202803,2028),('2028-03-09',202810,3,2028,9,10,202803,2028),('2028-03-10',202810,3,2028,10,10,202803,2028),('2028-03-11',202810,3,2028,11,10,202803,2028),('2028-03-12',202811,3,2028,12,11,202803,2028),('2028-03-13',202811,3,2028,13,11,202803,2028),('2028-03-14',202811,3,2028,14,11,202803,2028),('2028-03-15',202811,3,2028,15,11,202803,2028),('2028-03-16',202811,3,2028,16,11,202803,2028),('2028-03-17',202811,3,2028,17,11,202803,2028),('2028-03-18',202811,3,2028,18,11,202803,2028),('2028-03-19',202812,3,2028,19,12,202803,2028),('2028-03-20',202812,3,2028,20,12,202803,2028),('2028-03-21',202812,3,2028,21,12,202803,2028),('2028-03-22',202812,3,2028,22,12,202803,2028),('2028-03-23',202812,3,2028,23,12,202803,2028),('2028-03-24',202812,3,2028,24,12,202803,2028),('2028-03-25',202812,3,2028,25,12,202803,2028),('2028-03-26',202813,3,2028,26,13,202803,2028),('2028-03-27',202813,3,2028,27,13,202803,2028),('2028-03-28',202813,3,2028,28,13,202803,2028),('2028-03-29',202813,3,2028,29,13,202803,2028),('2028-03-30',202813,3,2028,30,13,202803,2028),('2028-03-31',202813,3,2028,31,13,202803,2028),('2028-04-01',202813,4,2028,1,13,202804,2028),('2028-04-02',202814,4,2028,2,14,202804,2028),('2028-04-03',202814,4,2028,3,14,202804,2028),('2028-04-04',202814,4,2028,4,14,202804,2028),('2028-04-05',202814,4,2028,5,14,202804,2028),('2028-04-06',202814,4,2028,6,14,202804,2028),('2028-04-07',202814,4,2028,7,14,202804,2028),('2028-04-08',202814,4,2028,8,14,202804,2028),('2028-04-09',202815,4,2028,9,15,202804,2028),('2028-04-10',202815,4,2028,10,15,202804,2028),('2028-04-11',202815,4,2028,11,15,202804,2028),('2028-04-12',202815,4,2028,12,15,202804,2028),('2028-04-13',202815,4,2028,13,15,202804,2028),('2028-04-14',202815,4,2028,14,15,202804,2028),('2028-04-15',202815,4,2028,15,15,202804,2028),('2028-04-16',202816,4,2028,16,16,202804,2028),('2028-04-17',202816,4,2028,17,16,202804,2028),('2028-04-18',202816,4,2028,18,16,202804,2028),('2028-04-19',202816,4,2028,19,16,202804,2028),('2028-04-20',202816,4,2028,20,16,202804,2028),('2028-04-21',202816,4,2028,21,16,202804,2028),('2028-04-22',202816,4,2028,22,16,202804,2028),('2028-04-23',202817,4,2028,23,17,202804,2028),('2028-04-24',202817,4,2028,24,17,202804,2028),('2028-04-25',202817,4,2028,25,17,202804,2028),('2028-04-26',202817,4,2028,26,17,202804,2028),('2028-04-27',202817,4,2028,27,17,202804,2028),('2028-04-28',202817,4,2028,28,17,202804,2028),('2028-04-29',202817,4,2028,29,17,202804,2028),('2028-04-30',202818,4,2028,30,18,202804,2028),('2028-05-01',202818,5,2028,1,18,202805,2028),('2028-05-02',202818,5,2028,2,18,202805,2028),('2028-05-03',202818,5,2028,3,18,202805,2028),('2028-05-04',202818,5,2028,4,18,202805,2028),('2028-05-05',202818,5,2028,5,18,202805,2028),('2028-05-06',202818,5,2028,6,18,202805,2028),('2028-05-07',202819,5,2028,7,19,202805,2028),('2028-05-08',202819,5,2028,8,19,202805,2028),('2028-05-09',202819,5,2028,9,19,202805,2028),('2028-05-10',202819,5,2028,10,19,202805,2028),('2028-05-11',202819,5,2028,11,19,202805,2028),('2028-05-12',202819,5,2028,12,19,202805,2028),('2028-05-13',202819,5,2028,13,19,202805,2028),('2028-05-14',202820,5,2028,14,20,202805,2028),('2028-05-15',202820,5,2028,15,20,202805,2028),('2028-05-16',202820,5,2028,16,20,202805,2028),('2028-05-17',202820,5,2028,17,20,202805,2028),('2028-05-18',202820,5,2028,18,20,202805,2028),('2028-05-19',202820,5,2028,19,20,202805,2028),('2028-05-20',202820,5,2028,20,20,202805,2028),('2028-05-21',202821,5,2028,21,21,202805,2028),('2028-05-22',202821,5,2028,22,21,202805,2028),('2028-05-23',202821,5,2028,23,21,202805,2028),('2028-05-24',202821,5,2028,24,21,202805,2028),('2028-05-25',202821,5,2028,25,21,202805,2028),('2028-05-26',202821,5,2028,26,21,202805,2028),('2028-05-27',202821,5,2028,27,21,202805,2028),('2028-05-28',202822,5,2028,28,22,202805,2028),('2028-05-29',202822,5,2028,29,22,202805,2028),('2028-05-30',202822,5,2028,30,22,202805,2028),('2028-05-31',202822,5,2028,31,22,202805,2028),('2028-06-01',202822,6,2028,1,22,202806,2028),('2028-06-02',202822,6,2028,2,22,202806,2028),('2028-06-03',202822,6,2028,3,22,202806,2028),('2028-06-04',202823,6,2028,4,23,202806,2028),('2028-06-05',202823,6,2028,5,23,202806,2028),('2028-06-06',202823,6,2028,6,23,202806,2028),('2028-06-07',202823,6,2028,7,23,202806,2028),('2028-06-08',202823,6,2028,8,23,202806,2028),('2028-06-09',202823,6,2028,9,23,202806,2028),('2028-06-10',202823,6,2028,10,23,202806,2028),('2028-06-11',202824,6,2028,11,24,202806,2028),('2028-06-12',202824,6,2028,12,24,202806,2028),('2028-06-13',202824,6,2028,13,24,202806,2028),('2028-06-14',202824,6,2028,14,24,202806,2028),('2028-06-15',202824,6,2028,15,24,202806,2028),('2028-06-16',202824,6,2028,16,24,202806,2028),('2028-06-17',202824,6,2028,17,24,202806,2028),('2028-06-18',202825,6,2028,18,25,202806,2028),('2028-06-19',202825,6,2028,19,25,202806,2028),('2028-06-20',202825,6,2028,20,25,202806,2028),('2028-06-21',202825,6,2028,21,25,202806,2028),('2028-06-22',202825,6,2028,22,25,202806,2028),('2028-06-23',202825,6,2028,23,25,202806,2028),('2028-06-24',202825,6,2028,24,25,202806,2028),('2028-06-25',202826,6,2028,25,26,202806,2028),('2028-06-26',202826,6,2028,26,26,202806,2028),('2028-06-27',202826,6,2028,27,26,202806,2028),('2028-06-28',202826,6,2028,28,26,202806,2028),('2028-06-29',202826,6,2028,29,26,202806,2028),('2028-06-30',202826,6,2028,30,26,202806,2028),('2028-07-01',202826,7,2028,1,26,202807,2028),('2028-07-02',202827,7,2028,2,27,202807,2028),('2028-07-03',202827,7,2028,3,27,202807,2028),('2028-07-04',202827,7,2028,4,27,202807,2028),('2028-07-05',202827,7,2028,5,27,202807,2028),('2028-07-06',202827,7,2028,6,27,202807,2028),('2028-07-07',202827,7,2028,7,27,202807,2028),('2028-07-08',202827,7,2028,8,27,202807,2028),('2028-07-09',202828,7,2028,9,28,202807,2028),('2028-07-10',202828,7,2028,10,28,202807,2028),('2028-07-11',202828,7,2028,11,28,202807,2028),('2028-07-12',202828,7,2028,12,28,202807,2028),('2028-07-13',202828,7,2028,13,28,202807,2028),('2028-07-14',202828,7,2028,14,28,202807,2028),('2028-07-15',202828,7,2028,15,28,202807,2028),('2028-07-16',202829,7,2028,16,29,202807,2028),('2028-07-17',202829,7,2028,17,29,202807,2028),('2028-07-18',202829,7,2028,18,29,202807,2028),('2028-07-19',202829,7,2028,19,29,202807,2028),('2028-07-20',202829,7,2028,20,29,202807,2028),('2028-07-21',202829,7,2028,21,29,202807,2028),('2028-07-22',202829,7,2028,22,29,202807,2028),('2028-07-23',202830,7,2028,23,30,202807,2028),('2028-07-24',202830,7,2028,24,30,202807,2028),('2028-07-25',202830,7,2028,25,30,202807,2028),('2028-07-26',202830,7,2028,26,30,202807,2028),('2028-07-27',202830,7,2028,27,30,202807,2028),('2028-07-28',202830,7,2028,28,30,202807,2028),('2028-07-29',202830,7,2028,29,30,202807,2028),('2028-07-30',202831,7,2028,30,31,202807,2028),('2028-07-31',202831,7,2028,31,31,202807,2028),('2028-08-01',202831,8,2028,1,31,202808,2028),('2028-08-02',202831,8,2028,2,31,202808,2028),('2028-08-03',202831,8,2028,3,31,202808,2028),('2028-08-04',202831,8,2028,4,31,202808,2028),('2028-08-05',202831,8,2028,5,31,202808,2028),('2028-08-06',202832,8,2028,6,32,202808,2028),('2028-08-07',202832,8,2028,7,32,202808,2028),('2028-08-08',202832,8,2028,8,32,202808,2028),('2028-08-09',202832,8,2028,9,32,202808,2028),('2028-08-10',202832,8,2028,10,32,202808,2028),('2028-08-11',202832,8,2028,11,32,202808,2028),('2028-08-12',202832,8,2028,12,32,202808,2028),('2028-08-13',202833,8,2028,13,33,202808,2028),('2028-08-14',202833,8,2028,14,33,202808,2028),('2028-08-15',202833,8,2028,15,33,202808,2028),('2028-08-16',202833,8,2028,16,33,202808,2028),('2028-08-17',202833,8,2028,17,33,202808,2028),('2028-08-18',202833,8,2028,18,33,202808,2028),('2028-08-19',202833,8,2028,19,33,202808,2028),('2028-08-20',202834,8,2028,20,34,202808,2028),('2028-08-21',202834,8,2028,21,34,202808,2028),('2028-08-22',202834,8,2028,22,34,202808,2028),('2028-08-23',202834,8,2028,23,34,202808,2028),('2028-08-24',202834,8,2028,24,34,202808,2028),('2028-08-25',202834,8,2028,25,34,202808,2028),('2028-08-26',202834,8,2028,26,34,202808,2028),('2028-08-27',202835,8,2028,27,35,202808,2028),('2028-08-28',202835,8,2028,28,35,202808,2028),('2028-08-29',202835,8,2028,29,35,202808,2028),('2028-08-30',202835,8,2028,30,35,202808,2028),('2028-08-31',202835,8,2028,31,35,202808,2028),('2028-09-01',202835,9,2028,1,35,202809,2028),('2028-09-02',202835,9,2028,2,35,202809,2028),('2028-09-03',202836,9,2028,3,36,202809,2028),('2028-09-04',202836,9,2028,4,36,202809,2028),('2028-09-05',202836,9,2028,5,36,202809,2028),('2028-09-06',202836,9,2028,6,36,202809,2028),('2028-09-07',202836,9,2028,7,36,202809,2028),('2028-09-08',202836,9,2028,8,36,202809,2028),('2028-09-09',202836,9,2028,9,36,202809,2028),('2028-09-10',202837,9,2028,10,37,202809,2028),('2028-09-11',202837,9,2028,11,37,202809,2028),('2028-09-12',202837,9,2028,12,37,202809,2028),('2028-09-13',202837,9,2028,13,37,202809,2028),('2028-09-14',202837,9,2028,14,37,202809,2028),('2028-09-15',202837,9,2028,15,37,202809,2028),('2028-09-16',202837,9,2028,16,37,202809,2028),('2028-09-17',202838,9,2028,17,38,202809,2028),('2028-09-18',202838,9,2028,18,38,202809,2028),('2028-09-19',202838,9,2028,19,38,202809,2028),('2028-09-20',202838,9,2028,20,38,202809,2028),('2028-09-21',202838,9,2028,21,38,202809,2028),('2028-09-22',202838,9,2028,22,38,202809,2028),('2028-09-23',202838,9,2028,23,38,202809,2028),('2028-09-24',202839,9,2028,24,39,202809,2028),('2028-09-25',202839,9,2028,25,39,202809,2028),('2028-09-26',202839,9,2028,26,39,202809,2028),('2028-09-27',202839,9,2028,27,39,202809,2028),('2028-09-28',202839,9,2028,28,39,202809,2028),('2028-09-29',202839,9,2028,29,39,202809,2028),('2028-09-30',202839,9,2028,30,39,202809,2028),('2028-10-01',202840,10,2028,1,40,202810,2028),('2028-10-02',202840,10,2028,2,40,202810,2028),('2028-10-03',202840,10,2028,3,40,202810,2028),('2028-10-04',202840,10,2028,4,40,202810,2028),('2028-10-05',202840,10,2028,5,40,202810,2028),('2028-10-06',202840,10,2028,6,40,202810,2028),('2028-10-07',202840,10,2028,7,40,202810,2028),('2028-10-08',202841,10,2028,8,41,202810,2028),('2028-10-09',202841,10,2028,9,41,202810,2028),('2028-10-10',202841,10,2028,10,41,202810,2028),('2028-10-11',202841,10,2028,11,41,202810,2028),('2028-10-12',202841,10,2028,12,41,202810,2028),('2028-10-13',202841,10,2028,13,41,202810,2028),('2028-10-14',202841,10,2028,14,41,202810,2028),('2028-10-15',202842,10,2028,15,42,202810,2028),('2028-10-16',202842,10,2028,16,42,202810,2028),('2028-10-17',202842,10,2028,17,42,202810,2028),('2028-10-18',202842,10,2028,18,42,202810,2028),('2028-10-19',202842,10,2028,19,42,202810,2028),('2028-10-20',202842,10,2028,20,42,202810,2028),('2028-10-21',202842,10,2028,21,42,202810,2028),('2028-10-22',202843,10,2028,22,43,202810,2028),('2028-10-23',202843,10,2028,23,43,202810,2028),('2028-10-24',202843,10,2028,24,43,202810,2028),('2028-10-25',202843,10,2028,25,43,202810,2028),('2028-10-26',202843,10,2028,26,43,202810,2028),('2028-10-27',202843,10,2028,27,43,202810,2028),('2028-10-28',202843,10,2028,28,43,202810,2028),('2028-10-29',202844,10,2028,29,44,202810,2028),('2028-10-30',202844,10,2028,30,44,202810,2028),('2028-10-31',202844,10,2028,31,44,202810,2028),('2028-11-01',202844,11,2028,1,44,202811,2028),('2028-11-02',202844,11,2028,2,44,202811,2028),('2028-11-03',202844,11,2028,3,44,202811,2028),('2028-11-04',202844,11,2028,4,44,202811,2028),('2028-11-05',202845,11,2028,5,45,202811,2028),('2028-11-06',202845,11,2028,6,45,202811,2028),('2028-11-07',202845,11,2028,7,45,202811,2028),('2028-11-08',202845,11,2028,8,45,202811,2028),('2028-11-09',202845,11,2028,9,45,202811,2028),('2028-11-10',202845,11,2028,10,45,202811,2028),('2028-11-11',202845,11,2028,11,45,202811,2028),('2028-11-12',202846,11,2028,12,46,202811,2028),('2028-11-13',202846,11,2028,13,46,202811,2028),('2028-11-14',202846,11,2028,14,46,202811,2028),('2028-11-15',202846,11,2028,15,46,202811,2028),('2028-11-16',202846,11,2028,16,46,202811,2028),('2028-11-17',202846,11,2028,17,46,202811,2028),('2028-11-18',202846,11,2028,18,46,202811,2028),('2028-11-19',202847,11,2028,19,47,202811,2028),('2028-11-20',202847,11,2028,20,47,202811,2028),('2028-11-21',202847,11,2028,21,47,202811,2028),('2028-11-22',202847,11,2028,22,47,202811,2028),('2028-11-23',202847,11,2028,23,47,202811,2028),('2028-11-24',202847,11,2028,24,47,202811,2028),('2028-11-25',202847,11,2028,25,47,202811,2028),('2028-11-26',202848,11,2028,26,48,202811,2028),('2028-11-27',202848,11,2028,27,48,202811,2028),('2028-11-28',202848,11,2028,28,48,202811,2028),('2028-11-29',202848,11,2028,29,48,202811,2028),('2028-11-30',202848,11,2028,30,48,202811,2028),('2028-12-01',202848,12,2028,1,48,202812,2029),('2028-12-02',202848,12,2028,2,48,202812,2029),('2028-12-03',202849,12,2028,3,49,202812,2029),('2028-12-04',202849,12,2028,4,49,202812,2029),('2028-12-05',202849,12,2028,5,49,202812,2029),('2028-12-06',202849,12,2028,6,49,202812,2029),('2028-12-07',202849,12,2028,7,49,202812,2029),('2028-12-08',202849,12,2028,8,49,202812,2029),('2028-12-09',202849,12,2028,9,49,202812,2029),('2028-12-10',202850,12,2028,10,50,202812,2029),('2028-12-11',202850,12,2028,11,50,202812,2029),('2028-12-12',202850,12,2028,12,50,202812,2029),('2028-12-13',202850,12,2028,13,50,202812,2029),('2028-12-14',202850,12,2028,14,50,202812,2029),('2028-12-15',202850,12,2028,15,50,202812,2029),('2028-12-16',202850,12,2028,16,50,202812,2029),('2028-12-17',202851,12,2028,17,51,202812,2029),('2028-12-18',202851,12,2028,18,51,202812,2029),('2028-12-19',202851,12,2028,19,51,202812,2029),('2028-12-20',202851,12,2028,20,51,202812,2029),('2028-12-21',202851,12,2028,21,51,202812,2029),('2028-12-22',202851,12,2028,22,51,202812,2029),('2028-12-23',202851,12,2028,23,51,202812,2029),('2028-12-24',202852,12,2028,24,52,202812,2029),('2028-12-25',202852,12,2028,25,52,202812,2029),('2028-12-26',202852,12,2028,26,52,202812,2029),('2028-12-27',202852,12,2028,27,52,202812,2029),('2028-12-28',202852,12,2028,28,52,202812,2029),('2028-12-29',202852,12,2028,29,52,202812,2029),('2028-12-30',202852,12,2028,30,52,202812,2029),('2028-12-31',202853,12,2028,31,1,202812,2029),('2029-01-01',202901,1,2029,1,1,202901,2029),('2029-01-02',202901,1,2029,2,1,202901,2029),('2029-01-03',202901,1,2029,3,1,202901,2029),('2029-01-04',202901,1,2029,4,1,202901,2029),('2029-01-05',202901,1,2029,5,1,202901,2029),('2029-01-06',202901,1,2029,6,1,202901,2029),('2029-01-07',202902,1,2029,7,2,202901,2029),('2029-01-08',202902,1,2029,8,2,202901,2029),('2029-01-09',202902,1,2029,9,2,202901,2029),('2029-01-10',202902,1,2029,10,2,202901,2029),('2029-01-11',202902,1,2029,11,2,202901,2029),('2029-01-12',202902,1,2029,12,2,202901,2029),('2029-01-13',202902,1,2029,13,2,202901,2029),('2029-01-14',202903,1,2029,14,3,202901,2029),('2029-01-15',202903,1,2029,15,3,202901,2029),('2029-01-16',202903,1,2029,16,3,202901,2029),('2029-01-17',202903,1,2029,17,3,202901,2029),('2029-01-18',202903,1,2029,18,3,202901,2029),('2029-01-19',202903,1,2029,19,3,202901,2029),('2029-01-20',202903,1,2029,20,3,202901,2029),('2029-01-21',202904,1,2029,21,4,202901,2029),('2029-01-22',202904,1,2029,22,4,202901,2029),('2029-01-23',202904,1,2029,23,4,202901,2029),('2029-01-24',202904,1,2029,24,4,202901,2029),('2029-01-25',202904,1,2029,25,4,202901,2029),('2029-01-26',202904,1,2029,26,4,202901,2029),('2029-01-27',202904,1,2029,27,4,202901,2029),('2029-01-28',202905,1,2029,28,5,202901,2029),('2029-01-29',202905,1,2029,29,5,202901,2029),('2029-01-30',202905,1,2029,30,5,202901,2029),('2029-01-31',202905,1,2029,31,5,202901,2029),('2029-02-01',202905,2,2029,1,5,202902,2029),('2029-02-02',202905,2,2029,2,5,202902,2029),('2029-02-03',202905,2,2029,3,5,202902,2029),('2029-02-04',202906,2,2029,4,6,202902,2029),('2029-02-05',202906,2,2029,5,6,202902,2029),('2029-02-06',202906,2,2029,6,6,202902,2029),('2029-02-07',202906,2,2029,7,6,202902,2029),('2029-02-08',202906,2,2029,8,6,202902,2029),('2029-02-09',202906,2,2029,9,6,202902,2029),('2029-02-10',202906,2,2029,10,6,202902,2029),('2029-02-11',202907,2,2029,11,7,202902,2029),('2029-02-12',202907,2,2029,12,7,202902,2029),('2029-02-13',202907,2,2029,13,7,202902,2029),('2029-02-14',202907,2,2029,14,7,202902,2029),('2029-02-15',202907,2,2029,15,7,202902,2029),('2029-02-16',202907,2,2029,16,7,202902,2029),('2029-02-17',202907,2,2029,17,7,202902,2029),('2029-02-18',202908,2,2029,18,8,202902,2029),('2029-02-19',202908,2,2029,19,8,202902,2029),('2029-02-20',202908,2,2029,20,8,202902,2029),('2029-02-21',202908,2,2029,21,8,202902,2029),('2029-02-22',202908,2,2029,22,8,202902,2029),('2029-02-23',202908,2,2029,23,8,202902,2029),('2029-02-24',202908,2,2029,24,8,202902,2029),('2029-02-25',202909,2,2029,25,9,202902,2029),('2029-02-26',202909,2,2029,26,9,202902,2029),('2029-02-27',202909,2,2029,27,9,202902,2029),('2029-02-28',202909,2,2029,28,9,202902,2029),('2029-03-01',202909,3,2029,1,9,202903,2029),('2029-03-02',202909,3,2029,2,9,202903,2029),('2029-03-03',202909,3,2029,3,9,202903,2029),('2029-03-04',202910,3,2029,4,10,202903,2029),('2029-03-05',202910,3,2029,5,10,202903,2029),('2029-03-06',202910,3,2029,6,10,202903,2029),('2029-03-07',202910,3,2029,7,10,202903,2029),('2029-03-08',202910,3,2029,8,10,202903,2029),('2029-03-09',202910,3,2029,9,10,202903,2029),('2029-03-10',202910,3,2029,10,10,202903,2029),('2029-03-11',202911,3,2029,11,11,202903,2029),('2029-03-12',202911,3,2029,12,11,202903,2029),('2029-03-13',202911,3,2029,13,11,202903,2029),('2029-03-14',202911,3,2029,14,11,202903,2029),('2029-03-15',202911,3,2029,15,11,202903,2029),('2029-03-16',202911,3,2029,16,11,202903,2029),('2029-03-17',202911,3,2029,17,11,202903,2029),('2029-03-18',202912,3,2029,18,12,202903,2029),('2029-03-19',202912,3,2029,19,12,202903,2029),('2029-03-20',202912,3,2029,20,12,202903,2029),('2029-03-21',202912,3,2029,21,12,202903,2029),('2029-03-22',202912,3,2029,22,12,202903,2029),('2029-03-23',202912,3,2029,23,12,202903,2029),('2029-03-24',202912,3,2029,24,12,202903,2029),('2029-03-25',202913,3,2029,25,13,202903,2029),('2029-03-26',202913,3,2029,26,13,202903,2029),('2029-03-27',202913,3,2029,27,13,202903,2029),('2029-03-28',202913,3,2029,28,13,202903,2029),('2029-03-29',202913,3,2029,29,13,202903,2029),('2029-03-30',202913,3,2029,30,13,202903,2029),('2029-03-31',202913,3,2029,31,13,202903,2029),('2029-04-01',202914,4,2029,1,14,202904,2029),('2029-04-02',202914,4,2029,2,14,202904,2029),('2029-04-03',202914,4,2029,3,14,202904,2029),('2029-04-04',202914,4,2029,4,14,202904,2029),('2029-04-05',202914,4,2029,5,14,202904,2029),('2029-04-06',202914,4,2029,6,14,202904,2029),('2029-04-07',202914,4,2029,7,14,202904,2029),('2029-04-08',202915,4,2029,8,15,202904,2029),('2029-04-09',202915,4,2029,9,15,202904,2029),('2029-04-10',202915,4,2029,10,15,202904,2029),('2029-04-11',202915,4,2029,11,15,202904,2029),('2029-04-12',202915,4,2029,12,15,202904,2029),('2029-04-13',202915,4,2029,13,15,202904,2029),('2029-04-14',202915,4,2029,14,15,202904,2029),('2029-04-15',202916,4,2029,15,16,202904,2029),('2029-04-16',202916,4,2029,16,16,202904,2029),('2029-04-17',202916,4,2029,17,16,202904,2029),('2029-04-18',202916,4,2029,18,16,202904,2029),('2029-04-19',202916,4,2029,19,16,202904,2029),('2029-04-20',202916,4,2029,20,16,202904,2029),('2029-04-21',202916,4,2029,21,16,202904,2029),('2029-04-22',202917,4,2029,22,17,202904,2029),('2029-04-23',202917,4,2029,23,17,202904,2029),('2029-04-24',202917,4,2029,24,17,202904,2029),('2029-04-25',202917,4,2029,25,17,202904,2029),('2029-04-26',202917,4,2029,26,17,202904,2029),('2029-04-27',202917,4,2029,27,17,202904,2029),('2029-04-28',202917,4,2029,28,17,202904,2029),('2029-04-29',202918,4,2029,29,18,202904,2029),('2029-04-30',202918,4,2029,30,18,202904,2029),('2029-05-01',202918,5,2029,1,18,202905,2029),('2029-05-02',202918,5,2029,2,18,202905,2029),('2029-05-03',202918,5,2029,3,18,202905,2029),('2029-05-04',202918,5,2029,4,18,202905,2029),('2029-05-05',202918,5,2029,5,18,202905,2029),('2029-05-06',202919,5,2029,6,19,202905,2029),('2029-05-07',202919,5,2029,7,19,202905,2029),('2029-05-08',202919,5,2029,8,19,202905,2029),('2029-05-09',202919,5,2029,9,19,202905,2029),('2029-05-10',202919,5,2029,10,19,202905,2029),('2029-05-11',202919,5,2029,11,19,202905,2029),('2029-05-12',202919,5,2029,12,19,202905,2029),('2029-05-13',202920,5,2029,13,20,202905,2029),('2029-05-14',202920,5,2029,14,20,202905,2029),('2029-05-15',202920,5,2029,15,20,202905,2029),('2029-05-16',202920,5,2029,16,20,202905,2029),('2029-05-17',202920,5,2029,17,20,202905,2029),('2029-05-18',202920,5,2029,18,20,202905,2029),('2029-05-19',202920,5,2029,19,20,202905,2029),('2029-05-20',202921,5,2029,20,21,202905,2029),('2029-05-21',202921,5,2029,21,21,202905,2029),('2029-05-22',202921,5,2029,22,21,202905,2029),('2029-05-23',202921,5,2029,23,21,202905,2029),('2029-05-24',202921,5,2029,24,21,202905,2029),('2029-05-25',202921,5,2029,25,21,202905,2029),('2029-05-26',202921,5,2029,26,21,202905,2029),('2029-05-27',202922,5,2029,27,22,202905,2029),('2029-05-28',202922,5,2029,28,22,202905,2029),('2029-05-29',202922,5,2029,29,22,202905,2029),('2029-05-30',202922,5,2029,30,22,202905,2029),('2029-05-31',202922,5,2029,31,22,202905,2029),('2029-06-01',202922,6,2029,1,22,202906,2029),('2029-06-02',202922,6,2029,2,22,202906,2029),('2029-06-03',202923,6,2029,3,23,202906,2029),('2029-06-04',202923,6,2029,4,23,202906,2029),('2029-06-05',202923,6,2029,5,23,202906,2029),('2029-06-06',202923,6,2029,6,23,202906,2029),('2029-06-07',202923,6,2029,7,23,202906,2029),('2029-06-08',202923,6,2029,8,23,202906,2029),('2029-06-09',202923,6,2029,9,23,202906,2029),('2029-06-10',202924,6,2029,10,24,202906,2029),('2029-06-11',202924,6,2029,11,24,202906,2029),('2029-06-12',202924,6,2029,12,24,202906,2029),('2029-06-13',202924,6,2029,13,24,202906,2029),('2029-06-14',202924,6,2029,14,24,202906,2029),('2029-06-15',202924,6,2029,15,24,202906,2029),('2029-06-16',202924,6,2029,16,24,202906,2029),('2029-06-17',202925,6,2029,17,25,202906,2029),('2029-06-18',202925,6,2029,18,25,202906,2029),('2029-06-19',202925,6,2029,19,25,202906,2029),('2029-06-20',202925,6,2029,20,25,202906,2029),('2029-06-21',202925,6,2029,21,25,202906,2029),('2029-06-22',202925,6,2029,22,25,202906,2029),('2029-06-23',202925,6,2029,23,25,202906,2029),('2029-06-24',202926,6,2029,24,26,202906,2029),('2029-06-25',202926,6,2029,25,26,202906,2029),('2029-06-26',202926,6,2029,26,26,202906,2029),('2029-06-27',202926,6,2029,27,26,202906,2029),('2029-06-28',202926,6,2029,28,26,202906,2029),('2029-06-29',202926,6,2029,29,26,202906,2029),('2029-06-30',202926,6,2029,30,26,202906,2029),('2029-07-01',202927,7,2029,1,27,202907,2029),('2029-07-02',202927,7,2029,2,27,202907,2029),('2029-07-03',202927,7,2029,3,27,202907,2029),('2029-07-04',202927,7,2029,4,27,202907,2029),('2029-07-05',202927,7,2029,5,27,202907,2029),('2029-07-06',202927,7,2029,6,27,202907,2029),('2029-07-07',202927,7,2029,7,27,202907,2029),('2029-07-08',202928,7,2029,8,28,202907,2029),('2029-07-09',202928,7,2029,9,28,202907,2029),('2029-07-10',202928,7,2029,10,28,202907,2029),('2029-07-11',202928,7,2029,11,28,202907,2029),('2029-07-12',202928,7,2029,12,28,202907,2029),('2029-07-13',202928,7,2029,13,28,202907,2029),('2029-07-14',202928,7,2029,14,28,202907,2029),('2029-07-15',202929,7,2029,15,29,202907,2029),('2029-07-16',202929,7,2029,16,29,202907,2029),('2029-07-17',202929,7,2029,17,29,202907,2029),('2029-07-18',202929,7,2029,18,29,202907,2029),('2029-07-19',202929,7,2029,19,29,202907,2029),('2029-07-20',202929,7,2029,20,29,202907,2029),('2029-07-21',202929,7,2029,21,29,202907,2029),('2029-07-22',202930,7,2029,22,30,202907,2029),('2029-07-23',202930,7,2029,23,30,202907,2029),('2029-07-24',202930,7,2029,24,30,202907,2029),('2029-07-25',202930,7,2029,25,30,202907,2029),('2029-07-26',202930,7,2029,26,30,202907,2029),('2029-07-27',202930,7,2029,27,30,202907,2029),('2029-07-28',202930,7,2029,28,30,202907,2029),('2029-07-29',202931,7,2029,29,31,202907,2029),('2029-07-30',202931,7,2029,30,31,202907,2029),('2029-07-31',202931,7,2029,31,31,202907,2029),('2029-08-01',202931,8,2029,1,31,202908,2029),('2029-08-02',202931,8,2029,2,31,202908,2029),('2029-08-03',202931,8,2029,3,31,202908,2029),('2029-08-04',202931,8,2029,4,31,202908,2029),('2029-08-05',202932,8,2029,5,32,202908,2029),('2029-08-06',202932,8,2029,6,32,202908,2029),('2029-08-07',202932,8,2029,7,32,202908,2029),('2029-08-08',202932,8,2029,8,32,202908,2029),('2029-08-09',202932,8,2029,9,32,202908,2029),('2029-08-10',202932,8,2029,10,32,202908,2029),('2029-08-11',202932,8,2029,11,32,202908,2029),('2029-08-12',202933,8,2029,12,33,202908,2029),('2029-08-13',202933,8,2029,13,33,202908,2029),('2029-08-14',202933,8,2029,14,33,202908,2029),('2029-08-15',202933,8,2029,15,33,202908,2029),('2029-08-16',202933,8,2029,16,33,202908,2029),('2029-08-17',202933,8,2029,17,33,202908,2029),('2029-08-18',202933,8,2029,18,33,202908,2029),('2029-08-19',202934,8,2029,19,34,202908,2029),('2029-08-20',202934,8,2029,20,34,202908,2029),('2029-08-21',202934,8,2029,21,34,202908,2029),('2029-08-22',202934,8,2029,22,34,202908,2029),('2029-08-23',202934,8,2029,23,34,202908,2029),('2029-08-24',202934,8,2029,24,34,202908,2029),('2029-08-25',202934,8,2029,25,34,202908,2029),('2029-08-26',202935,8,2029,26,35,202908,2029),('2029-08-27',202935,8,2029,27,35,202908,2029),('2029-08-28',202935,8,2029,28,35,202908,2029),('2029-08-29',202935,8,2029,29,35,202908,2029),('2029-08-30',202935,8,2029,30,35,202908,2029),('2029-08-31',202935,8,2029,31,35,202908,2029),('2029-09-01',202935,9,2029,1,35,202909,2029),('2029-09-02',202936,9,2029,2,36,202909,2029),('2029-09-03',202936,9,2029,3,36,202909,2029),('2029-09-04',202936,9,2029,4,36,202909,2029),('2029-09-05',202936,9,2029,5,36,202909,2029),('2029-09-06',202936,9,2029,6,36,202909,2029),('2029-09-07',202936,9,2029,7,36,202909,2029),('2029-09-08',202936,9,2029,8,36,202909,2029),('2029-09-09',202937,9,2029,9,37,202909,2029),('2029-09-10',202937,9,2029,10,37,202909,2029),('2029-09-11',202937,9,2029,11,37,202909,2029),('2029-09-12',202937,9,2029,12,37,202909,2029),('2029-09-13',202937,9,2029,13,37,202909,2029),('2029-09-14',202937,9,2029,14,37,202909,2029),('2029-09-15',202937,9,2029,15,37,202909,2029),('2029-09-16',202938,9,2029,16,38,202909,2029),('2029-09-17',202938,9,2029,17,38,202909,2029),('2029-09-18',202938,9,2029,18,38,202909,2029),('2029-09-19',202938,9,2029,19,38,202909,2029),('2029-09-20',202938,9,2029,20,38,202909,2029),('2029-09-21',202938,9,2029,21,38,202909,2029),('2029-09-22',202938,9,2029,22,38,202909,2029),('2029-09-23',202939,9,2029,23,39,202909,2029),('2029-09-24',202939,9,2029,24,39,202909,2029),('2029-09-25',202939,9,2029,25,39,202909,2029),('2029-09-26',202939,9,2029,26,39,202909,2029),('2029-09-27',202939,9,2029,27,39,202909,2029),('2029-09-28',202939,9,2029,28,39,202909,2029),('2029-09-29',202939,9,2029,29,39,202909,2029),('2029-09-30',202940,9,2029,30,40,202909,2029),('2029-10-01',202940,10,2029,1,40,202910,2029),('2029-10-02',202940,10,2029,2,40,202910,2029),('2029-10-03',202940,10,2029,3,40,202910,2029),('2029-10-04',202940,10,2029,4,40,202910,2029),('2029-10-05',202940,10,2029,5,40,202910,2029),('2029-10-06',202940,10,2029,6,40,202910,2029),('2029-10-07',202941,10,2029,7,41,202910,2029),('2029-10-08',202941,10,2029,8,41,202910,2029),('2029-10-09',202941,10,2029,9,41,202910,2029),('2029-10-10',202941,10,2029,10,41,202910,2029),('2029-10-11',202941,10,2029,11,41,202910,2029),('2029-10-12',202941,10,2029,12,41,202910,2029),('2029-10-13',202941,10,2029,13,41,202910,2029),('2029-10-14',202942,10,2029,14,42,202910,2029),('2029-10-15',202942,10,2029,15,42,202910,2029),('2029-10-16',202942,10,2029,16,42,202910,2029),('2029-10-17',202942,10,2029,17,42,202910,2029),('2029-10-18',202942,10,2029,18,42,202910,2029),('2029-10-19',202942,10,2029,19,42,202910,2029),('2029-10-20',202942,10,2029,20,42,202910,2029),('2029-10-21',202943,10,2029,21,43,202910,2029),('2029-10-22',202943,10,2029,22,43,202910,2029),('2029-10-23',202943,10,2029,23,43,202910,2029),('2029-10-24',202943,10,2029,24,43,202910,2029),('2029-10-25',202943,10,2029,25,43,202910,2029),('2029-10-26',202943,10,2029,26,43,202910,2029),('2029-10-27',202943,10,2029,27,43,202910,2029),('2029-10-28',202944,10,2029,28,44,202910,2029),('2029-10-29',202944,10,2029,29,44,202910,2029),('2029-10-30',202944,10,2029,30,44,202910,2029),('2029-10-31',202944,10,2029,31,44,202910,2029),('2029-11-01',202944,11,2029,1,44,202911,2029),('2029-11-02',202944,11,2029,2,44,202911,2029),('2029-11-03',202944,11,2029,3,44,202911,2029),('2029-11-04',202945,11,2029,4,45,202911,2029),('2029-11-05',202945,11,2029,5,45,202911,2029),('2029-11-06',202945,11,2029,6,45,202911,2029),('2029-11-07',202945,11,2029,7,45,202911,2029),('2029-11-08',202945,11,2029,8,45,202911,2029),('2029-11-09',202945,11,2029,9,45,202911,2029),('2029-11-10',202945,11,2029,10,45,202911,2029),('2029-11-11',202946,11,2029,11,46,202911,2029),('2029-11-12',202946,11,2029,12,46,202911,2029),('2029-11-13',202946,11,2029,13,46,202911,2029),('2029-11-14',202946,11,2029,14,46,202911,2029),('2029-11-15',202946,11,2029,15,46,202911,2029),('2029-11-16',202946,11,2029,16,46,202911,2029),('2029-11-17',202946,11,2029,17,46,202911,2029),('2029-11-18',202947,11,2029,18,47,202911,2029),('2029-11-19',202947,11,2029,19,47,202911,2029),('2029-11-20',202947,11,2029,20,47,202911,2029),('2029-11-21',202947,11,2029,21,47,202911,2029),('2029-11-22',202947,11,2029,22,47,202911,2029),('2029-11-23',202947,11,2029,23,47,202911,2029),('2029-11-24',202947,11,2029,24,47,202911,2029),('2029-11-25',202948,11,2029,25,48,202911,2029),('2029-11-26',202948,11,2029,26,48,202911,2029),('2029-11-27',202948,11,2029,27,48,202911,2029),('2029-11-28',202948,11,2029,28,48,202911,2029),('2029-11-29',202948,11,2029,29,48,202911,2029),('2029-11-30',202948,11,2029,30,48,202911,2029),('2029-12-01',202948,12,2029,1,48,202912,2030),('2029-12-02',202949,12,2029,2,49,202912,2030),('2029-12-03',202949,12,2029,3,49,202912,2030),('2029-12-04',202949,12,2029,4,49,202912,2030),('2029-12-05',202949,12,2029,5,49,202912,2030),('2029-12-06',202949,12,2029,6,49,202912,2030),('2029-12-07',202949,12,2029,7,49,202912,2030),('2029-12-08',202949,12,2029,8,49,202912,2030),('2029-12-09',202950,12,2029,9,50,202912,2030),('2029-12-10',202950,12,2029,10,50,202912,2030),('2029-12-11',202950,12,2029,11,50,202912,2030),('2029-12-12',202950,12,2029,12,50,202912,2030),('2029-12-13',202950,12,2029,13,50,202912,2030),('2029-12-14',202950,12,2029,14,50,202912,2030),('2029-12-15',202950,12,2029,15,50,202912,2030),('2029-12-16',202951,12,2029,16,51,202912,2030),('2029-12-17',202951,12,2029,17,51,202912,2030),('2029-12-18',202951,12,2029,18,51,202912,2030),('2029-12-19',202951,12,2029,19,51,202912,2030),('2029-12-20',202951,12,2029,20,51,202912,2030),('2029-12-21',202951,12,2029,21,51,202912,2030),('2029-12-22',202951,12,2029,22,51,202912,2030),('2029-12-23',202952,12,2029,23,52,202912,2030),('2029-12-24',202952,12,2029,24,52,202912,2030),('2029-12-25',202952,12,2029,25,52,202912,2030),('2029-12-26',202952,12,2029,26,52,202912,2030),('2029-12-27',202952,12,2029,27,52,202912,2030),('2029-12-28',202952,12,2029,28,52,202912,2030),('2029-12-29',202952,12,2029,29,52,202912,2030),('2029-12-30',202953,12,2029,30,1,202912,2030),('2029-12-31',202901,12,2029,31,1,202912,2030),('2030-01-01',203001,1,2030,1,1,203001,2030),('2030-01-02',203001,1,2030,2,1,203001,2030),('2030-01-03',203001,1,2030,3,1,203001,2030),('2030-01-04',203001,1,2030,4,1,203001,2030),('2030-01-05',203001,1,2030,5,1,203001,2030),('2030-01-06',203002,1,2030,6,2,203001,2030),('2030-01-07',203002,1,2030,7,2,203001,2030),('2030-01-08',203002,1,2030,8,2,203001,2030),('2030-01-09',203002,1,2030,9,2,203001,2030),('2030-01-10',203002,1,2030,10,2,203001,2030),('2030-01-11',203002,1,2030,11,2,203001,2030),('2030-01-12',203002,1,2030,12,2,203001,2030),('2030-01-13',203003,1,2030,13,3,203001,2030),('2030-01-14',203003,1,2030,14,3,203001,2030),('2030-01-15',203003,1,2030,15,3,203001,2030),('2030-01-16',203003,1,2030,16,3,203001,2030),('2030-01-17',203003,1,2030,17,3,203001,2030),('2030-01-18',203003,1,2030,18,3,203001,2030),('2030-01-19',203003,1,2030,19,3,203001,2030),('2030-01-20',203004,1,2030,20,4,203001,2030),('2030-01-21',203004,1,2030,21,4,203001,2030),('2030-01-22',203004,1,2030,22,4,203001,2030),('2030-01-23',203004,1,2030,23,4,203001,2030),('2030-01-24',203004,1,2030,24,4,203001,2030),('2030-01-25',203004,1,2030,25,4,203001,2030),('2030-01-26',203004,1,2030,26,4,203001,2030),('2030-01-27',203005,1,2030,27,5,203001,2030),('2030-01-28',203005,1,2030,28,5,203001,2030),('2030-01-29',203005,1,2030,29,5,203001,2030),('2030-01-30',203005,1,2030,30,5,203001,2030),('2030-01-31',203005,1,2030,31,5,203001,2030),('2030-02-01',203005,2,2030,1,5,203002,2030),('2030-02-02',203005,2,2030,2,5,203002,2030),('2030-02-03',203006,2,2030,3,6,203002,2030),('2030-02-04',203006,2,2030,4,6,203002,2030),('2030-02-05',203006,2,2030,5,6,203002,2030),('2030-02-06',203006,2,2030,6,6,203002,2030),('2030-02-07',203006,2,2030,7,6,203002,2030),('2030-02-08',203006,2,2030,8,6,203002,2030),('2030-02-09',203006,2,2030,9,6,203002,2030),('2030-02-10',203007,2,2030,10,7,203002,2030),('2030-02-11',203007,2,2030,11,7,203002,2030),('2030-02-12',203007,2,2030,12,7,203002,2030),('2030-02-13',203007,2,2030,13,7,203002,2030),('2030-02-14',203007,2,2030,14,7,203002,2030),('2030-02-15',203007,2,2030,15,7,203002,2030),('2030-02-16',203007,2,2030,16,7,203002,2030),('2030-02-17',203008,2,2030,17,8,203002,2030),('2030-02-18',203008,2,2030,18,8,203002,2030),('2030-02-19',203008,2,2030,19,8,203002,2030),('2030-02-20',203008,2,2030,20,8,203002,2030),('2030-02-21',203008,2,2030,21,8,203002,2030),('2030-02-22',203008,2,2030,22,8,203002,2030),('2030-02-23',203008,2,2030,23,8,203002,2030),('2030-02-24',203009,2,2030,24,9,203002,2030),('2030-02-25',203009,2,2030,25,9,203002,2030),('2030-02-26',203009,2,2030,26,9,203002,2030),('2030-02-27',203009,2,2030,27,9,203002,2030),('2030-02-28',203009,2,2030,28,9,203002,2030),('2030-03-01',203009,3,2030,1,9,203003,2030),('2030-03-02',203009,3,2030,2,9,203003,2030),('2030-03-03',203010,3,2030,3,10,203003,2030),('2030-03-04',203010,3,2030,4,10,203003,2030),('2030-03-05',203010,3,2030,5,10,203003,2030),('2030-03-06',203010,3,2030,6,10,203003,2030),('2030-03-07',203010,3,2030,7,10,203003,2030),('2030-03-08',203010,3,2030,8,10,203003,2030),('2030-03-09',203010,3,2030,9,10,203003,2030),('2030-03-10',203011,3,2030,10,11,203003,2030),('2030-03-11',203011,3,2030,11,11,203003,2030),('2030-03-12',203011,3,2030,12,11,203003,2030),('2030-03-13',203011,3,2030,13,11,203003,2030),('2030-03-14',203011,3,2030,14,11,203003,2030),('2030-03-15',203011,3,2030,15,11,203003,2030),('2030-03-16',203011,3,2030,16,11,203003,2030),('2030-03-17',203012,3,2030,17,12,203003,2030),('2030-03-18',203012,3,2030,18,12,203003,2030),('2030-03-19',203012,3,2030,19,12,203003,2030),('2030-03-20',203012,3,2030,20,12,203003,2030),('2030-03-21',203012,3,2030,21,12,203003,2030),('2030-03-22',203012,3,2030,22,12,203003,2030),('2030-03-23',203012,3,2030,23,12,203003,2030),('2030-03-24',203013,3,2030,24,13,203003,2030),('2030-03-25',203013,3,2030,25,13,203003,2030),('2030-03-26',203013,3,2030,26,13,203003,2030),('2030-03-27',203013,3,2030,27,13,203003,2030),('2030-03-28',203013,3,2030,28,13,203003,2030),('2030-03-29',203013,3,2030,29,13,203003,2030),('2030-03-30',203013,3,2030,30,13,203003,2030),('2030-03-31',203014,3,2030,31,14,203003,2030),('2030-04-01',203014,4,2030,1,14,203004,2030),('2030-04-02',203014,4,2030,2,14,203004,2030),('2030-04-03',203014,4,2030,3,14,203004,2030),('2030-04-04',203014,4,2030,4,14,203004,2030),('2030-04-05',203014,4,2030,5,14,203004,2030),('2030-04-06',203014,4,2030,6,14,203004,2030),('2030-04-07',203015,4,2030,7,15,203004,2030),('2030-04-08',203015,4,2030,8,15,203004,2030),('2030-04-09',203015,4,2030,9,15,203004,2030),('2030-04-10',203015,4,2030,10,15,203004,2030),('2030-04-11',203015,4,2030,11,15,203004,2030),('2030-04-12',203015,4,2030,12,15,203004,2030),('2030-04-13',203015,4,2030,13,15,203004,2030),('2030-04-14',203016,4,2030,14,16,203004,2030),('2030-04-15',203016,4,2030,15,16,203004,2030),('2030-04-16',203016,4,2030,16,16,203004,2030),('2030-04-17',203016,4,2030,17,16,203004,2030),('2030-04-18',203016,4,2030,18,16,203004,2030),('2030-04-19',203016,4,2030,19,16,203004,2030),('2030-04-20',203016,4,2030,20,16,203004,2030),('2030-04-21',203017,4,2030,21,17,203004,2030),('2030-04-22',203017,4,2030,22,17,203004,2030),('2030-04-23',203017,4,2030,23,17,203004,2030),('2030-04-24',203017,4,2030,24,17,203004,2030),('2030-04-25',203017,4,2030,25,17,203004,2030),('2030-04-26',203017,4,2030,26,17,203004,2030),('2030-04-27',203017,4,2030,27,17,203004,2030),('2030-04-28',203018,4,2030,28,18,203004,2030),('2030-04-29',203018,4,2030,29,18,203004,2030),('2030-04-30',203018,4,2030,30,18,203004,2030),('2030-05-01',203018,5,2030,1,18,203005,2030),('2030-05-02',203018,5,2030,2,18,203005,2030),('2030-05-03',203018,5,2030,3,18,203005,2030),('2030-05-04',203018,5,2030,4,18,203005,2030),('2030-05-05',203019,5,2030,5,19,203005,2030),('2030-05-06',203019,5,2030,6,19,203005,2030),('2030-05-07',203019,5,2030,7,19,203005,2030),('2030-05-08',203019,5,2030,8,19,203005,2030),('2030-05-09',203019,5,2030,9,19,203005,2030),('2030-05-10',203019,5,2030,10,19,203005,2030),('2030-05-11',203019,5,2030,11,19,203005,2030),('2030-05-12',203020,5,2030,12,20,203005,2030),('2030-05-13',203020,5,2030,13,20,203005,2030),('2030-05-14',203020,5,2030,14,20,203005,2030),('2030-05-15',203020,5,2030,15,20,203005,2030),('2030-05-16',203020,5,2030,16,20,203005,2030),('2030-05-17',203020,5,2030,17,20,203005,2030),('2030-05-18',203020,5,2030,18,20,203005,2030),('2030-05-19',203021,5,2030,19,21,203005,2030),('2030-05-20',203021,5,2030,20,21,203005,2030),('2030-05-21',203021,5,2030,21,21,203005,2030),('2030-05-22',203021,5,2030,22,21,203005,2030),('2030-05-23',203021,5,2030,23,21,203005,2030),('2030-05-24',203021,5,2030,24,21,203005,2030),('2030-05-25',203021,5,2030,25,21,203005,2030),('2030-05-26',203022,5,2030,26,22,203005,2030),('2030-05-27',203022,5,2030,27,22,203005,2030),('2030-05-28',203022,5,2030,28,22,203005,2030),('2030-05-29',203022,5,2030,29,22,203005,2030),('2030-05-30',203022,5,2030,30,22,203005,2030),('2030-05-31',203022,5,2030,31,22,203005,2030),('2030-06-01',203022,6,2030,1,22,203006,2030),('2030-06-02',203023,6,2030,2,23,203006,2030),('2030-06-03',203023,6,2030,3,23,203006,2030),('2030-06-04',203023,6,2030,4,23,203006,2030),('2030-06-05',203023,6,2030,5,23,203006,2030),('2030-06-06',203023,6,2030,6,23,203006,2030),('2030-06-07',203023,6,2030,7,23,203006,2030),('2030-06-08',203023,6,2030,8,23,203006,2030),('2030-06-09',203024,6,2030,9,24,203006,2030),('2030-06-10',203024,6,2030,10,24,203006,2030),('2030-06-11',203024,6,2030,11,24,203006,2030),('2030-06-12',203024,6,2030,12,24,203006,2030),('2030-06-13',203024,6,2030,13,24,203006,2030),('2030-06-14',203024,6,2030,14,24,203006,2030),('2030-06-15',203024,6,2030,15,24,203006,2030),('2030-06-16',203025,6,2030,16,25,203006,2030),('2030-06-17',203025,6,2030,17,25,203006,2030),('2030-06-18',203025,6,2030,18,25,203006,2030),('2030-06-19',203025,6,2030,19,25,203006,2030),('2030-06-20',203025,6,2030,20,25,203006,2030),('2030-06-21',203025,6,2030,21,25,203006,2030),('2030-06-22',203025,6,2030,22,25,203006,2030),('2030-06-23',203026,6,2030,23,26,203006,2030),('2030-06-24',203026,6,2030,24,26,203006,2030),('2030-06-25',203026,6,2030,25,26,203006,2030),('2030-06-26',203026,6,2030,26,26,203006,2030),('2030-06-27',203026,6,2030,27,26,203006,2030),('2030-06-28',203026,6,2030,28,26,203006,2030),('2030-06-29',203026,6,2030,29,26,203006,2030),('2030-06-30',203027,6,2030,30,27,203006,2030),('2030-07-01',203027,7,2030,1,27,203007,2030),('2030-07-02',203027,7,2030,2,27,203007,2030),('2030-07-03',203027,7,2030,3,27,203007,2030),('2030-07-04',203027,7,2030,4,27,203007,2030),('2030-07-05',203027,7,2030,5,27,203007,2030),('2030-07-06',203027,7,2030,6,27,203007,2030),('2030-07-07',203028,7,2030,7,28,203007,2030),('2030-07-08',203028,7,2030,8,28,203007,2030),('2030-07-09',203028,7,2030,9,28,203007,2030),('2030-07-10',203028,7,2030,10,28,203007,2030),('2030-07-11',203028,7,2030,11,28,203007,2030),('2030-07-12',203028,7,2030,12,28,203007,2030),('2030-07-13',203028,7,2030,13,28,203007,2030),('2030-07-14',203029,7,2030,14,29,203007,2030),('2030-07-15',203029,7,2030,15,29,203007,2030),('2030-07-16',203029,7,2030,16,29,203007,2030),('2030-07-17',203029,7,2030,17,29,203007,2030),('2030-07-18',203029,7,2030,18,29,203007,2030),('2030-07-19',203029,7,2030,19,29,203007,2030),('2030-07-20',203029,7,2030,20,29,203007,2030),('2030-07-21',203030,7,2030,21,30,203007,2030),('2030-07-22',203030,7,2030,22,30,203007,2030),('2030-07-23',203030,7,2030,23,30,203007,2030),('2030-07-24',203030,7,2030,24,30,203007,2030),('2030-07-25',203030,7,2030,25,30,203007,2030),('2030-07-26',203030,7,2030,26,30,203007,2030),('2030-07-27',203030,7,2030,27,30,203007,2030),('2030-07-28',203031,7,2030,28,31,203007,2030),('2030-07-29',203031,7,2030,29,31,203007,2030),('2030-07-30',203031,7,2030,30,31,203007,2030),('2030-07-31',203031,7,2030,31,31,203007,2030),('2030-08-01',203031,8,2030,1,31,203008,2030),('2030-08-02',203031,8,2030,2,31,203008,2030),('2030-08-03',203031,8,2030,3,31,203008,2030),('2030-08-04',203032,8,2030,4,32,203008,2030),('2030-08-05',203032,8,2030,5,32,203008,2030),('2030-08-06',203032,8,2030,6,32,203008,2030),('2030-08-07',203032,8,2030,7,32,203008,2030),('2030-08-08',203032,8,2030,8,32,203008,2030),('2030-08-09',203032,8,2030,9,32,203008,2030),('2030-08-10',203032,8,2030,10,32,203008,2030),('2030-08-11',203033,8,2030,11,33,203008,2030),('2030-08-12',203033,8,2030,12,33,203008,2030),('2030-08-13',203033,8,2030,13,33,203008,2030),('2030-08-14',203033,8,2030,14,33,203008,2030),('2030-08-15',203033,8,2030,15,33,203008,2030),('2030-08-16',203033,8,2030,16,33,203008,2030),('2030-08-17',203033,8,2030,17,33,203008,2030),('2030-08-18',203034,8,2030,18,34,203008,2030),('2030-08-19',203034,8,2030,19,34,203008,2030),('2030-08-20',203034,8,2030,20,34,203008,2030),('2030-08-21',203034,8,2030,21,34,203008,2030),('2030-08-22',203034,8,2030,22,34,203008,2030),('2030-08-23',203034,8,2030,23,34,203008,2030),('2030-08-24',203034,8,2030,24,34,203008,2030),('2030-08-25',203035,8,2030,25,35,203008,2030),('2030-08-26',203035,8,2030,26,35,203008,2030),('2030-08-27',203035,8,2030,27,35,203008,2030),('2030-08-28',203035,8,2030,28,35,203008,2030),('2030-08-29',203035,8,2030,29,35,203008,2030),('2030-08-30',203035,8,2030,30,35,203008,2030),('2030-08-31',203035,8,2030,31,35,203008,2030),('2030-09-01',203036,9,2030,1,36,203009,2030),('2030-09-02',203036,9,2030,2,36,203009,2030),('2030-09-03',203036,9,2030,3,36,203009,2030),('2030-09-04',203036,9,2030,4,36,203009,2030),('2030-09-05',203036,9,2030,5,36,203009,2030),('2030-09-06',203036,9,2030,6,36,203009,2030),('2030-09-07',203036,9,2030,7,36,203009,2030),('2030-09-08',203037,9,2030,8,37,203009,2030),('2030-09-09',203037,9,2030,9,37,203009,2030),('2030-09-10',203037,9,2030,10,37,203009,2030),('2030-09-11',203037,9,2030,11,37,203009,2030),('2030-09-12',203037,9,2030,12,37,203009,2030),('2030-09-13',203037,9,2030,13,37,203009,2030),('2030-09-14',203037,9,2030,14,37,203009,2030),('2030-09-15',203038,9,2030,15,38,203009,2030),('2030-09-16',203038,9,2030,16,38,203009,2030),('2030-09-17',203038,9,2030,17,38,203009,2030),('2030-09-18',203038,9,2030,18,38,203009,2030),('2030-09-19',203038,9,2030,19,38,203009,2030),('2030-09-20',203038,9,2030,20,38,203009,2030),('2030-09-21',203038,9,2030,21,38,203009,2030),('2030-09-22',203039,9,2030,22,39,203009,2030),('2030-09-23',203039,9,2030,23,39,203009,2030),('2030-09-24',203039,9,2030,24,39,203009,2030),('2030-09-25',203039,9,2030,25,39,203009,2030),('2030-09-26',203039,9,2030,26,39,203009,2030),('2030-09-27',203039,9,2030,27,39,203009,2030),('2030-09-28',203039,9,2030,28,39,203009,2030),('2030-09-29',203040,9,2030,29,40,203009,2030),('2030-09-30',203040,9,2030,30,40,203009,2030),('2030-10-01',203040,10,2030,1,40,203010,2030),('2030-10-02',203040,10,2030,2,40,203010,2030),('2030-10-03',203040,10,2030,3,40,203010,2030),('2030-10-04',203040,10,2030,4,40,203010,2030),('2030-10-05',203040,10,2030,5,40,203010,2030),('2030-10-06',203041,10,2030,6,41,203010,2030),('2030-10-07',203041,10,2030,7,41,203010,2030),('2030-10-08',203041,10,2030,8,41,203010,2030),('2030-10-09',203041,10,2030,9,41,203010,2030),('2030-10-10',203041,10,2030,10,41,203010,2030),('2030-10-11',203041,10,2030,11,41,203010,2030),('2030-10-12',203041,10,2030,12,41,203010,2030),('2030-10-13',203042,10,2030,13,42,203010,2030),('2030-10-14',203042,10,2030,14,42,203010,2030),('2030-10-15',203042,10,2030,15,42,203010,2030),('2030-10-16',203042,10,2030,16,42,203010,2030),('2030-10-17',203042,10,2030,17,42,203010,2030),('2030-10-18',203042,10,2030,18,42,203010,2030),('2030-10-19',203042,10,2030,19,42,203010,2030),('2030-10-20',203043,10,2030,20,43,203010,2030),('2030-10-21',203043,10,2030,21,43,203010,2030),('2030-10-22',203043,10,2030,22,43,203010,2030),('2030-10-23',203043,10,2030,23,43,203010,2030),('2030-10-24',203043,10,2030,24,43,203010,2030),('2030-10-25',203043,10,2030,25,43,203010,2030),('2030-10-26',203043,10,2030,26,43,203010,2030),('2030-10-27',203044,10,2030,27,44,203010,2030),('2030-10-28',203044,10,2030,28,44,203010,2030),('2030-10-29',203044,10,2030,29,44,203010,2030),('2030-10-30',203044,10,2030,30,44,203010,2030),('2030-10-31',203044,10,2030,31,44,203010,2030),('2030-11-01',203044,11,2030,1,44,203011,2030),('2030-11-02',203044,11,2030,2,44,203011,2030),('2030-11-03',203045,11,2030,3,45,203011,2030),('2030-11-04',203045,11,2030,4,45,203011,2030),('2030-11-05',203045,11,2030,5,45,203011,2030),('2030-11-06',203045,11,2030,6,45,203011,2030),('2030-11-07',203045,11,2030,7,45,203011,2030),('2030-11-08',203045,11,2030,8,45,203011,2030),('2030-11-09',203045,11,2030,9,45,203011,2030),('2030-11-10',203046,11,2030,10,46,203011,2030),('2030-11-11',203046,11,2030,11,46,203011,2030),('2030-11-12',203046,11,2030,12,46,203011,2030),('2030-11-13',203046,11,2030,13,46,203011,2030),('2030-11-14',203046,11,2030,14,46,203011,2030),('2030-11-15',203046,11,2030,15,46,203011,2030),('2030-11-16',203046,11,2030,16,46,203011,2030),('2030-11-17',203047,11,2030,17,47,203011,2030),('2030-11-18',203047,11,2030,18,47,203011,2030),('2030-11-19',203047,11,2030,19,47,203011,2030),('2030-11-20',203047,11,2030,20,47,203011,2030),('2030-11-21',203047,11,2030,21,47,203011,2030),('2030-11-22',203047,11,2030,22,47,203011,2030),('2030-11-23',203047,11,2030,23,47,203011,2030),('2030-11-24',203048,11,2030,24,48,203011,2030),('2030-11-25',203048,11,2030,25,48,203011,2030),('2030-11-26',203048,11,2030,26,48,203011,2030),('2030-11-27',203048,11,2030,27,48,203011,2030),('2030-11-28',203048,11,2030,28,48,203011,2030),('2030-11-29',203048,11,2030,29,48,203011,2030),('2030-11-30',203048,11,2030,30,48,203011,2030),('2030-12-01',203049,12,2030,1,49,203012,2031),('2030-12-02',203049,12,2030,2,49,203012,2031),('2030-12-03',203049,12,2030,3,49,203012,2031),('2030-12-04',203049,12,2030,4,49,203012,2031),('2030-12-05',203049,12,2030,5,49,203012,2031),('2030-12-06',203049,12,2030,6,49,203012,2031),('2030-12-07',203049,12,2030,7,49,203012,2031),('2030-12-08',203050,12,2030,8,50,203012,2031),('2030-12-09',203050,12,2030,9,50,203012,2031),('2030-12-10',203050,12,2030,10,50,203012,2031),('2030-12-11',203050,12,2030,11,50,203012,2031),('2030-12-12',203050,12,2030,12,50,203012,2031),('2030-12-13',203050,12,2030,13,50,203012,2031),('2030-12-14',203050,12,2030,14,50,203012,2031),('2030-12-15',203051,12,2030,15,51,203012,2031),('2030-12-16',203051,12,2030,16,51,203012,2031),('2030-12-17',203051,12,2030,17,51,203012,2031),('2030-12-18',203051,12,2030,18,51,203012,2031),('2030-12-19',203051,12,2030,19,51,203012,2031),('2030-12-20',203051,12,2030,20,51,203012,2031),('2030-12-21',203051,12,2030,21,51,203012,2031),('2030-12-22',203052,12,2030,22,52,203012,2031),('2030-12-23',203052,12,2030,23,52,203012,2031),('2030-12-24',203052,12,2030,24,52,203012,2031),('2030-12-25',203052,12,2030,25,52,203012,2031),('2030-12-26',203052,12,2030,26,52,203012,2031),('2030-12-27',203052,12,2030,27,52,203012,2031),('2030-12-28',203052,12,2030,28,52,203012,2031),('2030-12-29',203053,12,2030,29,1,203012,2031),('2030-12-30',203001,12,2030,30,1,203012,2031),('2030-12-31',203001,12,2030,31,1,203012,2031),('2031-01-01',203101,1,2031,1,1,203101,2031),('2031-01-02',203101,1,2031,2,1,203101,2031),('2031-01-03',203101,1,2031,3,1,203101,2031),('2031-01-04',203101,1,2031,4,1,203101,2031),('2031-01-05',203102,1,2031,5,2,203101,2031),('2031-01-06',203102,1,2031,6,2,203101,2031),('2031-01-07',203102,1,2031,7,2,203101,2031),('2031-01-08',203102,1,2031,8,2,203101,2031),('2031-01-09',203102,1,2031,9,2,203101,2031),('2031-01-10',203102,1,2031,10,2,203101,2031),('2031-01-11',203102,1,2031,11,2,203101,2031),('2031-01-12',203103,1,2031,12,3,203101,2031),('2031-01-13',203103,1,2031,13,3,203101,2031),('2031-01-14',203103,1,2031,14,3,203101,2031),('2031-01-15',203103,1,2031,15,3,203101,2031),('2031-01-16',203103,1,2031,16,3,203101,2031),('2031-01-17',203103,1,2031,17,3,203101,2031),('2031-01-18',203103,1,2031,18,3,203101,2031),('2031-01-19',203104,1,2031,19,4,203101,2031),('2031-01-20',203104,1,2031,20,4,203101,2031),('2031-01-21',203104,1,2031,21,4,203101,2031),('2031-01-22',203104,1,2031,22,4,203101,2031),('2031-01-23',203104,1,2031,23,4,203101,2031),('2031-01-24',203104,1,2031,24,4,203101,2031),('2031-01-25',203104,1,2031,25,4,203101,2031),('2031-01-26',203105,1,2031,26,5,203101,2031),('2031-01-27',203105,1,2031,27,5,203101,2031),('2031-01-28',203105,1,2031,28,5,203101,2031),('2031-01-29',203105,1,2031,29,5,203101,2031),('2031-01-30',203105,1,2031,30,5,203101,2031),('2031-01-31',203105,1,2031,31,5,203101,2031),('2031-02-01',203105,2,2031,1,5,203102,2031),('2031-02-02',203106,2,2031,2,6,203102,2031),('2031-02-03',203106,2,2031,3,6,203102,2031),('2031-02-04',203106,2,2031,4,6,203102,2031),('2031-02-05',203106,2,2031,5,6,203102,2031),('2031-02-06',203106,2,2031,6,6,203102,2031),('2031-02-07',203106,2,2031,7,6,203102,2031),('2031-02-08',203106,2,2031,8,6,203102,2031),('2031-02-09',203107,2,2031,9,7,203102,2031),('2031-02-10',203107,2,2031,10,7,203102,2031),('2031-02-11',203107,2,2031,11,7,203102,2031),('2031-02-12',203107,2,2031,12,7,203102,2031),('2031-02-13',203107,2,2031,13,7,203102,2031),('2031-02-14',203107,2,2031,14,7,203102,2031),('2031-02-15',203107,2,2031,15,7,203102,2031),('2031-02-16',203108,2,2031,16,8,203102,2031),('2031-02-17',203108,2,2031,17,8,203102,2031),('2031-02-18',203108,2,2031,18,8,203102,2031),('2031-02-19',203108,2,2031,19,8,203102,2031),('2031-02-20',203108,2,2031,20,8,203102,2031),('2031-02-21',203108,2,2031,21,8,203102,2031),('2031-02-22',203108,2,2031,22,8,203102,2031),('2031-02-23',203109,2,2031,23,9,203102,2031),('2031-02-24',203109,2,2031,24,9,203102,2031),('2031-02-25',203109,2,2031,25,9,203102,2031),('2031-02-26',203109,2,2031,26,9,203102,2031),('2031-02-27',203109,2,2031,27,9,203102,2031),('2031-02-28',203109,2,2031,28,9,203102,2031),('2031-03-01',203109,3,2031,1,9,203103,2031),('2031-03-02',203110,3,2031,2,10,203103,2031),('2031-03-03',203110,3,2031,3,10,203103,2031),('2031-03-04',203110,3,2031,4,10,203103,2031),('2031-03-05',203110,3,2031,5,10,203103,2031),('2031-03-06',203110,3,2031,6,10,203103,2031),('2031-03-07',203110,3,2031,7,10,203103,2031),('2031-03-08',203110,3,2031,8,10,203103,2031),('2031-03-09',203111,3,2031,9,11,203103,2031),('2031-03-10',203111,3,2031,10,11,203103,2031),('2031-03-11',203111,3,2031,11,11,203103,2031),('2031-03-12',203111,3,2031,12,11,203103,2031),('2031-03-13',203111,3,2031,13,11,203103,2031),('2031-03-14',203111,3,2031,14,11,203103,2031),('2031-03-15',203111,3,2031,15,11,203103,2031),('2031-03-16',203112,3,2031,16,12,203103,2031),('2031-03-17',203112,3,2031,17,12,203103,2031),('2031-03-18',203112,3,2031,18,12,203103,2031),('2031-03-19',203112,3,2031,19,12,203103,2031),('2031-03-20',203112,3,2031,20,12,203103,2031),('2031-03-21',203112,3,2031,21,12,203103,2031),('2031-03-22',203112,3,2031,22,12,203103,2031),('2031-03-23',203113,3,2031,23,13,203103,2031),('2031-03-24',203113,3,2031,24,13,203103,2031),('2031-03-25',203113,3,2031,25,13,203103,2031),('2031-03-26',203113,3,2031,26,13,203103,2031),('2031-03-27',203113,3,2031,27,13,203103,2031),('2031-03-28',203113,3,2031,28,13,203103,2031),('2031-03-29',203113,3,2031,29,13,203103,2031),('2031-03-30',203114,3,2031,30,14,203103,2031),('2031-03-31',203114,3,2031,31,14,203103,2031),('2031-04-01',203114,4,2031,1,14,203104,2031),('2031-04-02',203114,4,2031,2,14,203104,2031),('2031-04-03',203114,4,2031,3,14,203104,2031),('2031-04-04',203114,4,2031,4,14,203104,2031),('2031-04-05',203114,4,2031,5,14,203104,2031),('2031-04-06',203115,4,2031,6,15,203104,2031),('2031-04-07',203115,4,2031,7,15,203104,2031),('2031-04-08',203115,4,2031,8,15,203104,2031),('2031-04-09',203115,4,2031,9,15,203104,2031),('2031-04-10',203115,4,2031,10,15,203104,2031),('2031-04-11',203115,4,2031,11,15,203104,2031),('2031-04-12',203115,4,2031,12,15,203104,2031),('2031-04-13',203116,4,2031,13,16,203104,2031),('2031-04-14',203116,4,2031,14,16,203104,2031),('2031-04-15',203116,4,2031,15,16,203104,2031),('2031-04-16',203116,4,2031,16,16,203104,2031),('2031-04-17',203116,4,2031,17,16,203104,2031),('2031-04-18',203116,4,2031,18,16,203104,2031),('2031-04-19',203116,4,2031,19,16,203104,2031),('2031-04-20',203117,4,2031,20,17,203104,2031),('2031-04-21',203117,4,2031,21,17,203104,2031),('2031-04-22',203117,4,2031,22,17,203104,2031),('2031-04-23',203117,4,2031,23,17,203104,2031),('2031-04-24',203117,4,2031,24,17,203104,2031),('2031-04-25',203117,4,2031,25,17,203104,2031),('2031-04-26',203117,4,2031,26,17,203104,2031),('2031-04-27',203118,4,2031,27,18,203104,2031),('2031-04-28',203118,4,2031,28,18,203104,2031),('2031-04-29',203118,4,2031,29,18,203104,2031),('2031-04-30',203118,4,2031,30,18,203104,2031),('2031-05-01',203118,5,2031,1,18,203105,2031),('2031-05-02',203118,5,2031,2,18,203105,2031),('2031-05-03',203118,5,2031,3,18,203105,2031),('2031-05-04',203119,5,2031,4,19,203105,2031),('2031-05-05',203119,5,2031,5,19,203105,2031),('2031-05-06',203119,5,2031,6,19,203105,2031),('2031-05-07',203119,5,2031,7,19,203105,2031),('2031-05-08',203119,5,2031,8,19,203105,2031),('2031-05-09',203119,5,2031,9,19,203105,2031),('2031-05-10',203119,5,2031,10,19,203105,2031),('2031-05-11',203120,5,2031,11,20,203105,2031),('2031-05-12',203120,5,2031,12,20,203105,2031),('2031-05-13',203120,5,2031,13,20,203105,2031),('2031-05-14',203120,5,2031,14,20,203105,2031),('2031-05-15',203120,5,2031,15,20,203105,2031),('2031-05-16',203120,5,2031,16,20,203105,2031),('2031-05-17',203120,5,2031,17,20,203105,2031),('2031-05-18',203121,5,2031,18,21,203105,2031),('2031-05-19',203121,5,2031,19,21,203105,2031),('2031-05-20',203121,5,2031,20,21,203105,2031),('2031-05-21',203121,5,2031,21,21,203105,2031),('2031-05-22',203121,5,2031,22,21,203105,2031),('2031-05-23',203121,5,2031,23,21,203105,2031),('2031-05-24',203121,5,2031,24,21,203105,2031),('2031-05-25',203122,5,2031,25,22,203105,2031),('2031-05-26',203122,5,2031,26,22,203105,2031),('2031-05-27',203122,5,2031,27,22,203105,2031),('2031-05-28',203122,5,2031,28,22,203105,2031),('2031-05-29',203122,5,2031,29,22,203105,2031),('2031-05-30',203122,5,2031,30,22,203105,2031),('2031-05-31',203122,5,2031,31,22,203105,2031),('2031-06-01',203123,6,2031,1,23,203106,2031),('2031-06-02',203123,6,2031,2,23,203106,2031),('2031-06-03',203123,6,2031,3,23,203106,2031),('2031-06-04',203123,6,2031,4,23,203106,2031),('2031-06-05',203123,6,2031,5,23,203106,2031),('2031-06-06',203123,6,2031,6,23,203106,2031),('2031-06-07',203123,6,2031,7,23,203106,2031),('2031-06-08',203124,6,2031,8,24,203106,2031),('2031-06-09',203124,6,2031,9,24,203106,2031),('2031-06-10',203124,6,2031,10,24,203106,2031),('2031-06-11',203124,6,2031,11,24,203106,2031),('2031-06-12',203124,6,2031,12,24,203106,2031),('2031-06-13',203124,6,2031,13,24,203106,2031),('2031-06-14',203124,6,2031,14,24,203106,2031),('2031-06-15',203125,6,2031,15,25,203106,2031),('2031-06-16',203125,6,2031,16,25,203106,2031),('2031-06-17',203125,6,2031,17,25,203106,2031),('2031-06-18',203125,6,2031,18,25,203106,2031),('2031-06-19',203125,6,2031,19,25,203106,2031),('2031-06-20',203125,6,2031,20,25,203106,2031),('2031-06-21',203125,6,2031,21,25,203106,2031),('2031-06-22',203126,6,2031,22,26,203106,2031),('2031-06-23',203126,6,2031,23,26,203106,2031),('2031-06-24',203126,6,2031,24,26,203106,2031),('2031-06-25',203126,6,2031,25,26,203106,2031),('2031-06-26',203126,6,2031,26,26,203106,2031),('2031-06-27',203126,6,2031,27,26,203106,2031),('2031-06-28',203126,6,2031,28,26,203106,2031),('2031-06-29',203127,6,2031,29,27,203106,2031),('2031-06-30',203127,6,2031,30,27,203106,2031),('2031-07-01',203127,7,2031,1,27,203107,2031),('2031-07-02',203127,7,2031,2,27,203107,2031),('2031-07-03',203127,7,2031,3,27,203107,2031),('2031-07-04',203127,7,2031,4,27,203107,2031),('2031-07-05',203127,7,2031,5,27,203107,2031),('2031-07-06',203128,7,2031,6,28,203107,2031),('2031-07-07',203128,7,2031,7,28,203107,2031),('2031-07-08',203128,7,2031,8,28,203107,2031),('2031-07-09',203128,7,2031,9,28,203107,2031),('2031-07-10',203128,7,2031,10,28,203107,2031),('2031-07-11',203128,7,2031,11,28,203107,2031),('2031-07-12',203128,7,2031,12,28,203107,2031),('2031-07-13',203129,7,2031,13,29,203107,2031),('2031-07-14',203129,7,2031,14,29,203107,2031),('2031-07-15',203129,7,2031,15,29,203107,2031),('2031-07-16',203129,7,2031,16,29,203107,2031),('2031-07-17',203129,7,2031,17,29,203107,2031),('2031-07-18',203129,7,2031,18,29,203107,2031),('2031-07-19',203129,7,2031,19,29,203107,2031),('2031-07-20',203130,7,2031,20,30,203107,2031),('2031-07-21',203130,7,2031,21,30,203107,2031),('2031-07-22',203130,7,2031,22,30,203107,2031),('2031-07-23',203130,7,2031,23,30,203107,2031),('2031-07-24',203130,7,2031,24,30,203107,2031),('2031-07-25',203130,7,2031,25,30,203107,2031),('2031-07-26',203130,7,2031,26,30,203107,2031),('2031-07-27',203131,7,2031,27,31,203107,2031),('2031-07-28',203131,7,2031,28,31,203107,2031),('2031-07-29',203131,7,2031,29,31,203107,2031),('2031-07-30',203131,7,2031,30,31,203107,2031),('2031-07-31',203131,7,2031,31,31,203107,2031),('2031-08-01',203131,8,2031,1,31,203108,2031),('2031-08-02',203131,8,2031,2,31,203108,2031),('2031-08-03',203132,8,2031,3,32,203108,2031),('2031-08-04',203132,8,2031,4,32,203108,2031),('2031-08-05',203132,8,2031,5,32,203108,2031),('2031-08-06',203132,8,2031,6,32,203108,2031),('2031-08-07',203132,8,2031,7,32,203108,2031),('2031-08-08',203132,8,2031,8,32,203108,2031),('2031-08-09',203132,8,2031,9,32,203108,2031),('2031-08-10',203133,8,2031,10,33,203108,2031),('2031-08-11',203133,8,2031,11,33,203108,2031),('2031-08-12',203133,8,2031,12,33,203108,2031),('2031-08-13',203133,8,2031,13,33,203108,2031),('2031-08-14',203133,8,2031,14,33,203108,2031),('2031-08-15',203133,8,2031,15,33,203108,2031),('2031-08-16',203133,8,2031,16,33,203108,2031),('2031-08-17',203134,8,2031,17,34,203108,2031),('2031-08-18',203134,8,2031,18,34,203108,2031),('2031-08-19',203134,8,2031,19,34,203108,2031),('2031-08-20',203134,8,2031,20,34,203108,2031),('2031-08-21',203134,8,2031,21,34,203108,2031),('2031-08-22',203134,8,2031,22,34,203108,2031),('2031-08-23',203134,8,2031,23,34,203108,2031),('2031-08-24',203135,8,2031,24,35,203108,2031),('2031-08-25',203135,8,2031,25,35,203108,2031),('2031-08-26',203135,8,2031,26,35,203108,2031),('2031-08-27',203135,8,2031,27,35,203108,2031),('2031-08-28',203135,8,2031,28,35,203108,2031),('2031-08-29',203135,8,2031,29,35,203108,2031),('2031-08-30',203135,8,2031,30,35,203108,2031),('2031-08-31',203136,8,2031,31,36,203108,2031),('2031-09-01',203136,9,2031,1,36,203109,2031),('2031-09-02',203136,9,2031,2,36,203109,2031),('2031-09-03',203136,9,2031,3,36,203109,2031),('2031-09-04',203136,9,2031,4,36,203109,2031),('2031-09-05',203136,9,2031,5,36,203109,2031),('2031-09-06',203136,9,2031,6,36,203109,2031),('2031-09-07',203137,9,2031,7,37,203109,2031),('2031-09-08',203137,9,2031,8,37,203109,2031),('2031-09-09',203137,9,2031,9,37,203109,2031),('2031-09-10',203137,9,2031,10,37,203109,2031),('2031-09-11',203137,9,2031,11,37,203109,2031),('2031-09-12',203137,9,2031,12,37,203109,2031),('2031-09-13',203137,9,2031,13,37,203109,2031),('2031-09-14',203138,9,2031,14,38,203109,2031),('2031-09-15',203138,9,2031,15,38,203109,2031),('2031-09-16',203138,9,2031,16,38,203109,2031),('2031-09-17',203138,9,2031,17,38,203109,2031),('2031-09-18',203138,9,2031,18,38,203109,2031),('2031-09-19',203138,9,2031,19,38,203109,2031),('2031-09-20',203138,9,2031,20,38,203109,2031),('2031-09-21',203139,9,2031,21,39,203109,2031),('2031-09-22',203139,9,2031,22,39,203109,2031),('2031-09-23',203139,9,2031,23,39,203109,2031),('2031-09-24',203139,9,2031,24,39,203109,2031),('2031-09-25',203139,9,2031,25,39,203109,2031),('2031-09-26',203139,9,2031,26,39,203109,2031),('2031-09-27',203139,9,2031,27,39,203109,2031),('2031-09-28',203140,9,2031,28,40,203109,2031),('2031-09-29',203140,9,2031,29,40,203109,2031),('2031-09-30',203140,9,2031,30,40,203109,2031),('2031-10-01',203140,10,2031,1,40,203110,2031),('2031-10-02',203140,10,2031,2,40,203110,2031),('2031-10-03',203140,10,2031,3,40,203110,2031),('2031-10-04',203140,10,2031,4,40,203110,2031),('2031-10-05',203141,10,2031,5,41,203110,2031),('2031-10-06',203141,10,2031,6,41,203110,2031),('2031-10-07',203141,10,2031,7,41,203110,2031),('2031-10-08',203141,10,2031,8,41,203110,2031),('2031-10-09',203141,10,2031,9,41,203110,2031),('2031-10-10',203141,10,2031,10,41,203110,2031),('2031-10-11',203141,10,2031,11,41,203110,2031),('2031-10-12',203142,10,2031,12,42,203110,2031),('2031-10-13',203142,10,2031,13,42,203110,2031),('2031-10-14',203142,10,2031,14,42,203110,2031),('2031-10-15',203142,10,2031,15,42,203110,2031),('2031-10-16',203142,10,2031,16,42,203110,2031),('2031-10-17',203142,10,2031,17,42,203110,2031),('2031-10-18',203142,10,2031,18,42,203110,2031),('2031-10-19',203143,10,2031,19,43,203110,2031),('2031-10-20',203143,10,2031,20,43,203110,2031),('2031-10-21',203143,10,2031,21,43,203110,2031),('2031-10-22',203143,10,2031,22,43,203110,2031),('2031-10-23',203143,10,2031,23,43,203110,2031),('2031-10-24',203143,10,2031,24,43,203110,2031),('2031-10-25',203143,10,2031,25,43,203110,2031),('2031-10-26',203144,10,2031,26,44,203110,2031),('2031-10-27',203144,10,2031,27,44,203110,2031),('2031-10-28',203144,10,2031,28,44,203110,2031),('2031-10-29',203144,10,2031,29,44,203110,2031),('2031-10-30',203144,10,2031,30,44,203110,2031),('2031-10-31',203144,10,2031,31,44,203110,2031),('2031-11-01',203144,11,2031,1,44,203111,2031),('2031-11-02',203145,11,2031,2,45,203111,2031),('2031-11-03',203145,11,2031,3,45,203111,2031),('2031-11-04',203145,11,2031,4,45,203111,2031),('2031-11-05',203145,11,2031,5,45,203111,2031),('2031-11-06',203145,11,2031,6,45,203111,2031),('2031-11-07',203145,11,2031,7,45,203111,2031),('2031-11-08',203145,11,2031,8,45,203111,2031),('2031-11-09',203146,11,2031,9,46,203111,2031),('2031-11-10',203146,11,2031,10,46,203111,2031),('2031-11-11',203146,11,2031,11,46,203111,2031),('2031-11-12',203146,11,2031,12,46,203111,2031),('2031-11-13',203146,11,2031,13,46,203111,2031),('2031-11-14',203146,11,2031,14,46,203111,2031),('2031-11-15',203146,11,2031,15,46,203111,2031),('2031-11-16',203147,11,2031,16,47,203111,2031),('2031-11-17',203147,11,2031,17,47,203111,2031),('2031-11-18',203147,11,2031,18,47,203111,2031),('2031-11-19',203147,11,2031,19,47,203111,2031),('2031-11-20',203147,11,2031,20,47,203111,2031),('2031-11-21',203147,11,2031,21,47,203111,2031),('2031-11-22',203147,11,2031,22,47,203111,2031),('2031-11-23',203148,11,2031,23,48,203111,2031),('2031-11-24',203148,11,2031,24,48,203111,2031),('2031-11-25',203148,11,2031,25,48,203111,2031),('2031-11-26',203148,11,2031,26,48,203111,2031),('2031-11-27',203148,11,2031,27,48,203111,2031),('2031-11-28',203148,11,2031,28,48,203111,2031),('2031-11-29',203148,11,2031,29,48,203111,2031),('2031-11-30',203149,11,2031,30,49,203111,2031),('2031-12-01',203149,12,2031,1,49,203112,2032),('2031-12-02',203149,12,2031,2,49,203112,2032),('2031-12-03',203149,12,2031,3,49,203112,2032),('2031-12-04',203149,12,2031,4,49,203112,2032),('2031-12-05',203149,12,2031,5,49,203112,2032),('2031-12-06',203149,12,2031,6,49,203112,2032),('2031-12-07',203150,12,2031,7,50,203112,2032),('2031-12-08',203150,12,2031,8,50,203112,2032),('2031-12-09',203150,12,2031,9,50,203112,2032),('2031-12-10',203150,12,2031,10,50,203112,2032),('2031-12-11',203150,12,2031,11,50,203112,2032),('2031-12-12',203150,12,2031,12,50,203112,2032),('2031-12-13',203150,12,2031,13,50,203112,2032),('2031-12-14',203151,12,2031,14,51,203112,2032),('2031-12-15',203151,12,2031,15,51,203112,2032),('2031-12-16',203151,12,2031,16,51,203112,2032),('2031-12-17',203151,12,2031,17,51,203112,2032),('2031-12-18',203151,12,2031,18,51,203112,2032),('2031-12-19',203151,12,2031,19,51,203112,2032),('2031-12-20',203151,12,2031,20,51,203112,2032),('2031-12-21',203152,12,2031,21,52,203112,2032),('2031-12-22',203152,12,2031,22,52,203112,2032),('2031-12-23',203152,12,2031,23,52,203112,2032),('2031-12-24',203152,12,2031,24,52,203112,2032),('2031-12-25',203152,12,2031,25,52,203112,2032),('2031-12-26',203152,12,2031,26,52,203112,2032),('2031-12-27',203152,12,2031,27,52,203112,2032),('2031-12-28',203153,12,2031,28,53,203112,2032),('2031-12-29',203101,12,2031,29,53,203112,2032),('2031-12-30',203101,12,2031,30,53,203112,2032),('2031-12-31',203101,12,2031,31,53,203112,2032),('2032-01-01',203201,1,2032,1,53,203201,2032),('2032-01-02',203201,1,2032,2,53,203201,2032),('2032-01-03',203201,1,2032,3,53,203201,2032),('2032-01-04',203202,1,2032,4,1,203201,2032),('2032-01-05',203202,1,2032,5,1,203201,2032),('2032-01-06',203202,1,2032,6,1,203201,2032),('2032-01-07',203202,1,2032,7,1,203201,2032),('2032-01-08',203202,1,2032,8,1,203201,2032),('2032-01-09',203202,1,2032,9,1,203201,2032),('2032-01-10',203202,1,2032,10,1,203201,2032),('2032-01-11',203203,1,2032,11,2,203201,2032),('2032-01-12',203203,1,2032,12,2,203201,2032),('2032-01-13',203203,1,2032,13,2,203201,2032),('2032-01-14',203203,1,2032,14,2,203201,2032),('2032-01-15',203203,1,2032,15,2,203201,2032),('2032-01-16',203203,1,2032,16,2,203201,2032),('2032-01-17',203203,1,2032,17,2,203201,2032),('2032-01-18',203204,1,2032,18,3,203201,2032),('2032-01-19',203204,1,2032,19,3,203201,2032),('2032-01-20',203204,1,2032,20,3,203201,2032),('2032-01-21',203204,1,2032,21,3,203201,2032),('2032-01-22',203204,1,2032,22,3,203201,2032),('2032-01-23',203204,1,2032,23,3,203201,2032),('2032-01-24',203204,1,2032,24,3,203201,2032),('2032-01-25',203205,1,2032,25,4,203201,2032),('2032-01-26',203205,1,2032,26,4,203201,2032),('2032-01-27',203205,1,2032,27,4,203201,2032),('2032-01-28',203205,1,2032,28,4,203201,2032),('2032-01-29',203205,1,2032,29,4,203201,2032),('2032-01-30',203205,1,2032,30,4,203201,2032),('2032-01-31',203205,1,2032,31,4,203201,2032),('2032-02-01',203206,2,2032,1,5,203202,2032),('2032-02-02',203206,2,2032,2,5,203202,2032),('2032-02-03',203206,2,2032,3,5,203202,2032),('2032-02-04',203206,2,2032,4,5,203202,2032),('2032-02-05',203206,2,2032,5,5,203202,2032),('2032-02-06',203206,2,2032,6,5,203202,2032),('2032-02-07',203206,2,2032,7,5,203202,2032),('2032-02-08',203207,2,2032,8,6,203202,2032),('2032-02-09',203207,2,2032,9,6,203202,2032),('2032-02-10',203207,2,2032,10,6,203202,2032),('2032-02-11',203207,2,2032,11,6,203202,2032),('2032-02-12',203207,2,2032,12,6,203202,2032),('2032-02-13',203207,2,2032,13,6,203202,2032),('2032-02-14',203207,2,2032,14,6,203202,2032),('2032-02-15',203208,2,2032,15,7,203202,2032),('2032-02-16',203208,2,2032,16,7,203202,2032),('2032-02-17',203208,2,2032,17,7,203202,2032),('2032-02-18',203208,2,2032,18,7,203202,2032),('2032-02-19',203208,2,2032,19,7,203202,2032),('2032-02-20',203208,2,2032,20,7,203202,2032),('2032-02-21',203208,2,2032,21,7,203202,2032),('2032-02-22',203209,2,2032,22,8,203202,2032),('2032-02-23',203209,2,2032,23,8,203202,2032),('2032-02-24',203209,2,2032,24,8,203202,2032),('2032-02-25',203209,2,2032,25,8,203202,2032),('2032-02-26',203209,2,2032,26,8,203202,2032),('2032-02-27',203209,2,2032,27,8,203202,2032),('2032-02-28',203209,2,2032,28,8,203202,2032),('2032-02-29',203210,2,2032,29,9,203202,2032),('2032-03-01',203210,3,2032,1,9,203203,2032),('2032-03-02',203210,3,2032,2,9,203203,2032),('2032-03-03',203210,3,2032,3,9,203203,2032),('2032-03-04',203210,3,2032,4,9,203203,2032),('2032-03-05',203210,3,2032,5,9,203203,2032),('2032-03-06',203210,3,2032,6,9,203203,2032),('2032-03-07',203211,3,2032,7,10,203203,2032),('2032-03-08',203211,3,2032,8,10,203203,2032),('2032-03-09',203211,3,2032,9,10,203203,2032),('2032-03-10',203211,3,2032,10,10,203203,2032),('2032-03-11',203211,3,2032,11,10,203203,2032),('2032-03-12',203211,3,2032,12,10,203203,2032),('2032-03-13',203211,3,2032,13,10,203203,2032),('2032-03-14',203212,3,2032,14,11,203203,2032),('2032-03-15',203212,3,2032,15,11,203203,2032),('2032-03-16',203212,3,2032,16,11,203203,2032),('2032-03-17',203212,3,2032,17,11,203203,2032),('2032-03-18',203212,3,2032,18,11,203203,2032),('2032-03-19',203212,3,2032,19,11,203203,2032),('2032-03-20',203212,3,2032,20,11,203203,2032),('2032-03-21',203213,3,2032,21,12,203203,2032),('2032-03-22',203213,3,2032,22,12,203203,2032),('2032-03-23',203213,3,2032,23,12,203203,2032),('2032-03-24',203213,3,2032,24,12,203203,2032),('2032-03-25',203213,3,2032,25,12,203203,2032),('2032-03-26',203213,3,2032,26,12,203203,2032),('2032-03-27',203213,3,2032,27,12,203203,2032),('2032-03-28',203214,3,2032,28,13,203203,2032),('2032-03-29',203214,3,2032,29,13,203203,2032),('2032-03-30',203214,3,2032,30,13,203203,2032),('2032-03-31',203214,3,2032,31,13,203203,2032),('2032-04-01',203214,4,2032,1,13,203204,2032),('2032-04-02',203214,4,2032,2,13,203204,2032),('2032-04-03',203214,4,2032,3,13,203204,2032),('2032-04-04',203215,4,2032,4,14,203204,2032),('2032-04-05',203215,4,2032,5,14,203204,2032),('2032-04-06',203215,4,2032,6,14,203204,2032),('2032-04-07',203215,4,2032,7,14,203204,2032),('2032-04-08',203215,4,2032,8,14,203204,2032),('2032-04-09',203215,4,2032,9,14,203204,2032),('2032-04-10',203215,4,2032,10,14,203204,2032),('2032-04-11',203216,4,2032,11,15,203204,2032),('2032-04-12',203216,4,2032,12,15,203204,2032),('2032-04-13',203216,4,2032,13,15,203204,2032),('2032-04-14',203216,4,2032,14,15,203204,2032),('2032-04-15',203216,4,2032,15,15,203204,2032),('2032-04-16',203216,4,2032,16,15,203204,2032),('2032-04-17',203216,4,2032,17,15,203204,2032),('2032-04-18',203217,4,2032,18,16,203204,2032),('2032-04-19',203217,4,2032,19,16,203204,2032),('2032-04-20',203217,4,2032,20,16,203204,2032),('2032-04-21',203217,4,2032,21,16,203204,2032),('2032-04-22',203217,4,2032,22,16,203204,2032),('2032-04-23',203217,4,2032,23,16,203204,2032),('2032-04-24',203217,4,2032,24,16,203204,2032),('2032-04-25',203218,4,2032,25,17,203204,2032),('2032-04-26',203218,4,2032,26,17,203204,2032),('2032-04-27',203218,4,2032,27,17,203204,2032),('2032-04-28',203218,4,2032,28,17,203204,2032),('2032-04-29',203218,4,2032,29,17,203204,2032),('2032-04-30',203218,4,2032,30,17,203204,2032),('2032-05-01',203218,5,2032,1,17,203205,2032),('2032-05-02',203219,5,2032,2,18,203205,2032),('2032-05-03',203219,5,2032,3,18,203205,2032),('2032-05-04',203219,5,2032,4,18,203205,2032),('2032-05-05',203219,5,2032,5,18,203205,2032),('2032-05-06',203219,5,2032,6,18,203205,2032),('2032-05-07',203219,5,2032,7,18,203205,2032),('2032-05-08',203219,5,2032,8,18,203205,2032),('2032-05-09',203220,5,2032,9,19,203205,2032),('2032-05-10',203220,5,2032,10,19,203205,2032),('2032-05-11',203220,5,2032,11,19,203205,2032),('2032-05-12',203220,5,2032,12,19,203205,2032),('2032-05-13',203220,5,2032,13,19,203205,2032),('2032-05-14',203220,5,2032,14,19,203205,2032),('2032-05-15',203220,5,2032,15,19,203205,2032),('2032-05-16',203221,5,2032,16,20,203205,2032),('2032-05-17',203221,5,2032,17,20,203205,2032),('2032-05-18',203221,5,2032,18,20,203205,2032),('2032-05-19',203221,5,2032,19,20,203205,2032),('2032-05-20',203221,5,2032,20,20,203205,2032),('2032-05-21',203221,5,2032,21,20,203205,2032),('2032-05-22',203221,5,2032,22,20,203205,2032),('2032-05-23',203222,5,2032,23,21,203205,2032),('2032-05-24',203222,5,2032,24,21,203205,2032),('2032-05-25',203222,5,2032,25,21,203205,2032),('2032-05-26',203222,5,2032,26,21,203205,2032),('2032-05-27',203222,5,2032,27,21,203205,2032),('2032-05-28',203222,5,2032,28,21,203205,2032),('2032-05-29',203222,5,2032,29,21,203205,2032),('2032-05-30',203223,5,2032,30,22,203205,2032),('2032-05-31',203223,5,2032,31,22,203205,2032),('2032-06-01',203223,6,2032,1,22,203206,2032),('2032-06-02',203223,6,2032,2,22,203206,2032),('2032-06-03',203223,6,2032,3,22,203206,2032),('2032-06-04',203223,6,2032,4,22,203206,2032),('2032-06-05',203223,6,2032,5,22,203206,2032),('2032-06-06',203224,6,2032,6,23,203206,2032),('2032-06-07',203224,6,2032,7,23,203206,2032),('2032-06-08',203224,6,2032,8,23,203206,2032),('2032-06-09',203224,6,2032,9,23,203206,2032),('2032-06-10',203224,6,2032,10,23,203206,2032),('2032-06-11',203224,6,2032,11,23,203206,2032),('2032-06-12',203224,6,2032,12,23,203206,2032),('2032-06-13',203225,6,2032,13,24,203206,2032),('2032-06-14',203225,6,2032,14,24,203206,2032),('2032-06-15',203225,6,2032,15,24,203206,2032),('2032-06-16',203225,6,2032,16,24,203206,2032),('2032-06-17',203225,6,2032,17,24,203206,2032),('2032-06-18',203225,6,2032,18,24,203206,2032),('2032-06-19',203225,6,2032,19,24,203206,2032),('2032-06-20',203226,6,2032,20,25,203206,2032),('2032-06-21',203226,6,2032,21,25,203206,2032),('2032-06-22',203226,6,2032,22,25,203206,2032),('2032-06-23',203226,6,2032,23,25,203206,2032),('2032-06-24',203226,6,2032,24,25,203206,2032),('2032-06-25',203226,6,2032,25,25,203206,2032),('2032-06-26',203226,6,2032,26,25,203206,2032),('2032-06-27',203227,6,2032,27,26,203206,2032),('2032-06-28',203227,6,2032,28,26,203206,2032),('2032-06-29',203227,6,2032,29,26,203206,2032),('2032-06-30',203227,6,2032,30,26,203206,2032),('2032-07-01',203227,7,2032,1,26,203207,2032),('2032-07-02',203227,7,2032,2,26,203207,2032),('2032-07-03',203227,7,2032,3,26,203207,2032),('2032-07-04',203228,7,2032,4,27,203207,2032),('2032-07-05',203228,7,2032,5,27,203207,2032),('2032-07-06',203228,7,2032,6,27,203207,2032),('2032-07-07',203228,7,2032,7,27,203207,2032),('2032-07-08',203228,7,2032,8,27,203207,2032),('2032-07-09',203228,7,2032,9,27,203207,2032),('2032-07-10',203228,7,2032,10,27,203207,2032),('2032-07-11',203229,7,2032,11,28,203207,2032),('2032-07-12',203229,7,2032,12,28,203207,2032),('2032-07-13',203229,7,2032,13,28,203207,2032),('2032-07-14',203229,7,2032,14,28,203207,2032),('2032-07-15',203229,7,2032,15,28,203207,2032),('2032-07-16',203229,7,2032,16,28,203207,2032),('2032-07-17',203229,7,2032,17,28,203207,2032),('2032-07-18',203230,7,2032,18,29,203207,2032),('2032-07-19',203230,7,2032,19,29,203207,2032),('2032-07-20',203230,7,2032,20,29,203207,2032),('2032-07-21',203230,7,2032,21,29,203207,2032),('2032-07-22',203230,7,2032,22,29,203207,2032),('2032-07-23',203230,7,2032,23,29,203207,2032),('2032-07-24',203230,7,2032,24,29,203207,2032),('2032-07-25',203231,7,2032,25,30,203207,2032),('2032-07-26',203231,7,2032,26,30,203207,2032),('2032-07-27',203231,7,2032,27,30,203207,2032),('2032-07-28',203231,7,2032,28,30,203207,2032),('2032-07-29',203231,7,2032,29,30,203207,2032),('2032-07-30',203231,7,2032,30,30,203207,2032),('2032-07-31',203231,7,2032,31,30,203207,2032),('2032-08-01',203232,8,2032,1,31,203208,2032),('2032-08-02',203232,8,2032,2,31,203208,2032),('2032-08-03',203232,8,2032,3,31,203208,2032),('2032-08-04',203232,8,2032,4,31,203208,2032),('2032-08-05',203232,8,2032,5,31,203208,2032),('2032-08-06',203232,8,2032,6,31,203208,2032),('2032-08-07',203232,8,2032,7,31,203208,2032),('2032-08-08',203233,8,2032,8,32,203208,2032),('2032-08-09',203233,8,2032,9,32,203208,2032),('2032-08-10',203233,8,2032,10,32,203208,2032),('2032-08-11',203233,8,2032,11,32,203208,2032),('2032-08-12',203233,8,2032,12,32,203208,2032),('2032-08-13',203233,8,2032,13,32,203208,2032),('2032-08-14',203233,8,2032,14,32,203208,2032),('2032-08-15',203234,8,2032,15,33,203208,2032),('2032-08-16',203234,8,2032,16,33,203208,2032),('2032-08-17',203234,8,2032,17,33,203208,2032),('2032-08-18',203234,8,2032,18,33,203208,2032),('2032-08-19',203234,8,2032,19,33,203208,2032),('2032-08-20',203234,8,2032,20,33,203208,2032),('2032-08-21',203234,8,2032,21,33,203208,2032),('2032-08-22',203235,8,2032,22,34,203208,2032),('2032-08-23',203235,8,2032,23,34,203208,2032),('2032-08-24',203235,8,2032,24,34,203208,2032),('2032-08-25',203235,8,2032,25,34,203208,2032),('2032-08-26',203235,8,2032,26,34,203208,2032),('2032-08-27',203235,8,2032,27,34,203208,2032),('2032-08-28',203235,8,2032,28,34,203208,2032),('2032-08-29',203236,8,2032,29,35,203208,2032),('2032-08-30',203236,8,2032,30,35,203208,2032),('2032-08-31',203236,8,2032,31,35,203208,2032),('2032-09-01',203236,9,2032,1,35,203209,2032),('2032-09-02',203236,9,2032,2,35,203209,2032),('2032-09-03',203236,9,2032,3,35,203209,2032),('2032-09-04',203236,9,2032,4,35,203209,2032),('2032-09-05',203237,9,2032,5,36,203209,2032),('2032-09-06',203237,9,2032,6,36,203209,2032),('2032-09-07',203237,9,2032,7,36,203209,2032),('2032-09-08',203237,9,2032,8,36,203209,2032),('2032-09-09',203237,9,2032,9,36,203209,2032),('2032-09-10',203237,9,2032,10,36,203209,2032),('2032-09-11',203237,9,2032,11,36,203209,2032),('2032-09-12',203238,9,2032,12,37,203209,2032),('2032-09-13',203238,9,2032,13,37,203209,2032),('2032-09-14',203238,9,2032,14,37,203209,2032),('2032-09-15',203238,9,2032,15,37,203209,2032),('2032-09-16',203238,9,2032,16,37,203209,2032),('2032-09-17',203238,9,2032,17,37,203209,2032),('2032-09-18',203238,9,2032,18,37,203209,2032),('2032-09-19',203239,9,2032,19,38,203209,2032),('2032-09-20',203239,9,2032,20,38,203209,2032),('2032-09-21',203239,9,2032,21,38,203209,2032),('2032-09-22',203239,9,2032,22,38,203209,2032),('2032-09-23',203239,9,2032,23,38,203209,2032),('2032-09-24',203239,9,2032,24,38,203209,2032),('2032-09-25',203239,9,2032,25,38,203209,2032),('2032-09-26',203240,9,2032,26,39,203209,2032),('2032-09-27',203240,9,2032,27,39,203209,2032),('2032-09-28',203240,9,2032,28,39,203209,2032),('2032-09-29',203240,9,2032,29,39,203209,2032),('2032-09-30',203240,9,2032,30,39,203209,2032),('2032-10-01',203240,10,2032,1,39,203210,2032),('2032-10-02',203240,10,2032,2,39,203210,2032),('2032-10-03',203241,10,2032,3,40,203210,2032),('2032-10-04',203241,10,2032,4,40,203210,2032),('2032-10-05',203241,10,2032,5,40,203210,2032),('2032-10-06',203241,10,2032,6,40,203210,2032),('2032-10-07',203241,10,2032,7,40,203210,2032),('2032-10-08',203241,10,2032,8,40,203210,2032),('2032-10-09',203241,10,2032,9,40,203210,2032),('2032-10-10',203242,10,2032,10,41,203210,2032),('2032-10-11',203242,10,2032,11,41,203210,2032),('2032-10-12',203242,10,2032,12,41,203210,2032),('2032-10-13',203242,10,2032,13,41,203210,2032),('2032-10-14',203242,10,2032,14,41,203210,2032),('2032-10-15',203242,10,2032,15,41,203210,2032),('2032-10-16',203242,10,2032,16,41,203210,2032),('2032-10-17',203243,10,2032,17,42,203210,2032),('2032-10-18',203243,10,2032,18,42,203210,2032),('2032-10-19',203243,10,2032,19,42,203210,2032),('2032-10-20',203243,10,2032,20,42,203210,2032),('2032-10-21',203243,10,2032,21,42,203210,2032),('2032-10-22',203243,10,2032,22,42,203210,2032),('2032-10-23',203243,10,2032,23,42,203210,2032),('2032-10-24',203244,10,2032,24,43,203210,2032),('2032-10-25',203244,10,2032,25,43,203210,2032),('2032-10-26',203244,10,2032,26,43,203210,2032),('2032-10-27',203244,10,2032,27,43,203210,2032),('2032-10-28',203244,10,2032,28,43,203210,2032),('2032-10-29',203244,10,2032,29,43,203210,2032),('2032-10-30',203244,10,2032,30,43,203210,2032),('2032-10-31',203245,10,2032,31,44,203210,2032),('2032-11-01',203245,11,2032,1,44,203211,2032),('2032-11-02',203245,11,2032,2,44,203211,2032),('2032-11-03',203245,11,2032,3,44,203211,2032),('2032-11-04',203245,11,2032,4,44,203211,2032),('2032-11-05',203245,11,2032,5,44,203211,2032),('2032-11-06',203245,11,2032,6,44,203211,2032),('2032-11-07',203246,11,2032,7,45,203211,2032),('2032-11-08',203246,11,2032,8,45,203211,2032),('2032-11-09',203246,11,2032,9,45,203211,2032),('2032-11-10',203246,11,2032,10,45,203211,2032),('2032-11-11',203246,11,2032,11,45,203211,2032),('2032-11-12',203246,11,2032,12,45,203211,2032),('2032-11-13',203246,11,2032,13,45,203211,2032),('2032-11-14',203247,11,2032,14,46,203211,2032),('2032-11-15',203247,11,2032,15,46,203211,2032),('2032-11-16',203247,11,2032,16,46,203211,2032),('2032-11-17',203247,11,2032,17,46,203211,2032),('2032-11-18',203247,11,2032,18,46,203211,2032),('2032-11-19',203247,11,2032,19,46,203211,2032),('2032-11-20',203247,11,2032,20,46,203211,2032),('2032-11-21',203248,11,2032,21,47,203211,2032),('2032-11-22',203248,11,2032,22,47,203211,2032),('2032-11-23',203248,11,2032,23,47,203211,2032),('2032-11-24',203248,11,2032,24,47,203211,2032),('2032-11-25',203248,11,2032,25,47,203211,2032),('2032-11-26',203248,11,2032,26,47,203211,2032),('2032-11-27',203248,11,2032,27,47,203211,2032),('2032-11-28',203249,11,2032,28,48,203211,2032),('2032-11-29',203249,11,2032,29,48,203211,2032),('2032-11-30',203249,11,2032,30,48,203211,2032),('2032-12-01',203249,12,2032,1,48,203212,2033),('2032-12-02',203249,12,2032,2,48,203212,2033),('2032-12-03',203249,12,2032,3,48,203212,2033),('2032-12-04',203249,12,2032,4,48,203212,2033),('2032-12-05',203250,12,2032,5,49,203212,2033),('2032-12-06',203250,12,2032,6,49,203212,2033),('2032-12-07',203250,12,2032,7,49,203212,2033),('2032-12-08',203250,12,2032,8,49,203212,2033),('2032-12-09',203250,12,2032,9,49,203212,2033),('2032-12-10',203250,12,2032,10,49,203212,2033),('2032-12-11',203250,12,2032,11,49,203212,2033),('2032-12-12',203251,12,2032,12,50,203212,2033),('2032-12-13',203251,12,2032,13,50,203212,2033),('2032-12-14',203251,12,2032,14,50,203212,2033),('2032-12-15',203251,12,2032,15,50,203212,2033),('2032-12-16',203251,12,2032,16,50,203212,2033),('2032-12-17',203251,12,2032,17,50,203212,2033),('2032-12-18',203251,12,2032,18,50,203212,2033),('2032-12-19',203252,12,2032,19,51,203212,2033),('2032-12-20',203252,12,2032,20,51,203212,2033),('2032-12-21',203252,12,2032,21,51,203212,2033),('2032-12-22',203252,12,2032,22,51,203212,2033),('2032-12-23',203252,12,2032,23,51,203212,2033),('2032-12-24',203252,12,2032,24,51,203212,2033),('2032-12-25',203252,12,2032,25,51,203212,2033),('2032-12-26',203253,12,2032,26,52,203212,2033),('2032-12-27',203253,12,2032,27,52,203212,2033),('2032-12-28',203253,12,2032,28,52,203212,2033),('2032-12-29',203253,12,2032,29,52,203212,2033),('2032-12-30',203253,12,2032,30,52,203212,2033),('2032-12-31',203253,12,2032,31,52,203212,2033),('2033-01-01',203353,1,2033,1,52,203301,2033),('2033-01-02',203354,1,2033,2,1,203301,2033),('2033-01-03',203301,1,2033,3,1,203301,2033),('2033-01-04',203301,1,2033,4,1,203301,2033),('2033-01-05',203301,1,2033,5,1,203301,2033),('2033-01-06',203301,1,2033,6,1,203301,2033),('2033-01-07',203301,1,2033,7,1,203301,2033),('2033-01-08',203301,1,2033,8,1,203301,2033),('2033-01-09',203302,1,2033,9,2,203301,2033),('2033-01-10',203302,1,2033,10,2,203301,2033),('2033-01-11',203302,1,2033,11,2,203301,2033),('2033-01-12',203302,1,2033,12,2,203301,2033),('2033-01-13',203302,1,2033,13,2,203301,2033),('2033-01-14',203302,1,2033,14,2,203301,2033),('2033-01-15',203302,1,2033,15,2,203301,2033),('2033-01-16',203303,1,2033,16,3,203301,2033),('2033-01-17',203303,1,2033,17,3,203301,2033),('2033-01-18',203303,1,2033,18,3,203301,2033),('2033-01-19',203303,1,2033,19,3,203301,2033),('2033-01-20',203303,1,2033,20,3,203301,2033),('2033-01-21',203303,1,2033,21,3,203301,2033),('2033-01-22',203303,1,2033,22,3,203301,2033),('2033-01-23',203304,1,2033,23,4,203301,2033),('2033-01-24',203304,1,2033,24,4,203301,2033),('2033-01-25',203304,1,2033,25,4,203301,2033),('2033-01-26',203304,1,2033,26,4,203301,2033),('2033-01-27',203304,1,2033,27,4,203301,2033),('2033-01-28',203304,1,2033,28,4,203301,2033),('2033-01-29',203304,1,2033,29,4,203301,2033),('2033-01-30',203305,1,2033,30,5,203301,2033),('2033-01-31',203305,1,2033,31,5,203301,2033),('2033-02-01',203305,2,2033,1,5,203302,2033),('2033-02-02',203305,2,2033,2,5,203302,2033),('2033-02-03',203305,2,2033,3,5,203302,2033),('2033-02-04',203305,2,2033,4,5,203302,2033),('2033-02-05',203305,2,2033,5,5,203302,2033),('2033-02-06',203306,2,2033,6,6,203302,2033),('2033-02-07',203306,2,2033,7,6,203302,2033),('2033-02-08',203306,2,2033,8,6,203302,2033),('2033-02-09',203306,2,2033,9,6,203302,2033),('2033-02-10',203306,2,2033,10,6,203302,2033),('2033-02-11',203306,2,2033,11,6,203302,2033),('2033-02-12',203306,2,2033,12,6,203302,2033),('2033-02-13',203307,2,2033,13,7,203302,2033),('2033-02-14',203307,2,2033,14,7,203302,2033),('2033-02-15',203307,2,2033,15,7,203302,2033),('2033-02-16',203307,2,2033,16,7,203302,2033),('2033-02-17',203307,2,2033,17,7,203302,2033),('2033-02-18',203307,2,2033,18,7,203302,2033),('2033-02-19',203307,2,2033,19,7,203302,2033),('2033-02-20',203308,2,2033,20,8,203302,2033),('2033-02-21',203308,2,2033,21,8,203302,2033),('2033-02-22',203308,2,2033,22,8,203302,2033),('2033-02-23',203308,2,2033,23,8,203302,2033),('2033-02-24',203308,2,2033,24,8,203302,2033),('2033-02-25',203308,2,2033,25,8,203302,2033),('2033-02-26',203308,2,2033,26,8,203302,2033),('2033-02-27',203309,2,2033,27,9,203302,2033),('2033-02-28',203309,2,2033,28,9,203302,2033),('2033-03-01',203309,3,2033,1,9,203303,2033),('2033-03-02',203309,3,2033,2,9,203303,2033),('2033-03-03',203309,3,2033,3,9,203303,2033),('2033-03-04',203309,3,2033,4,9,203303,2033),('2033-03-05',203309,3,2033,5,9,203303,2033),('2033-03-06',203310,3,2033,6,10,203303,2033),('2033-03-07',203310,3,2033,7,10,203303,2033),('2033-03-08',203310,3,2033,8,10,203303,2033),('2033-03-09',203310,3,2033,9,10,203303,2033),('2033-03-10',203310,3,2033,10,10,203303,2033),('2033-03-11',203310,3,2033,11,10,203303,2033),('2033-03-12',203310,3,2033,12,10,203303,2033),('2033-03-13',203311,3,2033,13,11,203303,2033),('2033-03-14',203311,3,2033,14,11,203303,2033),('2033-03-15',203311,3,2033,15,11,203303,2033),('2033-03-16',203311,3,2033,16,11,203303,2033),('2033-03-17',203311,3,2033,17,11,203303,2033),('2033-03-18',203311,3,2033,18,11,203303,2033),('2033-03-19',203311,3,2033,19,11,203303,2033),('2033-03-20',203312,3,2033,20,12,203303,2033),('2033-03-21',203312,3,2033,21,12,203303,2033),('2033-03-22',203312,3,2033,22,12,203303,2033),('2033-03-23',203312,3,2033,23,12,203303,2033),('2033-03-24',203312,3,2033,24,12,203303,2033),('2033-03-25',203312,3,2033,25,12,203303,2033),('2033-03-26',203312,3,2033,26,12,203303,2033),('2033-03-27',203313,3,2033,27,13,203303,2033),('2033-03-28',203313,3,2033,28,13,203303,2033),('2033-03-29',203313,3,2033,29,13,203303,2033),('2033-03-30',203313,3,2033,30,13,203303,2033),('2033-03-31',203313,3,2033,31,13,203303,2033),('2033-04-01',203313,4,2033,1,13,203304,2033),('2033-04-02',203313,4,2033,2,13,203304,2033),('2033-04-03',203314,4,2033,3,14,203304,2033),('2033-04-04',203314,4,2033,4,14,203304,2033),('2033-04-05',203314,4,2033,5,14,203304,2033),('2033-04-06',203314,4,2033,6,14,203304,2033),('2033-04-07',203314,4,2033,7,14,203304,2033),('2033-04-08',203314,4,2033,8,14,203304,2033),('2033-04-09',203314,4,2033,9,14,203304,2033),('2033-04-10',203315,4,2033,10,15,203304,2033),('2033-04-11',203315,4,2033,11,15,203304,2033),('2033-04-12',203315,4,2033,12,15,203304,2033),('2033-04-13',203315,4,2033,13,15,203304,2033),('2033-04-14',203315,4,2033,14,15,203304,2033),('2033-04-15',203315,4,2033,15,15,203304,2033),('2033-04-16',203315,4,2033,16,15,203304,2033),('2033-04-17',203316,4,2033,17,16,203304,2033),('2033-04-18',203316,4,2033,18,16,203304,2033),('2033-04-19',203316,4,2033,19,16,203304,2033),('2033-04-20',203316,4,2033,20,16,203304,2033),('2033-04-21',203316,4,2033,21,16,203304,2033),('2033-04-22',203316,4,2033,22,16,203304,2033),('2033-04-23',203316,4,2033,23,16,203304,2033),('2033-04-24',203317,4,2033,24,17,203304,2033),('2033-04-25',203317,4,2033,25,17,203304,2033),('2033-04-26',203317,4,2033,26,17,203304,2033),('2033-04-27',203317,4,2033,27,17,203304,2033),('2033-04-28',203317,4,2033,28,17,203304,2033),('2033-04-29',203317,4,2033,29,17,203304,2033),('2033-04-30',203317,4,2033,30,17,203304,2033),('2033-05-01',203318,5,2033,1,18,203305,2033),('2033-05-02',203318,5,2033,2,18,203305,2033),('2033-05-03',203318,5,2033,3,18,203305,2033),('2033-05-04',203318,5,2033,4,18,203305,2033),('2033-05-05',203318,5,2033,5,18,203305,2033),('2033-05-06',203318,5,2033,6,18,203305,2033),('2033-05-07',203318,5,2033,7,18,203305,2033),('2033-05-08',203319,5,2033,8,19,203305,2033),('2033-05-09',203319,5,2033,9,19,203305,2033),('2033-05-10',203319,5,2033,10,19,203305,2033),('2033-05-11',203319,5,2033,11,19,203305,2033),('2033-05-12',203319,5,2033,12,19,203305,2033),('2033-05-13',203319,5,2033,13,19,203305,2033),('2033-05-14',203319,5,2033,14,19,203305,2033),('2033-05-15',203320,5,2033,15,20,203305,2033),('2033-05-16',203320,5,2033,16,20,203305,2033),('2033-05-17',203320,5,2033,17,20,203305,2033),('2033-05-18',203320,5,2033,18,20,203305,2033),('2033-05-19',203320,5,2033,19,20,203305,2033),('2033-05-20',203320,5,2033,20,20,203305,2033),('2033-05-21',203320,5,2033,21,20,203305,2033),('2033-05-22',203321,5,2033,22,21,203305,2033),('2033-05-23',203321,5,2033,23,21,203305,2033),('2033-05-24',203321,5,2033,24,21,203305,2033),('2033-05-25',203321,5,2033,25,21,203305,2033),('2033-05-26',203321,5,2033,26,21,203305,2033),('2033-05-27',203321,5,2033,27,21,203305,2033),('2033-05-28',203321,5,2033,28,21,203305,2033),('2033-05-29',203322,5,2033,29,22,203305,2033),('2033-05-30',203322,5,2033,30,22,203305,2033),('2033-05-31',203322,5,2033,31,22,203305,2033),('2033-06-01',203322,6,2033,1,22,203306,2033),('2033-06-02',203322,6,2033,2,22,203306,2033),('2033-06-03',203322,6,2033,3,22,203306,2033),('2033-06-04',203322,6,2033,4,22,203306,2033),('2033-06-05',203323,6,2033,5,23,203306,2033),('2033-06-06',203323,6,2033,6,23,203306,2033),('2033-06-07',203323,6,2033,7,23,203306,2033),('2033-06-08',203323,6,2033,8,23,203306,2033),('2033-06-09',203323,6,2033,9,23,203306,2033),('2033-06-10',203323,6,2033,10,23,203306,2033),('2033-06-11',203323,6,2033,11,23,203306,2033),('2033-06-12',203324,6,2033,12,24,203306,2033),('2033-06-13',203324,6,2033,13,24,203306,2033),('2033-06-14',203324,6,2033,14,24,203306,2033),('2033-06-15',203324,6,2033,15,24,203306,2033),('2033-06-16',203324,6,2033,16,24,203306,2033),('2033-06-17',203324,6,2033,17,24,203306,2033),('2033-06-18',203324,6,2033,18,24,203306,2033),('2033-06-19',203325,6,2033,19,25,203306,2033),('2033-06-20',203325,6,2033,20,25,203306,2033),('2033-06-21',203325,6,2033,21,25,203306,2033),('2033-06-22',203325,6,2033,22,25,203306,2033),('2033-06-23',203325,6,2033,23,25,203306,2033),('2033-06-24',203325,6,2033,24,25,203306,2033),('2033-06-25',203325,6,2033,25,25,203306,2033),('2033-06-26',203326,6,2033,26,26,203306,2033),('2033-06-27',203326,6,2033,27,26,203306,2033),('2033-06-28',203326,6,2033,28,26,203306,2033),('2033-06-29',203326,6,2033,29,26,203306,2033),('2033-06-30',203326,6,2033,30,26,203306,2033),('2033-07-01',203326,7,2033,1,26,203307,2033),('2033-07-02',203326,7,2033,2,26,203307,2033),('2033-07-03',203327,7,2033,3,27,203307,2033),('2033-07-04',203327,7,2033,4,27,203307,2033),('2033-07-05',203327,7,2033,5,27,203307,2033),('2033-07-06',203327,7,2033,6,27,203307,2033),('2033-07-07',203327,7,2033,7,27,203307,2033),('2033-07-08',203327,7,2033,8,27,203307,2033),('2033-07-09',203327,7,2033,9,27,203307,2033),('2033-07-10',203328,7,2033,10,28,203307,2033),('2033-07-11',203328,7,2033,11,28,203307,2033),('2033-07-12',203328,7,2033,12,28,203307,2033),('2033-07-13',203328,7,2033,13,28,203307,2033),('2033-07-14',203328,7,2033,14,28,203307,2033),('2033-07-15',203328,7,2033,15,28,203307,2033),('2033-07-16',203328,7,2033,16,28,203307,2033),('2033-07-17',203329,7,2033,17,29,203307,2033),('2033-07-18',203329,7,2033,18,29,203307,2033),('2033-07-19',203329,7,2033,19,29,203307,2033),('2033-07-20',203329,7,2033,20,29,203307,2033),('2033-07-21',203329,7,2033,21,29,203307,2033),('2033-07-22',203329,7,2033,22,29,203307,2033),('2033-07-23',203329,7,2033,23,29,203307,2033),('2033-07-24',203330,7,2033,24,30,203307,2033),('2033-07-25',203330,7,2033,25,30,203307,2033),('2033-07-26',203330,7,2033,26,30,203307,2033),('2033-07-27',203330,7,2033,27,30,203307,2033),('2033-07-28',203330,7,2033,28,30,203307,2033),('2033-07-29',203330,7,2033,29,30,203307,2033),('2033-07-30',203330,7,2033,30,30,203307,2033),('2033-07-31',203331,7,2033,31,31,203307,2033),('2033-08-01',203331,8,2033,1,31,203308,2033),('2033-08-02',203331,8,2033,2,31,203308,2033),('2033-08-03',203331,8,2033,3,31,203308,2033),('2033-08-04',203331,8,2033,4,31,203308,2033),('2033-08-05',203331,8,2033,5,31,203308,2033),('2033-08-06',203331,8,2033,6,31,203308,2033),('2033-08-07',203332,8,2033,7,32,203308,2033),('2033-08-08',203332,8,2033,8,32,203308,2033),('2033-08-09',203332,8,2033,9,32,203308,2033),('2033-08-10',203332,8,2033,10,32,203308,2033),('2033-08-11',203332,8,2033,11,32,203308,2033),('2033-08-12',203332,8,2033,12,32,203308,2033),('2033-08-13',203332,8,2033,13,32,203308,2033),('2033-08-14',203333,8,2033,14,33,203308,2033),('2033-08-15',203333,8,2033,15,33,203308,2033),('2033-08-16',203333,8,2033,16,33,203308,2033),('2033-08-17',203333,8,2033,17,33,203308,2033),('2033-08-18',203333,8,2033,18,33,203308,2033),('2033-08-19',203333,8,2033,19,33,203308,2033),('2033-08-20',203333,8,2033,20,33,203308,2033),('2033-08-21',203334,8,2033,21,34,203308,2033),('2033-08-22',203334,8,2033,22,34,203308,2033),('2033-08-23',203334,8,2033,23,34,203308,2033),('2033-08-24',203334,8,2033,24,34,203308,2033),('2033-08-25',203334,8,2033,25,34,203308,2033),('2033-08-26',203334,8,2033,26,34,203308,2033),('2033-08-27',203334,8,2033,27,34,203308,2033),('2033-08-28',203335,8,2033,28,35,203308,2033),('2033-08-29',203335,8,2033,29,35,203308,2033),('2033-08-30',203335,8,2033,30,35,203308,2033),('2033-08-31',203335,8,2033,31,35,203308,2033),('2033-09-01',203335,9,2033,1,35,203309,2033),('2033-09-02',203335,9,2033,2,35,203309,2033),('2033-09-03',203335,9,2033,3,35,203309,2033),('2033-09-04',203336,9,2033,4,36,203309,2033),('2033-09-05',203336,9,2033,5,36,203309,2033),('2033-09-06',203336,9,2033,6,36,203309,2033),('2033-09-07',203336,9,2033,7,36,203309,2033),('2033-09-08',203336,9,2033,8,36,203309,2033),('2033-09-09',203336,9,2033,9,36,203309,2033),('2033-09-10',203336,9,2033,10,36,203309,2033),('2033-09-11',203337,9,2033,11,37,203309,2033),('2033-09-12',203337,9,2033,12,37,203309,2033),('2033-09-13',203337,9,2033,13,37,203309,2033),('2033-09-14',203337,9,2033,14,37,203309,2033),('2033-09-15',203337,9,2033,15,37,203309,2033),('2033-09-16',203337,9,2033,16,37,203309,2033),('2033-09-17',203337,9,2033,17,37,203309,2033),('2033-09-18',203338,9,2033,18,38,203309,2033),('2033-09-19',203338,9,2033,19,38,203309,2033),('2033-09-20',203338,9,2033,20,38,203309,2033),('2033-09-21',203338,9,2033,21,38,203309,2033),('2033-09-22',203338,9,2033,22,38,203309,2033),('2033-09-23',203338,9,2033,23,38,203309,2033),('2033-09-24',203338,9,2033,24,38,203309,2033),('2033-09-25',203339,9,2033,25,39,203309,2033),('2033-09-26',203339,9,2033,26,39,203309,2033),('2033-09-27',203339,9,2033,27,39,203309,2033),('2033-09-28',203339,9,2033,28,39,203309,2033),('2033-09-29',203339,9,2033,29,39,203309,2033),('2033-09-30',203339,9,2033,30,39,203309,2033),('2033-10-01',203339,10,2033,1,39,203310,2033),('2033-10-02',203340,10,2033,2,40,203310,2033),('2033-10-03',203340,10,2033,3,40,203310,2033),('2033-10-04',203340,10,2033,4,40,203310,2033),('2033-10-05',203340,10,2033,5,40,203310,2033),('2033-10-06',203340,10,2033,6,40,203310,2033),('2033-10-07',203340,10,2033,7,40,203310,2033),('2033-10-08',203340,10,2033,8,40,203310,2033),('2033-10-09',203341,10,2033,9,41,203310,2033),('2033-10-10',203341,10,2033,10,41,203310,2033),('2033-10-11',203341,10,2033,11,41,203310,2033),('2033-10-12',203341,10,2033,12,41,203310,2033),('2033-10-13',203341,10,2033,13,41,203310,2033),('2033-10-14',203341,10,2033,14,41,203310,2033),('2033-10-15',203341,10,2033,15,41,203310,2033),('2033-10-16',203342,10,2033,16,42,203310,2033),('2033-10-17',203342,10,2033,17,42,203310,2033),('2033-10-18',203342,10,2033,18,42,203310,2033),('2033-10-19',203342,10,2033,19,42,203310,2033),('2033-10-20',203342,10,2033,20,42,203310,2033),('2033-10-21',203342,10,2033,21,42,203310,2033),('2033-10-22',203342,10,2033,22,42,203310,2033),('2033-10-23',203343,10,2033,23,43,203310,2033),('2033-10-24',203343,10,2033,24,43,203310,2033),('2033-10-25',203343,10,2033,25,43,203310,2033),('2033-10-26',203343,10,2033,26,43,203310,2033),('2033-10-27',203343,10,2033,27,43,203310,2033),('2033-10-28',203343,10,2033,28,43,203310,2033),('2033-10-29',203343,10,2033,29,43,203310,2033),('2033-10-30',203344,10,2033,30,44,203310,2033),('2033-10-31',203344,10,2033,31,44,203310,2033),('2033-11-01',203344,11,2033,1,44,203311,2033),('2033-11-02',203344,11,2033,2,44,203311,2033),('2033-11-03',203344,11,2033,3,44,203311,2033),('2033-11-04',203344,11,2033,4,44,203311,2033),('2033-11-05',203344,11,2033,5,44,203311,2033),('2033-11-06',203345,11,2033,6,45,203311,2033),('2033-11-07',203345,11,2033,7,45,203311,2033),('2033-11-08',203345,11,2033,8,45,203311,2033),('2033-11-09',203345,11,2033,9,45,203311,2033),('2033-11-10',203345,11,2033,10,45,203311,2033),('2033-11-11',203345,11,2033,11,45,203311,2033),('2033-11-12',203345,11,2033,12,45,203311,2033),('2033-11-13',203346,11,2033,13,46,203311,2033),('2033-11-14',203346,11,2033,14,46,203311,2033),('2033-11-15',203346,11,2033,15,46,203311,2033),('2033-11-16',203346,11,2033,16,46,203311,2033),('2033-11-17',203346,11,2033,17,46,203311,2033),('2033-11-18',203346,11,2033,18,46,203311,2033),('2033-11-19',203346,11,2033,19,46,203311,2033),('2033-11-20',203347,11,2033,20,47,203311,2033),('2033-11-21',203347,11,2033,21,47,203311,2033),('2033-11-22',203347,11,2033,22,47,203311,2033),('2033-11-23',203347,11,2033,23,47,203311,2033),('2033-11-24',203347,11,2033,24,47,203311,2033),('2033-11-25',203347,11,2033,25,47,203311,2033),('2033-11-26',203347,11,2033,26,47,203311,2033),('2033-11-27',203348,11,2033,27,48,203311,2033),('2033-11-28',203348,11,2033,28,48,203311,2033),('2033-11-29',203348,11,2033,29,48,203311,2033),('2033-11-30',203348,11,2033,30,48,203311,2033),('2033-12-01',203348,12,2033,1,48,203312,2034),('2033-12-02',203348,12,2033,2,48,203312,2034),('2033-12-03',203348,12,2033,3,48,203312,2034),('2033-12-04',203349,12,2033,4,49,203312,2034),('2033-12-05',203349,12,2033,5,49,203312,2034),('2033-12-06',203349,12,2033,6,49,203312,2034),('2033-12-07',203349,12,2033,7,49,203312,2034),('2033-12-08',203349,12,2033,8,49,203312,2034),('2033-12-09',203349,12,2033,9,49,203312,2034),('2033-12-10',203349,12,2033,10,49,203312,2034),('2033-12-11',203350,12,2033,11,50,203312,2034),('2033-12-12',203350,12,2033,12,50,203312,2034),('2033-12-13',203350,12,2033,13,50,203312,2034),('2033-12-14',203350,12,2033,14,50,203312,2034),('2033-12-15',203350,12,2033,15,50,203312,2034),('2033-12-16',203350,12,2033,16,50,203312,2034),('2033-12-17',203350,12,2033,17,50,203312,2034),('2033-12-18',203351,12,2033,18,51,203312,2034),('2033-12-19',203351,12,2033,19,51,203312,2034),('2033-12-20',203351,12,2033,20,51,203312,2034),('2033-12-21',203351,12,2033,21,51,203312,2034),('2033-12-22',203351,12,2033,22,51,203312,2034),('2033-12-23',203351,12,2033,23,51,203312,2034),('2033-12-24',203351,12,2033,24,51,203312,2034),('2033-12-25',203352,12,2033,25,52,203312,2034),('2033-12-26',203352,12,2033,26,52,203312,2034),('2033-12-27',203352,12,2033,27,52,203312,2034),('2033-12-28',203352,12,2033,28,52,203312,2034),('2033-12-29',203352,12,2033,29,52,203312,2034),('2033-12-30',203352,12,2033,30,52,203312,2034),('2033-12-31',203352,12,2033,31,52,203312,2034),('2034-01-01',203453,1,2034,1,1,203401,2034),('2034-01-02',203401,1,2034,2,1,203401,2034),('2034-01-03',203401,1,2034,3,1,203401,2034),('2034-01-04',203401,1,2034,4,1,203401,2034),('2034-01-05',203401,1,2034,5,1,203401,2034),('2034-01-06',203401,1,2034,6,1,203401,2034),('2034-01-07',203401,1,2034,7,1,203401,2034),('2034-01-08',203402,1,2034,8,2,203401,2034),('2034-01-09',203402,1,2034,9,2,203401,2034),('2034-01-10',203402,1,2034,10,2,203401,2034),('2034-01-11',203402,1,2034,11,2,203401,2034),('2034-01-12',203402,1,2034,12,2,203401,2034),('2034-01-13',203402,1,2034,13,2,203401,2034),('2034-01-14',203402,1,2034,14,2,203401,2034),('2034-01-15',203403,1,2034,15,3,203401,2034),('2034-01-16',203403,1,2034,16,3,203401,2034),('2034-01-17',203403,1,2034,17,3,203401,2034),('2034-01-18',203403,1,2034,18,3,203401,2034),('2034-01-19',203403,1,2034,19,3,203401,2034),('2034-01-20',203403,1,2034,20,3,203401,2034),('2034-01-21',203403,1,2034,21,3,203401,2034),('2034-01-22',203404,1,2034,22,4,203401,2034),('2034-01-23',203404,1,2034,23,4,203401,2034),('2034-01-24',203404,1,2034,24,4,203401,2034),('2034-01-25',203404,1,2034,25,4,203401,2034),('2034-01-26',203404,1,2034,26,4,203401,2034),('2034-01-27',203404,1,2034,27,4,203401,2034),('2034-01-28',203404,1,2034,28,4,203401,2034),('2034-01-29',203405,1,2034,29,5,203401,2034),('2034-01-30',203405,1,2034,30,5,203401,2034),('2034-01-31',203405,1,2034,31,5,203401,2034),('2034-02-01',203405,2,2034,1,5,203402,2034),('2034-02-02',203405,2,2034,2,5,203402,2034),('2034-02-03',203405,2,2034,3,5,203402,2034),('2034-02-04',203405,2,2034,4,5,203402,2034),('2034-02-05',203406,2,2034,5,6,203402,2034),('2034-02-06',203406,2,2034,6,6,203402,2034),('2034-02-07',203406,2,2034,7,6,203402,2034),('2034-02-08',203406,2,2034,8,6,203402,2034),('2034-02-09',203406,2,2034,9,6,203402,2034),('2034-02-10',203406,2,2034,10,6,203402,2034),('2034-02-11',203406,2,2034,11,6,203402,2034),('2034-02-12',203407,2,2034,12,7,203402,2034),('2034-02-13',203407,2,2034,13,7,203402,2034),('2034-02-14',203407,2,2034,14,7,203402,2034),('2034-02-15',203407,2,2034,15,7,203402,2034),('2034-02-16',203407,2,2034,16,7,203402,2034),('2034-02-17',203407,2,2034,17,7,203402,2034),('2034-02-18',203407,2,2034,18,7,203402,2034),('2034-02-19',203408,2,2034,19,8,203402,2034),('2034-02-20',203408,2,2034,20,8,203402,2034),('2034-02-21',203408,2,2034,21,8,203402,2034),('2034-02-22',203408,2,2034,22,8,203402,2034),('2034-02-23',203408,2,2034,23,8,203402,2034),('2034-02-24',203408,2,2034,24,8,203402,2034),('2034-02-25',203408,2,2034,25,8,203402,2034),('2034-02-26',203409,2,2034,26,9,203402,2034),('2034-02-27',203409,2,2034,27,9,203402,2034),('2034-02-28',203409,2,2034,28,9,203402,2034),('2034-03-01',203409,3,2034,1,9,203403,2034),('2034-03-02',203409,3,2034,2,9,203403,2034),('2034-03-03',203409,3,2034,3,9,203403,2034),('2034-03-04',203409,3,2034,4,9,203403,2034),('2034-03-05',203410,3,2034,5,10,203403,2034),('2034-03-06',203410,3,2034,6,10,203403,2034),('2034-03-07',203410,3,2034,7,10,203403,2034),('2034-03-08',203410,3,2034,8,10,203403,2034),('2034-03-09',203410,3,2034,9,10,203403,2034),('2034-03-10',203410,3,2034,10,10,203403,2034),('2034-03-11',203410,3,2034,11,10,203403,2034),('2034-03-12',203411,3,2034,12,11,203403,2034),('2034-03-13',203411,3,2034,13,11,203403,2034),('2034-03-14',203411,3,2034,14,11,203403,2034),('2034-03-15',203411,3,2034,15,11,203403,2034),('2034-03-16',203411,3,2034,16,11,203403,2034),('2034-03-17',203411,3,2034,17,11,203403,2034),('2034-03-18',203411,3,2034,18,11,203403,2034),('2034-03-19',203412,3,2034,19,12,203403,2034),('2034-03-20',203412,3,2034,20,12,203403,2034),('2034-03-21',203412,3,2034,21,12,203403,2034),('2034-03-22',203412,3,2034,22,12,203403,2034),('2034-03-23',203412,3,2034,23,12,203403,2034),('2034-03-24',203412,3,2034,24,12,203403,2034),('2034-03-25',203412,3,2034,25,12,203403,2034),('2034-03-26',203413,3,2034,26,13,203403,2034),('2034-03-27',203413,3,2034,27,13,203403,2034),('2034-03-28',203413,3,2034,28,13,203403,2034),('2034-03-29',203413,3,2034,29,13,203403,2034),('2034-03-30',203413,3,2034,30,13,203403,2034),('2034-03-31',203413,3,2034,31,13,203403,2034),('2034-04-01',203413,4,2034,1,13,203404,2034),('2034-04-02',203414,4,2034,2,14,203404,2034),('2034-04-03',203414,4,2034,3,14,203404,2034),('2034-04-04',203414,4,2034,4,14,203404,2034),('2034-04-05',203414,4,2034,5,14,203404,2034),('2034-04-06',203414,4,2034,6,14,203404,2034),('2034-04-07',203414,4,2034,7,14,203404,2034),('2034-04-08',203414,4,2034,8,14,203404,2034),('2034-04-09',203415,4,2034,9,15,203404,2034),('2034-04-10',203415,4,2034,10,15,203404,2034),('2034-04-11',203415,4,2034,11,15,203404,2034),('2034-04-12',203415,4,2034,12,15,203404,2034),('2034-04-13',203415,4,2034,13,15,203404,2034),('2034-04-14',203415,4,2034,14,15,203404,2034),('2034-04-15',203415,4,2034,15,15,203404,2034),('2034-04-16',203416,4,2034,16,16,203404,2034),('2034-04-17',203416,4,2034,17,16,203404,2034),('2034-04-18',203416,4,2034,18,16,203404,2034),('2034-04-19',203416,4,2034,19,16,203404,2034),('2034-04-20',203416,4,2034,20,16,203404,2034),('2034-04-21',203416,4,2034,21,16,203404,2034),('2034-04-22',203416,4,2034,22,16,203404,2034),('2034-04-23',203417,4,2034,23,17,203404,2034),('2034-04-24',203417,4,2034,24,17,203404,2034),('2034-04-25',203417,4,2034,25,17,203404,2034),('2034-04-26',203417,4,2034,26,17,203404,2034),('2034-04-27',203417,4,2034,27,17,203404,2034),('2034-04-28',203417,4,2034,28,17,203404,2034),('2034-04-29',203417,4,2034,29,17,203404,2034),('2034-04-30',203418,4,2034,30,18,203404,2034),('2034-05-01',203418,5,2034,1,18,203405,2034),('2034-05-02',203418,5,2034,2,18,203405,2034),('2034-05-03',203418,5,2034,3,18,203405,2034),('2034-05-04',203418,5,2034,4,18,203405,2034),('2034-05-05',203418,5,2034,5,18,203405,2034),('2034-05-06',203418,5,2034,6,18,203405,2034),('2034-05-07',203419,5,2034,7,19,203405,2034),('2034-05-08',203419,5,2034,8,19,203405,2034),('2034-05-09',203419,5,2034,9,19,203405,2034),('2034-05-10',203419,5,2034,10,19,203405,2034),('2034-05-11',203419,5,2034,11,19,203405,2034),('2034-05-12',203419,5,2034,12,19,203405,2034),('2034-05-13',203419,5,2034,13,19,203405,2034),('2034-05-14',203420,5,2034,14,20,203405,2034),('2034-05-15',203420,5,2034,15,20,203405,2034),('2034-05-16',203420,5,2034,16,20,203405,2034),('2034-05-17',203420,5,2034,17,20,203405,2034),('2034-05-18',203420,5,2034,18,20,203405,2034),('2034-05-19',203420,5,2034,19,20,203405,2034),('2034-05-20',203420,5,2034,20,20,203405,2034),('2034-05-21',203421,5,2034,21,21,203405,2034),('2034-05-22',203421,5,2034,22,21,203405,2034),('2034-05-23',203421,5,2034,23,21,203405,2034),('2034-05-24',203421,5,2034,24,21,203405,2034),('2034-05-25',203421,5,2034,25,21,203405,2034),('2034-05-26',203421,5,2034,26,21,203405,2034),('2034-05-27',203421,5,2034,27,21,203405,2034),('2034-05-28',203422,5,2034,28,22,203405,2034),('2034-05-29',203422,5,2034,29,22,203405,2034),('2034-05-30',203422,5,2034,30,22,203405,2034),('2034-05-31',203422,5,2034,31,22,203405,2034),('2034-06-01',203422,6,2034,1,22,203406,2034),('2034-06-02',203422,6,2034,2,22,203406,2034),('2034-06-03',203422,6,2034,3,22,203406,2034),('2034-06-04',203423,6,2034,4,23,203406,2034),('2034-06-05',203423,6,2034,5,23,203406,2034),('2034-06-06',203423,6,2034,6,23,203406,2034),('2034-06-07',203423,6,2034,7,23,203406,2034),('2034-06-08',203423,6,2034,8,23,203406,2034),('2034-06-09',203423,6,2034,9,23,203406,2034),('2034-06-10',203423,6,2034,10,23,203406,2034),('2034-06-11',203424,6,2034,11,24,203406,2034),('2034-06-12',203424,6,2034,12,24,203406,2034),('2034-06-13',203424,6,2034,13,24,203406,2034),('2034-06-14',203424,6,2034,14,24,203406,2034),('2034-06-15',203424,6,2034,15,24,203406,2034),('2034-06-16',203424,6,2034,16,24,203406,2034),('2034-06-17',203424,6,2034,17,24,203406,2034),('2034-06-18',203425,6,2034,18,25,203406,2034),('2034-06-19',203425,6,2034,19,25,203406,2034),('2034-06-20',203425,6,2034,20,25,203406,2034),('2034-06-21',203425,6,2034,21,25,203406,2034),('2034-06-22',203425,6,2034,22,25,203406,2034),('2034-06-23',203425,6,2034,23,25,203406,2034),('2034-06-24',203425,6,2034,24,25,203406,2034),('2034-06-25',203426,6,2034,25,26,203406,2034),('2034-06-26',203426,6,2034,26,26,203406,2034),('2034-06-27',203426,6,2034,27,26,203406,2034),('2034-06-28',203426,6,2034,28,26,203406,2034),('2034-06-29',203426,6,2034,29,26,203406,2034),('2034-06-30',203426,6,2034,30,26,203406,2034),('2034-07-01',203426,7,2034,1,26,203407,2034),('2034-07-02',203427,7,2034,2,27,203407,2034),('2034-07-03',203427,7,2034,3,27,203407,2034),('2034-07-04',203427,7,2034,4,27,203407,2034),('2034-07-05',203427,7,2034,5,27,203407,2034),('2034-07-06',203427,7,2034,6,27,203407,2034),('2034-07-07',203427,7,2034,7,27,203407,2034),('2034-07-08',203427,7,2034,8,27,203407,2034),('2034-07-09',203428,7,2034,9,28,203407,2034),('2034-07-10',203428,7,2034,10,28,203407,2034),('2034-07-11',203428,7,2034,11,28,203407,2034),('2034-07-12',203428,7,2034,12,28,203407,2034),('2034-07-13',203428,7,2034,13,28,203407,2034),('2034-07-14',203428,7,2034,14,28,203407,2034),('2034-07-15',203428,7,2034,15,28,203407,2034),('2034-07-16',203429,7,2034,16,29,203407,2034),('2034-07-17',203429,7,2034,17,29,203407,2034),('2034-07-18',203429,7,2034,18,29,203407,2034),('2034-07-19',203429,7,2034,19,29,203407,2034),('2034-07-20',203429,7,2034,20,29,203407,2034),('2034-07-21',203429,7,2034,21,29,203407,2034),('2034-07-22',203429,7,2034,22,29,203407,2034),('2034-07-23',203430,7,2034,23,30,203407,2034),('2034-07-24',203430,7,2034,24,30,203407,2034),('2034-07-25',203430,7,2034,25,30,203407,2034),('2034-07-26',203430,7,2034,26,30,203407,2034),('2034-07-27',203430,7,2034,27,30,203407,2034),('2034-07-28',203430,7,2034,28,30,203407,2034),('2034-07-29',203430,7,2034,29,30,203407,2034),('2034-07-30',203431,7,2034,30,31,203407,2034),('2034-07-31',203431,7,2034,31,31,203407,2034),('2034-08-01',203431,8,2034,1,31,203408,2034),('2034-08-02',203431,8,2034,2,31,203408,2034),('2034-08-03',203431,8,2034,3,31,203408,2034),('2034-08-04',203431,8,2034,4,31,203408,2034),('2034-08-05',203431,8,2034,5,31,203408,2034),('2034-08-06',203432,8,2034,6,32,203408,2034),('2034-08-07',203432,8,2034,7,32,203408,2034),('2034-08-08',203432,8,2034,8,32,203408,2034),('2034-08-09',203432,8,2034,9,32,203408,2034),('2034-08-10',203432,8,2034,10,32,203408,2034),('2034-08-11',203432,8,2034,11,32,203408,2034),('2034-08-12',203432,8,2034,12,32,203408,2034),('2034-08-13',203433,8,2034,13,33,203408,2034),('2034-08-14',203433,8,2034,14,33,203408,2034),('2034-08-15',203433,8,2034,15,33,203408,2034),('2034-08-16',203433,8,2034,16,33,203408,2034),('2034-08-17',203433,8,2034,17,33,203408,2034),('2034-08-18',203433,8,2034,18,33,203408,2034),('2034-08-19',203433,8,2034,19,33,203408,2034),('2034-08-20',203434,8,2034,20,34,203408,2034),('2034-08-21',203434,8,2034,21,34,203408,2034),('2034-08-22',203434,8,2034,22,34,203408,2034),('2034-08-23',203434,8,2034,23,34,203408,2034),('2034-08-24',203434,8,2034,24,34,203408,2034),('2034-08-25',203434,8,2034,25,34,203408,2034),('2034-08-26',203434,8,2034,26,34,203408,2034),('2034-08-27',203435,8,2034,27,35,203408,2034),('2034-08-28',203435,8,2034,28,35,203408,2034),('2034-08-29',203435,8,2034,29,35,203408,2034),('2034-08-30',203435,8,2034,30,35,203408,2034),('2034-08-31',203435,8,2034,31,35,203408,2034),('2034-09-01',203435,9,2034,1,35,203409,2034),('2034-09-02',203435,9,2034,2,35,203409,2034),('2034-09-03',203436,9,2034,3,36,203409,2034),('2034-09-04',203436,9,2034,4,36,203409,2034),('2034-09-05',203436,9,2034,5,36,203409,2034),('2034-09-06',203436,9,2034,6,36,203409,2034),('2034-09-07',203436,9,2034,7,36,203409,2034),('2034-09-08',203436,9,2034,8,36,203409,2034),('2034-09-09',203436,9,2034,9,36,203409,2034),('2034-09-10',203437,9,2034,10,37,203409,2034),('2034-09-11',203437,9,2034,11,37,203409,2034),('2034-09-12',203437,9,2034,12,37,203409,2034),('2034-09-13',203437,9,2034,13,37,203409,2034),('2034-09-14',203437,9,2034,14,37,203409,2034),('2034-09-15',203437,9,2034,15,37,203409,2034),('2034-09-16',203437,9,2034,16,37,203409,2034),('2034-09-17',203438,9,2034,17,38,203409,2034),('2034-09-18',203438,9,2034,18,38,203409,2034),('2034-09-19',203438,9,2034,19,38,203409,2034),('2034-09-20',203438,9,2034,20,38,203409,2034),('2034-09-21',203438,9,2034,21,38,203409,2034),('2034-09-22',203438,9,2034,22,38,203409,2034),('2034-09-23',203438,9,2034,23,38,203409,2034),('2034-09-24',203439,9,2034,24,39,203409,2034),('2034-09-25',203439,9,2034,25,39,203409,2034),('2034-09-26',203439,9,2034,26,39,203409,2034),('2034-09-27',203439,9,2034,27,39,203409,2034),('2034-09-28',203439,9,2034,28,39,203409,2034),('2034-09-29',203439,9,2034,29,39,203409,2034),('2034-09-30',203439,9,2034,30,39,203409,2034),('2034-10-01',203440,10,2034,1,40,203410,2034),('2034-10-02',203440,10,2034,2,40,203410,2034),('2034-10-03',203440,10,2034,3,40,203410,2034),('2034-10-04',203440,10,2034,4,40,203410,2034),('2034-10-05',203440,10,2034,5,40,203410,2034),('2034-10-06',203440,10,2034,6,40,203410,2034),('2034-10-07',203440,10,2034,7,40,203410,2034),('2034-10-08',203441,10,2034,8,41,203410,2034),('2034-10-09',203441,10,2034,9,41,203410,2034),('2034-10-10',203441,10,2034,10,41,203410,2034),('2034-10-11',203441,10,2034,11,41,203410,2034),('2034-10-12',203441,10,2034,12,41,203410,2034),('2034-10-13',203441,10,2034,13,41,203410,2034),('2034-10-14',203441,10,2034,14,41,203410,2034),('2034-10-15',203442,10,2034,15,42,203410,2034),('2034-10-16',203442,10,2034,16,42,203410,2034),('2034-10-17',203442,10,2034,17,42,203410,2034),('2034-10-18',203442,10,2034,18,42,203410,2034),('2034-10-19',203442,10,2034,19,42,203410,2034),('2034-10-20',203442,10,2034,20,42,203410,2034),('2034-10-21',203442,10,2034,21,42,203410,2034),('2034-10-22',203443,10,2034,22,43,203410,2034),('2034-10-23',203443,10,2034,23,43,203410,2034),('2034-10-24',203443,10,2034,24,43,203410,2034),('2034-10-25',203443,10,2034,25,43,203410,2034),('2034-10-26',203443,10,2034,26,43,203410,2034),('2034-10-27',203443,10,2034,27,43,203410,2034),('2034-10-28',203443,10,2034,28,43,203410,2034),('2034-10-29',203444,10,2034,29,44,203410,2034),('2034-10-30',203444,10,2034,30,44,203410,2034),('2034-10-31',203444,10,2034,31,44,203410,2034),('2034-11-01',203444,11,2034,1,44,203411,2034),('2034-11-02',203444,11,2034,2,44,203411,2034),('2034-11-03',203444,11,2034,3,44,203411,2034),('2034-11-04',203444,11,2034,4,44,203411,2034),('2034-11-05',203445,11,2034,5,45,203411,2034),('2034-11-06',203445,11,2034,6,45,203411,2034),('2034-11-07',203445,11,2034,7,45,203411,2034),('2034-11-08',203445,11,2034,8,45,203411,2034),('2034-11-09',203445,11,2034,9,45,203411,2034),('2034-11-10',203445,11,2034,10,45,203411,2034),('2034-11-11',203445,11,2034,11,45,203411,2034),('2034-11-12',203446,11,2034,12,46,203411,2034),('2034-11-13',203446,11,2034,13,46,203411,2034),('2034-11-14',203446,11,2034,14,46,203411,2034),('2034-11-15',203446,11,2034,15,46,203411,2034),('2034-11-16',203446,11,2034,16,46,203411,2034),('2034-11-17',203446,11,2034,17,46,203411,2034),('2034-11-18',203446,11,2034,18,46,203411,2034),('2034-11-19',203447,11,2034,19,47,203411,2034),('2034-11-20',203447,11,2034,20,47,203411,2034),('2034-11-21',203447,11,2034,21,47,203411,2034),('2034-11-22',203447,11,2034,22,47,203411,2034),('2034-11-23',203447,11,2034,23,47,203411,2034),('2034-11-24',203447,11,2034,24,47,203411,2034),('2034-11-25',203447,11,2034,25,47,203411,2034),('2034-11-26',203448,11,2034,26,48,203411,2034),('2034-11-27',203448,11,2034,27,48,203411,2034),('2034-11-28',203448,11,2034,28,48,203411,2034),('2034-11-29',203448,11,2034,29,48,203411,2034),('2034-11-30',203448,11,2034,30,48,203411,2034),('2034-12-01',203448,12,2034,1,48,203412,2035),('2034-12-02',203448,12,2034,2,48,203412,2035),('2034-12-03',203449,12,2034,3,49,203412,2035),('2034-12-04',203449,12,2034,4,49,203412,2035),('2034-12-05',203449,12,2034,5,49,203412,2035),('2034-12-06',203449,12,2034,6,49,203412,2035),('2034-12-07',203449,12,2034,7,49,203412,2035),('2034-12-08',203449,12,2034,8,49,203412,2035),('2034-12-09',203449,12,2034,9,49,203412,2035),('2034-12-10',203450,12,2034,10,50,203412,2035),('2034-12-11',203450,12,2034,11,50,203412,2035),('2034-12-12',203450,12,2034,12,50,203412,2035),('2034-12-13',203450,12,2034,13,50,203412,2035),('2034-12-14',203450,12,2034,14,50,203412,2035),('2034-12-15',203450,12,2034,15,50,203412,2035),('2034-12-16',203450,12,2034,16,50,203412,2035),('2034-12-17',203451,12,2034,17,51,203412,2035),('2034-12-18',203451,12,2034,18,51,203412,2035),('2034-12-19',203451,12,2034,19,51,203412,2035),('2034-12-20',203451,12,2034,20,51,203412,2035),('2034-12-21',203451,12,2034,21,51,203412,2035),('2034-12-22',203451,12,2034,22,51,203412,2035),('2034-12-23',203451,12,2034,23,51,203412,2035),('2034-12-24',203452,12,2034,24,52,203412,2035),('2034-12-25',203452,12,2034,25,52,203412,2035),('2034-12-26',203452,12,2034,26,52,203412,2035),('2034-12-27',203452,12,2034,27,52,203412,2035),('2034-12-28',203452,12,2034,28,52,203412,2035),('2034-12-29',203452,12,2034,29,52,203412,2035),('2034-12-30',203452,12,2034,30,52,203412,2035),('2034-12-31',203453,12,2034,31,1,203412,2035),('2035-01-01',203501,1,2035,1,1,203501,2035),('2035-01-02',203501,1,2035,2,1,203501,2035),('2035-01-03',203501,1,2035,3,1,203501,2035),('2035-01-04',203501,1,2035,4,1,203501,2035),('2035-01-05',203501,1,2035,5,1,203501,2035),('2035-01-06',203501,1,2035,6,1,203501,2035),('2035-01-07',203502,1,2035,7,2,203501,2035),('2035-01-08',203502,1,2035,8,2,203501,2035),('2035-01-09',203502,1,2035,9,2,203501,2035),('2035-01-10',203502,1,2035,10,2,203501,2035),('2035-01-11',203502,1,2035,11,2,203501,2035),('2035-01-12',203502,1,2035,12,2,203501,2035),('2035-01-13',203502,1,2035,13,2,203501,2035),('2035-01-14',203503,1,2035,14,3,203501,2035),('2035-01-15',203503,1,2035,15,3,203501,2035),('2035-01-16',203503,1,2035,16,3,203501,2035),('2035-01-17',203503,1,2035,17,3,203501,2035),('2035-01-18',203503,1,2035,18,3,203501,2035),('2035-01-19',203503,1,2035,19,3,203501,2035),('2035-01-20',203503,1,2035,20,3,203501,2035),('2035-01-21',203504,1,2035,21,4,203501,2035),('2035-01-22',203504,1,2035,22,4,203501,2035),('2035-01-23',203504,1,2035,23,4,203501,2035),('2035-01-24',203504,1,2035,24,4,203501,2035),('2035-01-25',203504,1,2035,25,4,203501,2035),('2035-01-26',203504,1,2035,26,4,203501,2035),('2035-01-27',203504,1,2035,27,4,203501,2035),('2035-01-28',203505,1,2035,28,5,203501,2035),('2035-01-29',203505,1,2035,29,5,203501,2035),('2035-01-30',203505,1,2035,30,5,203501,2035),('2035-01-31',203505,1,2035,31,5,203501,2035),('2035-02-01',203505,2,2035,1,5,203502,2035),('2035-02-02',203505,2,2035,2,5,203502,2035),('2035-02-03',203505,2,2035,3,5,203502,2035),('2035-02-04',203506,2,2035,4,6,203502,2035),('2035-02-05',203506,2,2035,5,6,203502,2035),('2035-02-06',203506,2,2035,6,6,203502,2035),('2035-02-07',203506,2,2035,7,6,203502,2035),('2035-02-08',203506,2,2035,8,6,203502,2035),('2035-02-09',203506,2,2035,9,6,203502,2035),('2035-02-10',203506,2,2035,10,6,203502,2035),('2035-02-11',203507,2,2035,11,7,203502,2035),('2035-02-12',203507,2,2035,12,7,203502,2035),('2035-02-13',203507,2,2035,13,7,203502,2035),('2035-02-14',203507,2,2035,14,7,203502,2035),('2035-02-15',203507,2,2035,15,7,203502,2035),('2035-02-16',203507,2,2035,16,7,203502,2035),('2035-02-17',203507,2,2035,17,7,203502,2035),('2035-02-18',203508,2,2035,18,8,203502,2035),('2035-02-19',203508,2,2035,19,8,203502,2035),('2035-02-20',203508,2,2035,20,8,203502,2035),('2035-02-21',203508,2,2035,21,8,203502,2035),('2035-02-22',203508,2,2035,22,8,203502,2035),('2035-02-23',203508,2,2035,23,8,203502,2035),('2035-02-24',203508,2,2035,24,8,203502,2035),('2035-02-25',203509,2,2035,25,9,203502,2035),('2035-02-26',203509,2,2035,26,9,203502,2035),('2035-02-27',203509,2,2035,27,9,203502,2035),('2035-02-28',203509,2,2035,28,9,203502,2035),('2035-03-01',203509,3,2035,1,9,203503,2035),('2035-03-02',203509,3,2035,2,9,203503,2035),('2035-03-03',203509,3,2035,3,9,203503,2035),('2035-03-04',203510,3,2035,4,10,203503,2035),('2035-03-05',203510,3,2035,5,10,203503,2035),('2035-03-06',203510,3,2035,6,10,203503,2035),('2035-03-07',203510,3,2035,7,10,203503,2035),('2035-03-08',203510,3,2035,8,10,203503,2035),('2035-03-09',203510,3,2035,9,10,203503,2035),('2035-03-10',203510,3,2035,10,10,203503,2035),('2035-03-11',203511,3,2035,11,11,203503,2035),('2035-03-12',203511,3,2035,12,11,203503,2035),('2035-03-13',203511,3,2035,13,11,203503,2035),('2035-03-14',203511,3,2035,14,11,203503,2035),('2035-03-15',203511,3,2035,15,11,203503,2035),('2035-03-16',203511,3,2035,16,11,203503,2035),('2035-03-17',203511,3,2035,17,11,203503,2035),('2035-03-18',203512,3,2035,18,12,203503,2035),('2035-03-19',203512,3,2035,19,12,203503,2035),('2035-03-20',203512,3,2035,20,12,203503,2035),('2035-03-21',203512,3,2035,21,12,203503,2035),('2035-03-22',203512,3,2035,22,12,203503,2035),('2035-03-23',203512,3,2035,23,12,203503,2035),('2035-03-24',203512,3,2035,24,12,203503,2035),('2035-03-25',203513,3,2035,25,13,203503,2035),('2035-03-26',203513,3,2035,26,13,203503,2035),('2035-03-27',203513,3,2035,27,13,203503,2035),('2035-03-28',203513,3,2035,28,13,203503,2035),('2035-03-29',203513,3,2035,29,13,203503,2035),('2035-03-30',203513,3,2035,30,13,203503,2035),('2035-03-31',203513,3,2035,31,13,203503,2035),('2035-04-01',203514,4,2035,1,14,203504,2035),('2035-04-02',203514,4,2035,2,14,203504,2035),('2035-04-03',203514,4,2035,3,14,203504,2035),('2035-04-04',203514,4,2035,4,14,203504,2035),('2035-04-05',203514,4,2035,5,14,203504,2035),('2035-04-06',203514,4,2035,6,14,203504,2035),('2035-04-07',203514,4,2035,7,14,203504,2035),('2035-04-08',203515,4,2035,8,15,203504,2035),('2035-04-09',203515,4,2035,9,15,203504,2035),('2035-04-10',203515,4,2035,10,15,203504,2035),('2035-04-11',203515,4,2035,11,15,203504,2035),('2035-04-12',203515,4,2035,12,15,203504,2035),('2035-04-13',203515,4,2035,13,15,203504,2035),('2035-04-14',203515,4,2035,14,15,203504,2035),('2035-04-15',203516,4,2035,15,16,203504,2035),('2035-04-16',203516,4,2035,16,16,203504,2035),('2035-04-17',203516,4,2035,17,16,203504,2035),('2035-04-18',203516,4,2035,18,16,203504,2035),('2035-04-19',203516,4,2035,19,16,203504,2035),('2035-04-20',203516,4,2035,20,16,203504,2035),('2035-04-21',203516,4,2035,21,16,203504,2035),('2035-04-22',203517,4,2035,22,17,203504,2035),('2035-04-23',203517,4,2035,23,17,203504,2035),('2035-04-24',203517,4,2035,24,17,203504,2035),('2035-04-25',203517,4,2035,25,17,203504,2035),('2035-04-26',203517,4,2035,26,17,203504,2035),('2035-04-27',203517,4,2035,27,17,203504,2035),('2035-04-28',203517,4,2035,28,17,203504,2035),('2035-04-29',203518,4,2035,29,18,203504,2035),('2035-04-30',203518,4,2035,30,18,203504,2035),('2035-05-01',203518,5,2035,1,18,203505,2035),('2035-05-02',203518,5,2035,2,18,203505,2035),('2035-05-03',203518,5,2035,3,18,203505,2035),('2035-05-04',203518,5,2035,4,18,203505,2035),('2035-05-05',203518,5,2035,5,18,203505,2035),('2035-05-06',203519,5,2035,6,19,203505,2035),('2035-05-07',203519,5,2035,7,19,203505,2035),('2035-05-08',203519,5,2035,8,19,203505,2035),('2035-05-09',203519,5,2035,9,19,203505,2035),('2035-05-10',203519,5,2035,10,19,203505,2035),('2035-05-11',203519,5,2035,11,19,203505,2035),('2035-05-12',203519,5,2035,12,19,203505,2035),('2035-05-13',203520,5,2035,13,20,203505,2035),('2035-05-14',203520,5,2035,14,20,203505,2035),('2035-05-15',203520,5,2035,15,20,203505,2035),('2035-05-16',203520,5,2035,16,20,203505,2035),('2035-05-17',203520,5,2035,17,20,203505,2035),('2035-05-18',203520,5,2035,18,20,203505,2035),('2035-05-19',203520,5,2035,19,20,203505,2035),('2035-05-20',203521,5,2035,20,21,203505,2035),('2035-05-21',203521,5,2035,21,21,203505,2035),('2035-05-22',203521,5,2035,22,21,203505,2035),('2035-05-23',203521,5,2035,23,21,203505,2035),('2035-05-24',203521,5,2035,24,21,203505,2035),('2035-05-25',203521,5,2035,25,21,203505,2035),('2035-05-26',203521,5,2035,26,21,203505,2035),('2035-05-27',203522,5,2035,27,22,203505,2035),('2035-05-28',203522,5,2035,28,22,203505,2035),('2035-05-29',203522,5,2035,29,22,203505,2035),('2035-05-30',203522,5,2035,30,22,203505,2035),('2035-05-31',203522,5,2035,31,22,203505,2035),('2035-06-01',203522,6,2035,1,22,203506,2035),('2035-06-02',203522,6,2035,2,22,203506,2035),('2035-06-03',203523,6,2035,3,23,203506,2035),('2035-06-04',203523,6,2035,4,23,203506,2035),('2035-06-05',203523,6,2035,5,23,203506,2035),('2035-06-06',203523,6,2035,6,23,203506,2035),('2035-06-07',203523,6,2035,7,23,203506,2035),('2035-06-08',203523,6,2035,8,23,203506,2035),('2035-06-09',203523,6,2035,9,23,203506,2035),('2035-06-10',203524,6,2035,10,24,203506,2035),('2035-06-11',203524,6,2035,11,24,203506,2035),('2035-06-12',203524,6,2035,12,24,203506,2035),('2035-06-13',203524,6,2035,13,24,203506,2035),('2035-06-14',203524,6,2035,14,24,203506,2035),('2035-06-15',203524,6,2035,15,24,203506,2035),('2035-06-16',203524,6,2035,16,24,203506,2035),('2035-06-17',203525,6,2035,17,25,203506,2035),('2035-06-18',203525,6,2035,18,25,203506,2035),('2035-06-19',203525,6,2035,19,25,203506,2035),('2035-06-20',203525,6,2035,20,25,203506,2035),('2035-06-21',203525,6,2035,21,25,203506,2035),('2035-06-22',203525,6,2035,22,25,203506,2035),('2035-06-23',203525,6,2035,23,25,203506,2035),('2035-06-24',203526,6,2035,24,26,203506,2035),('2035-06-25',203526,6,2035,25,26,203506,2035),('2035-06-26',203526,6,2035,26,26,203506,2035),('2035-06-27',203526,6,2035,27,26,203506,2035),('2035-06-28',203526,6,2035,28,26,203506,2035),('2035-06-29',203526,6,2035,29,26,203506,2035),('2035-06-30',203526,6,2035,30,26,203506,2035),('2035-07-01',203527,7,2035,1,27,203507,2035),('2035-07-02',203527,7,2035,2,27,203507,2035),('2035-07-03',203527,7,2035,3,27,203507,2035),('2035-07-04',203527,7,2035,4,27,203507,2035),('2035-07-05',203527,7,2035,5,27,203507,2035),('2035-07-06',203527,7,2035,6,27,203507,2035),('2035-07-07',203527,7,2035,7,27,203507,2035),('2035-07-08',203528,7,2035,8,28,203507,2035),('2035-07-09',203528,7,2035,9,28,203507,2035),('2035-07-10',203528,7,2035,10,28,203507,2035),('2035-07-11',203528,7,2035,11,28,203507,2035),('2035-07-12',203528,7,2035,12,28,203507,2035),('2035-07-13',203528,7,2035,13,28,203507,2035),('2035-07-14',203528,7,2035,14,28,203507,2035),('2035-07-15',203529,7,2035,15,29,203507,2035),('2035-07-16',203529,7,2035,16,29,203507,2035),('2035-07-17',203529,7,2035,17,29,203507,2035),('2035-07-18',203529,7,2035,18,29,203507,2035),('2035-07-19',203529,7,2035,19,29,203507,2035),('2035-07-20',203529,7,2035,20,29,203507,2035),('2035-07-21',203529,7,2035,21,29,203507,2035),('2035-07-22',203530,7,2035,22,30,203507,2035),('2035-07-23',203530,7,2035,23,30,203507,2035),('2035-07-24',203530,7,2035,24,30,203507,2035),('2035-07-25',203530,7,2035,25,30,203507,2035),('2035-07-26',203530,7,2035,26,30,203507,2035),('2035-07-27',203530,7,2035,27,30,203507,2035),('2035-07-28',203530,7,2035,28,30,203507,2035),('2035-07-29',203531,7,2035,29,31,203507,2035),('2035-07-30',203531,7,2035,30,31,203507,2035),('2035-07-31',203531,7,2035,31,31,203507,2035),('2035-08-01',203531,8,2035,1,31,203508,2035),('2035-08-02',203531,8,2035,2,31,203508,2035),('2035-08-03',203531,8,2035,3,31,203508,2035),('2035-08-04',203531,8,2035,4,31,203508,2035),('2035-08-05',203532,8,2035,5,32,203508,2035),('2035-08-06',203532,8,2035,6,32,203508,2035),('2035-08-07',203532,8,2035,7,32,203508,2035),('2035-08-08',203532,8,2035,8,32,203508,2035),('2035-08-09',203532,8,2035,9,32,203508,2035),('2035-08-10',203532,8,2035,10,32,203508,2035),('2035-08-11',203532,8,2035,11,32,203508,2035),('2035-08-12',203533,8,2035,12,33,203508,2035),('2035-08-13',203533,8,2035,13,33,203508,2035),('2035-08-14',203533,8,2035,14,33,203508,2035),('2035-08-15',203533,8,2035,15,33,203508,2035),('2035-08-16',203533,8,2035,16,33,203508,2035),('2035-08-17',203533,8,2035,17,33,203508,2035),('2035-08-18',203533,8,2035,18,33,203508,2035),('2035-08-19',203534,8,2035,19,34,203508,2035),('2035-08-20',203534,8,2035,20,34,203508,2035),('2035-08-21',203534,8,2035,21,34,203508,2035),('2035-08-22',203534,8,2035,22,34,203508,2035),('2035-08-23',203534,8,2035,23,34,203508,2035),('2035-08-24',203534,8,2035,24,34,203508,2035),('2035-08-25',203534,8,2035,25,34,203508,2035),('2035-08-26',203535,8,2035,26,35,203508,2035),('2035-08-27',203535,8,2035,27,35,203508,2035),('2035-08-28',203535,8,2035,28,35,203508,2035),('2035-08-29',203535,8,2035,29,35,203508,2035),('2035-08-30',203535,8,2035,30,35,203508,2035),('2035-08-31',203535,8,2035,31,35,203508,2035),('2035-09-01',203535,9,2035,1,35,203509,2035),('2035-09-02',203536,9,2035,2,36,203509,2035),('2035-09-03',203536,9,2035,3,36,203509,2035),('2035-09-04',203536,9,2035,4,36,203509,2035),('2035-09-05',203536,9,2035,5,36,203509,2035),('2035-09-06',203536,9,2035,6,36,203509,2035),('2035-09-07',203536,9,2035,7,36,203509,2035),('2035-09-08',203536,9,2035,8,36,203509,2035),('2035-09-09',203537,9,2035,9,37,203509,2035),('2035-09-10',203537,9,2035,10,37,203509,2035),('2035-09-11',203537,9,2035,11,37,203509,2035),('2035-09-12',203537,9,2035,12,37,203509,2035),('2035-09-13',203537,9,2035,13,37,203509,2035),('2035-09-14',203537,9,2035,14,37,203509,2035),('2035-09-15',203537,9,2035,15,37,203509,2035),('2035-09-16',203538,9,2035,16,38,203509,2035),('2035-09-17',203538,9,2035,17,38,203509,2035),('2035-09-18',203538,9,2035,18,38,203509,2035),('2035-09-19',203538,9,2035,19,38,203509,2035),('2035-09-20',203538,9,2035,20,38,203509,2035),('2035-09-21',203538,9,2035,21,38,203509,2035),('2035-09-22',203538,9,2035,22,38,203509,2035),('2035-09-23',203539,9,2035,23,39,203509,2035),('2035-09-24',203539,9,2035,24,39,203509,2035),('2035-09-25',203539,9,2035,25,39,203509,2035),('2035-09-26',203539,9,2035,26,39,203509,2035),('2035-09-27',203539,9,2035,27,39,203509,2035),('2035-09-28',203539,9,2035,28,39,203509,2035),('2035-09-29',203539,9,2035,29,39,203509,2035),('2035-09-30',203540,9,2035,30,40,203509,2035),('2035-10-01',203540,10,2035,1,40,203510,2035),('2035-10-02',203540,10,2035,2,40,203510,2035),('2035-10-03',203540,10,2035,3,40,203510,2035),('2035-10-04',203540,10,2035,4,40,203510,2035),('2035-10-05',203540,10,2035,5,40,203510,2035),('2035-10-06',203540,10,2035,6,40,203510,2035),('2035-10-07',203541,10,2035,7,41,203510,2035),('2035-10-08',203541,10,2035,8,41,203510,2035),('2035-10-09',203541,10,2035,9,41,203510,2035),('2035-10-10',203541,10,2035,10,41,203510,2035),('2035-10-11',203541,10,2035,11,41,203510,2035),('2035-10-12',203541,10,2035,12,41,203510,2035),('2035-10-13',203541,10,2035,13,41,203510,2035),('2035-10-14',203542,10,2035,14,42,203510,2035),('2035-10-15',203542,10,2035,15,42,203510,2035),('2035-10-16',203542,10,2035,16,42,203510,2035),('2035-10-17',203542,10,2035,17,42,203510,2035),('2035-10-18',203542,10,2035,18,42,203510,2035),('2035-10-19',203542,10,2035,19,42,203510,2035),('2035-10-20',203542,10,2035,20,42,203510,2035),('2035-10-21',203543,10,2035,21,43,203510,2035),('2035-10-22',203543,10,2035,22,43,203510,2035),('2035-10-23',203543,10,2035,23,43,203510,2035),('2035-10-24',203543,10,2035,24,43,203510,2035),('2035-10-25',203543,10,2035,25,43,203510,2035),('2035-10-26',203543,10,2035,26,43,203510,2035),('2035-10-27',203543,10,2035,27,43,203510,2035),('2035-10-28',203544,10,2035,28,44,203510,2035),('2035-10-29',203544,10,2035,29,44,203510,2035),('2035-10-30',203544,10,2035,30,44,203510,2035),('2035-10-31',203544,10,2035,31,44,203510,2035),('2035-11-01',203544,11,2035,1,44,203511,2035),('2035-11-02',203544,11,2035,2,44,203511,2035),('2035-11-03',203544,11,2035,3,44,203511,2035),('2035-11-04',203545,11,2035,4,45,203511,2035),('2035-11-05',203545,11,2035,5,45,203511,2035),('2035-11-06',203545,11,2035,6,45,203511,2035),('2035-11-07',203545,11,2035,7,45,203511,2035),('2035-11-08',203545,11,2035,8,45,203511,2035),('2035-11-09',203545,11,2035,9,45,203511,2035),('2035-11-10',203545,11,2035,10,45,203511,2035),('2035-11-11',203546,11,2035,11,46,203511,2035),('2035-11-12',203546,11,2035,12,46,203511,2035),('2035-11-13',203546,11,2035,13,46,203511,2035),('2035-11-14',203546,11,2035,14,46,203511,2035),('2035-11-15',203546,11,2035,15,46,203511,2035),('2035-11-16',203546,11,2035,16,46,203511,2035),('2035-11-17',203546,11,2035,17,46,203511,2035),('2035-11-18',203547,11,2035,18,47,203511,2035),('2035-11-19',203547,11,2035,19,47,203511,2035),('2035-11-20',203547,11,2035,20,47,203511,2035),('2035-11-21',203547,11,2035,21,47,203511,2035),('2035-11-22',203547,11,2035,22,47,203511,2035),('2035-11-23',203547,11,2035,23,47,203511,2035),('2035-11-24',203547,11,2035,24,47,203511,2035),('2035-11-25',203548,11,2035,25,48,203511,2035),('2035-11-26',203548,11,2035,26,48,203511,2035),('2035-11-27',203548,11,2035,27,48,203511,2035),('2035-11-28',203548,11,2035,28,48,203511,2035),('2035-11-29',203548,11,2035,29,48,203511,2035),('2035-11-30',203548,11,2035,30,48,203511,2035),('2035-12-01',203548,12,2035,1,48,203512,2036),('2035-12-02',203549,12,2035,2,49,203512,2036),('2035-12-03',203549,12,2035,3,49,203512,2036),('2035-12-04',203549,12,2035,4,49,203512,2036),('2035-12-05',203549,12,2035,5,49,203512,2036),('2035-12-06',203549,12,2035,6,49,203512,2036),('2035-12-07',203549,12,2035,7,49,203512,2036),('2035-12-08',203549,12,2035,8,49,203512,2036),('2035-12-09',203550,12,2035,9,50,203512,2036),('2035-12-10',203550,12,2035,10,50,203512,2036),('2035-12-11',203550,12,2035,11,50,203512,2036),('2035-12-12',203550,12,2035,12,50,203512,2036),('2035-12-13',203550,12,2035,13,50,203512,2036),('2035-12-14',203550,12,2035,14,50,203512,2036),('2035-12-15',203550,12,2035,15,50,203512,2036),('2035-12-16',203551,12,2035,16,51,203512,2036),('2035-12-17',203551,12,2035,17,51,203512,2036),('2035-12-18',203551,12,2035,18,51,203512,2036),('2035-12-19',203551,12,2035,19,51,203512,2036),('2035-12-20',203551,12,2035,20,51,203512,2036),('2035-12-21',203551,12,2035,21,51,203512,2036),('2035-12-22',203551,12,2035,22,51,203512,2036),('2035-12-23',203552,12,2035,23,52,203512,2036),('2035-12-24',203552,12,2035,24,52,203512,2036),('2035-12-25',203552,12,2035,25,52,203512,2036),('2035-12-26',203552,12,2035,26,52,203512,2036),('2035-12-27',203552,12,2035,27,52,203512,2036),('2035-12-28',203552,12,2035,28,52,203512,2036),('2035-12-29',203552,12,2035,29,52,203512,2036),('2035-12-30',203553,12,2035,30,1,203512,2036),('2035-12-31',203501,12,2035,31,1,203512,2036),('2036-01-01',203601,1,2036,1,1,203601,2036),('2036-01-02',203601,1,2036,2,1,203601,2036),('2036-01-03',203601,1,2036,3,1,203601,2036),('2036-01-04',203601,1,2036,4,1,203601,2036),('2036-01-05',203601,1,2036,5,1,203601,2036),('2036-01-06',203602,1,2036,6,2,203601,2036),('2036-01-07',203602,1,2036,7,2,203601,2036),('2036-01-08',203602,1,2036,8,2,203601,2036),('2036-01-09',203602,1,2036,9,2,203601,2036),('2036-01-10',203602,1,2036,10,2,203601,2036),('2036-01-11',203602,1,2036,11,2,203601,2036),('2036-01-12',203602,1,2036,12,2,203601,2036),('2036-01-13',203603,1,2036,13,3,203601,2036),('2036-01-14',203603,1,2036,14,3,203601,2036),('2036-01-15',203603,1,2036,15,3,203601,2036),('2036-01-16',203603,1,2036,16,3,203601,2036),('2036-01-17',203603,1,2036,17,3,203601,2036),('2036-01-18',203603,1,2036,18,3,203601,2036),('2036-01-19',203603,1,2036,19,3,203601,2036),('2036-01-20',203604,1,2036,20,4,203601,2036),('2036-01-21',203604,1,2036,21,4,203601,2036),('2036-01-22',203604,1,2036,22,4,203601,2036),('2036-01-23',203604,1,2036,23,4,203601,2036),('2036-01-24',203604,1,2036,24,4,203601,2036),('2036-01-25',203604,1,2036,25,4,203601,2036),('2036-01-26',203604,1,2036,26,4,203601,2036),('2036-01-27',203605,1,2036,27,5,203601,2036),('2036-01-28',203605,1,2036,28,5,203601,2036),('2036-01-29',203605,1,2036,29,5,203601,2036),('2036-01-30',203605,1,2036,30,5,203601,2036),('2036-01-31',203605,1,2036,31,5,203601,2036),('2036-02-01',203605,2,2036,1,5,203602,2036),('2036-02-02',203605,2,2036,2,5,203602,2036),('2036-02-03',203606,2,2036,3,6,203602,2036),('2036-02-04',203606,2,2036,4,6,203602,2036),('2036-02-05',203606,2,2036,5,6,203602,2036),('2036-02-06',203606,2,2036,6,6,203602,2036),('2036-02-07',203606,2,2036,7,6,203602,2036),('2036-02-08',203606,2,2036,8,6,203602,2036),('2036-02-09',203606,2,2036,9,6,203602,2036),('2036-02-10',203607,2,2036,10,7,203602,2036),('2036-02-11',203607,2,2036,11,7,203602,2036),('2036-02-12',203607,2,2036,12,7,203602,2036),('2036-02-13',203607,2,2036,13,7,203602,2036),('2036-02-14',203607,2,2036,14,7,203602,2036),('2036-02-15',203607,2,2036,15,7,203602,2036),('2036-02-16',203607,2,2036,16,7,203602,2036),('2036-02-17',203608,2,2036,17,8,203602,2036),('2036-02-18',203608,2,2036,18,8,203602,2036),('2036-02-19',203608,2,2036,19,8,203602,2036),('2036-02-20',203608,2,2036,20,8,203602,2036),('2036-02-21',203608,2,2036,21,8,203602,2036),('2036-02-22',203608,2,2036,22,8,203602,2036),('2036-02-23',203608,2,2036,23,8,203602,2036),('2036-02-24',203609,2,2036,24,9,203602,2036),('2036-02-25',203609,2,2036,25,9,203602,2036),('2036-02-26',203609,2,2036,26,9,203602,2036),('2036-02-27',203609,2,2036,27,9,203602,2036),('2036-02-28',203609,2,2036,28,9,203602,2036),('2036-02-29',203609,2,2036,29,9,203602,2036),('2036-03-01',203609,3,2036,1,9,203603,2036),('2036-03-02',203610,3,2036,2,10,203603,2036),('2036-03-03',203610,3,2036,3,10,203603,2036),('2036-03-04',203610,3,2036,4,10,203603,2036),('2036-03-05',203610,3,2036,5,10,203603,2036),('2036-03-06',203610,3,2036,6,10,203603,2036),('2036-03-07',203610,3,2036,7,10,203603,2036),('2036-03-08',203610,3,2036,8,10,203603,2036),('2036-03-09',203611,3,2036,9,11,203603,2036),('2036-03-10',203611,3,2036,10,11,203603,2036),('2036-03-11',203611,3,2036,11,11,203603,2036),('2036-03-12',203611,3,2036,12,11,203603,2036),('2036-03-13',203611,3,2036,13,11,203603,2036),('2036-03-14',203611,3,2036,14,11,203603,2036),('2036-03-15',203611,3,2036,15,11,203603,2036),('2036-03-16',203612,3,2036,16,12,203603,2036),('2036-03-17',203612,3,2036,17,12,203603,2036),('2036-03-18',203612,3,2036,18,12,203603,2036),('2036-03-19',203612,3,2036,19,12,203603,2036),('2036-03-20',203612,3,2036,20,12,203603,2036),('2036-03-21',203612,3,2036,21,12,203603,2036),('2036-03-22',203612,3,2036,22,12,203603,2036),('2036-03-23',203613,3,2036,23,13,203603,2036),('2036-03-24',203613,3,2036,24,13,203603,2036),('2036-03-25',203613,3,2036,25,13,203603,2036),('2036-03-26',203613,3,2036,26,13,203603,2036),('2036-03-27',203613,3,2036,27,13,203603,2036),('2036-03-28',203613,3,2036,28,13,203603,2036),('2036-03-29',203613,3,2036,29,13,203603,2036),('2036-03-30',203614,3,2036,30,14,203603,2036),('2036-03-31',203614,3,2036,31,14,203603,2036),('2036-04-01',203614,4,2036,1,14,203604,2036),('2036-04-02',203614,4,2036,2,14,203604,2036),('2036-04-03',203614,4,2036,3,14,203604,2036),('2036-04-04',203614,4,2036,4,14,203604,2036),('2036-04-05',203614,4,2036,5,14,203604,2036),('2036-04-06',203615,4,2036,6,15,203604,2036),('2036-04-07',203615,4,2036,7,15,203604,2036),('2036-04-08',203615,4,2036,8,15,203604,2036),('2036-04-09',203615,4,2036,9,15,203604,2036),('2036-04-10',203615,4,2036,10,15,203604,2036),('2036-04-11',203615,4,2036,11,15,203604,2036),('2036-04-12',203615,4,2036,12,15,203604,2036),('2036-04-13',203616,4,2036,13,16,203604,2036),('2036-04-14',203616,4,2036,14,16,203604,2036),('2036-04-15',203616,4,2036,15,16,203604,2036),('2036-04-16',203616,4,2036,16,16,203604,2036),('2036-04-17',203616,4,2036,17,16,203604,2036),('2036-04-18',203616,4,2036,18,16,203604,2036),('2036-04-19',203616,4,2036,19,16,203604,2036),('2036-04-20',203617,4,2036,20,17,203604,2036),('2036-04-21',203617,4,2036,21,17,203604,2036),('2036-04-22',203617,4,2036,22,17,203604,2036),('2036-04-23',203617,4,2036,23,17,203604,2036),('2036-04-24',203617,4,2036,24,17,203604,2036),('2036-04-25',203617,4,2036,25,17,203604,2036),('2036-04-26',203617,4,2036,26,17,203604,2036),('2036-04-27',203618,4,2036,27,18,203604,2036),('2036-04-28',203618,4,2036,28,18,203604,2036),('2036-04-29',203618,4,2036,29,18,203604,2036),('2036-04-30',203618,4,2036,30,18,203604,2036),('2036-05-01',203618,5,2036,1,18,203605,2036),('2036-05-02',203618,5,2036,2,18,203605,2036),('2036-05-03',203618,5,2036,3,18,203605,2036),('2036-05-04',203619,5,2036,4,19,203605,2036),('2036-05-05',203619,5,2036,5,19,203605,2036),('2036-05-06',203619,5,2036,6,19,203605,2036),('2036-05-07',203619,5,2036,7,19,203605,2036),('2036-05-08',203619,5,2036,8,19,203605,2036),('2036-05-09',203619,5,2036,9,19,203605,2036),('2036-05-10',203619,5,2036,10,19,203605,2036),('2036-05-11',203620,5,2036,11,20,203605,2036),('2036-05-12',203620,5,2036,12,20,203605,2036),('2036-05-13',203620,5,2036,13,20,203605,2036),('2036-05-14',203620,5,2036,14,20,203605,2036),('2036-05-15',203620,5,2036,15,20,203605,2036),('2036-05-16',203620,5,2036,16,20,203605,2036),('2036-05-17',203620,5,2036,17,20,203605,2036),('2036-05-18',203621,5,2036,18,21,203605,2036),('2036-05-19',203621,5,2036,19,21,203605,2036),('2036-05-20',203621,5,2036,20,21,203605,2036),('2036-05-21',203621,5,2036,21,21,203605,2036),('2036-05-22',203621,5,2036,22,21,203605,2036),('2036-05-23',203621,5,2036,23,21,203605,2036),('2036-05-24',203621,5,2036,24,21,203605,2036),('2036-05-25',203622,5,2036,25,22,203605,2036),('2036-05-26',203622,5,2036,26,22,203605,2036),('2036-05-27',203622,5,2036,27,22,203605,2036),('2036-05-28',203622,5,2036,28,22,203605,2036),('2036-05-29',203622,5,2036,29,22,203605,2036),('2036-05-30',203622,5,2036,30,22,203605,2036),('2036-05-31',203622,5,2036,31,22,203605,2036),('2036-06-01',203623,6,2036,1,23,203606,2036),('2036-06-02',203623,6,2036,2,23,203606,2036),('2036-06-03',203623,6,2036,3,23,203606,2036),('2036-06-04',203623,6,2036,4,23,203606,2036),('2036-06-05',203623,6,2036,5,23,203606,2036),('2036-06-06',203623,6,2036,6,23,203606,2036),('2036-06-07',203623,6,2036,7,23,203606,2036),('2036-06-08',203624,6,2036,8,24,203606,2036),('2036-06-09',203624,6,2036,9,24,203606,2036),('2036-06-10',203624,6,2036,10,24,203606,2036),('2036-06-11',203624,6,2036,11,24,203606,2036),('2036-06-12',203624,6,2036,12,24,203606,2036),('2036-06-13',203624,6,2036,13,24,203606,2036),('2036-06-14',203624,6,2036,14,24,203606,2036),('2036-06-15',203625,6,2036,15,25,203606,2036),('2036-06-16',203625,6,2036,16,25,203606,2036),('2036-06-17',203625,6,2036,17,25,203606,2036),('2036-06-18',203625,6,2036,18,25,203606,2036),('2036-06-19',203625,6,2036,19,25,203606,2036),('2036-06-20',203625,6,2036,20,25,203606,2036),('2036-06-21',203625,6,2036,21,25,203606,2036),('2036-06-22',203626,6,2036,22,26,203606,2036),('2036-06-23',203626,6,2036,23,26,203606,2036),('2036-06-24',203626,6,2036,24,26,203606,2036),('2036-06-25',203626,6,2036,25,26,203606,2036),('2036-06-26',203626,6,2036,26,26,203606,2036),('2036-06-27',203626,6,2036,27,26,203606,2036),('2036-06-28',203626,6,2036,28,26,203606,2036),('2036-06-29',203627,6,2036,29,27,203606,2036),('2036-06-30',203627,6,2036,30,27,203606,2036),('2036-07-01',203627,7,2036,1,27,203607,2036),('2036-07-02',203627,7,2036,2,27,203607,2036),('2036-07-03',203627,7,2036,3,27,203607,2036),('2036-07-04',203627,7,2036,4,27,203607,2036),('2036-07-05',203627,7,2036,5,27,203607,2036),('2036-07-06',203628,7,2036,6,28,203607,2036),('2036-07-07',203628,7,2036,7,28,203607,2036),('2036-07-08',203628,7,2036,8,28,203607,2036),('2036-07-09',203628,7,2036,9,28,203607,2036),('2036-07-10',203628,7,2036,10,28,203607,2036),('2036-07-11',203628,7,2036,11,28,203607,2036),('2036-07-12',203628,7,2036,12,28,203607,2036),('2036-07-13',203629,7,2036,13,29,203607,2036),('2036-07-14',203629,7,2036,14,29,203607,2036),('2036-07-15',203629,7,2036,15,29,203607,2036),('2036-07-16',203629,7,2036,16,29,203607,2036),('2036-07-17',203629,7,2036,17,29,203607,2036),('2036-07-18',203629,7,2036,18,29,203607,2036),('2036-07-19',203629,7,2036,19,29,203607,2036),('2036-07-20',203630,7,2036,20,30,203607,2036),('2036-07-21',203630,7,2036,21,30,203607,2036),('2036-07-22',203630,7,2036,22,30,203607,2036),('2036-07-23',203630,7,2036,23,30,203607,2036),('2036-07-24',203630,7,2036,24,30,203607,2036),('2036-07-25',203630,7,2036,25,30,203607,2036),('2036-07-26',203630,7,2036,26,30,203607,2036),('2036-07-27',203631,7,2036,27,31,203607,2036),('2036-07-28',203631,7,2036,28,31,203607,2036),('2036-07-29',203631,7,2036,29,31,203607,2036),('2036-07-30',203631,7,2036,30,31,203607,2036),('2036-07-31',203631,7,2036,31,31,203607,2036),('2036-08-01',203631,8,2036,1,31,203608,2036),('2036-08-02',203631,8,2036,2,31,203608,2036),('2036-08-03',203632,8,2036,3,32,203608,2036),('2036-08-04',203632,8,2036,4,32,203608,2036),('2036-08-05',203632,8,2036,5,32,203608,2036),('2036-08-06',203632,8,2036,6,32,203608,2036),('2036-08-07',203632,8,2036,7,32,203608,2036),('2036-08-08',203632,8,2036,8,32,203608,2036),('2036-08-09',203632,8,2036,9,32,203608,2036),('2036-08-10',203633,8,2036,10,33,203608,2036),('2036-08-11',203633,8,2036,11,33,203608,2036),('2036-08-12',203633,8,2036,12,33,203608,2036),('2036-08-13',203633,8,2036,13,33,203608,2036),('2036-08-14',203633,8,2036,14,33,203608,2036),('2036-08-15',203633,8,2036,15,33,203608,2036),('2036-08-16',203633,8,2036,16,33,203608,2036),('2036-08-17',203634,8,2036,17,34,203608,2036),('2036-08-18',203634,8,2036,18,34,203608,2036),('2036-08-19',203634,8,2036,19,34,203608,2036),('2036-08-20',203634,8,2036,20,34,203608,2036),('2036-08-21',203634,8,2036,21,34,203608,2036),('2036-08-22',203634,8,2036,22,34,203608,2036),('2036-08-23',203634,8,2036,23,34,203608,2036),('2036-08-24',203635,8,2036,24,35,203608,2036),('2036-08-25',203635,8,2036,25,35,203608,2036),('2036-08-26',203635,8,2036,26,35,203608,2036),('2036-08-27',203635,8,2036,27,35,203608,2036),('2036-08-28',203635,8,2036,28,35,203608,2036),('2036-08-29',203635,8,2036,29,35,203608,2036),('2036-08-30',203635,8,2036,30,35,203608,2036),('2036-08-31',203636,8,2036,31,36,203608,2036),('2036-09-01',203636,9,2036,1,36,203609,2036),('2036-09-02',203636,9,2036,2,36,203609,2036),('2036-09-03',203636,9,2036,3,36,203609,2036),('2036-09-04',203636,9,2036,4,36,203609,2036),('2036-09-05',203636,9,2036,5,36,203609,2036),('2036-09-06',203636,9,2036,6,36,203609,2036),('2036-09-07',203637,9,2036,7,37,203609,2036),('2036-09-08',203637,9,2036,8,37,203609,2036),('2036-09-09',203637,9,2036,9,37,203609,2036),('2036-09-10',203637,9,2036,10,37,203609,2036),('2036-09-11',203637,9,2036,11,37,203609,2036),('2036-09-12',203637,9,2036,12,37,203609,2036),('2036-09-13',203637,9,2036,13,37,203609,2036),('2036-09-14',203638,9,2036,14,38,203609,2036),('2036-09-15',203638,9,2036,15,38,203609,2036),('2036-09-16',203638,9,2036,16,38,203609,2036),('2036-09-17',203638,9,2036,17,38,203609,2036),('2036-09-18',203638,9,2036,18,38,203609,2036),('2036-09-19',203638,9,2036,19,38,203609,2036),('2036-09-20',203638,9,2036,20,38,203609,2036),('2036-09-21',203639,9,2036,21,39,203609,2036),('2036-09-22',203639,9,2036,22,39,203609,2036),('2036-09-23',203639,9,2036,23,39,203609,2036),('2036-09-24',203639,9,2036,24,39,203609,2036),('2036-09-25',203639,9,2036,25,39,203609,2036),('2036-09-26',203639,9,2036,26,39,203609,2036),('2036-09-27',203639,9,2036,27,39,203609,2036),('2036-09-28',203640,9,2036,28,40,203609,2036),('2036-09-29',203640,9,2036,29,40,203609,2036),('2036-09-30',203640,9,2036,30,40,203609,2036),('2036-10-01',203640,10,2036,1,40,203610,2036),('2036-10-02',203640,10,2036,2,40,203610,2036),('2036-10-03',203640,10,2036,3,40,203610,2036),('2036-10-04',203640,10,2036,4,40,203610,2036),('2036-10-05',203641,10,2036,5,41,203610,2036),('2036-10-06',203641,10,2036,6,41,203610,2036),('2036-10-07',203641,10,2036,7,41,203610,2036),('2036-10-08',203641,10,2036,8,41,203610,2036),('2036-10-09',203641,10,2036,9,41,203610,2036),('2036-10-10',203641,10,2036,10,41,203610,2036),('2036-10-11',203641,10,2036,11,41,203610,2036),('2036-10-12',203642,10,2036,12,42,203610,2036),('2036-10-13',203642,10,2036,13,42,203610,2036),('2036-10-14',203642,10,2036,14,42,203610,2036),('2036-10-15',203642,10,2036,15,42,203610,2036),('2036-10-16',203642,10,2036,16,42,203610,2036),('2036-10-17',203642,10,2036,17,42,203610,2036),('2036-10-18',203642,10,2036,18,42,203610,2036),('2036-10-19',203643,10,2036,19,43,203610,2036),('2036-10-20',203643,10,2036,20,43,203610,2036),('2036-10-21',203643,10,2036,21,43,203610,2036),('2036-10-22',203643,10,2036,22,43,203610,2036),('2036-10-23',203643,10,2036,23,43,203610,2036),('2036-10-24',203643,10,2036,24,43,203610,2036),('2036-10-25',203643,10,2036,25,43,203610,2036),('2036-10-26',203644,10,2036,26,44,203610,2036),('2036-10-27',203644,10,2036,27,44,203610,2036),('2036-10-28',203644,10,2036,28,44,203610,2036),('2036-10-29',203644,10,2036,29,44,203610,2036),('2036-10-30',203644,10,2036,30,44,203610,2036),('2036-10-31',203644,10,2036,31,44,203610,2036),('2036-11-01',203644,11,2036,1,44,203611,2036),('2036-11-02',203645,11,2036,2,45,203611,2036),('2036-11-03',203645,11,2036,3,45,203611,2036),('2036-11-04',203645,11,2036,4,45,203611,2036),('2036-11-05',203645,11,2036,5,45,203611,2036),('2036-11-06',203645,11,2036,6,45,203611,2036),('2036-11-07',203645,11,2036,7,45,203611,2036),('2036-11-08',203645,11,2036,8,45,203611,2036),('2036-11-09',203646,11,2036,9,46,203611,2036),('2036-11-10',203646,11,2036,10,46,203611,2036),('2036-11-11',203646,11,2036,11,46,203611,2036),('2036-11-12',203646,11,2036,12,46,203611,2036),('2036-11-13',203646,11,2036,13,46,203611,2036),('2036-11-14',203646,11,2036,14,46,203611,2036),('2036-11-15',203646,11,2036,15,46,203611,2036),('2036-11-16',203647,11,2036,16,47,203611,2036),('2036-11-17',203647,11,2036,17,47,203611,2036),('2036-11-18',203647,11,2036,18,47,203611,2036),('2036-11-19',203647,11,2036,19,47,203611,2036),('2036-11-20',203647,11,2036,20,47,203611,2036),('2036-11-21',203647,11,2036,21,47,203611,2036),('2036-11-22',203647,11,2036,22,47,203611,2036),('2036-11-23',203648,11,2036,23,48,203611,2036),('2036-11-24',203648,11,2036,24,48,203611,2036),('2036-11-25',203648,11,2036,25,48,203611,2036),('2036-11-26',203648,11,2036,26,48,203611,2036),('2036-11-27',203648,11,2036,27,48,203611,2036),('2036-11-28',203648,11,2036,28,48,203611,2036),('2036-11-29',203648,11,2036,29,48,203611,2036),('2036-11-30',203649,11,2036,30,49,203611,2036),('2036-12-01',203649,12,2036,1,49,203612,2037),('2036-12-02',203649,12,2036,2,49,203612,2037),('2036-12-03',203649,12,2036,3,49,203612,2037),('2036-12-04',203649,12,2036,4,49,203612,2037),('2036-12-05',203649,12,2036,5,49,203612,2037),('2036-12-06',203649,12,2036,6,49,203612,2037),('2036-12-07',203650,12,2036,7,50,203612,2037),('2036-12-08',203650,12,2036,8,50,203612,2037),('2036-12-09',203650,12,2036,9,50,203612,2037),('2036-12-10',203650,12,2036,10,50,203612,2037),('2036-12-11',203650,12,2036,11,50,203612,2037),('2036-12-12',203650,12,2036,12,50,203612,2037),('2036-12-13',203650,12,2036,13,50,203612,2037),('2036-12-14',203651,12,2036,14,51,203612,2037),('2036-12-15',203651,12,2036,15,51,203612,2037),('2036-12-16',203651,12,2036,16,51,203612,2037),('2036-12-17',203651,12,2036,17,51,203612,2037),('2036-12-18',203651,12,2036,18,51,203612,2037),('2036-12-19',203651,12,2036,19,51,203612,2037),('2036-12-20',203651,12,2036,20,51,203612,2037),('2036-12-21',203652,12,2036,21,52,203612,2037),('2036-12-22',203652,12,2036,22,52,203612,2037),('2036-12-23',203652,12,2036,23,52,203612,2037),('2036-12-24',203652,12,2036,24,52,203612,2037),('2036-12-25',203652,12,2036,25,52,203612,2037),('2036-12-26',203652,12,2036,26,52,203612,2037),('2036-12-27',203652,12,2036,27,52,203612,2037),('2036-12-28',203653,12,2036,28,53,203612,2037),('2036-12-29',203601,12,2036,29,53,203612,2037),('2036-12-30',203601,12,2036,30,53,203612,2037);
+INSERT INTO `time` VALUES
+('2007-12-31',200801,12,2007,31,1,200712,2008),
+('2008-01-01',200801,1,2008,1,1,200801,2008),
+('2008-01-02',200801,1,2008,2,1,200801,2008),
+('2008-01-03',200801,1,2008,3,1,200801,2008),
+('2008-01-04',200801,1,2008,4,1,200801,2008),
+('2008-01-05',200801,1,2008,5,1,200801,2008),
+('2008-01-06',200802,1,2008,6,2,200801,2008),
+('2008-01-07',200802,1,2008,7,2,200801,2008),
+('2008-01-08',200802,1,2008,8,2,200801,2008),
+('2008-01-09',200802,1,2008,9,2,200801,2008),
+('2008-01-10',200802,1,2008,10,2,200801,2008),
+('2008-01-11',200802,1,2008,11,2,200801,2008),
+('2008-01-12',200802,1,2008,12,2,200801,2008),
+('2008-01-13',200803,1,2008,13,3,200801,2008),
+('2008-01-14',200803,1,2008,14,3,200801,2008),
+('2008-01-15',200803,1,2008,15,3,200801,2008),
+('2008-01-16',200803,1,2008,16,3,200801,2008),
+('2008-01-17',200803,1,2008,17,3,200801,2008),
+('2008-01-18',200803,1,2008,18,3,200801,2008),
+('2008-01-19',200803,1,2008,19,3,200801,2008),
+('2008-01-20',200804,1,2008,20,4,200801,2008),
+('2008-01-21',200804,1,2008,21,4,200801,2008),
+('2008-01-22',200804,1,2008,22,4,200801,2008),
+('2008-01-23',200804,1,2008,23,4,200801,2008),
+('2008-01-24',200804,1,2008,24,4,200801,2008),
+('2008-01-25',200804,1,2008,25,4,200801,2008),
+('2008-01-26',200804,1,2008,26,4,200801,2008),
+('2008-01-27',200805,1,2008,27,5,200801,2008),
+('2008-01-28',200805,1,2008,28,5,200801,2008),
+('2008-01-29',200805,1,2008,29,5,200801,2008),
+('2008-01-30',200805,1,2008,30,5,200801,2008),
+('2008-01-31',200805,1,2008,31,5,200801,2008),
+('2008-02-01',200805,2,2008,1,5,200802,2008),
+('2008-02-02',200805,2,2008,2,5,200802,2008),
+('2008-02-03',200806,2,2008,3,6,200802,2008),
+('2008-02-04',200806,2,2008,4,6,200802,2008),
+('2008-02-05',200806,2,2008,5,6,200802,2008),
+('2008-02-06',200806,2,2008,6,6,200802,2008),
+('2008-02-07',200806,2,2008,7,6,200802,2008),
+('2008-02-08',200806,2,2008,8,6,200802,2008),
+('2008-02-09',200806,2,2008,9,6,200802,2008),
+('2008-02-10',200807,2,2008,10,7,200802,2008),
+('2008-02-11',200807,2,2008,11,7,200802,2008),
+('2008-02-12',200807,2,2008,12,7,200802,2008),
+('2008-02-13',200807,2,2008,13,7,200802,2008),
+('2008-02-14',200807,2,2008,14,7,200802,2008),
+('2008-02-15',200807,2,2008,15,7,200802,2008),
+('2008-02-16',200807,2,2008,16,7,200802,2008),
+('2008-02-17',200808,2,2008,17,8,200802,2008),
+('2008-02-18',200808,2,2008,18,8,200802,2008),
+('2008-02-19',200808,2,2008,19,8,200802,2008),
+('2008-02-20',200808,2,2008,20,8,200802,2008),
+('2008-02-21',200808,2,2008,21,8,200802,2008),
+('2008-02-22',200808,2,2008,22,8,200802,2008),
+('2008-02-23',200808,2,2008,23,8,200802,2008),
+('2008-02-24',200809,2,2008,24,9,200802,2008),
+('2008-02-25',200809,2,2008,25,9,200802,2008),
+('2008-02-26',200809,2,2008,26,9,200802,2008),
+('2008-02-27',200809,2,2008,27,9,200802,2008),
+('2008-02-28',200809,2,2008,28,9,200802,2008),
+('2008-02-29',200809,2,2008,29,9,200802,2008),
+('2008-03-01',200809,3,2008,1,9,200803,2008),
+('2008-03-02',200810,3,2008,2,10,200803,2008),
+('2008-03-03',200810,3,2008,3,10,200803,2008),
+('2008-03-04',200810,3,2008,4,10,200803,2008),
+('2008-03-05',200810,3,2008,5,10,200803,2008),
+('2008-03-06',200810,3,2008,6,10,200803,2008),
+('2008-03-07',200810,3,2008,7,10,200803,2008),
+('2008-03-08',200810,3,2008,8,10,200803,2008),
+('2008-03-09',200811,3,2008,9,11,200803,2008),
+('2008-03-10',200811,3,2008,10,11,200803,2008),
+('2008-03-11',200811,3,2008,11,11,200803,2008),
+('2008-03-12',200811,3,2008,12,11,200803,2008),
+('2008-03-13',200811,3,2008,13,11,200803,2008),
+('2008-03-14',200811,3,2008,14,11,200803,2008),
+('2008-03-15',200811,3,2008,15,11,200803,2008),
+('2008-03-16',200812,3,2008,16,12,200803,2008),
+('2008-03-17',200812,3,2008,17,12,200803,2008),
+('2008-03-18',200812,3,2008,18,12,200803,2008),
+('2008-03-19',200812,3,2008,19,12,200803,2008),
+('2008-03-20',200812,3,2008,20,12,200803,2008),
+('2008-03-21',200812,3,2008,21,12,200803,2008),
+('2008-03-22',200812,3,2008,22,12,200803,2008),
+('2008-03-23',200813,3,2008,23,13,200803,2008),
+('2008-03-24',200813,3,2008,24,13,200803,2008),
+('2008-03-25',200813,3,2008,25,13,200803,2008),
+('2008-03-26',200813,3,2008,26,13,200803,2008),
+('2008-03-27',200813,3,2008,27,13,200803,2008),
+('2008-03-28',200813,3,2008,28,13,200803,2008),
+('2008-03-29',200813,3,2008,29,13,200803,2008),
+('2008-03-30',200814,3,2008,30,14,200803,2008),
+('2008-03-31',200814,3,2008,31,14,200803,2008),
+('2008-04-01',200814,4,2008,1,14,200804,2008),
+('2008-04-02',200814,4,2008,2,14,200804,2008),
+('2008-04-03',200814,4,2008,3,14,200804,2008),
+('2008-04-04',200814,4,2008,4,14,200804,2008),
+('2008-04-05',200814,4,2008,5,14,200804,2008),
+('2008-04-06',200815,4,2008,6,15,200804,2008),
+('2008-04-07',200815,4,2008,7,15,200804,2008),
+('2008-04-08',200815,4,2008,8,15,200804,2008),
+('2008-04-09',200815,4,2008,9,15,200804,2008),
+('2008-04-10',200815,4,2008,10,15,200804,2008),
+('2008-04-11',200815,4,2008,11,15,200804,2008),
+('2008-04-12',200815,4,2008,12,15,200804,2008),
+('2008-04-13',200816,4,2008,13,16,200804,2008),
+('2008-04-14',200816,4,2008,14,16,200804,2008),
+('2008-04-15',200816,4,2008,15,16,200804,2008),
+('2008-04-16',200816,4,2008,16,16,200804,2008),
+('2008-04-17',200816,4,2008,17,16,200804,2008),
+('2008-04-18',200816,4,2008,18,16,200804,2008),
+('2008-04-19',200816,4,2008,19,16,200804,2008),
+('2008-04-20',200817,4,2008,20,17,200804,2008),
+('2008-04-21',200817,4,2008,21,17,200804,2008),
+('2008-04-22',200817,4,2008,22,17,200804,2008),
+('2008-04-23',200817,4,2008,23,17,200804,2008),
+('2008-04-24',200817,4,2008,24,17,200804,2008),
+('2008-04-25',200817,4,2008,25,17,200804,2008),
+('2008-04-26',200817,4,2008,26,17,200804,2008),
+('2008-04-27',200818,4,2008,27,18,200804,2008),
+('2008-04-28',200818,4,2008,28,18,200804,2008),
+('2008-04-29',200818,4,2008,29,18,200804,2008),
+('2008-04-30',200818,4,2008,30,18,200804,2008),
+('2008-05-01',200818,5,2008,1,18,200805,2008),
+('2008-05-02',200818,5,2008,2,18,200805,2008),
+('2008-05-03',200818,5,2008,3,18,200805,2008),
+('2008-05-04',200819,5,2008,4,19,200805,2008),
+('2008-05-05',200819,5,2008,5,19,200805,2008),
+('2008-05-06',200819,5,2008,6,19,200805,2008),
+('2008-05-07',200819,5,2008,7,19,200805,2008),
+('2008-05-08',200819,5,2008,8,19,200805,2008),
+('2008-05-09',200819,5,2008,9,19,200805,2008),
+('2008-05-10',200819,5,2008,10,19,200805,2008),
+('2008-05-11',200820,5,2008,11,20,200805,2008),
+('2008-05-12',200820,5,2008,12,20,200805,2008),
+('2008-05-13',200820,5,2008,13,20,200805,2008),
+('2008-05-14',200820,5,2008,14,20,200805,2008),
+('2008-05-15',200820,5,2008,15,20,200805,2008),
+('2008-05-16',200820,5,2008,16,20,200805,2008),
+('2008-05-17',200820,5,2008,17,20,200805,2008),
+('2008-05-18',200821,5,2008,18,21,200805,2008),
+('2008-05-19',200821,5,2008,19,21,200805,2008),
+('2008-05-20',200821,5,2008,20,21,200805,2008),
+('2008-05-21',200821,5,2008,21,21,200805,2008),
+('2008-05-22',200821,5,2008,22,21,200805,2008),
+('2008-05-23',200821,5,2008,23,21,200805,2008),
+('2008-05-24',200821,5,2008,24,21,200805,2008),
+('2008-05-25',200822,5,2008,25,22,200805,2008),
+('2008-05-26',200822,5,2008,26,22,200805,2008),
+('2008-05-27',200822,5,2008,27,22,200805,2008),
+('2008-05-28',200822,5,2008,28,22,200805,2008),
+('2008-05-29',200822,5,2008,29,22,200805,2008),
+('2008-05-30',200822,5,2008,30,22,200805,2008),
+('2008-05-31',200822,5,2008,31,22,200805,2008),
+('2008-06-01',200823,6,2008,1,23,200806,2008),
+('2008-06-02',200823,6,2008,2,23,200806,2008),
+('2008-06-03',200823,6,2008,3,23,200806,2008),
+('2008-06-04',200823,6,2008,4,23,200806,2008),
+('2008-06-05',200823,6,2008,5,23,200806,2008),
+('2008-06-06',200823,6,2008,6,23,200806,2008),
+('2008-06-07',200823,6,2008,7,23,200806,2008),
+('2008-06-08',200824,6,2008,8,24,200806,2008),
+('2008-06-09',200824,6,2008,9,24,200806,2008),
+('2008-06-10',200824,6,2008,10,24,200806,2008),
+('2008-06-11',200824,6,2008,11,24,200806,2008),
+('2008-06-12',200824,6,2008,12,24,200806,2008),
+('2008-06-13',200824,6,2008,13,24,200806,2008),
+('2008-06-14',200824,6,2008,14,24,200806,2008),
+('2008-06-15',200825,6,2008,15,25,200806,2008),
+('2008-06-16',200825,6,2008,16,25,200806,2008),
+('2008-06-17',200825,6,2008,17,25,200806,2008),
+('2008-06-18',200825,6,2008,18,25,200806,2008),
+('2008-06-19',200825,6,2008,19,25,200806,2008),
+('2008-06-20',200825,6,2008,20,25,200806,2008),
+('2008-06-21',200825,6,2008,21,25,200806,2008),
+('2008-06-22',200826,6,2008,22,26,200806,2008),
+('2008-06-23',200826,6,2008,23,26,200806,2008),
+('2008-06-24',200826,6,2008,24,26,200806,2008),
+('2008-06-25',200826,6,2008,25,26,200806,2008),
+('2008-06-26',200826,6,2008,26,26,200806,2008),
+('2008-06-27',200826,6,2008,27,26,200806,2008),
+('2008-06-28',200826,6,2008,28,26,200806,2008),
+('2008-06-29',200827,6,2008,29,27,200806,2008),
+('2008-06-30',200827,6,2008,30,27,200806,2008),
+('2008-07-01',200827,7,2008,1,27,200807,2008),
+('2008-07-02',200827,7,2008,2,27,200807,2008),
+('2008-07-03',200827,7,2008,3,27,200807,2008),
+('2008-07-04',200827,7,2008,4,27,200807,2008),
+('2008-07-05',200827,7,2008,5,27,200807,2008),
+('2008-07-06',200828,7,2008,6,28,200807,2008),
+('2008-07-07',200828,7,2008,7,28,200807,2008),
+('2008-07-08',200828,7,2008,8,28,200807,2008),
+('2008-07-09',200828,7,2008,9,28,200807,2008),
+('2008-07-10',200828,7,2008,10,28,200807,2008),
+('2008-07-11',200828,7,2008,11,28,200807,2008),
+('2008-07-12',200828,7,2008,12,28,200807,2008),
+('2008-07-13',200829,7,2008,13,29,200807,2008),
+('2008-07-14',200829,7,2008,14,29,200807,2008),
+('2008-07-15',200829,7,2008,15,29,200807,2008),
+('2008-07-16',200829,7,2008,16,29,200807,2008),
+('2008-07-17',200829,7,2008,17,29,200807,2008),
+('2008-07-18',200829,7,2008,18,29,200807,2008),
+('2008-07-19',200829,7,2008,19,29,200807,2008),
+('2008-07-20',200830,7,2008,20,30,200807,2008),
+('2008-07-21',200830,7,2008,21,30,200807,2008),
+('2008-07-22',200830,7,2008,22,30,200807,2008),
+('2008-07-23',200830,7,2008,23,30,200807,2008),
+('2008-07-24',200830,7,2008,24,30,200807,2008),
+('2008-07-25',200830,7,2008,25,30,200807,2008),
+('2008-07-26',200830,7,2008,26,30,200807,2008),
+('2008-07-27',200831,7,2008,27,31,200807,2008),
+('2008-07-28',200831,7,2008,28,31,200807,2008),
+('2008-07-29',200831,7,2008,29,31,200807,2008),
+('2008-07-30',200831,7,2008,30,31,200807,2008),
+('2008-07-31',200831,7,2008,31,31,200807,2008),
+('2008-08-01',200831,8,2008,1,31,200808,2008),
+('2008-08-02',200831,8,2008,2,31,200808,2008),
+('2008-08-03',200832,8,2008,3,32,200808,2008),
+('2008-08-04',200832,8,2008,4,32,200808,2008),
+('2008-08-05',200832,8,2008,5,32,200808,2008),
+('2008-08-06',200832,8,2008,6,32,200808,2008),
+('2008-08-07',200832,8,2008,7,32,200808,2008),
+('2008-08-08',200832,8,2008,8,32,200808,2008),
+('2008-08-09',200832,8,2008,9,32,200808,2008),
+('2008-08-10',200833,8,2008,10,33,200808,2008),
+('2008-08-11',200833,8,2008,11,33,200808,2008),
+('2008-08-12',200833,8,2008,12,33,200808,2008),
+('2008-08-13',200833,8,2008,13,33,200808,2008),
+('2008-08-14',200833,8,2008,14,33,200808,2008),
+('2008-08-15',200833,8,2008,15,33,200808,2008),
+('2008-08-16',200833,8,2008,16,33,200808,2008),
+('2008-08-17',200834,8,2008,17,34,200808,2008),
+('2008-08-18',200834,8,2008,18,34,200808,2008),
+('2008-08-19',200834,8,2008,19,34,200808,2008),
+('2008-08-20',200834,8,2008,20,34,200808,2008),
+('2008-08-21',200834,8,2008,21,34,200808,2008),
+('2008-08-22',200834,8,2008,22,34,200808,2008),
+('2008-08-23',200834,8,2008,23,34,200808,2008),
+('2008-08-24',200835,8,2008,24,35,200808,2008),
+('2008-08-25',200835,8,2008,25,35,200808,2008),
+('2008-08-26',200835,8,2008,26,35,200808,2008),
+('2008-08-27',200835,8,2008,27,35,200808,2008),
+('2008-08-28',200835,8,2008,28,35,200808,2008),
+('2008-08-29',200835,8,2008,29,35,200808,2008),
+('2008-08-30',200835,8,2008,30,35,200808,2008),
+('2008-08-31',200836,8,2008,31,36,200808,2008),
+('2008-09-01',200836,9,2008,1,36,200809,2008),
+('2008-09-02',200836,9,2008,2,36,200809,2008),
+('2008-09-03',200836,9,2008,3,36,200809,2008),
+('2008-09-04',200836,9,2008,4,36,200809,2008),
+('2008-09-05',200836,9,2008,5,36,200809,2008),
+('2008-09-06',200836,9,2008,6,36,200809,2008),
+('2008-09-07',200837,9,2008,7,37,200809,2008),
+('2008-09-08',200837,9,2008,8,37,200809,2008),
+('2008-09-09',200837,9,2008,9,37,200809,2008),
+('2008-09-10',200837,9,2008,10,37,200809,2008),
+('2008-09-11',200837,9,2008,11,37,200809,2008),
+('2008-09-12',200837,9,2008,12,37,200809,2008),
+('2008-09-13',200837,9,2008,13,37,200809,2008),
+('2008-09-14',200838,9,2008,14,38,200809,2008),
+('2008-09-15',200838,9,2008,15,38,200809,2008),
+('2008-09-16',200838,9,2008,16,38,200809,2008),
+('2008-09-17',200838,9,2008,17,38,200809,2008),
+('2008-09-18',200838,9,2008,18,38,200809,2008),
+('2008-09-19',200838,9,2008,19,38,200809,2008),
+('2008-09-20',200838,9,2008,20,38,200809,2008),
+('2008-09-21',200839,9,2008,21,39,200809,2008),
+('2008-09-22',200839,9,2008,22,39,200809,2008),
+('2008-09-23',200839,9,2008,23,39,200809,2008),
+('2008-09-24',200839,9,2008,24,39,200809,2008),
+('2008-09-25',200839,9,2008,25,39,200809,2008),
+('2008-09-26',200839,9,2008,26,39,200809,2008),
+('2008-09-27',200839,9,2008,27,39,200809,2008),
+('2008-09-28',200840,9,2008,28,40,200809,2008),
+('2008-09-29',200840,9,2008,29,40,200809,2008),
+('2008-09-30',200840,9,2008,30,40,200809,2008),
+('2008-10-01',200840,10,2008,1,40,200810,2008),
+('2008-10-02',200840,10,2008,2,40,200810,2008),
+('2008-10-03',200840,10,2008,3,40,200810,2008),
+('2008-10-04',200840,10,2008,4,40,200810,2008),
+('2008-10-05',200841,10,2008,5,41,200810,2008),
+('2008-10-06',200841,10,2008,6,41,200810,2008),
+('2008-10-07',200841,10,2008,7,41,200810,2008),
+('2008-10-08',200841,10,2008,8,41,200810,2008),
+('2008-10-09',200841,10,2008,9,41,200810,2008),
+('2008-10-10',200841,10,2008,10,41,200810,2008),
+('2008-10-11',200841,10,2008,11,41,200810,2008),
+('2008-10-12',200842,10,2008,12,42,200810,2008),
+('2008-10-13',200842,10,2008,13,42,200810,2008),
+('2008-10-14',200842,10,2008,14,42,200810,2008),
+('2008-10-15',200842,10,2008,15,42,200810,2008),
+('2008-10-16',200842,10,2008,16,42,200810,2008),
+('2008-10-17',200842,10,2008,17,42,200810,2008),
+('2008-10-18',200842,10,2008,18,42,200810,2008),
+('2008-10-19',200843,10,2008,19,43,200810,2008),
+('2008-10-20',200843,10,2008,20,43,200810,2008),
+('2008-10-21',200843,10,2008,21,43,200810,2008),
+('2008-10-22',200843,10,2008,22,43,200810,2008),
+('2008-10-23',200843,10,2008,23,43,200810,2008),
+('2008-10-24',200843,10,2008,24,43,200810,2008),
+('2008-10-25',200843,10,2008,25,43,200810,2008),
+('2008-10-26',200844,10,2008,26,44,200810,2008),
+('2008-10-27',200844,10,2008,27,44,200810,2008),
+('2008-10-28',200844,10,2008,28,44,200810,2008),
+('2008-10-29',200844,10,2008,29,44,200810,2008),
+('2008-10-30',200844,10,2008,30,44,200810,2008),
+('2008-10-31',200844,10,2008,31,44,200810,2008),
+('2008-11-01',200844,11,2008,1,44,200811,2008),
+('2008-11-02',200845,11,2008,2,45,200811,2008),
+('2008-11-03',200845,11,2008,3,45,200811,2008),
+('2008-11-04',200845,11,2008,4,45,200811,2008),
+('2008-11-05',200845,11,2008,5,45,200811,2008),
+('2008-11-06',200845,11,2008,6,45,200811,2008),
+('2008-11-07',200845,11,2008,7,45,200811,2008),
+('2008-11-08',200845,11,2008,8,45,200811,2008),
+('2008-11-09',200846,11,2008,9,46,200811,2008),
+('2008-11-10',200846,11,2008,10,46,200811,2008),
+('2008-11-11',200846,11,2008,11,46,200811,2008),
+('2008-11-12',200846,11,2008,12,46,200811,2008),
+('2008-11-13',200846,11,2008,13,46,200811,2008),
+('2008-11-14',200846,11,2008,14,46,200811,2008),
+('2008-11-15',200846,11,2008,15,46,200811,2008),
+('2008-11-16',200847,11,2008,16,47,200811,2008),
+('2008-11-17',200847,11,2008,17,47,200811,2008),
+('2008-11-18',200847,11,2008,18,47,200811,2008),
+('2008-11-19',200847,11,2008,19,47,200811,2008),
+('2008-11-20',200847,11,2008,20,47,200811,2008),
+('2008-11-21',200847,11,2008,21,47,200811,2008),
+('2008-11-22',200847,11,2008,22,47,200811,2008),
+('2008-11-23',200848,11,2008,23,48,200811,2008),
+('2008-11-24',200848,11,2008,24,48,200811,2008),
+('2008-11-25',200848,11,2008,25,48,200811,2008),
+('2008-11-26',200848,11,2008,26,48,200811,2008),
+('2008-11-27',200848,11,2008,27,48,200811,2008),
+('2008-11-28',200848,11,2008,28,48,200811,2008),
+('2008-11-29',200848,11,2008,29,48,200811,2008),
+('2008-11-30',200849,11,2008,30,49,200811,2008),
+('2008-12-01',200849,12,2008,1,49,200812,2009),
+('2008-12-02',200849,12,2008,2,49,200812,2009),
+('2008-12-03',200849,12,2008,3,49,200812,2009),
+('2008-12-04',200849,12,2008,4,49,200812,2009),
+('2008-12-05',200849,12,2008,5,49,200812,2009),
+('2008-12-06',200849,12,2008,6,49,200812,2009),
+('2008-12-07',200850,12,2008,7,50,200812,2009),
+('2008-12-08',200850,12,2008,8,50,200812,2009),
+('2008-12-09',200850,12,2008,9,50,200812,2009),
+('2008-12-10',200850,12,2008,10,50,200812,2009),
+('2008-12-11',200850,12,2008,11,50,200812,2009),
+('2008-12-12',200850,12,2008,12,50,200812,2009),
+('2008-12-13',200850,12,2008,13,50,200812,2009),
+('2008-12-14',200851,12,2008,14,51,200812,2009),
+('2008-12-15',200851,12,2008,15,51,200812,2009),
+('2008-12-16',200851,12,2008,16,51,200812,2009),
+('2008-12-17',200851,12,2008,17,51,200812,2009),
+('2008-12-18',200851,12,2008,18,51,200812,2009),
+('2008-12-19',200851,12,2008,19,51,200812,2009),
+('2008-12-20',200851,12,2008,20,51,200812,2009),
+('2008-12-21',200852,12,2008,21,52,200812,2009),
+('2008-12-22',200852,12,2008,22,52,200812,2009),
+('2008-12-23',200852,12,2008,23,52,200812,2009),
+('2008-12-24',200852,12,2008,24,52,200812,2009),
+('2008-12-25',200852,12,2008,25,52,200812,2009),
+('2008-12-26',200852,12,2008,26,52,200812,2009),
+('2008-12-27',200852,12,2008,27,52,200812,2009),
+('2008-12-28',200853,12,2008,28,53,200812,2009),
+('2008-12-29',200901,12,2008,29,53,200812,2009),
+('2008-12-30',200901,12,2008,30,53,200812,2009),
+('2008-12-31',200901,12,2008,31,53,200812,2009),
+('2009-01-01',200901,1,2009,1,53,200901,2009),
+('2009-01-02',200901,1,2009,2,53,200901,2009),
+('2009-01-03',200901,1,2009,3,53,200901,2009),
+('2009-01-04',200902,1,2009,4,1,200901,2009),
+('2009-01-05',200902,1,2009,5,1,200901,2009),
+('2009-01-06',200902,1,2009,6,1,200901,2009),
+('2009-01-07',200902,1,2009,7,1,200901,2009),
+('2009-01-08',200902,1,2009,8,1,200901,2009),
+('2009-01-09',200902,1,2009,9,1,200901,2009),
+('2009-01-10',200902,1,2009,10,1,200901,2009),
+('2009-01-11',200903,1,2009,11,2,200901,2009),
+('2009-01-12',200903,1,2009,12,2,200901,2009),
+('2009-01-13',200903,1,2009,13,2,200901,2009),
+('2009-01-14',200903,1,2009,14,2,200901,2009),
+('2009-01-15',200903,1,2009,15,2,200901,2009),
+('2009-01-16',200903,1,2009,16,2,200901,2009),
+('2009-01-17',200903,1,2009,17,2,200901,2009),
+('2009-01-18',200904,1,2009,18,3,200901,2009),
+('2009-01-19',200904,1,2009,19,3,200901,2009),
+('2009-01-20',200904,1,2009,20,3,200901,2009),
+('2009-01-21',200904,1,2009,21,3,200901,2009),
+('2009-01-22',200904,1,2009,22,3,200901,2009),
+('2009-01-23',200904,1,2009,23,3,200901,2009),
+('2009-01-24',200904,1,2009,24,3,200901,2009),
+('2009-01-25',200905,1,2009,25,4,200901,2009),
+('2009-01-26',200905,1,2009,26,4,200901,2009),
+('2009-01-27',200905,1,2009,27,4,200901,2009),
+('2009-01-28',200905,1,2009,28,4,200901,2009),
+('2009-01-29',200905,1,2009,29,4,200901,2009),
+('2009-01-30',200905,1,2009,30,4,200901,2009),
+('2009-01-31',200905,1,2009,31,4,200901,2009),
+('2009-02-01',200906,2,2009,1,5,200902,2009),
+('2009-02-02',200906,2,2009,2,5,200902,2009),
+('2009-02-03',200906,2,2009,3,5,200902,2009),
+('2009-02-04',200906,2,2009,4,5,200902,2009),
+('2009-02-05',200906,2,2009,5,5,200902,2009),
+('2009-02-06',200906,2,2009,6,5,200902,2009),
+('2009-02-07',200906,2,2009,7,5,200902,2009),
+('2009-02-08',200907,2,2009,8,6,200902,2009),
+('2009-02-09',200907,2,2009,9,6,200902,2009),
+('2009-02-10',200907,2,2009,10,6,200902,2009),
+('2009-02-11',200907,2,2009,11,6,200902,2009),
+('2009-02-12',200907,2,2009,12,6,200902,2009),
+('2009-02-13',200907,2,2009,13,6,200902,2009),
+('2009-02-14',200907,2,2009,14,6,200902,2009),
+('2009-02-15',200908,2,2009,15,7,200902,2009),
+('2009-02-16',200908,2,2009,16,7,200902,2009),
+('2009-02-17',200908,2,2009,17,7,200902,2009),
+('2009-02-18',200908,2,2009,18,7,200902,2009),
+('2009-02-19',200908,2,2009,19,7,200902,2009),
+('2009-02-20',200908,2,2009,20,7,200902,2009),
+('2009-02-21',200908,2,2009,21,7,200902,2009),
+('2009-02-22',200909,2,2009,22,8,200902,2009),
+('2009-02-23',200909,2,2009,23,8,200902,2009),
+('2009-02-24',200909,2,2009,24,8,200902,2009),
+('2009-02-25',200909,2,2009,25,8,200902,2009),
+('2009-02-26',200909,2,2009,26,8,200902,2009),
+('2009-02-27',200909,2,2009,27,8,200902,2009),
+('2009-02-28',200909,2,2009,28,8,200902,2009),
+('2009-03-01',200910,3,2009,1,9,200903,2009),
+('2009-03-02',200910,3,2009,2,9,200903,2009),
+('2009-03-03',200910,3,2009,3,9,200903,2009),
+('2009-03-04',200910,3,2009,4,9,200903,2009),
+('2009-03-05',200910,3,2009,5,9,200903,2009),
+('2009-03-06',200910,3,2009,6,9,200903,2009),
+('2009-03-07',200910,3,2009,7,9,200903,2009),
+('2009-03-08',200911,3,2009,8,10,200903,2009),
+('2009-03-09',200911,3,2009,9,10,200903,2009),
+('2009-03-10',200911,3,2009,10,10,200903,2009),
+('2009-03-11',200911,3,2009,11,10,200903,2009),
+('2009-03-12',200911,3,2009,12,10,200903,2009),
+('2009-03-13',200911,3,2009,13,10,200903,2009),
+('2009-03-14',200911,3,2009,14,10,200903,2009),
+('2009-03-15',200912,3,2009,15,11,200903,2009),
+('2009-03-16',200912,3,2009,16,11,200903,2009),
+('2009-03-17',200912,3,2009,17,11,200903,2009),
+('2009-03-18',200912,3,2009,18,11,200903,2009),
+('2009-03-19',200912,3,2009,19,11,200903,2009),
+('2009-03-20',200912,3,2009,20,11,200903,2009),
+('2009-03-21',200912,3,2009,21,11,200903,2009),
+('2009-03-22',200913,3,2009,22,12,200903,2009),
+('2009-03-23',200913,3,2009,23,12,200903,2009),
+('2009-03-24',200913,3,2009,24,12,200903,2009),
+('2009-03-25',200913,3,2009,25,12,200903,2009),
+('2009-03-26',200913,3,2009,26,12,200903,2009),
+('2009-03-27',200913,3,2009,27,12,200903,2009),
+('2009-03-28',200913,3,2009,28,12,200903,2009),
+('2009-03-29',200914,3,2009,29,13,200903,2009),
+('2009-03-30',200914,3,2009,30,13,200903,2009),
+('2009-03-31',200914,3,2009,31,13,200903,2009),
+('2009-04-01',200914,4,2009,1,13,200904,2009),
+('2009-04-02',200914,4,2009,2,13,200904,2009),
+('2009-04-03',200914,4,2009,3,13,200904,2009),
+('2009-04-04',200914,4,2009,4,13,200904,2009),
+('2009-04-05',200915,4,2009,5,14,200904,2009),
+('2009-04-06',200915,4,2009,6,14,200904,2009),
+('2009-04-07',200915,4,2009,7,14,200904,2009),
+('2009-04-08',200915,4,2009,8,14,200904,2009),
+('2009-04-09',200915,4,2009,9,14,200904,2009),
+('2009-04-10',200915,4,2009,10,14,200904,2009),
+('2009-04-11',200915,4,2009,11,14,200904,2009),
+('2009-04-12',200916,4,2009,12,15,200904,2009),
+('2009-04-13',200916,4,2009,13,15,200904,2009),
+('2009-04-14',200916,4,2009,14,15,200904,2009),
+('2009-04-15',200916,4,2009,15,15,200904,2009),
+('2009-04-16',200916,4,2009,16,15,200904,2009),
+('2009-04-17',200916,4,2009,17,15,200904,2009),
+('2009-04-18',200916,4,2009,18,15,200904,2009),
+('2009-04-19',200917,4,2009,19,16,200904,2009),
+('2009-04-20',200917,4,2009,20,16,200904,2009),
+('2009-04-21',200917,4,2009,21,16,200904,2009),
+('2009-04-22',200917,4,2009,22,16,200904,2009),
+('2009-04-23',200917,4,2009,23,16,200904,2009),
+('2009-04-24',200917,4,2009,24,16,200904,2009),
+('2009-04-25',200917,4,2009,25,16,200904,2009),
+('2009-04-26',200918,4,2009,26,17,200904,2009),
+('2009-04-27',200918,4,2009,27,17,200904,2009),
+('2009-04-28',200918,4,2009,28,17,200904,2009),
+('2009-04-29',200918,4,2009,29,17,200904,2009),
+('2009-04-30',200918,4,2009,30,17,200904,2009),
+('2009-05-01',200918,5,2009,1,17,200905,2009),
+('2009-05-02',200918,5,2009,2,17,200905,2009),
+('2009-05-03',200919,5,2009,3,18,200905,2009),
+('2009-05-04',200919,5,2009,4,18,200905,2009),
+('2009-05-05',200919,5,2009,5,18,200905,2009),
+('2009-05-06',200919,5,2009,6,18,200905,2009),
+('2009-05-07',200919,5,2009,7,18,200905,2009),
+('2009-05-08',200919,5,2009,8,18,200905,2009),
+('2009-05-09',200919,5,2009,9,18,200905,2009),
+('2009-05-10',200920,5,2009,10,19,200905,2009),
+('2009-05-11',200920,5,2009,11,19,200905,2009),
+('2009-05-12',200920,5,2009,12,19,200905,2009),
+('2009-05-13',200920,5,2009,13,19,200905,2009),
+('2009-05-14',200920,5,2009,14,19,200905,2009),
+('2009-05-15',200920,5,2009,15,19,200905,2009),
+('2009-05-16',200920,5,2009,16,19,200905,2009),
+('2009-05-17',200921,5,2009,17,20,200905,2009),
+('2009-05-18',200921,5,2009,18,20,200905,2009),
+('2009-05-19',200921,5,2009,19,20,200905,2009),
+('2009-05-20',200921,5,2009,20,20,200905,2009),
+('2009-05-21',200921,5,2009,21,20,200905,2009),
+('2009-05-22',200921,5,2009,22,20,200905,2009),
+('2009-05-23',200921,5,2009,23,20,200905,2009),
+('2009-05-24',200922,5,2009,24,21,200905,2009),
+('2009-05-25',200922,5,2009,25,21,200905,2009),
+('2009-05-26',200922,5,2009,26,21,200905,2009),
+('2009-05-27',200922,5,2009,27,21,200905,2009),
+('2009-05-28',200922,5,2009,28,21,200905,2009),
+('2009-05-29',200922,5,2009,29,21,200905,2009),
+('2009-05-30',200922,5,2009,30,21,200905,2009),
+('2009-05-31',200923,5,2009,31,22,200905,2009),
+('2009-06-01',200923,6,2009,1,22,200906,2009),
+('2009-06-02',200923,6,2009,2,22,200906,2009),
+('2009-06-03',200923,6,2009,3,22,200906,2009),
+('2009-06-04',200923,6,2009,4,22,200906,2009),
+('2009-06-05',200923,6,2009,5,22,200906,2009),
+('2009-06-06',200923,6,2009,6,22,200906,2009),
+('2009-06-07',200924,6,2009,7,23,200906,2009),
+('2009-06-08',200924,6,2009,8,23,200906,2009),
+('2009-06-09',200924,6,2009,9,23,200906,2009),
+('2009-06-10',200924,6,2009,10,23,200906,2009),
+('2009-06-11',200924,6,2009,11,23,200906,2009),
+('2009-06-12',200924,6,2009,12,23,200906,2009),
+('2009-06-13',200924,6,2009,13,23,200906,2009),
+('2009-06-14',200925,6,2009,14,24,200906,2009),
+('2009-06-15',200925,6,2009,15,24,200906,2009),
+('2009-06-16',200925,6,2009,16,24,200906,2009),
+('2009-06-17',200925,6,2009,17,24,200906,2009),
+('2009-06-18',200925,6,2009,18,24,200906,2009),
+('2009-06-19',200925,6,2009,19,24,200906,2009),
+('2009-06-20',200925,6,2009,20,24,200906,2009),
+('2009-06-21',200926,6,2009,21,25,200906,2009),
+('2009-06-22',200926,6,2009,22,25,200906,2009),
+('2009-06-23',200926,6,2009,23,25,200906,2009),
+('2009-06-24',200926,6,2009,24,25,200906,2009),
+('2009-06-25',200926,6,2009,25,25,200906,2009),
+('2009-06-26',200926,6,2009,26,25,200906,2009),
+('2009-06-27',200926,6,2009,27,25,200906,2009),
+('2009-06-28',200927,6,2009,28,26,200906,2009),
+('2009-06-29',200927,6,2009,29,26,200906,2009),
+('2009-06-30',200927,6,2009,30,26,200906,2009),
+('2009-07-01',200927,7,2009,1,26,200907,2009),
+('2009-07-02',200927,7,2009,2,26,200907,2009),
+('2009-07-03',200927,7,2009,3,26,200907,2009),
+('2009-07-04',200927,7,2009,4,26,200907,2009),
+('2009-07-05',200928,7,2009,5,27,200907,2009),
+('2009-07-06',200928,7,2009,6,27,200907,2009),
+('2009-07-07',200928,7,2009,7,27,200907,2009),
+('2009-07-08',200928,7,2009,8,27,200907,2009),
+('2009-07-09',200928,7,2009,9,27,200907,2009),
+('2009-07-10',200928,7,2009,10,27,200907,2009),
+('2009-07-11',200928,7,2009,11,27,200907,2009),
+('2009-07-12',200929,7,2009,12,28,200907,2009),
+('2009-07-13',200929,7,2009,13,28,200907,2009),
+('2009-07-14',200929,7,2009,14,28,200907,2009),
+('2009-07-15',200929,7,2009,15,28,200907,2009),
+('2009-07-16',200929,7,2009,16,28,200907,2009),
+('2009-07-17',200929,7,2009,17,28,200907,2009),
+('2009-07-18',200929,7,2009,18,28,200907,2009),
+('2009-07-19',200930,7,2009,19,29,200907,2009),
+('2009-07-20',200930,7,2009,20,29,200907,2009),
+('2009-07-21',200930,7,2009,21,29,200907,2009),
+('2009-07-22',200930,7,2009,22,29,200907,2009),
+('2009-07-23',200930,7,2009,23,29,200907,2009),
+('2009-07-24',200930,7,2009,24,29,200907,2009),
+('2009-07-25',200930,7,2009,25,29,200907,2009),
+('2009-07-26',200931,7,2009,26,30,200907,2009),
+('2009-07-27',200931,7,2009,27,30,200907,2009),
+('2009-07-28',200931,7,2009,28,30,200907,2009),
+('2009-07-29',200931,7,2009,29,30,200907,2009),
+('2009-07-30',200931,7,2009,30,30,200907,2009),
+('2009-07-31',200931,7,2009,31,30,200907,2009),
+('2009-08-01',200931,8,2009,1,30,200908,2009),
+('2009-08-02',200932,8,2009,2,31,200908,2009),
+('2009-08-03',200932,8,2009,3,31,200908,2009),
+('2009-08-04',200932,8,2009,4,31,200908,2009),
+('2009-08-05',200932,8,2009,5,31,200908,2009),
+('2009-08-06',200932,8,2009,6,31,200908,2009),
+('2009-08-07',200932,8,2009,7,31,200908,2009),
+('2009-08-08',200932,8,2009,8,31,200908,2009),
+('2009-08-09',200933,8,2009,9,32,200908,2009),
+('2009-08-10',200933,8,2009,10,32,200908,2009),
+('2009-08-11',200933,8,2009,11,32,200908,2009),
+('2009-08-12',200933,8,2009,12,32,200908,2009),
+('2009-08-13',200933,8,2009,13,32,200908,2009),
+('2009-08-14',200933,8,2009,14,32,200908,2009),
+('2009-08-15',200933,8,2009,15,32,200908,2009),
+('2009-08-16',200934,8,2009,16,33,200908,2009),
+('2009-08-17',200934,8,2009,17,33,200908,2009),
+('2009-08-18',200934,8,2009,18,33,200908,2009),
+('2009-08-19',200934,8,2009,19,33,200908,2009),
+('2009-08-20',200934,8,2009,20,33,200908,2009),
+('2009-08-21',200934,8,2009,21,33,200908,2009),
+('2009-08-22',200934,8,2009,22,33,200908,2009),
+('2009-08-23',200935,8,2009,23,34,200908,2009),
+('2009-08-24',200935,8,2009,24,34,200908,2009),
+('2009-08-25',200935,8,2009,25,34,200908,2009),
+('2009-08-26',200935,8,2009,26,34,200908,2009),
+('2009-08-27',200935,8,2009,27,34,200908,2009),
+('2009-08-28',200935,8,2009,28,34,200908,2009),
+('2009-08-29',200935,8,2009,29,34,200908,2009),
+('2009-08-30',200936,8,2009,30,35,200908,2009),
+('2009-08-31',200936,8,2009,31,35,200908,2009),
+('2009-09-01',200936,9,2009,1,35,200909,2009),
+('2009-09-02',200936,9,2009,2,35,200909,2009),
+('2009-09-03',200936,9,2009,3,35,200909,2009),
+('2009-09-04',200936,9,2009,4,35,200909,2009),
+('2009-09-05',200936,9,2009,5,35,200909,2009),
+('2009-09-06',200937,9,2009,6,36,200909,2009),
+('2009-09-07',200937,9,2009,7,36,200909,2009),
+('2009-09-08',200937,9,2009,8,36,200909,2009),
+('2009-09-09',200937,9,2009,9,36,200909,2009),
+('2009-09-10',200937,9,2009,10,36,200909,2009),
+('2009-09-11',200937,9,2009,11,36,200909,2009),
+('2009-09-12',200937,9,2009,12,36,200909,2009),
+('2009-09-13',200938,9,2009,13,37,200909,2009),
+('2009-09-14',200938,9,2009,14,37,200909,2009),
+('2009-09-15',200938,9,2009,15,37,200909,2009),
+('2009-09-16',200938,9,2009,16,37,200909,2009),
+('2009-09-17',200938,9,2009,17,37,200909,2009),
+('2009-09-18',200938,9,2009,18,37,200909,2009),
+('2009-09-19',200938,9,2009,19,37,200909,2009),
+('2009-09-20',200939,9,2009,20,38,200909,2009),
+('2009-09-21',200939,9,2009,21,38,200909,2009),
+('2009-09-22',200939,9,2009,22,38,200909,2009),
+('2009-09-23',200939,9,2009,23,38,200909,2009),
+('2009-09-24',200939,9,2009,24,38,200909,2009),
+('2009-09-25',200939,9,2009,25,38,200909,2009),
+('2009-09-26',200939,9,2009,26,38,200909,2009),
+('2009-09-27',200940,9,2009,27,39,200909,2009),
+('2009-09-28',200940,9,2009,28,39,200909,2009),
+('2009-09-29',200940,9,2009,29,39,200909,2009),
+('2009-09-30',200940,9,2009,30,39,200909,2009),
+('2009-10-01',200940,10,2009,1,39,200910,2009),
+('2009-10-02',200940,10,2009,2,39,200910,2009),
+('2009-10-03',200940,10,2009,3,39,200910,2009),
+('2009-10-04',200941,10,2009,4,40,200910,2009),
+('2009-10-05',200941,10,2009,5,40,200910,2009),
+('2009-10-06',200941,10,2009,6,40,200910,2009),
+('2009-10-07',200941,10,2009,7,40,200910,2009),
+('2009-10-08',200941,10,2009,8,40,200910,2009),
+('2009-10-09',200941,10,2009,9,40,200910,2009),
+('2009-10-10',200941,10,2009,10,40,200910,2009),
+('2009-10-11',200942,10,2009,11,41,200910,2009),
+('2009-10-12',200942,10,2009,12,41,200910,2009),
+('2009-10-13',200942,10,2009,13,41,200910,2009),
+('2009-10-14',200942,10,2009,14,41,200910,2009),
+('2009-10-15',200942,10,2009,15,41,200910,2009),
+('2009-10-16',200942,10,2009,16,41,200910,2009),
+('2009-10-17',200942,10,2009,17,41,200910,2009),
+('2009-10-18',200943,10,2009,18,42,200910,2009),
+('2009-10-19',200943,10,2009,19,42,200910,2009),
+('2009-10-20',200943,10,2009,20,42,200910,2009),
+('2009-10-21',200943,10,2009,21,42,200910,2009),
+('2009-10-22',200943,10,2009,22,42,200910,2009),
+('2009-10-23',200943,10,2009,23,42,200910,2009),
+('2009-10-24',200943,10,2009,24,42,200910,2009),
+('2009-10-25',200944,10,2009,25,43,200910,2009),
+('2009-10-26',200944,10,2009,26,43,200910,2009),
+('2009-10-27',200944,10,2009,27,43,200910,2009),
+('2009-10-28',200944,10,2009,28,43,200910,2009),
+('2009-10-29',200944,10,2009,29,43,200910,2009),
+('2009-10-30',200944,10,2009,30,43,200910,2009),
+('2009-10-31',200944,10,2009,31,43,200910,2009),
+('2009-11-01',200945,11,2009,1,44,200911,2009),
+('2009-11-02',200945,11,2009,2,44,200911,2009),
+('2009-11-03',200945,11,2009,3,44,200911,2009),
+('2009-11-04',200945,11,2009,4,44,200911,2009),
+('2009-11-05',200945,11,2009,5,44,200911,2009),
+('2009-11-06',200945,11,2009,6,44,200911,2009),
+('2009-11-07',200945,11,2009,7,44,200911,2009),
+('2009-11-08',200946,11,2009,8,45,200911,2009),
+('2009-11-09',200946,11,2009,9,45,200911,2009),
+('2009-11-10',200946,11,2009,10,45,200911,2009),
+('2009-11-11',200946,11,2009,11,45,200911,2009),
+('2009-11-12',200946,11,2009,12,45,200911,2009),
+('2009-11-13',200946,11,2009,13,45,200911,2009),
+('2009-11-14',200946,11,2009,14,45,200911,2009),
+('2009-11-15',200947,11,2009,15,46,200911,2009),
+('2009-11-16',200947,11,2009,16,46,200911,2009),
+('2009-11-17',200947,11,2009,17,46,200911,2009),
+('2009-11-18',200947,11,2009,18,46,200911,2009),
+('2009-11-19',200947,11,2009,19,46,200911,2009),
+('2009-11-20',200947,11,2009,20,46,200911,2009),
+('2009-11-21',200947,11,2009,21,46,200911,2009),
+('2009-11-22',200948,11,2009,22,47,200911,2009),
+('2009-11-23',200948,11,2009,23,47,200911,2009),
+('2009-11-24',200948,11,2009,24,47,200911,2009),
+('2009-11-25',200948,11,2009,25,47,200911,2009),
+('2009-11-26',200948,11,2009,26,47,200911,2009),
+('2009-11-27',200948,11,2009,27,47,200911,2009),
+('2009-11-28',200948,11,2009,28,47,200911,2009),
+('2009-11-29',200949,11,2009,29,48,200911,2009),
+('2009-11-30',200949,11,2009,30,48,200911,2009),
+('2009-12-01',200949,12,2009,1,48,200912,2010),
+('2009-12-02',200949,12,2009,2,48,200912,2010),
+('2009-12-03',200949,12,2009,3,48,200912,2010),
+('2009-12-04',200949,12,2009,4,48,200912,2010),
+('2009-12-05',200949,12,2009,5,48,200912,2010),
+('2009-12-06',200950,12,2009,6,49,200912,2010),
+('2009-12-07',200950,12,2009,7,49,200912,2010),
+('2009-12-08',200950,12,2009,8,49,200912,2010),
+('2009-12-09',200950,12,2009,9,49,200912,2010),
+('2009-12-10',200950,12,2009,10,49,200912,2010),
+('2009-12-11',200950,12,2009,11,49,200912,2010),
+('2009-12-12',200950,12,2009,12,49,200912,2010),
+('2009-12-13',200951,12,2009,13,50,200912,2010),
+('2009-12-14',200951,12,2009,14,50,200912,2010),
+('2009-12-15',200951,12,2009,15,50,200912,2010),
+('2009-12-16',200951,12,2009,16,50,200912,2010),
+('2009-12-17',200951,12,2009,17,50,200912,2010),
+('2009-12-18',200951,12,2009,18,50,200912,2010),
+('2009-12-19',200951,12,2009,19,50,200912,2010),
+('2009-12-20',200952,12,2009,20,51,200912,2010),
+('2009-12-21',200952,12,2009,21,51,200912,2010),
+('2009-12-22',200952,12,2009,22,51,200912,2010),
+('2009-12-23',200952,12,2009,23,51,200912,2010),
+('2009-12-24',200952,12,2009,24,51,200912,2010),
+('2009-12-25',200952,12,2009,25,51,200912,2010),
+('2009-12-26',200952,12,2009,26,51,200912,2010),
+('2009-12-27',200953,12,2009,27,52,200912,2010),
+('2009-12-28',200952,12,2009,28,52,200912,2010),
+('2009-12-29',200952,12,2009,29,52,200912,2010),
+('2009-12-30',200952,12,2009,30,52,200912,2010),
+('2009-12-31',200952,12,2009,31,52,200912,2010),
+('2010-01-01',201001,1,2010,1,52,201001,2010),
+('2010-01-02',201001,1,2010,2,52,201001,2010),
+('2010-01-03',201002,1,2010,3,1,201001,2010),
+('2010-01-04',201001,1,2010,4,1,201001,2010),
+('2010-01-05',201001,1,2010,5,1,201001,2010),
+('2010-01-06',201001,1,2010,6,1,201001,2010),
+('2010-01-07',201001,1,2010,7,1,201001,2010),
+('2010-01-08',201001,1,2010,8,1,201001,2010),
+('2010-01-09',201001,1,2010,9,1,201001,2010),
+('2010-01-10',201002,1,2010,10,2,201001,2010),
+('2010-01-11',201002,1,2010,11,2,201001,2010),
+('2010-01-12',201002,1,2010,12,2,201001,2010),
+('2010-01-13',201002,1,2010,13,2,201001,2010),
+('2010-01-14',201002,1,2010,14,2,201001,2010),
+('2010-01-15',201002,1,2010,15,2,201001,2010),
+('2010-01-16',201002,1,2010,16,2,201001,2010),
+('2010-01-17',201003,1,2010,17,3,201001,2010),
+('2010-01-18',201003,1,2010,18,3,201001,2010),
+('2010-01-19',201003,1,2010,19,3,201001,2010),
+('2010-01-20',201003,1,2010,20,3,201001,2010),
+('2010-01-21',201003,1,2010,21,3,201001,2010),
+('2010-01-22',201003,1,2010,22,3,201001,2010),
+('2010-01-23',201003,1,2010,23,3,201001,2010),
+('2010-01-24',201004,1,2010,24,4,201001,2010),
+('2010-01-25',201004,1,2010,25,4,201001,2010),
+('2010-01-26',201004,1,2010,26,4,201001,2010),
+('2010-01-27',201004,1,2010,27,4,201001,2010),
+('2010-01-28',201004,1,2010,28,4,201001,2010),
+('2010-01-29',201004,1,2010,29,4,201001,2010),
+('2010-01-30',201004,1,2010,30,4,201001,2010),
+('2010-01-31',201005,1,2010,31,5,201001,2010),
+('2010-02-01',201005,2,2010,1,5,201002,2010),
+('2010-02-02',201005,2,2010,2,5,201002,2010),
+('2010-02-03',201005,2,2010,3,5,201002,2010),
+('2010-02-04',201005,2,2010,4,5,201002,2010),
+('2010-02-05',201005,2,2010,5,5,201002,2010),
+('2010-02-06',201005,2,2010,6,5,201002,2010),
+('2010-02-07',201006,2,2010,7,6,201002,2010),
+('2010-02-08',201006,2,2010,8,6,201002,2010),
+('2010-02-09',201006,2,2010,9,6,201002,2010),
+('2010-02-10',201006,2,2010,10,6,201002,2010),
+('2010-02-11',201006,2,2010,11,6,201002,2010),
+('2010-02-12',201006,2,2010,12,6,201002,2010),
+('2010-02-13',201006,2,2010,13,6,201002,2010),
+('2010-02-14',201007,2,2010,14,7,201002,2010),
+('2010-02-15',201007,2,2010,15,7,201002,2010),
+('2010-02-16',201007,2,2010,16,7,201002,2010),
+('2010-02-17',201007,2,2010,17,7,201002,2010),
+('2010-02-18',201007,2,2010,18,7,201002,2010),
+('2010-02-19',201007,2,2010,19,7,201002,2010),
+('2010-02-20',201007,2,2010,20,7,201002,2010),
+('2010-02-21',201008,2,2010,21,8,201002,2010),
+('2010-02-22',201008,2,2010,22,8,201002,2010),
+('2010-02-23',201008,2,2010,23,8,201002,2010),
+('2010-02-24',201008,2,2010,24,8,201002,2010),
+('2010-02-25',201008,2,2010,25,8,201002,2010),
+('2010-02-26',201008,2,2010,26,8,201002,2010),
+('2010-02-27',201008,2,2010,27,8,201002,2010),
+('2010-02-28',201009,2,2010,28,9,201002,2010),
+('2010-03-01',201009,3,2010,1,9,201003,2010),
+('2010-03-02',201009,3,2010,2,9,201003,2010),
+('2010-03-03',201009,3,2010,3,9,201003,2010),
+('2010-03-04',201009,3,2010,4,9,201003,2010),
+('2010-03-05',201009,3,2010,5,9,201003,2010),
+('2010-03-06',201009,3,2010,6,9,201003,2010),
+('2010-03-07',201010,3,2010,7,10,201003,2010),
+('2010-03-08',201010,3,2010,8,10,201003,2010),
+('2010-03-09',201010,3,2010,9,10,201003,2010),
+('2010-03-10',201010,3,2010,10,10,201003,2010),
+('2010-03-11',201010,3,2010,11,10,201003,2010),
+('2010-03-12',201010,3,2010,12,10,201003,2010),
+('2010-03-13',201010,3,2010,13,10,201003,2010),
+('2010-03-14',201011,3,2010,14,11,201003,2010),
+('2010-03-15',201011,3,2010,15,11,201003,2010),
+('2010-03-16',201011,3,2010,16,11,201003,2010),
+('2010-03-17',201011,3,2010,17,11,201003,2010),
+('2010-03-18',201011,3,2010,18,11,201003,2010),
+('2010-03-19',201011,3,2010,19,11,201003,2010),
+('2010-03-20',201011,3,2010,20,11,201003,2010),
+('2010-03-21',201012,3,2010,21,12,201003,2010),
+('2010-03-22',201012,3,2010,22,12,201003,2010),
+('2010-03-23',201012,3,2010,23,12,201003,2010),
+('2010-03-24',201012,3,2010,24,12,201003,2010),
+('2010-03-25',201012,3,2010,25,12,201003,2010),
+('2010-03-26',201012,3,2010,26,12,201003,2010),
+('2010-03-27',201012,3,2010,27,12,201003,2010),
+('2010-03-28',201013,3,2010,28,13,201003,2010),
+('2010-03-29',201013,3,2010,29,13,201003,2010),
+('2010-03-30',201013,3,2010,30,13,201003,2010),
+('2010-03-31',201013,3,2010,31,13,201003,2010),
+('2010-04-01',201013,4,2010,1,13,201004,2010),
+('2010-04-02',201013,4,2010,2,13,201004,2010),
+('2010-04-03',201013,4,2010,3,13,201004,2010),
+('2010-04-04',201014,4,2010,4,14,201004,2010),
+('2010-04-05',201014,4,2010,5,14,201004,2010),
+('2010-04-06',201014,4,2010,6,14,201004,2010),
+('2010-04-07',201014,4,2010,7,14,201004,2010),
+('2010-04-08',201014,4,2010,8,14,201004,2010),
+('2010-04-09',201014,4,2010,9,14,201004,2010),
+('2010-04-10',201014,4,2010,10,14,201004,2010),
+('2010-04-11',201015,4,2010,11,15,201004,2010),
+('2010-04-12',201015,4,2010,12,15,201004,2010),
+('2010-04-13',201015,4,2010,13,15,201004,2010),
+('2010-04-14',201015,4,2010,14,15,201004,2010),
+('2010-04-15',201015,4,2010,15,15,201004,2010),
+('2010-04-16',201015,4,2010,16,15,201004,2010),
+('2010-04-17',201015,4,2010,17,15,201004,2010),
+('2010-04-18',201016,4,2010,18,16,201004,2010),
+('2010-04-19',201016,4,2010,19,16,201004,2010),
+('2010-04-20',201016,4,2010,20,16,201004,2010),
+('2010-04-21',201016,4,2010,21,16,201004,2010),
+('2010-04-22',201016,4,2010,22,16,201004,2010),
+('2010-04-23',201016,4,2010,23,16,201004,2010),
+('2010-04-24',201016,4,2010,24,16,201004,2010),
+('2010-04-25',201017,4,2010,25,17,201004,2010),
+('2010-04-26',201017,4,2010,26,17,201004,2010),
+('2010-04-27',201017,4,2010,27,17,201004,2010),
+('2010-04-28',201017,4,2010,28,17,201004,2010),
+('2010-04-29',201017,4,2010,29,17,201004,2010),
+('2010-04-30',201017,4,2010,30,17,201004,2010),
+('2010-05-01',201017,5,2010,1,17,201005,2010),
+('2010-05-02',201018,5,2010,2,18,201005,2010),
+('2010-05-03',201018,5,2010,3,18,201005,2010),
+('2010-05-04',201018,5,2010,4,18,201005,2010),
+('2010-05-05',201018,5,2010,5,18,201005,2010),
+('2010-05-06',201018,5,2010,6,18,201005,2010),
+('2010-05-07',201018,5,2010,7,18,201005,2010),
+('2010-05-08',201018,5,2010,8,18,201005,2010),
+('2010-05-09',201019,5,2010,9,19,201005,2010),
+('2010-05-10',201019,5,2010,10,19,201005,2010),
+('2010-05-11',201019,5,2010,11,19,201005,2010),
+('2010-05-12',201019,5,2010,12,19,201005,2010),
+('2010-05-13',201019,5,2010,13,19,201005,2010),
+('2010-05-14',201019,5,2010,14,19,201005,2010),
+('2010-05-15',201019,5,2010,15,19,201005,2010),
+('2010-05-16',201020,5,2010,16,20,201005,2010),
+('2010-05-17',201020,5,2010,17,20,201005,2010),
+('2010-05-18',201020,5,2010,18,20,201005,2010),
+('2010-05-19',201020,5,2010,19,20,201005,2010),
+('2010-05-20',201020,5,2010,20,20,201005,2010),
+('2010-05-21',201020,5,2010,21,20,201005,2010),
+('2010-05-22',201020,5,2010,22,20,201005,2010),
+('2010-05-23',201021,5,2010,23,21,201005,2010),
+('2010-05-24',201021,5,2010,24,21,201005,2010),
+('2010-05-25',201021,5,2010,25,21,201005,2010),
+('2010-05-26',201021,5,2010,26,21,201005,2010),
+('2010-05-27',201021,5,2010,27,21,201005,2010),
+('2010-05-28',201021,5,2010,28,21,201005,2010),
+('2010-05-29',201021,5,2010,29,21,201005,2010),
+('2010-05-30',201022,5,2010,30,22,201005,2010),
+('2010-05-31',201022,5,2010,31,22,201005,2010),
+('2010-06-01',201022,6,2010,1,22,201006,2010),
+('2010-06-02',201022,6,2010,2,22,201006,2010),
+('2010-06-03',201022,6,2010,3,22,201006,2010),
+('2010-06-04',201022,6,2010,4,22,201006,2010),
+('2010-06-05',201022,6,2010,5,22,201006,2010),
+('2010-06-06',201023,6,2010,6,23,201006,2010),
+('2010-06-07',201023,6,2010,7,23,201006,2010),
+('2010-06-08',201023,6,2010,8,23,201006,2010),
+('2010-06-09',201023,6,2010,9,23,201006,2010),
+('2010-06-10',201023,6,2010,10,23,201006,2010),
+('2010-06-11',201023,6,2010,11,23,201006,2010),
+('2010-06-12',201023,6,2010,12,23,201006,2010),
+('2010-06-13',201024,6,2010,13,24,201006,2010),
+('2010-06-14',201024,6,2010,14,24,201006,2010),
+('2010-06-15',201024,6,2010,15,24,201006,2010),
+('2010-06-16',201024,6,2010,16,24,201006,2010),
+('2010-06-17',201024,6,2010,17,24,201006,2010),
+('2010-06-18',201024,6,2010,18,24,201006,2010),
+('2010-06-19',201024,6,2010,19,24,201006,2010),
+('2010-06-20',201025,6,2010,20,25,201006,2010),
+('2010-06-21',201025,6,2010,21,25,201006,2010),
+('2010-06-22',201025,6,2010,22,25,201006,2010),
+('2010-06-23',201025,6,2010,23,25,201006,2010),
+('2010-06-24',201025,6,2010,24,25,201006,2010),
+('2010-06-25',201025,6,2010,25,25,201006,2010),
+('2010-06-26',201025,6,2010,26,25,201006,2010),
+('2010-06-27',201026,6,2010,27,26,201006,2010),
+('2010-06-28',201026,6,2010,28,26,201006,2010),
+('2010-06-29',201026,6,2010,29,26,201006,2010),
+('2010-06-30',201026,6,2010,30,26,201006,2010),
+('2010-07-01',201026,7,2010,1,26,201007,2010),
+('2010-07-02',201026,7,2010,2,26,201007,2010),
+('2010-07-03',201026,7,2010,3,26,201007,2010),
+('2010-07-04',201027,7,2010,4,27,201007,2010),
+('2010-07-05',201027,7,2010,5,27,201007,2010),
+('2010-07-06',201027,7,2010,6,27,201007,2010),
+('2010-07-07',201027,7,2010,7,27,201007,2010),
+('2010-07-08',201027,7,2010,8,27,201007,2010),
+('2010-07-09',201027,7,2010,9,27,201007,2010),
+('2010-07-10',201027,7,2010,10,27,201007,2010),
+('2010-07-11',201028,7,2010,11,28,201007,2010),
+('2010-07-12',201028,7,2010,12,28,201007,2010),
+('2010-07-13',201028,7,2010,13,28,201007,2010),
+('2010-07-14',201028,7,2010,14,28,201007,2010),
+('2010-07-15',201028,7,2010,15,28,201007,2010),
+('2010-07-16',201028,7,2010,16,28,201007,2010),
+('2010-07-17',201028,7,2010,17,28,201007,2010),
+('2010-07-18',201029,7,2010,18,29,201007,2010),
+('2010-07-19',201029,7,2010,19,29,201007,2010),
+('2010-07-20',201029,7,2010,20,29,201007,2010),
+('2010-07-21',201029,7,2010,21,29,201007,2010),
+('2010-07-22',201029,7,2010,22,29,201007,2010),
+('2010-07-23',201029,7,2010,23,29,201007,2010),
+('2010-07-24',201029,7,2010,24,29,201007,2010),
+('2010-07-25',201030,7,2010,25,30,201007,2010),
+('2010-07-26',201030,7,2010,26,30,201007,2010),
+('2010-07-27',201030,7,2010,27,30,201007,2010),
+('2010-07-28',201030,7,2010,28,30,201007,2010),
+('2010-07-29',201030,7,2010,29,30,201007,2010),
+('2010-07-30',201030,7,2010,30,30,201007,2010),
+('2010-07-31',201030,7,2010,31,30,201007,2010),
+('2010-08-01',201031,8,2010,1,31,201008,2010),
+('2010-08-02',201031,8,2010,2,31,201008,2010),
+('2010-08-03',201031,8,2010,3,31,201008,2010),
+('2010-08-04',201031,8,2010,4,31,201008,2010),
+('2010-08-05',201031,8,2010,5,31,201008,2010),
+('2010-08-06',201031,8,2010,6,31,201008,2010),
+('2010-08-07',201031,8,2010,7,31,201008,2010),
+('2010-08-08',201032,8,2010,8,32,201008,2010),
+('2010-08-09',201032,8,2010,9,32,201008,2010),
+('2010-08-10',201032,8,2010,10,32,201008,2010),
+('2010-08-11',201032,8,2010,11,32,201008,2010),
+('2010-08-12',201032,8,2010,12,32,201008,2010),
+('2010-08-13',201032,8,2010,13,32,201008,2010),
+('2010-08-14',201032,8,2010,14,32,201008,2010),
+('2010-08-15',201033,8,2010,15,33,201008,2010),
+('2010-08-16',201033,8,2010,16,33,201008,2010),
+('2010-08-17',201033,8,2010,17,33,201008,2010),
+('2010-08-18',201033,8,2010,18,33,201008,2010),
+('2010-08-19',201033,8,2010,19,33,201008,2010),
+('2010-08-20',201033,8,2010,20,33,201008,2010),
+('2010-08-21',201033,8,2010,21,33,201008,2010),
+('2010-08-22',201034,8,2010,22,34,201008,2010),
+('2010-08-23',201034,8,2010,23,34,201008,2010),
+('2010-08-24',201034,8,2010,24,34,201008,2010),
+('2010-08-25',201034,8,2010,25,34,201008,2010),
+('2010-08-26',201034,8,2010,26,34,201008,2010),
+('2010-08-27',201034,8,2010,27,34,201008,2010),
+('2010-08-28',201034,8,2010,28,34,201008,2010),
+('2010-08-29',201035,8,2010,29,35,201008,2010),
+('2010-08-30',201035,8,2010,30,35,201008,2010),
+('2010-08-31',201035,8,2010,31,35,201008,2010),
+('2010-09-01',201035,9,2010,1,35,201009,2010),
+('2010-09-02',201035,9,2010,2,35,201009,2010),
+('2010-09-03',201035,9,2010,3,35,201009,2010),
+('2010-09-04',201035,9,2010,4,35,201009,2010),
+('2010-09-05',201036,9,2010,5,36,201009,2010),
+('2010-09-06',201036,9,2010,6,36,201009,2010),
+('2010-09-07',201036,9,2010,7,36,201009,2010),
+('2010-09-08',201036,9,2010,8,36,201009,2010),
+('2010-09-09',201036,9,2010,9,36,201009,2010),
+('2010-09-10',201036,9,2010,10,36,201009,2010),
+('2010-09-11',201036,9,2010,11,36,201009,2010),
+('2010-09-12',201037,9,2010,12,37,201009,2010),
+('2010-09-13',201037,9,2010,13,37,201009,2010),
+('2010-09-14',201037,9,2010,14,37,201009,2010),
+('2010-09-15',201037,9,2010,15,37,201009,2010),
+('2010-09-16',201037,9,2010,16,37,201009,2010),
+('2010-09-17',201037,9,2010,17,37,201009,2010),
+('2010-09-18',201037,9,2010,18,37,201009,2010),
+('2010-09-19',201038,9,2010,19,38,201009,2010),
+('2010-09-20',201038,9,2010,20,38,201009,2010),
+('2010-09-21',201038,9,2010,21,38,201009,2010),
+('2010-09-22',201038,9,2010,22,38,201009,2010),
+('2010-09-23',201038,9,2010,23,38,201009,2010),
+('2010-09-24',201038,9,2010,24,38,201009,2010),
+('2010-09-25',201038,9,2010,25,38,201009,2010),
+('2010-09-26',201039,9,2010,26,39,201009,2010),
+('2010-09-27',201039,9,2010,27,39,201009,2010),
+('2010-09-28',201039,9,2010,28,39,201009,2010),
+('2010-09-29',201039,9,2010,29,39,201009,2010),
+('2010-09-30',201039,9,2010,30,39,201009,2010),
+('2010-10-01',201039,10,2010,1,39,201010,2010),
+('2010-10-02',201039,10,2010,2,39,201010,2010),
+('2010-10-03',201040,10,2010,3,40,201010,2010),
+('2010-10-04',201040,10,2010,4,40,201010,2010),
+('2010-10-05',201040,10,2010,5,40,201010,2010),
+('2010-10-06',201040,10,2010,6,40,201010,2010),
+('2010-10-07',201040,10,2010,7,40,201010,2010),
+('2010-10-08',201040,10,2010,8,40,201010,2010),
+('2010-10-09',201040,10,2010,9,40,201010,2010),
+('2010-10-10',201041,10,2010,10,41,201010,2010),
+('2010-10-11',201041,10,2010,11,41,201010,2010),
+('2010-10-12',201041,10,2010,12,41,201010,2010),
+('2010-10-13',201041,10,2010,13,41,201010,2010),
+('2010-10-14',201041,10,2010,14,41,201010,2010),
+('2010-10-15',201041,10,2010,15,41,201010,2010),
+('2010-10-16',201041,10,2010,16,41,201010,2010),
+('2010-10-17',201042,10,2010,17,42,201010,2010),
+('2010-10-18',201042,10,2010,18,42,201010,2010),
+('2010-10-19',201042,10,2010,19,42,201010,2010),
+('2010-10-20',201042,10,2010,20,42,201010,2010),
+('2010-10-21',201042,10,2010,21,42,201010,2010),
+('2010-10-22',201042,10,2010,22,42,201010,2010),
+('2010-10-23',201042,10,2010,23,42,201010,2010),
+('2010-10-24',201043,10,2010,24,43,201010,2010),
+('2010-10-25',201043,10,2010,25,43,201010,2010),
+('2010-10-26',201043,10,2010,26,43,201010,2010),
+('2010-10-27',201043,10,2010,27,43,201010,2010),
+('2010-10-28',201043,10,2010,28,43,201010,2010),
+('2010-10-29',201043,10,2010,29,43,201010,2010),
+('2010-10-30',201043,10,2010,30,43,201010,2010),
+('2010-10-31',201044,10,2010,31,44,201010,2010),
+('2010-11-01',201044,11,2010,1,44,201011,2010),
+('2010-11-02',201044,11,2010,2,44,201011,2010),
+('2010-11-03',201044,11,2010,3,44,201011,2010),
+('2010-11-04',201044,11,2010,4,44,201011,2010),
+('2010-11-05',201044,11,2010,5,44,201011,2010),
+('2010-11-06',201044,11,2010,6,44,201011,2010),
+('2010-11-07',201045,11,2010,7,45,201011,2010),
+('2010-11-08',201045,11,2010,8,45,201011,2010),
+('2010-11-09',201045,11,2010,9,45,201011,2010),
+('2010-11-10',201045,11,2010,10,45,201011,2010),
+('2010-11-11',201045,11,2010,11,45,201011,2010),
+('2010-11-12',201045,11,2010,12,45,201011,2010),
+('2010-11-13',201045,11,2010,13,45,201011,2010),
+('2010-11-14',201046,11,2010,14,46,201011,2010),
+('2010-11-15',201046,11,2010,15,46,201011,2010),
+('2010-11-16',201046,11,2010,16,46,201011,2010),
+('2010-11-17',201046,11,2010,17,46,201011,2010),
+('2010-11-18',201046,11,2010,18,46,201011,2010),
+('2010-11-19',201046,11,2010,19,46,201011,2010),
+('2010-11-20',201046,11,2010,20,46,201011,2010),
+('2010-11-21',201047,11,2010,21,47,201011,2010),
+('2010-11-22',201047,11,2010,22,47,201011,2010),
+('2010-11-23',201047,11,2010,23,47,201011,2010),
+('2010-11-24',201047,11,2010,24,47,201011,2010),
+('2010-11-25',201047,11,2010,25,47,201011,2010),
+('2010-11-26',201047,11,2010,26,47,201011,2010),
+('2010-11-27',201047,11,2010,27,47,201011,2010),
+('2010-11-28',201048,11,2010,28,48,201011,2010),
+('2010-11-29',201048,11,2010,29,48,201011,2010),
+('2010-11-30',201048,11,2010,30,48,201011,2010),
+('2010-12-01',201048,12,2010,1,48,201012,2011),
+('2010-12-02',201048,12,2010,2,48,201012,2011),
+('2010-12-03',201048,12,2010,3,48,201012,2011),
+('2010-12-04',201048,12,2010,4,48,201012,2011),
+('2010-12-05',201049,12,2010,5,49,201012,2011),
+('2010-12-06',201049,12,2010,6,49,201012,2011),
+('2010-12-07',201049,12,2010,7,49,201012,2011),
+('2010-12-08',201049,12,2010,8,49,201012,2011),
+('2010-12-09',201049,12,2010,9,49,201012,2011),
+('2010-12-10',201049,12,2010,10,49,201012,2011),
+('2010-12-11',201049,12,2010,11,49,201012,2011),
+('2010-12-12',201050,12,2010,12,50,201012,2011),
+('2010-12-13',201050,12,2010,13,50,201012,2011),
+('2010-12-14',201050,12,2010,14,50,201012,2011),
+('2010-12-15',201050,12,2010,15,50,201012,2011),
+('2010-12-16',201050,12,2010,16,50,201012,2011),
+('2010-12-17',201050,12,2010,17,50,201012,2011),
+('2010-12-18',201050,12,2010,18,50,201012,2011),
+('2010-12-19',201051,12,2010,19,51,201012,2011),
+('2010-12-20',201051,12,2010,20,51,201012,2011),
+('2010-12-21',201051,12,2010,21,51,201012,2011),
+('2010-12-22',201051,12,2010,22,51,201012,2011),
+('2010-12-23',201051,12,2010,23,51,201012,2011),
+('2010-12-24',201051,12,2010,24,51,201012,2011),
+('2010-12-25',201051,12,2010,25,51,201012,2011),
+('2010-12-26',201052,12,2010,26,52,201012,2011),
+('2010-12-27',201052,12,2010,27,52,201012,2011),
+('2010-12-28',201052,12,2010,28,52,201012,2011),
+('2010-12-29',201052,12,2010,29,52,201012,2011),
+('2010-12-30',201052,12,2010,30,52,201012,2011),
+('2010-12-31',201052,12,2010,31,52,201012,2011),
+('2011-01-01',201052,1,2011,1,52,201101,2011),
+('2011-01-02',201053,1,2011,2,1,201101,2011),
+('2011-01-03',201101,1,2011,3,1,201101,2011),
+('2011-01-04',201101,1,2011,4,1,201101,2011),
+('2011-01-05',201101,1,2011,5,1,201101,2011),
+('2011-01-06',201101,1,2011,6,1,201101,2011),
+('2011-01-07',201101,1,2011,7,1,201101,2011),
+('2011-01-08',201101,1,2011,8,1,201101,2011),
+('2011-01-09',201102,1,2011,9,2,201101,2011),
+('2011-01-10',201102,1,2011,10,2,201101,2011),
+('2011-01-11',201102,1,2011,11,2,201101,2011),
+('2011-01-12',201102,1,2011,12,2,201101,2011),
+('2011-01-13',201102,1,2011,13,2,201101,2011),
+('2011-01-14',201102,1,2011,14,2,201101,2011),
+('2011-01-15',201102,1,2011,15,2,201101,2011),
+('2011-01-16',201103,1,2011,16,3,201101,2011),
+('2011-01-17',201103,1,2011,17,3,201101,2011),
+('2011-01-18',201103,1,2011,18,3,201101,2011),
+('2011-01-19',201103,1,2011,19,3,201101,2011),
+('2011-01-20',201103,1,2011,20,3,201101,2011),
+('2011-01-21',201103,1,2011,21,3,201101,2011),
+('2011-01-22',201103,1,2011,22,3,201101,2011),
+('2011-01-23',201104,1,2011,23,4,201101,2011),
+('2011-01-24',201104,1,2011,24,4,201101,2011),
+('2011-01-25',201104,1,2011,25,4,201101,2011),
+('2011-01-26',201104,1,2011,26,4,201101,2011),
+('2011-01-27',201104,1,2011,27,4,201101,2011),
+('2011-01-28',201104,1,2011,28,4,201101,2011),
+('2011-01-29',201104,1,2011,29,4,201101,2011),
+('2011-01-30',201105,1,2011,30,5,201101,2011),
+('2011-01-31',201105,1,2011,31,5,201101,2011),
+('2011-02-01',201105,2,2011,1,5,201102,2011),
+('2011-02-02',201105,2,2011,2,5,201102,2011),
+('2011-02-03',201105,2,2011,3,5,201102,2011),
+('2011-02-04',201105,2,2011,4,5,201102,2011),
+('2011-02-05',201105,2,2011,5,5,201102,2011),
+('2011-02-06',201106,2,2011,6,6,201102,2011),
+('2011-02-07',201106,2,2011,7,6,201102,2011),
+('2011-02-08',201106,2,2011,8,6,201102,2011),
+('2011-02-09',201106,2,2011,9,6,201102,2011),
+('2011-02-10',201106,2,2011,10,6,201102,2011),
+('2011-02-11',201106,2,2011,11,6,201102,2011),
+('2011-02-12',201106,2,2011,12,6,201102,2011),
+('2011-02-13',201107,2,2011,13,7,201102,2011),
+('2011-02-14',201107,2,2011,14,7,201102,2011),
+('2011-02-15',201107,2,2011,15,7,201102,2011),
+('2011-02-16',201107,2,2011,16,7,201102,2011),
+('2011-02-17',201107,2,2011,17,7,201102,2011),
+('2011-02-18',201107,2,2011,18,7,201102,2011),
+('2011-02-19',201107,2,2011,19,7,201102,2011),
+('2011-02-20',201108,2,2011,20,8,201102,2011),
+('2011-02-21',201108,2,2011,21,8,201102,2011),
+('2011-02-22',201108,2,2011,22,8,201102,2011),
+('2011-02-23',201108,2,2011,23,8,201102,2011),
+('2011-02-24',201108,2,2011,24,8,201102,2011),
+('2011-02-25',201108,2,2011,25,8,201102,2011),
+('2011-02-26',201108,2,2011,26,8,201102,2011),
+('2011-02-27',201109,2,2011,27,9,201102,2011),
+('2011-02-28',201109,2,2011,28,9,201102,2011),
+('2011-03-01',201109,3,2011,1,9,201103,2011),
+('2011-03-02',201109,3,2011,2,9,201103,2011),
+('2011-03-03',201109,3,2011,3,9,201103,2011),
+('2011-03-04',201109,3,2011,4,9,201103,2011),
+('2011-03-05',201109,3,2011,5,9,201103,2011),
+('2011-03-06',201110,3,2011,6,10,201103,2011),
+('2011-03-07',201110,3,2011,7,10,201103,2011),
+('2011-03-08',201110,3,2011,8,10,201103,2011),
+('2011-03-09',201110,3,2011,9,10,201103,2011),
+('2011-03-10',201110,3,2011,10,10,201103,2011),
+('2011-03-11',201110,3,2011,11,10,201103,2011),
+('2011-03-12',201110,3,2011,12,10,201103,2011),
+('2011-03-13',201111,3,2011,13,11,201103,2011),
+('2011-03-14',201111,3,2011,14,11,201103,2011),
+('2011-03-15',201111,3,2011,15,11,201103,2011),
+('2011-03-16',201111,3,2011,16,11,201103,2011),
+('2011-03-17',201111,3,2011,17,11,201103,2011),
+('2011-03-18',201111,3,2011,18,11,201103,2011),
+('2011-03-19',201111,3,2011,19,11,201103,2011),
+('2011-03-20',201112,3,2011,20,12,201103,2011),
+('2011-03-21',201112,3,2011,21,12,201103,2011),
+('2011-03-22',201112,3,2011,22,12,201103,2011),
+('2011-03-23',201112,3,2011,23,12,201103,2011),
+('2011-03-24',201112,3,2011,24,12,201103,2011),
+('2011-03-25',201112,3,2011,25,12,201103,2011),
+('2011-03-26',201112,3,2011,26,12,201103,2011),
+('2011-03-27',201113,3,2011,27,13,201103,2011),
+('2011-03-28',201113,3,2011,28,13,201103,2011),
+('2011-03-29',201113,3,2011,29,13,201103,2011),
+('2011-03-30',201113,3,2011,30,13,201103,2011),
+('2011-03-31',201113,3,2011,31,13,201103,2011),
+('2011-04-01',201113,4,2011,1,13,201104,2011),
+('2011-04-02',201113,4,2011,2,13,201104,2011),
+('2011-04-03',201114,4,2011,3,14,201104,2011),
+('2011-04-04',201114,4,2011,4,14,201104,2011),
+('2011-04-05',201114,4,2011,5,14,201104,2011),
+('2011-04-06',201114,4,2011,6,14,201104,2011),
+('2011-04-07',201114,4,2011,7,14,201104,2011),
+('2011-04-08',201114,4,2011,8,14,201104,2011),
+('2011-04-09',201114,4,2011,9,14,201104,2011),
+('2011-04-10',201115,4,2011,10,15,201104,2011),
+('2011-04-11',201115,4,2011,11,15,201104,2011),
+('2011-04-12',201115,4,2011,12,15,201104,2011),
+('2011-04-13',201115,4,2011,13,15,201104,2011),
+('2011-04-14',201115,4,2011,14,15,201104,2011),
+('2011-04-15',201115,4,2011,15,15,201104,2011),
+('2011-04-16',201115,4,2011,16,15,201104,2011),
+('2011-04-17',201116,4,2011,17,16,201104,2011),
+('2011-04-18',201116,4,2011,18,16,201104,2011),
+('2011-04-19',201116,4,2011,19,16,201104,2011),
+('2011-04-20',201116,4,2011,20,16,201104,2011),
+('2011-04-21',201116,4,2011,21,16,201104,2011),
+('2011-04-22',201116,4,2011,22,16,201104,2011),
+('2011-04-23',201116,4,2011,23,16,201104,2011),
+('2011-04-24',201117,4,2011,24,17,201104,2011),
+('2011-04-25',201117,4,2011,25,17,201104,2011),
+('2011-04-26',201117,4,2011,26,17,201104,2011),
+('2011-04-27',201117,4,2011,27,17,201104,2011),
+('2011-04-28',201117,4,2011,28,17,201104,2011),
+('2011-04-29',201117,4,2011,29,17,201104,2011),
+('2011-04-30',201117,4,2011,30,17,201104,2011),
+('2011-05-01',201118,5,2011,1,18,201105,2011),
+('2011-05-02',201118,5,2011,2,18,201105,2011),
+('2011-05-03',201118,5,2011,3,18,201105,2011),
+('2011-05-04',201118,5,2011,4,18,201105,2011),
+('2011-05-05',201118,5,2011,5,18,201105,2011),
+('2011-05-06',201118,5,2011,6,18,201105,2011),
+('2011-05-07',201118,5,2011,7,18,201105,2011),
+('2011-05-08',201119,5,2011,8,19,201105,2011),
+('2011-05-09',201119,5,2011,9,19,201105,2011),
+('2011-05-10',201119,5,2011,10,19,201105,2011),
+('2011-05-11',201119,5,2011,11,19,201105,2011),
+('2011-05-12',201119,5,2011,12,19,201105,2011),
+('2011-05-13',201119,5,2011,13,19,201105,2011),
+('2011-05-14',201119,5,2011,14,19,201105,2011),
+('2011-05-15',201120,5,2011,15,20,201105,2011),
+('2011-05-16',201120,5,2011,16,20,201105,2011),
+('2011-05-17',201120,5,2011,17,20,201105,2011),
+('2011-05-18',201120,5,2011,18,20,201105,2011),
+('2011-05-19',201120,5,2011,19,20,201105,2011),
+('2011-05-20',201120,5,2011,20,20,201105,2011),
+('2011-05-21',201120,5,2011,21,20,201105,2011),
+('2011-05-22',201121,5,2011,22,21,201105,2011),
+('2011-05-23',201121,5,2011,23,21,201105,2011),
+('2011-05-24',201121,5,2011,24,21,201105,2011),
+('2011-05-25',201121,5,2011,25,21,201105,2011),
+('2011-05-26',201121,5,2011,26,21,201105,2011),
+('2011-05-27',201121,5,2011,27,21,201105,2011),
+('2011-05-28',201121,5,2011,28,21,201105,2011),
+('2011-05-29',201122,5,2011,29,22,201105,2011),
+('2011-05-30',201122,5,2011,30,22,201105,2011),
+('2011-05-31',201122,5,2011,31,22,201105,2011),
+('2011-06-01',201122,6,2011,1,22,201106,2011),
+('2011-06-02',201122,6,2011,2,22,201106,2011),
+('2011-06-03',201122,6,2011,3,22,201106,2011),
+('2011-06-04',201122,6,2011,4,22,201106,2011),
+('2011-06-05',201123,6,2011,5,23,201106,2011),
+('2011-06-06',201123,6,2011,6,23,201106,2011),
+('2011-06-07',201123,6,2011,7,23,201106,2011),
+('2011-06-08',201123,6,2011,8,23,201106,2011),
+('2011-06-09',201123,6,2011,9,23,201106,2011),
+('2011-06-10',201123,6,2011,10,23,201106,2011),
+('2011-06-11',201123,6,2011,11,23,201106,2011),
+('2011-06-12',201124,6,2011,12,24,201106,2011),
+('2011-06-13',201124,6,2011,13,24,201106,2011),
+('2011-06-14',201124,6,2011,14,24,201106,2011),
+('2011-06-15',201124,6,2011,15,24,201106,2011),
+('2011-06-16',201124,6,2011,16,24,201106,2011),
+('2011-06-17',201124,6,2011,17,24,201106,2011),
+('2011-06-18',201124,6,2011,18,24,201106,2011),
+('2011-06-19',201125,6,2011,19,25,201106,2011),
+('2011-06-20',201125,6,2011,20,25,201106,2011),
+('2011-06-21',201125,6,2011,21,25,201106,2011),
+('2011-06-22',201125,6,2011,22,25,201106,2011),
+('2011-06-23',201125,6,2011,23,25,201106,2011),
+('2011-06-24',201125,6,2011,24,25,201106,2011),
+('2011-06-25',201125,6,2011,25,25,201106,2011),
+('2011-06-26',201126,6,2011,26,26,201106,2011),
+('2011-06-27',201126,6,2011,27,26,201106,2011),
+('2011-06-28',201126,6,2011,28,26,201106,2011),
+('2011-06-29',201126,6,2011,29,26,201106,2011),
+('2011-06-30',201126,6,2011,30,26,201106,2011),
+('2011-07-01',201126,7,2011,1,26,201107,2011),
+('2011-07-02',201126,7,2011,2,26,201107,2011),
+('2011-07-03',201127,7,2011,3,27,201107,2011),
+('2011-07-04',201127,7,2011,4,27,201107,2011),
+('2011-07-05',201127,7,2011,5,27,201107,2011),
+('2011-07-06',201127,7,2011,6,27,201107,2011),
+('2011-07-07',201127,7,2011,7,27,201107,2011),
+('2011-07-08',201127,7,2011,8,27,201107,2011),
+('2011-07-09',201127,7,2011,9,27,201107,2011),
+('2011-07-10',201128,7,2011,10,28,201107,2011),
+('2011-07-11',201128,7,2011,11,28,201107,2011),
+('2011-07-12',201128,7,2011,12,28,201107,2011),
+('2011-07-13',201128,7,2011,13,28,201107,2011),
+('2011-07-14',201128,7,2011,14,28,201107,2011),
+('2011-07-15',201128,7,2011,15,28,201107,2011),
+('2011-07-16',201128,7,2011,16,28,201107,2011),
+('2011-07-17',201129,7,2011,17,29,201107,2011),
+('2011-07-18',201129,7,2011,18,29,201107,2011),
+('2011-07-19',201129,7,2011,19,29,201107,2011),
+('2011-07-20',201129,7,2011,20,29,201107,2011),
+('2011-07-21',201129,7,2011,21,29,201107,2011),
+('2011-07-22',201129,7,2011,22,29,201107,2011),
+('2011-07-23',201129,7,2011,23,29,201107,2011),
+('2011-07-24',201130,7,2011,24,30,201107,2011),
+('2011-07-25',201130,7,2011,25,30,201107,2011),
+('2011-07-26',201130,7,2011,26,30,201107,2011),
+('2011-07-27',201130,7,2011,27,30,201107,2011),
+('2011-07-28',201130,7,2011,28,30,201107,2011),
+('2011-07-29',201130,7,2011,29,30,201107,2011),
+('2011-07-30',201130,7,2011,30,30,201107,2011),
+('2011-07-31',201131,7,2011,31,31,201107,2011),
+('2011-08-01',201131,8,2011,1,31,201108,2011),
+('2011-08-02',201131,8,2011,2,31,201108,2011),
+('2011-08-03',201131,8,2011,3,31,201108,2011),
+('2011-08-04',201131,8,2011,4,31,201108,2011),
+('2011-08-05',201131,8,2011,5,31,201108,2011),
+('2011-08-06',201131,8,2011,6,31,201108,2011),
+('2011-08-07',201132,8,2011,7,32,201108,2011),
+('2011-08-08',201132,8,2011,8,32,201108,2011),
+('2011-08-09',201132,8,2011,9,32,201108,2011),
+('2011-08-10',201132,8,2011,10,32,201108,2011),
+('2011-08-11',201132,8,2011,11,32,201108,2011),
+('2011-08-12',201132,8,2011,12,32,201108,2011),
+('2011-08-13',201132,8,2011,13,32,201108,2011),
+('2011-08-14',201133,8,2011,14,33,201108,2011),
+('2011-08-15',201133,8,2011,15,33,201108,2011),
+('2011-08-16',201133,8,2011,16,33,201108,2011),
+('2011-08-17',201133,8,2011,17,33,201108,2011),
+('2011-08-18',201133,8,2011,18,33,201108,2011),
+('2011-08-19',201133,8,2011,19,33,201108,2011),
+('2011-08-20',201133,8,2011,20,33,201108,2011),
+('2011-08-21',201134,8,2011,21,34,201108,2011),
+('2011-08-22',201134,8,2011,22,34,201108,2011),
+('2011-08-23',201134,8,2011,23,34,201108,2011),
+('2011-08-24',201134,8,2011,24,34,201108,2011),
+('2011-08-25',201134,8,2011,25,34,201108,2011),
+('2011-08-26',201134,8,2011,26,34,201108,2011),
+('2011-08-27',201134,8,2011,27,34,201108,2011),
+('2011-08-28',201135,8,2011,28,35,201108,2011),
+('2011-08-29',201135,8,2011,29,35,201108,2011),
+('2011-08-30',201135,8,2011,30,35,201108,2011),
+('2011-08-31',201135,8,2011,31,35,201108,2011),
+('2011-09-01',201135,9,2011,1,35,201109,2011),
+('2011-09-02',201135,9,2011,2,35,201109,2011),
+('2011-09-03',201135,9,2011,3,35,201109,2011),
+('2011-09-04',201136,9,2011,4,36,201109,2011),
+('2011-09-05',201136,9,2011,5,36,201109,2011),
+('2011-09-06',201136,9,2011,6,36,201109,2011),
+('2011-09-07',201136,9,2011,7,36,201109,2011),
+('2011-09-08',201136,9,2011,8,36,201109,2011),
+('2011-09-09',201136,9,2011,9,36,201109,2011),
+('2011-09-10',201136,9,2011,10,36,201109,2011),
+('2011-09-11',201137,9,2011,11,37,201109,2011),
+('2011-09-12',201137,9,2011,12,37,201109,2011),
+('2011-09-13',201137,9,2011,13,37,201109,2011),
+('2011-09-14',201137,9,2011,14,37,201109,2011),
+('2011-09-15',201137,9,2011,15,37,201109,2011),
+('2011-09-16',201137,9,2011,16,37,201109,2011),
+('2011-09-17',201137,9,2011,17,37,201109,2011),
+('2011-09-18',201138,9,2011,18,38,201109,2011),
+('2011-09-19',201138,9,2011,19,38,201109,2011),
+('2011-09-20',201138,9,2011,20,38,201109,2011),
+('2011-09-21',201138,9,2011,21,38,201109,2011),
+('2011-09-22',201138,9,2011,22,38,201109,2011),
+('2011-09-23',201138,9,2011,23,38,201109,2011),
+('2011-09-24',201138,9,2011,24,38,201109,2011),
+('2011-09-25',201139,9,2011,25,39,201109,2011),
+('2011-09-26',201139,9,2011,26,39,201109,2011),
+('2011-09-27',201139,9,2011,27,39,201109,2011),
+('2011-09-28',201139,9,2011,28,39,201109,2011),
+('2011-09-29',201139,9,2011,29,39,201109,2011),
+('2011-09-30',201139,9,2011,30,39,201109,2011),
+('2011-10-01',201139,10,2011,1,39,201110,2011),
+('2011-10-02',201140,10,2011,2,40,201110,2011),
+('2011-10-03',201140,10,2011,3,40,201110,2011),
+('2011-10-04',201140,10,2011,4,40,201110,2011),
+('2011-10-05',201140,10,2011,5,40,201110,2011),
+('2011-10-06',201140,10,2011,6,40,201110,2011),
+('2011-10-07',201140,10,2011,7,40,201110,2011),
+('2011-10-08',201140,10,2011,8,40,201110,2011),
+('2011-10-09',201141,10,2011,9,41,201110,2011),
+('2011-10-10',201141,10,2011,10,41,201110,2011),
+('2011-10-11',201141,10,2011,11,41,201110,2011),
+('2011-10-12',201141,10,2011,12,41,201110,2011),
+('2011-10-13',201141,10,2011,13,41,201110,2011),
+('2011-10-14',201141,10,2011,14,41,201110,2011),
+('2011-10-15',201141,10,2011,15,41,201110,2011),
+('2011-10-16',201142,10,2011,16,42,201110,2011),
+('2011-10-17',201142,10,2011,17,42,201110,2011),
+('2011-10-18',201142,10,2011,18,42,201110,2011),
+('2011-10-19',201142,10,2011,19,42,201110,2011),
+('2011-10-20',201142,10,2011,20,42,201110,2011),
+('2011-10-21',201142,10,2011,21,42,201110,2011),
+('2011-10-22',201142,10,2011,22,42,201110,2011),
+('2011-10-23',201143,10,2011,23,43,201110,2011),
+('2011-10-24',201143,10,2011,24,43,201110,2011),
+('2011-10-25',201143,10,2011,25,43,201110,2011),
+('2011-10-26',201143,10,2011,26,43,201110,2011),
+('2011-10-27',201143,10,2011,27,43,201110,2011),
+('2011-10-28',201143,10,2011,28,43,201110,2011),
+('2011-10-29',201143,10,2011,29,43,201110,2011),
+('2011-10-30',201144,10,2011,30,44,201110,2011),
+('2011-10-31',201144,10,2011,31,44,201110,2011),
+('2011-11-01',201144,11,2011,1,44,201111,2011),
+('2011-11-02',201144,11,2011,2,44,201111,2011),
+('2011-11-03',201144,11,2011,3,44,201111,2011),
+('2011-11-04',201144,11,2011,4,44,201111,2011),
+('2011-11-05',201144,11,2011,5,44,201111,2011),
+('2011-11-06',201145,11,2011,6,45,201111,2011),
+('2011-11-07',201145,11,2011,7,45,201111,2011),
+('2011-11-08',201145,11,2011,8,45,201111,2011),
+('2011-11-09',201145,11,2011,9,45,201111,2011),
+('2011-11-10',201145,11,2011,10,45,201111,2011),
+('2011-11-11',201145,11,2011,11,45,201111,2011),
+('2011-11-12',201145,11,2011,12,45,201111,2011),
+('2011-11-13',201146,11,2011,13,46,201111,2011),
+('2011-11-14',201146,11,2011,14,46,201111,2011),
+('2011-11-15',201146,11,2011,15,46,201111,2011),
+('2011-11-16',201146,11,2011,16,46,201111,2011),
+('2011-11-17',201146,11,2011,17,46,201111,2011),
+('2011-11-18',201146,11,2011,18,46,201111,2011),
+('2011-11-19',201146,11,2011,19,46,201111,2011),
+('2011-11-20',201147,11,2011,20,47,201111,2011),
+('2011-11-21',201147,11,2011,21,47,201111,2011),
+('2011-11-22',201147,11,2011,22,47,201111,2011),
+('2011-11-23',201147,11,2011,23,47,201111,2011),
+('2011-11-24',201147,11,2011,24,47,201111,2011),
+('2011-11-25',201147,11,2011,25,47,201111,2011),
+('2011-11-26',201147,11,2011,26,47,201111,2011),
+('2011-11-27',201148,11,2011,27,48,201111,2011),
+('2011-11-28',201148,11,2011,28,48,201111,2011),
+('2011-11-29',201148,11,2011,29,48,201111,2011),
+('2011-11-30',201148,11,2011,30,48,201111,2011),
+('2011-12-01',201148,12,2011,1,48,201112,2012),
+('2011-12-02',201148,12,2011,2,48,201112,2012),
+('2011-12-03',201148,12,2011,3,48,201112,2012),
+('2011-12-04',201149,12,2011,4,49,201112,2012),
+('2011-12-05',201149,12,2011,5,49,201112,2012),
+('2011-12-06',201149,12,2011,6,49,201112,2012),
+('2011-12-07',201149,12,2011,7,49,201112,2012),
+('2011-12-08',201149,12,2011,8,49,201112,2012),
+('2011-12-09',201149,12,2011,9,49,201112,2012),
+('2011-12-10',201149,12,2011,10,49,201112,2012),
+('2011-12-11',201150,12,2011,11,50,201112,2012),
+('2011-12-12',201150,12,2011,12,50,201112,2012),
+('2011-12-13',201150,12,2011,13,50,201112,2012),
+('2011-12-14',201150,12,2011,14,50,201112,2012),
+('2011-12-15',201150,12,2011,15,50,201112,2012),
+('2011-12-16',201150,12,2011,16,50,201112,2012),
+('2011-12-17',201150,12,2011,17,50,201112,2012),
+('2011-12-18',201151,12,2011,18,51,201112,2012),
+('2011-12-19',201151,12,2011,19,51,201112,2012),
+('2011-12-20',201151,12,2011,20,51,201112,2012),
+('2011-12-21',201151,12,2011,21,51,201112,2012),
+('2011-12-22',201151,12,2011,22,51,201112,2012),
+('2011-12-23',201151,12,2011,23,51,201112,2012),
+('2011-12-24',201151,12,2011,24,51,201112,2012),
+('2011-12-25',201152,12,2011,25,52,201112,2012),
+('2011-12-26',201152,12,2011,26,52,201112,2012),
+('2011-12-27',201152,12,2011,27,52,201112,2012),
+('2011-12-28',201152,12,2011,28,52,201112,2012),
+('2011-12-29',201152,12,2011,29,52,201112,2012),
+('2011-12-30',201152,12,2011,30,52,201112,2012),
+('2011-12-31',201152,12,2011,31,52,201112,2012),
+('2012-01-01',201153,1,2012,1,1,201201,2012),
+('2012-01-02',201201,1,2012,2,1,201201,2012),
+('2012-01-03',201201,1,2012,3,1,201201,2012),
+('2012-01-04',201201,1,2012,4,1,201201,2012),
+('2012-01-05',201201,1,2012,5,1,201201,2012),
+('2012-01-06',201201,1,2012,6,1,201201,2012),
+('2012-01-07',201201,1,2012,7,1,201201,2012),
+('2012-01-08',201202,1,2012,8,2,201201,2012),
+('2012-01-09',201202,1,2012,9,2,201201,2012),
+('2012-01-10',201202,1,2012,10,2,201201,2012),
+('2012-01-11',201202,1,2012,11,2,201201,2012),
+('2012-01-12',201202,1,2012,12,2,201201,2012),
+('2012-01-13',201202,1,2012,13,2,201201,2012),
+('2012-01-14',201202,1,2012,14,2,201201,2012),
+('2012-01-15',201203,1,2012,15,3,201201,2012),
+('2012-01-16',201203,1,2012,16,3,201201,2012),
+('2012-01-17',201203,1,2012,17,3,201201,2012),
+('2012-01-18',201203,1,2012,18,3,201201,2012),
+('2012-01-19',201203,1,2012,19,3,201201,2012),
+('2012-01-20',201203,1,2012,20,3,201201,2012),
+('2012-01-21',201203,1,2012,21,3,201201,2012),
+('2012-01-22',201204,1,2012,22,4,201201,2012),
+('2012-01-23',201204,1,2012,23,4,201201,2012),
+('2012-01-24',201204,1,2012,24,4,201201,2012),
+('2012-01-25',201204,1,2012,25,4,201201,2012),
+('2012-01-26',201204,1,2012,26,4,201201,2012),
+('2012-01-27',201204,1,2012,27,4,201201,2012),
+('2012-01-28',201204,1,2012,28,4,201201,2012),
+('2012-01-29',201205,1,2012,29,5,201201,2012),
+('2012-01-30',201205,1,2012,30,5,201201,2012),
+('2012-01-31',201205,1,2012,31,5,201201,2012),
+('2012-02-01',201205,2,2012,1,5,201202,2012),
+('2012-02-02',201205,2,2012,2,5,201202,2012),
+('2012-02-03',201205,2,2012,3,5,201202,2012),
+('2012-02-04',201205,2,2012,4,5,201202,2012),
+('2012-02-05',201206,2,2012,5,6,201202,2012),
+('2012-02-06',201206,2,2012,6,6,201202,2012),
+('2012-02-07',201206,2,2012,7,6,201202,2012),
+('2012-02-08',201206,2,2012,8,6,201202,2012),
+('2012-02-09',201206,2,2012,9,6,201202,2012),
+('2012-02-10',201206,2,2012,10,6,201202,2012),
+('2012-02-11',201206,2,2012,11,6,201202,2012),
+('2012-02-12',201207,2,2012,12,7,201202,2012),
+('2012-02-13',201207,2,2012,13,7,201202,2012),
+('2012-02-14',201207,2,2012,14,7,201202,2012),
+('2012-02-15',201207,2,2012,15,7,201202,2012),
+('2012-02-16',201207,2,2012,16,7,201202,2012),
+('2012-02-17',201207,2,2012,17,7,201202,2012),
+('2012-02-18',201207,2,2012,18,7,201202,2012),
+('2012-02-19',201208,2,2012,19,8,201202,2012),
+('2012-02-20',201208,2,2012,20,8,201202,2012),
+('2012-02-21',201208,2,2012,21,8,201202,2012),
+('2012-02-22',201208,2,2012,22,8,201202,2012),
+('2012-02-23',201208,2,2012,23,8,201202,2012),
+('2012-02-24',201208,2,2012,24,8,201202,2012),
+('2012-02-25',201208,2,2012,25,8,201202,2012),
+('2012-02-26',201209,2,2012,26,9,201202,2012),
+('2012-02-27',201209,2,2012,27,9,201202,2012),
+('2012-02-28',201209,2,2012,28,9,201202,2012),
+('2012-02-29',201209,2,2012,29,9,201202,2012),
+('2012-03-01',201209,3,2012,1,9,201203,2012),
+('2012-03-02',201209,3,2012,2,9,201203,2012),
+('2012-03-03',201209,3,2012,3,9,201203,2012),
+('2012-03-04',201210,3,2012,4,10,201203,2012),
+('2012-03-05',201210,3,2012,5,10,201203,2012),
+('2012-03-06',201210,3,2012,6,10,201203,2012),
+('2012-03-07',201210,3,2012,7,10,201203,2012),
+('2012-03-08',201210,3,2012,8,10,201203,2012),
+('2012-03-09',201210,3,2012,9,10,201203,2012),
+('2012-03-10',201210,3,2012,10,10,201203,2012),
+('2012-03-11',201211,3,2012,11,11,201203,2012),
+('2012-03-12',201211,3,2012,12,11,201203,2012),
+('2012-03-13',201211,3,2012,13,11,201203,2012),
+('2012-03-14',201211,3,2012,14,11,201203,2012),
+('2012-03-15',201211,3,2012,15,11,201203,2012),
+('2012-03-16',201211,3,2012,16,11,201203,2012),
+('2012-03-17',201211,3,2012,17,11,201203,2012),
+('2012-03-18',201212,3,2012,18,12,201203,2012),
+('2012-03-19',201212,3,2012,19,12,201203,2012),
+('2012-03-20',201212,3,2012,20,12,201203,2012),
+('2012-03-21',201212,3,2012,21,12,201203,2012),
+('2012-03-22',201212,3,2012,22,12,201203,2012),
+('2012-03-23',201212,3,2012,23,12,201203,2012),
+('2012-03-24',201212,3,2012,24,12,201203,2012),
+('2012-03-25',201213,3,2012,25,13,201203,2012),
+('2012-03-26',201213,3,2012,26,13,201203,2012),
+('2012-03-27',201213,3,2012,27,13,201203,2012),
+('2012-03-28',201213,3,2012,28,13,201203,2012),
+('2012-03-29',201213,3,2012,29,13,201203,2012),
+('2012-03-30',201213,3,2012,30,13,201203,2012),
+('2012-03-31',201213,3,2012,31,13,201203,2012),
+('2012-04-01',201214,4,2012,1,14,201204,2012),
+('2012-04-02',201214,4,2012,2,14,201204,2012),
+('2012-04-03',201214,4,2012,3,14,201204,2012),
+('2012-04-04',201214,4,2012,4,14,201204,2012),
+('2012-04-05',201214,4,2012,5,14,201204,2012),
+('2012-04-06',201214,4,2012,6,14,201204,2012),
+('2012-04-07',201214,4,2012,7,14,201204,2012),
+('2012-04-08',201215,4,2012,8,15,201204,2012),
+('2012-04-09',201215,4,2012,9,15,201204,2012),
+('2012-04-10',201215,4,2012,10,15,201204,2012),
+('2012-04-11',201215,4,2012,11,15,201204,2012),
+('2012-04-12',201215,4,2012,12,15,201204,2012),
+('2012-04-13',201215,4,2012,13,15,201204,2012),
+('2012-04-14',201215,4,2012,14,15,201204,2012),
+('2012-04-15',201216,4,2012,15,16,201204,2012),
+('2012-04-16',201216,4,2012,16,16,201204,2012),
+('2012-04-17',201216,4,2012,17,16,201204,2012),
+('2012-04-18',201216,4,2012,18,16,201204,2012),
+('2012-04-19',201216,4,2012,19,16,201204,2012),
+('2012-04-20',201216,4,2012,20,16,201204,2012),
+('2012-04-21',201216,4,2012,21,16,201204,2012),
+('2012-04-22',201217,4,2012,22,17,201204,2012),
+('2012-04-23',201217,4,2012,23,17,201204,2012),
+('2012-04-24',201217,4,2012,24,17,201204,2012),
+('2012-04-25',201217,4,2012,25,17,201204,2012),
+('2012-04-26',201217,4,2012,26,17,201204,2012),
+('2012-04-27',201217,4,2012,27,17,201204,2012),
+('2012-04-28',201217,4,2012,28,17,201204,2012),
+('2012-04-29',201218,4,2012,29,18,201204,2012),
+('2012-04-30',201218,4,2012,30,18,201204,2012),
+('2012-05-01',201218,5,2012,1,18,201205,2012),
+('2012-05-02',201218,5,2012,2,18,201205,2012),
+('2012-05-03',201218,5,2012,3,18,201205,2012),
+('2012-05-04',201218,5,2012,4,18,201205,2012),
+('2012-05-05',201218,5,2012,5,18,201205,2012),
+('2012-05-06',201219,5,2012,6,19,201205,2012),
+('2012-05-07',201219,5,2012,7,19,201205,2012),
+('2012-05-08',201219,5,2012,8,19,201205,2012),
+('2012-05-09',201219,5,2012,9,19,201205,2012),
+('2012-05-10',201219,5,2012,10,19,201205,2012),
+('2012-05-11',201219,5,2012,11,19,201205,2012),
+('2012-05-12',201219,5,2012,12,19,201205,2012),
+('2012-05-13',201220,5,2012,13,20,201205,2012),
+('2012-05-14',201220,5,2012,14,20,201205,2012),
+('2012-05-15',201220,5,2012,15,20,201205,2012),
+('2012-05-16',201220,5,2012,16,20,201205,2012),
+('2012-05-17',201220,5,2012,17,20,201205,2012),
+('2012-05-18',201220,5,2012,18,20,201205,2012),
+('2012-05-19',201220,5,2012,19,20,201205,2012),
+('2012-05-20',201221,5,2012,20,21,201205,2012),
+('2012-05-21',201221,5,2012,21,21,201205,2012),
+('2012-05-22',201221,5,2012,22,21,201205,2012),
+('2012-05-23',201221,5,2012,23,21,201205,2012),
+('2012-05-24',201221,5,2012,24,21,201205,2012),
+('2012-05-25',201221,5,2012,25,21,201205,2012),
+('2012-05-26',201221,5,2012,26,21,201205,2012),
+('2012-05-27',201222,5,2012,27,22,201205,2012),
+('2012-05-28',201222,5,2012,28,22,201205,2012),
+('2012-05-29',201222,5,2012,29,22,201205,2012),
+('2012-05-30',201222,5,2012,30,22,201205,2012),
+('2012-05-31',201222,5,2012,31,22,201205,2012),
+('2012-06-01',201222,6,2012,1,22,201206,2012),
+('2012-06-02',201222,6,2012,2,22,201206,2012),
+('2012-06-03',201223,6,2012,3,23,201206,2012),
+('2012-06-04',201223,6,2012,4,23,201206,2012),
+('2012-06-05',201223,6,2012,5,23,201206,2012),
+('2012-06-06',201223,6,2012,6,23,201206,2012),
+('2012-06-07',201223,6,2012,7,23,201206,2012),
+('2012-06-08',201223,6,2012,8,23,201206,2012),
+('2012-06-09',201223,6,2012,9,23,201206,2012),
+('2012-06-10',201224,6,2012,10,24,201206,2012),
+('2012-06-11',201224,6,2012,11,24,201206,2012),
+('2012-06-12',201224,6,2012,12,24,201206,2012),
+('2012-06-13',201224,6,2012,13,24,201206,2012),
+('2012-06-14',201224,6,2012,14,24,201206,2012),
+('2012-06-15',201224,6,2012,15,24,201206,2012),
+('2012-06-16',201224,6,2012,16,24,201206,2012),
+('2012-06-17',201225,6,2012,17,25,201206,2012),
+('2012-06-18',201225,6,2012,18,25,201206,2012),
+('2012-06-19',201225,6,2012,19,25,201206,2012),
+('2012-06-20',201225,6,2012,20,25,201206,2012),
+('2012-06-21',201225,6,2012,21,25,201206,2012),
+('2012-06-22',201225,6,2012,22,25,201206,2012),
+('2012-06-23',201225,6,2012,23,25,201206,2012),
+('2012-06-24',201226,6,2012,24,26,201206,2012),
+('2012-06-25',201226,6,2012,25,26,201206,2012),
+('2012-06-26',201226,6,2012,26,26,201206,2012),
+('2012-06-27',201226,6,2012,27,26,201206,2012),
+('2012-06-28',201226,6,2012,28,26,201206,2012),
+('2012-06-29',201226,6,2012,29,26,201206,2012),
+('2012-06-30',201226,6,2012,30,26,201206,2012),
+('2012-07-01',201227,7,2012,1,27,201207,2012),
+('2012-07-02',201227,7,2012,2,27,201207,2012),
+('2012-07-03',201227,7,2012,3,27,201207,2012),
+('2012-07-04',201227,7,2012,4,27,201207,2012),
+('2012-07-05',201227,7,2012,5,27,201207,2012),
+('2012-07-06',201227,7,2012,6,27,201207,2012),
+('2012-07-07',201227,7,2012,7,27,201207,2012),
+('2012-07-08',201228,7,2012,8,28,201207,2012),
+('2012-07-09',201228,7,2012,9,28,201207,2012),
+('2012-07-10',201228,7,2012,10,28,201207,2012),
+('2012-07-11',201228,7,2012,11,28,201207,2012),
+('2012-07-12',201228,7,2012,12,28,201207,2012),
+('2012-07-13',201228,7,2012,13,28,201207,2012),
+('2012-07-14',201228,7,2012,14,28,201207,2012),
+('2012-07-15',201229,7,2012,15,29,201207,2012),
+('2012-07-16',201229,7,2012,16,29,201207,2012),
+('2012-07-17',201229,7,2012,17,29,201207,2012),
+('2012-07-18',201229,7,2012,18,29,201207,2012),
+('2012-07-19',201229,7,2012,19,29,201207,2012),
+('2012-07-20',201229,7,2012,20,29,201207,2012),
+('2012-07-21',201229,7,2012,21,29,201207,2012),
+('2012-07-22',201230,7,2012,22,30,201207,2012),
+('2012-07-23',201230,7,2012,23,30,201207,2012),
+('2012-07-24',201230,7,2012,24,30,201207,2012),
+('2012-07-25',201230,7,2012,25,30,201207,2012),
+('2012-07-26',201230,7,2012,26,30,201207,2012),
+('2012-07-27',201230,7,2012,27,30,201207,2012),
+('2012-07-28',201230,7,2012,28,30,201207,2012),
+('2012-07-29',201231,7,2012,29,31,201207,2012),
+('2012-07-30',201231,7,2012,30,31,201207,2012),
+('2012-07-31',201231,7,2012,31,31,201207,2012),
+('2012-08-01',201231,8,2012,1,31,201208,2012),
+('2012-08-02',201231,8,2012,2,31,201208,2012),
+('2012-08-03',201231,8,2012,3,31,201208,2012),
+('2012-08-04',201231,8,2012,4,31,201208,2012),
+('2012-08-05',201232,8,2012,5,32,201208,2012),
+('2012-08-06',201232,8,2012,6,32,201208,2012),
+('2012-08-07',201232,8,2012,7,32,201208,2012),
+('2012-08-08',201232,8,2012,8,32,201208,2012),
+('2012-08-09',201232,8,2012,9,32,201208,2012),
+('2012-08-10',201232,8,2012,10,32,201208,2012),
+('2012-08-11',201232,8,2012,11,32,201208,2012),
+('2012-08-12',201233,8,2012,12,33,201208,2012),
+('2012-08-13',201233,8,2012,13,33,201208,2012),
+('2012-08-14',201233,8,2012,14,33,201208,2012),
+('2012-08-15',201233,8,2012,15,33,201208,2012),
+('2012-08-16',201233,8,2012,16,33,201208,2012),
+('2012-08-17',201233,8,2012,17,33,201208,2012),
+('2012-08-18',201233,8,2012,18,33,201208,2012),
+('2012-08-19',201234,8,2012,19,34,201208,2012),
+('2012-08-20',201234,8,2012,20,34,201208,2012),
+('2012-08-21',201234,8,2012,21,34,201208,2012),
+('2012-08-22',201234,8,2012,22,34,201208,2012),
+('2012-08-23',201234,8,2012,23,34,201208,2012),
+('2012-08-24',201234,8,2012,24,34,201208,2012),
+('2012-08-25',201234,8,2012,25,34,201208,2012),
+('2012-08-26',201235,8,2012,26,35,201208,2012),
+('2012-08-27',201235,8,2012,27,35,201208,2012),
+('2012-08-28',201235,8,2012,28,35,201208,2012),
+('2012-08-29',201235,8,2012,29,35,201208,2012),
+('2012-08-30',201235,8,2012,30,35,201208,2012),
+('2012-08-31',201235,8,2012,31,35,201208,2012),
+('2012-09-01',201235,9,2012,1,35,201209,2012),
+('2012-09-02',201236,9,2012,2,36,201209,2012),
+('2012-09-03',201236,9,2012,3,36,201209,2012),
+('2012-09-04',201236,9,2012,4,36,201209,2012),
+('2012-09-05',201236,9,2012,5,36,201209,2012),
+('2012-09-06',201236,9,2012,6,36,201209,2012),
+('2012-09-07',201236,9,2012,7,36,201209,2012),
+('2012-09-08',201236,9,2012,8,36,201209,2012),
+('2012-09-09',201237,9,2012,9,37,201209,2012),
+('2012-09-10',201237,9,2012,10,37,201209,2012),
+('2012-09-11',201237,9,2012,11,37,201209,2012),
+('2012-09-12',201237,9,2012,12,37,201209,2012),
+('2012-09-13',201237,9,2012,13,37,201209,2012),
+('2012-09-14',201237,9,2012,14,37,201209,2012),
+('2012-09-15',201237,9,2012,15,37,201209,2012),
+('2012-09-16',201238,9,2012,16,38,201209,2012),
+('2012-09-17',201238,9,2012,17,38,201209,2012),
+('2012-09-18',201238,9,2012,18,38,201209,2012),
+('2012-09-19',201238,9,2012,19,38,201209,2012),
+('2012-09-20',201238,9,2012,20,38,201209,2012),
+('2012-09-21',201238,9,2012,21,38,201209,2012),
+('2012-09-22',201238,9,2012,22,38,201209,2012),
+('2012-09-23',201239,9,2012,23,39,201209,2012),
+('2012-09-24',201239,9,2012,24,39,201209,2012),
+('2012-09-25',201239,9,2012,25,39,201209,2012),
+('2012-09-26',201239,9,2012,26,39,201209,2012),
+('2012-09-27',201239,9,2012,27,39,201209,2012),
+('2012-09-28',201239,9,2012,28,39,201209,2012),
+('2012-09-29',201239,9,2012,29,39,201209,2012),
+('2012-09-30',201240,9,2012,30,40,201209,2012),
+('2012-10-01',201240,10,2012,1,40,201210,2012),
+('2012-10-02',201240,10,2012,2,40,201210,2012),
+('2012-10-03',201240,10,2012,3,40,201210,2012),
+('2012-10-04',201240,10,2012,4,40,201210,2012),
+('2012-10-05',201240,10,2012,5,40,201210,2012),
+('2012-10-06',201240,10,2012,6,40,201210,2012),
+('2012-10-07',201241,10,2012,7,41,201210,2012),
+('2012-10-08',201241,10,2012,8,41,201210,2012),
+('2012-10-09',201241,10,2012,9,41,201210,2012),
+('2012-10-10',201241,10,2012,10,41,201210,2012),
+('2012-10-11',201241,10,2012,11,41,201210,2012),
+('2012-10-12',201241,10,2012,12,41,201210,2012),
+('2012-10-13',201241,10,2012,13,41,201210,2012),
+('2012-10-14',201242,10,2012,14,42,201210,2012),
+('2012-10-15',201242,10,2012,15,42,201210,2012),
+('2012-10-16',201242,10,2012,16,42,201210,2012),
+('2012-10-17',201242,10,2012,17,42,201210,2012),
+('2012-10-18',201242,10,2012,18,42,201210,2012),
+('2012-10-19',201242,10,2012,19,42,201210,2012),
+('2012-10-20',201242,10,2012,20,42,201210,2012),
+('2012-10-21',201243,10,2012,21,43,201210,2012),
+('2012-10-22',201243,10,2012,22,43,201210,2012),
+('2012-10-23',201243,10,2012,23,43,201210,2012),
+('2012-10-24',201243,10,2012,24,43,201210,2012),
+('2012-10-25',201243,10,2012,25,43,201210,2012),
+('2012-10-26',201243,10,2012,26,43,201210,2012),
+('2012-10-27',201243,10,2012,27,43,201210,2012),
+('2012-10-28',201244,10,2012,28,44,201210,2012),
+('2012-10-29',201244,10,2012,29,44,201210,2012),
+('2012-10-30',201244,10,2012,30,44,201210,2012),
+('2012-10-31',201244,10,2012,31,44,201210,2012),
+('2012-11-01',201244,11,2012,1,44,201211,2012),
+('2012-11-02',201244,11,2012,2,44,201211,2012),
+('2012-11-03',201244,11,2012,3,44,201211,2012),
+('2012-11-04',201245,11,2012,4,45,201211,2012),
+('2012-11-05',201245,11,2012,5,45,201211,2012),
+('2012-11-06',201245,11,2012,6,45,201211,2012),
+('2012-11-07',201245,11,2012,7,45,201211,2012),
+('2012-11-08',201245,11,2012,8,45,201211,2012),
+('2012-11-09',201245,11,2012,9,45,201211,2012),
+('2012-11-10',201245,11,2012,10,45,201211,2012),
+('2012-11-11',201246,11,2012,11,46,201211,2012),
+('2012-11-12',201246,11,2012,12,46,201211,2012),
+('2012-11-13',201246,11,2012,13,46,201211,2012),
+('2012-11-14',201246,11,2012,14,46,201211,2012),
+('2012-11-15',201246,11,2012,15,46,201211,2012),
+('2012-11-16',201246,11,2012,16,46,201211,2012),
+('2012-11-17',201246,11,2012,17,46,201211,2012),
+('2012-11-18',201247,11,2012,18,47,201211,2012),
+('2012-11-19',201247,11,2012,19,47,201211,2012),
+('2012-11-20',201247,11,2012,20,47,201211,2012),
+('2012-11-21',201247,11,2012,21,47,201211,2012),
+('2012-11-22',201247,11,2012,22,47,201211,2012),
+('2012-11-23',201247,11,2012,23,47,201211,2012),
+('2012-11-24',201247,11,2012,24,47,201211,2012),
+('2012-11-25',201248,11,2012,25,48,201211,2012),
+('2012-11-26',201248,11,2012,26,48,201211,2012),
+('2012-11-27',201248,11,2012,27,48,201211,2012),
+('2012-11-28',201248,11,2012,28,48,201211,2012),
+('2012-11-29',201248,11,2012,29,48,201211,2012),
+('2012-11-30',201248,11,2012,30,48,201211,2012),
+('2012-12-01',201248,12,2012,1,48,201212,2013),
+('2012-12-02',201249,12,2012,2,49,201212,2013),
+('2012-12-03',201249,12,2012,3,49,201212,2013),
+('2012-12-04',201249,12,2012,4,49,201212,2013),
+('2012-12-05',201249,12,2012,5,49,201212,2013),
+('2012-12-06',201249,12,2012,6,49,201212,2013),
+('2012-12-07',201249,12,2012,7,49,201212,2013),
+('2012-12-08',201249,12,2012,8,49,201212,2013),
+('2012-12-09',201250,12,2012,9,50,201212,2013),
+('2012-12-10',201250,12,2012,10,50,201212,2013),
+('2012-12-11',201250,12,2012,11,50,201212,2013),
+('2012-12-12',201250,12,2012,12,50,201212,2013),
+('2012-12-13',201250,12,2012,13,50,201212,2013),
+('2012-12-14',201250,12,2012,14,50,201212,2013),
+('2012-12-15',201250,12,2012,15,50,201212,2013),
+('2012-12-16',201251,12,2012,16,51,201212,2013),
+('2012-12-17',201251,12,2012,17,51,201212,2013),
+('2012-12-18',201251,12,2012,18,51,201212,2013),
+('2012-12-19',201251,12,2012,19,51,201212,2013),
+('2012-12-20',201251,12,2012,20,51,201212,2013),
+('2012-12-21',201251,12,2012,21,51,201212,2013),
+('2012-12-22',201251,12,2012,22,51,201212,2013),
+('2012-12-23',201252,12,2012,23,52,201212,2013),
+('2012-12-24',201252,12,2012,24,52,201212,2013),
+('2012-12-25',201252,12,2012,25,52,201212,2013),
+('2012-12-26',201252,12,2012,26,52,201212,2013),
+('2012-12-27',201252,12,2012,27,52,201212,2013),
+('2012-12-28',201252,12,2012,28,52,201212,2013),
+('2012-12-29',201252,12,2012,29,52,201212,2013),
+('2012-12-30',201301,12,2012,30,1,201212,2013),
+('2012-12-31',201301,12,2012,31,1,201212,2013),
+('2013-01-01',201301,1,2013,1,1,201301,2013),
+('2013-01-02',201301,1,2013,2,1,201301,2013),
+('2013-01-03',201301,1,2013,3,1,201301,2013),
+('2013-01-04',201301,1,2013,4,1,201301,2013),
+('2013-01-05',201301,1,2013,5,1,201301,2013),
+('2013-01-06',201302,1,2013,6,2,201301,2013),
+('2013-01-07',201302,1,2013,7,2,201301,2013),
+('2013-01-08',201302,1,2013,8,2,201301,2013),
+('2013-01-09',201302,1,2013,9,2,201301,2013),
+('2013-01-10',201302,1,2013,10,2,201301,2013),
+('2013-01-11',201302,1,2013,11,2,201301,2013),
+('2013-01-12',201302,1,2013,12,2,201301,2013),
+('2013-01-13',201303,1,2013,13,3,201301,2013),
+('2013-01-14',201303,1,2013,14,3,201301,2013),
+('2013-01-15',201303,1,2013,15,3,201301,2013),
+('2013-01-16',201303,1,2013,16,3,201301,2013),
+('2013-01-17',201303,1,2013,17,3,201301,2013),
+('2013-01-18',201303,1,2013,18,3,201301,2013),
+('2013-01-19',201303,1,2013,19,3,201301,2013),
+('2013-01-20',201304,1,2013,20,4,201301,2013),
+('2013-01-21',201304,1,2013,21,4,201301,2013),
+('2013-01-22',201304,1,2013,22,4,201301,2013),
+('2013-01-23',201304,1,2013,23,4,201301,2013),
+('2013-01-24',201304,1,2013,24,4,201301,2013),
+('2013-01-25',201304,1,2013,25,4,201301,2013),
+('2013-01-26',201304,1,2013,26,4,201301,2013),
+('2013-01-27',201305,1,2013,27,5,201301,2013),
+('2013-01-28',201305,1,2013,28,5,201301,2013),
+('2013-01-29',201305,1,2013,29,5,201301,2013),
+('2013-01-30',201305,1,2013,30,5,201301,2013),
+('2013-01-31',201305,1,2013,31,5,201301,2013),
+('2013-02-01',201305,2,2013,1,5,201302,2013),
+('2013-02-02',201305,2,2013,2,5,201302,2013),
+('2013-02-03',201306,2,2013,3,6,201302,2013),
+('2013-02-04',201306,2,2013,4,6,201302,2013),
+('2013-02-05',201306,2,2013,5,6,201302,2013),
+('2013-02-06',201306,2,2013,6,6,201302,2013),
+('2013-02-07',201306,2,2013,7,6,201302,2013),
+('2013-02-08',201306,2,2013,8,6,201302,2013),
+('2013-02-09',201306,2,2013,9,6,201302,2013),
+('2013-02-10',201307,2,2013,10,7,201302,2013),
+('2013-02-11',201307,2,2013,11,7,201302,2013),
+('2013-02-12',201307,2,2013,12,7,201302,2013),
+('2013-02-13',201307,2,2013,13,7,201302,2013),
+('2013-02-14',201307,2,2013,14,7,201302,2013),
+('2013-02-15',201307,2,2013,15,7,201302,2013),
+('2013-02-16',201307,2,2013,16,7,201302,2013),
+('2013-02-17',201308,2,2013,17,8,201302,2013),
+('2013-02-18',201308,2,2013,18,8,201302,2013),
+('2013-02-19',201308,2,2013,19,8,201302,2013),
+('2013-02-20',201308,2,2013,20,8,201302,2013),
+('2013-02-21',201308,2,2013,21,8,201302,2013),
+('2013-02-22',201308,2,2013,22,8,201302,2013),
+('2013-02-23',201308,2,2013,23,8,201302,2013),
+('2013-02-24',201309,2,2013,24,9,201302,2013),
+('2013-02-25',201309,2,2013,25,9,201302,2013),
+('2013-02-26',201309,2,2013,26,9,201302,2013),
+('2013-02-27',201309,2,2013,27,9,201302,2013),
+('2013-02-28',201309,2,2013,28,9,201302,2013),
+('2013-03-01',201309,3,2013,1,9,201303,2013),
+('2013-03-02',201309,3,2013,2,9,201303,2013),
+('2013-03-03',201310,3,2013,3,10,201303,2013),
+('2013-03-04',201310,3,2013,4,10,201303,2013),
+('2013-03-05',201310,3,2013,5,10,201303,2013),
+('2013-03-06',201310,3,2013,6,10,201303,2013),
+('2013-03-07',201310,3,2013,7,10,201303,2013),
+('2013-03-08',201310,3,2013,8,10,201303,2013),
+('2013-03-09',201310,3,2013,9,10,201303,2013),
+('2013-03-10',201311,3,2013,10,11,201303,2013),
+('2013-03-11',201311,3,2013,11,11,201303,2013),
+('2013-03-12',201311,3,2013,12,11,201303,2013),
+('2013-03-13',201311,3,2013,13,11,201303,2013),
+('2013-03-14',201311,3,2013,14,11,201303,2013),
+('2013-03-15',201311,3,2013,15,11,201303,2013),
+('2013-03-16',201311,3,2013,16,11,201303,2013),
+('2013-03-17',201312,3,2013,17,12,201303,2013),
+('2013-03-18',201312,3,2013,18,12,201303,2013),
+('2013-03-19',201312,3,2013,19,12,201303,2013),
+('2013-03-20',201312,3,2013,20,12,201303,2013),
+('2013-03-21',201312,3,2013,21,12,201303,2013),
+('2013-03-22',201312,3,2013,22,12,201303,2013),
+('2013-03-23',201312,3,2013,23,12,201303,2013),
+('2013-03-24',201313,3,2013,24,13,201303,2013),
+('2013-03-25',201313,3,2013,25,13,201303,2013),
+('2013-03-26',201313,3,2013,26,13,201303,2013),
+('2013-03-27',201313,3,2013,27,13,201303,2013),
+('2013-03-28',201313,3,2013,28,13,201303,2013),
+('2013-03-29',201313,3,2013,29,13,201303,2013),
+('2013-03-30',201313,3,2013,30,13,201303,2013),
+('2013-03-31',201314,3,2013,31,14,201303,2013),
+('2013-04-01',201314,4,2013,1,14,201304,2013),
+('2013-04-02',201314,4,2013,2,14,201304,2013),
+('2013-04-03',201314,4,2013,3,14,201304,2013),
+('2013-04-04',201314,4,2013,4,14,201304,2013),
+('2013-04-05',201314,4,2013,5,14,201304,2013),
+('2013-04-06',201314,4,2013,6,14,201304,2013),
+('2013-04-07',201315,4,2013,7,15,201304,2013),
+('2013-04-08',201315,4,2013,8,15,201304,2013),
+('2013-04-09',201315,4,2013,9,15,201304,2013),
+('2013-04-10',201315,4,2013,10,15,201304,2013),
+('2013-04-11',201315,4,2013,11,15,201304,2013),
+('2013-04-12',201315,4,2013,12,15,201304,2013),
+('2013-04-13',201315,4,2013,13,15,201304,2013),
+('2013-04-14',201316,4,2013,14,16,201304,2013),
+('2013-04-15',201316,4,2013,15,16,201304,2013),
+('2013-04-16',201316,4,2013,16,16,201304,2013),
+('2013-04-17',201316,4,2013,17,16,201304,2013),
+('2013-04-18',201316,4,2013,18,16,201304,2013),
+('2013-04-19',201316,4,2013,19,16,201304,2013),
+('2013-04-20',201316,4,2013,20,16,201304,2013),
+('2013-04-21',201317,4,2013,21,17,201304,2013),
+('2013-04-22',201317,4,2013,22,17,201304,2013),
+('2013-04-23',201317,4,2013,23,17,201304,2013),
+('2013-04-24',201317,4,2013,24,17,201304,2013),
+('2013-04-25',201317,4,2013,25,17,201304,2013),
+('2013-04-26',201317,4,2013,26,17,201304,2013),
+('2013-04-27',201317,4,2013,27,17,201304,2013),
+('2013-04-28',201318,4,2013,28,18,201304,2013),
+('2013-04-29',201318,4,2013,29,18,201304,2013),
+('2013-04-30',201318,4,2013,30,18,201304,2013),
+('2013-05-01',201318,5,2013,1,18,201305,2013),
+('2013-05-02',201318,5,2013,2,18,201305,2013),
+('2013-05-03',201318,5,2013,3,18,201305,2013),
+('2013-05-04',201318,5,2013,4,18,201305,2013),
+('2013-05-05',201319,5,2013,5,19,201305,2013),
+('2013-05-06',201319,5,2013,6,19,201305,2013),
+('2013-05-07',201319,5,2013,7,19,201305,2013),
+('2013-05-08',201319,5,2013,8,19,201305,2013),
+('2013-05-09',201319,5,2013,9,19,201305,2013),
+('2013-05-10',201319,5,2013,10,19,201305,2013),
+('2013-05-11',201319,5,2013,11,19,201305,2013),
+('2013-05-12',201320,5,2013,12,20,201305,2013),
+('2013-05-13',201320,5,2013,13,20,201305,2013),
+('2013-05-14',201320,5,2013,14,20,201305,2013),
+('2013-05-15',201320,5,2013,15,20,201305,2013),
+('2013-05-16',201320,5,2013,16,20,201305,2013),
+('2013-05-17',201320,5,2013,17,20,201305,2013),
+('2013-05-18',201320,5,2013,18,20,201305,2013),
+('2013-05-19',201321,5,2013,19,21,201305,2013),
+('2013-05-20',201321,5,2013,20,21,201305,2013),
+('2013-05-21',201321,5,2013,21,21,201305,2013),
+('2013-05-22',201321,5,2013,22,21,201305,2013),
+('2013-05-23',201321,5,2013,23,21,201305,2013),
+('2013-05-24',201321,5,2013,24,21,201305,2013),
+('2013-05-25',201321,5,2013,25,21,201305,2013),
+('2013-05-26',201322,5,2013,26,22,201305,2013),
+('2013-05-27',201322,5,2013,27,22,201305,2013),
+('2013-05-28',201322,5,2013,28,22,201305,2013),
+('2013-05-29',201322,5,2013,29,22,201305,2013),
+('2013-05-30',201322,5,2013,30,22,201305,2013),
+('2013-05-31',201322,5,2013,31,22,201305,2013),
+('2013-06-01',201322,6,2013,1,22,201306,2013),
+('2013-06-02',201323,6,2013,2,23,201306,2013),
+('2013-06-03',201323,6,2013,3,23,201306,2013),
+('2013-06-04',201323,6,2013,4,23,201306,2013),
+('2013-06-05',201323,6,2013,5,23,201306,2013),
+('2013-06-06',201323,6,2013,6,23,201306,2013),
+('2013-06-07',201323,6,2013,7,23,201306,2013),
+('2013-06-08',201323,6,2013,8,23,201306,2013),
+('2013-06-09',201324,6,2013,9,24,201306,2013),
+('2013-06-10',201324,6,2013,10,24,201306,2013),
+('2013-06-11',201324,6,2013,11,24,201306,2013),
+('2013-06-12',201324,6,2013,12,24,201306,2013),
+('2013-06-13',201324,6,2013,13,24,201306,2013),
+('2013-06-14',201324,6,2013,14,24,201306,2013),
+('2013-06-15',201324,6,2013,15,24,201306,2013),
+('2013-06-16',201325,6,2013,16,25,201306,2013),
+('2013-06-17',201325,6,2013,17,25,201306,2013),
+('2013-06-18',201325,6,2013,18,25,201306,2013),
+('2013-06-19',201325,6,2013,19,25,201306,2013),
+('2013-06-20',201325,6,2013,20,25,201306,2013),
+('2013-06-21',201325,6,2013,21,25,201306,2013),
+('2013-06-22',201325,6,2013,22,25,201306,2013),
+('2013-06-23',201326,6,2013,23,26,201306,2013),
+('2013-06-24',201326,6,2013,24,26,201306,2013),
+('2013-06-25',201326,6,2013,25,26,201306,2013),
+('2013-06-26',201326,6,2013,26,26,201306,2013),
+('2013-06-27',201326,6,2013,27,26,201306,2013),
+('2013-06-28',201326,6,2013,28,26,201306,2013),
+('2013-06-29',201326,6,2013,29,26,201306,2013),
+('2013-06-30',201327,6,2013,30,27,201306,2013),
+('2013-07-01',201327,7,2013,1,27,201307,2013),
+('2013-07-02',201327,7,2013,2,27,201307,2013),
+('2013-07-03',201327,7,2013,3,27,201307,2013),
+('2013-07-04',201327,7,2013,4,27,201307,2013),
+('2013-07-05',201327,7,2013,5,27,201307,2013),
+('2013-07-06',201327,7,2013,6,27,201307,2013),
+('2013-07-07',201328,7,2013,7,28,201307,2013),
+('2013-07-08',201328,7,2013,8,28,201307,2013),
+('2013-07-09',201328,7,2013,9,28,201307,2013),
+('2013-07-10',201328,7,2013,10,28,201307,2013),
+('2013-07-11',201328,7,2013,11,28,201307,2013),
+('2013-07-12',201328,7,2013,12,28,201307,2013),
+('2013-07-13',201328,7,2013,13,28,201307,2013),
+('2013-07-14',201329,7,2013,14,29,201307,2013),
+('2013-07-15',201329,7,2013,15,29,201307,2013),
+('2013-07-16',201329,7,2013,16,29,201307,2013),
+('2013-07-17',201329,7,2013,17,29,201307,2013),
+('2013-07-18',201329,7,2013,18,29,201307,2013),
+('2013-07-19',201329,7,2013,19,29,201307,2013),
+('2013-07-20',201329,7,2013,20,29,201307,2013),
+('2013-07-21',201330,7,2013,21,30,201307,2013),
+('2013-07-22',201330,7,2013,22,30,201307,2013),
+('2013-07-23',201330,7,2013,23,30,201307,2013),
+('2013-07-24',201330,7,2013,24,30,201307,2013),
+('2013-07-25',201330,7,2013,25,30,201307,2013),
+('2013-07-26',201330,7,2013,26,30,201307,2013),
+('2013-07-27',201330,7,2013,27,30,201307,2013),
+('2013-07-28',201331,7,2013,28,31,201307,2013),
+('2013-07-29',201331,7,2013,29,31,201307,2013),
+('2013-07-30',201331,7,2013,30,31,201307,2013),
+('2013-07-31',201331,7,2013,31,31,201307,2013),
+('2013-08-01',201331,8,2013,1,31,201308,2013),
+('2013-08-02',201331,8,2013,2,31,201308,2013),
+('2013-08-03',201331,8,2013,3,31,201308,2013),
+('2013-08-04',201332,8,2013,4,32,201308,2013),
+('2013-08-05',201332,8,2013,5,32,201308,2013),
+('2013-08-06',201332,8,2013,6,32,201308,2013),
+('2013-08-07',201332,8,2013,7,32,201308,2013),
+('2013-08-08',201332,8,2013,8,32,201308,2013),
+('2013-08-09',201332,8,2013,9,32,201308,2013),
+('2013-08-10',201332,8,2013,10,32,201308,2013),
+('2013-08-11',201333,8,2013,11,33,201308,2013),
+('2013-08-12',201333,8,2013,12,33,201308,2013),
+('2013-08-13',201333,8,2013,13,33,201308,2013),
+('2013-08-14',201333,8,2013,14,33,201308,2013),
+('2013-08-15',201333,8,2013,15,33,201308,2013),
+('2013-08-16',201333,8,2013,16,33,201308,2013),
+('2013-08-17',201333,8,2013,17,33,201308,2013),
+('2013-08-18',201334,8,2013,18,34,201308,2013),
+('2013-08-19',201334,8,2013,19,34,201308,2013),
+('2013-08-20',201334,8,2013,20,34,201308,2013),
+('2013-08-21',201334,8,2013,21,34,201308,2013),
+('2013-08-22',201334,8,2013,22,34,201308,2013),
+('2013-08-23',201334,8,2013,23,34,201308,2013),
+('2013-08-24',201334,8,2013,24,34,201308,2013),
+('2013-08-25',201335,8,2013,25,35,201308,2013),
+('2013-08-26',201335,8,2013,26,35,201308,2013),
+('2013-08-27',201335,8,2013,27,35,201308,2013),
+('2013-08-28',201335,8,2013,28,35,201308,2013),
+('2013-08-29',201335,8,2013,29,35,201308,2013),
+('2013-08-30',201335,8,2013,30,35,201308,2013),
+('2013-08-31',201335,8,2013,31,35,201308,2013),
+('2013-09-01',201336,9,2013,1,36,201309,2013),
+('2013-09-02',201336,9,2013,2,36,201309,2013),
+('2013-09-03',201336,9,2013,3,36,201309,2013),
+('2013-09-04',201336,9,2013,4,36,201309,2013),
+('2013-09-05',201336,9,2013,5,36,201309,2013),
+('2013-09-06',201336,9,2013,6,36,201309,2013),
+('2013-09-07',201336,9,2013,7,36,201309,2013),
+('2013-09-08',201337,9,2013,8,37,201309,2013),
+('2013-09-09',201337,9,2013,9,37,201309,2013),
+('2013-09-10',201337,9,2013,10,37,201309,2013),
+('2013-09-11',201337,9,2013,11,37,201309,2013),
+('2013-09-12',201337,9,2013,12,37,201309,2013),
+('2013-09-13',201337,9,2013,13,37,201309,2013),
+('2013-09-14',201337,9,2013,14,37,201309,2013),
+('2013-09-15',201338,9,2013,15,38,201309,2013),
+('2013-09-16',201338,9,2013,16,38,201309,2013),
+('2013-09-17',201338,9,2013,17,38,201309,2013),
+('2013-09-18',201338,9,2013,18,38,201309,2013),
+('2013-09-19',201338,9,2013,19,38,201309,2013),
+('2013-09-20',201338,9,2013,20,38,201309,2013),
+('2013-09-21',201338,9,2013,21,38,201309,2013),
+('2013-09-22',201339,9,2013,22,39,201309,2013),
+('2013-09-23',201339,9,2013,23,39,201309,2013),
+('2013-09-24',201339,9,2013,24,39,201309,2013),
+('2013-09-25',201339,9,2013,25,39,201309,2013),
+('2013-09-26',201339,9,2013,26,39,201309,2013),
+('2013-09-27',201339,9,2013,27,39,201309,2013),
+('2013-09-28',201339,9,2013,28,39,201309,2013),
+('2013-09-29',201340,9,2013,29,40,201309,2013),
+('2013-09-30',201340,9,2013,30,40,201309,2013),
+('2013-10-01',201340,10,2013,1,40,201310,2013),
+('2013-10-02',201340,10,2013,2,40,201310,2013),
+('2013-10-03',201340,10,2013,3,40,201310,2013),
+('2013-10-04',201340,10,2013,4,40,201310,2013),
+('2013-10-05',201340,10,2013,5,40,201310,2013),
+('2013-10-06',201341,10,2013,6,41,201310,2013),
+('2013-10-07',201341,10,2013,7,41,201310,2013),
+('2013-10-08',201341,10,2013,8,41,201310,2013),
+('2013-10-09',201341,10,2013,9,41,201310,2013),
+('2013-10-10',201341,10,2013,10,41,201310,2013),
+('2013-10-11',201341,10,2013,11,41,201310,2013),
+('2013-10-12',201341,10,2013,12,41,201310,2013),
+('2013-10-13',201342,10,2013,13,42,201310,2013),
+('2013-10-14',201342,10,2013,14,42,201310,2013),
+('2013-10-15',201342,10,2013,15,42,201310,2013),
+('2013-10-16',201342,10,2013,16,42,201310,2013),
+('2013-10-17',201342,10,2013,17,42,201310,2013),
+('2013-10-18',201342,10,2013,18,42,201310,2013),
+('2013-10-19',201342,10,2013,19,42,201310,2013),
+('2013-10-20',201343,10,2013,20,43,201310,2013),
+('2013-10-21',201343,10,2013,21,43,201310,2013),
+('2013-10-22',201343,10,2013,22,43,201310,2013),
+('2013-10-23',201343,10,2013,23,43,201310,2013),
+('2013-10-24',201343,10,2013,24,43,201310,2013),
+('2013-10-25',201343,10,2013,25,43,201310,2013),
+('2013-10-26',201343,10,2013,26,43,201310,2013),
+('2013-10-27',201344,10,2013,27,44,201310,2013),
+('2013-10-28',201344,10,2013,28,44,201310,2013),
+('2013-10-29',201344,10,2013,29,44,201310,2013),
+('2013-10-30',201344,10,2013,30,44,201310,2013),
+('2013-10-31',201344,10,2013,31,44,201310,2013),
+('2013-11-01',201344,11,2013,1,44,201311,2013),
+('2013-11-02',201344,11,2013,2,44,201311,2013),
+('2013-11-03',201345,11,2013,3,45,201311,2013),
+('2013-11-04',201345,11,2013,4,45,201311,2013),
+('2013-11-05',201345,11,2013,5,45,201311,2013),
+('2013-11-06',201345,11,2013,6,45,201311,2013),
+('2013-11-07',201345,11,2013,7,45,201311,2013),
+('2013-11-08',201345,11,2013,8,45,201311,2013),
+('2013-11-09',201345,11,2013,9,45,201311,2013),
+('2013-11-10',201346,11,2013,10,46,201311,2013),
+('2013-11-11',201346,11,2013,11,46,201311,2013),
+('2013-11-12',201346,11,2013,12,46,201311,2013),
+('2013-11-13',201346,11,2013,13,46,201311,2013),
+('2013-11-14',201346,11,2013,14,46,201311,2013),
+('2013-11-15',201346,11,2013,15,46,201311,2013),
+('2013-11-16',201346,11,2013,16,46,201311,2013),
+('2013-11-17',201347,11,2013,17,47,201311,2013),
+('2013-11-18',201347,11,2013,18,47,201311,2013),
+('2013-11-19',201347,11,2013,19,47,201311,2013),
+('2013-11-20',201347,11,2013,20,47,201311,2013),
+('2013-11-21',201347,11,2013,21,47,201311,2013),
+('2013-11-22',201347,11,2013,22,47,201311,2013),
+('2013-11-23',201347,11,2013,23,47,201311,2013),
+('2013-11-24',201348,11,2013,24,48,201311,2013),
+('2013-11-25',201348,11,2013,25,48,201311,2013),
+('2013-11-26',201348,11,2013,26,48,201311,2013),
+('2013-11-27',201348,11,2013,27,48,201311,2013),
+('2013-11-28',201348,11,2013,28,48,201311,2013),
+('2013-11-29',201348,11,2013,29,48,201311,2013),
+('2013-11-30',201348,11,2013,30,48,201311,2013),
+('2013-12-01',201349,12,2013,1,49,201312,2014),
+('2013-12-02',201349,12,2013,2,49,201312,2014),
+('2013-12-03',201349,12,2013,3,49,201312,2014),
+('2013-12-04',201349,12,2013,4,49,201312,2014),
+('2013-12-05',201349,12,2013,5,49,201312,2014),
+('2013-12-06',201349,12,2013,6,49,201312,2014),
+('2013-12-07',201349,12,2013,7,49,201312,2014),
+('2013-12-08',201350,12,2013,8,50,201312,2014),
+('2013-12-09',201350,12,2013,9,50,201312,2014),
+('2013-12-10',201350,12,2013,10,50,201312,2014),
+('2013-12-11',201350,12,2013,11,50,201312,2014),
+('2013-12-12',201350,12,2013,12,50,201312,2014),
+('2013-12-13',201350,12,2013,13,50,201312,2014),
+('2013-12-14',201350,12,2013,14,50,201312,2014),
+('2013-12-15',201351,12,2013,15,51,201312,2014),
+('2013-12-16',201351,12,2013,16,51,201312,2014),
+('2013-12-17',201351,12,2013,17,51,201312,2014),
+('2013-12-18',201351,12,2013,18,51,201312,2014),
+('2013-12-19',201351,12,2013,19,51,201312,2014),
+('2013-12-20',201351,12,2013,20,51,201312,2014),
+('2013-12-21',201351,12,2013,21,51,201312,2014),
+('2013-12-22',201352,12,2013,22,52,201312,2014),
+('2013-12-23',201352,12,2013,23,52,201312,2014),
+('2013-12-24',201352,12,2013,24,52,201312,2014),
+('2013-12-25',201352,12,2013,25,52,201312,2014),
+('2013-12-26',201352,12,2013,26,52,201312,2014),
+('2013-12-27',201352,12,2013,27,52,201312,2014),
+('2013-12-28',201352,12,2013,28,52,201312,2014),
+('2013-12-29',201401,12,2013,29,1,201312,2014),
+('2013-12-30',201401,12,2013,30,1,201312,2014),
+('2013-12-31',201401,12,2013,31,1,201312,2014),
+('2014-01-01',201401,1,2014,1,1,201401,2014),
+('2014-01-02',201401,1,2014,2,1,201401,2014),
+('2014-01-03',201401,1,2014,3,1,201401,2014),
+('2014-01-04',201401,1,2014,4,1,201401,2014),
+('2014-01-05',201402,1,2014,5,2,201401,2014),
+('2014-01-06',201402,1,2014,6,2,201401,2014),
+('2014-01-07',201402,1,2014,7,2,201401,2014),
+('2014-01-08',201402,1,2014,8,2,201401,2014),
+('2014-01-09',201402,1,2014,9,2,201401,2014),
+('2014-01-10',201402,1,2014,10,2,201401,2014),
+('2014-01-11',201402,1,2014,11,2,201401,2014),
+('2014-01-12',201403,1,2014,12,3,201401,2014),
+('2014-01-13',201403,1,2014,13,3,201401,2014),
+('2014-01-14',201403,1,2014,14,3,201401,2014),
+('2014-01-15',201403,1,2014,15,3,201401,2014),
+('2014-01-16',201403,1,2014,16,3,201401,2014),
+('2014-01-17',201403,1,2014,17,3,201401,2014),
+('2014-01-18',201403,1,2014,18,3,201401,2014),
+('2014-01-19',201404,1,2014,19,4,201401,2014),
+('2014-01-20',201404,1,2014,20,4,201401,2014),
+('2014-01-21',201404,1,2014,21,4,201401,2014),
+('2014-01-22',201404,1,2014,22,4,201401,2014),
+('2014-01-23',201404,1,2014,23,4,201401,2014),
+('2014-01-24',201404,1,2014,24,4,201401,2014),
+('2014-01-25',201404,1,2014,25,4,201401,2014),
+('2014-01-26',201405,1,2014,26,5,201401,2014),
+('2014-01-27',201405,1,2014,27,5,201401,2014),
+('2014-01-28',201405,1,2014,28,5,201401,2014),
+('2014-01-29',201405,1,2014,29,5,201401,2014),
+('2014-01-30',201405,1,2014,30,5,201401,2014),
+('2014-01-31',201405,1,2014,31,5,201401,2014),
+('2014-02-01',201405,2,2014,1,5,201402,2014),
+('2014-02-02',201406,2,2014,2,6,201402,2014),
+('2014-02-03',201406,2,2014,3,6,201402,2014),
+('2014-02-04',201406,2,2014,4,6,201402,2014),
+('2014-02-05',201406,2,2014,5,6,201402,2014),
+('2014-02-06',201406,2,2014,6,6,201402,2014),
+('2014-02-07',201406,2,2014,7,6,201402,2014),
+('2014-02-08',201406,2,2014,8,6,201402,2014),
+('2014-02-09',201407,2,2014,9,7,201402,2014),
+('2014-02-10',201407,2,2014,10,7,201402,2014),
+('2014-02-11',201407,2,2014,11,7,201402,2014),
+('2014-02-12',201407,2,2014,12,7,201402,2014),
+('2014-02-13',201407,2,2014,13,7,201402,2014),
+('2014-02-14',201407,2,2014,14,7,201402,2014),
+('2014-02-15',201407,2,2014,15,7,201402,2014),
+('2014-02-16',201408,2,2014,16,8,201402,2014),
+('2014-02-17',201408,2,2014,17,8,201402,2014),
+('2014-02-18',201408,2,2014,18,8,201402,2014),
+('2014-02-19',201408,2,2014,19,8,201402,2014),
+('2014-02-20',201408,2,2014,20,8,201402,2014),
+('2014-02-21',201408,2,2014,21,8,201402,2014),
+('2014-02-22',201408,2,2014,22,8,201402,2014),
+('2014-02-23',201409,2,2014,23,9,201402,2014),
+('2014-02-24',201409,2,2014,24,9,201402,2014),
+('2014-02-25',201409,2,2014,25,9,201402,2014),
+('2014-02-26',201409,2,2014,26,9,201402,2014),
+('2014-02-27',201409,2,2014,27,9,201402,2014),
+('2014-02-28',201409,2,2014,28,9,201402,2014),
+('2014-03-01',201409,3,2014,1,9,201403,2014),
+('2014-03-02',201410,3,2014,2,10,201403,2014),
+('2014-03-03',201410,3,2014,3,10,201403,2014),
+('2014-03-04',201410,3,2014,4,10,201403,2014),
+('2014-03-05',201410,3,2014,5,10,201403,2014),
+('2014-03-06',201410,3,2014,6,10,201403,2014),
+('2014-03-07',201410,3,2014,7,10,201403,2014),
+('2014-03-08',201410,3,2014,8,10,201403,2014),
+('2014-03-09',201411,3,2014,9,11,201403,2014),
+('2014-03-10',201411,3,2014,10,11,201403,2014),
+('2014-03-11',201411,3,2014,11,11,201403,2014),
+('2014-03-12',201411,3,2014,12,11,201403,2014),
+('2014-03-13',201411,3,2014,13,11,201403,2014),
+('2014-03-14',201411,3,2014,14,11,201403,2014),
+('2014-03-15',201411,3,2014,15,11,201403,2014),
+('2014-03-16',201412,3,2014,16,12,201403,2014),
+('2014-03-17',201412,3,2014,17,12,201403,2014),
+('2014-03-18',201412,3,2014,18,12,201403,2014),
+('2014-03-19',201412,3,2014,19,12,201403,2014),
+('2014-03-20',201412,3,2014,20,12,201403,2014),
+('2014-03-21',201412,3,2014,21,12,201403,2014),
+('2014-03-22',201412,3,2014,22,12,201403,2014),
+('2014-03-23',201413,3,2014,23,13,201403,2014),
+('2014-03-24',201413,3,2014,24,13,201403,2014),
+('2014-03-25',201413,3,2014,25,13,201403,2014),
+('2014-03-26',201413,3,2014,26,13,201403,2014),
+('2014-03-27',201413,3,2014,27,13,201403,2014),
+('2014-03-28',201413,3,2014,28,13,201403,2014),
+('2014-03-29',201413,3,2014,29,13,201403,2014),
+('2014-03-30',201414,3,2014,30,14,201403,2014),
+('2014-03-31',201414,3,2014,31,14,201403,2014),
+('2014-04-01',201414,4,2014,1,14,201404,2014),
+('2014-04-02',201414,4,2014,2,14,201404,2014),
+('2014-04-03',201414,4,2014,3,14,201404,2014),
+('2014-04-04',201414,4,2014,4,14,201404,2014),
+('2014-04-05',201414,4,2014,5,14,201404,2014),
+('2014-04-06',201415,4,2014,6,15,201404,2014),
+('2014-04-07',201415,4,2014,7,15,201404,2014),
+('2014-04-08',201415,4,2014,8,15,201404,2014),
+('2014-04-09',201415,4,2014,9,15,201404,2014),
+('2014-04-10',201415,4,2014,10,15,201404,2014),
+('2014-04-11',201415,4,2014,11,15,201404,2014),
+('2014-04-12',201415,4,2014,12,15,201404,2014),
+('2014-04-13',201416,4,2014,13,16,201404,2014),
+('2014-04-14',201416,4,2014,14,16,201404,2014),
+('2014-04-15',201416,4,2014,15,16,201404,2014),
+('2014-04-16',201416,4,2014,16,16,201404,2014),
+('2014-04-17',201416,4,2014,17,16,201404,2014),
+('2014-04-18',201416,4,2014,18,16,201404,2014),
+('2014-04-19',201416,4,2014,19,16,201404,2014),
+('2014-04-20',201417,4,2014,20,17,201404,2014),
+('2014-04-21',201417,4,2014,21,17,201404,2014),
+('2014-04-22',201417,4,2014,22,17,201404,2014),
+('2014-04-23',201417,4,2014,23,17,201404,2014),
+('2014-04-24',201417,4,2014,24,17,201404,2014),
+('2014-04-25',201417,4,2014,25,17,201404,2014),
+('2014-04-26',201417,4,2014,26,17,201404,2014),
+('2014-04-27',201418,4,2014,27,18,201404,2014),
+('2014-04-28',201418,4,2014,28,18,201404,2014),
+('2014-04-29',201418,4,2014,29,18,201404,2014),
+('2014-04-30',201418,4,2014,30,18,201404,2014),
+('2014-05-01',201418,5,2014,1,18,201405,2014),
+('2014-05-02',201418,5,2014,2,18,201405,2014),
+('2014-05-03',201418,5,2014,3,18,201405,2014),
+('2014-05-04',201419,5,2014,4,19,201405,2014),
+('2014-05-05',201419,5,2014,5,19,201405,2014),
+('2014-05-06',201419,5,2014,6,19,201405,2014),
+('2014-05-07',201419,5,2014,7,19,201405,2014),
+('2014-05-08',201419,5,2014,8,19,201405,2014),
+('2014-05-09',201419,5,2014,9,19,201405,2014),
+('2014-05-10',201419,5,2014,10,19,201405,2014),
+('2014-05-11',201420,5,2014,11,20,201405,2014),
+('2014-05-12',201420,5,2014,12,20,201405,2014),
+('2014-05-13',201420,5,2014,13,20,201405,2014),
+('2014-05-14',201420,5,2014,14,20,201405,2014),
+('2014-05-15',201420,5,2014,15,20,201405,2014),
+('2014-05-16',201420,5,2014,16,20,201405,2014),
+('2014-05-17',201420,5,2014,17,20,201405,2014),
+('2014-05-18',201421,5,2014,18,21,201405,2014),
+('2014-05-19',201421,5,2014,19,21,201405,2014),
+('2014-05-20',201421,5,2014,20,21,201405,2014),
+('2014-05-21',201421,5,2014,21,21,201405,2014),
+('2014-05-22',201421,5,2014,22,21,201405,2014),
+('2014-05-23',201421,5,2014,23,21,201405,2014),
+('2014-05-24',201421,5,2014,24,21,201405,2014),
+('2014-05-25',201422,5,2014,25,22,201405,2014),
+('2014-05-26',201422,5,2014,26,22,201405,2014),
+('2014-05-27',201422,5,2014,27,22,201405,2014),
+('2014-05-28',201422,5,2014,28,22,201405,2014),
+('2014-05-29',201422,5,2014,29,22,201405,2014),
+('2014-05-30',201422,5,2014,30,22,201405,2014),
+('2014-05-31',201422,5,2014,31,22,201405,2014),
+('2014-06-01',201423,6,2014,1,23,201406,2014),
+('2014-06-02',201423,6,2014,2,23,201406,2014),
+('2014-06-03',201423,6,2014,3,23,201406,2014),
+('2014-06-04',201423,6,2014,4,23,201406,2014),
+('2014-06-05',201423,6,2014,5,23,201406,2014),
+('2014-06-06',201423,6,2014,6,23,201406,2014),
+('2014-06-07',201423,6,2014,7,23,201406,2014),
+('2014-06-08',201424,6,2014,8,24,201406,2014),
+('2014-06-09',201424,6,2014,9,24,201406,2014),
+('2014-06-10',201424,6,2014,10,24,201406,2014),
+('2014-06-11',201424,6,2014,11,24,201406,2014),
+('2014-06-12',201424,6,2014,12,24,201406,2014),
+('2014-06-13',201424,6,2014,13,24,201406,2014),
+('2014-06-14',201424,6,2014,14,24,201406,2014),
+('2014-06-15',201425,6,2014,15,25,201406,2014),
+('2014-06-16',201425,6,2014,16,25,201406,2014),
+('2014-06-17',201425,6,2014,17,25,201406,2014),
+('2014-06-18',201425,6,2014,18,25,201406,2014),
+('2014-06-19',201425,6,2014,19,25,201406,2014),
+('2014-06-20',201425,6,2014,20,25,201406,2014),
+('2014-06-21',201425,6,2014,21,25,201406,2014),
+('2014-06-22',201426,6,2014,22,26,201406,2014),
+('2014-06-23',201426,6,2014,23,26,201406,2014),
+('2014-06-24',201426,6,2014,24,26,201406,2014),
+('2014-06-25',201426,6,2014,25,26,201406,2014),
+('2014-06-26',201426,6,2014,26,26,201406,2014),
+('2014-06-27',201426,6,2014,27,26,201406,2014),
+('2014-06-28',201426,6,2014,28,26,201406,2014),
+('2014-06-29',201427,6,2014,29,27,201406,2014),
+('2014-06-30',201427,6,2014,30,27,201406,2014),
+('2014-07-01',201427,7,2014,1,27,201407,2014),
+('2014-07-02',201427,7,2014,2,27,201407,2014),
+('2014-07-03',201427,7,2014,3,27,201407,2014),
+('2014-07-04',201427,7,2014,4,27,201407,2014),
+('2014-07-05',201427,7,2014,5,27,201407,2014),
+('2014-07-06',201428,7,2014,6,28,201407,2014),
+('2014-07-07',201428,7,2014,7,28,201407,2014),
+('2014-07-08',201428,7,2014,8,28,201407,2014),
+('2014-07-09',201428,7,2014,9,28,201407,2014),
+('2014-07-10',201428,7,2014,10,28,201407,2014),
+('2014-07-11',201428,7,2014,11,28,201407,2014),
+('2014-07-12',201428,7,2014,12,28,201407,2014),
+('2014-07-13',201429,7,2014,13,29,201407,2014),
+('2014-07-14',201429,7,2014,14,29,201407,2014),
+('2014-07-15',201429,7,2014,15,29,201407,2014),
+('2014-07-16',201429,7,2014,16,29,201407,2014),
+('2014-07-17',201429,7,2014,17,29,201407,2014),
+('2014-07-18',201429,7,2014,18,29,201407,2014),
+('2014-07-19',201429,7,2014,19,29,201407,2014),
+('2014-07-20',201430,7,2014,20,30,201407,2014),
+('2014-07-21',201430,7,2014,21,30,201407,2014),
+('2014-07-22',201430,7,2014,22,30,201407,2014),
+('2014-07-23',201430,7,2014,23,30,201407,2014),
+('2014-07-24',201430,7,2014,24,30,201407,2014),
+('2014-07-25',201430,7,2014,25,30,201407,2014),
+('2014-07-26',201430,7,2014,26,30,201407,2014),
+('2014-07-27',201431,7,2014,27,31,201407,2014),
+('2014-07-28',201431,7,2014,28,31,201407,2014),
+('2014-07-29',201431,7,2014,29,31,201407,2014),
+('2014-07-30',201431,7,2014,30,31,201407,2014),
+('2014-07-31',201431,7,2014,31,31,201407,2014),
+('2014-08-01',201431,8,2014,1,31,201408,2014),
+('2014-08-02',201431,8,2014,2,31,201408,2014),
+('2014-08-03',201432,8,2014,3,32,201408,2014),
+('2014-08-04',201432,8,2014,4,32,201408,2014),
+('2014-08-05',201432,8,2014,5,32,201408,2014),
+('2014-08-06',201432,8,2014,6,32,201408,2014),
+('2014-08-07',201432,8,2014,7,32,201408,2014),
+('2014-08-08',201432,8,2014,8,32,201408,2014),
+('2014-08-09',201432,8,2014,9,32,201408,2014),
+('2014-08-10',201433,8,2014,10,33,201408,2014),
+('2014-08-11',201433,8,2014,11,33,201408,2014),
+('2014-08-12',201433,8,2014,12,33,201408,2014),
+('2014-08-13',201433,8,2014,13,33,201408,2014),
+('2014-08-14',201433,8,2014,14,33,201408,2014),
+('2014-08-15',201433,8,2014,15,33,201408,2014),
+('2014-08-16',201433,8,2014,16,33,201408,2014),
+('2014-08-17',201434,8,2014,17,34,201408,2014),
+('2014-08-18',201434,8,2014,18,34,201408,2014),
+('2014-08-19',201434,8,2014,19,34,201408,2014),
+('2014-08-20',201434,8,2014,20,34,201408,2014),
+('2014-08-21',201434,8,2014,21,34,201408,2014),
+('2014-08-22',201434,8,2014,22,34,201408,2014),
+('2014-08-23',201434,8,2014,23,34,201408,2014),
+('2014-08-24',201435,8,2014,24,35,201408,2014),
+('2014-08-25',201435,8,2014,25,35,201408,2014),
+('2014-08-26',201435,8,2014,26,35,201408,2014),
+('2014-08-27',201435,8,2014,27,35,201408,2014),
+('2014-08-28',201435,8,2014,28,35,201408,2014),
+('2014-08-29',201435,8,2014,29,35,201408,2014),
+('2014-08-30',201435,8,2014,30,35,201408,2014),
+('2014-08-31',201436,8,2014,31,36,201408,2014),
+('2014-09-01',201436,9,2014,1,36,201409,2014),
+('2014-09-02',201436,9,2014,2,36,201409,2014),
+('2014-09-03',201436,9,2014,3,36,201409,2014),
+('2014-09-04',201436,9,2014,4,36,201409,2014),
+('2014-09-05',201436,9,2014,5,36,201409,2014),
+('2014-09-06',201436,9,2014,6,36,201409,2014),
+('2014-09-07',201437,9,2014,7,37,201409,2014),
+('2014-09-08',201437,9,2014,8,37,201409,2014),
+('2014-09-09',201437,9,2014,9,37,201409,2014),
+('2014-09-10',201437,9,2014,10,37,201409,2014),
+('2014-09-11',201437,9,2014,11,37,201409,2014),
+('2014-09-12',201437,9,2014,12,37,201409,2014),
+('2014-09-13',201437,9,2014,13,37,201409,2014),
+('2014-09-14',201438,9,2014,14,38,201409,2014),
+('2014-09-15',201438,9,2014,15,38,201409,2014),
+('2014-09-16',201438,9,2014,16,38,201409,2014),
+('2014-09-17',201438,9,2014,17,38,201409,2014),
+('2014-09-18',201438,9,2014,18,38,201409,2014),
+('2014-09-19',201438,9,2014,19,38,201409,2014),
+('2014-09-20',201438,9,2014,20,38,201409,2014),
+('2014-09-21',201439,9,2014,21,39,201409,2014),
+('2014-09-22',201439,9,2014,22,39,201409,2014),
+('2014-09-23',201439,9,2014,23,39,201409,2014),
+('2014-09-24',201439,9,2014,24,39,201409,2014),
+('2014-09-25',201439,9,2014,25,39,201409,2014),
+('2014-09-26',201439,9,2014,26,39,201409,2014),
+('2014-09-27',201439,9,2014,27,39,201409,2014),
+('2014-09-28',201440,9,2014,28,40,201409,2014),
+('2014-09-29',201440,9,2014,29,40,201409,2014),
+('2014-09-30',201440,9,2014,30,40,201409,2014),
+('2014-10-01',201440,10,2014,1,40,201410,2014),
+('2014-10-02',201440,10,2014,2,40,201410,2014),
+('2014-10-03',201440,10,2014,3,40,201410,2014),
+('2014-10-04',201440,10,2014,4,40,201410,2014),
+('2014-10-05',201441,10,2014,5,41,201410,2014),
+('2014-10-06',201441,10,2014,6,41,201410,2014),
+('2014-10-07',201441,10,2014,7,41,201410,2014),
+('2014-10-08',201441,10,2014,8,41,201410,2014),
+('2014-10-09',201441,10,2014,9,41,201410,2014),
+('2014-10-10',201441,10,2014,10,41,201410,2014),
+('2014-10-11',201441,10,2014,11,41,201410,2014),
+('2014-10-12',201442,10,2014,12,42,201410,2014),
+('2014-10-13',201442,10,2014,13,42,201410,2014),
+('2014-10-14',201442,10,2014,14,42,201410,2014),
+('2014-10-15',201442,10,2014,15,42,201410,2014),
+('2014-10-16',201442,10,2014,16,42,201410,2014),
+('2014-10-17',201442,10,2014,17,42,201410,2014),
+('2014-10-18',201442,10,2014,18,42,201410,2014),
+('2014-10-19',201443,10,2014,19,43,201410,2014),
+('2014-10-20',201443,10,2014,20,43,201410,2014),
+('2014-10-21',201443,10,2014,21,43,201410,2014),
+('2014-10-22',201443,10,2014,22,43,201410,2014),
+('2014-10-23',201443,10,2014,23,43,201410,2014),
+('2014-10-24',201443,10,2014,24,43,201410,2014),
+('2014-10-25',201443,10,2014,25,43,201410,2014),
+('2014-10-26',201444,10,2014,26,44,201410,2014),
+('2014-10-27',201444,10,2014,27,44,201410,2014),
+('2014-10-28',201444,10,2014,28,44,201410,2014),
+('2014-10-29',201444,10,2014,29,44,201410,2014),
+('2014-10-30',201444,10,2014,30,44,201410,2014),
+('2014-10-31',201444,10,2014,31,44,201410,2014),
+('2014-11-01',201444,11,2014,1,44,201411,2014),
+('2014-11-02',201445,11,2014,2,45,201411,2014),
+('2014-11-03',201445,11,2014,3,45,201411,2014),
+('2014-11-04',201445,11,2014,4,45,201411,2014),
+('2014-11-05',201445,11,2014,5,45,201411,2014),
+('2014-11-06',201445,11,2014,6,45,201411,2014),
+('2014-11-07',201445,11,2014,7,45,201411,2014),
+('2014-11-08',201445,11,2014,8,45,201411,2014),
+('2014-11-09',201446,11,2014,9,46,201411,2014),
+('2014-11-10',201446,11,2014,10,46,201411,2014),
+('2014-11-11',201446,11,2014,11,46,201411,2014),
+('2014-11-12',201446,11,2014,12,46,201411,2014),
+('2014-11-13',201446,11,2014,13,46,201411,2014),
+('2014-11-14',201446,11,2014,14,46,201411,2014),
+('2014-11-15',201446,11,2014,15,46,201411,2014),
+('2014-11-16',201447,11,2014,16,47,201411,2014),
+('2014-11-17',201447,11,2014,17,47,201411,2014),
+('2014-11-18',201447,11,2014,18,47,201411,2014),
+('2014-11-19',201447,11,2014,19,47,201411,2014),
+('2014-11-20',201447,11,2014,20,47,201411,2014),
+('2014-11-21',201447,11,2014,21,47,201411,2014),
+('2014-11-22',201447,11,2014,22,47,201411,2014),
+('2014-11-23',201448,11,2014,23,48,201411,2014),
+('2014-11-24',201448,11,2014,24,48,201411,2014),
+('2014-11-25',201448,11,2014,25,48,201411,2014),
+('2014-11-26',201448,11,2014,26,48,201411,2014),
+('2014-11-27',201448,11,2014,27,48,201411,2014),
+('2014-11-28',201448,11,2014,28,48,201411,2014),
+('2014-11-29',201448,11,2014,29,48,201411,2014),
+('2014-11-30',201449,11,2014,30,49,201411,2014),
+('2014-12-01',201449,12,2014,1,49,201412,2015),
+('2014-12-02',201449,12,2014,2,49,201412,2015),
+('2014-12-03',201449,12,2014,3,49,201412,2015),
+('2014-12-04',201449,12,2014,4,49,201412,2015),
+('2014-12-05',201449,12,2014,5,49,201412,2015),
+('2014-12-06',201449,12,2014,6,49,201412,2015),
+('2014-12-07',201450,12,2014,7,50,201412,2015),
+('2014-12-08',201450,12,2014,8,50,201412,2015),
+('2014-12-09',201450,12,2014,9,50,201412,2015),
+('2014-12-10',201450,12,2014,10,50,201412,2015),
+('2014-12-11',201450,12,2014,11,50,201412,2015),
+('2014-12-12',201450,12,2014,12,50,201412,2015),
+('2014-12-13',201450,12,2014,13,50,201412,2015),
+('2014-12-14',201451,12,2014,14,51,201412,2015),
+('2014-12-15',201451,12,2014,15,51,201412,2015),
+('2014-12-16',201451,12,2014,16,51,201412,2015),
+('2014-12-17',201451,12,2014,17,51,201412,2015),
+('2014-12-18',201451,12,2014,18,51,201412,2015),
+('2014-12-19',201451,12,2014,19,51,201412,2015),
+('2014-12-20',201451,12,2014,20,51,201412,2015),
+('2014-12-21',201452,12,2014,21,52,201412,2015),
+('2014-12-22',201452,12,2014,22,52,201412,2015),
+('2014-12-23',201452,12,2014,23,52,201412,2015),
+('2014-12-24',201452,12,2014,24,52,201412,2015),
+('2014-12-25',201452,12,2014,25,52,201412,2015),
+('2014-12-26',201452,12,2014,26,52,201412,2015),
+('2014-12-27',201452,12,2014,27,52,201412,2015),
+('2014-12-28',201453,12,2014,28,53,201412,2015),
+('2014-12-29',201453,12,2014,29,53,201412,2015),
+('2014-12-30',201453,12,2014,30,53,201412,2015),
+('2014-12-31',201453,12,2014,31,53,201412,2015),
+('2015-01-01',201453,1,2015,1,53,201501,2015),
+('2015-01-02',201453,1,2015,2,53,201501,2015),
+('2015-01-03',201453,1,2015,3,53,201501,2015),
+('2015-01-04',201501,1,2015,4,1,201501,2015),
+('2015-01-05',201501,1,2015,5,1,201501,2015),
+('2015-01-06',201501,1,2015,6,1,201501,2015),
+('2015-01-07',201501,1,2015,7,1,201501,2015),
+('2015-01-08',201501,1,2015,8,1,201501,2015),
+('2015-01-09',201501,1,2015,9,1,201501,2015),
+('2015-01-10',201501,1,2015,10,1,201501,2015),
+('2015-01-11',201502,1,2015,11,2,201501,2015),
+('2015-01-12',201502,1,2015,12,2,201501,2015),
+('2015-01-13',201502,1,2015,13,2,201501,2015),
+('2015-01-14',201502,1,2015,14,2,201501,2015),
+('2015-01-15',201502,1,2015,15,2,201501,2015),
+('2015-01-16',201502,1,2015,16,2,201501,2015),
+('2015-01-17',201502,1,2015,17,2,201501,2015),
+('2015-01-18',201503,1,2015,18,3,201501,2015),
+('2015-01-19',201503,1,2015,19,3,201501,2015),
+('2015-01-20',201503,1,2015,20,3,201501,2015),
+('2015-01-21',201503,1,2015,21,3,201501,2015),
+('2015-01-22',201503,1,2015,22,3,201501,2015),
+('2015-01-23',201503,1,2015,23,3,201501,2015),
+('2015-01-24',201503,1,2015,24,3,201501,2015),
+('2015-01-25',201504,1,2015,25,4,201501,2015),
+('2015-01-26',201504,1,2015,26,4,201501,2015),
+('2015-01-27',201504,1,2015,27,4,201501,2015),
+('2015-01-28',201504,1,2015,28,4,201501,2015),
+('2015-01-29',201504,1,2015,29,4,201501,2015),
+('2015-01-30',201504,1,2015,30,4,201501,2015),
+('2015-01-31',201504,1,2015,31,4,201501,2015),
+('2015-02-01',201505,2,2015,1,5,201502,2015),
+('2015-02-02',201505,2,2015,2,5,201502,2015),
+('2015-02-03',201505,2,2015,3,5,201502,2015),
+('2015-02-04',201505,2,2015,4,5,201502,2015),
+('2015-02-05',201505,2,2015,5,5,201502,2015),
+('2015-02-06',201505,2,2015,6,5,201502,2015),
+('2015-02-07',201505,2,2015,7,5,201502,2015),
+('2015-02-08',201506,2,2015,8,6,201502,2015),
+('2015-02-09',201506,2,2015,9,6,201502,2015),
+('2015-02-10',201506,2,2015,10,6,201502,2015),
+('2015-02-11',201506,2,2015,11,6,201502,2015),
+('2015-02-12',201506,2,2015,12,6,201502,2015),
+('2015-02-13',201506,2,2015,13,6,201502,2015),
+('2015-02-14',201506,2,2015,14,6,201502,2015),
+('2015-02-15',201507,2,2015,15,7,201502,2015),
+('2015-02-16',201507,2,2015,16,7,201502,2015),
+('2015-02-17',201507,2,2015,17,7,201502,2015),
+('2015-02-18',201507,2,2015,18,7,201502,2015),
+('2015-02-19',201507,2,2015,19,7,201502,2015),
+('2015-02-20',201507,2,2015,20,7,201502,2015),
+('2015-02-21',201507,2,2015,21,7,201502,2015),
+('2015-02-22',201508,2,2015,22,8,201502,2015),
+('2015-02-23',201508,2,2015,23,8,201502,2015),
+('2015-02-24',201508,2,2015,24,8,201502,2015),
+('2015-02-25',201508,2,2015,25,8,201502,2015),
+('2015-02-26',201508,2,2015,26,8,201502,2015),
+('2015-02-27',201508,2,2015,27,8,201502,2015),
+('2015-02-28',201508,2,2015,28,8,201502,2015),
+('2015-03-01',201509,3,2015,1,9,201503,2015),
+('2015-03-02',201509,3,2015,2,9,201503,2015),
+('2015-03-03',201509,3,2015,3,9,201503,2015),
+('2015-03-04',201509,3,2015,4,9,201503,2015),
+('2015-03-05',201509,3,2015,5,9,201503,2015),
+('2015-03-06',201509,3,2015,6,9,201503,2015),
+('2015-03-07',201509,3,2015,7,9,201503,2015),
+('2015-03-08',201510,3,2015,8,10,201503,2015),
+('2015-03-09',201510,3,2015,9,10,201503,2015),
+('2015-03-10',201510,3,2015,10,10,201503,2015),
+('2015-03-11',201510,3,2015,11,10,201503,2015),
+('2015-03-12',201510,3,2015,12,10,201503,2015),
+('2015-03-13',201510,3,2015,13,10,201503,2015),
+('2015-03-14',201510,3,2015,14,10,201503,2015),
+('2015-03-15',201511,3,2015,15,11,201503,2015),
+('2015-03-16',201511,3,2015,16,11,201503,2015),
+('2015-03-17',201511,3,2015,17,11,201503,2015),
+('2015-03-18',201511,3,2015,18,11,201503,2015),
+('2015-03-19',201511,3,2015,19,11,201503,2015),
+('2015-03-20',201511,3,2015,20,11,201503,2015),
+('2015-03-21',201511,3,2015,21,11,201503,2015),
+('2015-03-22',201512,3,2015,22,12,201503,2015),
+('2015-03-23',201512,3,2015,23,12,201503,2015),
+('2015-03-24',201512,3,2015,24,12,201503,2015),
+('2015-03-25',201512,3,2015,25,12,201503,2015),
+('2015-03-26',201512,3,2015,26,12,201503,2015),
+('2015-03-27',201512,3,2015,27,12,201503,2015),
+('2015-03-28',201512,3,2015,28,12,201503,2015),
+('2015-03-29',201513,3,2015,29,13,201503,2015),
+('2015-03-30',201513,3,2015,30,13,201503,2015),
+('2015-03-31',201513,3,2015,31,13,201503,2015),
+('2015-04-01',201513,4,2015,1,13,201504,2015),
+('2015-04-02',201513,4,2015,2,13,201504,2015),
+('2015-04-03',201513,4,2015,3,13,201504,2015),
+('2015-04-04',201513,4,2015,4,13,201504,2015),
+('2015-04-05',201514,4,2015,5,14,201504,2015),
+('2015-04-06',201514,4,2015,6,14,201504,2015),
+('2015-04-07',201514,4,2015,7,14,201504,2015),
+('2015-04-08',201514,4,2015,8,14,201504,2015),
+('2015-04-09',201514,4,2015,9,14,201504,2015),
+('2015-04-10',201514,4,2015,10,14,201504,2015),
+('2015-04-11',201514,4,2015,11,14,201504,2015),
+('2015-04-12',201515,4,2015,12,15,201504,2015),
+('2015-04-13',201515,4,2015,13,15,201504,2015),
+('2015-04-14',201515,4,2015,14,15,201504,2015),
+('2015-04-15',201515,4,2015,15,15,201504,2015),
+('2015-04-16',201515,4,2015,16,15,201504,2015),
+('2015-04-17',201515,4,2015,17,15,201504,2015),
+('2015-04-18',201515,4,2015,18,15,201504,2015),
+('2015-04-19',201516,4,2015,19,16,201504,2015),
+('2015-04-20',201516,4,2015,20,16,201504,2015),
+('2015-04-21',201516,4,2015,21,16,201504,2015),
+('2015-04-22',201516,4,2015,22,16,201504,2015),
+('2015-04-23',201516,4,2015,23,16,201504,2015),
+('2015-04-24',201516,4,2015,24,16,201504,2015),
+('2015-04-25',201516,4,2015,25,16,201504,2015),
+('2015-04-26',201517,4,2015,26,17,201504,2015),
+('2015-04-27',201517,4,2015,27,17,201504,2015),
+('2015-04-28',201517,4,2015,28,17,201504,2015),
+('2015-04-29',201517,4,2015,29,17,201504,2015),
+('2015-04-30',201517,4,2015,30,17,201504,2015),
+('2015-05-01',201517,5,2015,1,17,201505,2015),
+('2015-05-02',201517,5,2015,2,17,201505,2015),
+('2015-05-03',201518,5,2015,3,18,201505,2015),
+('2015-05-04',201518,5,2015,4,18,201505,2015),
+('2015-05-05',201518,5,2015,5,18,201505,2015),
+('2015-05-06',201518,5,2015,6,18,201505,2015),
+('2015-05-07',201518,5,2015,7,18,201505,2015),
+('2015-05-08',201518,5,2015,8,18,201505,2015),
+('2015-05-09',201518,5,2015,9,18,201505,2015),
+('2015-05-10',201519,5,2015,10,19,201505,2015),
+('2015-05-11',201519,5,2015,11,19,201505,2015),
+('2015-05-12',201519,5,2015,12,19,201505,2015),
+('2015-05-13',201519,5,2015,13,19,201505,2015),
+('2015-05-14',201519,5,2015,14,19,201505,2015),
+('2015-05-15',201519,5,2015,15,19,201505,2015),
+('2015-05-16',201519,5,2015,16,19,201505,2015),
+('2015-05-17',201520,5,2015,17,20,201505,2015),
+('2015-05-18',201520,5,2015,18,20,201505,2015),
+('2015-05-19',201520,5,2015,19,20,201505,2015),
+('2015-05-20',201520,5,2015,20,20,201505,2015),
+('2015-05-21',201520,5,2015,21,20,201505,2015),
+('2015-05-22',201520,5,2015,22,20,201505,2015),
+('2015-05-23',201520,5,2015,23,20,201505,2015),
+('2015-05-24',201521,5,2015,24,21,201505,2015),
+('2015-05-25',201521,5,2015,25,21,201505,2015),
+('2015-05-26',201521,5,2015,26,21,201505,2015),
+('2015-05-27',201521,5,2015,27,21,201505,2015),
+('2015-05-28',201521,5,2015,28,21,201505,2015),
+('2015-05-29',201521,5,2015,29,21,201505,2015),
+('2015-05-30',201521,5,2015,30,21,201505,2015),
+('2015-05-31',201522,5,2015,31,22,201505,2015),
+('2015-06-01',201522,6,2015,1,22,201506,2015),
+('2015-06-02',201522,6,2015,2,22,201506,2015),
+('2015-06-03',201522,6,2015,3,22,201506,2015),
+('2015-06-04',201522,6,2015,4,22,201506,2015),
+('2015-06-05',201522,6,2015,5,22,201506,2015),
+('2015-06-06',201522,6,2015,6,22,201506,2015),
+('2015-06-07',201523,6,2015,7,23,201506,2015),
+('2015-06-08',201523,6,2015,8,23,201506,2015),
+('2015-06-09',201523,6,2015,9,23,201506,2015),
+('2015-06-10',201523,6,2015,10,23,201506,2015),
+('2015-06-11',201523,6,2015,11,23,201506,2015),
+('2015-06-12',201523,6,2015,12,23,201506,2015),
+('2015-06-13',201523,6,2015,13,23,201506,2015),
+('2015-06-14',201524,6,2015,14,24,201506,2015),
+('2015-06-15',201524,6,2015,15,24,201506,2015),
+('2015-06-16',201524,6,2015,16,24,201506,2015),
+('2015-06-17',201524,6,2015,17,24,201506,2015),
+('2015-06-18',201524,6,2015,18,24,201506,2015),
+('2015-06-19',201524,6,2015,19,24,201506,2015),
+('2015-06-20',201524,6,2015,20,24,201506,2015),
+('2015-06-21',201525,6,2015,21,25,201506,2015),
+('2015-06-22',201525,6,2015,22,25,201506,2015),
+('2015-06-23',201525,6,2015,23,25,201506,2015),
+('2015-06-24',201525,6,2015,24,25,201506,2015),
+('2015-06-25',201525,6,2015,25,25,201506,2015),
+('2015-06-26',201525,6,2015,26,25,201506,2015),
+('2015-06-27',201525,6,2015,27,25,201506,2015),
+('2015-06-28',201526,6,2015,28,26,201506,2015),
+('2015-06-29',201526,6,2015,29,26,201506,2015),
+('2015-06-30',201526,6,2015,30,26,201506,2015),
+('2015-07-01',201526,7,2015,1,26,201507,2015),
+('2015-07-02',201526,7,2015,2,26,201507,2015),
+('2015-07-03',201526,7,2015,3,26,201507,2015),
+('2015-07-04',201526,7,2015,4,26,201507,2015),
+('2015-07-05',201527,7,2015,5,27,201507,2015),
+('2015-07-06',201527,7,2015,6,27,201507,2015),
+('2015-07-07',201527,7,2015,7,27,201507,2015),
+('2015-07-08',201527,7,2015,8,27,201507,2015),
+('2015-07-09',201527,7,2015,9,27,201507,2015),
+('2015-07-10',201527,7,2015,10,27,201507,2015),
+('2015-07-11',201527,7,2015,11,27,201507,2015),
+('2015-07-12',201528,7,2015,12,28,201507,2015),
+('2015-07-13',201528,7,2015,13,28,201507,2015),
+('2015-07-14',201528,7,2015,14,28,201507,2015),
+('2015-07-15',201528,7,2015,15,28,201507,2015),
+('2015-07-16',201528,7,2015,16,28,201507,2015),
+('2015-07-17',201528,7,2015,17,28,201507,2015),
+('2015-07-18',201528,7,2015,18,28,201507,2015),
+('2015-07-19',201529,7,2015,19,29,201507,2015),
+('2015-07-20',201529,7,2015,20,29,201507,2015),
+('2015-07-21',201529,7,2015,21,29,201507,2015),
+('2015-07-22',201529,7,2015,22,29,201507,2015),
+('2015-07-23',201529,7,2015,23,29,201507,2015),
+('2015-07-24',201529,7,2015,24,29,201507,2015),
+('2015-07-25',201529,7,2015,25,29,201507,2015),
+('2015-07-26',201530,7,2015,26,30,201507,2015),
+('2015-07-27',201530,7,2015,27,30,201507,2015),
+('2015-07-28',201530,7,2015,28,30,201507,2015),
+('2015-07-29',201530,7,2015,29,30,201507,2015),
+('2015-07-30',201530,7,2015,30,30,201507,2015),
+('2015-07-31',201530,7,2015,31,30,201507,2015),
+('2015-08-01',201530,8,2015,1,30,201508,2015),
+('2015-08-02',201531,8,2015,2,31,201508,2015),
+('2015-08-03',201531,8,2015,3,31,201508,2015),
+('2015-08-04',201531,8,2015,4,31,201508,2015),
+('2015-08-05',201531,8,2015,5,31,201508,2015),
+('2015-08-06',201531,8,2015,6,31,201508,2015),
+('2015-08-07',201531,8,2015,7,31,201508,2015),
+('2015-08-08',201531,8,2015,8,31,201508,2015),
+('2015-08-09',201532,8,2015,9,32,201508,2015),
+('2015-08-10',201532,8,2015,10,32,201508,2015),
+('2015-08-11',201532,8,2015,11,32,201508,2015),
+('2015-08-12',201532,8,2015,12,32,201508,2015),
+('2015-08-13',201532,8,2015,13,32,201508,2015),
+('2015-08-14',201532,8,2015,14,32,201508,2015),
+('2015-08-15',201532,8,2015,15,32,201508,2015),
+('2015-08-16',201533,8,2015,16,33,201508,2015),
+('2015-08-17',201533,8,2015,17,33,201508,2015),
+('2015-08-18',201533,8,2015,18,33,201508,2015),
+('2015-08-19',201533,8,2015,19,33,201508,2015),
+('2015-08-20',201533,8,2015,20,33,201508,2015),
+('2015-08-21',201533,8,2015,21,33,201508,2015),
+('2015-08-22',201533,8,2015,22,33,201508,2015),
+('2015-08-23',201534,8,2015,23,34,201508,2015),
+('2015-08-24',201534,8,2015,24,34,201508,2015),
+('2015-08-25',201534,8,2015,25,34,201508,2015),
+('2015-08-26',201534,8,2015,26,34,201508,2015),
+('2015-08-27',201534,8,2015,27,34,201508,2015),
+('2015-08-28',201534,8,2015,28,34,201508,2015),
+('2015-08-29',201534,8,2015,29,34,201508,2015),
+('2015-08-30',201535,8,2015,30,35,201508,2015),
+('2015-08-31',201535,8,2015,31,35,201508,2015),
+('2015-09-01',201535,9,2015,1,35,201509,2015),
+('2015-09-02',201535,9,2015,2,35,201509,2015),
+('2015-09-03',201535,9,2015,3,35,201509,2015),
+('2015-09-04',201535,9,2015,4,35,201509,2015),
+('2015-09-05',201535,9,2015,5,35,201509,2015),
+('2015-09-06',201536,9,2015,6,36,201509,2015),
+('2015-09-07',201536,9,2015,7,36,201509,2015),
+('2015-09-08',201536,9,2015,8,36,201509,2015),
+('2015-09-09',201536,9,2015,9,36,201509,2015),
+('2015-09-10',201536,9,2015,10,36,201509,2015),
+('2015-09-11',201536,9,2015,11,36,201509,2015),
+('2015-09-12',201536,9,2015,12,36,201509,2015),
+('2015-09-13',201537,9,2015,13,37,201509,2015),
+('2015-09-14',201537,9,2015,14,37,201509,2015),
+('2015-09-15',201537,9,2015,15,37,201509,2015),
+('2015-09-16',201537,9,2015,16,37,201509,2015),
+('2015-09-17',201537,9,2015,17,37,201509,2015),
+('2015-09-18',201537,9,2015,18,37,201509,2015),
+('2015-09-19',201537,9,2015,19,37,201509,2015),
+('2015-09-20',201538,9,2015,20,38,201509,2015),
+('2015-09-21',201538,9,2015,21,38,201509,2015),
+('2015-09-22',201538,9,2015,22,38,201509,2015),
+('2015-09-23',201538,9,2015,23,38,201509,2015),
+('2015-09-24',201538,9,2015,24,38,201509,2015),
+('2015-09-25',201538,9,2015,25,38,201509,2015),
+('2015-09-26',201538,9,2015,26,38,201509,2015),
+('2015-09-27',201539,9,2015,27,39,201509,2015),
+('2015-09-28',201539,9,2015,28,39,201509,2015),
+('2015-09-29',201539,9,2015,29,39,201509,2015),
+('2015-09-30',201539,9,2015,30,39,201509,2015),
+('2015-10-01',201539,10,2015,1,39,201510,2015),
+('2015-10-02',201539,10,2015,2,39,201510,2015),
+('2015-10-03',201539,10,2015,3,39,201510,2015),
+('2015-10-04',201540,10,2015,4,40,201510,2015),
+('2015-10-05',201540,10,2015,5,40,201510,2015),
+('2015-10-06',201540,10,2015,6,40,201510,2015),
+('2015-10-07',201540,10,2015,7,40,201510,2015),
+('2015-10-08',201540,10,2015,8,40,201510,2015),
+('2015-10-09',201540,10,2015,9,40,201510,2015),
+('2015-10-10',201540,10,2015,10,40,201510,2015),
+('2015-10-11',201541,10,2015,11,41,201510,2015),
+('2015-10-12',201541,10,2015,12,41,201510,2015),
+('2015-10-13',201541,10,2015,13,41,201510,2015),
+('2015-10-14',201541,10,2015,14,41,201510,2015),
+('2015-10-15',201541,10,2015,15,41,201510,2015),
+('2015-10-16',201541,10,2015,16,41,201510,2015),
+('2015-10-17',201541,10,2015,17,41,201510,2015),
+('2015-10-18',201542,10,2015,18,42,201510,2015),
+('2015-10-19',201542,10,2015,19,42,201510,2015),
+('2015-10-20',201542,10,2015,20,42,201510,2015),
+('2015-10-21',201542,10,2015,21,42,201510,2015),
+('2015-10-22',201542,10,2015,22,42,201510,2015),
+('2015-10-23',201542,10,2015,23,42,201510,2015),
+('2015-10-24',201542,10,2015,24,42,201510,2015),
+('2015-10-25',201543,10,2015,25,43,201510,2015),
+('2015-10-26',201543,10,2015,26,43,201510,2015),
+('2015-10-27',201543,10,2015,27,43,201510,2015),
+('2015-10-28',201543,10,2015,28,43,201510,2015),
+('2015-10-29',201543,10,2015,29,43,201510,2015),
+('2015-10-30',201543,10,2015,30,43,201510,2015),
+('2015-10-31',201543,10,2015,31,43,201510,2015),
+('2015-11-01',201544,11,2015,1,44,201511,2015),
+('2015-11-02',201544,11,2015,2,44,201511,2015),
+('2015-11-03',201544,11,2015,3,44,201511,2015),
+('2015-11-04',201544,11,2015,4,44,201511,2015),
+('2015-11-05',201544,11,2015,5,44,201511,2015),
+('2015-11-06',201544,11,2015,6,44,201511,2015),
+('2015-11-07',201544,11,2015,7,44,201511,2015),
+('2015-11-08',201545,11,2015,8,45,201511,2015),
+('2015-11-09',201545,11,2015,9,45,201511,2015),
+('2015-11-10',201545,11,2015,10,45,201511,2015),
+('2015-11-11',201545,11,2015,11,45,201511,2015),
+('2015-11-12',201545,11,2015,12,45,201511,2015),
+('2015-11-13',201545,11,2015,13,45,201511,2015),
+('2015-11-14',201545,11,2015,14,45,201511,2015),
+('2015-11-15',201546,11,2015,15,46,201511,2015),
+('2015-11-16',201546,11,2015,16,46,201511,2015),
+('2015-11-17',201546,11,2015,17,46,201511,2015),
+('2015-11-18',201546,11,2015,18,46,201511,2015),
+('2015-11-19',201546,11,2015,19,46,201511,2015),
+('2015-11-20',201546,11,2015,20,46,201511,2015),
+('2015-11-21',201546,11,2015,21,46,201511,2015),
+('2015-11-22',201547,11,2015,22,47,201511,2015),
+('2015-11-23',201547,11,2015,23,47,201511,2015),
+('2015-11-24',201547,11,2015,24,47,201511,2015),
+('2015-11-25',201547,11,2015,25,47,201511,2015),
+('2015-11-26',201547,11,2015,26,47,201511,2015),
+('2015-11-27',201547,11,2015,27,47,201511,2015),
+('2015-11-28',201547,11,2015,28,47,201511,2015),
+('2015-11-29',201548,11,2015,29,48,201511,2015),
+('2015-11-30',201548,11,2015,30,48,201511,2015),
+('2015-12-01',201548,12,2015,1,48,201512,2016),
+('2015-12-02',201548,12,2015,2,48,201512,2016),
+('2015-12-03',201548,12,2015,3,48,201512,2016),
+('2015-12-04',201548,12,2015,4,48,201512,2016),
+('2015-12-05',201548,12,2015,5,48,201512,2016),
+('2015-12-06',201549,12,2015,6,49,201512,2016),
+('2015-12-07',201549,12,2015,7,49,201512,2016),
+('2015-12-08',201549,12,2015,8,49,201512,2016),
+('2015-12-09',201549,12,2015,9,49,201512,2016),
+('2015-12-10',201549,12,2015,10,49,201512,2016),
+('2015-12-11',201549,12,2015,11,49,201512,2016),
+('2015-12-12',201549,12,2015,12,49,201512,2016),
+('2015-12-13',201550,12,2015,13,50,201512,2016),
+('2015-12-14',201550,12,2015,14,50,201512,2016),
+('2015-12-15',201550,12,2015,15,50,201512,2016),
+('2015-12-16',201550,12,2015,16,50,201512,2016),
+('2015-12-17',201550,12,2015,17,50,201512,2016),
+('2015-12-18',201550,12,2015,18,50,201512,2016),
+('2015-12-19',201550,12,2015,19,50,201512,2016),
+('2015-12-20',201551,12,2015,20,51,201512,2016),
+('2015-12-21',201551,12,2015,21,51,201512,2016),
+('2015-12-22',201551,12,2015,22,51,201512,2016),
+('2015-12-23',201551,12,2015,23,51,201512,2016),
+('2015-12-24',201551,12,2015,24,51,201512,2016),
+('2015-12-25',201551,12,2015,25,51,201512,2016),
+('2015-12-26',201551,12,2015,26,51,201512,2016),
+('2015-12-27',201552,12,2015,27,52,201512,2016),
+('2015-12-28',201552,12,2015,28,52,201512,2016),
+('2015-12-29',201552,12,2015,29,52,201512,2016),
+('2015-12-30',201552,12,2015,30,52,201512,2016),
+('2015-12-31',201552,12,2015,31,52,201512,2016),
+('2016-01-01',201552,1,2016,1,1,201601,2016),
+('2016-01-02',201552,1,2016,2,1,201601,2016),
+('2016-01-03',201601,1,2016,3,1,201601,2016),
+('2016-01-04',201601,1,2016,4,1,201601,2016),
+('2016-01-05',201601,1,2016,5,1,201601,2016),
+('2016-01-06',201601,1,2016,6,1,201601,2016),
+('2016-01-07',201601,1,2016,7,1,201601,2016),
+('2016-01-08',201601,1,2016,8,1,201601,2016),
+('2016-01-09',201601,1,2016,9,1,201601,2016),
+('2016-01-10',201602,1,2016,10,2,201601,2016),
+('2016-01-11',201602,1,2016,11,2,201601,2016),
+('2016-01-12',201602,1,2016,12,2,201601,2016),
+('2016-01-13',201602,1,2016,13,2,201601,2016),
+('2016-01-14',201602,1,2016,14,2,201601,2016),
+('2016-01-15',201602,1,2016,15,2,201601,2016),
+('2016-01-16',201602,1,2016,16,2,201601,2016),
+('2016-01-17',201603,1,2016,17,3,201601,2016),
+('2016-01-18',201603,1,2016,18,3,201601,2016),
+('2016-01-19',201603,1,2016,19,3,201601,2016),
+('2016-01-20',201603,1,2016,20,3,201601,2016),
+('2016-01-21',201603,1,2016,21,3,201601,2016),
+('2016-01-22',201603,1,2016,22,3,201601,2016),
+('2016-01-23',201603,1,2016,23,3,201601,2016),
+('2016-01-24',201604,1,2016,24,4,201601,2016),
+('2016-01-25',201604,1,2016,25,4,201601,2016),
+('2016-01-26',201604,1,2016,26,4,201601,2016),
+('2016-01-27',201604,1,2016,27,4,201601,2016),
+('2016-01-28',201604,1,2016,28,4,201601,2016),
+('2016-01-29',201604,1,2016,29,4,201601,2016),
+('2016-01-30',201604,1,2016,30,4,201601,2016),
+('2016-01-31',201605,1,2016,31,5,201601,2016),
+('2016-02-01',201605,2,2016,1,5,201602,2016),
+('2016-02-02',201605,2,2016,2,5,201602,2016),
+('2016-02-03',201605,2,2016,3,5,201602,2016),
+('2016-02-04',201605,2,2016,4,5,201602,2016),
+('2016-02-05',201605,2,2016,5,5,201602,2016),
+('2016-02-06',201605,2,2016,6,5,201602,2016),
+('2016-02-07',201606,2,2016,7,6,201602,2016),
+('2016-02-08',201606,2,2016,8,6,201602,2016),
+('2016-02-09',201606,2,2016,9,6,201602,2016),
+('2016-02-10',201606,2,2016,10,6,201602,2016),
+('2016-02-11',201606,2,2016,11,6,201602,2016),
+('2016-02-12',201606,2,2016,12,6,201602,2016),
+('2016-02-13',201606,2,2016,13,6,201602,2016),
+('2016-02-14',201607,2,2016,14,7,201602,2016),
+('2016-02-15',201607,2,2016,15,7,201602,2016),
+('2016-02-16',201607,2,2016,16,7,201602,2016),
+('2016-02-17',201607,2,2016,17,7,201602,2016),
+('2016-02-18',201607,2,2016,18,7,201602,2016),
+('2016-02-19',201607,2,2016,19,7,201602,2016),
+('2016-02-20',201607,2,2016,20,7,201602,2016),
+('2016-02-21',201608,2,2016,21,8,201602,2016),
+('2016-02-22',201608,2,2016,22,8,201602,2016),
+('2016-02-23',201608,2,2016,23,8,201602,2016),
+('2016-02-24',201608,2,2016,24,8,201602,2016),
+('2016-02-25',201608,2,2016,25,8,201602,2016),
+('2016-02-26',201608,2,2016,26,8,201602,2016),
+('2016-02-27',201608,2,2016,27,8,201602,2016),
+('2016-02-28',201609,2,2016,28,9,201602,2016),
+('2016-02-29',201609,2,2016,29,9,201602,2016),
+('2016-03-01',201609,3,2016,1,9,201603,2016),
+('2016-03-02',201609,3,2016,2,9,201603,2016),
+('2016-03-03',201609,3,2016,3,9,201603,2016),
+('2016-03-04',201609,3,2016,4,9,201603,2016),
+('2016-03-05',201609,3,2016,5,9,201603,2016),
+('2016-03-06',201610,3,2016,6,10,201603,2016),
+('2016-03-07',201610,3,2016,7,10,201603,2016),
+('2016-03-08',201610,3,2016,8,10,201603,2016),
+('2016-03-09',201610,3,2016,9,10,201603,2016),
+('2016-03-10',201610,3,2016,10,10,201603,2016),
+('2016-03-11',201610,3,2016,11,10,201603,2016),
+('2016-03-12',201610,3,2016,12,10,201603,2016),
+('2016-03-13',201611,3,2016,13,11,201603,2016),
+('2016-03-14',201611,3,2016,14,11,201603,2016),
+('2016-03-15',201611,3,2016,15,11,201603,2016),
+('2016-03-16',201611,3,2016,16,11,201603,2016),
+('2016-03-17',201611,3,2016,17,11,201603,2016),
+('2016-03-18',201611,3,2016,18,11,201603,2016),
+('2016-03-19',201611,3,2016,19,11,201603,2016),
+('2016-03-20',201612,3,2016,20,12,201603,2016),
+('2016-03-21',201612,3,2016,21,12,201603,2016),
+('2016-03-22',201612,3,2016,22,12,201603,2016),
+('2016-03-23',201612,3,2016,23,12,201603,2016),
+('2016-03-24',201612,3,2016,24,12,201603,2016),
+('2016-03-25',201612,3,2016,25,12,201603,2016),
+('2016-03-26',201612,3,2016,26,12,201603,2016),
+('2016-03-27',201613,3,2016,27,13,201603,2016),
+('2016-03-28',201613,3,2016,28,13,201603,2016),
+('2016-03-29',201613,3,2016,29,13,201603,2016),
+('2016-03-30',201613,3,2016,30,13,201603,2016),
+('2016-03-31',201613,3,2016,31,13,201603,2016),
+('2016-04-01',201613,4,2016,1,13,201604,2016),
+('2016-04-02',201613,4,2016,2,13,201604,2016),
+('2016-04-03',201614,4,2016,3,14,201604,2016),
+('2016-04-04',201614,4,2016,4,14,201604,2016),
+('2016-04-05',201614,4,2016,5,14,201604,2016),
+('2016-04-06',201614,4,2016,6,14,201604,2016),
+('2016-04-07',201614,4,2016,7,14,201604,2016),
+('2016-04-08',201614,4,2016,8,14,201604,2016),
+('2016-04-09',201614,4,2016,9,14,201604,2016),
+('2016-04-10',201615,4,2016,10,15,201604,2016),
+('2016-04-11',201615,4,2016,11,15,201604,2016),
+('2016-04-12',201615,4,2016,12,15,201604,2016),
+('2016-04-13',201615,4,2016,13,15,201604,2016),
+('2016-04-14',201615,4,2016,14,15,201604,2016),
+('2016-04-15',201615,4,2016,15,15,201604,2016),
+('2016-04-16',201615,4,2016,16,15,201604,2016),
+('2016-04-17',201616,4,2016,17,16,201604,2016),
+('2016-04-18',201616,4,2016,18,16,201604,2016),
+('2016-04-19',201616,4,2016,19,16,201604,2016),
+('2016-04-20',201616,4,2016,20,16,201604,2016),
+('2016-04-21',201616,4,2016,21,16,201604,2016),
+('2016-04-22',201616,4,2016,22,16,201604,2016),
+('2016-04-23',201616,4,2016,23,16,201604,2016),
+('2016-04-24',201617,4,2016,24,17,201604,2016),
+('2016-04-25',201617,4,2016,25,17,201604,2016),
+('2016-04-26',201617,4,2016,26,17,201604,2016),
+('2016-04-27',201617,4,2016,27,17,201604,2016),
+('2016-04-28',201617,4,2016,28,17,201604,2016),
+('2016-04-29',201617,4,2016,29,17,201604,2016),
+('2016-04-30',201617,4,2016,30,17,201604,2016),
+('2016-05-01',201618,5,2016,1,18,201605,2016),
+('2016-05-02',201618,5,2016,2,18,201605,2016),
+('2016-05-03',201618,5,2016,3,18,201605,2016),
+('2016-05-04',201618,5,2016,4,18,201605,2016),
+('2016-05-05',201618,5,2016,5,18,201605,2016),
+('2016-05-06',201618,5,2016,6,18,201605,2016),
+('2016-05-07',201618,5,2016,7,18,201605,2016),
+('2016-05-08',201619,5,2016,8,19,201605,2016),
+('2016-05-09',201619,5,2016,9,19,201605,2016),
+('2016-05-10',201619,5,2016,10,19,201605,2016),
+('2016-05-11',201619,5,2016,11,19,201605,2016),
+('2016-05-12',201619,5,2016,12,19,201605,2016),
+('2016-05-13',201619,5,2016,13,19,201605,2016),
+('2016-05-14',201619,5,2016,14,19,201605,2016),
+('2016-05-15',201620,5,2016,15,20,201605,2016),
+('2016-05-16',201620,5,2016,16,20,201605,2016),
+('2016-05-17',201620,5,2016,17,20,201605,2016),
+('2016-05-18',201620,5,2016,18,20,201605,2016),
+('2016-05-19',201620,5,2016,19,20,201605,2016),
+('2016-05-20',201620,5,2016,20,20,201605,2016),
+('2016-05-21',201620,5,2016,21,20,201605,2016),
+('2016-05-22',201621,5,2016,22,21,201605,2016),
+('2016-05-23',201621,5,2016,23,21,201605,2016),
+('2016-05-24',201621,5,2016,24,21,201605,2016),
+('2016-05-25',201621,5,2016,25,21,201605,2016),
+('2016-05-26',201621,5,2016,26,21,201605,2016),
+('2016-05-27',201621,5,2016,27,21,201605,2016),
+('2016-05-28',201621,5,2016,28,21,201605,2016),
+('2016-05-29',201622,5,2016,29,22,201605,2016),
+('2016-05-30',201622,5,2016,30,22,201605,2016),
+('2016-05-31',201622,5,2016,31,22,201605,2016),
+('2016-06-01',201622,6,2016,1,22,201606,2016),
+('2016-06-02',201622,6,2016,2,22,201606,2016),
+('2016-06-03',201622,6,2016,3,22,201606,2016),
+('2016-06-04',201622,6,2016,4,22,201606,2016),
+('2016-06-05',201623,6,2016,5,23,201606,2016),
+('2016-06-06',201623,6,2016,6,23,201606,2016),
+('2016-06-07',201623,6,2016,7,23,201606,2016),
+('2016-06-08',201623,6,2016,8,23,201606,2016),
+('2016-06-09',201623,6,2016,9,23,201606,2016),
+('2016-06-10',201623,6,2016,10,23,201606,2016),
+('2016-06-11',201623,6,2016,11,23,201606,2016),
+('2016-06-12',201624,6,2016,12,24,201606,2016),
+('2016-06-13',201624,6,2016,13,24,201606,2016),
+('2016-06-14',201624,6,2016,14,24,201606,2016),
+('2016-06-15',201624,6,2016,15,24,201606,2016),
+('2016-06-16',201624,6,2016,16,24,201606,2016),
+('2016-06-17',201624,6,2016,17,24,201606,2016),
+('2016-06-18',201624,6,2016,18,24,201606,2016),
+('2016-06-19',201625,6,2016,19,25,201606,2016),
+('2016-06-20',201625,6,2016,20,25,201606,2016),
+('2016-06-21',201625,6,2016,21,25,201606,2016),
+('2016-06-22',201625,6,2016,22,25,201606,2016),
+('2016-06-23',201625,6,2016,23,25,201606,2016),
+('2016-06-24',201625,6,2016,24,25,201606,2016),
+('2016-06-25',201625,6,2016,25,25,201606,2016),
+('2016-06-26',201626,6,2016,26,26,201606,2016),
+('2016-06-27',201626,6,2016,27,26,201606,2016),
+('2016-06-28',201626,6,2016,28,26,201606,2016),
+('2016-06-29',201626,6,2016,29,26,201606,2016),
+('2016-06-30',201626,6,2016,30,26,201606,2016),
+('2016-07-01',201626,7,2016,1,26,201607,2016),
+('2016-07-02',201626,7,2016,2,26,201607,2016),
+('2016-07-03',201627,7,2016,3,27,201607,2016),
+('2016-07-04',201627,7,2016,4,27,201607,2016),
+('2016-07-05',201627,7,2016,5,27,201607,2016),
+('2016-07-06',201627,7,2016,6,27,201607,2016),
+('2016-07-07',201627,7,2016,7,27,201607,2016),
+('2016-07-08',201627,7,2016,8,27,201607,2016),
+('2016-07-09',201627,7,2016,9,27,201607,2016),
+('2016-07-10',201628,7,2016,10,28,201607,2016),
+('2016-07-11',201628,7,2016,11,28,201607,2016),
+('2016-07-12',201628,7,2016,12,28,201607,2016),
+('2016-07-13',201628,7,2016,13,28,201607,2016),
+('2016-07-14',201628,7,2016,14,28,201607,2016),
+('2016-07-15',201628,7,2016,15,28,201607,2016),
+('2016-07-16',201628,7,2016,16,28,201607,2016),
+('2016-07-17',201629,7,2016,17,29,201607,2016),
+('2016-07-18',201629,7,2016,18,29,201607,2016),
+('2016-07-19',201629,7,2016,19,29,201607,2016),
+('2016-07-20',201629,7,2016,20,29,201607,2016),
+('2016-07-21',201629,7,2016,21,29,201607,2016),
+('2016-07-22',201629,7,2016,22,29,201607,2016),
+('2016-07-23',201629,7,2016,23,29,201607,2016),
+('2016-07-24',201630,7,2016,24,30,201607,2016),
+('2016-07-25',201630,7,2016,25,30,201607,2016),
+('2016-07-26',201630,7,2016,26,30,201607,2016),
+('2016-07-27',201630,7,2016,27,30,201607,2016),
+('2016-07-28',201630,7,2016,28,30,201607,2016),
+('2016-07-29',201630,7,2016,29,30,201607,2016),
+('2016-07-30',201630,7,2016,30,30,201607,2016),
+('2016-07-31',201631,7,2016,31,31,201607,2016),
+('2016-08-01',201631,8,2016,1,31,201608,2016),
+('2016-08-02',201631,8,2016,2,31,201608,2016),
+('2016-08-03',201631,8,2016,3,31,201608,2016),
+('2016-08-04',201631,8,2016,4,31,201608,2016),
+('2016-08-05',201631,8,2016,5,31,201608,2016),
+('2016-08-06',201631,8,2016,6,31,201608,2016),
+('2016-08-07',201632,8,2016,7,32,201608,2016),
+('2016-08-08',201632,8,2016,8,32,201608,2016),
+('2016-08-09',201632,8,2016,9,32,201608,2016),
+('2016-08-10',201632,8,2016,10,32,201608,2016),
+('2016-08-11',201632,8,2016,11,32,201608,2016),
+('2016-08-12',201632,8,2016,12,32,201608,2016),
+('2016-08-13',201632,8,2016,13,32,201608,2016),
+('2016-08-14',201633,8,2016,14,33,201608,2016),
+('2016-08-15',201633,8,2016,15,33,201608,2016),
+('2016-08-16',201633,8,2016,16,33,201608,2016),
+('2016-08-17',201633,8,2016,17,33,201608,2016),
+('2016-08-18',201633,8,2016,18,33,201608,2016),
+('2016-08-19',201633,8,2016,19,33,201608,2016),
+('2016-08-20',201633,8,2016,20,33,201608,2016),
+('2016-08-21',201634,8,2016,21,34,201608,2016),
+('2016-08-22',201634,8,2016,22,34,201608,2016),
+('2016-08-23',201634,8,2016,23,34,201608,2016),
+('2016-08-24',201634,8,2016,24,34,201608,2016),
+('2016-08-25',201634,8,2016,25,34,201608,2016),
+('2016-08-26',201634,8,2016,26,34,201608,2016),
+('2016-08-27',201634,8,2016,27,34,201608,2016),
+('2016-08-28',201635,8,2016,28,35,201608,2016),
+('2016-08-29',201635,8,2016,29,35,201608,2016),
+('2016-08-30',201635,8,2016,30,35,201608,2016),
+('2016-08-31',201635,8,2016,31,35,201608,2016),
+('2016-09-01',201635,9,2016,1,35,201609,2016),
+('2016-09-02',201635,9,2016,2,35,201609,2016),
+('2016-09-03',201635,9,2016,3,35,201609,2016),
+('2016-09-04',201636,9,2016,4,36,201609,2016),
+('2016-09-05',201636,9,2016,5,36,201609,2016),
+('2016-09-06',201636,9,2016,6,36,201609,2016),
+('2016-09-07',201636,9,2016,7,36,201609,2016),
+('2016-09-08',201636,9,2016,8,36,201609,2016),
+('2016-09-09',201636,9,2016,9,36,201609,2016),
+('2016-09-10',201636,9,2016,10,36,201609,2016),
+('2016-09-11',201637,9,2016,11,37,201609,2016),
+('2016-09-12',201637,9,2016,12,37,201609,2016),
+('2016-09-13',201637,9,2016,13,37,201609,2016),
+('2016-09-14',201637,9,2016,14,37,201609,2016),
+('2016-09-15',201637,9,2016,15,37,201609,2016),
+('2016-09-16',201637,9,2016,16,37,201609,2016),
+('2016-09-17',201637,9,2016,17,37,201609,2016),
+('2016-09-18',201638,9,2016,18,38,201609,2016),
+('2016-09-19',201638,9,2016,19,38,201609,2016),
+('2016-09-20',201638,9,2016,20,38,201609,2016),
+('2016-09-21',201638,9,2016,21,38,201609,2016),
+('2016-09-22',201638,9,2016,22,38,201609,2016),
+('2016-09-23',201638,9,2016,23,38,201609,2016),
+('2016-09-24',201638,9,2016,24,38,201609,2016),
+('2016-09-25',201639,9,2016,25,39,201609,2016),
+('2016-09-26',201639,9,2016,26,39,201609,2016),
+('2016-09-27',201639,9,2016,27,39,201609,2016),
+('2016-09-28',201639,9,2016,28,39,201609,2016),
+('2016-09-29',201639,9,2016,29,39,201609,2016),
+('2016-09-30',201639,9,2016,30,39,201609,2016),
+('2016-10-01',201639,10,2016,1,39,201610,2016),
+('2016-10-02',201640,10,2016,2,40,201610,2016),
+('2016-10-03',201640,10,2016,3,40,201610,2016),
+('2016-10-04',201640,10,2016,4,40,201610,2016),
+('2016-10-05',201640,10,2016,5,40,201610,2016),
+('2016-10-06',201640,10,2016,6,40,201610,2016),
+('2016-10-07',201640,10,2016,7,40,201610,2016),
+('2016-10-08',201640,10,2016,8,40,201610,2016),
+('2016-10-09',201641,10,2016,9,41,201610,2016),
+('2016-10-10',201641,10,2016,10,41,201610,2016),
+('2016-10-11',201641,10,2016,11,41,201610,2016),
+('2016-10-12',201641,10,2016,12,41,201610,2016),
+('2016-10-13',201641,10,2016,13,41,201610,2016),
+('2016-10-14',201641,10,2016,14,41,201610,2016),
+('2016-10-15',201641,10,2016,15,41,201610,2016),
+('2016-10-16',201642,10,2016,16,42,201610,2016),
+('2016-10-17',201642,10,2016,17,42,201610,2016),
+('2016-10-18',201642,10,2016,18,42,201610,2016),
+('2016-10-19',201642,10,2016,19,42,201610,2016),
+('2016-10-20',201642,10,2016,20,42,201610,2016),
+('2016-10-21',201642,10,2016,21,42,201610,2016),
+('2016-10-22',201642,10,2016,22,42,201610,2016),
+('2016-10-23',201643,10,2016,23,43,201610,2016),
+('2016-10-24',201643,10,2016,24,43,201610,2016),
+('2016-10-25',201643,10,2016,25,43,201610,2016),
+('2016-10-26',201643,10,2016,26,43,201610,2016),
+('2016-10-27',201643,10,2016,27,43,201610,2016),
+('2016-10-28',201643,10,2016,28,43,201610,2016),
+('2016-10-29',201643,10,2016,29,43,201610,2016),
+('2016-10-30',201644,10,2016,30,44,201610,2016),
+('2016-10-31',201644,10,2016,31,44,201610,2016),
+('2016-11-01',201644,11,2016,1,44,201611,2016),
+('2016-11-02',201644,11,2016,2,44,201611,2016),
+('2016-11-03',201644,11,2016,3,44,201611,2016),
+('2016-11-04',201644,11,2016,4,44,201611,2016),
+('2016-11-05',201644,11,2016,5,44,201611,2016),
+('2016-11-06',201645,11,2016,6,45,201611,2016),
+('2016-11-07',201645,11,2016,7,45,201611,2016),
+('2016-11-08',201645,11,2016,8,45,201611,2016),
+('2016-11-09',201645,11,2016,9,45,201611,2016),
+('2016-11-10',201645,11,2016,10,45,201611,2016),
+('2016-11-11',201645,11,2016,11,45,201611,2016),
+('2016-11-12',201645,11,2016,12,45,201611,2016),
+('2016-11-13',201646,11,2016,13,46,201611,2016),
+('2016-11-14',201646,11,2016,14,46,201611,2016),
+('2016-11-15',201646,11,2016,15,46,201611,2016),
+('2016-11-16',201646,11,2016,16,46,201611,2016),
+('2016-11-17',201646,11,2016,17,46,201611,2016),
+('2016-11-18',201646,11,2016,18,46,201611,2016),
+('2016-11-19',201646,11,2016,19,46,201611,2016),
+('2016-11-20',201647,11,2016,20,47,201611,2016),
+('2016-11-21',201647,11,2016,21,47,201611,2016),
+('2016-11-22',201647,11,2016,22,47,201611,2016),
+('2016-11-23',201647,11,2016,23,47,201611,2016),
+('2016-11-24',201647,11,2016,24,47,201611,2016),
+('2016-11-25',201647,11,2016,25,47,201611,2016),
+('2016-11-26',201647,11,2016,26,47,201611,2016),
+('2016-11-27',201648,11,2016,27,48,201611,2016),
+('2016-11-28',201648,11,2016,28,48,201611,2016),
+('2016-11-29',201648,11,2016,29,48,201611,2016),
+('2016-11-30',201648,11,2016,30,48,201611,2016),
+('2016-12-01',201648,12,2016,1,48,201612,2017),
+('2016-12-02',201648,12,2016,2,48,201612,2017),
+('2016-12-03',201648,12,2016,3,48,201612,2017),
+('2016-12-04',201649,12,2016,4,49,201612,2017),
+('2016-12-05',201649,12,2016,5,49,201612,2017),
+('2016-12-06',201649,12,2016,6,49,201612,2017),
+('2016-12-07',201649,12,2016,7,49,201612,2017),
+('2016-12-08',201649,12,2016,8,49,201612,2017),
+('2016-12-09',201649,12,2016,9,49,201612,2017),
+('2016-12-10',201649,12,2016,10,49,201612,2017),
+('2016-12-11',201650,12,2016,11,50,201612,2017),
+('2016-12-12',201650,12,2016,12,50,201612,2017),
+('2016-12-13',201650,12,2016,13,50,201612,2017),
+('2016-12-14',201650,12,2016,14,50,201612,2017),
+('2016-12-15',201650,12,2016,15,50,201612,2017),
+('2016-12-16',201650,12,2016,16,50,201612,2017),
+('2016-12-17',201650,12,2016,17,50,201612,2017),
+('2016-12-18',201651,12,2016,18,51,201612,2017),
+('2016-12-19',201651,12,2016,19,51,201612,2017),
+('2016-12-20',201651,12,2016,20,51,201612,2017),
+('2016-12-21',201651,12,2016,21,51,201612,2017),
+('2016-12-22',201651,12,2016,22,51,201612,2017),
+('2016-12-23',201651,12,2016,23,51,201612,2017),
+('2016-12-24',201651,12,2016,24,51,201612,2017),
+('2016-12-25',201652,12,2016,25,52,201612,2017),
+('2016-12-26',201652,12,2016,26,52,201612,2017),
+('2016-12-27',201652,12,2016,27,52,201612,2017),
+('2016-12-28',201652,12,2016,28,52,201612,2017),
+('2016-12-29',201652,12,2016,29,52,201612,2017),
+('2016-12-30',201652,12,2016,30,52,201612,2017),
+('2016-12-31',201652,12,2016,31,52,201612,2017),
+('2017-01-01',201701,1,2017,1,1,201701,2017),
+('2017-01-02',201701,1,2017,2,1,201701,2017),
+('2017-01-03',201701,1,2017,3,1,201701,2017),
+('2017-01-04',201701,1,2017,4,1,201701,2017),
+('2017-01-05',201701,1,2017,5,1,201701,2017),
+('2017-01-06',201701,1,2017,6,1,201701,2017),
+('2017-01-07',201701,1,2017,7,1,201701,2017),
+('2017-01-08',201702,1,2017,8,2,201701,2017),
+('2017-01-09',201702,1,2017,9,2,201701,2017),
+('2017-01-10',201702,1,2017,10,2,201701,2017),
+('2017-01-11',201702,1,2017,11,2,201701,2017),
+('2017-01-12',201702,1,2017,12,2,201701,2017),
+('2017-01-13',201702,1,2017,13,2,201701,2017),
+('2017-01-14',201702,1,2017,14,2,201701,2017),
+('2017-01-15',201703,1,2017,15,3,201701,2017),
+('2017-01-16',201703,1,2017,16,3,201701,2017),
+('2017-01-17',201703,1,2017,17,3,201701,2017),
+('2017-01-18',201703,1,2017,18,3,201701,2017),
+('2017-01-19',201703,1,2017,19,3,201701,2017),
+('2017-01-20',201703,1,2017,20,3,201701,2017),
+('2017-01-21',201703,1,2017,21,3,201701,2017),
+('2017-01-22',201704,1,2017,22,4,201701,2017),
+('2017-01-23',201704,1,2017,23,4,201701,2017),
+('2017-01-24',201704,1,2017,24,4,201701,2017),
+('2017-01-25',201704,1,2017,25,4,201701,2017),
+('2017-01-26',201704,1,2017,26,4,201701,2017),
+('2017-01-27',201704,1,2017,27,4,201701,2017),
+('2017-01-28',201704,1,2017,28,4,201701,2017),
+('2017-01-29',201705,1,2017,29,5,201701,2017),
+('2017-01-30',201705,1,2017,30,5,201701,2017),
+('2017-01-31',201705,1,2017,31,5,201701,2017),
+('2017-02-01',201705,2,2017,1,5,201702,2017),
+('2017-02-02',201705,2,2017,2,5,201702,2017),
+('2017-02-03',201705,2,2017,3,5,201702,2017),
+('2017-02-04',201705,2,2017,4,5,201702,2017),
+('2017-02-05',201706,2,2017,5,6,201702,2017),
+('2017-02-06',201706,2,2017,6,6,201702,2017),
+('2017-02-07',201706,2,2017,7,6,201702,2017),
+('2017-02-08',201706,2,2017,8,6,201702,2017),
+('2017-02-09',201706,2,2017,9,6,201702,2017),
+('2017-02-10',201706,2,2017,10,6,201702,2017),
+('2017-02-11',201706,2,2017,11,6,201702,2017),
+('2017-02-12',201707,2,2017,12,7,201702,2017),
+('2017-02-13',201707,2,2017,13,7,201702,2017),
+('2017-02-14',201707,2,2017,14,7,201702,2017),
+('2017-02-15',201707,2,2017,15,7,201702,2017),
+('2017-02-16',201707,2,2017,16,7,201702,2017),
+('2017-02-17',201707,2,2017,17,7,201702,2017),
+('2017-02-18',201707,2,2017,18,7,201702,2017),
+('2017-02-19',201708,2,2017,19,8,201702,2017),
+('2017-02-20',201708,2,2017,20,8,201702,2017),
+('2017-02-21',201708,2,2017,21,8,201702,2017),
+('2017-02-22',201708,2,2017,22,8,201702,2017),
+('2017-02-23',201708,2,2017,23,8,201702,2017),
+('2017-02-24',201708,2,2017,24,8,201702,2017),
+('2017-02-25',201708,2,2017,25,8,201702,2017),
+('2017-02-26',201709,2,2017,26,9,201702,2017),
+('2017-02-27',201709,2,2017,27,9,201702,2017),
+('2017-02-28',201709,2,2017,28,9,201702,2017),
+('2017-03-01',201709,3,2017,1,9,201703,2017),
+('2017-03-02',201709,3,2017,2,9,201703,2017),
+('2017-03-03',201709,3,2017,3,9,201703,2017),
+('2017-03-04',201709,3,2017,4,9,201703,2017),
+('2017-03-05',201710,3,2017,5,10,201703,2017),
+('2017-03-06',201710,3,2017,6,10,201703,2017),
+('2017-03-07',201710,3,2017,7,10,201703,2017),
+('2017-03-08',201710,3,2017,8,10,201703,2017),
+('2017-03-09',201710,3,2017,9,10,201703,2017),
+('2017-03-10',201710,3,2017,10,10,201703,2017),
+('2017-03-11',201710,3,2017,11,10,201703,2017),
+('2017-03-12',201711,3,2017,12,11,201703,2017),
+('2017-03-13',201711,3,2017,13,11,201703,2017),
+('2017-03-14',201711,3,2017,14,11,201703,2017),
+('2017-03-15',201711,3,2017,15,11,201703,2017),
+('2017-03-16',201711,3,2017,16,11,201703,2017),
+('2017-03-17',201711,3,2017,17,11,201703,2017),
+('2017-03-18',201711,3,2017,18,11,201703,2017),
+('2017-03-19',201712,3,2017,19,12,201703,2017),
+('2017-03-20',201712,3,2017,20,12,201703,2017),
+('2017-03-21',201712,3,2017,21,12,201703,2017),
+('2017-03-22',201712,3,2017,22,12,201703,2017),
+('2017-03-23',201712,3,2017,23,12,201703,2017),
+('2017-03-24',201712,3,2017,24,12,201703,2017),
+('2017-03-25',201712,3,2017,25,12,201703,2017),
+('2017-03-26',201713,3,2017,26,13,201703,2017),
+('2017-03-27',201713,3,2017,27,13,201703,2017),
+('2017-03-28',201713,3,2017,28,13,201703,2017),
+('2017-03-29',201713,3,2017,29,13,201703,2017),
+('2017-03-30',201713,3,2017,30,13,201703,2017),
+('2017-03-31',201713,3,2017,31,13,201703,2017),
+('2017-04-01',201713,4,2017,1,13,201704,2017),
+('2017-04-02',201714,4,2017,2,14,201704,2017),
+('2017-04-03',201714,4,2017,3,14,201704,2017),
+('2017-04-04',201714,4,2017,4,14,201704,2017),
+('2017-04-05',201714,4,2017,5,14,201704,2017),
+('2017-04-06',201714,4,2017,6,14,201704,2017),
+('2017-04-07',201714,4,2017,7,14,201704,2017),
+('2017-04-08',201714,4,2017,8,14,201704,2017),
+('2017-04-09',201715,4,2017,9,15,201704,2017),
+('2017-04-10',201715,4,2017,10,15,201704,2017),
+('2017-04-11',201715,4,2017,11,15,201704,2017),
+('2017-04-12',201715,4,2017,12,15,201704,2017),
+('2017-04-13',201715,4,2017,13,15,201704,2017),
+('2017-04-14',201715,4,2017,14,15,201704,2017),
+('2017-04-15',201715,4,2017,15,15,201704,2017),
+('2017-04-16',201716,4,2017,16,16,201704,2017),
+('2017-04-17',201716,4,2017,17,16,201704,2017),
+('2017-04-18',201716,4,2017,18,16,201704,2017),
+('2017-04-19',201716,4,2017,19,16,201704,2017),
+('2017-04-20',201716,4,2017,20,16,201704,2017),
+('2017-04-21',201716,4,2017,21,16,201704,2017),
+('2017-04-22',201716,4,2017,22,16,201704,2017),
+('2017-04-23',201717,4,2017,23,17,201704,2017),
+('2017-04-24',201717,4,2017,24,17,201704,2017),
+('2017-04-25',201717,4,2017,25,17,201704,2017),
+('2017-04-26',201717,4,2017,26,17,201704,2017),
+('2017-04-27',201717,4,2017,27,17,201704,2017),
+('2017-04-28',201717,4,2017,28,17,201704,2017),
+('2017-04-29',201717,4,2017,29,17,201704,2017),
+('2017-04-30',201718,4,2017,30,18,201704,2017),
+('2017-05-01',201718,5,2017,1,18,201705,2017),
+('2017-05-02',201718,5,2017,2,18,201705,2017),
+('2017-05-03',201718,5,2017,3,18,201705,2017),
+('2017-05-04',201718,5,2017,4,18,201705,2017),
+('2017-05-05',201718,5,2017,5,18,201705,2017),
+('2017-05-06',201718,5,2017,6,18,201705,2017),
+('2017-05-07',201719,5,2017,7,19,201705,2017),
+('2017-05-08',201719,5,2017,8,19,201705,2017),
+('2017-05-09',201719,5,2017,9,19,201705,2017),
+('2017-05-10',201719,5,2017,10,19,201705,2017),
+('2017-05-11',201719,5,2017,11,19,201705,2017),
+('2017-05-12',201719,5,2017,12,19,201705,2017),
+('2017-05-13',201719,5,2017,13,19,201705,2017),
+('2017-05-14',201720,5,2017,14,20,201705,2017),
+('2017-05-15',201720,5,2017,15,20,201705,2017),
+('2017-05-16',201720,5,2017,16,20,201705,2017),
+('2017-05-17',201720,5,2017,17,20,201705,2017),
+('2017-05-18',201720,5,2017,18,20,201705,2017),
+('2017-05-19',201720,5,2017,19,20,201705,2017),
+('2017-05-20',201720,5,2017,20,20,201705,2017),
+('2017-05-21',201721,5,2017,21,21,201705,2017),
+('2017-05-22',201721,5,2017,22,21,201705,2017),
+('2017-05-23',201721,5,2017,23,21,201705,2017),
+('2017-05-24',201721,5,2017,24,21,201705,2017),
+('2017-05-25',201721,5,2017,25,21,201705,2017),
+('2017-05-26',201721,5,2017,26,21,201705,2017),
+('2017-05-27',201721,5,2017,27,21,201705,2017),
+('2017-05-28',201722,5,2017,28,22,201705,2017),
+('2017-05-29',201722,5,2017,29,22,201705,2017),
+('2017-05-30',201722,5,2017,30,22,201705,2017),
+('2017-05-31',201722,5,2017,31,22,201705,2017),
+('2017-06-01',201722,6,2017,1,22,201706,2017),
+('2017-06-02',201722,6,2017,2,22,201706,2017),
+('2017-06-03',201722,6,2017,3,22,201706,2017),
+('2017-06-04',201723,6,2017,4,23,201706,2017),
+('2017-06-05',201723,6,2017,5,23,201706,2017),
+('2017-06-06',201723,6,2017,6,23,201706,2017),
+('2017-06-07',201723,6,2017,7,23,201706,2017),
+('2017-06-08',201723,6,2017,8,23,201706,2017),
+('2017-06-09',201723,6,2017,9,23,201706,2017),
+('2017-06-10',201723,6,2017,10,23,201706,2017),
+('2017-06-11',201724,6,2017,11,24,201706,2017),
+('2017-06-12',201724,6,2017,12,24,201706,2017),
+('2017-06-13',201724,6,2017,13,24,201706,2017),
+('2017-06-14',201724,6,2017,14,24,201706,2017),
+('2017-06-15',201724,6,2017,15,24,201706,2017),
+('2017-06-16',201724,6,2017,16,24,201706,2017),
+('2017-06-17',201724,6,2017,17,24,201706,2017),
+('2017-06-18',201725,6,2017,18,25,201706,2017),
+('2017-06-19',201725,6,2017,19,25,201706,2017),
+('2017-06-20',201725,6,2017,20,25,201706,2017),
+('2017-06-21',201725,6,2017,21,25,201706,2017),
+('2017-06-22',201725,6,2017,22,25,201706,2017),
+('2017-06-23',201725,6,2017,23,25,201706,2017),
+('2017-06-24',201725,6,2017,24,25,201706,2017),
+('2017-06-25',201726,6,2017,25,26,201706,2017),
+('2017-06-26',201726,6,2017,26,26,201706,2017),
+('2017-06-27',201726,6,2017,27,26,201706,2017),
+('2017-06-28',201726,6,2017,28,26,201706,2017),
+('2017-06-29',201726,6,2017,29,26,201706,2017),
+('2017-06-30',201726,6,2017,30,26,201706,2017),
+('2017-07-01',201726,7,2017,1,26,201707,2017),
+('2017-07-02',201727,7,2017,2,27,201707,2017),
+('2017-07-03',201727,7,2017,3,27,201707,2017),
+('2017-07-04',201727,7,2017,4,27,201707,2017),
+('2017-07-05',201727,7,2017,5,27,201707,2017),
+('2017-07-06',201727,7,2017,6,27,201707,2017),
+('2017-07-07',201727,7,2017,7,27,201707,2017),
+('2017-07-08',201727,7,2017,8,27,201707,2017),
+('2017-07-09',201728,7,2017,9,28,201707,2017),
+('2017-07-10',201728,7,2017,10,28,201707,2017),
+('2017-07-11',201728,7,2017,11,28,201707,2017),
+('2017-07-12',201728,7,2017,12,28,201707,2017),
+('2017-07-13',201728,7,2017,13,28,201707,2017),
+('2017-07-14',201728,7,2017,14,28,201707,2017),
+('2017-07-15',201728,7,2017,15,28,201707,2017),
+('2017-07-16',201729,7,2017,16,29,201707,2017),
+('2017-07-17',201729,7,2017,17,29,201707,2017),
+('2017-07-18',201729,7,2017,18,29,201707,2017),
+('2017-07-19',201729,7,2017,19,29,201707,2017),
+('2017-07-20',201729,7,2017,20,29,201707,2017),
+('2017-07-21',201729,7,2017,21,29,201707,2017),
+('2017-07-22',201729,7,2017,22,29,201707,2017),
+('2017-07-23',201730,7,2017,23,30,201707,2017),
+('2017-07-24',201730,7,2017,24,30,201707,2017),
+('2017-07-25',201730,7,2017,25,30,201707,2017),
+('2017-07-26',201730,7,2017,26,30,201707,2017),
+('2017-07-27',201730,7,2017,27,30,201707,2017),
+('2017-07-28',201730,7,2017,28,30,201707,2017),
+('2017-07-29',201730,7,2017,29,30,201707,2017),
+('2017-07-30',201731,7,2017,30,31,201707,2017),
+('2017-07-31',201731,7,2017,31,31,201707,2017),
+('2017-08-01',201731,8,2017,1,31,201708,2017),
+('2017-08-02',201731,8,2017,2,31,201708,2017),
+('2017-08-03',201731,8,2017,3,31,201708,2017),
+('2017-08-04',201731,8,2017,4,31,201708,2017),
+('2017-08-05',201731,8,2017,5,31,201708,2017),
+('2017-08-06',201732,8,2017,6,32,201708,2017),
+('2017-08-07',201732,8,2017,7,32,201708,2017),
+('2017-08-08',201732,8,2017,8,32,201708,2017),
+('2017-08-09',201732,8,2017,9,32,201708,2017),
+('2017-08-10',201732,8,2017,10,32,201708,2017),
+('2017-08-11',201732,8,2017,11,32,201708,2017),
+('2017-08-12',201732,8,2017,12,32,201708,2017),
+('2017-08-13',201733,8,2017,13,33,201708,2017),
+('2017-08-14',201733,8,2017,14,33,201708,2017),
+('2017-08-15',201733,8,2017,15,33,201708,2017),
+('2017-08-16',201733,8,2017,16,33,201708,2017),
+('2017-08-17',201733,8,2017,17,33,201708,2017),
+('2017-08-18',201733,8,2017,18,33,201708,2017),
+('2017-08-19',201733,8,2017,19,33,201708,2017),
+('2017-08-20',201734,8,2017,20,34,201708,2017),
+('2017-08-21',201734,8,2017,21,34,201708,2017),
+('2017-08-22',201734,8,2017,22,34,201708,2017),
+('2017-08-23',201734,8,2017,23,34,201708,2017),
+('2017-08-24',201734,8,2017,24,34,201708,2017),
+('2017-08-25',201734,8,2017,25,34,201708,2017),
+('2017-08-26',201734,8,2017,26,34,201708,2017),
+('2017-08-27',201735,8,2017,27,35,201708,2017),
+('2017-08-28',201735,8,2017,28,35,201708,2017),
+('2017-08-29',201735,8,2017,29,35,201708,2017),
+('2017-08-30',201735,8,2017,30,35,201708,2017),
+('2017-08-31',201735,8,2017,31,35,201708,2017),
+('2017-09-01',201735,9,2017,1,35,201709,2017),
+('2017-09-02',201735,9,2017,2,35,201709,2017),
+('2017-09-03',201736,9,2017,3,36,201709,2017),
+('2017-09-04',201736,9,2017,4,36,201709,2017),
+('2017-09-05',201736,9,2017,5,36,201709,2017),
+('2017-09-06',201736,9,2017,6,36,201709,2017),
+('2017-09-07',201736,9,2017,7,36,201709,2017),
+('2017-09-08',201736,9,2017,8,36,201709,2017),
+('2017-09-09',201736,9,2017,9,36,201709,2017),
+('2017-09-10',201737,9,2017,10,37,201709,2017),
+('2017-09-11',201737,9,2017,11,37,201709,2017),
+('2017-09-12',201737,9,2017,12,37,201709,2017),
+('2017-09-13',201737,9,2017,13,37,201709,2017),
+('2017-09-14',201737,9,2017,14,37,201709,2017),
+('2017-09-15',201737,9,2017,15,37,201709,2017),
+('2017-09-16',201737,9,2017,16,37,201709,2017),
+('2017-09-17',201738,9,2017,17,38,201709,2017),
+('2017-09-18',201738,9,2017,18,38,201709,2017),
+('2017-09-19',201738,9,2017,19,38,201709,2017),
+('2017-09-20',201738,9,2017,20,38,201709,2017),
+('2017-09-21',201738,9,2017,21,38,201709,2017),
+('2017-09-22',201738,9,2017,22,38,201709,2017),
+('2017-09-23',201738,9,2017,23,38,201709,2017),
+('2017-09-24',201739,9,2017,24,39,201709,2017),
+('2017-09-25',201739,9,2017,25,39,201709,2017),
+('2017-09-26',201739,9,2017,26,39,201709,2017),
+('2017-09-27',201739,9,2017,27,39,201709,2017),
+('2017-09-28',201739,9,2017,28,39,201709,2017),
+('2017-09-29',201739,9,2017,29,39,201709,2017),
+('2017-09-30',201739,9,2017,30,39,201709,2017),
+('2017-10-01',201740,10,2017,1,40,201710,2017),
+('2017-10-02',201740,10,2017,2,40,201710,2017),
+('2017-10-03',201740,10,2017,3,40,201710,2017),
+('2017-10-04',201740,10,2017,4,40,201710,2017),
+('2017-10-05',201740,10,2017,5,40,201710,2017),
+('2017-10-06',201740,10,2017,6,40,201710,2017),
+('2017-10-07',201740,10,2017,7,40,201710,2017),
+('2017-10-08',201741,10,2017,8,41,201710,2017),
+('2017-10-09',201741,10,2017,9,41,201710,2017),
+('2017-10-10',201741,10,2017,10,41,201710,2017),
+('2017-10-11',201741,10,2017,11,41,201710,2017),
+('2017-10-12',201741,10,2017,12,41,201710,2017),
+('2017-10-13',201741,10,2017,13,41,201710,2017),
+('2017-10-14',201741,10,2017,14,41,201710,2017),
+('2017-10-15',201742,10,2017,15,42,201710,2017),
+('2017-10-16',201742,10,2017,16,42,201710,2017),
+('2017-10-17',201742,10,2017,17,42,201710,2017),
+('2017-10-18',201742,10,2017,18,42,201710,2017),
+('2017-10-19',201742,10,2017,19,42,201710,2017),
+('2017-10-20',201742,10,2017,20,42,201710,2017),
+('2017-10-21',201742,10,2017,21,42,201710,2017),
+('2017-10-22',201743,10,2017,22,43,201710,2017),
+('2017-10-23',201743,10,2017,23,43,201710,2017),
+('2017-10-24',201743,10,2017,24,43,201710,2017),
+('2017-10-25',201743,10,2017,25,43,201710,2017),
+('2017-10-26',201743,10,2017,26,43,201710,2017),
+('2017-10-27',201743,10,2017,27,43,201710,2017),
+('2017-10-28',201743,10,2017,28,43,201710,2017),
+('2017-10-29',201744,10,2017,29,44,201710,2017),
+('2017-10-30',201744,10,2017,30,44,201710,2017),
+('2017-10-31',201744,10,2017,31,44,201710,2017),
+('2017-11-01',201744,11,2017,1,44,201711,2017),
+('2017-11-02',201744,11,2017,2,44,201711,2017),
+('2017-11-03',201744,11,2017,3,44,201711,2017),
+('2017-11-04',201744,11,2017,4,44,201711,2017),
+('2017-11-05',201745,11,2017,5,45,201711,2017),
+('2017-11-06',201745,11,2017,6,45,201711,2017),
+('2017-11-07',201745,11,2017,7,45,201711,2017),
+('2017-11-08',201745,11,2017,8,45,201711,2017),
+('2017-11-09',201745,11,2017,9,45,201711,2017),
+('2017-11-10',201745,11,2017,10,45,201711,2017),
+('2017-11-11',201745,11,2017,11,45,201711,2017),
+('2017-11-12',201746,11,2017,12,46,201711,2017),
+('2017-11-13',201746,11,2017,13,46,201711,2017),
+('2017-11-14',201746,11,2017,14,46,201711,2017),
+('2017-11-15',201746,11,2017,15,46,201711,2017),
+('2017-11-16',201746,11,2017,16,46,201711,2017),
+('2017-11-17',201746,11,2017,17,46,201711,2017),
+('2017-11-18',201746,11,2017,18,46,201711,2017),
+('2017-11-19',201747,11,2017,19,47,201711,2017),
+('2017-11-20',201747,11,2017,20,47,201711,2017),
+('2017-11-21',201747,11,2017,21,47,201711,2017),
+('2017-11-22',201747,11,2017,22,47,201711,2017),
+('2017-11-23',201747,11,2017,23,47,201711,2017),
+('2017-11-24',201747,11,2017,24,47,201711,2017),
+('2017-11-25',201747,11,2017,25,47,201711,2017),
+('2017-11-26',201748,11,2017,26,48,201711,2017),
+('2017-11-27',201748,11,2017,27,48,201711,2017),
+('2017-11-28',201748,11,2017,28,48,201711,2017),
+('2017-11-29',201748,11,2017,29,48,201711,2017),
+('2017-11-30',201748,11,2017,30,48,201711,2017),
+('2017-12-01',201748,12,2017,1,48,201712,2018),
+('2017-12-02',201748,12,2017,2,48,201712,2018),
+('2017-12-03',201749,12,2017,3,49,201712,2018),
+('2017-12-04',201749,12,2017,4,49,201712,2018),
+('2017-12-05',201749,12,2017,5,49,201712,2018),
+('2017-12-06',201749,12,2017,6,49,201712,2018),
+('2017-12-07',201749,12,2017,7,49,201712,2018),
+('2017-12-08',201749,12,2017,8,49,201712,2018),
+('2017-12-09',201749,12,2017,9,49,201712,2018),
+('2017-12-10',201750,12,2017,10,50,201712,2018),
+('2017-12-11',201750,12,2017,11,50,201712,2018),
+('2017-12-12',201750,12,2017,12,50,201712,2018),
+('2017-12-13',201750,12,2017,13,50,201712,2018),
+('2017-12-14',201750,12,2017,14,50,201712,2018),
+('2017-12-15',201750,12,2017,15,50,201712,2018),
+('2017-12-16',201750,12,2017,16,50,201712,2018),
+('2017-12-17',201751,12,2017,17,51,201712,2018),
+('2017-12-18',201751,12,2017,18,51,201712,2018),
+('2017-12-19',201751,12,2017,19,51,201712,2018),
+('2017-12-20',201751,12,2017,20,51,201712,2018),
+('2017-12-21',201751,12,2017,21,51,201712,2018),
+('2017-12-22',201751,12,2017,22,51,201712,2018),
+('2017-12-23',201751,12,2017,23,51,201712,2018),
+('2017-12-24',201752,12,2017,24,52,201712,2018),
+('2017-12-25',201752,12,2017,25,52,201712,2018),
+('2017-12-26',201752,12,2017,26,52,201712,2018),
+('2017-12-27',201752,12,2017,27,52,201712,2018),
+('2017-12-28',201752,12,2017,28,52,201712,2018),
+('2017-12-29',201752,12,2017,29,52,201712,2018),
+('2017-12-30',201752,12,2017,30,52,201712,2018),
+('2017-12-31',201801,12,2017,31,1,201712,2018),
+('2018-01-01',201801,1,2018,1,1,201801,2018),
+('2018-01-02',201801,1,2018,2,1,201801,2018),
+('2018-01-03',201801,1,2018,3,1,201801,2018),
+('2018-01-04',201801,1,2018,4,1,201801,2018),
+('2018-01-05',201801,1,2018,5,1,201801,2018),
+('2018-01-06',201801,1,2018,6,1,201801,2018),
+('2018-01-07',201802,1,2018,7,2,201801,2018),
+('2018-01-08',201802,1,2018,8,2,201801,2018),
+('2018-01-09',201802,1,2018,9,2,201801,2018),
+('2018-01-10',201802,1,2018,10,2,201801,2018),
+('2018-01-11',201802,1,2018,11,2,201801,2018),
+('2018-01-12',201802,1,2018,12,2,201801,2018),
+('2018-01-13',201802,1,2018,13,2,201801,2018),
+('2018-01-14',201803,1,2018,14,3,201801,2018),
+('2018-01-15',201803,1,2018,15,3,201801,2018),
+('2018-01-16',201803,1,2018,16,3,201801,2018),
+('2018-01-17',201803,1,2018,17,3,201801,2018),
+('2018-01-18',201803,1,2018,18,3,201801,2018),
+('2018-01-19',201803,1,2018,19,3,201801,2018),
+('2018-01-20',201803,1,2018,20,3,201801,2018),
+('2018-01-21',201804,1,2018,21,4,201801,2018),
+('2018-01-22',201804,1,2018,22,4,201801,2018),
+('2018-01-23',201804,1,2018,23,4,201801,2018),
+('2018-01-24',201804,1,2018,24,4,201801,2018),
+('2018-01-25',201804,1,2018,25,4,201801,2018),
+('2018-01-26',201804,1,2018,26,4,201801,2018),
+('2018-01-27',201804,1,2018,27,4,201801,2018),
+('2018-01-28',201805,1,2018,28,5,201801,2018),
+('2018-01-29',201805,1,2018,29,5,201801,2018),
+('2018-01-30',201805,1,2018,30,5,201801,2018),
+('2018-01-31',201805,1,2018,31,5,201801,2018),
+('2018-02-01',201805,2,2018,1,5,201802,2018),
+('2018-02-02',201805,2,2018,2,5,201802,2018),
+('2018-02-03',201805,2,2018,3,5,201802,2018),
+('2018-02-04',201806,2,2018,4,6,201802,2018),
+('2018-02-05',201806,2,2018,5,6,201802,2018),
+('2018-02-06',201806,2,2018,6,6,201802,2018),
+('2018-02-07',201806,2,2018,7,6,201802,2018),
+('2018-02-08',201806,2,2018,8,6,201802,2018),
+('2018-02-09',201806,2,2018,9,6,201802,2018),
+('2018-02-10',201806,2,2018,10,6,201802,2018),
+('2018-02-11',201807,2,2018,11,7,201802,2018),
+('2018-02-12',201807,2,2018,12,7,201802,2018),
+('2018-02-13',201807,2,2018,13,7,201802,2018),
+('2018-02-14',201807,2,2018,14,7,201802,2018),
+('2018-02-15',201807,2,2018,15,7,201802,2018),
+('2018-02-16',201807,2,2018,16,7,201802,2018),
+('2018-02-17',201807,2,2018,17,7,201802,2018),
+('2018-02-18',201808,2,2018,18,8,201802,2018),
+('2018-02-19',201808,2,2018,19,8,201802,2018),
+('2018-02-20',201808,2,2018,20,8,201802,2018),
+('2018-02-21',201808,2,2018,21,8,201802,2018),
+('2018-02-22',201808,2,2018,22,8,201802,2018),
+('2018-02-23',201808,2,2018,23,8,201802,2018),
+('2018-02-24',201808,2,2018,24,8,201802,2018),
+('2018-02-25',201809,2,2018,25,9,201802,2018),
+('2018-02-26',201809,2,2018,26,9,201802,2018),
+('2018-02-27',201809,2,2018,27,9,201802,2018),
+('2018-02-28',201809,2,2018,28,9,201802,2018),
+('2018-03-01',201809,3,2018,1,9,201803,2018),
+('2018-03-02',201809,3,2018,2,9,201803,2018),
+('2018-03-03',201809,3,2018,3,9,201803,2018),
+('2018-03-04',201810,3,2018,4,10,201803,2018),
+('2018-03-05',201810,3,2018,5,10,201803,2018),
+('2018-03-06',201810,3,2018,6,10,201803,2018),
+('2018-03-07',201810,3,2018,7,10,201803,2018),
+('2018-03-08',201810,3,2018,8,10,201803,2018),
+('2018-03-09',201810,3,2018,9,10,201803,2018),
+('2018-03-10',201810,3,2018,10,10,201803,2018),
+('2018-03-11',201811,3,2018,11,11,201803,2018),
+('2018-03-12',201811,3,2018,12,11,201803,2018),
+('2018-03-13',201811,3,2018,13,11,201803,2018),
+('2018-03-14',201811,3,2018,14,11,201803,2018),
+('2018-03-15',201811,3,2018,15,11,201803,2018),
+('2018-03-16',201811,3,2018,16,11,201803,2018),
+('2018-03-17',201811,3,2018,17,11,201803,2018),
+('2018-03-18',201812,3,2018,18,12,201803,2018),
+('2018-03-19',201812,3,2018,19,12,201803,2018),
+('2018-03-20',201812,3,2018,20,12,201803,2018),
+('2018-03-21',201812,3,2018,21,12,201803,2018),
+('2018-03-22',201812,3,2018,22,12,201803,2018),
+('2018-03-23',201812,3,2018,23,12,201803,2018),
+('2018-03-24',201812,3,2018,24,12,201803,2018),
+('2018-03-25',201813,3,2018,25,13,201803,2018),
+('2018-03-26',201813,3,2018,26,13,201803,2018),
+('2018-03-27',201813,3,2018,27,13,201803,2018),
+('2018-03-28',201813,3,2018,28,13,201803,2018),
+('2018-03-29',201813,3,2018,29,13,201803,2018),
+('2018-03-30',201813,3,2018,30,13,201803,2018),
+('2018-03-31',201813,3,2018,31,13,201803,2018),
+('2018-04-01',201814,4,2018,1,14,201804,2018),
+('2018-04-02',201814,4,2018,2,14,201804,2018),
+('2018-04-03',201814,4,2018,3,14,201804,2018),
+('2018-04-04',201814,4,2018,4,14,201804,2018),
+('2018-04-05',201814,4,2018,5,14,201804,2018),
+('2018-04-06',201814,4,2018,6,14,201804,2018),
+('2018-04-07',201814,4,2018,7,14,201804,2018),
+('2018-04-08',201815,4,2018,8,15,201804,2018),
+('2018-04-09',201815,4,2018,9,15,201804,2018),
+('2018-04-10',201815,4,2018,10,15,201804,2018),
+('2018-04-11',201815,4,2018,11,15,201804,2018),
+('2018-04-12',201815,4,2018,12,15,201804,2018),
+('2018-04-13',201815,4,2018,13,15,201804,2018),
+('2018-04-14',201815,4,2018,14,15,201804,2018),
+('2018-04-15',201816,4,2018,15,16,201804,2018),
+('2018-04-16',201816,4,2018,16,16,201804,2018),
+('2018-04-17',201816,4,2018,17,16,201804,2018),
+('2018-04-18',201816,4,2018,18,16,201804,2018),
+('2018-04-19',201816,4,2018,19,16,201804,2018),
+('2018-04-20',201816,4,2018,20,16,201804,2018),
+('2018-04-21',201816,4,2018,21,16,201804,2018),
+('2018-04-22',201817,4,2018,22,17,201804,2018),
+('2018-04-23',201817,4,2018,23,17,201804,2018),
+('2018-04-24',201817,4,2018,24,17,201804,2018),
+('2018-04-25',201817,4,2018,25,17,201804,2018),
+('2018-04-26',201817,4,2018,26,17,201804,2018),
+('2018-04-27',201817,4,2018,27,17,201804,2018),
+('2018-04-28',201817,4,2018,28,17,201804,2018),
+('2018-04-29',201818,4,2018,29,18,201804,2018),
+('2018-04-30',201818,4,2018,30,18,201804,2018),
+('2018-05-01',201818,5,2018,1,18,201805,2018),
+('2018-05-02',201818,5,2018,2,18,201805,2018),
+('2018-05-03',201818,5,2018,3,18,201805,2018),
+('2018-05-04',201818,5,2018,4,18,201805,2018),
+('2018-05-05',201818,5,2018,5,18,201805,2018),
+('2018-05-06',201819,5,2018,6,19,201805,2018),
+('2018-05-07',201819,5,2018,7,19,201805,2018),
+('2018-05-08',201819,5,2018,8,19,201805,2018),
+('2018-05-09',201819,5,2018,9,19,201805,2018),
+('2018-05-10',201819,5,2018,10,19,201805,2018),
+('2018-05-11',201819,5,2018,11,19,201805,2018),
+('2018-05-12',201819,5,2018,12,19,201805,2018),
+('2018-05-13',201820,5,2018,13,20,201805,2018),
+('2018-05-14',201820,5,2018,14,20,201805,2018),
+('2018-05-15',201820,5,2018,15,20,201805,2018),
+('2018-05-16',201820,5,2018,16,20,201805,2018),
+('2018-05-17',201820,5,2018,17,20,201805,2018),
+('2018-05-18',201820,5,2018,18,20,201805,2018),
+('2018-05-19',201820,5,2018,19,20,201805,2018),
+('2018-05-20',201821,5,2018,20,21,201805,2018),
+('2018-05-21',201821,5,2018,21,21,201805,2018),
+('2018-05-22',201821,5,2018,22,21,201805,2018),
+('2018-05-23',201821,5,2018,23,21,201805,2018),
+('2018-05-24',201821,5,2018,24,21,201805,2018),
+('2018-05-25',201821,5,2018,25,21,201805,2018),
+('2018-05-26',201821,5,2018,26,21,201805,2018),
+('2018-05-27',201822,5,2018,27,22,201805,2018),
+('2018-05-28',201822,5,2018,28,22,201805,2018),
+('2018-05-29',201822,5,2018,29,22,201805,2018),
+('2018-05-30',201822,5,2018,30,22,201805,2018),
+('2018-05-31',201822,5,2018,31,22,201805,2018),
+('2018-06-01',201822,6,2018,1,22,201806,2018),
+('2018-06-02',201822,6,2018,2,22,201806,2018),
+('2018-06-03',201823,6,2018,3,23,201806,2018),
+('2018-06-04',201823,6,2018,4,23,201806,2018),
+('2018-06-05',201823,6,2018,5,23,201806,2018),
+('2018-06-06',201823,6,2018,6,23,201806,2018),
+('2018-06-07',201823,6,2018,7,23,201806,2018),
+('2018-06-08',201823,6,2018,8,23,201806,2018),
+('2018-06-09',201823,6,2018,9,23,201806,2018),
+('2018-06-10',201824,6,2018,10,24,201806,2018),
+('2018-06-11',201824,6,2018,11,24,201806,2018),
+('2018-06-12',201824,6,2018,12,24,201806,2018),
+('2018-06-13',201824,6,2018,13,24,201806,2018),
+('2018-06-14',201824,6,2018,14,24,201806,2018),
+('2018-06-15',201824,6,2018,15,24,201806,2018),
+('2018-06-16',201824,6,2018,16,24,201806,2018),
+('2018-06-17',201825,6,2018,17,25,201806,2018),
+('2018-06-18',201825,6,2018,18,25,201806,2018),
+('2018-06-19',201825,6,2018,19,25,201806,2018),
+('2018-06-20',201825,6,2018,20,25,201806,2018),
+('2018-06-21',201825,6,2018,21,25,201806,2018),
+('2018-06-22',201825,6,2018,22,25,201806,2018),
+('2018-06-23',201825,6,2018,23,25,201806,2018),
+('2018-06-24',201826,6,2018,24,26,201806,2018),
+('2018-06-25',201826,6,2018,25,26,201806,2018),
+('2018-06-26',201826,6,2018,26,26,201806,2018),
+('2018-06-27',201826,6,2018,27,26,201806,2018),
+('2018-06-28',201826,6,2018,28,26,201806,2018),
+('2018-06-29',201826,6,2018,29,26,201806,2018),
+('2018-06-30',201826,6,2018,30,26,201806,2018),
+('2018-07-01',201827,7,2018,1,27,201807,2018),
+('2018-07-02',201827,7,2018,2,27,201807,2018),
+('2018-07-03',201827,7,2018,3,27,201807,2018),
+('2018-07-04',201827,7,2018,4,27,201807,2018),
+('2018-07-05',201827,7,2018,5,27,201807,2018),
+('2018-07-06',201827,7,2018,6,27,201807,2018),
+('2018-07-07',201827,7,2018,7,27,201807,2018),
+('2018-07-08',201828,7,2018,8,28,201807,2018),
+('2018-07-09',201828,7,2018,9,28,201807,2018),
+('2018-07-10',201828,7,2018,10,28,201807,2018),
+('2018-07-11',201828,7,2018,11,28,201807,2018),
+('2018-07-12',201828,7,2018,12,28,201807,2018),
+('2018-07-13',201828,7,2018,13,28,201807,2018),
+('2018-07-14',201828,7,2018,14,28,201807,2018),
+('2018-07-15',201829,7,2018,15,29,201807,2018),
+('2018-07-16',201829,7,2018,16,29,201807,2018),
+('2018-07-17',201829,7,2018,17,29,201807,2018),
+('2018-07-18',201829,7,2018,18,29,201807,2018),
+('2018-07-19',201829,7,2018,19,29,201807,2018),
+('2018-07-20',201829,7,2018,20,29,201807,2018),
+('2018-07-21',201829,7,2018,21,29,201807,2018),
+('2018-07-22',201830,7,2018,22,30,201807,2018),
+('2018-07-23',201830,7,2018,23,30,201807,2018),
+('2018-07-24',201830,7,2018,24,30,201807,2018),
+('2018-07-25',201830,7,2018,25,30,201807,2018),
+('2018-07-26',201830,7,2018,26,30,201807,2018),
+('2018-07-27',201830,7,2018,27,30,201807,2018),
+('2018-07-28',201830,7,2018,28,30,201807,2018),
+('2018-07-29',201831,7,2018,29,31,201807,2018),
+('2018-07-30',201831,7,2018,30,31,201807,2018),
+('2018-07-31',201831,7,2018,31,31,201807,2018),
+('2018-08-01',201831,8,2018,1,31,201808,2018),
+('2018-08-02',201831,8,2018,2,31,201808,2018),
+('2018-08-03',201831,8,2018,3,31,201808,2018),
+('2018-08-04',201831,8,2018,4,31,201808,2018),
+('2018-08-05',201832,8,2018,5,32,201808,2018),
+('2018-08-06',201832,8,2018,6,32,201808,2018),
+('2018-08-07',201832,8,2018,7,32,201808,2018),
+('2018-08-08',201832,8,2018,8,32,201808,2018),
+('2018-08-09',201832,8,2018,9,32,201808,2018),
+('2018-08-10',201832,8,2018,10,32,201808,2018),
+('2018-08-11',201832,8,2018,11,32,201808,2018),
+('2018-08-12',201833,8,2018,12,33,201808,2018),
+('2018-08-13',201833,8,2018,13,33,201808,2018),
+('2018-08-14',201833,8,2018,14,33,201808,2018),
+('2018-08-15',201833,8,2018,15,33,201808,2018),
+('2018-08-16',201833,8,2018,16,33,201808,2018),
+('2018-08-17',201833,8,2018,17,33,201808,2018),
+('2018-08-18',201833,8,2018,18,33,201808,2018),
+('2018-08-19',201834,8,2018,19,34,201808,2018),
+('2018-08-20',201834,8,2018,20,34,201808,2018),
+('2018-08-21',201834,8,2018,21,34,201808,2018),
+('2018-08-22',201834,8,2018,22,34,201808,2018),
+('2018-08-23',201834,8,2018,23,34,201808,2018),
+('2018-08-24',201834,8,2018,24,34,201808,2018),
+('2018-08-25',201834,8,2018,25,34,201808,2018),
+('2018-08-26',201835,8,2018,26,35,201808,2018),
+('2018-08-27',201835,8,2018,27,35,201808,2018),
+('2018-08-28',201835,8,2018,28,35,201808,2018),
+('2018-08-29',201835,8,2018,29,35,201808,2018),
+('2018-08-30',201835,8,2018,30,35,201808,2018),
+('2018-08-31',201835,8,2018,31,35,201808,2018),
+('2018-09-01',201835,9,2018,1,35,201809,2018),
+('2018-09-02',201836,9,2018,2,36,201809,2018),
+('2018-09-03',201836,9,2018,3,36,201809,2018),
+('2018-09-04',201836,9,2018,4,36,201809,2018),
+('2018-09-05',201836,9,2018,5,36,201809,2018),
+('2018-09-06',201836,9,2018,6,36,201809,2018),
+('2018-09-07',201836,9,2018,7,36,201809,2018),
+('2018-09-08',201836,9,2018,8,36,201809,2018),
+('2018-09-09',201837,9,2018,9,37,201809,2018),
+('2018-09-10',201837,9,2018,10,37,201809,2018),
+('2018-09-11',201837,9,2018,11,37,201809,2018),
+('2018-09-12',201837,9,2018,12,37,201809,2018),
+('2018-09-13',201837,9,2018,13,37,201809,2018),
+('2018-09-14',201837,9,2018,14,37,201809,2018),
+('2018-09-15',201837,9,2018,15,37,201809,2018),
+('2018-09-16',201838,9,2018,16,38,201809,2018),
+('2018-09-17',201838,9,2018,17,38,201809,2018),
+('2018-09-18',201838,9,2018,18,38,201809,2018),
+('2018-09-19',201838,9,2018,19,38,201809,2018),
+('2018-09-20',201838,9,2018,20,38,201809,2018),
+('2018-09-21',201838,9,2018,21,38,201809,2018),
+('2018-09-22',201838,9,2018,22,38,201809,2018),
+('2018-09-23',201839,9,2018,23,39,201809,2018),
+('2018-09-24',201839,9,2018,24,39,201809,2018),
+('2018-09-25',201839,9,2018,25,39,201809,2018),
+('2018-09-26',201839,9,2018,26,39,201809,2018),
+('2018-09-27',201839,9,2018,27,39,201809,2018),
+('2018-09-28',201839,9,2018,28,39,201809,2018),
+('2018-09-29',201839,9,2018,29,39,201809,2018),
+('2018-09-30',201840,9,2018,30,40,201809,2018),
+('2018-10-01',201840,10,2018,1,40,201810,2018),
+('2018-10-02',201840,10,2018,2,40,201810,2018),
+('2018-10-03',201840,10,2018,3,40,201810,2018),
+('2018-10-04',201840,10,2018,4,40,201810,2018),
+('2018-10-05',201840,10,2018,5,40,201810,2018),
+('2018-10-06',201840,10,2018,6,40,201810,2018),
+('2018-10-07',201841,10,2018,7,41,201810,2018),
+('2018-10-08',201841,10,2018,8,41,201810,2018),
+('2018-10-09',201841,10,2018,9,41,201810,2018),
+('2018-10-10',201841,10,2018,10,41,201810,2018),
+('2018-10-11',201841,10,2018,11,41,201810,2018),
+('2018-10-12',201841,10,2018,12,41,201810,2018),
+('2018-10-13',201841,10,2018,13,41,201810,2018),
+('2018-10-14',201842,10,2018,14,42,201810,2018),
+('2018-10-15',201842,10,2018,15,42,201810,2018),
+('2018-10-16',201842,10,2018,16,42,201810,2018),
+('2018-10-17',201842,10,2018,17,42,201810,2018),
+('2018-10-18',201842,10,2018,18,42,201810,2018),
+('2018-10-19',201842,10,2018,19,42,201810,2018),
+('2018-10-20',201842,10,2018,20,42,201810,2018),
+('2018-10-21',201843,10,2018,21,43,201810,2018),
+('2018-10-22',201843,10,2018,22,43,201810,2018),
+('2018-10-23',201843,10,2018,23,43,201810,2018),
+('2018-10-24',201843,10,2018,24,43,201810,2018),
+('2018-10-25',201843,10,2018,25,43,201810,2018),
+('2018-10-26',201843,10,2018,26,43,201810,2018),
+('2018-10-27',201843,10,2018,27,43,201810,2018),
+('2018-10-28',201844,10,2018,28,44,201810,2018),
+('2018-10-29',201844,10,2018,29,44,201810,2018),
+('2018-10-30',201844,10,2018,30,44,201810,2018),
+('2018-10-31',201844,10,2018,31,44,201810,2018),
+('2018-11-01',201844,11,2018,1,44,201811,2018),
+('2018-11-02',201844,11,2018,2,44,201811,2018),
+('2018-11-03',201844,11,2018,3,44,201811,2018),
+('2018-11-04',201845,11,2018,4,45,201811,2018),
+('2018-11-05',201845,11,2018,5,45,201811,2018),
+('2018-11-06',201845,11,2018,6,45,201811,2018),
+('2018-11-07',201845,11,2018,7,45,201811,2018),
+('2018-11-08',201845,11,2018,8,45,201811,2018),
+('2018-11-09',201845,11,2018,9,45,201811,2018),
+('2018-11-10',201845,11,2018,10,45,201811,2018),
+('2018-11-11',201846,11,2018,11,46,201811,2018),
+('2018-11-12',201846,11,2018,12,46,201811,2018),
+('2018-11-13',201846,11,2018,13,46,201811,2018),
+('2018-11-14',201846,11,2018,14,46,201811,2018),
+('2018-11-15',201846,11,2018,15,46,201811,2018),
+('2018-11-16',201846,11,2018,16,46,201811,2018),
+('2018-11-17',201846,11,2018,17,46,201811,2018),
+('2018-11-18',201847,11,2018,18,47,201811,2018),
+('2018-11-19',201847,11,2018,19,47,201811,2018),
+('2018-11-20',201847,11,2018,20,47,201811,2018),
+('2018-11-21',201847,11,2018,21,47,201811,2018),
+('2018-11-22',201847,11,2018,22,47,201811,2018),
+('2018-11-23',201847,11,2018,23,47,201811,2018),
+('2018-11-24',201847,11,2018,24,47,201811,2018),
+('2018-11-25',201848,11,2018,25,48,201811,2018),
+('2018-11-26',201848,11,2018,26,48,201811,2018),
+('2018-11-27',201848,11,2018,27,48,201811,2018),
+('2018-11-28',201848,11,2018,28,48,201811,2018),
+('2018-11-29',201848,11,2018,29,48,201811,2018),
+('2018-11-30',201848,11,2018,30,48,201811,2018),
+('2018-12-01',201848,12,2018,1,48,201812,2019),
+('2018-12-02',201849,12,2018,2,49,201812,2019),
+('2018-12-03',201849,12,2018,3,49,201812,2019),
+('2018-12-04',201849,12,2018,4,49,201812,2019),
+('2018-12-05',201849,12,2018,5,49,201812,2019),
+('2018-12-06',201849,12,2018,6,49,201812,2019),
+('2018-12-07',201849,12,2018,7,49,201812,2019),
+('2018-12-08',201849,12,2018,8,49,201812,2019),
+('2018-12-09',201850,12,2018,9,50,201812,2019),
+('2018-12-10',201850,12,2018,10,50,201812,2019),
+('2018-12-11',201850,12,2018,11,50,201812,2019),
+('2018-12-12',201850,12,2018,12,50,201812,2019),
+('2018-12-13',201850,12,2018,13,50,201812,2019),
+('2018-12-14',201850,12,2018,14,50,201812,2019),
+('2018-12-15',201850,12,2018,15,50,201812,2019),
+('2018-12-16',201851,12,2018,16,51,201812,2019),
+('2018-12-17',201851,12,2018,17,51,201812,2019),
+('2018-12-18',201851,12,2018,18,51,201812,2019),
+('2018-12-19',201851,12,2018,19,51,201812,2019),
+('2018-12-20',201851,12,2018,20,51,201812,2019),
+('2018-12-21',201851,12,2018,21,51,201812,2019),
+('2018-12-22',201851,12,2018,22,51,201812,2019),
+('2018-12-23',201852,12,2018,23,52,201812,2019),
+('2018-12-24',201852,12,2018,24,52,201812,2019),
+('2018-12-25',201852,12,2018,25,52,201812,2019),
+('2018-12-26',201852,12,2018,26,52,201812,2019),
+('2018-12-27',201852,12,2018,27,52,201812,2019),
+('2018-12-28',201852,12,2018,28,52,201812,2019),
+('2018-12-29',201852,12,2018,29,52,201812,2019),
+('2018-12-30',201901,12,2018,30,1,201812,2019),
+('2018-12-31',201901,12,2018,31,1,201812,2019),
+('2019-01-01',201901,1,2019,1,1,201901,2019),
+('2019-01-02',201901,1,2019,2,1,201901,2019),
+('2019-01-03',201901,1,2019,3,1,201901,2019),
+('2019-01-04',201901,1,2019,4,1,201901,2019),
+('2019-01-05',201901,1,2019,5,1,201901,2019),
+('2019-01-06',201902,1,2019,6,2,201901,2019),
+('2019-01-07',201902,1,2019,7,2,201901,2019),
+('2019-01-08',201902,1,2019,8,2,201901,2019),
+('2019-01-09',201902,1,2019,9,2,201901,2019),
+('2019-01-10',201902,1,2019,10,2,201901,2019),
+('2019-01-11',201902,1,2019,11,2,201901,2019),
+('2019-01-12',201902,1,2019,12,2,201901,2019),
+('2019-01-13',201903,1,2019,13,3,201901,2019),
+('2019-01-14',201903,1,2019,14,3,201901,2019),
+('2019-01-15',201903,1,2019,15,3,201901,2019),
+('2019-01-16',201903,1,2019,16,3,201901,2019),
+('2019-01-17',201903,1,2019,17,3,201901,2019),
+('2019-01-18',201903,1,2019,18,3,201901,2019),
+('2019-01-19',201903,1,2019,19,3,201901,2019),
+('2019-01-20',201904,1,2019,20,4,201901,2019),
+('2019-01-21',201904,1,2019,21,4,201901,2019),
+('2019-01-22',201904,1,2019,22,4,201901,2019),
+('2019-01-23',201904,1,2019,23,4,201901,2019),
+('2019-01-24',201904,1,2019,24,4,201901,2019),
+('2019-01-25',201904,1,2019,25,4,201901,2019),
+('2019-01-26',201904,1,2019,26,4,201901,2019),
+('2019-01-27',201905,1,2019,27,5,201901,2019),
+('2019-01-28',201905,1,2019,28,5,201901,2019),
+('2019-01-29',201905,1,2019,29,5,201901,2019),
+('2019-01-30',201905,1,2019,30,5,201901,2019),
+('2019-01-31',201905,1,2019,31,5,201901,2019),
+('2019-02-01',201905,2,2019,1,5,201902,2019),
+('2019-02-02',201905,2,2019,2,5,201902,2019),
+('2019-02-03',201906,2,2019,3,6,201902,2019),
+('2019-02-04',201906,2,2019,4,6,201902,2019),
+('2019-02-05',201906,2,2019,5,6,201902,2019),
+('2019-02-06',201906,2,2019,6,6,201902,2019),
+('2019-02-07',201906,2,2019,7,6,201902,2019),
+('2019-02-08',201906,2,2019,8,6,201902,2019),
+('2019-02-09',201906,2,2019,9,6,201902,2019),
+('2019-02-10',201907,2,2019,10,7,201902,2019),
+('2019-02-11',201907,2,2019,11,7,201902,2019),
+('2019-02-12',201907,2,2019,12,7,201902,2019),
+('2019-02-13',201907,2,2019,13,7,201902,2019),
+('2019-02-14',201907,2,2019,14,7,201902,2019),
+('2019-02-15',201907,2,2019,15,7,201902,2019),
+('2019-02-16',201907,2,2019,16,7,201902,2019),
+('2019-02-17',201908,2,2019,17,8,201902,2019),
+('2019-02-18',201908,2,2019,18,8,201902,2019),
+('2019-02-19',201908,2,2019,19,8,201902,2019),
+('2019-02-20',201908,2,2019,20,8,201902,2019),
+('2019-02-21',201908,2,2019,21,8,201902,2019),
+('2019-02-22',201908,2,2019,22,8,201902,2019),
+('2019-02-23',201908,2,2019,23,8,201902,2019),
+('2019-02-24',201909,2,2019,24,9,201902,2019),
+('2019-02-25',201909,2,2019,25,9,201902,2019),
+('2019-02-26',201909,2,2019,26,9,201902,2019),
+('2019-02-27',201909,2,2019,27,9,201902,2019),
+('2019-02-28',201909,2,2019,28,9,201902,2019),
+('2019-03-01',201909,3,2019,1,9,201903,2019),
+('2019-03-02',201909,3,2019,2,9,201903,2019),
+('2019-03-03',201910,3,2019,3,10,201903,2019),
+('2019-03-04',201910,3,2019,4,10,201903,2019),
+('2019-03-05',201910,3,2019,5,10,201903,2019),
+('2019-03-06',201910,3,2019,6,10,201903,2019),
+('2019-03-07',201910,3,2019,7,10,201903,2019),
+('2019-03-08',201910,3,2019,8,10,201903,2019),
+('2019-03-09',201910,3,2019,9,10,201903,2019),
+('2019-03-10',201911,3,2019,10,11,201903,2019),
+('2019-03-11',201911,3,2019,11,11,201903,2019),
+('2019-03-12',201911,3,2019,12,11,201903,2019),
+('2019-03-13',201911,3,2019,13,11,201903,2019),
+('2019-03-14',201911,3,2019,14,11,201903,2019),
+('2019-03-15',201911,3,2019,15,11,201903,2019),
+('2019-03-16',201911,3,2019,16,11,201903,2019),
+('2019-03-17',201912,3,2019,17,12,201903,2019),
+('2019-03-18',201912,3,2019,18,12,201903,2019),
+('2019-03-19',201912,3,2019,19,12,201903,2019),
+('2019-03-20',201912,3,2019,20,12,201903,2019),
+('2019-03-21',201912,3,2019,21,12,201903,2019),
+('2019-03-22',201912,3,2019,22,12,201903,2019),
+('2019-03-23',201912,3,2019,23,12,201903,2019),
+('2019-03-24',201913,3,2019,24,13,201903,2019),
+('2019-03-25',201913,3,2019,25,13,201903,2019),
+('2019-03-26',201913,3,2019,26,13,201903,2019),
+('2019-03-27',201913,3,2019,27,13,201903,2019),
+('2019-03-28',201913,3,2019,28,13,201903,2019),
+('2019-03-29',201913,3,2019,29,13,201903,2019),
+('2019-03-30',201913,3,2019,30,13,201903,2019),
+('2019-03-31',201914,3,2019,31,14,201903,2019),
+('2019-04-01',201914,4,2019,1,14,201904,2019),
+('2019-04-02',201914,4,2019,2,14,201904,2019),
+('2019-04-03',201914,4,2019,3,14,201904,2019),
+('2019-04-04',201914,4,2019,4,14,201904,2019),
+('2019-04-05',201914,4,2019,5,14,201904,2019),
+('2019-04-06',201914,4,2019,6,14,201904,2019),
+('2019-04-07',201915,4,2019,7,15,201904,2019),
+('2019-04-08',201915,4,2019,8,15,201904,2019),
+('2019-04-09',201915,4,2019,9,15,201904,2019),
+('2019-04-10',201915,4,2019,10,15,201904,2019),
+('2019-04-11',201915,4,2019,11,15,201904,2019),
+('2019-04-12',201915,4,2019,12,15,201904,2019),
+('2019-04-13',201915,4,2019,13,15,201904,2019),
+('2019-04-14',201916,4,2019,14,16,201904,2019),
+('2019-04-15',201916,4,2019,15,16,201904,2019),
+('2019-04-16',201916,4,2019,16,16,201904,2019),
+('2019-04-17',201916,4,2019,17,16,201904,2019),
+('2019-04-18',201916,4,2019,18,16,201904,2019),
+('2019-04-19',201916,4,2019,19,16,201904,2019),
+('2019-04-20',201916,4,2019,20,16,201904,2019),
+('2019-04-21',201917,4,2019,21,17,201904,2019),
+('2019-04-22',201917,4,2019,22,17,201904,2019),
+('2019-04-23',201917,4,2019,23,17,201904,2019),
+('2019-04-24',201917,4,2019,24,17,201904,2019),
+('2019-04-25',201917,4,2019,25,17,201904,2019),
+('2019-04-26',201917,4,2019,26,17,201904,2019),
+('2019-04-27',201917,4,2019,27,17,201904,2019),
+('2019-04-28',201918,4,2019,28,18,201904,2019),
+('2019-04-29',201918,4,2019,29,18,201904,2019),
+('2019-04-30',201918,4,2019,30,18,201904,2019),
+('2019-05-01',201918,5,2019,1,18,201905,2019),
+('2019-05-02',201918,5,2019,2,18,201905,2019),
+('2019-05-03',201918,5,2019,3,18,201905,2019),
+('2019-05-04',201918,5,2019,4,18,201905,2019),
+('2019-05-05',201919,5,2019,5,19,201905,2019),
+('2019-05-06',201919,5,2019,6,19,201905,2019),
+('2019-05-07',201919,5,2019,7,19,201905,2019),
+('2019-05-08',201919,5,2019,8,19,201905,2019),
+('2019-05-09',201919,5,2019,9,19,201905,2019),
+('2019-05-10',201919,5,2019,10,19,201905,2019),
+('2019-05-11',201919,5,2019,11,19,201905,2019),
+('2019-05-12',201920,5,2019,12,20,201905,2019),
+('2019-05-13',201920,5,2019,13,20,201905,2019),
+('2019-05-14',201920,5,2019,14,20,201905,2019),
+('2019-05-15',201920,5,2019,15,20,201905,2019),
+('2019-05-16',201920,5,2019,16,20,201905,2019),
+('2019-05-17',201920,5,2019,17,20,201905,2019),
+('2019-05-18',201920,5,2019,18,20,201905,2019),
+('2019-05-19',201921,5,2019,19,21,201905,2019),
+('2019-05-20',201921,5,2019,20,21,201905,2019),
+('2019-05-21',201921,5,2019,21,21,201905,2019),
+('2019-05-22',201921,5,2019,22,21,201905,2019),
+('2019-05-23',201921,5,2019,23,21,201905,2019),
+('2019-05-24',201921,5,2019,24,21,201905,2019),
+('2019-05-25',201921,5,2019,25,21,201905,2019),
+('2019-05-26',201922,5,2019,26,22,201905,2019),
+('2019-05-27',201922,5,2019,27,22,201905,2019),
+('2019-05-28',201922,5,2019,28,22,201905,2019),
+('2019-05-29',201922,5,2019,29,22,201905,2019),
+('2019-05-30',201922,5,2019,30,22,201905,2019),
+('2019-05-31',201922,5,2019,31,22,201905,2019),
+('2019-06-01',201922,6,2019,1,22,201906,2019),
+('2019-06-02',201923,6,2019,2,23,201906,2019),
+('2019-06-03',201923,6,2019,3,23,201906,2019),
+('2019-06-04',201923,6,2019,4,23,201906,2019),
+('2019-06-05',201923,6,2019,5,23,201906,2019),
+('2019-06-06',201923,6,2019,6,23,201906,2019),
+('2019-06-07',201923,6,2019,7,23,201906,2019),
+('2019-06-08',201923,6,2019,8,23,201906,2019),
+('2019-06-09',201924,6,2019,9,24,201906,2019),
+('2019-06-10',201924,6,2019,10,24,201906,2019),
+('2019-06-11',201924,6,2019,11,24,201906,2019),
+('2019-06-12',201924,6,2019,12,24,201906,2019),
+('2019-06-13',201924,6,2019,13,24,201906,2019),
+('2019-06-14',201924,6,2019,14,24,201906,2019),
+('2019-06-15',201924,6,2019,15,24,201906,2019),
+('2019-06-16',201925,6,2019,16,25,201906,2019),
+('2019-06-17',201925,6,2019,17,25,201906,2019),
+('2019-06-18',201925,6,2019,18,25,201906,2019),
+('2019-06-19',201925,6,2019,19,25,201906,2019),
+('2019-06-20',201925,6,2019,20,25,201906,2019),
+('2019-06-21',201925,6,2019,21,25,201906,2019),
+('2019-06-22',201925,6,2019,22,25,201906,2019),
+('2019-06-23',201926,6,2019,23,26,201906,2019),
+('2019-06-24',201926,6,2019,24,26,201906,2019),
+('2019-06-25',201926,6,2019,25,26,201906,2019),
+('2019-06-26',201926,6,2019,26,26,201906,2019),
+('2019-06-27',201926,6,2019,27,26,201906,2019),
+('2019-06-28',201926,6,2019,28,26,201906,2019),
+('2019-06-29',201926,6,2019,29,26,201906,2019),
+('2019-06-30',201927,6,2019,30,27,201906,2019),
+('2019-07-01',201927,7,2019,1,27,201907,2019),
+('2019-07-02',201927,7,2019,2,27,201907,2019),
+('2019-07-03',201927,7,2019,3,27,201907,2019),
+('2019-07-04',201927,7,2019,4,27,201907,2019),
+('2019-07-05',201927,7,2019,5,27,201907,2019),
+('2019-07-06',201927,7,2019,6,27,201907,2019),
+('2019-07-07',201928,7,2019,7,28,201907,2019),
+('2019-07-08',201928,7,2019,8,28,201907,2019),
+('2019-07-09',201928,7,2019,9,28,201907,2019),
+('2019-07-10',201928,7,2019,10,28,201907,2019),
+('2019-07-11',201928,7,2019,11,28,201907,2019),
+('2019-07-12',201928,7,2019,12,28,201907,2019),
+('2019-07-13',201928,7,2019,13,28,201907,2019),
+('2019-07-14',201929,7,2019,14,29,201907,2019),
+('2019-07-15',201929,7,2019,15,29,201907,2019),
+('2019-07-16',201929,7,2019,16,29,201907,2019),
+('2019-07-17',201929,7,2019,17,29,201907,2019),
+('2019-07-18',201929,7,2019,18,29,201907,2019),
+('2019-07-19',201929,7,2019,19,29,201907,2019),
+('2019-07-20',201929,7,2019,20,29,201907,2019),
+('2019-07-21',201930,7,2019,21,30,201907,2019),
+('2019-07-22',201930,7,2019,22,30,201907,2019),
+('2019-07-23',201930,7,2019,23,30,201907,2019),
+('2019-07-24',201930,7,2019,24,30,201907,2019),
+('2019-07-25',201930,7,2019,25,30,201907,2019),
+('2019-07-26',201930,7,2019,26,30,201907,2019),
+('2019-07-27',201930,7,2019,27,30,201907,2019),
+('2019-07-28',201931,7,2019,28,31,201907,2019),
+('2019-07-29',201931,7,2019,29,31,201907,2019),
+('2019-07-30',201931,7,2019,30,31,201907,2019),
+('2019-07-31',201931,7,2019,31,31,201907,2019),
+('2019-08-01',201931,8,2019,1,31,201908,2019),
+('2019-08-02',201931,8,2019,2,31,201908,2019),
+('2019-08-03',201931,8,2019,3,31,201908,2019),
+('2019-08-04',201932,8,2019,4,32,201908,2019),
+('2019-08-05',201932,8,2019,5,32,201908,2019),
+('2019-08-06',201932,8,2019,6,32,201908,2019),
+('2019-08-07',201932,8,2019,7,32,201908,2019),
+('2019-08-08',201932,8,2019,8,32,201908,2019),
+('2019-08-09',201932,8,2019,9,32,201908,2019),
+('2019-08-10',201932,8,2019,10,32,201908,2019),
+('2019-08-11',201933,8,2019,11,33,201908,2019),
+('2019-08-12',201933,8,2019,12,33,201908,2019),
+('2019-08-13',201933,8,2019,13,33,201908,2019),
+('2019-08-14',201933,8,2019,14,33,201908,2019),
+('2019-08-15',201933,8,2019,15,33,201908,2019),
+('2019-08-16',201933,8,2019,16,33,201908,2019),
+('2019-08-17',201933,8,2019,17,33,201908,2019),
+('2019-08-18',201934,8,2019,18,34,201908,2019),
+('2019-08-19',201934,8,2019,19,34,201908,2019),
+('2019-08-20',201934,8,2019,20,34,201908,2019),
+('2019-08-21',201934,8,2019,21,34,201908,2019),
+('2019-08-22',201934,8,2019,22,34,201908,2019),
+('2019-08-23',201934,8,2019,23,34,201908,2019),
+('2019-08-24',201934,8,2019,24,34,201908,2019),
+('2019-08-25',201935,8,2019,25,35,201908,2019),
+('2019-08-26',201935,8,2019,26,35,201908,2019),
+('2019-08-27',201935,8,2019,27,35,201908,2019),
+('2019-08-28',201935,8,2019,28,35,201908,2019),
+('2019-08-29',201935,8,2019,29,35,201908,2019),
+('2019-08-30',201935,8,2019,30,35,201908,2019),
+('2019-08-31',201935,8,2019,31,35,201908,2019),
+('2019-09-01',201936,9,2019,1,36,201909,2019),
+('2019-09-02',201936,9,2019,2,36,201909,2019),
+('2019-09-03',201936,9,2019,3,36,201909,2019),
+('2019-09-04',201936,9,2019,4,36,201909,2019),
+('2019-09-05',201936,9,2019,5,36,201909,2019),
+('2019-09-06',201936,9,2019,6,36,201909,2019),
+('2019-09-07',201936,9,2019,7,36,201909,2019),
+('2019-09-08',201937,9,2019,8,37,201909,2019),
+('2019-09-09',201937,9,2019,9,37,201909,2019),
+('2019-09-10',201937,9,2019,10,37,201909,2019),
+('2019-09-11',201937,9,2019,11,37,201909,2019),
+('2019-09-12',201937,9,2019,12,37,201909,2019),
+('2019-09-13',201937,9,2019,13,37,201909,2019),
+('2019-09-14',201937,9,2019,14,37,201909,2019),
+('2019-09-15',201938,9,2019,15,38,201909,2019),
+('2019-09-16',201938,9,2019,16,38,201909,2019),
+('2019-09-17',201938,9,2019,17,38,201909,2019),
+('2019-09-18',201938,9,2019,18,38,201909,2019),
+('2019-09-19',201938,9,2019,19,38,201909,2019),
+('2019-09-20',201938,9,2019,20,38,201909,2019),
+('2019-09-21',201938,9,2019,21,38,201909,2019),
+('2019-09-22',201939,9,2019,22,39,201909,2019),
+('2019-09-23',201939,9,2019,23,39,201909,2019),
+('2019-09-24',201939,9,2019,24,39,201909,2019),
+('2019-09-25',201939,9,2019,25,39,201909,2019),
+('2019-09-26',201939,9,2019,26,39,201909,2019),
+('2019-09-27',201939,9,2019,27,39,201909,2019),
+('2019-09-28',201939,9,2019,28,39,201909,2019),
+('2019-09-29',201940,9,2019,29,40,201909,2019),
+('2019-09-30',201940,9,2019,30,40,201909,2019),
+('2019-10-01',201940,10,2019,1,40,201910,2019),
+('2019-10-02',201940,10,2019,2,40,201910,2019),
+('2019-10-03',201940,10,2019,3,40,201910,2019),
+('2019-10-04',201940,10,2019,4,40,201910,2019),
+('2019-10-05',201940,10,2019,5,40,201910,2019),
+('2019-10-06',201941,10,2019,6,41,201910,2019),
+('2019-10-07',201941,10,2019,7,41,201910,2019),
+('2019-10-08',201941,10,2019,8,41,201910,2019),
+('2019-10-09',201941,10,2019,9,41,201910,2019),
+('2019-10-10',201941,10,2019,10,41,201910,2019),
+('2019-10-11',201941,10,2019,11,41,201910,2019),
+('2019-10-12',201941,10,2019,12,41,201910,2019),
+('2019-10-13',201942,10,2019,13,42,201910,2019),
+('2019-10-14',201942,10,2019,14,42,201910,2019),
+('2019-10-15',201942,10,2019,15,42,201910,2019),
+('2019-10-16',201942,10,2019,16,42,201910,2019),
+('2019-10-17',201942,10,2019,17,42,201910,2019),
+('2019-10-18',201942,10,2019,18,42,201910,2019),
+('2019-10-19',201942,10,2019,19,42,201910,2019),
+('2019-10-20',201943,10,2019,20,43,201910,2019),
+('2019-10-21',201943,10,2019,21,43,201910,2019),
+('2019-10-22',201943,10,2019,22,43,201910,2019),
+('2019-10-23',201943,10,2019,23,43,201910,2019),
+('2019-10-24',201943,10,2019,24,43,201910,2019),
+('2019-10-25',201943,10,2019,25,43,201910,2019),
+('2019-10-26',201943,10,2019,26,43,201910,2019),
+('2019-10-27',201944,10,2019,27,44,201910,2019),
+('2019-10-28',201944,10,2019,28,44,201910,2019),
+('2019-10-29',201944,10,2019,29,44,201910,2019),
+('2019-10-30',201944,10,2019,30,44,201910,2019),
+('2019-10-31',201944,10,2019,31,44,201910,2019),
+('2019-11-01',201944,11,2019,1,44,201911,2019),
+('2019-11-02',201944,11,2019,2,44,201911,2019),
+('2019-11-03',201945,11,2019,3,45,201911,2019),
+('2019-11-04',201945,11,2019,4,45,201911,2019),
+('2019-11-05',201945,11,2019,5,45,201911,2019),
+('2019-11-06',201945,11,2019,6,45,201911,2019),
+('2019-11-07',201945,11,2019,7,45,201911,2019),
+('2019-11-08',201945,11,2019,8,45,201911,2019),
+('2019-11-09',201945,11,2019,9,45,201911,2019),
+('2019-11-10',201946,11,2019,10,46,201911,2019),
+('2019-11-11',201946,11,2019,11,46,201911,2019),
+('2019-11-12',201946,11,2019,12,46,201911,2019),
+('2019-11-13',201946,11,2019,13,46,201911,2019),
+('2019-11-14',201946,11,2019,14,46,201911,2019),
+('2019-11-15',201946,11,2019,15,46,201911,2019),
+('2019-11-16',201946,11,2019,16,46,201911,2019),
+('2019-11-17',201947,11,2019,17,47,201911,2019),
+('2019-11-18',201947,11,2019,18,47,201911,2019),
+('2019-11-19',201947,11,2019,19,47,201911,2019),
+('2019-11-20',201947,11,2019,20,47,201911,2019),
+('2019-11-21',201947,11,2019,21,47,201911,2019),
+('2019-11-22',201947,11,2019,22,47,201911,2019),
+('2019-11-23',201947,11,2019,23,47,201911,2019),
+('2019-11-24',201948,11,2019,24,48,201911,2019),
+('2019-11-25',201948,11,2019,25,48,201911,2019),
+('2019-11-26',201948,11,2019,26,48,201911,2019),
+('2019-11-27',201948,11,2019,27,48,201911,2019),
+('2019-11-28',201948,11,2019,28,48,201911,2019),
+('2019-11-29',201948,11,2019,29,48,201911,2019),
+('2019-11-30',201948,11,2019,30,48,201911,2019),
+('2019-12-01',201949,12,2019,1,49,201912,2020),
+('2019-12-02',201949,12,2019,2,49,201912,2020),
+('2019-12-03',201949,12,2019,3,49,201912,2020),
+('2019-12-04',201949,12,2019,4,49,201912,2020),
+('2019-12-05',201949,12,2019,5,49,201912,2020),
+('2019-12-06',201949,12,2019,6,49,201912,2020),
+('2019-12-07',201949,12,2019,7,49,201912,2020),
+('2019-12-08',201950,12,2019,8,50,201912,2020),
+('2019-12-09',201950,12,2019,9,50,201912,2020),
+('2019-12-10',201950,12,2019,10,50,201912,2020),
+('2019-12-11',201950,12,2019,11,50,201912,2020),
+('2019-12-12',201950,12,2019,12,50,201912,2020),
+('2019-12-13',201950,12,2019,13,50,201912,2020),
+('2019-12-14',201950,12,2019,14,50,201912,2020),
+('2019-12-15',201951,12,2019,15,51,201912,2020),
+('2019-12-16',201951,12,2019,16,51,201912,2020),
+('2019-12-17',201951,12,2019,17,51,201912,2020),
+('2019-12-18',201951,12,2019,18,51,201912,2020),
+('2019-12-19',201951,12,2019,19,51,201912,2020),
+('2019-12-20',201951,12,2019,20,51,201912,2020),
+('2019-12-21',201951,12,2019,21,51,201912,2020),
+('2019-12-22',201952,12,2019,22,52,201912,2020),
+('2019-12-23',201952,12,2019,23,52,201912,2020),
+('2019-12-24',201952,12,2019,24,52,201912,2020),
+('2019-12-25',201952,12,2019,25,52,201912,2020),
+('2019-12-26',201952,12,2019,26,52,201912,2020),
+('2019-12-27',201952,12,2019,27,52,201912,2020),
+('2019-12-28',201952,12,2019,28,52,201912,2020),
+('2019-12-29',201953,12,2019,29,1,201912,2020),
+('2019-12-30',201953,12,2019,30,1,201912,2020),
+('2019-12-31',201953,12,2019,31,1,201912,2020),
+('2020-01-01',201953,1,2020,1,1,202001,2020),
+('2020-01-02',201953,1,2020,2,1,202001,2020),
+('2020-01-03',201953,1,2020,3,1,202001,2020),
+('2020-01-04',201953,1,2020,4,1,202001,2020),
+('2020-01-05',202001,1,2020,5,2,202001,2020),
+('2020-01-06',202001,1,2020,6,2,202001,2020),
+('2020-01-07',202001,1,2020,7,2,202001,2020),
+('2020-01-08',202001,1,2020,8,2,202001,2020),
+('2020-01-09',202001,1,2020,9,2,202001,2020),
+('2020-01-10',202001,1,2020,10,2,202001,2020),
+('2020-01-11',202001,1,2020,11,2,202001,2020),
+('2020-01-12',202002,1,2020,12,3,202001,2020),
+('2020-01-13',202002,1,2020,13,3,202001,2020),
+('2020-01-14',202002,1,2020,14,3,202001,2020),
+('2020-01-15',202002,1,2020,15,3,202001,2020),
+('2020-01-16',202002,1,2020,16,3,202001,2020),
+('2020-01-17',202002,1,2020,17,3,202001,2020),
+('2020-01-18',202002,1,2020,18,3,202001,2020),
+('2020-01-19',202003,1,2020,19,4,202001,2020),
+('2020-01-20',202003,1,2020,20,4,202001,2020),
+('2020-01-21',202003,1,2020,21,4,202001,2020),
+('2020-01-22',202003,1,2020,22,4,202001,2020),
+('2020-01-23',202003,1,2020,23,4,202001,2020),
+('2020-01-24',202003,1,2020,24,4,202001,2020),
+('2020-01-25',202003,1,2020,25,4,202001,2020),
+('2020-01-26',202004,1,2020,26,5,202001,2020),
+('2020-01-27',202004,1,2020,27,5,202001,2020),
+('2020-01-28',202004,1,2020,28,5,202001,2020),
+('2020-01-29',202004,1,2020,29,5,202001,2020),
+('2020-01-30',202004,1,2020,30,5,202001,2020),
+('2020-01-31',202004,1,2020,31,5,202001,2020),
+('2020-02-01',202004,2,2020,1,5,202002,2020),
+('2020-02-02',202005,2,2020,2,6,202002,2020),
+('2020-02-03',202005,2,2020,3,6,202002,2020),
+('2020-02-04',202005,2,2020,4,6,202002,2020),
+('2020-02-05',202005,2,2020,5,6,202002,2020),
+('2020-02-06',202005,2,2020,6,6,202002,2020),
+('2020-02-07',202005,2,2020,7,6,202002,2020),
+('2020-02-08',202005,2,2020,8,6,202002,2020),
+('2020-02-09',202006,2,2020,9,7,202002,2020),
+('2020-02-10',202006,2,2020,10,7,202002,2020),
+('2020-02-11',202006,2,2020,11,7,202002,2020),
+('2020-02-12',202006,2,2020,12,7,202002,2020),
+('2020-02-13',202006,2,2020,13,7,202002,2020),
+('2020-02-14',202006,2,2020,14,7,202002,2020),
+('2020-02-15',202006,2,2020,15,7,202002,2020),
+('2020-02-16',202007,2,2020,16,8,202002,2020),
+('2020-02-17',202007,2,2020,17,8,202002,2020),
+('2020-02-18',202007,2,2020,18,8,202002,2020),
+('2020-02-19',202007,2,2020,19,8,202002,2020),
+('2020-02-20',202007,2,2020,20,8,202002,2020),
+('2020-02-21',202007,2,2020,21,8,202002,2020),
+('2020-02-22',202007,2,2020,22,8,202002,2020),
+('2020-02-23',202008,2,2020,23,9,202002,2020),
+('2020-02-24',202008,2,2020,24,9,202002,2020),
+('2020-02-25',202008,2,2020,25,9,202002,2020),
+('2020-02-26',202008,2,2020,26,9,202002,2020),
+('2020-02-27',202008,2,2020,27,9,202002,2020),
+('2020-02-28',202008,2,2020,28,9,202002,2020),
+('2020-02-29',202008,2,2020,29,9,202002,2020),
+('2020-03-01',202009,3,2020,1,10,202003,2020),
+('2020-03-02',202009,3,2020,2,10,202003,2020),
+('2020-03-03',202009,3,2020,3,10,202003,2020),
+('2020-03-04',202009,3,2020,4,10,202003,2020),
+('2020-03-05',202009,3,2020,5,10,202003,2020),
+('2020-03-06',202009,3,2020,6,10,202003,2020),
+('2020-03-07',202009,3,2020,7,10,202003,2020),
+('2020-03-08',202010,3,2020,8,11,202003,2020),
+('2020-03-09',202010,3,2020,9,11,202003,2020),
+('2020-03-10',202010,3,2020,10,11,202003,2020),
+('2020-03-11',202010,3,2020,11,11,202003,2020),
+('2020-03-12',202010,3,2020,12,11,202003,2020),
+('2020-03-13',202010,3,2020,13,11,202003,2020),
+('2020-03-14',202010,3,2020,14,11,202003,2020),
+('2020-03-15',202011,3,2020,15,12,202003,2020),
+('2020-03-16',202011,3,2020,16,12,202003,2020),
+('2020-03-17',202011,3,2020,17,12,202003,2020),
+('2020-03-18',202011,3,2020,18,12,202003,2020),
+('2020-03-19',202011,3,2020,19,12,202003,2020),
+('2020-03-20',202011,3,2020,20,12,202003,2020),
+('2020-03-21',202011,3,2020,21,12,202003,2020),
+('2020-03-22',202012,3,2020,22,13,202003,2020),
+('2020-03-23',202012,3,2020,23,13,202003,2020),
+('2020-03-24',202012,3,2020,24,13,202003,2020),
+('2020-03-25',202012,3,2020,25,13,202003,2020),
+('2020-03-26',202012,3,2020,26,13,202003,2020),
+('2020-03-27',202012,3,2020,27,13,202003,2020),
+('2020-03-28',202012,3,2020,28,13,202003,2020),
+('2020-03-29',202013,3,2020,29,14,202003,2020),
+('2020-03-30',202013,3,2020,30,14,202003,2020),
+('2020-03-31',202013,3,2020,31,14,202003,2020),
+('2020-04-01',202013,4,2020,1,14,202004,2020),
+('2020-04-02',202013,4,2020,2,14,202004,2020),
+('2020-04-03',202013,4,2020,3,14,202004,2020),
+('2020-04-04',202013,4,2020,4,14,202004,2020),
+('2020-04-05',202014,4,2020,5,15,202004,2020),
+('2020-04-06',202014,4,2020,6,15,202004,2020),
+('2020-04-07',202014,4,2020,7,15,202004,2020),
+('2020-04-08',202014,4,2020,8,15,202004,2020),
+('2020-04-09',202014,4,2020,9,15,202004,2020),
+('2020-04-10',202014,4,2020,10,15,202004,2020),
+('2020-04-11',202014,4,2020,11,15,202004,2020),
+('2020-04-12',202015,4,2020,12,16,202004,2020),
+('2020-04-13',202015,4,2020,13,16,202004,2020),
+('2020-04-14',202015,4,2020,14,16,202004,2020),
+('2020-04-15',202015,4,2020,15,16,202004,2020),
+('2020-04-16',202015,4,2020,16,16,202004,2020),
+('2020-04-17',202015,4,2020,17,16,202004,2020),
+('2020-04-18',202015,4,2020,18,16,202004,2020),
+('2020-04-19',202016,4,2020,19,17,202004,2020),
+('2020-04-20',202016,4,2020,20,17,202004,2020),
+('2020-04-21',202016,4,2020,21,17,202004,2020),
+('2020-04-22',202016,4,2020,22,17,202004,2020),
+('2020-04-23',202016,4,2020,23,17,202004,2020),
+('2020-04-24',202016,4,2020,24,17,202004,2020),
+('2020-04-25',202016,4,2020,25,17,202004,2020),
+('2020-04-26',202017,4,2020,26,18,202004,2020),
+('2020-04-27',202017,4,2020,27,18,202004,2020),
+('2020-04-28',202017,4,2020,28,18,202004,2020),
+('2020-04-29',202017,4,2020,29,18,202004,2020),
+('2020-04-30',202017,4,2020,30,18,202004,2020),
+('2020-05-01',202017,5,2020,1,18,202005,2020),
+('2020-05-02',202017,5,2020,2,18,202005,2020),
+('2020-05-03',202018,5,2020,3,19,202005,2020),
+('2020-05-04',202018,5,2020,4,19,202005,2020),
+('2020-05-05',202018,5,2020,5,19,202005,2020),
+('2020-05-06',202018,5,2020,6,19,202005,2020),
+('2020-05-07',202018,5,2020,7,19,202005,2020),
+('2020-05-08',202018,5,2020,8,19,202005,2020),
+('2020-05-09',202018,5,2020,9,19,202005,2020),
+('2020-05-10',202019,5,2020,10,20,202005,2020),
+('2020-05-11',202019,5,2020,11,20,202005,2020),
+('2020-05-12',202019,5,2020,12,20,202005,2020),
+('2020-05-13',202019,5,2020,13,20,202005,2020),
+('2020-05-14',202019,5,2020,14,20,202005,2020),
+('2020-05-15',202019,5,2020,15,20,202005,2020),
+('2020-05-16',202019,5,2020,16,20,202005,2020),
+('2020-05-17',202020,5,2020,17,21,202005,2020),
+('2020-05-18',202020,5,2020,18,21,202005,2020),
+('2020-05-19',202020,5,2020,19,21,202005,2020),
+('2020-05-20',202020,5,2020,20,21,202005,2020),
+('2020-05-21',202020,5,2020,21,21,202005,2020),
+('2020-05-22',202020,5,2020,22,21,202005,2020),
+('2020-05-23',202020,5,2020,23,21,202005,2020),
+('2020-05-24',202021,5,2020,24,22,202005,2020),
+('2020-05-25',202021,5,2020,25,22,202005,2020),
+('2020-05-26',202021,5,2020,26,22,202005,2020),
+('2020-05-27',202021,5,2020,27,22,202005,2020),
+('2020-05-28',202021,5,2020,28,22,202005,2020),
+('2020-05-29',202021,5,2020,29,22,202005,2020),
+('2020-05-30',202021,5,2020,30,22,202005,2020),
+('2020-05-31',202022,5,2020,31,23,202005,2020),
+('2020-06-01',202022,6,2020,1,23,202006,2020),
+('2020-06-02',202022,6,2020,2,23,202006,2020),
+('2020-06-03',202022,6,2020,3,23,202006,2020),
+('2020-06-04',202022,6,2020,4,23,202006,2020),
+('2020-06-05',202022,6,2020,5,23,202006,2020),
+('2020-06-06',202022,6,2020,6,23,202006,2020),
+('2020-06-07',202023,6,2020,7,24,202006,2020),
+('2020-06-08',202023,6,2020,8,24,202006,2020),
+('2020-06-09',202023,6,2020,9,24,202006,2020),
+('2020-06-10',202023,6,2020,10,24,202006,2020),
+('2020-06-11',202023,6,2020,11,24,202006,2020),
+('2020-06-12',202023,6,2020,12,24,202006,2020),
+('2020-06-13',202023,6,2020,13,24,202006,2020),
+('2020-06-14',202024,6,2020,14,25,202006,2020),
+('2020-06-15',202024,6,2020,15,25,202006,2020),
+('2020-06-16',202024,6,2020,16,25,202006,2020),
+('2020-06-17',202024,6,2020,17,25,202006,2020),
+('2020-06-18',202024,6,2020,18,25,202006,2020),
+('2020-06-19',202024,6,2020,19,25,202006,2020),
+('2020-06-20',202024,6,2020,20,25,202006,2020),
+('2020-06-21',202025,6,2020,21,26,202006,2020),
+('2020-06-22',202025,6,2020,22,26,202006,2020),
+('2020-06-23',202025,6,2020,23,26,202006,2020),
+('2020-06-24',202025,6,2020,24,26,202006,2020),
+('2020-06-25',202025,6,2020,25,26,202006,2020),
+('2020-06-26',202025,6,2020,26,26,202006,2020),
+('2020-06-27',202025,6,2020,27,26,202006,2020),
+('2020-06-28',202026,6,2020,28,27,202006,2020),
+('2020-06-29',202026,6,2020,29,27,202006,2020),
+('2020-06-30',202026,6,2020,30,27,202006,2020),
+('2020-07-01',202026,7,2020,1,27,202007,2020),
+('2020-07-02',202026,7,2020,2,27,202007,2020),
+('2020-07-03',202026,7,2020,3,27,202007,2020),
+('2020-07-04',202026,7,2020,4,27,202007,2020),
+('2020-07-05',202027,7,2020,5,28,202007,2020),
+('2020-07-06',202027,7,2020,6,28,202007,2020),
+('2020-07-07',202027,7,2020,7,28,202007,2020),
+('2020-07-08',202027,7,2020,8,28,202007,2020),
+('2020-07-09',202027,7,2020,9,28,202007,2020),
+('2020-07-10',202027,7,2020,10,28,202007,2020),
+('2020-07-11',202027,7,2020,11,28,202007,2020),
+('2020-07-12',202028,7,2020,12,29,202007,2020),
+('2020-07-13',202028,7,2020,13,29,202007,2020),
+('2020-07-14',202028,7,2020,14,29,202007,2020),
+('2020-07-15',202028,7,2020,15,29,202007,2020),
+('2020-07-16',202028,7,2020,16,29,202007,2020),
+('2020-07-17',202028,7,2020,17,29,202007,2020),
+('2020-07-18',202028,7,2020,18,29,202007,2020),
+('2020-07-19',202029,7,2020,19,30,202007,2020),
+('2020-07-20',202029,7,2020,20,30,202007,2020),
+('2020-07-21',202029,7,2020,21,30,202007,2020),
+('2020-07-22',202029,7,2020,22,30,202007,2020),
+('2020-07-23',202029,7,2020,23,30,202007,2020),
+('2020-07-24',202029,7,2020,24,30,202007,2020),
+('2020-07-25',202029,7,2020,25,30,202007,2020),
+('2020-07-26',202030,7,2020,26,31,202007,2020),
+('2020-07-27',202030,7,2020,27,31,202007,2020),
+('2020-07-28',202030,7,2020,28,31,202007,2020),
+('2020-07-29',202030,7,2020,29,31,202007,2020),
+('2020-07-30',202030,7,2020,30,31,202007,2020),
+('2020-07-31',202030,7,2020,31,31,202007,2020),
+('2020-08-01',202030,8,2020,1,31,202008,2020),
+('2020-08-02',202031,8,2020,2,32,202008,2020),
+('2020-08-03',202031,8,2020,3,32,202008,2020),
+('2020-08-04',202031,8,2020,4,32,202008,2020),
+('2020-08-05',202031,8,2020,5,32,202008,2020),
+('2020-08-06',202031,8,2020,6,32,202008,2020),
+('2020-08-07',202031,8,2020,7,32,202008,2020),
+('2020-08-08',202031,8,2020,8,32,202008,2020),
+('2020-08-09',202032,8,2020,9,33,202008,2020),
+('2020-08-10',202032,8,2020,10,33,202008,2020),
+('2020-08-11',202032,8,2020,11,33,202008,2020),
+('2020-08-12',202032,8,2020,12,33,202008,2020),
+('2020-08-13',202032,8,2020,13,33,202008,2020),
+('2020-08-14',202032,8,2020,14,33,202008,2020),
+('2020-08-15',202032,8,2020,15,33,202008,2020),
+('2020-08-16',202033,8,2020,16,34,202008,2020),
+('2020-08-17',202033,8,2020,17,34,202008,2020),
+('2020-08-18',202033,8,2020,18,34,202008,2020),
+('2020-08-19',202033,8,2020,19,34,202008,2020),
+('2020-08-20',202033,8,2020,20,34,202008,2020),
+('2020-08-21',202033,8,2020,21,34,202008,2020),
+('2020-08-22',202033,8,2020,22,34,202008,2020),
+('2020-08-23',202034,8,2020,23,35,202008,2020),
+('2020-08-24',202034,8,2020,24,35,202008,2020),
+('2020-08-25',202034,8,2020,25,35,202008,2020),
+('2020-08-26',202034,8,2020,26,35,202008,2020),
+('2020-08-27',202034,8,2020,27,35,202008,2020),
+('2020-08-28',202034,8,2020,28,35,202008,2020),
+('2020-08-29',202034,8,2020,29,35,202008,2020),
+('2020-08-30',202035,8,2020,30,36,202008,2020),
+('2020-08-31',202035,8,2020,31,36,202008,2020),
+('2020-09-01',202035,9,2020,1,36,202009,2020),
+('2020-09-02',202035,9,2020,2,36,202009,2020),
+('2020-09-03',202035,9,2020,3,36,202009,2020),
+('2020-09-04',202035,9,2020,4,36,202009,2020),
+('2020-09-05',202035,9,2020,5,36,202009,2020),
+('2020-09-06',202036,9,2020,6,37,202009,2020),
+('2020-09-07',202036,9,2020,7,37,202009,2020),
+('2020-09-08',202036,9,2020,8,37,202009,2020),
+('2020-09-09',202036,9,2020,9,37,202009,2020),
+('2020-09-10',202036,9,2020,10,37,202009,2020),
+('2020-09-11',202036,9,2020,11,37,202009,2020),
+('2020-09-12',202036,9,2020,12,37,202009,2020),
+('2020-09-13',202037,9,2020,13,38,202009,2020),
+('2020-09-14',202037,9,2020,14,38,202009,2020),
+('2020-09-15',202037,9,2020,15,38,202009,2020),
+('2020-09-16',202037,9,2020,16,38,202009,2020),
+('2020-09-17',202037,9,2020,17,38,202009,2020),
+('2020-09-18',202037,9,2020,18,38,202009,2020),
+('2020-09-19',202037,9,2020,19,38,202009,2020),
+('2020-09-20',202038,9,2020,20,39,202009,2020),
+('2020-09-21',202038,9,2020,21,39,202009,2020),
+('2020-09-22',202038,9,2020,22,39,202009,2020),
+('2020-09-23',202038,9,2020,23,39,202009,2020),
+('2020-09-24',202038,9,2020,24,39,202009,2020),
+('2020-09-25',202038,9,2020,25,39,202009,2020),
+('2020-09-26',202038,9,2020,26,39,202009,2020),
+('2020-09-27',202039,9,2020,27,40,202009,2020),
+('2020-09-28',202039,9,2020,28,40,202009,2020),
+('2020-09-29',202039,9,2020,29,40,202009,2020),
+('2020-09-30',202039,9,2020,30,40,202009,2020),
+('2020-10-01',202039,10,2020,1,40,202010,2020),
+('2020-10-02',202039,10,2020,2,40,202010,2020),
+('2020-10-03',202039,10,2020,3,40,202010,2020),
+('2020-10-04',202040,10,2020,4,41,202010,2020),
+('2020-10-05',202040,10,2020,5,41,202010,2020),
+('2020-10-06',202040,10,2020,6,41,202010,2020),
+('2020-10-07',202040,10,2020,7,41,202010,2020),
+('2020-10-08',202040,10,2020,8,41,202010,2020),
+('2020-10-09',202040,10,2020,9,41,202010,2020),
+('2020-10-10',202040,10,2020,10,41,202010,2020),
+('2020-10-11',202041,10,2020,11,42,202010,2020),
+('2020-10-12',202041,10,2020,12,42,202010,2020),
+('2020-10-13',202041,10,2020,13,42,202010,2020),
+('2020-10-14',202041,10,2020,14,42,202010,2020),
+('2020-10-15',202041,10,2020,15,42,202010,2020),
+('2020-10-16',202041,10,2020,16,42,202010,2020),
+('2020-10-17',202041,10,2020,17,42,202010,2020),
+('2020-10-18',202042,10,2020,18,43,202010,2020),
+('2020-10-19',202042,10,2020,19,43,202010,2020),
+('2020-10-20',202042,10,2020,20,43,202010,2020),
+('2020-10-21',202042,10,2020,21,43,202010,2020),
+('2020-10-22',202042,10,2020,22,43,202010,2020),
+('2020-10-23',202042,10,2020,23,43,202010,2020),
+('2020-10-24',202042,10,2020,24,43,202010,2020),
+('2020-10-25',202043,10,2020,25,44,202010,2020),
+('2020-10-26',202043,10,2020,26,44,202010,2020),
+('2020-10-27',202043,10,2020,27,44,202010,2020),
+('2020-10-28',202043,10,2020,28,44,202010,2020),
+('2020-10-29',202043,10,2020,29,44,202010,2020),
+('2020-10-30',202043,10,2020,30,44,202010,2020),
+('2020-10-31',202043,10,2020,31,44,202010,2020),
+('2020-11-01',202044,11,2020,1,45,202011,2020),
+('2020-11-02',202044,11,2020,2,45,202011,2020),
+('2020-11-03',202044,11,2020,3,45,202011,2020),
+('2020-11-04',202044,11,2020,4,45,202011,2020),
+('2020-11-05',202044,11,2020,5,45,202011,2020),
+('2020-11-06',202044,11,2020,6,45,202011,2020),
+('2020-11-07',202044,11,2020,7,45,202011,2020),
+('2020-11-08',202045,11,2020,8,46,202011,2020),
+('2020-11-09',202045,11,2020,9,46,202011,2020),
+('2020-11-10',202045,11,2020,10,46,202011,2020),
+('2020-11-11',202045,11,2020,11,46,202011,2020),
+('2020-11-12',202045,11,2020,12,46,202011,2020),
+('2020-11-13',202045,11,2020,13,46,202011,2020),
+('2020-11-14',202045,11,2020,14,46,202011,2020),
+('2020-11-15',202046,11,2020,15,47,202011,2020),
+('2020-11-16',202046,11,2020,16,47,202011,2020),
+('2020-11-17',202046,11,2020,17,47,202011,2020),
+('2020-11-18',202046,11,2020,18,47,202011,2020),
+('2020-11-19',202046,11,2020,19,47,202011,2020),
+('2020-11-20',202046,11,2020,20,47,202011,2020),
+('2020-11-21',202046,11,2020,21,47,202011,2020),
+('2020-11-22',202047,11,2020,22,48,202011,2020),
+('2020-11-23',202047,11,2020,23,48,202011,2020),
+('2020-11-24',202047,11,2020,24,48,202011,2020),
+('2020-11-25',202047,11,2020,25,48,202011,2020),
+('2020-11-26',202047,11,2020,26,48,202011,2020),
+('2020-11-27',202047,11,2020,27,48,202011,2020),
+('2020-11-28',202047,11,2020,28,48,202011,2020),
+('2020-11-29',202048,11,2020,29,49,202011,2020),
+('2020-11-30',202048,11,2020,30,49,202011,2020),
+('2020-12-01',202048,12,2020,1,49,202012,2021),
+('2020-12-02',202048,12,2020,2,49,202012,2021),
+('2020-12-03',202048,12,2020,3,49,202012,2021),
+('2020-12-04',202048,12,2020,4,49,202012,2021),
+('2020-12-05',202048,12,2020,5,49,202012,2021),
+('2020-12-06',202049,12,2020,6,50,202012,2021),
+('2020-12-07',202049,12,2020,7,50,202012,2021),
+('2020-12-08',202049,12,2020,8,50,202012,2021),
+('2020-12-09',202049,12,2020,9,50,202012,2021),
+('2020-12-10',202049,12,2020,10,50,202012,2021),
+('2020-12-11',202049,12,2020,11,50,202012,2021),
+('2020-12-12',202049,12,2020,12,50,202012,2021),
+('2020-12-13',202050,12,2020,13,51,202012,2021),
+('2020-12-14',202050,12,2020,14,51,202012,2021),
+('2020-12-15',202050,12,2020,15,51,202012,2021),
+('2020-12-16',202050,12,2020,16,51,202012,2021),
+('2020-12-17',202050,12,2020,17,51,202012,2021),
+('2020-12-18',202050,12,2020,18,51,202012,2021),
+('2020-12-19',202050,12,2020,19,51,202012,2021),
+('2020-12-20',202051,12,2020,20,52,202012,2021),
+('2020-12-21',202051,12,2020,21,52,202012,2021),
+('2020-12-22',202051,12,2020,22,52,202012,2021),
+('2020-12-23',202051,12,2020,23,52,202012,2021),
+('2020-12-24',202051,12,2020,24,52,202012,2021),
+('2020-12-25',202051,12,2020,25,52,202012,2021),
+('2020-12-26',202051,12,2020,26,52,202012,2021),
+('2020-12-27',202052,12,2020,27,53,202012,2021),
+('2020-12-28',202052,12,2020,28,53,202012,2021),
+('2020-12-29',202052,12,2020,29,53,202012,2021),
+('2020-12-30',202052,12,2020,30,53,202012,2021),
+('2020-12-31',202052,12,2020,31,53,202012,2021),
+('2021-01-01',202101,1,2021,1,1,202101,2021),
+('2021-01-02',202101,1,2021,2,1,202101,2021),
+('2021-01-03',202101,1,2021,3,1,202101,2021),
+('2021-01-04',202101,1,2021,4,1,202101,2021),
+('2021-01-05',202101,1,2021,5,1,202101,2021),
+('2021-01-06',202101,1,2021,6,1,202101,2021),
+('2021-01-07',202101,1,2021,7,1,202101,2021),
+('2021-01-08',202101,1,2021,8,1,202101,2021),
+('2021-01-09',202101,1,2021,9,1,202101,2021),
+('2021-01-10',202102,1,2021,10,2,202101,2021),
+('2021-01-11',202102,1,2021,11,2,202101,2021),
+('2021-01-12',202102,1,2021,12,2,202101,2021),
+('2021-01-13',202102,1,2021,13,2,202101,2021),
+('2021-01-14',202102,1,2021,14,2,202101,2021),
+('2021-01-15',202102,1,2021,15,2,202101,2021),
+('2021-01-16',202102,1,2021,16,2,202101,2021),
+('2021-01-17',202103,1,2021,17,3,202101,2021),
+('2021-01-18',202103,1,2021,18,3,202101,2021),
+('2021-01-19',202103,1,2021,19,3,202101,2021),
+('2021-01-20',202103,1,2021,20,3,202101,2021),
+('2021-01-21',202103,1,2021,21,3,202101,2021),
+('2021-01-22',202103,1,2021,22,3,202101,2021),
+('2021-01-23',202103,1,2021,23,3,202101,2021),
+('2021-01-24',202104,1,2021,24,4,202101,2021),
+('2021-01-25',202104,1,2021,25,4,202101,2021),
+('2021-01-26',202104,1,2021,26,4,202101,2021),
+('2021-01-27',202104,1,2021,27,4,202101,2021),
+('2021-01-28',202104,1,2021,28,4,202101,2021),
+('2021-01-29',202104,1,2021,29,4,202101,2021),
+('2021-01-30',202104,1,2021,30,4,202101,2021),
+('2021-01-31',202105,1,2021,31,5,202101,2021),
+('2021-02-01',202105,2,2021,1,5,202102,2021),
+('2021-02-02',202105,2,2021,2,5,202102,2021),
+('2021-02-03',202105,2,2021,3,5,202102,2021),
+('2021-02-04',202105,2,2021,4,5,202102,2021),
+('2021-02-05',202105,2,2021,5,5,202102,2021),
+('2021-02-06',202105,2,2021,6,5,202102,2021),
+('2021-02-07',202106,2,2021,7,6,202102,2021),
+('2021-02-08',202106,2,2021,8,6,202102,2021),
+('2021-02-09',202106,2,2021,9,6,202102,2021),
+('2021-02-10',202106,2,2021,10,6,202102,2021),
+('2021-02-11',202106,2,2021,11,6,202102,2021),
+('2021-02-12',202106,2,2021,12,6,202102,2021),
+('2021-02-13',202106,2,2021,13,6,202102,2021),
+('2021-02-14',202107,2,2021,14,7,202102,2021),
+('2021-02-15',202107,2,2021,15,7,202102,2021),
+('2021-02-16',202107,2,2021,16,7,202102,2021),
+('2021-02-17',202107,2,2021,17,7,202102,2021),
+('2021-02-18',202107,2,2021,18,7,202102,2021),
+('2021-02-19',202107,2,2021,19,7,202102,2021),
+('2021-02-20',202107,2,2021,20,7,202102,2021),
+('2021-02-21',202108,2,2021,21,8,202102,2021),
+('2021-02-22',202108,2,2021,22,8,202102,2021),
+('2021-02-23',202108,2,2021,23,8,202102,2021),
+('2021-02-24',202108,2,2021,24,8,202102,2021),
+('2021-02-25',202108,2,2021,25,8,202102,2021),
+('2021-02-26',202108,2,2021,26,8,202102,2021),
+('2021-02-27',202108,2,2021,27,8,202102,2021),
+('2021-02-28',202109,2,2021,28,9,202102,2021),
+('2021-03-01',202109,3,2021,1,9,202103,2021),
+('2021-03-02',202109,3,2021,2,9,202103,2021),
+('2021-03-03',202109,3,2021,3,9,202103,2021),
+('2021-03-04',202109,3,2021,4,9,202103,2021),
+('2021-03-05',202109,3,2021,5,9,202103,2021),
+('2021-03-06',202109,3,2021,6,9,202103,2021),
+('2021-03-07',202110,3,2021,7,10,202103,2021),
+('2021-03-08',202110,3,2021,8,10,202103,2021),
+('2021-03-09',202110,3,2021,9,10,202103,2021),
+('2021-03-10',202110,3,2021,10,10,202103,2021),
+('2021-03-11',202110,3,2021,11,10,202103,2021),
+('2021-03-12',202110,3,2021,12,10,202103,2021),
+('2021-03-13',202110,3,2021,13,10,202103,2021),
+('2021-03-14',202111,3,2021,14,11,202103,2021),
+('2021-03-15',202111,3,2021,15,11,202103,2021),
+('2021-03-16',202111,3,2021,16,11,202103,2021),
+('2021-03-17',202111,3,2021,17,11,202103,2021),
+('2021-03-18',202111,3,2021,18,11,202103,2021),
+('2021-03-19',202111,3,2021,19,11,202103,2021),
+('2021-03-20',202111,3,2021,20,11,202103,2021),
+('2021-03-21',202112,3,2021,21,12,202103,2021),
+('2021-03-22',202112,3,2021,22,12,202103,2021),
+('2021-03-23',202112,3,2021,23,12,202103,2021),
+('2021-03-24',202112,3,2021,24,12,202103,2021),
+('2021-03-25',202112,3,2021,25,12,202103,2021),
+('2021-03-26',202112,3,2021,26,12,202103,2021),
+('2021-03-27',202112,3,2021,27,12,202103,2021),
+('2021-03-28',202113,3,2021,28,13,202103,2021),
+('2021-03-29',202113,3,2021,29,13,202103,2021),
+('2021-03-30',202113,3,2021,30,13,202103,2021),
+('2021-03-31',202113,3,2021,31,13,202103,2021),
+('2021-04-01',202113,4,2021,1,13,202104,2021),
+('2021-04-02',202113,4,2021,2,13,202104,2021),
+('2021-04-03',202113,4,2021,3,13,202104,2021),
+('2021-04-04',202114,4,2021,4,14,202104,2021),
+('2021-04-05',202114,4,2021,5,14,202104,2021),
+('2021-04-06',202114,4,2021,6,14,202104,2021),
+('2021-04-07',202114,4,2021,7,14,202104,2021),
+('2021-04-08',202114,4,2021,8,14,202104,2021),
+('2021-04-09',202114,4,2021,9,14,202104,2021),
+('2021-04-10',202114,4,2021,10,14,202104,2021),
+('2021-04-11',202115,4,2021,11,15,202104,2021),
+('2021-04-12',202115,4,2021,12,15,202104,2021),
+('2021-04-13',202115,4,2021,13,15,202104,2021),
+('2021-04-14',202115,4,2021,14,15,202104,2021),
+('2021-04-15',202115,4,2021,15,15,202104,2021),
+('2021-04-16',202115,4,2021,16,15,202104,2021),
+('2021-04-17',202115,4,2021,17,15,202104,2021),
+('2021-04-18',202116,4,2021,18,16,202104,2021),
+('2021-04-19',202116,4,2021,19,16,202104,2021),
+('2021-04-20',202116,4,2021,20,16,202104,2021),
+('2021-04-21',202116,4,2021,21,16,202104,2021),
+('2021-04-22',202116,4,2021,22,16,202104,2021),
+('2021-04-23',202116,4,2021,23,16,202104,2021),
+('2021-04-24',202116,4,2021,24,16,202104,2021),
+('2021-04-25',202117,4,2021,25,17,202104,2021),
+('2021-04-26',202117,4,2021,26,17,202104,2021),
+('2021-04-27',202117,4,2021,27,17,202104,2021),
+('2021-04-28',202117,4,2021,28,17,202104,2021),
+('2021-04-29',202117,4,2021,29,17,202104,2021),
+('2021-04-30',202117,4,2021,30,17,202104,2021),
+('2021-05-01',202117,5,2021,1,17,202105,2021),
+('2021-05-02',202118,5,2021,2,18,202105,2021),
+('2021-05-03',202118,5,2021,3,18,202105,2021),
+('2021-05-04',202118,5,2021,4,18,202105,2021),
+('2021-05-05',202118,5,2021,5,18,202105,2021),
+('2021-05-06',202118,5,2021,6,18,202105,2021),
+('2021-05-07',202118,5,2021,7,18,202105,2021),
+('2021-05-08',202118,5,2021,8,18,202105,2021),
+('2021-05-09',202119,5,2021,9,19,202105,2021),
+('2021-05-10',202119,5,2021,10,19,202105,2021),
+('2021-05-11',202119,5,2021,11,19,202105,2021),
+('2021-05-12',202119,5,2021,12,19,202105,2021),
+('2021-05-13',202119,5,2021,13,19,202105,2021),
+('2021-05-14',202119,5,2021,14,19,202105,2021),
+('2021-05-15',202119,5,2021,15,19,202105,2021),
+('2021-05-16',202120,5,2021,16,20,202105,2021),
+('2021-05-17',202120,5,2021,17,20,202105,2021),
+('2021-05-18',202120,5,2021,18,20,202105,2021),
+('2021-05-19',202120,5,2021,19,20,202105,2021),
+('2021-05-20',202120,5,2021,20,20,202105,2021),
+('2021-05-21',202120,5,2021,21,20,202105,2021),
+('2021-05-22',202120,5,2021,22,20,202105,2021),
+('2021-05-23',202121,5,2021,23,21,202105,2021),
+('2021-05-24',202121,5,2021,24,21,202105,2021),
+('2021-05-25',202121,5,2021,25,21,202105,2021),
+('2021-05-26',202121,5,2021,26,21,202105,2021),
+('2021-05-27',202121,5,2021,27,21,202105,2021),
+('2021-05-28',202121,5,2021,28,21,202105,2021),
+('2021-05-29',202121,5,2021,29,21,202105,2021),
+('2021-05-30',202122,5,2021,30,22,202105,2021),
+('2021-05-31',202122,5,2021,31,22,202105,2021),
+('2021-06-01',202122,6,2021,1,22,202106,2021),
+('2021-06-02',202122,6,2021,2,22,202106,2021),
+('2021-06-03',202122,6,2021,3,22,202106,2021),
+('2021-06-04',202122,6,2021,4,22,202106,2021),
+('2021-06-05',202122,6,2021,5,22,202106,2021),
+('2021-06-06',202123,6,2021,6,23,202106,2021),
+('2021-06-07',202123,6,2021,7,23,202106,2021),
+('2021-06-08',202123,6,2021,8,23,202106,2021),
+('2021-06-09',202123,6,2021,9,23,202106,2021),
+('2021-06-10',202123,6,2021,10,23,202106,2021),
+('2021-06-11',202123,6,2021,11,23,202106,2021),
+('2021-06-12',202123,6,2021,12,23,202106,2021),
+('2021-06-13',202124,6,2021,13,24,202106,2021),
+('2021-06-14',202124,6,2021,14,24,202106,2021),
+('2021-06-15',202124,6,2021,15,24,202106,2021),
+('2021-06-16',202124,6,2021,16,24,202106,2021),
+('2021-06-17',202124,6,2021,17,24,202106,2021),
+('2021-06-18',202124,6,2021,18,24,202106,2021),
+('2021-06-19',202124,6,2021,19,24,202106,2021),
+('2021-06-20',202125,6,2021,20,25,202106,2021),
+('2021-06-21',202125,6,2021,21,25,202106,2021),
+('2021-06-22',202125,6,2021,22,25,202106,2021),
+('2021-06-23',202125,6,2021,23,25,202106,2021),
+('2021-06-24',202125,6,2021,24,25,202106,2021),
+('2021-06-25',202125,6,2021,25,25,202106,2021),
+('2021-06-26',202125,6,2021,26,25,202106,2021),
+('2021-06-27',202126,6,2021,27,26,202106,2021),
+('2021-06-28',202126,6,2021,28,26,202106,2021),
+('2021-06-29',202126,6,2021,29,26,202106,2021),
+('2021-06-30',202126,6,2021,30,26,202106,2021),
+('2021-07-01',202126,7,2021,1,26,202107,2021),
+('2021-07-02',202126,7,2021,2,26,202107,2021),
+('2021-07-03',202126,7,2021,3,26,202107,2021),
+('2021-07-04',202127,7,2021,4,27,202107,2021),
+('2021-07-05',202127,7,2021,5,27,202107,2021),
+('2021-07-06',202127,7,2021,6,27,202107,2021),
+('2021-07-07',202127,7,2021,7,27,202107,2021),
+('2021-07-08',202127,7,2021,8,27,202107,2021),
+('2021-07-09',202127,7,2021,9,27,202107,2021),
+('2021-07-10',202127,7,2021,10,27,202107,2021),
+('2021-07-11',202128,7,2021,11,28,202107,2021),
+('2021-07-12',202128,7,2021,12,28,202107,2021),
+('2021-07-13',202128,7,2021,13,28,202107,2021),
+('2021-07-14',202128,7,2021,14,28,202107,2021),
+('2021-07-15',202128,7,2021,15,28,202107,2021),
+('2021-07-16',202128,7,2021,16,28,202107,2021),
+('2021-07-17',202128,7,2021,17,28,202107,2021),
+('2021-07-18',202129,7,2021,18,29,202107,2021),
+('2021-07-19',202129,7,2021,19,29,202107,2021),
+('2021-07-20',202129,7,2021,20,29,202107,2021),
+('2021-07-21',202129,7,2021,21,29,202107,2021),
+('2021-07-22',202129,7,2021,22,29,202107,2021),
+('2021-07-23',202129,7,2021,23,29,202107,2021),
+('2021-07-24',202129,7,2021,24,29,202107,2021),
+('2021-07-25',202130,7,2021,25,30,202107,2021),
+('2021-07-26',202130,7,2021,26,30,202107,2021),
+('2021-07-27',202130,7,2021,27,30,202107,2021),
+('2021-07-28',202130,7,2021,28,30,202107,2021),
+('2021-07-29',202130,7,2021,29,30,202107,2021),
+('2021-07-30',202130,7,2021,30,30,202107,2021),
+('2021-07-31',202130,7,2021,31,30,202107,2021),
+('2021-08-01',202131,8,2021,1,31,202108,2021),
+('2021-08-02',202131,8,2021,2,31,202108,2021),
+('2021-08-03',202131,8,2021,3,31,202108,2021),
+('2021-08-04',202131,8,2021,4,31,202108,2021),
+('2021-08-05',202131,8,2021,5,31,202108,2021),
+('2021-08-06',202131,8,2021,6,31,202108,2021),
+('2021-08-07',202131,8,2021,7,31,202108,2021),
+('2021-08-08',202132,8,2021,8,32,202108,2021),
+('2021-08-09',202132,8,2021,9,32,202108,2021),
+('2021-08-10',202132,8,2021,10,32,202108,2021),
+('2021-08-11',202132,8,2021,11,32,202108,2021),
+('2021-08-12',202132,8,2021,12,32,202108,2021),
+('2021-08-13',202132,8,2021,13,32,202108,2021),
+('2021-08-14',202132,8,2021,14,32,202108,2021),
+('2021-08-15',202133,8,2021,15,33,202108,2021),
+('2021-08-16',202133,8,2021,16,33,202108,2021),
+('2021-08-17',202133,8,2021,17,33,202108,2021),
+('2021-08-18',202133,8,2021,18,33,202108,2021),
+('2021-08-19',202133,8,2021,19,33,202108,2021),
+('2021-08-20',202133,8,2021,20,33,202108,2021),
+('2021-08-21',202133,8,2021,21,33,202108,2021),
+('2021-08-22',202134,8,2021,22,34,202108,2021),
+('2021-08-23',202134,8,2021,23,34,202108,2021),
+('2021-08-24',202134,8,2021,24,34,202108,2021),
+('2021-08-25',202134,8,2021,25,34,202108,2021),
+('2021-08-26',202134,8,2021,26,34,202108,2021),
+('2021-08-27',202134,8,2021,27,34,202108,2021),
+('2021-08-28',202134,8,2021,28,34,202108,2021),
+('2021-08-29',202135,8,2021,29,35,202108,2021),
+('2021-08-30',202135,8,2021,30,35,202108,2021),
+('2021-08-31',202135,8,2021,31,35,202108,2021),
+('2021-09-01',202135,9,2021,1,35,202109,2021),
+('2021-09-02',202135,9,2021,2,35,202109,2021),
+('2021-09-03',202135,9,2021,3,35,202109,2021),
+('2021-09-04',202135,9,2021,4,35,202109,2021),
+('2021-09-05',202136,9,2021,5,36,202109,2021),
+('2021-09-06',202136,9,2021,6,36,202109,2021),
+('2021-09-07',202136,9,2021,7,36,202109,2021),
+('2021-09-08',202136,9,2021,8,36,202109,2021),
+('2021-09-09',202136,9,2021,9,36,202109,2021),
+('2021-09-10',202136,9,2021,10,36,202109,2021),
+('2021-09-11',202136,9,2021,11,36,202109,2021),
+('2021-09-12',202137,9,2021,12,37,202109,2021),
+('2021-09-13',202137,9,2021,13,37,202109,2021),
+('2021-09-14',202137,9,2021,14,37,202109,2021),
+('2021-09-15',202137,9,2021,15,37,202109,2021),
+('2021-09-16',202137,9,2021,16,37,202109,2021),
+('2021-09-17',202137,9,2021,17,37,202109,2021),
+('2021-09-18',202137,9,2021,18,37,202109,2021),
+('2021-09-19',202138,9,2021,19,38,202109,2021),
+('2021-09-20',202138,9,2021,20,38,202109,2021),
+('2021-09-21',202138,9,2021,21,38,202109,2021),
+('2021-09-22',202138,9,2021,22,38,202109,2021),
+('2021-09-23',202138,9,2021,23,38,202109,2021),
+('2021-09-24',202138,9,2021,24,38,202109,2021),
+('2021-09-25',202138,9,2021,25,38,202109,2021),
+('2021-09-26',202139,9,2021,26,39,202109,2021),
+('2021-09-27',202139,9,2021,27,39,202109,2021),
+('2021-09-28',202139,9,2021,28,39,202109,2021),
+('2021-09-29',202139,9,2021,29,39,202109,2021),
+('2021-09-30',202139,9,2021,30,39,202109,2021),
+('2021-10-01',202139,10,2021,1,39,202110,2021),
+('2021-10-02',202139,10,2021,2,39,202110,2021),
+('2021-10-03',202140,10,2021,3,40,202110,2021),
+('2021-10-04',202140,10,2021,4,40,202110,2021),
+('2021-10-05',202140,10,2021,5,40,202110,2021),
+('2021-10-06',202140,10,2021,6,40,202110,2021),
+('2021-10-07',202140,10,2021,7,40,202110,2021),
+('2021-10-08',202140,10,2021,8,40,202110,2021),
+('2021-10-09',202140,10,2021,9,40,202110,2021),
+('2021-10-10',202141,10,2021,10,41,202110,2021),
+('2021-10-11',202141,10,2021,11,41,202110,2021),
+('2021-10-12',202141,10,2021,12,41,202110,2021),
+('2021-10-13',202141,10,2021,13,41,202110,2021),
+('2021-10-14',202141,10,2021,14,41,202110,2021),
+('2021-10-15',202141,10,2021,15,41,202110,2021),
+('2021-10-16',202141,10,2021,16,41,202110,2021),
+('2021-10-17',202142,10,2021,17,42,202110,2021),
+('2021-10-18',202142,10,2021,18,42,202110,2021),
+('2021-10-19',202142,10,2021,19,42,202110,2021),
+('2021-10-20',202142,10,2021,20,42,202110,2021),
+('2021-10-21',202142,10,2021,21,42,202110,2021),
+('2021-10-22',202142,10,2021,22,42,202110,2021),
+('2021-10-23',202142,10,2021,23,42,202110,2021),
+('2021-10-24',202143,10,2021,24,43,202110,2021),
+('2021-10-25',202143,10,2021,25,43,202110,2021),
+('2021-10-26',202143,10,2021,26,43,202110,2021),
+('2021-10-27',202143,10,2021,27,43,202110,2021),
+('2021-10-28',202143,10,2021,28,43,202110,2021),
+('2021-10-29',202143,10,2021,29,43,202110,2021),
+('2021-10-30',202143,10,2021,30,43,202110,2021),
+('2021-10-31',202144,10,2021,31,44,202110,2021),
+('2021-11-01',202144,11,2021,1,44,202111,2021),
+('2021-11-02',202144,11,2021,2,44,202111,2021),
+('2021-11-03',202144,11,2021,3,44,202111,2021),
+('2021-11-04',202144,11,2021,4,44,202111,2021),
+('2021-11-05',202144,11,2021,5,44,202111,2021),
+('2021-11-06',202144,11,2021,6,44,202111,2021),
+('2021-11-07',202145,11,2021,7,45,202111,2021),
+('2021-11-08',202145,11,2021,8,45,202111,2021),
+('2021-11-09',202145,11,2021,9,45,202111,2021),
+('2021-11-10',202145,11,2021,10,45,202111,2021),
+('2021-11-11',202145,11,2021,11,45,202111,2021),
+('2021-11-12',202145,11,2021,12,45,202111,2021),
+('2021-11-13',202145,11,2021,13,45,202111,2021),
+('2021-11-14',202146,11,2021,14,46,202111,2021),
+('2021-11-15',202146,11,2021,15,46,202111,2021),
+('2021-11-16',202146,11,2021,16,46,202111,2021),
+('2021-11-17',202146,11,2021,17,46,202111,2021),
+('2021-11-18',202146,11,2021,18,46,202111,2021),
+('2021-11-19',202146,11,2021,19,46,202111,2021),
+('2021-11-20',202146,11,2021,20,46,202111,2021),
+('2021-11-21',202147,11,2021,21,47,202111,2021),
+('2021-11-22',202147,11,2021,22,47,202111,2021),
+('2021-11-23',202147,11,2021,23,47,202111,2021),
+('2021-11-24',202147,11,2021,24,47,202111,2021),
+('2021-11-25',202147,11,2021,25,47,202111,2021),
+('2021-11-26',202147,11,2021,26,47,202111,2021),
+('2021-11-27',202147,11,2021,27,47,202111,2021),
+('2021-11-28',202148,11,2021,28,48,202111,2021),
+('2021-11-29',202148,11,2021,29,48,202111,2021),
+('2021-11-30',202148,11,2021,30,48,202111,2021),
+('2021-12-01',202148,12,2021,1,48,202112,2022),
+('2021-12-02',202148,12,2021,2,48,202112,2022),
+('2021-12-03',202148,12,2021,3,48,202112,2022),
+('2021-12-04',202148,12,2021,4,48,202112,2022),
+('2021-12-05',202149,12,2021,5,49,202112,2022),
+('2021-12-06',202149,12,2021,6,49,202112,2022),
+('2021-12-07',202149,12,2021,7,49,202112,2022),
+('2021-12-08',202149,12,2021,8,49,202112,2022),
+('2021-12-09',202149,12,2021,9,49,202112,2022),
+('2021-12-10',202149,12,2021,10,49,202112,2022),
+('2021-12-11',202149,12,2021,11,49,202112,2022),
+('2021-12-12',202150,12,2021,12,50,202112,2022),
+('2021-12-13',202150,12,2021,13,50,202112,2022),
+('2021-12-14',202150,12,2021,14,50,202112,2022),
+('2021-12-15',202150,12,2021,15,50,202112,2022),
+('2021-12-16',202150,12,2021,16,50,202112,2022),
+('2021-12-17',202150,12,2021,17,50,202112,2022),
+('2021-12-18',202150,12,2021,18,50,202112,2022),
+('2021-12-19',202151,12,2021,19,51,202112,2022),
+('2021-12-20',202151,12,2021,20,51,202112,2022),
+('2021-12-21',202151,12,2021,21,51,202112,2022),
+('2021-12-22',202151,12,2021,22,51,202112,2022),
+('2021-12-23',202151,12,2021,23,51,202112,2022),
+('2021-12-24',202151,12,2021,24,51,202112,2022),
+('2021-12-25',202151,12,2021,25,51,202112,2022),
+('2021-12-26',202152,12,2021,26,52,202112,2022),
+('2021-12-27',202152,12,2021,27,52,202112,2022),
+('2021-12-28',202152,12,2021,28,52,202112,2022),
+('2021-12-29',202152,12,2021,29,52,202112,2022),
+('2021-12-30',202152,12,2021,30,52,202112,2022),
+('2021-12-31',202152,12,2021,31,52,202112,2022),
+('2022-01-01',202152,1,2022,1,52,202201,2022),
+('2022-01-02',202201,1,2022,2,1,202201,2022),
+('2022-01-03',202201,1,2022,3,1,202201,2022),
+('2022-01-04',202201,1,2022,4,1,202201,2022),
+('2022-01-05',202201,1,2022,5,1,202201,2022),
+('2022-01-06',202201,1,2022,6,1,202201,2022),
+('2022-01-07',202201,1,2022,7,1,202201,2022),
+('2022-01-08',202201,1,2022,8,1,202201,2022),
+('2022-01-09',202202,1,2022,9,2,202201,2022),
+('2022-01-10',202202,1,2022,10,2,202201,2022),
+('2022-01-11',202202,1,2022,11,2,202201,2022),
+('2022-01-12',202202,1,2022,12,2,202201,2022),
+('2022-01-13',202202,1,2022,13,2,202201,2022),
+('2022-01-14',202202,1,2022,14,2,202201,2022),
+('2022-01-15',202202,1,2022,15,2,202201,2022),
+('2022-01-16',202203,1,2022,16,3,202201,2022),
+('2022-01-17',202203,1,2022,17,3,202201,2022),
+('2022-01-18',202203,1,2022,18,3,202201,2022),
+('2022-01-19',202203,1,2022,19,3,202201,2022),
+('2022-01-20',202203,1,2022,20,3,202201,2022),
+('2022-01-21',202203,1,2022,21,3,202201,2022),
+('2022-01-22',202203,1,2022,22,3,202201,2022),
+('2022-01-23',202204,1,2022,23,4,202201,2022),
+('2022-01-24',202204,1,2022,24,4,202201,2022),
+('2022-01-25',202204,1,2022,25,4,202201,2022),
+('2022-01-26',202204,1,2022,26,4,202201,2022),
+('2022-01-27',202204,1,2022,27,4,202201,2022),
+('2022-01-28',202204,1,2022,28,4,202201,2022),
+('2022-01-29',202204,1,2022,29,4,202201,2022),
+('2022-01-30',202205,1,2022,30,5,202201,2022),
+('2022-01-31',202205,1,2022,31,5,202201,2022),
+('2022-02-01',202205,2,2022,1,5,202202,2022),
+('2022-02-02',202205,2,2022,2,5,202202,2022),
+('2022-02-03',202205,2,2022,3,5,202202,2022),
+('2022-02-04',202205,2,2022,4,5,202202,2022),
+('2022-02-05',202205,2,2022,5,5,202202,2022),
+('2022-02-06',202206,2,2022,6,6,202202,2022),
+('2022-02-07',202206,2,2022,7,6,202202,2022),
+('2022-02-08',202206,2,2022,8,6,202202,2022),
+('2022-02-09',202206,2,2022,9,6,202202,2022),
+('2022-02-10',202206,2,2022,10,6,202202,2022),
+('2022-02-11',202206,2,2022,11,6,202202,2022),
+('2022-02-12',202206,2,2022,12,6,202202,2022),
+('2022-02-13',202207,2,2022,13,7,202202,2022),
+('2022-02-14',202207,2,2022,14,7,202202,2022),
+('2022-02-15',202207,2,2022,15,7,202202,2022),
+('2022-02-16',202207,2,2022,16,7,202202,2022),
+('2022-02-17',202207,2,2022,17,7,202202,2022),
+('2022-02-18',202207,2,2022,18,7,202202,2022),
+('2022-02-19',202207,2,2022,19,7,202202,2022),
+('2022-02-20',202208,2,2022,20,8,202202,2022),
+('2022-02-21',202208,2,2022,21,8,202202,2022),
+('2022-02-22',202208,2,2022,22,8,202202,2022),
+('2022-02-23',202208,2,2022,23,8,202202,2022),
+('2022-02-24',202208,2,2022,24,8,202202,2022),
+('2022-02-25',202208,2,2022,25,8,202202,2022),
+('2022-02-26',202208,2,2022,26,8,202202,2022),
+('2022-02-27',202209,2,2022,27,9,202202,2022),
+('2022-02-28',202209,2,2022,28,9,202202,2022),
+('2022-03-01',202209,3,2022,1,9,202203,2022),
+('2022-03-02',202209,3,2022,2,9,202203,2022),
+('2022-03-03',202209,3,2022,3,9,202203,2022),
+('2022-03-04',202209,3,2022,4,9,202203,2022),
+('2022-03-05',202209,3,2022,5,9,202203,2022),
+('2022-03-06',202210,3,2022,6,10,202203,2022),
+('2022-03-07',202210,3,2022,7,10,202203,2022),
+('2022-03-08',202210,3,2022,8,10,202203,2022),
+('2022-03-09',202210,3,2022,9,10,202203,2022),
+('2022-03-10',202210,3,2022,10,10,202203,2022),
+('2022-03-11',202210,3,2022,11,10,202203,2022),
+('2022-03-12',202210,3,2022,12,10,202203,2022),
+('2022-03-13',202211,3,2022,13,11,202203,2022),
+('2022-03-14',202211,3,2022,14,11,202203,2022),
+('2022-03-15',202211,3,2022,15,11,202203,2022),
+('2022-03-16',202211,3,2022,16,11,202203,2022),
+('2022-03-17',202211,3,2022,17,11,202203,2022),
+('2022-03-18',202211,3,2022,18,11,202203,2022),
+('2022-03-19',202211,3,2022,19,11,202203,2022),
+('2022-03-20',202212,3,2022,20,12,202203,2022),
+('2022-03-21',202212,3,2022,21,12,202203,2022),
+('2022-03-22',202212,3,2022,22,12,202203,2022),
+('2022-03-23',202212,3,2022,23,12,202203,2022),
+('2022-03-24',202212,3,2022,24,12,202203,2022),
+('2022-03-25',202212,3,2022,25,12,202203,2022),
+('2022-03-26',202212,3,2022,26,12,202203,2022),
+('2022-03-27',202213,3,2022,27,13,202203,2022),
+('2022-03-28',202213,3,2022,28,13,202203,2022),
+('2022-03-29',202213,3,2022,29,13,202203,2022),
+('2022-03-30',202213,3,2022,30,13,202203,2022),
+('2022-03-31',202213,3,2022,31,13,202203,2022),
+('2022-04-01',202213,4,2022,1,13,202204,2022),
+('2022-04-02',202213,4,2022,2,13,202204,2022),
+('2022-04-03',202214,4,2022,3,14,202204,2022),
+('2022-04-04',202214,4,2022,4,14,202204,2022),
+('2022-04-05',202214,4,2022,5,14,202204,2022),
+('2022-04-06',202214,4,2022,6,14,202204,2022),
+('2022-04-07',202214,4,2022,7,14,202204,2022),
+('2022-04-08',202214,4,2022,8,14,202204,2022),
+('2022-04-09',202214,4,2022,9,14,202204,2022),
+('2022-04-10',202215,4,2022,10,15,202204,2022),
+('2022-04-11',202215,4,2022,11,15,202204,2022),
+('2022-04-12',202215,4,2022,12,15,202204,2022),
+('2022-04-13',202215,4,2022,13,15,202204,2022),
+('2022-04-14',202215,4,2022,14,15,202204,2022),
+('2022-04-15',202215,4,2022,15,15,202204,2022),
+('2022-04-16',202215,4,2022,16,15,202204,2022),
+('2022-04-17',202216,4,2022,17,16,202204,2022),
+('2022-04-18',202216,4,2022,18,16,202204,2022),
+('2022-04-19',202216,4,2022,19,16,202204,2022),
+('2022-04-20',202216,4,2022,20,16,202204,2022),
+('2022-04-21',202216,4,2022,21,16,202204,2022),
+('2022-04-22',202216,4,2022,22,16,202204,2022),
+('2022-04-23',202216,4,2022,23,16,202204,2022),
+('2022-04-24',202217,4,2022,24,17,202204,2022),
+('2022-04-25',202217,4,2022,25,17,202204,2022),
+('2022-04-26',202217,4,2022,26,17,202204,2022),
+('2022-04-27',202217,4,2022,27,17,202204,2022),
+('2022-04-28',202217,4,2022,28,17,202204,2022),
+('2022-04-29',202217,4,2022,29,17,202204,2022),
+('2022-04-30',202217,4,2022,30,17,202204,2022),
+('2022-05-01',202218,5,2022,1,18,202205,2022),
+('2022-05-02',202218,5,2022,2,18,202205,2022),
+('2022-05-03',202218,5,2022,3,18,202205,2022),
+('2022-05-04',202218,5,2022,4,18,202205,2022),
+('2022-05-05',202218,5,2022,5,18,202205,2022),
+('2022-05-06',202218,5,2022,6,18,202205,2022),
+('2022-05-07',202218,5,2022,7,18,202205,2022),
+('2022-05-08',202219,5,2022,8,19,202205,2022),
+('2022-05-09',202219,5,2022,9,19,202205,2022),
+('2022-05-10',202219,5,2022,10,19,202205,2022),
+('2022-05-11',202219,5,2022,11,19,202205,2022),
+('2022-05-12',202219,5,2022,12,19,202205,2022),
+('2022-05-13',202219,5,2022,13,19,202205,2022),
+('2022-05-14',202219,5,2022,14,19,202205,2022),
+('2022-05-15',202220,5,2022,15,20,202205,2022),
+('2022-05-16',202220,5,2022,16,20,202205,2022),
+('2022-05-17',202220,5,2022,17,20,202205,2022),
+('2022-05-18',202220,5,2022,18,20,202205,2022),
+('2022-05-19',202220,5,2022,19,20,202205,2022),
+('2022-05-20',202220,5,2022,20,20,202205,2022),
+('2022-05-21',202220,5,2022,21,20,202205,2022),
+('2022-05-22',202221,5,2022,22,21,202205,2022),
+('2022-05-23',202221,5,2022,23,21,202205,2022),
+('2022-05-24',202221,5,2022,24,21,202205,2022),
+('2022-05-25',202221,5,2022,25,21,202205,2022),
+('2022-05-26',202221,5,2022,26,21,202205,2022),
+('2022-05-27',202221,5,2022,27,21,202205,2022),
+('2022-05-28',202221,5,2022,28,21,202205,2022),
+('2022-05-29',202222,5,2022,29,22,202205,2022),
+('2022-05-30',202222,5,2022,30,22,202205,2022),
+('2022-05-31',202222,5,2022,31,22,202205,2022),
+('2022-06-01',202222,6,2022,1,22,202206,2022),
+('2022-06-02',202222,6,2022,2,22,202206,2022),
+('2022-06-03',202222,6,2022,3,22,202206,2022),
+('2022-06-04',202222,6,2022,4,22,202206,2022),
+('2022-06-05',202223,6,2022,5,23,202206,2022),
+('2022-06-06',202223,6,2022,6,23,202206,2022),
+('2022-06-07',202223,6,2022,7,23,202206,2022),
+('2022-06-08',202223,6,2022,8,23,202206,2022),
+('2022-06-09',202223,6,2022,9,23,202206,2022),
+('2022-06-10',202223,6,2022,10,23,202206,2022),
+('2022-06-11',202223,6,2022,11,23,202206,2022),
+('2022-06-12',202224,6,2022,12,24,202206,2022),
+('2022-06-13',202224,6,2022,13,24,202206,2022),
+('2022-06-14',202224,6,2022,14,24,202206,2022),
+('2022-06-15',202224,6,2022,15,24,202206,2022),
+('2022-06-16',202224,6,2022,16,24,202206,2022),
+('2022-06-17',202224,6,2022,17,24,202206,2022),
+('2022-06-18',202224,6,2022,18,24,202206,2022),
+('2022-06-19',202225,6,2022,19,25,202206,2022),
+('2022-06-20',202225,6,2022,20,25,202206,2022),
+('2022-06-21',202225,6,2022,21,25,202206,2022),
+('2022-06-22',202225,6,2022,22,25,202206,2022),
+('2022-06-23',202225,6,2022,23,25,202206,2022),
+('2022-06-24',202225,6,2022,24,25,202206,2022),
+('2022-06-25',202225,6,2022,25,25,202206,2022),
+('2022-06-26',202226,6,2022,26,26,202206,2022),
+('2022-06-27',202226,6,2022,27,26,202206,2022),
+('2022-06-28',202226,6,2022,28,26,202206,2022),
+('2022-06-29',202226,6,2022,29,26,202206,2022),
+('2022-06-30',202226,6,2022,30,26,202206,2022),
+('2022-07-01',202226,7,2022,1,26,202207,2022),
+('2022-07-02',202226,7,2022,2,26,202207,2022),
+('2022-07-03',202227,7,2022,3,27,202207,2022),
+('2022-07-04',202227,7,2022,4,27,202207,2022),
+('2022-07-05',202227,7,2022,5,27,202207,2022),
+('2022-07-06',202227,7,2022,6,27,202207,2022),
+('2022-07-07',202227,7,2022,7,27,202207,2022),
+('2022-07-08',202227,7,2022,8,27,202207,2022),
+('2022-07-09',202227,7,2022,9,27,202207,2022),
+('2022-07-10',202228,7,2022,10,28,202207,2022),
+('2022-07-11',202228,7,2022,11,28,202207,2022),
+('2022-07-12',202228,7,2022,12,28,202207,2022),
+('2022-07-13',202228,7,2022,13,28,202207,2022),
+('2022-07-14',202228,7,2022,14,28,202207,2022),
+('2022-07-15',202228,7,2022,15,28,202207,2022),
+('2022-07-16',202228,7,2022,16,28,202207,2022),
+('2022-07-17',202229,7,2022,17,29,202207,2022),
+('2022-07-18',202229,7,2022,18,29,202207,2022),
+('2022-07-19',202229,7,2022,19,29,202207,2022),
+('2022-07-20',202229,7,2022,20,29,202207,2022),
+('2022-07-21',202229,7,2022,21,29,202207,2022),
+('2022-07-22',202229,7,2022,22,29,202207,2022),
+('2022-07-23',202229,7,2022,23,29,202207,2022),
+('2022-07-24',202230,7,2022,24,30,202207,2022),
+('2022-07-25',202230,7,2022,25,30,202207,2022),
+('2022-07-26',202230,7,2022,26,30,202207,2022),
+('2022-07-27',202230,7,2022,27,30,202207,2022),
+('2022-07-28',202230,7,2022,28,30,202207,2022),
+('2022-07-29',202230,7,2022,29,30,202207,2022),
+('2022-07-30',202230,7,2022,30,30,202207,2022),
+('2022-07-31',202231,7,2022,31,31,202207,2022),
+('2022-08-01',202231,8,2022,1,31,202208,2022),
+('2022-08-02',202231,8,2022,2,31,202208,2022),
+('2022-08-03',202231,8,2022,3,31,202208,2022),
+('2022-08-04',202231,8,2022,4,31,202208,2022),
+('2022-08-05',202231,8,2022,5,31,202208,2022),
+('2022-08-06',202231,8,2022,6,31,202208,2022),
+('2022-08-07',202232,8,2022,7,32,202208,2022),
+('2022-08-08',202232,8,2022,8,32,202208,2022),
+('2022-08-09',202232,8,2022,9,32,202208,2022),
+('2022-08-10',202232,8,2022,10,32,202208,2022),
+('2022-08-11',202232,8,2022,11,32,202208,2022),
+('2022-08-12',202232,8,2022,12,32,202208,2022),
+('2022-08-13',202232,8,2022,13,32,202208,2022),
+('2022-08-14',202233,8,2022,14,33,202208,2022),
+('2022-08-15',202233,8,2022,15,33,202208,2022),
+('2022-08-16',202233,8,2022,16,33,202208,2022),
+('2022-08-17',202233,8,2022,17,33,202208,2022),
+('2022-08-18',202233,8,2022,18,33,202208,2022),
+('2022-08-19',202233,8,2022,19,33,202208,2022),
+('2022-08-20',202233,8,2022,20,33,202208,2022),
+('2022-08-21',202234,8,2022,21,34,202208,2022),
+('2022-08-22',202234,8,2022,22,34,202208,2022),
+('2022-08-23',202234,8,2022,23,34,202208,2022),
+('2022-08-24',202234,8,2022,24,34,202208,2022),
+('2022-08-25',202234,8,2022,25,34,202208,2022),
+('2022-08-26',202234,8,2022,26,34,202208,2022),
+('2022-08-27',202234,8,2022,27,34,202208,2022),
+('2022-08-28',202235,8,2022,28,35,202208,2022),
+('2022-08-29',202235,8,2022,29,35,202208,2022),
+('2022-08-30',202235,8,2022,30,35,202208,2022),
+('2022-08-31',202235,8,2022,31,35,202208,2022),
+('2022-09-01',202235,9,2022,1,35,202209,2022),
+('2022-09-02',202235,9,2022,2,35,202209,2022),
+('2022-09-03',202235,9,2022,3,35,202209,2022),
+('2022-09-04',202236,9,2022,4,36,202209,2022),
+('2022-09-05',202236,9,2022,5,36,202209,2022),
+('2022-09-06',202236,9,2022,6,36,202209,2022),
+('2022-09-07',202236,9,2022,7,36,202209,2022),
+('2022-09-08',202236,9,2022,8,36,202209,2022),
+('2022-09-09',202236,9,2022,9,36,202209,2022),
+('2022-09-10',202236,9,2022,10,36,202209,2022),
+('2022-09-11',202237,9,2022,11,37,202209,2022),
+('2022-09-12',202237,9,2022,12,37,202209,2022),
+('2022-09-13',202237,9,2022,13,37,202209,2022),
+('2022-09-14',202237,9,2022,14,37,202209,2022),
+('2022-09-15',202237,9,2022,15,37,202209,2022),
+('2022-09-16',202237,9,2022,16,37,202209,2022),
+('2022-09-17',202237,9,2022,17,37,202209,2022),
+('2022-09-18',202238,9,2022,18,38,202209,2022),
+('2022-09-19',202238,9,2022,19,38,202209,2022),
+('2022-09-20',202238,9,2022,20,38,202209,2022),
+('2022-09-21',202238,9,2022,21,38,202209,2022),
+('2022-09-22',202238,9,2022,22,38,202209,2022),
+('2022-09-23',202238,9,2022,23,38,202209,2022),
+('2022-09-24',202238,9,2022,24,38,202209,2022),
+('2022-09-25',202239,9,2022,25,39,202209,2022),
+('2022-09-26',202239,9,2022,26,39,202209,2022),
+('2022-09-27',202239,9,2022,27,39,202209,2022),
+('2022-09-28',202239,9,2022,28,39,202209,2022),
+('2022-09-29',202239,9,2022,29,39,202209,2022),
+('2022-09-30',202239,9,2022,30,39,202209,2022),
+('2022-10-01',202239,10,2022,1,39,202210,2022),
+('2022-10-02',202240,10,2022,2,40,202210,2022),
+('2022-10-03',202240,10,2022,3,40,202210,2022),
+('2022-10-04',202240,10,2022,4,40,202210,2022),
+('2022-10-05',202240,10,2022,5,40,202210,2022),
+('2022-10-06',202240,10,2022,6,40,202210,2022),
+('2022-10-07',202240,10,2022,7,40,202210,2022),
+('2022-10-08',202240,10,2022,8,40,202210,2022),
+('2022-10-09',202241,10,2022,9,41,202210,2022),
+('2022-10-10',202241,10,2022,10,41,202210,2022),
+('2022-10-11',202241,10,2022,11,41,202210,2022),
+('2022-10-12',202241,10,2022,12,41,202210,2022),
+('2022-10-13',202241,10,2022,13,41,202210,2022),
+('2022-10-14',202241,10,2022,14,41,202210,2022),
+('2022-10-15',202241,10,2022,15,41,202210,2022),
+('2022-10-16',202242,10,2022,16,42,202210,2022),
+('2022-10-17',202242,10,2022,17,42,202210,2022),
+('2022-10-18',202242,10,2022,18,42,202210,2022),
+('2022-10-19',202242,10,2022,19,42,202210,2022),
+('2022-10-20',202242,10,2022,20,42,202210,2022),
+('2022-10-21',202242,10,2022,21,42,202210,2022),
+('2022-10-22',202242,10,2022,22,42,202210,2022),
+('2022-10-23',202243,10,2022,23,43,202210,2022),
+('2022-10-24',202243,10,2022,24,43,202210,2022),
+('2022-10-25',202243,10,2022,25,43,202210,2022),
+('2022-10-26',202243,10,2022,26,43,202210,2022),
+('2022-10-27',202243,10,2022,27,43,202210,2022),
+('2022-10-28',202243,10,2022,28,43,202210,2022),
+('2022-10-29',202243,10,2022,29,43,202210,2022),
+('2022-10-30',202244,10,2022,30,44,202210,2022),
+('2022-10-31',202244,10,2022,31,44,202210,2022),
+('2022-11-01',202244,11,2022,1,44,202211,2022),
+('2022-11-02',202244,11,2022,2,44,202211,2022),
+('2022-11-03',202244,11,2022,3,44,202211,2022),
+('2022-11-04',202244,11,2022,4,44,202211,2022),
+('2022-11-05',202244,11,2022,5,44,202211,2022),
+('2022-11-06',202245,11,2022,6,45,202211,2022),
+('2022-11-07',202245,11,2022,7,45,202211,2022),
+('2022-11-08',202245,11,2022,8,45,202211,2022),
+('2022-11-09',202245,11,2022,9,45,202211,2022),
+('2022-11-10',202245,11,2022,10,45,202211,2022),
+('2022-11-11',202245,11,2022,11,45,202211,2022),
+('2022-11-12',202245,11,2022,12,45,202211,2022),
+('2022-11-13',202246,11,2022,13,46,202211,2022),
+('2022-11-14',202246,11,2022,14,46,202211,2022),
+('2022-11-15',202246,11,2022,15,46,202211,2022),
+('2022-11-16',202246,11,2022,16,46,202211,2022),
+('2022-11-17',202246,11,2022,17,46,202211,2022),
+('2022-11-18',202246,11,2022,18,46,202211,2022),
+('2022-11-19',202246,11,2022,19,46,202211,2022),
+('2022-11-20',202247,11,2022,20,47,202211,2022),
+('2022-11-21',202247,11,2022,21,47,202211,2022),
+('2022-11-22',202247,11,2022,22,47,202211,2022),
+('2022-11-23',202247,11,2022,23,47,202211,2022),
+('2022-11-24',202247,11,2022,24,47,202211,2022),
+('2022-11-25',202247,11,2022,25,47,202211,2022),
+('2022-11-26',202247,11,2022,26,47,202211,2022),
+('2022-11-27',202248,11,2022,27,48,202211,2022),
+('2022-11-28',202248,11,2022,28,48,202211,2022),
+('2022-11-29',202248,11,2022,29,48,202211,2022),
+('2022-11-30',202248,11,2022,30,48,202211,2022),
+('2022-12-01',202248,12,2022,1,48,202212,2023),
+('2022-12-02',202248,12,2022,2,48,202212,2023),
+('2022-12-03',202248,12,2022,3,48,202212,2023),
+('2022-12-04',202249,12,2022,4,49,202212,2023),
+('2022-12-05',202249,12,2022,5,49,202212,2023),
+('2022-12-06',202249,12,2022,6,49,202212,2023),
+('2022-12-07',202249,12,2022,7,49,202212,2023),
+('2022-12-08',202249,12,2022,8,49,202212,2023),
+('2022-12-09',202249,12,2022,9,49,202212,2023),
+('2022-12-10',202249,12,2022,10,49,202212,2023),
+('2022-12-11',202250,12,2022,11,50,202212,2023),
+('2022-12-12',202250,12,2022,12,50,202212,2023),
+('2022-12-13',202250,12,2022,13,50,202212,2023),
+('2022-12-14',202250,12,2022,14,50,202212,2023),
+('2022-12-15',202250,12,2022,15,50,202212,2023),
+('2022-12-16',202250,12,2022,16,50,202212,2023),
+('2022-12-17',202250,12,2022,17,50,202212,2023),
+('2022-12-18',202251,12,2022,18,51,202212,2023),
+('2022-12-19',202251,12,2022,19,51,202212,2023),
+('2022-12-20',202251,12,2022,20,51,202212,2023),
+('2022-12-21',202251,12,2022,21,51,202212,2023),
+('2022-12-22',202251,12,2022,22,51,202212,2023),
+('2022-12-23',202251,12,2022,23,51,202212,2023),
+('2022-12-24',202251,12,2022,24,51,202212,2023),
+('2022-12-25',202252,12,2022,25,52,202212,2023),
+('2022-12-26',202252,12,2022,26,52,202212,2023),
+('2022-12-27',202252,12,2022,27,52,202212,2023),
+('2022-12-28',202252,12,2022,28,52,202212,2023),
+('2022-12-29',202252,12,2022,29,52,202212,2023),
+('2022-12-30',202252,12,2022,30,52,202212,2023),
+('2022-12-31',202252,12,2022,31,52,202212,2023),
+('2023-01-01',202353,1,2023,1,1,202301,2023),
+('2023-01-02',202301,1,2023,2,1,202301,2023),
+('2023-01-03',202301,1,2023,3,1,202301,2023),
+('2023-01-04',202301,1,2023,4,1,202301,2023),
+('2023-01-05',202301,1,2023,5,1,202301,2023),
+('2023-01-06',202301,1,2023,6,1,202301,2023),
+('2023-01-07',202301,1,2023,7,1,202301,2023),
+('2023-01-08',202302,1,2023,8,2,202301,2023),
+('2023-01-09',202302,1,2023,9,2,202301,2023),
+('2023-01-10',202302,1,2023,10,2,202301,2023),
+('2023-01-11',202302,1,2023,11,2,202301,2023),
+('2023-01-12',202302,1,2023,12,2,202301,2023),
+('2023-01-13',202302,1,2023,13,2,202301,2023),
+('2023-01-14',202302,1,2023,14,2,202301,2023),
+('2023-01-15',202303,1,2023,15,3,202301,2023),
+('2023-01-16',202303,1,2023,16,3,202301,2023),
+('2023-01-17',202303,1,2023,17,3,202301,2023),
+('2023-01-18',202303,1,2023,18,3,202301,2023),
+('2023-01-19',202303,1,2023,19,3,202301,2023),
+('2023-01-20',202303,1,2023,20,3,202301,2023),
+('2023-01-21',202303,1,2023,21,3,202301,2023),
+('2023-01-22',202304,1,2023,22,4,202301,2023),
+('2023-01-23',202304,1,2023,23,4,202301,2023),
+('2023-01-24',202304,1,2023,24,4,202301,2023),
+('2023-01-25',202304,1,2023,25,4,202301,2023),
+('2023-01-26',202304,1,2023,26,4,202301,2023),
+('2023-01-27',202304,1,2023,27,4,202301,2023),
+('2023-01-28',202304,1,2023,28,4,202301,2023),
+('2023-01-29',202305,1,2023,29,5,202301,2023),
+('2023-01-30',202305,1,2023,30,5,202301,2023),
+('2023-01-31',202305,1,2023,31,5,202301,2023),
+('2023-02-01',202305,2,2023,1,5,202302,2023),
+('2023-02-02',202305,2,2023,2,5,202302,2023),
+('2023-02-03',202305,2,2023,3,5,202302,2023),
+('2023-02-04',202305,2,2023,4,5,202302,2023),
+('2023-02-05',202306,2,2023,5,6,202302,2023),
+('2023-02-06',202306,2,2023,6,6,202302,2023),
+('2023-02-07',202306,2,2023,7,6,202302,2023),
+('2023-02-08',202306,2,2023,8,6,202302,2023),
+('2023-02-09',202306,2,2023,9,6,202302,2023),
+('2023-02-10',202306,2,2023,10,6,202302,2023),
+('2023-02-11',202306,2,2023,11,6,202302,2023),
+('2023-02-12',202307,2,2023,12,7,202302,2023),
+('2023-02-13',202307,2,2023,13,7,202302,2023),
+('2023-02-14',202307,2,2023,14,7,202302,2023),
+('2023-02-15',202307,2,2023,15,7,202302,2023),
+('2023-02-16',202307,2,2023,16,7,202302,2023),
+('2023-02-17',202307,2,2023,17,7,202302,2023),
+('2023-02-18',202307,2,2023,18,7,202302,2023),
+('2023-02-19',202308,2,2023,19,8,202302,2023),
+('2023-02-20',202308,2,2023,20,8,202302,2023),
+('2023-02-21',202308,2,2023,21,8,202302,2023),
+('2023-02-22',202308,2,2023,22,8,202302,2023),
+('2023-02-23',202308,2,2023,23,8,202302,2023),
+('2023-02-24',202308,2,2023,24,8,202302,2023),
+('2023-02-25',202308,2,2023,25,8,202302,2023),
+('2023-02-26',202309,2,2023,26,9,202302,2023),
+('2023-02-27',202309,2,2023,27,9,202302,2023),
+('2023-02-28',202309,2,2023,28,9,202302,2023),
+('2023-03-01',202309,3,2023,1,9,202303,2023),
+('2023-03-02',202309,3,2023,2,9,202303,2023),
+('2023-03-03',202309,3,2023,3,9,202303,2023),
+('2023-03-04',202309,3,2023,4,9,202303,2023),
+('2023-03-05',202310,3,2023,5,10,202303,2023),
+('2023-03-06',202310,3,2023,6,10,202303,2023),
+('2023-03-07',202310,3,2023,7,10,202303,2023),
+('2023-03-08',202310,3,2023,8,10,202303,2023),
+('2023-03-09',202310,3,2023,9,10,202303,2023),
+('2023-03-10',202310,3,2023,10,10,202303,2023),
+('2023-03-11',202310,3,2023,11,10,202303,2023),
+('2023-03-12',202311,3,2023,12,11,202303,2023),
+('2023-03-13',202311,3,2023,13,11,202303,2023),
+('2023-03-14',202311,3,2023,14,11,202303,2023),
+('2023-03-15',202311,3,2023,15,11,202303,2023),
+('2023-03-16',202311,3,2023,16,11,202303,2023),
+('2023-03-17',202311,3,2023,17,11,202303,2023),
+('2023-03-18',202311,3,2023,18,11,202303,2023),
+('2023-03-19',202312,3,2023,19,12,202303,2023),
+('2023-03-20',202312,3,2023,20,12,202303,2023),
+('2023-03-21',202312,3,2023,21,12,202303,2023),
+('2023-03-22',202312,3,2023,22,12,202303,2023),
+('2023-03-23',202312,3,2023,23,12,202303,2023),
+('2023-03-24',202312,3,2023,24,12,202303,2023),
+('2023-03-25',202312,3,2023,25,12,202303,2023),
+('2023-03-26',202313,3,2023,26,13,202303,2023),
+('2023-03-27',202313,3,2023,27,13,202303,2023),
+('2023-03-28',202313,3,2023,28,13,202303,2023),
+('2023-03-29',202313,3,2023,29,13,202303,2023),
+('2023-03-30',202313,3,2023,30,13,202303,2023),
+('2023-03-31',202313,3,2023,31,13,202303,2023),
+('2023-04-01',202313,4,2023,1,13,202304,2023),
+('2023-04-02',202314,4,2023,2,14,202304,2023),
+('2023-04-03',202314,4,2023,3,14,202304,2023),
+('2023-04-04',202314,4,2023,4,14,202304,2023),
+('2023-04-05',202314,4,2023,5,14,202304,2023),
+('2023-04-06',202314,4,2023,6,14,202304,2023),
+('2023-04-07',202314,4,2023,7,14,202304,2023),
+('2023-04-08',202314,4,2023,8,14,202304,2023),
+('2023-04-09',202315,4,2023,9,15,202304,2023),
+('2023-04-10',202315,4,2023,10,15,202304,2023),
+('2023-04-11',202315,4,2023,11,15,202304,2023),
+('2023-04-12',202315,4,2023,12,15,202304,2023),
+('2023-04-13',202315,4,2023,13,15,202304,2023),
+('2023-04-14',202315,4,2023,14,15,202304,2023),
+('2023-04-15',202315,4,2023,15,15,202304,2023),
+('2023-04-16',202316,4,2023,16,16,202304,2023),
+('2023-04-17',202316,4,2023,17,16,202304,2023),
+('2023-04-18',202316,4,2023,18,16,202304,2023),
+('2023-04-19',202316,4,2023,19,16,202304,2023),
+('2023-04-20',202316,4,2023,20,16,202304,2023),
+('2023-04-21',202316,4,2023,21,16,202304,2023),
+('2023-04-22',202316,4,2023,22,16,202304,2023),
+('2023-04-23',202317,4,2023,23,17,202304,2023),
+('2023-04-24',202317,4,2023,24,17,202304,2023),
+('2023-04-25',202317,4,2023,25,17,202304,2023),
+('2023-04-26',202317,4,2023,26,17,202304,2023),
+('2023-04-27',202317,4,2023,27,17,202304,2023),
+('2023-04-28',202317,4,2023,28,17,202304,2023),
+('2023-04-29',202317,4,2023,29,17,202304,2023),
+('2023-04-30',202318,4,2023,30,18,202304,2023),
+('2023-05-01',202318,5,2023,1,18,202305,2023),
+('2023-05-02',202318,5,2023,2,18,202305,2023),
+('2023-05-03',202318,5,2023,3,18,202305,2023),
+('2023-05-04',202318,5,2023,4,18,202305,2023),
+('2023-05-05',202318,5,2023,5,18,202305,2023),
+('2023-05-06',202318,5,2023,6,18,202305,2023),
+('2023-05-07',202319,5,2023,7,19,202305,2023),
+('2023-05-08',202319,5,2023,8,19,202305,2023),
+('2023-05-09',202319,5,2023,9,19,202305,2023),
+('2023-05-10',202319,5,2023,10,19,202305,2023),
+('2023-05-11',202319,5,2023,11,19,202305,2023),
+('2023-05-12',202319,5,2023,12,19,202305,2023),
+('2023-05-13',202319,5,2023,13,19,202305,2023),
+('2023-05-14',202320,5,2023,14,20,202305,2023),
+('2023-05-15',202320,5,2023,15,20,202305,2023),
+('2023-05-16',202320,5,2023,16,20,202305,2023),
+('2023-05-17',202320,5,2023,17,20,202305,2023),
+('2023-05-18',202320,5,2023,18,20,202305,2023),
+('2023-05-19',202320,5,2023,19,20,202305,2023),
+('2023-05-20',202320,5,2023,20,20,202305,2023),
+('2023-05-21',202321,5,2023,21,21,202305,2023),
+('2023-05-22',202321,5,2023,22,21,202305,2023),
+('2023-05-23',202321,5,2023,23,21,202305,2023),
+('2023-05-24',202321,5,2023,24,21,202305,2023),
+('2023-05-25',202321,5,2023,25,21,202305,2023),
+('2023-05-26',202321,5,2023,26,21,202305,2023),
+('2023-05-27',202321,5,2023,27,21,202305,2023),
+('2023-05-28',202322,5,2023,28,22,202305,2023),
+('2023-05-29',202322,5,2023,29,22,202305,2023),
+('2023-05-30',202322,5,2023,30,22,202305,2023),
+('2023-05-31',202322,5,2023,31,22,202305,2023),
+('2023-06-01',202322,6,2023,1,22,202306,2023),
+('2023-06-02',202322,6,2023,2,22,202306,2023),
+('2023-06-03',202322,6,2023,3,22,202306,2023),
+('2023-06-04',202323,6,2023,4,23,202306,2023),
+('2023-06-05',202323,6,2023,5,23,202306,2023),
+('2023-06-06',202323,6,2023,6,23,202306,2023),
+('2023-06-07',202323,6,2023,7,23,202306,2023),
+('2023-06-08',202323,6,2023,8,23,202306,2023),
+('2023-06-09',202323,6,2023,9,23,202306,2023),
+('2023-06-10',202323,6,2023,10,23,202306,2023),
+('2023-06-11',202324,6,2023,11,24,202306,2023),
+('2023-06-12',202324,6,2023,12,24,202306,2023),
+('2023-06-13',202324,6,2023,13,24,202306,2023),
+('2023-06-14',202324,6,2023,14,24,202306,2023),
+('2023-06-15',202324,6,2023,15,24,202306,2023),
+('2023-06-16',202324,6,2023,16,24,202306,2023),
+('2023-06-17',202324,6,2023,17,24,202306,2023),
+('2023-06-18',202325,6,2023,18,25,202306,2023),
+('2023-06-19',202325,6,2023,19,25,202306,2023),
+('2023-06-20',202325,6,2023,20,25,202306,2023),
+('2023-06-21',202325,6,2023,21,25,202306,2023),
+('2023-06-22',202325,6,2023,22,25,202306,2023),
+('2023-06-23',202325,6,2023,23,25,202306,2023),
+('2023-06-24',202325,6,2023,24,25,202306,2023),
+('2023-06-25',202326,6,2023,25,26,202306,2023),
+('2023-06-26',202326,6,2023,26,26,202306,2023),
+('2023-06-27',202326,6,2023,27,26,202306,2023),
+('2023-06-28',202326,6,2023,28,26,202306,2023),
+('2023-06-29',202326,6,2023,29,26,202306,2023),
+('2023-06-30',202326,6,2023,30,26,202306,2023),
+('2023-07-01',202326,7,2023,1,26,202307,2023),
+('2023-07-02',202327,7,2023,2,27,202307,2023),
+('2023-07-03',202327,7,2023,3,27,202307,2023),
+('2023-07-04',202327,7,2023,4,27,202307,2023),
+('2023-07-05',202327,7,2023,5,27,202307,2023),
+('2023-07-06',202327,7,2023,6,27,202307,2023),
+('2023-07-07',202327,7,2023,7,27,202307,2023),
+('2023-07-08',202327,7,2023,8,27,202307,2023),
+('2023-07-09',202328,7,2023,9,28,202307,2023),
+('2023-07-10',202328,7,2023,10,28,202307,2023),
+('2023-07-11',202328,7,2023,11,28,202307,2023),
+('2023-07-12',202328,7,2023,12,28,202307,2023),
+('2023-07-13',202328,7,2023,13,28,202307,2023),
+('2023-07-14',202328,7,2023,14,28,202307,2023),
+('2023-07-15',202328,7,2023,15,28,202307,2023),
+('2023-07-16',202329,7,2023,16,29,202307,2023),
+('2023-07-17',202329,7,2023,17,29,202307,2023),
+('2023-07-18',202329,7,2023,18,29,202307,2023),
+('2023-07-19',202329,7,2023,19,29,202307,2023),
+('2023-07-20',202329,7,2023,20,29,202307,2023),
+('2023-07-21',202329,7,2023,21,29,202307,2023),
+('2023-07-22',202329,7,2023,22,29,202307,2023),
+('2023-07-23',202330,7,2023,23,30,202307,2023),
+('2023-07-24',202330,7,2023,24,30,202307,2023),
+('2023-07-25',202330,7,2023,25,30,202307,2023),
+('2023-07-26',202330,7,2023,26,30,202307,2023),
+('2023-07-27',202330,7,2023,27,30,202307,2023),
+('2023-07-28',202330,7,2023,28,30,202307,2023),
+('2023-07-29',202330,7,2023,29,30,202307,2023),
+('2023-07-30',202331,7,2023,30,31,202307,2023),
+('2023-07-31',202331,7,2023,31,31,202307,2023),
+('2023-08-01',202331,8,2023,1,31,202308,2023),
+('2023-08-02',202331,8,2023,2,31,202308,2023),
+('2023-08-03',202331,8,2023,3,31,202308,2023),
+('2023-08-04',202331,8,2023,4,31,202308,2023),
+('2023-08-05',202331,8,2023,5,31,202308,2023),
+('2023-08-06',202332,8,2023,6,32,202308,2023),
+('2023-08-07',202332,8,2023,7,32,202308,2023),
+('2023-08-08',202332,8,2023,8,32,202308,2023),
+('2023-08-09',202332,8,2023,9,32,202308,2023),
+('2023-08-10',202332,8,2023,10,32,202308,2023),
+('2023-08-11',202332,8,2023,11,32,202308,2023),
+('2023-08-12',202332,8,2023,12,32,202308,2023),
+('2023-08-13',202333,8,2023,13,33,202308,2023),
+('2023-08-14',202333,8,2023,14,33,202308,2023),
+('2023-08-15',202333,8,2023,15,33,202308,2023),
+('2023-08-16',202333,8,2023,16,33,202308,2023),
+('2023-08-17',202333,8,2023,17,33,202308,2023),
+('2023-08-18',202333,8,2023,18,33,202308,2023),
+('2023-08-19',202333,8,2023,19,33,202308,2023),
+('2023-08-20',202334,8,2023,20,34,202308,2023),
+('2023-08-21',202334,8,2023,21,34,202308,2023),
+('2023-08-22',202334,8,2023,22,34,202308,2023),
+('2023-08-23',202334,8,2023,23,34,202308,2023),
+('2023-08-24',202334,8,2023,24,34,202308,2023),
+('2023-08-25',202334,8,2023,25,34,202308,2023),
+('2023-08-26',202334,8,2023,26,34,202308,2023),
+('2023-08-27',202335,8,2023,27,35,202308,2023),
+('2023-08-28',202335,8,2023,28,35,202308,2023),
+('2023-08-29',202335,8,2023,29,35,202308,2023),
+('2023-08-30',202335,8,2023,30,35,202308,2023),
+('2023-08-31',202335,8,2023,31,35,202308,2023),
+('2023-09-01',202335,9,2023,1,35,202309,2023),
+('2023-09-02',202335,9,2023,2,35,202309,2023),
+('2023-09-03',202336,9,2023,3,36,202309,2023),
+('2023-09-04',202336,9,2023,4,36,202309,2023),
+('2023-09-05',202336,9,2023,5,36,202309,2023),
+('2023-09-06',202336,9,2023,6,36,202309,2023),
+('2023-09-07',202336,9,2023,7,36,202309,2023),
+('2023-09-08',202336,9,2023,8,36,202309,2023),
+('2023-09-09',202336,9,2023,9,36,202309,2023),
+('2023-09-10',202337,9,2023,10,37,202309,2023),
+('2023-09-11',202337,9,2023,11,37,202309,2023),
+('2023-09-12',202337,9,2023,12,37,202309,2023),
+('2023-09-13',202337,9,2023,13,37,202309,2023),
+('2023-09-14',202337,9,2023,14,37,202309,2023),
+('2023-09-15',202337,9,2023,15,37,202309,2023),
+('2023-09-16',202337,9,2023,16,37,202309,2023),
+('2023-09-17',202338,9,2023,17,38,202309,2023),
+('2023-09-18',202338,9,2023,18,38,202309,2023),
+('2023-09-19',202338,9,2023,19,38,202309,2023),
+('2023-09-20',202338,9,2023,20,38,202309,2023),
+('2023-09-21',202338,9,2023,21,38,202309,2023),
+('2023-09-22',202338,9,2023,22,38,202309,2023),
+('2023-09-23',202338,9,2023,23,38,202309,2023),
+('2023-09-24',202339,9,2023,24,39,202309,2023),
+('2023-09-25',202339,9,2023,25,39,202309,2023),
+('2023-09-26',202339,9,2023,26,39,202309,2023),
+('2023-09-27',202339,9,2023,27,39,202309,2023),
+('2023-09-28',202339,9,2023,28,39,202309,2023),
+('2023-09-29',202339,9,2023,29,39,202309,2023),
+('2023-09-30',202339,9,2023,30,39,202309,2023),
+('2023-10-01',202340,10,2023,1,40,202310,2023),
+('2023-10-02',202340,10,2023,2,40,202310,2023),
+('2023-10-03',202340,10,2023,3,40,202310,2023),
+('2023-10-04',202340,10,2023,4,40,202310,2023),
+('2023-10-05',202340,10,2023,5,40,202310,2023),
+('2023-10-06',202340,10,2023,6,40,202310,2023),
+('2023-10-07',202340,10,2023,7,40,202310,2023),
+('2023-10-08',202341,10,2023,8,41,202310,2023),
+('2023-10-09',202341,10,2023,9,41,202310,2023),
+('2023-10-10',202341,10,2023,10,41,202310,2023),
+('2023-10-11',202341,10,2023,11,41,202310,2023),
+('2023-10-12',202341,10,2023,12,41,202310,2023),
+('2023-10-13',202341,10,2023,13,41,202310,2023),
+('2023-10-14',202341,10,2023,14,41,202310,2023),
+('2023-10-15',202342,10,2023,15,42,202310,2023),
+('2023-10-16',202342,10,2023,16,42,202310,2023),
+('2023-10-17',202342,10,2023,17,42,202310,2023),
+('2023-10-18',202342,10,2023,18,42,202310,2023),
+('2023-10-19',202342,10,2023,19,42,202310,2023),
+('2023-10-20',202342,10,2023,20,42,202310,2023),
+('2023-10-21',202342,10,2023,21,42,202310,2023),
+('2023-10-22',202343,10,2023,22,43,202310,2023),
+('2023-10-23',202343,10,2023,23,43,202310,2023),
+('2023-10-24',202343,10,2023,24,43,202310,2023),
+('2023-10-25',202343,10,2023,25,43,202310,2023),
+('2023-10-26',202343,10,2023,26,43,202310,2023),
+('2023-10-27',202343,10,2023,27,43,202310,2023),
+('2023-10-28',202343,10,2023,28,43,202310,2023),
+('2023-10-29',202344,10,2023,29,44,202310,2023),
+('2023-10-30',202344,10,2023,30,44,202310,2023),
+('2023-10-31',202344,10,2023,31,44,202310,2023),
+('2023-11-01',202344,11,2023,1,44,202311,2023),
+('2023-11-02',202344,11,2023,2,44,202311,2023),
+('2023-11-03',202344,11,2023,3,44,202311,2023),
+('2023-11-04',202344,11,2023,4,44,202311,2023),
+('2023-11-05',202345,11,2023,5,45,202311,2023),
+('2023-11-06',202345,11,2023,6,45,202311,2023),
+('2023-11-07',202345,11,2023,7,45,202311,2023),
+('2023-11-08',202345,11,2023,8,45,202311,2023),
+('2023-11-09',202345,11,2023,9,45,202311,2023),
+('2023-11-10',202345,11,2023,10,45,202311,2023),
+('2023-11-11',202345,11,2023,11,45,202311,2023),
+('2023-11-12',202346,11,2023,12,46,202311,2023),
+('2023-11-13',202346,11,2023,13,46,202311,2023),
+('2023-11-14',202346,11,2023,14,46,202311,2023),
+('2023-11-15',202346,11,2023,15,46,202311,2023),
+('2023-11-16',202346,11,2023,16,46,202311,2023),
+('2023-11-17',202346,11,2023,17,46,202311,2023),
+('2023-11-18',202346,11,2023,18,46,202311,2023),
+('2023-11-19',202347,11,2023,19,47,202311,2023),
+('2023-11-20',202347,11,2023,20,47,202311,2023),
+('2023-11-21',202347,11,2023,21,47,202311,2023),
+('2023-11-22',202347,11,2023,22,47,202311,2023),
+('2023-11-23',202347,11,2023,23,47,202311,2023),
+('2023-11-24',202347,11,2023,24,47,202311,2023),
+('2023-11-25',202347,11,2023,25,47,202311,2023),
+('2023-11-26',202348,11,2023,26,48,202311,2023),
+('2023-11-27',202348,11,2023,27,48,202311,2023),
+('2023-11-28',202348,11,2023,28,48,202311,2023),
+('2023-11-29',202348,11,2023,29,48,202311,2023),
+('2023-11-30',202348,11,2023,30,48,202311,2023),
+('2023-12-01',202348,12,2023,1,48,202312,2024),
+('2023-12-02',202348,12,2023,2,48,202312,2024),
+('2023-12-03',202349,12,2023,3,49,202312,2024),
+('2023-12-04',202349,12,2023,4,49,202312,2024),
+('2023-12-05',202349,12,2023,5,49,202312,2024),
+('2023-12-06',202349,12,2023,6,49,202312,2024),
+('2023-12-07',202349,12,2023,7,49,202312,2024),
+('2023-12-08',202349,12,2023,8,49,202312,2024),
+('2023-12-09',202349,12,2023,9,49,202312,2024),
+('2023-12-10',202350,12,2023,10,50,202312,2024),
+('2023-12-11',202350,12,2023,11,50,202312,2024),
+('2023-12-12',202350,12,2023,12,50,202312,2024),
+('2023-12-13',202350,12,2023,13,50,202312,2024),
+('2023-12-14',202350,12,2023,14,50,202312,2024),
+('2023-12-15',202350,12,2023,15,50,202312,2024),
+('2023-12-16',202350,12,2023,16,50,202312,2024),
+('2023-12-17',202351,12,2023,17,51,202312,2024),
+('2023-12-18',202351,12,2023,18,51,202312,2024),
+('2023-12-19',202351,12,2023,19,51,202312,2024),
+('2023-12-20',202351,12,2023,20,51,202312,2024),
+('2023-12-21',202351,12,2023,21,51,202312,2024),
+('2023-12-22',202351,12,2023,22,51,202312,2024),
+('2023-12-23',202351,12,2023,23,51,202312,2024),
+('2023-12-24',202352,12,2023,24,52,202312,2024),
+('2023-12-25',202352,12,2023,25,52,202312,2024),
+('2023-12-26',202352,12,2023,26,52,202312,2024),
+('2023-12-27',202352,12,2023,27,52,202312,2024),
+('2023-12-28',202352,12,2023,28,52,202312,2024),
+('2023-12-29',202352,12,2023,29,52,202312,2024),
+('2023-12-30',202352,12,2023,30,52,202312,2024),
+('2023-12-31',202353,12,2023,31,1,202312,2024),
+('2024-01-01',202401,1,2024,1,1,202401,2024),
+('2024-01-02',202401,1,2024,2,1,202401,2024),
+('2024-01-03',202401,1,2024,3,1,202401,2024),
+('2024-01-04',202401,1,2024,4,1,202401,2024),
+('2024-01-05',202401,1,2024,5,1,202401,2024),
+('2024-01-06',202401,1,2024,6,1,202401,2024),
+('2024-01-07',202402,1,2024,7,2,202401,2024),
+('2024-01-08',202402,1,2024,8,2,202401,2024),
+('2024-01-09',202402,1,2024,9,2,202401,2024),
+('2024-01-10',202402,1,2024,10,2,202401,2024),
+('2024-01-11',202402,1,2024,11,2,202401,2024),
+('2024-01-12',202402,1,2024,12,2,202401,2024),
+('2024-01-13',202402,1,2024,13,2,202401,2024),
+('2024-01-14',202403,1,2024,14,3,202401,2024),
+('2024-01-15',202403,1,2024,15,3,202401,2024),
+('2024-01-16',202403,1,2024,16,3,202401,2024),
+('2024-01-17',202403,1,2024,17,3,202401,2024),
+('2024-01-18',202403,1,2024,18,3,202401,2024),
+('2024-01-19',202403,1,2024,19,3,202401,2024),
+('2024-01-20',202403,1,2024,20,3,202401,2024),
+('2024-01-21',202404,1,2024,21,4,202401,2024),
+('2024-01-22',202404,1,2024,22,4,202401,2024),
+('2024-01-23',202404,1,2024,23,4,202401,2024),
+('2024-01-24',202404,1,2024,24,4,202401,2024),
+('2024-01-25',202404,1,2024,25,4,202401,2024),
+('2024-01-26',202404,1,2024,26,4,202401,2024),
+('2024-01-27',202404,1,2024,27,4,202401,2024),
+('2024-01-28',202405,1,2024,28,5,202401,2024),
+('2024-01-29',202405,1,2024,29,5,202401,2024),
+('2024-01-30',202405,1,2024,30,5,202401,2024),
+('2024-01-31',202405,1,2024,31,5,202401,2024),
+('2024-02-01',202405,2,2024,1,5,202402,2024),
+('2024-02-02',202405,2,2024,2,5,202402,2024),
+('2024-02-03',202405,2,2024,3,5,202402,2024),
+('2024-02-04',202406,2,2024,4,6,202402,2024),
+('2024-02-05',202406,2,2024,5,6,202402,2024),
+('2024-02-06',202406,2,2024,6,6,202402,2024),
+('2024-02-07',202406,2,2024,7,6,202402,2024),
+('2024-02-08',202406,2,2024,8,6,202402,2024),
+('2024-02-09',202406,2,2024,9,6,202402,2024),
+('2024-02-10',202406,2,2024,10,6,202402,2024),
+('2024-02-11',202407,2,2024,11,7,202402,2024),
+('2024-02-12',202407,2,2024,12,7,202402,2024),
+('2024-02-13',202407,2,2024,13,7,202402,2024),
+('2024-02-14',202407,2,2024,14,7,202402,2024),
+('2024-02-15',202407,2,2024,15,7,202402,2024),
+('2024-02-16',202407,2,2024,16,7,202402,2024),
+('2024-02-17',202407,2,2024,17,7,202402,2024),
+('2024-02-18',202408,2,2024,18,8,202402,2024),
+('2024-02-19',202408,2,2024,19,8,202402,2024),
+('2024-02-20',202408,2,2024,20,8,202402,2024),
+('2024-02-21',202408,2,2024,21,8,202402,2024),
+('2024-02-22',202408,2,2024,22,8,202402,2024),
+('2024-02-23',202408,2,2024,23,8,202402,2024),
+('2024-02-24',202408,2,2024,24,8,202402,2024),
+('2024-02-25',202409,2,2024,25,9,202402,2024),
+('2024-02-26',202409,2,2024,26,9,202402,2024),
+('2024-02-27',202409,2,2024,27,9,202402,2024),
+('2024-02-28',202409,2,2024,28,9,202402,2024),
+('2024-02-29',202409,2,2024,29,9,202402,2024),
+('2024-03-01',202409,3,2024,1,9,202403,2024),
+('2024-03-02',202409,3,2024,2,9,202403,2024),
+('2024-03-03',202410,3,2024,3,10,202403,2024),
+('2024-03-04',202410,3,2024,4,10,202403,2024),
+('2024-03-05',202410,3,2024,5,10,202403,2024),
+('2024-03-06',202410,3,2024,6,10,202403,2024),
+('2024-03-07',202410,3,2024,7,10,202403,2024),
+('2024-03-08',202410,3,2024,8,10,202403,2024),
+('2024-03-09',202410,3,2024,9,10,202403,2024),
+('2024-03-10',202411,3,2024,10,11,202403,2024),
+('2024-03-11',202411,3,2024,11,11,202403,2024),
+('2024-03-12',202411,3,2024,12,11,202403,2024),
+('2024-03-13',202411,3,2024,13,11,202403,2024),
+('2024-03-14',202411,3,2024,14,11,202403,2024),
+('2024-03-15',202411,3,2024,15,11,202403,2024),
+('2024-03-16',202411,3,2024,16,11,202403,2024),
+('2024-03-17',202412,3,2024,17,12,202403,2024),
+('2024-03-18',202412,3,2024,18,12,202403,2024),
+('2024-03-19',202412,3,2024,19,12,202403,2024),
+('2024-03-20',202412,3,2024,20,12,202403,2024),
+('2024-03-21',202412,3,2024,21,12,202403,2024),
+('2024-03-22',202412,3,2024,22,12,202403,2024),
+('2024-03-23',202412,3,2024,23,12,202403,2024),
+('2024-03-24',202413,3,2024,24,13,202403,2024),
+('2024-03-25',202413,3,2024,25,13,202403,2024),
+('2024-03-26',202413,3,2024,26,13,202403,2024),
+('2024-03-27',202413,3,2024,27,13,202403,2024),
+('2024-03-28',202413,3,2024,28,13,202403,2024),
+('2024-03-29',202413,3,2024,29,13,202403,2024),
+('2024-03-30',202413,3,2024,30,13,202403,2024),
+('2024-03-31',202414,3,2024,31,14,202403,2024),
+('2024-04-01',202414,4,2024,1,14,202404,2024),
+('2024-04-02',202414,4,2024,2,14,202404,2024),
+('2024-04-03',202414,4,2024,3,14,202404,2024),
+('2024-04-04',202414,4,2024,4,14,202404,2024),
+('2024-04-05',202414,4,2024,5,14,202404,2024),
+('2024-04-06',202414,4,2024,6,14,202404,2024),
+('2024-04-07',202415,4,2024,7,15,202404,2024),
+('2024-04-08',202415,4,2024,8,15,202404,2024),
+('2024-04-09',202415,4,2024,9,15,202404,2024),
+('2024-04-10',202415,4,2024,10,15,202404,2024),
+('2024-04-11',202415,4,2024,11,15,202404,2024),
+('2024-04-12',202415,4,2024,12,15,202404,2024),
+('2024-04-13',202415,4,2024,13,15,202404,2024),
+('2024-04-14',202416,4,2024,14,16,202404,2024),
+('2024-04-15',202416,4,2024,15,16,202404,2024),
+('2024-04-16',202416,4,2024,16,16,202404,2024),
+('2024-04-17',202416,4,2024,17,16,202404,2024),
+('2024-04-18',202416,4,2024,18,16,202404,2024),
+('2024-04-19',202416,4,2024,19,16,202404,2024),
+('2024-04-20',202416,4,2024,20,16,202404,2024),
+('2024-04-21',202417,4,2024,21,17,202404,2024),
+('2024-04-22',202417,4,2024,22,17,202404,2024),
+('2024-04-23',202417,4,2024,23,17,202404,2024),
+('2024-04-24',202417,4,2024,24,17,202404,2024),
+('2024-04-25',202417,4,2024,25,17,202404,2024),
+('2024-04-26',202417,4,2024,26,17,202404,2024),
+('2024-04-27',202417,4,2024,27,17,202404,2024),
+('2024-04-28',202418,4,2024,28,18,202404,2024),
+('2024-04-29',202418,4,2024,29,18,202404,2024),
+('2024-04-30',202418,4,2024,30,18,202404,2024),
+('2024-05-01',202418,5,2024,1,18,202405,2024),
+('2024-05-02',202418,5,2024,2,18,202405,2024),
+('2024-05-03',202418,5,2024,3,18,202405,2024),
+('2024-05-04',202418,5,2024,4,18,202405,2024),
+('2024-05-05',202419,5,2024,5,19,202405,2024),
+('2024-05-06',202419,5,2024,6,19,202405,2024),
+('2024-05-07',202419,5,2024,7,19,202405,2024),
+('2024-05-08',202419,5,2024,8,19,202405,2024),
+('2024-05-09',202419,5,2024,9,19,202405,2024),
+('2024-05-10',202419,5,2024,10,19,202405,2024),
+('2024-05-11',202419,5,2024,11,19,202405,2024),
+('2024-05-12',202420,5,2024,12,20,202405,2024),
+('2024-05-13',202420,5,2024,13,20,202405,2024),
+('2024-05-14',202420,5,2024,14,20,202405,2024),
+('2024-05-15',202420,5,2024,15,20,202405,2024),
+('2024-05-16',202420,5,2024,16,20,202405,2024),
+('2024-05-17',202420,5,2024,17,20,202405,2024),
+('2024-05-18',202420,5,2024,18,20,202405,2024),
+('2024-05-19',202421,5,2024,19,21,202405,2024),
+('2024-05-20',202421,5,2024,20,21,202405,2024),
+('2024-05-21',202421,5,2024,21,21,202405,2024),
+('2024-05-22',202421,5,2024,22,21,202405,2024),
+('2024-05-23',202421,5,2024,23,21,202405,2024),
+('2024-05-24',202421,5,2024,24,21,202405,2024),
+('2024-05-25',202421,5,2024,25,21,202405,2024),
+('2024-05-26',202422,5,2024,26,22,202405,2024),
+('2024-05-27',202422,5,2024,27,22,202405,2024),
+('2024-05-28',202422,5,2024,28,22,202405,2024),
+('2024-05-29',202422,5,2024,29,22,202405,2024),
+('2024-05-30',202422,5,2024,30,22,202405,2024),
+('2024-05-31',202422,5,2024,31,22,202405,2024),
+('2024-06-01',202422,6,2024,1,22,202406,2024),
+('2024-06-02',202423,6,2024,2,23,202406,2024),
+('2024-06-03',202423,6,2024,3,23,202406,2024),
+('2024-06-04',202423,6,2024,4,23,202406,2024),
+('2024-06-05',202423,6,2024,5,23,202406,2024),
+('2024-06-06',202423,6,2024,6,23,202406,2024),
+('2024-06-07',202423,6,2024,7,23,202406,2024),
+('2024-06-08',202423,6,2024,8,23,202406,2024),
+('2024-06-09',202424,6,2024,9,24,202406,2024),
+('2024-06-10',202424,6,2024,10,24,202406,2024),
+('2024-06-11',202424,6,2024,11,24,202406,2024),
+('2024-06-12',202424,6,2024,12,24,202406,2024),
+('2024-06-13',202424,6,2024,13,24,202406,2024),
+('2024-06-14',202424,6,2024,14,24,202406,2024),
+('2024-06-15',202424,6,2024,15,24,202406,2024),
+('2024-06-16',202425,6,2024,16,25,202406,2024),
+('2024-06-17',202425,6,2024,17,25,202406,2024),
+('2024-06-18',202425,6,2024,18,25,202406,2024),
+('2024-06-19',202425,6,2024,19,25,202406,2024),
+('2024-06-20',202425,6,2024,20,25,202406,2024),
+('2024-06-21',202425,6,2024,21,25,202406,2024),
+('2024-06-22',202425,6,2024,22,25,202406,2024),
+('2024-06-23',202426,6,2024,23,26,202406,2024),
+('2024-06-24',202426,6,2024,24,26,202406,2024),
+('2024-06-25',202426,6,2024,25,26,202406,2024),
+('2024-06-26',202426,6,2024,26,26,202406,2024),
+('2024-06-27',202426,6,2024,27,26,202406,2024),
+('2024-06-28',202426,6,2024,28,26,202406,2024),
+('2024-06-29',202426,6,2024,29,26,202406,2024),
+('2024-06-30',202427,6,2024,30,27,202406,2024),
+('2024-07-01',202427,7,2024,1,27,202407,2024),
+('2024-07-02',202427,7,2024,2,27,202407,2024),
+('2024-07-03',202427,7,2024,3,27,202407,2024),
+('2024-07-04',202427,7,2024,4,27,202407,2024),
+('2024-07-05',202427,7,2024,5,27,202407,2024),
+('2024-07-06',202427,7,2024,6,27,202407,2024),
+('2024-07-07',202428,7,2024,7,28,202407,2024),
+('2024-07-08',202428,7,2024,8,28,202407,2024),
+('2024-07-09',202428,7,2024,9,28,202407,2024),
+('2024-07-10',202428,7,2024,10,28,202407,2024),
+('2024-07-11',202428,7,2024,11,28,202407,2024),
+('2024-07-12',202428,7,2024,12,28,202407,2024),
+('2024-07-13',202428,7,2024,13,28,202407,2024),
+('2024-07-14',202429,7,2024,14,29,202407,2024),
+('2024-07-15',202429,7,2024,15,29,202407,2024),
+('2024-07-16',202429,7,2024,16,29,202407,2024),
+('2024-07-17',202429,7,2024,17,29,202407,2024),
+('2024-07-18',202429,7,2024,18,29,202407,2024),
+('2024-07-19',202429,7,2024,19,29,202407,2024),
+('2024-07-20',202429,7,2024,20,29,202407,2024),
+('2024-07-21',202430,7,2024,21,30,202407,2024),
+('2024-07-22',202430,7,2024,22,30,202407,2024),
+('2024-07-23',202430,7,2024,23,30,202407,2024),
+('2024-07-24',202430,7,2024,24,30,202407,2024),
+('2024-07-25',202430,7,2024,25,30,202407,2024),
+('2024-07-26',202430,7,2024,26,30,202407,2024),
+('2024-07-27',202430,7,2024,27,30,202407,2024),
+('2024-07-28',202431,7,2024,28,31,202407,2024),
+('2024-07-29',202431,7,2024,29,31,202407,2024),
+('2024-07-30',202431,7,2024,30,31,202407,2024),
+('2024-07-31',202431,7,2024,31,31,202407,2024),
+('2024-08-01',202431,8,2024,1,31,202408,2024),
+('2024-08-02',202431,8,2024,2,31,202408,2024),
+('2024-08-03',202431,8,2024,3,31,202408,2024),
+('2024-08-04',202432,8,2024,4,32,202408,2024),
+('2024-08-05',202432,8,2024,5,32,202408,2024),
+('2024-08-06',202432,8,2024,6,32,202408,2024),
+('2024-08-07',202432,8,2024,7,32,202408,2024),
+('2024-08-08',202432,8,2024,8,32,202408,2024),
+('2024-08-09',202432,8,2024,9,32,202408,2024),
+('2024-08-10',202432,8,2024,10,32,202408,2024),
+('2024-08-11',202433,8,2024,11,33,202408,2024),
+('2024-08-12',202433,8,2024,12,33,202408,2024),
+('2024-08-13',202433,8,2024,13,33,202408,2024),
+('2024-08-14',202433,8,2024,14,33,202408,2024),
+('2024-08-15',202433,8,2024,15,33,202408,2024),
+('2024-08-16',202433,8,2024,16,33,202408,2024),
+('2024-08-17',202433,8,2024,17,33,202408,2024),
+('2024-08-18',202434,8,2024,18,34,202408,2024),
+('2024-08-19',202434,8,2024,19,34,202408,2024),
+('2024-08-20',202434,8,2024,20,34,202408,2024),
+('2024-08-21',202434,8,2024,21,34,202408,2024),
+('2024-08-22',202434,8,2024,22,34,202408,2024),
+('2024-08-23',202434,8,2024,23,34,202408,2024),
+('2024-08-24',202434,8,2024,24,34,202408,2024),
+('2024-08-25',202435,8,2024,25,35,202408,2024),
+('2024-08-26',202435,8,2024,26,35,202408,2024),
+('2024-08-27',202435,8,2024,27,35,202408,2024),
+('2024-08-28',202435,8,2024,28,35,202408,2024),
+('2024-08-29',202435,8,2024,29,35,202408,2024),
+('2024-08-30',202435,8,2024,30,35,202408,2024),
+('2024-08-31',202435,8,2024,31,35,202408,2024),
+('2024-09-01',202436,9,2024,1,36,202409,2024),
+('2024-09-02',202436,9,2024,2,36,202409,2024),
+('2024-09-03',202436,9,2024,3,36,202409,2024),
+('2024-09-04',202436,9,2024,4,36,202409,2024),
+('2024-09-05',202436,9,2024,5,36,202409,2024),
+('2024-09-06',202436,9,2024,6,36,202409,2024),
+('2024-09-07',202436,9,2024,7,36,202409,2024),
+('2024-09-08',202437,9,2024,8,37,202409,2024),
+('2024-09-09',202437,9,2024,9,37,202409,2024),
+('2024-09-10',202437,9,2024,10,37,202409,2024),
+('2024-09-11',202437,9,2024,11,37,202409,2024),
+('2024-09-12',202437,9,2024,12,37,202409,2024),
+('2024-09-13',202437,9,2024,13,37,202409,2024),
+('2024-09-14',202437,9,2024,14,37,202409,2024),
+('2024-09-15',202438,9,2024,15,38,202409,2024),
+('2024-09-16',202438,9,2024,16,38,202409,2024),
+('2024-09-17',202438,9,2024,17,38,202409,2024),
+('2024-09-18',202438,9,2024,18,38,202409,2024),
+('2024-09-19',202438,9,2024,19,38,202409,2024),
+('2024-09-20',202438,9,2024,20,38,202409,2024),
+('2024-09-21',202438,9,2024,21,38,202409,2024),
+('2024-09-22',202439,9,2024,22,39,202409,2024),
+('2024-09-23',202439,9,2024,23,39,202409,2024),
+('2024-09-24',202439,9,2024,24,39,202409,2024),
+('2024-09-25',202439,9,2024,25,39,202409,2024),
+('2024-09-26',202439,9,2024,26,39,202409,2024),
+('2024-09-27',202439,9,2024,27,39,202409,2024),
+('2024-09-28',202439,9,2024,28,39,202409,2024),
+('2024-09-29',202440,9,2024,29,40,202409,2024),
+('2024-09-30',202440,9,2024,30,40,202409,2024),
+('2024-10-01',202440,10,2024,1,40,202410,2024),
+('2024-10-02',202440,10,2024,2,40,202410,2024),
+('2024-10-03',202440,10,2024,3,40,202410,2024),
+('2024-10-04',202440,10,2024,4,40,202410,2024),
+('2024-10-05',202440,10,2024,5,40,202410,2024),
+('2024-10-06',202441,10,2024,6,41,202410,2024),
+('2024-10-07',202441,10,2024,7,41,202410,2024),
+('2024-10-08',202441,10,2024,8,41,202410,2024),
+('2024-10-09',202441,10,2024,9,41,202410,2024),
+('2024-10-10',202441,10,2024,10,41,202410,2024),
+('2024-10-11',202441,10,2024,11,41,202410,2024),
+('2024-10-12',202441,10,2024,12,41,202410,2024),
+('2024-10-13',202442,10,2024,13,42,202410,2024),
+('2024-10-14',202442,10,2024,14,42,202410,2024),
+('2024-10-15',202442,10,2024,15,42,202410,2024),
+('2024-10-16',202442,10,2024,16,42,202410,2024),
+('2024-10-17',202442,10,2024,17,42,202410,2024),
+('2024-10-18',202442,10,2024,18,42,202410,2024),
+('2024-10-19',202442,10,2024,19,42,202410,2024),
+('2024-10-20',202443,10,2024,20,43,202410,2024),
+('2024-10-21',202443,10,2024,21,43,202410,2024),
+('2024-10-22',202443,10,2024,22,43,202410,2024),
+('2024-10-23',202443,10,2024,23,43,202410,2024),
+('2024-10-24',202443,10,2024,24,43,202410,2024),
+('2024-10-25',202443,10,2024,25,43,202410,2024),
+('2024-10-26',202443,10,2024,26,43,202410,2024),
+('2024-10-27',202444,10,2024,27,44,202410,2024),
+('2024-10-28',202444,10,2024,28,44,202410,2024),
+('2024-10-29',202444,10,2024,29,44,202410,2024),
+('2024-10-30',202444,10,2024,30,44,202410,2024),
+('2024-10-31',202444,10,2024,31,44,202410,2024),
+('2024-11-01',202444,11,2024,1,44,202411,2024),
+('2024-11-02',202444,11,2024,2,44,202411,2024),
+('2024-11-03',202445,11,2024,3,45,202411,2024),
+('2024-11-04',202445,11,2024,4,45,202411,2024),
+('2024-11-05',202445,11,2024,5,45,202411,2024),
+('2024-11-06',202445,11,2024,6,45,202411,2024),
+('2024-11-07',202445,11,2024,7,45,202411,2024),
+('2024-11-08',202445,11,2024,8,45,202411,2024),
+('2024-11-09',202445,11,2024,9,45,202411,2024),
+('2024-11-10',202446,11,2024,10,46,202411,2024),
+('2024-11-11',202446,11,2024,11,46,202411,2024),
+('2024-11-12',202446,11,2024,12,46,202411,2024),
+('2024-11-13',202446,11,2024,13,46,202411,2024),
+('2024-11-14',202446,11,2024,14,46,202411,2024),
+('2024-11-15',202446,11,2024,15,46,202411,2024),
+('2024-11-16',202446,11,2024,16,46,202411,2024),
+('2024-11-17',202447,11,2024,17,47,202411,2024),
+('2024-11-18',202447,11,2024,18,47,202411,2024),
+('2024-11-19',202447,11,2024,19,47,202411,2024),
+('2024-11-20',202447,11,2024,20,47,202411,2024),
+('2024-11-21',202447,11,2024,21,47,202411,2024),
+('2024-11-22',202447,11,2024,22,47,202411,2024),
+('2024-11-23',202447,11,2024,23,47,202411,2024),
+('2024-11-24',202448,11,2024,24,48,202411,2024),
+('2024-11-25',202448,11,2024,25,48,202411,2024),
+('2024-11-26',202448,11,2024,26,48,202411,2024),
+('2024-11-27',202448,11,2024,27,48,202411,2024),
+('2024-11-28',202448,11,2024,28,48,202411,2024),
+('2024-11-29',202448,11,2024,29,48,202411,2024),
+('2024-11-30',202448,11,2024,30,48,202411,2024),
+('2024-12-01',202449,12,2024,1,49,202412,2025),
+('2024-12-02',202449,12,2024,2,49,202412,2025),
+('2024-12-03',202449,12,2024,3,49,202412,2025),
+('2024-12-04',202449,12,2024,4,49,202412,2025),
+('2024-12-05',202449,12,2024,5,49,202412,2025),
+('2024-12-06',202449,12,2024,6,49,202412,2025),
+('2024-12-07',202449,12,2024,7,49,202412,2025),
+('2024-12-08',202450,12,2024,8,50,202412,2025),
+('2024-12-09',202450,12,2024,9,50,202412,2025),
+('2024-12-10',202450,12,2024,10,50,202412,2025),
+('2024-12-11',202450,12,2024,11,50,202412,2025),
+('2024-12-12',202450,12,2024,12,50,202412,2025),
+('2024-12-13',202450,12,2024,13,50,202412,2025),
+('2024-12-14',202450,12,2024,14,50,202412,2025),
+('2024-12-15',202451,12,2024,15,51,202412,2025),
+('2024-12-16',202451,12,2024,16,51,202412,2025),
+('2024-12-17',202451,12,2024,17,51,202412,2025),
+('2024-12-18',202451,12,2024,18,51,202412,2025),
+('2024-12-19',202451,12,2024,19,51,202412,2025),
+('2024-12-20',202451,12,2024,20,51,202412,2025),
+('2024-12-21',202451,12,2024,21,51,202412,2025),
+('2024-12-22',202452,12,2024,22,52,202412,2025),
+('2024-12-23',202452,12,2024,23,52,202412,2025),
+('2024-12-24',202452,12,2024,24,52,202412,2025),
+('2024-12-25',202452,12,2024,25,52,202412,2025),
+('2024-12-26',202452,12,2024,26,52,202412,2025),
+('2024-12-27',202452,12,2024,27,52,202412,2025),
+('2024-12-28',202452,12,2024,28,52,202412,2025),
+('2024-12-29',202453,12,2024,29,1,202412,2025),
+('2024-12-30',202401,12,2024,30,1,202412,2025),
+('2024-12-31',202401,12,2024,31,1,202412,2025),
+('2025-01-01',202501,1,2025,1,1,202501,2025),
+('2025-01-02',202501,1,2025,2,1,202501,2025),
+('2025-01-03',202501,1,2025,3,1,202501,2025),
+('2025-01-04',202501,1,2025,4,1,202501,2025),
+('2025-01-05',202502,1,2025,5,2,202501,2025),
+('2025-01-06',202502,1,2025,6,2,202501,2025),
+('2025-01-07',202502,1,2025,7,2,202501,2025),
+('2025-01-08',202502,1,2025,8,2,202501,2025),
+('2025-01-09',202502,1,2025,9,2,202501,2025),
+('2025-01-10',202502,1,2025,10,2,202501,2025),
+('2025-01-11',202502,1,2025,11,2,202501,2025),
+('2025-01-12',202503,1,2025,12,3,202501,2025),
+('2025-01-13',202503,1,2025,13,3,202501,2025),
+('2025-01-14',202503,1,2025,14,3,202501,2025),
+('2025-01-15',202503,1,2025,15,3,202501,2025),
+('2025-01-16',202503,1,2025,16,3,202501,2025),
+('2025-01-17',202503,1,2025,17,3,202501,2025),
+('2025-01-18',202503,1,2025,18,3,202501,2025),
+('2025-01-19',202504,1,2025,19,4,202501,2025),
+('2025-01-20',202504,1,2025,20,4,202501,2025),
+('2025-01-21',202504,1,2025,21,4,202501,2025),
+('2025-01-22',202504,1,2025,22,4,202501,2025),
+('2025-01-23',202504,1,2025,23,4,202501,2025),
+('2025-01-24',202504,1,2025,24,4,202501,2025),
+('2025-01-25',202504,1,2025,25,4,202501,2025),
+('2025-01-26',202505,1,2025,26,5,202501,2025),
+('2025-01-27',202505,1,2025,27,5,202501,2025),
+('2025-01-28',202505,1,2025,28,5,202501,2025),
+('2025-01-29',202505,1,2025,29,5,202501,2025),
+('2025-01-30',202505,1,2025,30,5,202501,2025),
+('2025-01-31',202505,1,2025,31,5,202501,2025),
+('2025-02-01',202505,2,2025,1,5,202502,2025),
+('2025-02-02',202506,2,2025,2,6,202502,2025),
+('2025-02-03',202506,2,2025,3,6,202502,2025),
+('2025-02-04',202506,2,2025,4,6,202502,2025),
+('2025-02-05',202506,2,2025,5,6,202502,2025),
+('2025-02-06',202506,2,2025,6,6,202502,2025),
+('2025-02-07',202506,2,2025,7,6,202502,2025),
+('2025-02-08',202506,2,2025,8,6,202502,2025),
+('2025-02-09',202507,2,2025,9,7,202502,2025),
+('2025-02-10',202507,2,2025,10,7,202502,2025),
+('2025-02-11',202507,2,2025,11,7,202502,2025),
+('2025-02-12',202507,2,2025,12,7,202502,2025),
+('2025-02-13',202507,2,2025,13,7,202502,2025),
+('2025-02-14',202507,2,2025,14,7,202502,2025),
+('2025-02-15',202507,2,2025,15,7,202502,2025),
+('2025-02-16',202508,2,2025,16,8,202502,2025),
+('2025-02-17',202508,2,2025,17,8,202502,2025),
+('2025-02-18',202508,2,2025,18,8,202502,2025),
+('2025-02-19',202508,2,2025,19,8,202502,2025),
+('2025-02-20',202508,2,2025,20,8,202502,2025),
+('2025-02-21',202508,2,2025,21,8,202502,2025),
+('2025-02-22',202508,2,2025,22,8,202502,2025),
+('2025-02-23',202509,2,2025,23,9,202502,2025),
+('2025-02-24',202509,2,2025,24,9,202502,2025),
+('2025-02-25',202509,2,2025,25,9,202502,2025),
+('2025-02-26',202509,2,2025,26,9,202502,2025),
+('2025-02-27',202509,2,2025,27,9,202502,2025),
+('2025-02-28',202509,2,2025,28,9,202502,2025),
+('2025-03-01',202509,3,2025,1,9,202503,2025),
+('2025-03-02',202510,3,2025,2,10,202503,2025),
+('2025-03-03',202510,3,2025,3,10,202503,2025),
+('2025-03-04',202510,3,2025,4,10,202503,2025),
+('2025-03-05',202510,3,2025,5,10,202503,2025),
+('2025-03-06',202510,3,2025,6,10,202503,2025),
+('2025-03-07',202510,3,2025,7,10,202503,2025),
+('2025-03-08',202510,3,2025,8,10,202503,2025),
+('2025-03-09',202511,3,2025,9,11,202503,2025),
+('2025-03-10',202511,3,2025,10,11,202503,2025),
+('2025-03-11',202511,3,2025,11,11,202503,2025),
+('2025-03-12',202511,3,2025,12,11,202503,2025),
+('2025-03-13',202511,3,2025,13,11,202503,2025),
+('2025-03-14',202511,3,2025,14,11,202503,2025),
+('2025-03-15',202511,3,2025,15,11,202503,2025),
+('2025-03-16',202512,3,2025,16,12,202503,2025),
+('2025-03-17',202512,3,2025,17,12,202503,2025),
+('2025-03-18',202512,3,2025,18,12,202503,2025),
+('2025-03-19',202512,3,2025,19,12,202503,2025),
+('2025-03-20',202512,3,2025,20,12,202503,2025),
+('2025-03-21',202512,3,2025,21,12,202503,2025),
+('2025-03-22',202512,3,2025,22,12,202503,2025),
+('2025-03-23',202513,3,2025,23,13,202503,2025),
+('2025-03-24',202513,3,2025,24,13,202503,2025),
+('2025-03-25',202513,3,2025,25,13,202503,2025),
+('2025-03-26',202513,3,2025,26,13,202503,2025),
+('2025-03-27',202513,3,2025,27,13,202503,2025),
+('2025-03-28',202513,3,2025,28,13,202503,2025),
+('2025-03-29',202513,3,2025,29,13,202503,2025),
+('2025-03-30',202514,3,2025,30,14,202503,2025),
+('2025-03-31',202514,3,2025,31,14,202503,2025),
+('2025-04-01',202514,4,2025,1,14,202504,2025),
+('2025-04-02',202514,4,2025,2,14,202504,2025),
+('2025-04-03',202514,4,2025,3,14,202504,2025),
+('2025-04-04',202514,4,2025,4,14,202504,2025),
+('2025-04-05',202514,4,2025,5,14,202504,2025),
+('2025-04-06',202515,4,2025,6,15,202504,2025),
+('2025-04-07',202515,4,2025,7,15,202504,2025),
+('2025-04-08',202515,4,2025,8,15,202504,2025),
+('2025-04-09',202515,4,2025,9,15,202504,2025),
+('2025-04-10',202515,4,2025,10,15,202504,2025),
+('2025-04-11',202515,4,2025,11,15,202504,2025),
+('2025-04-12',202515,4,2025,12,15,202504,2025),
+('2025-04-13',202516,4,2025,13,16,202504,2025),
+('2025-04-14',202516,4,2025,14,16,202504,2025),
+('2025-04-15',202516,4,2025,15,16,202504,2025),
+('2025-04-16',202516,4,2025,16,16,202504,2025),
+('2025-04-17',202516,4,2025,17,16,202504,2025),
+('2025-04-18',202516,4,2025,18,16,202504,2025),
+('2025-04-19',202516,4,2025,19,16,202504,2025),
+('2025-04-20',202517,4,2025,20,17,202504,2025),
+('2025-04-21',202517,4,2025,21,17,202504,2025),
+('2025-04-22',202517,4,2025,22,17,202504,2025),
+('2025-04-23',202517,4,2025,23,17,202504,2025),
+('2025-04-24',202517,4,2025,24,17,202504,2025),
+('2025-04-25',202517,4,2025,25,17,202504,2025),
+('2025-04-26',202517,4,2025,26,17,202504,2025),
+('2025-04-27',202518,4,2025,27,18,202504,2025),
+('2025-04-28',202518,4,2025,28,18,202504,2025),
+('2025-04-29',202518,4,2025,29,18,202504,2025),
+('2025-04-30',202518,4,2025,30,18,202504,2025),
+('2025-05-01',202518,5,2025,1,18,202505,2025),
+('2025-05-02',202518,5,2025,2,18,202505,2025),
+('2025-05-03',202518,5,2025,3,18,202505,2025),
+('2025-05-04',202519,5,2025,4,19,202505,2025),
+('2025-05-05',202519,5,2025,5,19,202505,2025),
+('2025-05-06',202519,5,2025,6,19,202505,2025),
+('2025-05-07',202519,5,2025,7,19,202505,2025),
+('2025-05-08',202519,5,2025,8,19,202505,2025),
+('2025-05-09',202519,5,2025,9,19,202505,2025),
+('2025-05-10',202519,5,2025,10,19,202505,2025),
+('2025-05-11',202520,5,2025,11,20,202505,2025),
+('2025-05-12',202520,5,2025,12,20,202505,2025),
+('2025-05-13',202520,5,2025,13,20,202505,2025),
+('2025-05-14',202520,5,2025,14,20,202505,2025),
+('2025-05-15',202520,5,2025,15,20,202505,2025),
+('2025-05-16',202520,5,2025,16,20,202505,2025),
+('2025-05-17',202520,5,2025,17,20,202505,2025),
+('2025-05-18',202521,5,2025,18,21,202505,2025),
+('2025-05-19',202521,5,2025,19,21,202505,2025),
+('2025-05-20',202521,5,2025,20,21,202505,2025),
+('2025-05-21',202521,5,2025,21,21,202505,2025),
+('2025-05-22',202521,5,2025,22,21,202505,2025),
+('2025-05-23',202521,5,2025,23,21,202505,2025),
+('2025-05-24',202521,5,2025,24,21,202505,2025),
+('2025-05-25',202522,5,2025,25,22,202505,2025),
+('2025-05-26',202522,5,2025,26,22,202505,2025),
+('2025-05-27',202522,5,2025,27,22,202505,2025),
+('2025-05-28',202522,5,2025,28,22,202505,2025),
+('2025-05-29',202522,5,2025,29,22,202505,2025),
+('2025-05-30',202522,5,2025,30,22,202505,2025),
+('2025-05-31',202522,5,2025,31,22,202505,2025),
+('2025-06-01',202523,6,2025,1,23,202506,2025),
+('2025-06-02',202523,6,2025,2,23,202506,2025),
+('2025-06-03',202523,6,2025,3,23,202506,2025),
+('2025-06-04',202523,6,2025,4,23,202506,2025),
+('2025-06-05',202523,6,2025,5,23,202506,2025),
+('2025-06-06',202523,6,2025,6,23,202506,2025),
+('2025-06-07',202523,6,2025,7,23,202506,2025),
+('2025-06-08',202524,6,2025,8,24,202506,2025),
+('2025-06-09',202524,6,2025,9,24,202506,2025),
+('2025-06-10',202524,6,2025,10,24,202506,2025),
+('2025-06-11',202524,6,2025,11,24,202506,2025),
+('2025-06-12',202524,6,2025,12,24,202506,2025),
+('2025-06-13',202524,6,2025,13,24,202506,2025),
+('2025-06-14',202524,6,2025,14,24,202506,2025),
+('2025-06-15',202525,6,2025,15,25,202506,2025),
+('2025-06-16',202525,6,2025,16,25,202506,2025),
+('2025-06-17',202525,6,2025,17,25,202506,2025),
+('2025-06-18',202525,6,2025,18,25,202506,2025),
+('2025-06-19',202525,6,2025,19,25,202506,2025),
+('2025-06-20',202525,6,2025,20,25,202506,2025),
+('2025-06-21',202525,6,2025,21,25,202506,2025),
+('2025-06-22',202526,6,2025,22,26,202506,2025),
+('2025-06-23',202526,6,2025,23,26,202506,2025),
+('2025-06-24',202526,6,2025,24,26,202506,2025),
+('2025-06-25',202526,6,2025,25,26,202506,2025),
+('2025-06-26',202526,6,2025,26,26,202506,2025),
+('2025-06-27',202526,6,2025,27,26,202506,2025),
+('2025-06-28',202526,6,2025,28,26,202506,2025),
+('2025-06-29',202527,6,2025,29,27,202506,2025),
+('2025-06-30',202527,6,2025,30,27,202506,2025),
+('2025-07-01',202527,7,2025,1,27,202507,2025),
+('2025-07-02',202527,7,2025,2,27,202507,2025),
+('2025-07-03',202527,7,2025,3,27,202507,2025),
+('2025-07-04',202527,7,2025,4,27,202507,2025),
+('2025-07-05',202527,7,2025,5,27,202507,2025),
+('2025-07-06',202528,7,2025,6,28,202507,2025),
+('2025-07-07',202528,7,2025,7,28,202507,2025),
+('2025-07-08',202528,7,2025,8,28,202507,2025),
+('2025-07-09',202528,7,2025,9,28,202507,2025),
+('2025-07-10',202528,7,2025,10,28,202507,2025),
+('2025-07-11',202528,7,2025,11,28,202507,2025),
+('2025-07-12',202528,7,2025,12,28,202507,2025),
+('2025-07-13',202529,7,2025,13,29,202507,2025),
+('2025-07-14',202529,7,2025,14,29,202507,2025),
+('2025-07-15',202529,7,2025,15,29,202507,2025),
+('2025-07-16',202529,7,2025,16,29,202507,2025),
+('2025-07-17',202529,7,2025,17,29,202507,2025),
+('2025-07-18',202529,7,2025,18,29,202507,2025),
+('2025-07-19',202529,7,2025,19,29,202507,2025),
+('2025-07-20',202530,7,2025,20,30,202507,2025),
+('2025-07-21',202530,7,2025,21,30,202507,2025),
+('2025-07-22',202530,7,2025,22,30,202507,2025),
+('2025-07-23',202530,7,2025,23,30,202507,2025),
+('2025-07-24',202530,7,2025,24,30,202507,2025),
+('2025-07-25',202530,7,2025,25,30,202507,2025),
+('2025-07-26',202530,7,2025,26,30,202507,2025),
+('2025-07-27',202531,7,2025,27,31,202507,2025),
+('2025-07-28',202531,7,2025,28,31,202507,2025),
+('2025-07-29',202531,7,2025,29,31,202507,2025),
+('2025-07-30',202531,7,2025,30,31,202507,2025),
+('2025-07-31',202531,7,2025,31,31,202507,2025),
+('2025-08-01',202531,8,2025,1,31,202508,2025),
+('2025-08-02',202531,8,2025,2,31,202508,2025),
+('2025-08-03',202532,8,2025,3,32,202508,2025),
+('2025-08-04',202532,8,2025,4,32,202508,2025),
+('2025-08-05',202532,8,2025,5,32,202508,2025),
+('2025-08-06',202532,8,2025,6,32,202508,2025),
+('2025-08-07',202532,8,2025,7,32,202508,2025),
+('2025-08-08',202532,8,2025,8,32,202508,2025),
+('2025-08-09',202532,8,2025,9,32,202508,2025),
+('2025-08-10',202533,8,2025,10,33,202508,2025),
+('2025-08-11',202533,8,2025,11,33,202508,2025),
+('2025-08-12',202533,8,2025,12,33,202508,2025),
+('2025-08-13',202533,8,2025,13,33,202508,2025),
+('2025-08-14',202533,8,2025,14,33,202508,2025),
+('2025-08-15',202533,8,2025,15,33,202508,2025),
+('2025-08-16',202533,8,2025,16,33,202508,2025),
+('2025-08-17',202534,8,2025,17,34,202508,2025),
+('2025-08-18',202534,8,2025,18,34,202508,2025),
+('2025-08-19',202534,8,2025,19,34,202508,2025),
+('2025-08-20',202534,8,2025,20,34,202508,2025),
+('2025-08-21',202534,8,2025,21,34,202508,2025),
+('2025-08-22',202534,8,2025,22,34,202508,2025),
+('2025-08-23',202534,8,2025,23,34,202508,2025),
+('2025-08-24',202535,8,2025,24,35,202508,2025),
+('2025-08-25',202535,8,2025,25,35,202508,2025),
+('2025-08-26',202535,8,2025,26,35,202508,2025),
+('2025-08-27',202535,8,2025,27,35,202508,2025),
+('2025-08-28',202535,8,2025,28,35,202508,2025),
+('2025-08-29',202535,8,2025,29,35,202508,2025),
+('2025-08-30',202535,8,2025,30,35,202508,2025),
+('2025-08-31',202536,8,2025,31,36,202508,2025),
+('2025-09-01',202536,9,2025,1,36,202509,2025),
+('2025-09-02',202536,9,2025,2,36,202509,2025),
+('2025-09-03',202536,9,2025,3,36,202509,2025),
+('2025-09-04',202536,9,2025,4,36,202509,2025),
+('2025-09-05',202536,9,2025,5,36,202509,2025),
+('2025-09-06',202536,9,2025,6,36,202509,2025),
+('2025-09-07',202537,9,2025,7,37,202509,2025),
+('2025-09-08',202537,9,2025,8,37,202509,2025),
+('2025-09-09',202537,9,2025,9,37,202509,2025),
+('2025-09-10',202537,9,2025,10,37,202509,2025),
+('2025-09-11',202537,9,2025,11,37,202509,2025),
+('2025-09-12',202537,9,2025,12,37,202509,2025),
+('2025-09-13',202537,9,2025,13,37,202509,2025),
+('2025-09-14',202538,9,2025,14,38,202509,2025),
+('2025-09-15',202538,9,2025,15,38,202509,2025),
+('2025-09-16',202538,9,2025,16,38,202509,2025),
+('2025-09-17',202538,9,2025,17,38,202509,2025),
+('2025-09-18',202538,9,2025,18,38,202509,2025),
+('2025-09-19',202538,9,2025,19,38,202509,2025),
+('2025-09-20',202538,9,2025,20,38,202509,2025),
+('2025-09-21',202539,9,2025,21,39,202509,2025),
+('2025-09-22',202539,9,2025,22,39,202509,2025),
+('2025-09-23',202539,9,2025,23,39,202509,2025),
+('2025-09-24',202539,9,2025,24,39,202509,2025),
+('2025-09-25',202539,9,2025,25,39,202509,2025),
+('2025-09-26',202539,9,2025,26,39,202509,2025),
+('2025-09-27',202539,9,2025,27,39,202509,2025),
+('2025-09-28',202540,9,2025,28,40,202509,2025),
+('2025-09-29',202540,9,2025,29,40,202509,2025),
+('2025-09-30',202540,9,2025,30,40,202509,2025),
+('2025-10-01',202540,10,2025,1,40,202510,2025),
+('2025-10-02',202540,10,2025,2,40,202510,2025),
+('2025-10-03',202540,10,2025,3,40,202510,2025),
+('2025-10-04',202540,10,2025,4,40,202510,2025),
+('2025-10-05',202541,10,2025,5,41,202510,2025),
+('2025-10-06',202541,10,2025,6,41,202510,2025),
+('2025-10-07',202541,10,2025,7,41,202510,2025),
+('2025-10-08',202541,10,2025,8,41,202510,2025),
+('2025-10-09',202541,10,2025,9,41,202510,2025),
+('2025-10-10',202541,10,2025,10,41,202510,2025),
+('2025-10-11',202541,10,2025,11,41,202510,2025),
+('2025-10-12',202542,10,2025,12,42,202510,2025),
+('2025-10-13',202542,10,2025,13,42,202510,2025),
+('2025-10-14',202542,10,2025,14,42,202510,2025),
+('2025-10-15',202542,10,2025,15,42,202510,2025),
+('2025-10-16',202542,10,2025,16,42,202510,2025),
+('2025-10-17',202542,10,2025,17,42,202510,2025),
+('2025-10-18',202542,10,2025,18,42,202510,2025),
+('2025-10-19',202543,10,2025,19,43,202510,2025),
+('2025-10-20',202543,10,2025,20,43,202510,2025),
+('2025-10-21',202543,10,2025,21,43,202510,2025),
+('2025-10-22',202543,10,2025,22,43,202510,2025),
+('2025-10-23',202543,10,2025,23,43,202510,2025),
+('2025-10-24',202543,10,2025,24,43,202510,2025),
+('2025-10-25',202543,10,2025,25,43,202510,2025),
+('2025-10-26',202544,10,2025,26,44,202510,2025),
+('2025-10-27',202544,10,2025,27,44,202510,2025),
+('2025-10-28',202544,10,2025,28,44,202510,2025),
+('2025-10-29',202544,10,2025,29,44,202510,2025),
+('2025-10-30',202544,10,2025,30,44,202510,2025),
+('2025-10-31',202544,10,2025,31,44,202510,2025),
+('2025-11-01',202544,11,2025,1,44,202511,2025),
+('2025-11-02',202545,11,2025,2,45,202511,2025),
+('2025-11-03',202545,11,2025,3,45,202511,2025),
+('2025-11-04',202545,11,2025,4,45,202511,2025),
+('2025-11-05',202545,11,2025,5,45,202511,2025),
+('2025-11-06',202545,11,2025,6,45,202511,2025),
+('2025-11-07',202545,11,2025,7,45,202511,2025),
+('2025-11-08',202545,11,2025,8,45,202511,2025),
+('2025-11-09',202546,11,2025,9,46,202511,2025),
+('2025-11-10',202546,11,2025,10,46,202511,2025),
+('2025-11-11',202546,11,2025,11,46,202511,2025),
+('2025-11-12',202546,11,2025,12,46,202511,2025),
+('2025-11-13',202546,11,2025,13,46,202511,2025),
+('2025-11-14',202546,11,2025,14,46,202511,2025),
+('2025-11-15',202546,11,2025,15,46,202511,2025),
+('2025-11-16',202547,11,2025,16,47,202511,2025),
+('2025-11-17',202547,11,2025,17,47,202511,2025),
+('2025-11-18',202547,11,2025,18,47,202511,2025),
+('2025-11-19',202547,11,2025,19,47,202511,2025),
+('2025-11-20',202547,11,2025,20,47,202511,2025),
+('2025-11-21',202547,11,2025,21,47,202511,2025),
+('2025-11-22',202547,11,2025,22,47,202511,2025),
+('2025-11-23',202548,11,2025,23,48,202511,2025),
+('2025-11-24',202548,11,2025,24,48,202511,2025),
+('2025-11-25',202548,11,2025,25,48,202511,2025),
+('2025-11-26',202548,11,2025,26,48,202511,2025),
+('2025-11-27',202548,11,2025,27,48,202511,2025),
+('2025-11-28',202548,11,2025,28,48,202511,2025),
+('2025-11-29',202548,11,2025,29,48,202511,2025),
+('2025-11-30',202549,11,2025,30,49,202511,2025),
+('2025-12-01',202549,12,2025,1,49,202512,2026),
+('2025-12-02',202549,12,2025,2,49,202512,2026),
+('2025-12-03',202549,12,2025,3,49,202512,2026),
+('2025-12-04',202549,12,2025,4,49,202512,2026),
+('2025-12-05',202549,12,2025,5,49,202512,2026),
+('2025-12-06',202549,12,2025,6,49,202512,2026),
+('2025-12-07',202550,12,2025,7,50,202512,2026),
+('2025-12-08',202550,12,2025,8,50,202512,2026),
+('2025-12-09',202550,12,2025,9,50,202512,2026),
+('2025-12-10',202550,12,2025,10,50,202512,2026),
+('2025-12-11',202550,12,2025,11,50,202512,2026),
+('2025-12-12',202550,12,2025,12,50,202512,2026),
+('2025-12-13',202550,12,2025,13,50,202512,2026),
+('2025-12-14',202551,12,2025,14,51,202512,2026),
+('2025-12-15',202551,12,2025,15,51,202512,2026),
+('2025-12-16',202551,12,2025,16,51,202512,2026),
+('2025-12-17',202551,12,2025,17,51,202512,2026),
+('2025-12-18',202551,12,2025,18,51,202512,2026),
+('2025-12-19',202551,12,2025,19,51,202512,2026),
+('2025-12-20',202551,12,2025,20,51,202512,2026),
+('2025-12-21',202552,12,2025,21,52,202512,2026),
+('2025-12-22',202552,12,2025,22,52,202512,2026),
+('2025-12-23',202552,12,2025,23,52,202512,2026),
+('2025-12-24',202552,12,2025,24,52,202512,2026),
+('2025-12-25',202552,12,2025,25,52,202512,2026),
+('2025-12-26',202552,12,2025,26,52,202512,2026),
+('2025-12-27',202552,12,2025,27,52,202512,2026),
+('2025-12-28',202553,12,2025,28,53,202512,2026),
+('2025-12-29',202501,12,2025,29,53,202512,2026),
+('2025-12-30',202501,12,2025,30,53,202512,2026),
+('2025-12-31',202501,12,2025,31,53,202512,2026),
+('2026-01-01',202601,1,2026,1,53,202601,2026),
+('2026-01-02',202601,1,2026,2,53,202601,2026),
+('2026-01-03',202601,1,2026,3,53,202601,2026),
+('2026-01-04',202602,1,2026,4,1,202601,2026),
+('2026-01-05',202602,1,2026,5,1,202601,2026),
+('2026-01-06',202602,1,2026,6,1,202601,2026),
+('2026-01-07',202602,1,2026,7,1,202601,2026),
+('2026-01-08',202602,1,2026,8,1,202601,2026),
+('2026-01-09',202602,1,2026,9,1,202601,2026),
+('2026-01-10',202602,1,2026,10,1,202601,2026),
+('2026-01-11',202603,1,2026,11,2,202601,2026),
+('2026-01-12',202603,1,2026,12,2,202601,2026),
+('2026-01-13',202603,1,2026,13,2,202601,2026),
+('2026-01-14',202603,1,2026,14,2,202601,2026),
+('2026-01-15',202603,1,2026,15,2,202601,2026),
+('2026-01-16',202603,1,2026,16,2,202601,2026),
+('2026-01-17',202603,1,2026,17,2,202601,2026),
+('2026-01-18',202604,1,2026,18,3,202601,2026),
+('2026-01-19',202604,1,2026,19,3,202601,2026),
+('2026-01-20',202604,1,2026,20,3,202601,2026),
+('2026-01-21',202604,1,2026,21,3,202601,2026),
+('2026-01-22',202604,1,2026,22,3,202601,2026),
+('2026-01-23',202604,1,2026,23,3,202601,2026),
+('2026-01-24',202604,1,2026,24,3,202601,2026),
+('2026-01-25',202605,1,2026,25,4,202601,2026),
+('2026-01-26',202605,1,2026,26,4,202601,2026),
+('2026-01-27',202605,1,2026,27,4,202601,2026),
+('2026-01-28',202605,1,2026,28,4,202601,2026),
+('2026-01-29',202605,1,2026,29,4,202601,2026),
+('2026-01-30',202605,1,2026,30,4,202601,2026),
+('2026-01-31',202605,1,2026,31,4,202601,2026),
+('2026-02-01',202606,2,2026,1,5,202602,2026),
+('2026-02-02',202606,2,2026,2,5,202602,2026),
+('2026-02-03',202606,2,2026,3,5,202602,2026),
+('2026-02-04',202606,2,2026,4,5,202602,2026),
+('2026-02-05',202606,2,2026,5,5,202602,2026),
+('2026-02-06',202606,2,2026,6,5,202602,2026),
+('2026-02-07',202606,2,2026,7,5,202602,2026),
+('2026-02-08',202607,2,2026,8,6,202602,2026),
+('2026-02-09',202607,2,2026,9,6,202602,2026),
+('2026-02-10',202607,2,2026,10,6,202602,2026),
+('2026-02-11',202607,2,2026,11,6,202602,2026),
+('2026-02-12',202607,2,2026,12,6,202602,2026),
+('2026-02-13',202607,2,2026,13,6,202602,2026),
+('2026-02-14',202607,2,2026,14,6,202602,2026),
+('2026-02-15',202608,2,2026,15,7,202602,2026),
+('2026-02-16',202608,2,2026,16,7,202602,2026),
+('2026-02-17',202608,2,2026,17,7,202602,2026),
+('2026-02-18',202608,2,2026,18,7,202602,2026),
+('2026-02-19',202608,2,2026,19,7,202602,2026),
+('2026-02-20',202608,2,2026,20,7,202602,2026),
+('2026-02-21',202608,2,2026,21,7,202602,2026),
+('2026-02-22',202609,2,2026,22,8,202602,2026),
+('2026-02-23',202609,2,2026,23,8,202602,2026),
+('2026-02-24',202609,2,2026,24,8,202602,2026),
+('2026-02-25',202609,2,2026,25,8,202602,2026),
+('2026-02-26',202609,2,2026,26,8,202602,2026),
+('2026-02-27',202609,2,2026,27,8,202602,2026),
+('2026-02-28',202609,2,2026,28,8,202602,2026),
+('2026-03-01',202610,3,2026,1,9,202603,2026),
+('2026-03-02',202610,3,2026,2,9,202603,2026),
+('2026-03-03',202610,3,2026,3,9,202603,2026),
+('2026-03-04',202610,3,2026,4,9,202603,2026),
+('2026-03-05',202610,3,2026,5,9,202603,2026),
+('2026-03-06',202610,3,2026,6,9,202603,2026),
+('2026-03-07',202610,3,2026,7,9,202603,2026),
+('2026-03-08',202611,3,2026,8,10,202603,2026),
+('2026-03-09',202611,3,2026,9,10,202603,2026),
+('2026-03-10',202611,3,2026,10,10,202603,2026),
+('2026-03-11',202611,3,2026,11,10,202603,2026),
+('2026-03-12',202611,3,2026,12,10,202603,2026),
+('2026-03-13',202611,3,2026,13,10,202603,2026),
+('2026-03-14',202611,3,2026,14,10,202603,2026),
+('2026-03-15',202612,3,2026,15,11,202603,2026),
+('2026-03-16',202612,3,2026,16,11,202603,2026),
+('2026-03-17',202612,3,2026,17,11,202603,2026),
+('2026-03-18',202612,3,2026,18,11,202603,2026),
+('2026-03-19',202612,3,2026,19,11,202603,2026),
+('2026-03-20',202612,3,2026,20,11,202603,2026),
+('2026-03-21',202612,3,2026,21,11,202603,2026),
+('2026-03-22',202613,3,2026,22,12,202603,2026),
+('2026-03-23',202613,3,2026,23,12,202603,2026),
+('2026-03-24',202613,3,2026,24,12,202603,2026),
+('2026-03-25',202613,3,2026,25,12,202603,2026),
+('2026-03-26',202613,3,2026,26,12,202603,2026),
+('2026-03-27',202613,3,2026,27,12,202603,2026),
+('2026-03-28',202613,3,2026,28,12,202603,2026),
+('2026-03-29',202614,3,2026,29,13,202603,2026),
+('2026-03-30',202614,3,2026,30,13,202603,2026),
+('2026-03-31',202614,3,2026,31,13,202603,2026),
+('2026-04-01',202614,4,2026,1,13,202604,2026),
+('2026-04-02',202614,4,2026,2,13,202604,2026),
+('2026-04-03',202614,4,2026,3,13,202604,2026),
+('2026-04-04',202614,4,2026,4,13,202604,2026),
+('2026-04-05',202615,4,2026,5,14,202604,2026),
+('2026-04-06',202615,4,2026,6,14,202604,2026),
+('2026-04-07',202615,4,2026,7,14,202604,2026),
+('2026-04-08',202615,4,2026,8,14,202604,2026),
+('2026-04-09',202615,4,2026,9,14,202604,2026),
+('2026-04-10',202615,4,2026,10,14,202604,2026),
+('2026-04-11',202615,4,2026,11,14,202604,2026),
+('2026-04-12',202616,4,2026,12,15,202604,2026),
+('2026-04-13',202616,4,2026,13,15,202604,2026),
+('2026-04-14',202616,4,2026,14,15,202604,2026),
+('2026-04-15',202616,4,2026,15,15,202604,2026),
+('2026-04-16',202616,4,2026,16,15,202604,2026),
+('2026-04-17',202616,4,2026,17,15,202604,2026),
+('2026-04-18',202616,4,2026,18,15,202604,2026),
+('2026-04-19',202617,4,2026,19,16,202604,2026),
+('2026-04-20',202617,4,2026,20,16,202604,2026),
+('2026-04-21',202617,4,2026,21,16,202604,2026),
+('2026-04-22',202617,4,2026,22,16,202604,2026),
+('2026-04-23',202617,4,2026,23,16,202604,2026),
+('2026-04-24',202617,4,2026,24,16,202604,2026),
+('2026-04-25',202617,4,2026,25,16,202604,2026),
+('2026-04-26',202618,4,2026,26,17,202604,2026),
+('2026-04-27',202618,4,2026,27,17,202604,2026),
+('2026-04-28',202618,4,2026,28,17,202604,2026),
+('2026-04-29',202618,4,2026,29,17,202604,2026),
+('2026-04-30',202618,4,2026,30,17,202604,2026),
+('2026-05-01',202618,5,2026,1,17,202605,2026),
+('2026-05-02',202618,5,2026,2,17,202605,2026),
+('2026-05-03',202619,5,2026,3,18,202605,2026),
+('2026-05-04',202619,5,2026,4,18,202605,2026),
+('2026-05-05',202619,5,2026,5,18,202605,2026),
+('2026-05-06',202619,5,2026,6,18,202605,2026),
+('2026-05-07',202619,5,2026,7,18,202605,2026),
+('2026-05-08',202619,5,2026,8,18,202605,2026),
+('2026-05-09',202619,5,2026,9,18,202605,2026),
+('2026-05-10',202620,5,2026,10,19,202605,2026),
+('2026-05-11',202620,5,2026,11,19,202605,2026),
+('2026-05-12',202620,5,2026,12,19,202605,2026),
+('2026-05-13',202620,5,2026,13,19,202605,2026),
+('2026-05-14',202620,5,2026,14,19,202605,2026),
+('2026-05-15',202620,5,2026,15,19,202605,2026),
+('2026-05-16',202620,5,2026,16,19,202605,2026),
+('2026-05-17',202621,5,2026,17,20,202605,2026),
+('2026-05-18',202621,5,2026,18,20,202605,2026),
+('2026-05-19',202621,5,2026,19,20,202605,2026),
+('2026-05-20',202621,5,2026,20,20,202605,2026),
+('2026-05-21',202621,5,2026,21,20,202605,2026),
+('2026-05-22',202621,5,2026,22,20,202605,2026),
+('2026-05-23',202621,5,2026,23,20,202605,2026),
+('2026-05-24',202622,5,2026,24,21,202605,2026),
+('2026-05-25',202622,5,2026,25,21,202605,2026),
+('2026-05-26',202622,5,2026,26,21,202605,2026),
+('2026-05-27',202622,5,2026,27,21,202605,2026),
+('2026-05-28',202622,5,2026,28,21,202605,2026),
+('2026-05-29',202622,5,2026,29,21,202605,2026),
+('2026-05-30',202622,5,2026,30,21,202605,2026),
+('2026-05-31',202623,5,2026,31,22,202605,2026),
+('2026-06-01',202623,6,2026,1,22,202606,2026),
+('2026-06-02',202623,6,2026,2,22,202606,2026),
+('2026-06-03',202623,6,2026,3,22,202606,2026),
+('2026-06-04',202623,6,2026,4,22,202606,2026),
+('2026-06-05',202623,6,2026,5,22,202606,2026),
+('2026-06-06',202623,6,2026,6,22,202606,2026),
+('2026-06-07',202624,6,2026,7,23,202606,2026),
+('2026-06-08',202624,6,2026,8,23,202606,2026),
+('2026-06-09',202624,6,2026,9,23,202606,2026),
+('2026-06-10',202624,6,2026,10,23,202606,2026),
+('2026-06-11',202624,6,2026,11,23,202606,2026),
+('2026-06-12',202624,6,2026,12,23,202606,2026),
+('2026-06-13',202624,6,2026,13,23,202606,2026),
+('2026-06-14',202625,6,2026,14,24,202606,2026),
+('2026-06-15',202625,6,2026,15,24,202606,2026),
+('2026-06-16',202625,6,2026,16,24,202606,2026),
+('2026-06-17',202625,6,2026,17,24,202606,2026),
+('2026-06-18',202625,6,2026,18,24,202606,2026),
+('2026-06-19',202625,6,2026,19,24,202606,2026),
+('2026-06-20',202625,6,2026,20,24,202606,2026),
+('2026-06-21',202626,6,2026,21,25,202606,2026),
+('2026-06-22',202626,6,2026,22,25,202606,2026),
+('2026-06-23',202626,6,2026,23,25,202606,2026),
+('2026-06-24',202626,6,2026,24,25,202606,2026),
+('2026-06-25',202626,6,2026,25,25,202606,2026),
+('2026-06-26',202626,6,2026,26,25,202606,2026),
+('2026-06-27',202626,6,2026,27,25,202606,2026),
+('2026-06-28',202627,6,2026,28,26,202606,2026),
+('2026-06-29',202627,6,2026,29,26,202606,2026),
+('2026-06-30',202627,6,2026,30,26,202606,2026),
+('2026-07-01',202627,7,2026,1,26,202607,2026),
+('2026-07-02',202627,7,2026,2,26,202607,2026),
+('2026-07-03',202627,7,2026,3,26,202607,2026),
+('2026-07-04',202627,7,2026,4,26,202607,2026),
+('2026-07-05',202628,7,2026,5,27,202607,2026),
+('2026-07-06',202628,7,2026,6,27,202607,2026),
+('2026-07-07',202628,7,2026,7,27,202607,2026),
+('2026-07-08',202628,7,2026,8,27,202607,2026),
+('2026-07-09',202628,7,2026,9,27,202607,2026),
+('2026-07-10',202628,7,2026,10,27,202607,2026),
+('2026-07-11',202628,7,2026,11,27,202607,2026),
+('2026-07-12',202629,7,2026,12,28,202607,2026),
+('2026-07-13',202629,7,2026,13,28,202607,2026),
+('2026-07-14',202629,7,2026,14,28,202607,2026),
+('2026-07-15',202629,7,2026,15,28,202607,2026),
+('2026-07-16',202629,7,2026,16,28,202607,2026),
+('2026-07-17',202629,7,2026,17,28,202607,2026),
+('2026-07-18',202629,7,2026,18,28,202607,2026),
+('2026-07-19',202630,7,2026,19,29,202607,2026),
+('2026-07-20',202630,7,2026,20,29,202607,2026),
+('2026-07-21',202630,7,2026,21,29,202607,2026),
+('2026-07-22',202630,7,2026,22,29,202607,2026),
+('2026-07-23',202630,7,2026,23,29,202607,2026),
+('2026-07-24',202630,7,2026,24,29,202607,2026),
+('2026-07-25',202630,7,2026,25,29,202607,2026),
+('2026-07-26',202631,7,2026,26,30,202607,2026),
+('2026-07-27',202631,7,2026,27,30,202607,2026),
+('2026-07-28',202631,7,2026,28,30,202607,2026),
+('2026-07-29',202631,7,2026,29,30,202607,2026),
+('2026-07-30',202631,7,2026,30,30,202607,2026),
+('2026-07-31',202631,7,2026,31,30,202607,2026),
+('2026-08-01',202631,8,2026,1,30,202608,2026),
+('2026-08-02',202632,8,2026,2,31,202608,2026),
+('2026-08-03',202632,8,2026,3,31,202608,2026),
+('2026-08-04',202632,8,2026,4,31,202608,2026),
+('2026-08-05',202632,8,2026,5,31,202608,2026),
+('2026-08-06',202632,8,2026,6,31,202608,2026),
+('2026-08-07',202632,8,2026,7,31,202608,2026),
+('2026-08-08',202632,8,2026,8,31,202608,2026),
+('2026-08-09',202633,8,2026,9,32,202608,2026),
+('2026-08-10',202633,8,2026,10,32,202608,2026),
+('2026-08-11',202633,8,2026,11,32,202608,2026),
+('2026-08-12',202633,8,2026,12,32,202608,2026),
+('2026-08-13',202633,8,2026,13,32,202608,2026),
+('2026-08-14',202633,8,2026,14,32,202608,2026),
+('2026-08-15',202633,8,2026,15,32,202608,2026),
+('2026-08-16',202634,8,2026,16,33,202608,2026),
+('2026-08-17',202634,8,2026,17,33,202608,2026),
+('2026-08-18',202634,8,2026,18,33,202608,2026),
+('2026-08-19',202634,8,2026,19,33,202608,2026),
+('2026-08-20',202634,8,2026,20,33,202608,2026),
+('2026-08-21',202634,8,2026,21,33,202608,2026),
+('2026-08-22',202634,8,2026,22,33,202608,2026),
+('2026-08-23',202635,8,2026,23,34,202608,2026),
+('2026-08-24',202635,8,2026,24,34,202608,2026),
+('2026-08-25',202635,8,2026,25,34,202608,2026),
+('2026-08-26',202635,8,2026,26,34,202608,2026),
+('2026-08-27',202635,8,2026,27,34,202608,2026),
+('2026-08-28',202635,8,2026,28,34,202608,2026),
+('2026-08-29',202635,8,2026,29,34,202608,2026),
+('2026-08-30',202636,8,2026,30,35,202608,2026),
+('2026-08-31',202636,8,2026,31,35,202608,2026),
+('2026-09-01',202636,9,2026,1,35,202609,2026),
+('2026-09-02',202636,9,2026,2,35,202609,2026),
+('2026-09-03',202636,9,2026,3,35,202609,2026),
+('2026-09-04',202636,9,2026,4,35,202609,2026),
+('2026-09-05',202636,9,2026,5,35,202609,2026),
+('2026-09-06',202637,9,2026,6,36,202609,2026),
+('2026-09-07',202637,9,2026,7,36,202609,2026),
+('2026-09-08',202637,9,2026,8,36,202609,2026),
+('2026-09-09',202637,9,2026,9,36,202609,2026),
+('2026-09-10',202637,9,2026,10,36,202609,2026),
+('2026-09-11',202637,9,2026,11,36,202609,2026),
+('2026-09-12',202637,9,2026,12,36,202609,2026),
+('2026-09-13',202638,9,2026,13,37,202609,2026),
+('2026-09-14',202638,9,2026,14,37,202609,2026),
+('2026-09-15',202638,9,2026,15,37,202609,2026),
+('2026-09-16',202638,9,2026,16,37,202609,2026),
+('2026-09-17',202638,9,2026,17,37,202609,2026),
+('2026-09-18',202638,9,2026,18,37,202609,2026),
+('2026-09-19',202638,9,2026,19,37,202609,2026),
+('2026-09-20',202639,9,2026,20,38,202609,2026),
+('2026-09-21',202639,9,2026,21,38,202609,2026),
+('2026-09-22',202639,9,2026,22,38,202609,2026),
+('2026-09-23',202639,9,2026,23,38,202609,2026),
+('2026-09-24',202639,9,2026,24,38,202609,2026),
+('2026-09-25',202639,9,2026,25,38,202609,2026),
+('2026-09-26',202639,9,2026,26,38,202609,2026),
+('2026-09-27',202640,9,2026,27,39,202609,2026),
+('2026-09-28',202640,9,2026,28,39,202609,2026),
+('2026-09-29',202640,9,2026,29,39,202609,2026),
+('2026-09-30',202640,9,2026,30,39,202609,2026),
+('2026-10-01',202640,10,2026,1,39,202610,2026),
+('2026-10-02',202640,10,2026,2,39,202610,2026),
+('2026-10-03',202640,10,2026,3,39,202610,2026),
+('2026-10-04',202641,10,2026,4,40,202610,2026),
+('2026-10-05',202641,10,2026,5,40,202610,2026),
+('2026-10-06',202641,10,2026,6,40,202610,2026),
+('2026-10-07',202641,10,2026,7,40,202610,2026),
+('2026-10-08',202641,10,2026,8,40,202610,2026),
+('2026-10-09',202641,10,2026,9,40,202610,2026),
+('2026-10-10',202641,10,2026,10,40,202610,2026),
+('2026-10-11',202642,10,2026,11,41,202610,2026),
+('2026-10-12',202642,10,2026,12,41,202610,2026),
+('2026-10-13',202642,10,2026,13,41,202610,2026),
+('2026-10-14',202642,10,2026,14,41,202610,2026),
+('2026-10-15',202642,10,2026,15,41,202610,2026),
+('2026-10-16',202642,10,2026,16,41,202610,2026),
+('2026-10-17',202642,10,2026,17,41,202610,2026),
+('2026-10-18',202643,10,2026,18,42,202610,2026),
+('2026-10-19',202643,10,2026,19,42,202610,2026),
+('2026-10-20',202643,10,2026,20,42,202610,2026),
+('2026-10-21',202643,10,2026,21,42,202610,2026),
+('2026-10-22',202643,10,2026,22,42,202610,2026),
+('2026-10-23',202643,10,2026,23,42,202610,2026),
+('2026-10-24',202643,10,2026,24,42,202610,2026),
+('2026-10-25',202644,10,2026,25,43,202610,2026),
+('2026-10-26',202644,10,2026,26,43,202610,2026),
+('2026-10-27',202644,10,2026,27,43,202610,2026),
+('2026-10-28',202644,10,2026,28,43,202610,2026),
+('2026-10-29',202644,10,2026,29,43,202610,2026),
+('2026-10-30',202644,10,2026,30,43,202610,2026),
+('2026-10-31',202644,10,2026,31,43,202610,2026),
+('2026-11-01',202645,11,2026,1,44,202611,2026),
+('2026-11-02',202645,11,2026,2,44,202611,2026),
+('2026-11-03',202645,11,2026,3,44,202611,2026),
+('2026-11-04',202645,11,2026,4,44,202611,2026),
+('2026-11-05',202645,11,2026,5,44,202611,2026),
+('2026-11-06',202645,11,2026,6,44,202611,2026),
+('2026-11-07',202645,11,2026,7,44,202611,2026),
+('2026-11-08',202646,11,2026,8,45,202611,2026),
+('2026-11-09',202646,11,2026,9,45,202611,2026),
+('2026-11-10',202646,11,2026,10,45,202611,2026),
+('2026-11-11',202646,11,2026,11,45,202611,2026),
+('2026-11-12',202646,11,2026,12,45,202611,2026),
+('2026-11-13',202646,11,2026,13,45,202611,2026),
+('2026-11-14',202646,11,2026,14,45,202611,2026),
+('2026-11-15',202647,11,2026,15,46,202611,2026),
+('2026-11-16',202647,11,2026,16,46,202611,2026),
+('2026-11-17',202647,11,2026,17,46,202611,2026),
+('2026-11-18',202647,11,2026,18,46,202611,2026),
+('2026-11-19',202647,11,2026,19,46,202611,2026),
+('2026-11-20',202647,11,2026,20,46,202611,2026),
+('2026-11-21',202647,11,2026,21,46,202611,2026),
+('2026-11-22',202648,11,2026,22,47,202611,2026),
+('2026-11-23',202648,11,2026,23,47,202611,2026),
+('2026-11-24',202648,11,2026,24,47,202611,2026),
+('2026-11-25',202648,11,2026,25,47,202611,2026),
+('2026-11-26',202648,11,2026,26,47,202611,2026),
+('2026-11-27',202648,11,2026,27,47,202611,2026),
+('2026-11-28',202648,11,2026,28,47,202611,2026),
+('2026-11-29',202649,11,2026,29,48,202611,2026),
+('2026-11-30',202649,11,2026,30,48,202611,2026),
+('2026-12-01',202649,12,2026,1,48,202612,2027),
+('2026-12-02',202649,12,2026,2,48,202612,2027),
+('2026-12-03',202649,12,2026,3,48,202612,2027),
+('2026-12-04',202649,12,2026,4,48,202612,2027),
+('2026-12-05',202649,12,2026,5,48,202612,2027),
+('2026-12-06',202650,12,2026,6,49,202612,2027),
+('2026-12-07',202650,12,2026,7,49,202612,2027),
+('2026-12-08',202650,12,2026,8,49,202612,2027),
+('2026-12-09',202650,12,2026,9,49,202612,2027),
+('2026-12-10',202650,12,2026,10,49,202612,2027),
+('2026-12-11',202650,12,2026,11,49,202612,2027),
+('2026-12-12',202650,12,2026,12,49,202612,2027),
+('2026-12-13',202651,12,2026,13,50,202612,2027),
+('2026-12-14',202651,12,2026,14,50,202612,2027),
+('2026-12-15',202651,12,2026,15,50,202612,2027),
+('2026-12-16',202651,12,2026,16,50,202612,2027),
+('2026-12-17',202651,12,2026,17,50,202612,2027),
+('2026-12-18',202651,12,2026,18,50,202612,2027),
+('2026-12-19',202651,12,2026,19,50,202612,2027),
+('2026-12-20',202652,12,2026,20,51,202612,2027),
+('2026-12-21',202652,12,2026,21,51,202612,2027),
+('2026-12-22',202652,12,2026,22,51,202612,2027),
+('2026-12-23',202652,12,2026,23,51,202612,2027),
+('2026-12-24',202652,12,2026,24,51,202612,2027),
+('2026-12-25',202652,12,2026,25,51,202612,2027),
+('2026-12-26',202652,12,2026,26,51,202612,2027),
+('2026-12-27',202653,12,2026,27,52,202612,2027),
+('2026-12-28',202653,12,2026,28,52,202612,2027),
+('2026-12-29',202653,12,2026,29,52,202612,2027),
+('2026-12-30',202653,12,2026,30,52,202612,2027),
+('2026-12-31',202653,12,2026,31,52,202612,2027),
+('2027-01-01',202753,1,2027,1,52,202701,2027),
+('2027-01-02',202753,1,2027,2,52,202701,2027),
+('2027-01-03',202754,1,2027,3,1,202701,2027),
+('2027-01-04',202701,1,2027,4,1,202701,2027),
+('2027-01-05',202701,1,2027,5,1,202701,2027),
+('2027-01-06',202701,1,2027,6,1,202701,2027),
+('2027-01-07',202701,1,2027,7,1,202701,2027),
+('2027-01-08',202701,1,2027,8,1,202701,2027),
+('2027-01-09',202701,1,2027,9,1,202701,2027),
+('2027-01-10',202702,1,2027,10,2,202701,2027),
+('2027-01-11',202702,1,2027,11,2,202701,2027),
+('2027-01-12',202702,1,2027,12,2,202701,2027),
+('2027-01-13',202702,1,2027,13,2,202701,2027),
+('2027-01-14',202702,1,2027,14,2,202701,2027),
+('2027-01-15',202702,1,2027,15,2,202701,2027),
+('2027-01-16',202702,1,2027,16,2,202701,2027),
+('2027-01-17',202703,1,2027,17,3,202701,2027),
+('2027-01-18',202703,1,2027,18,3,202701,2027),
+('2027-01-19',202703,1,2027,19,3,202701,2027),
+('2027-01-20',202703,1,2027,20,3,202701,2027),
+('2027-01-21',202703,1,2027,21,3,202701,2027),
+('2027-01-22',202703,1,2027,22,3,202701,2027),
+('2027-01-23',202703,1,2027,23,3,202701,2027),
+('2027-01-24',202704,1,2027,24,4,202701,2027),
+('2027-01-25',202704,1,2027,25,4,202701,2027),
+('2027-01-26',202704,1,2027,26,4,202701,2027),
+('2027-01-27',202704,1,2027,27,4,202701,2027),
+('2027-01-28',202704,1,2027,28,4,202701,2027),
+('2027-01-29',202704,1,2027,29,4,202701,2027),
+('2027-01-30',202704,1,2027,30,4,202701,2027),
+('2027-01-31',202705,1,2027,31,5,202701,2027),
+('2027-02-01',202705,2,2027,1,5,202702,2027),
+('2027-02-02',202705,2,2027,2,5,202702,2027),
+('2027-02-03',202705,2,2027,3,5,202702,2027),
+('2027-02-04',202705,2,2027,4,5,202702,2027),
+('2027-02-05',202705,2,2027,5,5,202702,2027),
+('2027-02-06',202705,2,2027,6,5,202702,2027),
+('2027-02-07',202706,2,2027,7,6,202702,2027),
+('2027-02-08',202706,2,2027,8,6,202702,2027),
+('2027-02-09',202706,2,2027,9,6,202702,2027),
+('2027-02-10',202706,2,2027,10,6,202702,2027),
+('2027-02-11',202706,2,2027,11,6,202702,2027),
+('2027-02-12',202706,2,2027,12,6,202702,2027),
+('2027-02-13',202706,2,2027,13,6,202702,2027),
+('2027-02-14',202707,2,2027,14,7,202702,2027),
+('2027-02-15',202707,2,2027,15,7,202702,2027),
+('2027-02-16',202707,2,2027,16,7,202702,2027),
+('2027-02-17',202707,2,2027,17,7,202702,2027),
+('2027-02-18',202707,2,2027,18,7,202702,2027),
+('2027-02-19',202707,2,2027,19,7,202702,2027),
+('2027-02-20',202707,2,2027,20,7,202702,2027),
+('2027-02-21',202708,2,2027,21,8,202702,2027),
+('2027-02-22',202708,2,2027,22,8,202702,2027),
+('2027-02-23',202708,2,2027,23,8,202702,2027),
+('2027-02-24',202708,2,2027,24,8,202702,2027),
+('2027-02-25',202708,2,2027,25,8,202702,2027),
+('2027-02-26',202708,2,2027,26,8,202702,2027),
+('2027-02-27',202708,2,2027,27,8,202702,2027),
+('2027-02-28',202709,2,2027,28,9,202702,2027),
+('2027-03-01',202709,3,2027,1,9,202703,2027),
+('2027-03-02',202709,3,2027,2,9,202703,2027),
+('2027-03-03',202709,3,2027,3,9,202703,2027),
+('2027-03-04',202709,3,2027,4,9,202703,2027),
+('2027-03-05',202709,3,2027,5,9,202703,2027),
+('2027-03-06',202709,3,2027,6,9,202703,2027),
+('2027-03-07',202710,3,2027,7,10,202703,2027),
+('2027-03-08',202710,3,2027,8,10,202703,2027),
+('2027-03-09',202710,3,2027,9,10,202703,2027),
+('2027-03-10',202710,3,2027,10,10,202703,2027),
+('2027-03-11',202710,3,2027,11,10,202703,2027),
+('2027-03-12',202710,3,2027,12,10,202703,2027),
+('2027-03-13',202710,3,2027,13,10,202703,2027),
+('2027-03-14',202711,3,2027,14,11,202703,2027),
+('2027-03-15',202711,3,2027,15,11,202703,2027),
+('2027-03-16',202711,3,2027,16,11,202703,2027),
+('2027-03-17',202711,3,2027,17,11,202703,2027),
+('2027-03-18',202711,3,2027,18,11,202703,2027),
+('2027-03-19',202711,3,2027,19,11,202703,2027),
+('2027-03-20',202711,3,2027,20,11,202703,2027),
+('2027-03-21',202712,3,2027,21,12,202703,2027),
+('2027-03-22',202712,3,2027,22,12,202703,2027),
+('2027-03-23',202712,3,2027,23,12,202703,2027),
+('2027-03-24',202712,3,2027,24,12,202703,2027),
+('2027-03-25',202712,3,2027,25,12,202703,2027),
+('2027-03-26',202712,3,2027,26,12,202703,2027),
+('2027-03-27',202712,3,2027,27,12,202703,2027),
+('2027-03-28',202713,3,2027,28,13,202703,2027),
+('2027-03-29',202713,3,2027,29,13,202703,2027),
+('2027-03-30',202713,3,2027,30,13,202703,2027),
+('2027-03-31',202713,3,2027,31,13,202703,2027),
+('2027-04-01',202713,4,2027,1,13,202704,2027),
+('2027-04-02',202713,4,2027,2,13,202704,2027),
+('2027-04-03',202713,4,2027,3,13,202704,2027),
+('2027-04-04',202714,4,2027,4,14,202704,2027),
+('2027-04-05',202714,4,2027,5,14,202704,2027),
+('2027-04-06',202714,4,2027,6,14,202704,2027),
+('2027-04-07',202714,4,2027,7,14,202704,2027),
+('2027-04-08',202714,4,2027,8,14,202704,2027),
+('2027-04-09',202714,4,2027,9,14,202704,2027),
+('2027-04-10',202714,4,2027,10,14,202704,2027),
+('2027-04-11',202715,4,2027,11,15,202704,2027),
+('2027-04-12',202715,4,2027,12,15,202704,2027),
+('2027-04-13',202715,4,2027,13,15,202704,2027),
+('2027-04-14',202715,4,2027,14,15,202704,2027),
+('2027-04-15',202715,4,2027,15,15,202704,2027),
+('2027-04-16',202715,4,2027,16,15,202704,2027),
+('2027-04-17',202715,4,2027,17,15,202704,2027),
+('2027-04-18',202716,4,2027,18,16,202704,2027),
+('2027-04-19',202716,4,2027,19,16,202704,2027),
+('2027-04-20',202716,4,2027,20,16,202704,2027),
+('2027-04-21',202716,4,2027,21,16,202704,2027),
+('2027-04-22',202716,4,2027,22,16,202704,2027),
+('2027-04-23',202716,4,2027,23,16,202704,2027),
+('2027-04-24',202716,4,2027,24,16,202704,2027),
+('2027-04-25',202717,4,2027,25,17,202704,2027),
+('2027-04-26',202717,4,2027,26,17,202704,2027),
+('2027-04-27',202717,4,2027,27,17,202704,2027),
+('2027-04-28',202717,4,2027,28,17,202704,2027),
+('2027-04-29',202717,4,2027,29,17,202704,2027),
+('2027-04-30',202717,4,2027,30,17,202704,2027),
+('2027-05-01',202717,5,2027,1,17,202705,2027),
+('2027-05-02',202718,5,2027,2,18,202705,2027),
+('2027-05-03',202718,5,2027,3,18,202705,2027),
+('2027-05-04',202718,5,2027,4,18,202705,2027),
+('2027-05-05',202718,5,2027,5,18,202705,2027),
+('2027-05-06',202718,5,2027,6,18,202705,2027),
+('2027-05-07',202718,5,2027,7,18,202705,2027),
+('2027-05-08',202718,5,2027,8,18,202705,2027),
+('2027-05-09',202719,5,2027,9,19,202705,2027),
+('2027-05-10',202719,5,2027,10,19,202705,2027),
+('2027-05-11',202719,5,2027,11,19,202705,2027),
+('2027-05-12',202719,5,2027,12,19,202705,2027),
+('2027-05-13',202719,5,2027,13,19,202705,2027),
+('2027-05-14',202719,5,2027,14,19,202705,2027),
+('2027-05-15',202719,5,2027,15,19,202705,2027),
+('2027-05-16',202720,5,2027,16,20,202705,2027),
+('2027-05-17',202720,5,2027,17,20,202705,2027),
+('2027-05-18',202720,5,2027,18,20,202705,2027),
+('2027-05-19',202720,5,2027,19,20,202705,2027),
+('2027-05-20',202720,5,2027,20,20,202705,2027),
+('2027-05-21',202720,5,2027,21,20,202705,2027),
+('2027-05-22',202720,5,2027,22,20,202705,2027),
+('2027-05-23',202721,5,2027,23,21,202705,2027),
+('2027-05-24',202721,5,2027,24,21,202705,2027),
+('2027-05-25',202721,5,2027,25,21,202705,2027),
+('2027-05-26',202721,5,2027,26,21,202705,2027),
+('2027-05-27',202721,5,2027,27,21,202705,2027),
+('2027-05-28',202721,5,2027,28,21,202705,2027),
+('2027-05-29',202721,5,2027,29,21,202705,2027),
+('2027-05-30',202722,5,2027,30,22,202705,2027),
+('2027-05-31',202722,5,2027,31,22,202705,2027),
+('2027-06-01',202722,6,2027,1,22,202706,2027),
+('2027-06-02',202722,6,2027,2,22,202706,2027),
+('2027-06-03',202722,6,2027,3,22,202706,2027),
+('2027-06-04',202722,6,2027,4,22,202706,2027),
+('2027-06-05',202722,6,2027,5,22,202706,2027),
+('2027-06-06',202723,6,2027,6,23,202706,2027),
+('2027-06-07',202723,6,2027,7,23,202706,2027),
+('2027-06-08',202723,6,2027,8,23,202706,2027),
+('2027-06-09',202723,6,2027,9,23,202706,2027),
+('2027-06-10',202723,6,2027,10,23,202706,2027),
+('2027-06-11',202723,6,2027,11,23,202706,2027),
+('2027-06-12',202723,6,2027,12,23,202706,2027),
+('2027-06-13',202724,6,2027,13,24,202706,2027),
+('2027-06-14',202724,6,2027,14,24,202706,2027),
+('2027-06-15',202724,6,2027,15,24,202706,2027),
+('2027-06-16',202724,6,2027,16,24,202706,2027),
+('2027-06-17',202724,6,2027,17,24,202706,2027),
+('2027-06-18',202724,6,2027,18,24,202706,2027),
+('2027-06-19',202724,6,2027,19,24,202706,2027),
+('2027-06-20',202725,6,2027,20,25,202706,2027),
+('2027-06-21',202725,6,2027,21,25,202706,2027),
+('2027-06-22',202725,6,2027,22,25,202706,2027),
+('2027-06-23',202725,6,2027,23,25,202706,2027),
+('2027-06-24',202725,6,2027,24,25,202706,2027),
+('2027-06-25',202725,6,2027,25,25,202706,2027),
+('2027-06-26',202725,6,2027,26,25,202706,2027),
+('2027-06-27',202726,6,2027,27,26,202706,2027),
+('2027-06-28',202726,6,2027,28,26,202706,2027),
+('2027-06-29',202726,6,2027,29,26,202706,2027),
+('2027-06-30',202726,6,2027,30,26,202706,2027),
+('2027-07-01',202726,7,2027,1,26,202707,2027),
+('2027-07-02',202726,7,2027,2,26,202707,2027),
+('2027-07-03',202726,7,2027,3,26,202707,2027),
+('2027-07-04',202727,7,2027,4,27,202707,2027),
+('2027-07-05',202727,7,2027,5,27,202707,2027),
+('2027-07-06',202727,7,2027,6,27,202707,2027),
+('2027-07-07',202727,7,2027,7,27,202707,2027),
+('2027-07-08',202727,7,2027,8,27,202707,2027),
+('2027-07-09',202727,7,2027,9,27,202707,2027),
+('2027-07-10',202727,7,2027,10,27,202707,2027),
+('2027-07-11',202728,7,2027,11,28,202707,2027),
+('2027-07-12',202728,7,2027,12,28,202707,2027),
+('2027-07-13',202728,7,2027,13,28,202707,2027),
+('2027-07-14',202728,7,2027,14,28,202707,2027),
+('2027-07-15',202728,7,2027,15,28,202707,2027),
+('2027-07-16',202728,7,2027,16,28,202707,2027),
+('2027-07-17',202728,7,2027,17,28,202707,2027),
+('2027-07-18',202729,7,2027,18,29,202707,2027),
+('2027-07-19',202729,7,2027,19,29,202707,2027),
+('2027-07-20',202729,7,2027,20,29,202707,2027),
+('2027-07-21',202729,7,2027,21,29,202707,2027),
+('2027-07-22',202729,7,2027,22,29,202707,2027),
+('2027-07-23',202729,7,2027,23,29,202707,2027),
+('2027-07-24',202729,7,2027,24,29,202707,2027),
+('2027-07-25',202730,7,2027,25,30,202707,2027),
+('2027-07-26',202730,7,2027,26,30,202707,2027),
+('2027-07-27',202730,7,2027,27,30,202707,2027),
+('2027-07-28',202730,7,2027,28,30,202707,2027),
+('2027-07-29',202730,7,2027,29,30,202707,2027),
+('2027-07-30',202730,7,2027,30,30,202707,2027),
+('2027-07-31',202730,7,2027,31,30,202707,2027),
+('2027-08-01',202731,8,2027,1,31,202708,2027),
+('2027-08-02',202731,8,2027,2,31,202708,2027),
+('2027-08-03',202731,8,2027,3,31,202708,2027),
+('2027-08-04',202731,8,2027,4,31,202708,2027),
+('2027-08-05',202731,8,2027,5,31,202708,2027),
+('2027-08-06',202731,8,2027,6,31,202708,2027),
+('2027-08-07',202731,8,2027,7,31,202708,2027),
+('2027-08-08',202732,8,2027,8,32,202708,2027),
+('2027-08-09',202732,8,2027,9,32,202708,2027),
+('2027-08-10',202732,8,2027,10,32,202708,2027),
+('2027-08-11',202732,8,2027,11,32,202708,2027),
+('2027-08-12',202732,8,2027,12,32,202708,2027),
+('2027-08-13',202732,8,2027,13,32,202708,2027),
+('2027-08-14',202732,8,2027,14,32,202708,2027),
+('2027-08-15',202733,8,2027,15,33,202708,2027),
+('2027-08-16',202733,8,2027,16,33,202708,2027),
+('2027-08-17',202733,8,2027,17,33,202708,2027),
+('2027-08-18',202733,8,2027,18,33,202708,2027),
+('2027-08-19',202733,8,2027,19,33,202708,2027),
+('2027-08-20',202733,8,2027,20,33,202708,2027),
+('2027-08-21',202733,8,2027,21,33,202708,2027),
+('2027-08-22',202734,8,2027,22,34,202708,2027),
+('2027-08-23',202734,8,2027,23,34,202708,2027),
+('2027-08-24',202734,8,2027,24,34,202708,2027),
+('2027-08-25',202734,8,2027,25,34,202708,2027),
+('2027-08-26',202734,8,2027,26,34,202708,2027),
+('2027-08-27',202734,8,2027,27,34,202708,2027),
+('2027-08-28',202734,8,2027,28,34,202708,2027),
+('2027-08-29',202735,8,2027,29,35,202708,2027),
+('2027-08-30',202735,8,2027,30,35,202708,2027),
+('2027-08-31',202735,8,2027,31,35,202708,2027),
+('2027-09-01',202735,9,2027,1,35,202709,2027),
+('2027-09-02',202735,9,2027,2,35,202709,2027),
+('2027-09-03',202735,9,2027,3,35,202709,2027),
+('2027-09-04',202735,9,2027,4,35,202709,2027),
+('2027-09-05',202736,9,2027,5,36,202709,2027),
+('2027-09-06',202736,9,2027,6,36,202709,2027),
+('2027-09-07',202736,9,2027,7,36,202709,2027),
+('2027-09-08',202736,9,2027,8,36,202709,2027),
+('2027-09-09',202736,9,2027,9,36,202709,2027),
+('2027-09-10',202736,9,2027,10,36,202709,2027),
+('2027-09-11',202736,9,2027,11,36,202709,2027),
+('2027-09-12',202737,9,2027,12,37,202709,2027),
+('2027-09-13',202737,9,2027,13,37,202709,2027),
+('2027-09-14',202737,9,2027,14,37,202709,2027),
+('2027-09-15',202737,9,2027,15,37,202709,2027),
+('2027-09-16',202737,9,2027,16,37,202709,2027),
+('2027-09-17',202737,9,2027,17,37,202709,2027),
+('2027-09-18',202737,9,2027,18,37,202709,2027),
+('2027-09-19',202738,9,2027,19,38,202709,2027),
+('2027-09-20',202738,9,2027,20,38,202709,2027),
+('2027-09-21',202738,9,2027,21,38,202709,2027),
+('2027-09-22',202738,9,2027,22,38,202709,2027),
+('2027-09-23',202738,9,2027,23,38,202709,2027),
+('2027-09-24',202738,9,2027,24,38,202709,2027),
+('2027-09-25',202738,9,2027,25,38,202709,2027),
+('2027-09-26',202739,9,2027,26,39,202709,2027),
+('2027-09-27',202739,9,2027,27,39,202709,2027),
+('2027-09-28',202739,9,2027,28,39,202709,2027),
+('2027-09-29',202739,9,2027,29,39,202709,2027),
+('2027-09-30',202739,9,2027,30,39,202709,2027),
+('2027-10-01',202739,10,2027,1,39,202710,2027),
+('2027-10-02',202739,10,2027,2,39,202710,2027),
+('2027-10-03',202740,10,2027,3,40,202710,2027),
+('2027-10-04',202740,10,2027,4,40,202710,2027),
+('2027-10-05',202740,10,2027,5,40,202710,2027),
+('2027-10-06',202740,10,2027,6,40,202710,2027),
+('2027-10-07',202740,10,2027,7,40,202710,2027),
+('2027-10-08',202740,10,2027,8,40,202710,2027),
+('2027-10-09',202740,10,2027,9,40,202710,2027),
+('2027-10-10',202741,10,2027,10,41,202710,2027),
+('2027-10-11',202741,10,2027,11,41,202710,2027),
+('2027-10-12',202741,10,2027,12,41,202710,2027),
+('2027-10-13',202741,10,2027,13,41,202710,2027),
+('2027-10-14',202741,10,2027,14,41,202710,2027),
+('2027-10-15',202741,10,2027,15,41,202710,2027),
+('2027-10-16',202741,10,2027,16,41,202710,2027),
+('2027-10-17',202742,10,2027,17,42,202710,2027),
+('2027-10-18',202742,10,2027,18,42,202710,2027),
+('2027-10-19',202742,10,2027,19,42,202710,2027),
+('2027-10-20',202742,10,2027,20,42,202710,2027),
+('2027-10-21',202742,10,2027,21,42,202710,2027),
+('2027-10-22',202742,10,2027,22,42,202710,2027),
+('2027-10-23',202742,10,2027,23,42,202710,2027),
+('2027-10-24',202743,10,2027,24,43,202710,2027),
+('2027-10-25',202743,10,2027,25,43,202710,2027),
+('2027-10-26',202743,10,2027,26,43,202710,2027),
+('2027-10-27',202743,10,2027,27,43,202710,2027),
+('2027-10-28',202743,10,2027,28,43,202710,2027),
+('2027-10-29',202743,10,2027,29,43,202710,2027),
+('2027-10-30',202743,10,2027,30,43,202710,2027),
+('2027-10-31',202744,10,2027,31,44,202710,2027),
+('2027-11-01',202744,11,2027,1,44,202711,2027),
+('2027-11-02',202744,11,2027,2,44,202711,2027),
+('2027-11-03',202744,11,2027,3,44,202711,2027),
+('2027-11-04',202744,11,2027,4,44,202711,2027),
+('2027-11-05',202744,11,2027,5,44,202711,2027),
+('2027-11-06',202744,11,2027,6,44,202711,2027),
+('2027-11-07',202745,11,2027,7,45,202711,2027),
+('2027-11-08',202745,11,2027,8,45,202711,2027),
+('2027-11-09',202745,11,2027,9,45,202711,2027),
+('2027-11-10',202745,11,2027,10,45,202711,2027),
+('2027-11-11',202745,11,2027,11,45,202711,2027),
+('2027-11-12',202745,11,2027,12,45,202711,2027),
+('2027-11-13',202745,11,2027,13,45,202711,2027),
+('2027-11-14',202746,11,2027,14,46,202711,2027),
+('2027-11-15',202746,11,2027,15,46,202711,2027),
+('2027-11-16',202746,11,2027,16,46,202711,2027),
+('2027-11-17',202746,11,2027,17,46,202711,2027),
+('2027-11-18',202746,11,2027,18,46,202711,2027),
+('2027-11-19',202746,11,2027,19,46,202711,2027),
+('2027-11-20',202746,11,2027,20,46,202711,2027),
+('2027-11-21',202747,11,2027,21,47,202711,2027),
+('2027-11-22',202747,11,2027,22,47,202711,2027),
+('2027-11-23',202747,11,2027,23,47,202711,2027),
+('2027-11-24',202747,11,2027,24,47,202711,2027),
+('2027-11-25',202747,11,2027,25,47,202711,2027),
+('2027-11-26',202747,11,2027,26,47,202711,2027),
+('2027-11-27',202747,11,2027,27,47,202711,2027),
+('2027-11-28',202748,11,2027,28,48,202711,2027),
+('2027-11-29',202748,11,2027,29,48,202711,2027),
+('2027-11-30',202748,11,2027,30,48,202711,2027),
+('2027-12-01',202748,12,2027,1,48,202712,2028),
+('2027-12-02',202748,12,2027,2,48,202712,2028),
+('2027-12-03',202748,12,2027,3,48,202712,2028),
+('2027-12-04',202748,12,2027,4,48,202712,2028),
+('2027-12-05',202749,12,2027,5,49,202712,2028),
+('2027-12-06',202749,12,2027,6,49,202712,2028),
+('2027-12-07',202749,12,2027,7,49,202712,2028),
+('2027-12-08',202749,12,2027,8,49,202712,2028),
+('2027-12-09',202749,12,2027,9,49,202712,2028),
+('2027-12-10',202749,12,2027,10,49,202712,2028),
+('2027-12-11',202749,12,2027,11,49,202712,2028),
+('2027-12-12',202750,12,2027,12,50,202712,2028),
+('2027-12-13',202750,12,2027,13,50,202712,2028),
+('2027-12-14',202750,12,2027,14,50,202712,2028),
+('2027-12-15',202750,12,2027,15,50,202712,2028),
+('2027-12-16',202750,12,2027,16,50,202712,2028),
+('2027-12-17',202750,12,2027,17,50,202712,2028),
+('2027-12-18',202750,12,2027,18,50,202712,2028),
+('2027-12-19',202751,12,2027,19,51,202712,2028),
+('2027-12-20',202751,12,2027,20,51,202712,2028),
+('2027-12-21',202751,12,2027,21,51,202712,2028),
+('2027-12-22',202751,12,2027,22,51,202712,2028),
+('2027-12-23',202751,12,2027,23,51,202712,2028),
+('2027-12-24',202751,12,2027,24,51,202712,2028),
+('2027-12-25',202751,12,2027,25,51,202712,2028),
+('2027-12-26',202752,12,2027,26,52,202712,2028),
+('2027-12-27',202752,12,2027,27,52,202712,2028),
+('2027-12-28',202752,12,2027,28,52,202712,2028),
+('2027-12-29',202752,12,2027,29,52,202712,2028),
+('2027-12-30',202752,12,2027,30,52,202712,2028),
+('2027-12-31',202752,12,2027,31,52,202712,2028),
+('2028-01-01',202852,1,2028,1,52,202801,2028),
+('2028-01-02',202853,1,2028,2,1,202801,2028),
+('2028-01-03',202801,1,2028,3,1,202801,2028),
+('2028-01-04',202801,1,2028,4,1,202801,2028),
+('2028-01-05',202801,1,2028,5,1,202801,2028),
+('2028-01-06',202801,1,2028,6,1,202801,2028),
+('2028-01-07',202801,1,2028,7,1,202801,2028),
+('2028-01-08',202801,1,2028,8,1,202801,2028),
+('2028-01-09',202802,1,2028,9,2,202801,2028),
+('2028-01-10',202802,1,2028,10,2,202801,2028),
+('2028-01-11',202802,1,2028,11,2,202801,2028),
+('2028-01-12',202802,1,2028,12,2,202801,2028),
+('2028-01-13',202802,1,2028,13,2,202801,2028),
+('2028-01-14',202802,1,2028,14,2,202801,2028),
+('2028-01-15',202802,1,2028,15,2,202801,2028),
+('2028-01-16',202803,1,2028,16,3,202801,2028),
+('2028-01-17',202803,1,2028,17,3,202801,2028),
+('2028-01-18',202803,1,2028,18,3,202801,2028),
+('2028-01-19',202803,1,2028,19,3,202801,2028),
+('2028-01-20',202803,1,2028,20,3,202801,2028),
+('2028-01-21',202803,1,2028,21,3,202801,2028),
+('2028-01-22',202803,1,2028,22,3,202801,2028),
+('2028-01-23',202804,1,2028,23,4,202801,2028),
+('2028-01-24',202804,1,2028,24,4,202801,2028),
+('2028-01-25',202804,1,2028,25,4,202801,2028),
+('2028-01-26',202804,1,2028,26,4,202801,2028),
+('2028-01-27',202804,1,2028,27,4,202801,2028),
+('2028-01-28',202804,1,2028,28,4,202801,2028),
+('2028-01-29',202804,1,2028,29,4,202801,2028),
+('2028-01-30',202805,1,2028,30,5,202801,2028),
+('2028-01-31',202805,1,2028,31,5,202801,2028),
+('2028-02-01',202805,2,2028,1,5,202802,2028),
+('2028-02-02',202805,2,2028,2,5,202802,2028),
+('2028-02-03',202805,2,2028,3,5,202802,2028),
+('2028-02-04',202805,2,2028,4,5,202802,2028),
+('2028-02-05',202805,2,2028,5,5,202802,2028),
+('2028-02-06',202806,2,2028,6,6,202802,2028),
+('2028-02-07',202806,2,2028,7,6,202802,2028),
+('2028-02-08',202806,2,2028,8,6,202802,2028),
+('2028-02-09',202806,2,2028,9,6,202802,2028),
+('2028-02-10',202806,2,2028,10,6,202802,2028),
+('2028-02-11',202806,2,2028,11,6,202802,2028),
+('2028-02-12',202806,2,2028,12,6,202802,2028),
+('2028-02-13',202807,2,2028,13,7,202802,2028),
+('2028-02-14',202807,2,2028,14,7,202802,2028),
+('2028-02-15',202807,2,2028,15,7,202802,2028),
+('2028-02-16',202807,2,2028,16,7,202802,2028),
+('2028-02-17',202807,2,2028,17,7,202802,2028),
+('2028-02-18',202807,2,2028,18,7,202802,2028),
+('2028-02-19',202807,2,2028,19,7,202802,2028),
+('2028-02-20',202808,2,2028,20,8,202802,2028),
+('2028-02-21',202808,2,2028,21,8,202802,2028),
+('2028-02-22',202808,2,2028,22,8,202802,2028),
+('2028-02-23',202808,2,2028,23,8,202802,2028),
+('2028-02-24',202808,2,2028,24,8,202802,2028),
+('2028-02-25',202808,2,2028,25,8,202802,2028),
+('2028-02-26',202808,2,2028,26,8,202802,2028),
+('2028-02-27',202809,2,2028,27,9,202802,2028),
+('2028-02-28',202809,2,2028,28,9,202802,2028),
+('2028-02-29',202809,2,2028,29,9,202802,2028),
+('2028-03-01',202809,3,2028,1,9,202803,2028),
+('2028-03-02',202809,3,2028,2,9,202803,2028),
+('2028-03-03',202809,3,2028,3,9,202803,2028),
+('2028-03-04',202809,3,2028,4,9,202803,2028),
+('2028-03-05',202810,3,2028,5,10,202803,2028),
+('2028-03-06',202810,3,2028,6,10,202803,2028),
+('2028-03-07',202810,3,2028,7,10,202803,2028),
+('2028-03-08',202810,3,2028,8,10,202803,2028),
+('2028-03-09',202810,3,2028,9,10,202803,2028),
+('2028-03-10',202810,3,2028,10,10,202803,2028),
+('2028-03-11',202810,3,2028,11,10,202803,2028),
+('2028-03-12',202811,3,2028,12,11,202803,2028),
+('2028-03-13',202811,3,2028,13,11,202803,2028),
+('2028-03-14',202811,3,2028,14,11,202803,2028),
+('2028-03-15',202811,3,2028,15,11,202803,2028),
+('2028-03-16',202811,3,2028,16,11,202803,2028),
+('2028-03-17',202811,3,2028,17,11,202803,2028),
+('2028-03-18',202811,3,2028,18,11,202803,2028),
+('2028-03-19',202812,3,2028,19,12,202803,2028),
+('2028-03-20',202812,3,2028,20,12,202803,2028),
+('2028-03-21',202812,3,2028,21,12,202803,2028),
+('2028-03-22',202812,3,2028,22,12,202803,2028),
+('2028-03-23',202812,3,2028,23,12,202803,2028),
+('2028-03-24',202812,3,2028,24,12,202803,2028),
+('2028-03-25',202812,3,2028,25,12,202803,2028),
+('2028-03-26',202813,3,2028,26,13,202803,2028),
+('2028-03-27',202813,3,2028,27,13,202803,2028),
+('2028-03-28',202813,3,2028,28,13,202803,2028),
+('2028-03-29',202813,3,2028,29,13,202803,2028),
+('2028-03-30',202813,3,2028,30,13,202803,2028),
+('2028-03-31',202813,3,2028,31,13,202803,2028),
+('2028-04-01',202813,4,2028,1,13,202804,2028),
+('2028-04-02',202814,4,2028,2,14,202804,2028),
+('2028-04-03',202814,4,2028,3,14,202804,2028),
+('2028-04-04',202814,4,2028,4,14,202804,2028),
+('2028-04-05',202814,4,2028,5,14,202804,2028),
+('2028-04-06',202814,4,2028,6,14,202804,2028),
+('2028-04-07',202814,4,2028,7,14,202804,2028),
+('2028-04-08',202814,4,2028,8,14,202804,2028),
+('2028-04-09',202815,4,2028,9,15,202804,2028),
+('2028-04-10',202815,4,2028,10,15,202804,2028),
+('2028-04-11',202815,4,2028,11,15,202804,2028),
+('2028-04-12',202815,4,2028,12,15,202804,2028),
+('2028-04-13',202815,4,2028,13,15,202804,2028),
+('2028-04-14',202815,4,2028,14,15,202804,2028),
+('2028-04-15',202815,4,2028,15,15,202804,2028),
+('2028-04-16',202816,4,2028,16,16,202804,2028),
+('2028-04-17',202816,4,2028,17,16,202804,2028),
+('2028-04-18',202816,4,2028,18,16,202804,2028),
+('2028-04-19',202816,4,2028,19,16,202804,2028),
+('2028-04-20',202816,4,2028,20,16,202804,2028),
+('2028-04-21',202816,4,2028,21,16,202804,2028),
+('2028-04-22',202816,4,2028,22,16,202804,2028),
+('2028-04-23',202817,4,2028,23,17,202804,2028),
+('2028-04-24',202817,4,2028,24,17,202804,2028),
+('2028-04-25',202817,4,2028,25,17,202804,2028),
+('2028-04-26',202817,4,2028,26,17,202804,2028),
+('2028-04-27',202817,4,2028,27,17,202804,2028),
+('2028-04-28',202817,4,2028,28,17,202804,2028),
+('2028-04-29',202817,4,2028,29,17,202804,2028),
+('2028-04-30',202818,4,2028,30,18,202804,2028),
+('2028-05-01',202818,5,2028,1,18,202805,2028),
+('2028-05-02',202818,5,2028,2,18,202805,2028),
+('2028-05-03',202818,5,2028,3,18,202805,2028),
+('2028-05-04',202818,5,2028,4,18,202805,2028),
+('2028-05-05',202818,5,2028,5,18,202805,2028),
+('2028-05-06',202818,5,2028,6,18,202805,2028),
+('2028-05-07',202819,5,2028,7,19,202805,2028),
+('2028-05-08',202819,5,2028,8,19,202805,2028),
+('2028-05-09',202819,5,2028,9,19,202805,2028),
+('2028-05-10',202819,5,2028,10,19,202805,2028),
+('2028-05-11',202819,5,2028,11,19,202805,2028),
+('2028-05-12',202819,5,2028,12,19,202805,2028),
+('2028-05-13',202819,5,2028,13,19,202805,2028),
+('2028-05-14',202820,5,2028,14,20,202805,2028),
+('2028-05-15',202820,5,2028,15,20,202805,2028),
+('2028-05-16',202820,5,2028,16,20,202805,2028),
+('2028-05-17',202820,5,2028,17,20,202805,2028),
+('2028-05-18',202820,5,2028,18,20,202805,2028),
+('2028-05-19',202820,5,2028,19,20,202805,2028),
+('2028-05-20',202820,5,2028,20,20,202805,2028),
+('2028-05-21',202821,5,2028,21,21,202805,2028),
+('2028-05-22',202821,5,2028,22,21,202805,2028),
+('2028-05-23',202821,5,2028,23,21,202805,2028),
+('2028-05-24',202821,5,2028,24,21,202805,2028),
+('2028-05-25',202821,5,2028,25,21,202805,2028),
+('2028-05-26',202821,5,2028,26,21,202805,2028),
+('2028-05-27',202821,5,2028,27,21,202805,2028),
+('2028-05-28',202822,5,2028,28,22,202805,2028),
+('2028-05-29',202822,5,2028,29,22,202805,2028),
+('2028-05-30',202822,5,2028,30,22,202805,2028),
+('2028-05-31',202822,5,2028,31,22,202805,2028),
+('2028-06-01',202822,6,2028,1,22,202806,2028),
+('2028-06-02',202822,6,2028,2,22,202806,2028),
+('2028-06-03',202822,6,2028,3,22,202806,2028),
+('2028-06-04',202823,6,2028,4,23,202806,2028),
+('2028-06-05',202823,6,2028,5,23,202806,2028),
+('2028-06-06',202823,6,2028,6,23,202806,2028),
+('2028-06-07',202823,6,2028,7,23,202806,2028),
+('2028-06-08',202823,6,2028,8,23,202806,2028),
+('2028-06-09',202823,6,2028,9,23,202806,2028),
+('2028-06-10',202823,6,2028,10,23,202806,2028),
+('2028-06-11',202824,6,2028,11,24,202806,2028),
+('2028-06-12',202824,6,2028,12,24,202806,2028),
+('2028-06-13',202824,6,2028,13,24,202806,2028),
+('2028-06-14',202824,6,2028,14,24,202806,2028),
+('2028-06-15',202824,6,2028,15,24,202806,2028),
+('2028-06-16',202824,6,2028,16,24,202806,2028),
+('2028-06-17',202824,6,2028,17,24,202806,2028),
+('2028-06-18',202825,6,2028,18,25,202806,2028),
+('2028-06-19',202825,6,2028,19,25,202806,2028),
+('2028-06-20',202825,6,2028,20,25,202806,2028),
+('2028-06-21',202825,6,2028,21,25,202806,2028),
+('2028-06-22',202825,6,2028,22,25,202806,2028),
+('2028-06-23',202825,6,2028,23,25,202806,2028),
+('2028-06-24',202825,6,2028,24,25,202806,2028),
+('2028-06-25',202826,6,2028,25,26,202806,2028),
+('2028-06-26',202826,6,2028,26,26,202806,2028),
+('2028-06-27',202826,6,2028,27,26,202806,2028),
+('2028-06-28',202826,6,2028,28,26,202806,2028),
+('2028-06-29',202826,6,2028,29,26,202806,2028),
+('2028-06-30',202826,6,2028,30,26,202806,2028),
+('2028-07-01',202826,7,2028,1,26,202807,2028),
+('2028-07-02',202827,7,2028,2,27,202807,2028),
+('2028-07-03',202827,7,2028,3,27,202807,2028),
+('2028-07-04',202827,7,2028,4,27,202807,2028),
+('2028-07-05',202827,7,2028,5,27,202807,2028),
+('2028-07-06',202827,7,2028,6,27,202807,2028),
+('2028-07-07',202827,7,2028,7,27,202807,2028),
+('2028-07-08',202827,7,2028,8,27,202807,2028),
+('2028-07-09',202828,7,2028,9,28,202807,2028),
+('2028-07-10',202828,7,2028,10,28,202807,2028),
+('2028-07-11',202828,7,2028,11,28,202807,2028),
+('2028-07-12',202828,7,2028,12,28,202807,2028),
+('2028-07-13',202828,7,2028,13,28,202807,2028),
+('2028-07-14',202828,7,2028,14,28,202807,2028),
+('2028-07-15',202828,7,2028,15,28,202807,2028),
+('2028-07-16',202829,7,2028,16,29,202807,2028),
+('2028-07-17',202829,7,2028,17,29,202807,2028),
+('2028-07-18',202829,7,2028,18,29,202807,2028),
+('2028-07-19',202829,7,2028,19,29,202807,2028),
+('2028-07-20',202829,7,2028,20,29,202807,2028),
+('2028-07-21',202829,7,2028,21,29,202807,2028),
+('2028-07-22',202829,7,2028,22,29,202807,2028),
+('2028-07-23',202830,7,2028,23,30,202807,2028),
+('2028-07-24',202830,7,2028,24,30,202807,2028),
+('2028-07-25',202830,7,2028,25,30,202807,2028),
+('2028-07-26',202830,7,2028,26,30,202807,2028),
+('2028-07-27',202830,7,2028,27,30,202807,2028),
+('2028-07-28',202830,7,2028,28,30,202807,2028),
+('2028-07-29',202830,7,2028,29,30,202807,2028),
+('2028-07-30',202831,7,2028,30,31,202807,2028),
+('2028-07-31',202831,7,2028,31,31,202807,2028),
+('2028-08-01',202831,8,2028,1,31,202808,2028),
+('2028-08-02',202831,8,2028,2,31,202808,2028),
+('2028-08-03',202831,8,2028,3,31,202808,2028),
+('2028-08-04',202831,8,2028,4,31,202808,2028),
+('2028-08-05',202831,8,2028,5,31,202808,2028),
+('2028-08-06',202832,8,2028,6,32,202808,2028),
+('2028-08-07',202832,8,2028,7,32,202808,2028),
+('2028-08-08',202832,8,2028,8,32,202808,2028),
+('2028-08-09',202832,8,2028,9,32,202808,2028),
+('2028-08-10',202832,8,2028,10,32,202808,2028),
+('2028-08-11',202832,8,2028,11,32,202808,2028),
+('2028-08-12',202832,8,2028,12,32,202808,2028),
+('2028-08-13',202833,8,2028,13,33,202808,2028),
+('2028-08-14',202833,8,2028,14,33,202808,2028),
+('2028-08-15',202833,8,2028,15,33,202808,2028),
+('2028-08-16',202833,8,2028,16,33,202808,2028),
+('2028-08-17',202833,8,2028,17,33,202808,2028),
+('2028-08-18',202833,8,2028,18,33,202808,2028),
+('2028-08-19',202833,8,2028,19,33,202808,2028),
+('2028-08-20',202834,8,2028,20,34,202808,2028),
+('2028-08-21',202834,8,2028,21,34,202808,2028),
+('2028-08-22',202834,8,2028,22,34,202808,2028),
+('2028-08-23',202834,8,2028,23,34,202808,2028),
+('2028-08-24',202834,8,2028,24,34,202808,2028),
+('2028-08-25',202834,8,2028,25,34,202808,2028),
+('2028-08-26',202834,8,2028,26,34,202808,2028),
+('2028-08-27',202835,8,2028,27,35,202808,2028),
+('2028-08-28',202835,8,2028,28,35,202808,2028),
+('2028-08-29',202835,8,2028,29,35,202808,2028),
+('2028-08-30',202835,8,2028,30,35,202808,2028),
+('2028-08-31',202835,8,2028,31,35,202808,2028),
+('2028-09-01',202835,9,2028,1,35,202809,2028),
+('2028-09-02',202835,9,2028,2,35,202809,2028),
+('2028-09-03',202836,9,2028,3,36,202809,2028),
+('2028-09-04',202836,9,2028,4,36,202809,2028),
+('2028-09-05',202836,9,2028,5,36,202809,2028),
+('2028-09-06',202836,9,2028,6,36,202809,2028),
+('2028-09-07',202836,9,2028,7,36,202809,2028),
+('2028-09-08',202836,9,2028,8,36,202809,2028),
+('2028-09-09',202836,9,2028,9,36,202809,2028),
+('2028-09-10',202837,9,2028,10,37,202809,2028),
+('2028-09-11',202837,9,2028,11,37,202809,2028),
+('2028-09-12',202837,9,2028,12,37,202809,2028),
+('2028-09-13',202837,9,2028,13,37,202809,2028),
+('2028-09-14',202837,9,2028,14,37,202809,2028),
+('2028-09-15',202837,9,2028,15,37,202809,2028),
+('2028-09-16',202837,9,2028,16,37,202809,2028),
+('2028-09-17',202838,9,2028,17,38,202809,2028),
+('2028-09-18',202838,9,2028,18,38,202809,2028),
+('2028-09-19',202838,9,2028,19,38,202809,2028),
+('2028-09-20',202838,9,2028,20,38,202809,2028),
+('2028-09-21',202838,9,2028,21,38,202809,2028),
+('2028-09-22',202838,9,2028,22,38,202809,2028),
+('2028-09-23',202838,9,2028,23,38,202809,2028),
+('2028-09-24',202839,9,2028,24,39,202809,2028),
+('2028-09-25',202839,9,2028,25,39,202809,2028),
+('2028-09-26',202839,9,2028,26,39,202809,2028),
+('2028-09-27',202839,9,2028,27,39,202809,2028),
+('2028-09-28',202839,9,2028,28,39,202809,2028),
+('2028-09-29',202839,9,2028,29,39,202809,2028),
+('2028-09-30',202839,9,2028,30,39,202809,2028),
+('2028-10-01',202840,10,2028,1,40,202810,2028),
+('2028-10-02',202840,10,2028,2,40,202810,2028),
+('2028-10-03',202840,10,2028,3,40,202810,2028),
+('2028-10-04',202840,10,2028,4,40,202810,2028),
+('2028-10-05',202840,10,2028,5,40,202810,2028),
+('2028-10-06',202840,10,2028,6,40,202810,2028),
+('2028-10-07',202840,10,2028,7,40,202810,2028),
+('2028-10-08',202841,10,2028,8,41,202810,2028),
+('2028-10-09',202841,10,2028,9,41,202810,2028),
+('2028-10-10',202841,10,2028,10,41,202810,2028),
+('2028-10-11',202841,10,2028,11,41,202810,2028),
+('2028-10-12',202841,10,2028,12,41,202810,2028),
+('2028-10-13',202841,10,2028,13,41,202810,2028),
+('2028-10-14',202841,10,2028,14,41,202810,2028),
+('2028-10-15',202842,10,2028,15,42,202810,2028),
+('2028-10-16',202842,10,2028,16,42,202810,2028),
+('2028-10-17',202842,10,2028,17,42,202810,2028),
+('2028-10-18',202842,10,2028,18,42,202810,2028),
+('2028-10-19',202842,10,2028,19,42,202810,2028),
+('2028-10-20',202842,10,2028,20,42,202810,2028),
+('2028-10-21',202842,10,2028,21,42,202810,2028),
+('2028-10-22',202843,10,2028,22,43,202810,2028),
+('2028-10-23',202843,10,2028,23,43,202810,2028),
+('2028-10-24',202843,10,2028,24,43,202810,2028),
+('2028-10-25',202843,10,2028,25,43,202810,2028),
+('2028-10-26',202843,10,2028,26,43,202810,2028),
+('2028-10-27',202843,10,2028,27,43,202810,2028),
+('2028-10-28',202843,10,2028,28,43,202810,2028),
+('2028-10-29',202844,10,2028,29,44,202810,2028),
+('2028-10-30',202844,10,2028,30,44,202810,2028),
+('2028-10-31',202844,10,2028,31,44,202810,2028),
+('2028-11-01',202844,11,2028,1,44,202811,2028),
+('2028-11-02',202844,11,2028,2,44,202811,2028),
+('2028-11-03',202844,11,2028,3,44,202811,2028),
+('2028-11-04',202844,11,2028,4,44,202811,2028),
+('2028-11-05',202845,11,2028,5,45,202811,2028),
+('2028-11-06',202845,11,2028,6,45,202811,2028),
+('2028-11-07',202845,11,2028,7,45,202811,2028),
+('2028-11-08',202845,11,2028,8,45,202811,2028),
+('2028-11-09',202845,11,2028,9,45,202811,2028),
+('2028-11-10',202845,11,2028,10,45,202811,2028),
+('2028-11-11',202845,11,2028,11,45,202811,2028),
+('2028-11-12',202846,11,2028,12,46,202811,2028),
+('2028-11-13',202846,11,2028,13,46,202811,2028),
+('2028-11-14',202846,11,2028,14,46,202811,2028),
+('2028-11-15',202846,11,2028,15,46,202811,2028),
+('2028-11-16',202846,11,2028,16,46,202811,2028),
+('2028-11-17',202846,11,2028,17,46,202811,2028),
+('2028-11-18',202846,11,2028,18,46,202811,2028),
+('2028-11-19',202847,11,2028,19,47,202811,2028),
+('2028-11-20',202847,11,2028,20,47,202811,2028),
+('2028-11-21',202847,11,2028,21,47,202811,2028),
+('2028-11-22',202847,11,2028,22,47,202811,2028),
+('2028-11-23',202847,11,2028,23,47,202811,2028),
+('2028-11-24',202847,11,2028,24,47,202811,2028),
+('2028-11-25',202847,11,2028,25,47,202811,2028),
+('2028-11-26',202848,11,2028,26,48,202811,2028),
+('2028-11-27',202848,11,2028,27,48,202811,2028),
+('2028-11-28',202848,11,2028,28,48,202811,2028),
+('2028-11-29',202848,11,2028,29,48,202811,2028),
+('2028-11-30',202848,11,2028,30,48,202811,2028),
+('2028-12-01',202848,12,2028,1,48,202812,2029),
+('2028-12-02',202848,12,2028,2,48,202812,2029),
+('2028-12-03',202849,12,2028,3,49,202812,2029),
+('2028-12-04',202849,12,2028,4,49,202812,2029),
+('2028-12-05',202849,12,2028,5,49,202812,2029),
+('2028-12-06',202849,12,2028,6,49,202812,2029),
+('2028-12-07',202849,12,2028,7,49,202812,2029),
+('2028-12-08',202849,12,2028,8,49,202812,2029),
+('2028-12-09',202849,12,2028,9,49,202812,2029),
+('2028-12-10',202850,12,2028,10,50,202812,2029),
+('2028-12-11',202850,12,2028,11,50,202812,2029),
+('2028-12-12',202850,12,2028,12,50,202812,2029),
+('2028-12-13',202850,12,2028,13,50,202812,2029),
+('2028-12-14',202850,12,2028,14,50,202812,2029),
+('2028-12-15',202850,12,2028,15,50,202812,2029),
+('2028-12-16',202850,12,2028,16,50,202812,2029),
+('2028-12-17',202851,12,2028,17,51,202812,2029),
+('2028-12-18',202851,12,2028,18,51,202812,2029),
+('2028-12-19',202851,12,2028,19,51,202812,2029),
+('2028-12-20',202851,12,2028,20,51,202812,2029),
+('2028-12-21',202851,12,2028,21,51,202812,2029),
+('2028-12-22',202851,12,2028,22,51,202812,2029),
+('2028-12-23',202851,12,2028,23,51,202812,2029),
+('2028-12-24',202852,12,2028,24,52,202812,2029),
+('2028-12-25',202852,12,2028,25,52,202812,2029),
+('2028-12-26',202852,12,2028,26,52,202812,2029),
+('2028-12-27',202852,12,2028,27,52,202812,2029),
+('2028-12-28',202852,12,2028,28,52,202812,2029),
+('2028-12-29',202852,12,2028,29,52,202812,2029),
+('2028-12-30',202852,12,2028,30,52,202812,2029),
+('2028-12-31',202853,12,2028,31,1,202812,2029),
+('2029-01-01',202901,1,2029,1,1,202901,2029),
+('2029-01-02',202901,1,2029,2,1,202901,2029),
+('2029-01-03',202901,1,2029,3,1,202901,2029),
+('2029-01-04',202901,1,2029,4,1,202901,2029),
+('2029-01-05',202901,1,2029,5,1,202901,2029),
+('2029-01-06',202901,1,2029,6,1,202901,2029),
+('2029-01-07',202902,1,2029,7,2,202901,2029),
+('2029-01-08',202902,1,2029,8,2,202901,2029),
+('2029-01-09',202902,1,2029,9,2,202901,2029),
+('2029-01-10',202902,1,2029,10,2,202901,2029),
+('2029-01-11',202902,1,2029,11,2,202901,2029),
+('2029-01-12',202902,1,2029,12,2,202901,2029),
+('2029-01-13',202902,1,2029,13,2,202901,2029),
+('2029-01-14',202903,1,2029,14,3,202901,2029),
+('2029-01-15',202903,1,2029,15,3,202901,2029),
+('2029-01-16',202903,1,2029,16,3,202901,2029),
+('2029-01-17',202903,1,2029,17,3,202901,2029),
+('2029-01-18',202903,1,2029,18,3,202901,2029),
+('2029-01-19',202903,1,2029,19,3,202901,2029),
+('2029-01-20',202903,1,2029,20,3,202901,2029),
+('2029-01-21',202904,1,2029,21,4,202901,2029),
+('2029-01-22',202904,1,2029,22,4,202901,2029),
+('2029-01-23',202904,1,2029,23,4,202901,2029),
+('2029-01-24',202904,1,2029,24,4,202901,2029),
+('2029-01-25',202904,1,2029,25,4,202901,2029),
+('2029-01-26',202904,1,2029,26,4,202901,2029),
+('2029-01-27',202904,1,2029,27,4,202901,2029),
+('2029-01-28',202905,1,2029,28,5,202901,2029),
+('2029-01-29',202905,1,2029,29,5,202901,2029),
+('2029-01-30',202905,1,2029,30,5,202901,2029),
+('2029-01-31',202905,1,2029,31,5,202901,2029),
+('2029-02-01',202905,2,2029,1,5,202902,2029),
+('2029-02-02',202905,2,2029,2,5,202902,2029),
+('2029-02-03',202905,2,2029,3,5,202902,2029),
+('2029-02-04',202906,2,2029,4,6,202902,2029),
+('2029-02-05',202906,2,2029,5,6,202902,2029),
+('2029-02-06',202906,2,2029,6,6,202902,2029),
+('2029-02-07',202906,2,2029,7,6,202902,2029),
+('2029-02-08',202906,2,2029,8,6,202902,2029),
+('2029-02-09',202906,2,2029,9,6,202902,2029),
+('2029-02-10',202906,2,2029,10,6,202902,2029),
+('2029-02-11',202907,2,2029,11,7,202902,2029),
+('2029-02-12',202907,2,2029,12,7,202902,2029),
+('2029-02-13',202907,2,2029,13,7,202902,2029),
+('2029-02-14',202907,2,2029,14,7,202902,2029),
+('2029-02-15',202907,2,2029,15,7,202902,2029),
+('2029-02-16',202907,2,2029,16,7,202902,2029),
+('2029-02-17',202907,2,2029,17,7,202902,2029),
+('2029-02-18',202908,2,2029,18,8,202902,2029),
+('2029-02-19',202908,2,2029,19,8,202902,2029),
+('2029-02-20',202908,2,2029,20,8,202902,2029),
+('2029-02-21',202908,2,2029,21,8,202902,2029),
+('2029-02-22',202908,2,2029,22,8,202902,2029),
+('2029-02-23',202908,2,2029,23,8,202902,2029),
+('2029-02-24',202908,2,2029,24,8,202902,2029),
+('2029-02-25',202909,2,2029,25,9,202902,2029),
+('2029-02-26',202909,2,2029,26,9,202902,2029),
+('2029-02-27',202909,2,2029,27,9,202902,2029),
+('2029-02-28',202909,2,2029,28,9,202902,2029),
+('2029-03-01',202909,3,2029,1,9,202903,2029),
+('2029-03-02',202909,3,2029,2,9,202903,2029),
+('2029-03-03',202909,3,2029,3,9,202903,2029),
+('2029-03-04',202910,3,2029,4,10,202903,2029),
+('2029-03-05',202910,3,2029,5,10,202903,2029),
+('2029-03-06',202910,3,2029,6,10,202903,2029),
+('2029-03-07',202910,3,2029,7,10,202903,2029),
+('2029-03-08',202910,3,2029,8,10,202903,2029),
+('2029-03-09',202910,3,2029,9,10,202903,2029),
+('2029-03-10',202910,3,2029,10,10,202903,2029),
+('2029-03-11',202911,3,2029,11,11,202903,2029),
+('2029-03-12',202911,3,2029,12,11,202903,2029),
+('2029-03-13',202911,3,2029,13,11,202903,2029),
+('2029-03-14',202911,3,2029,14,11,202903,2029),
+('2029-03-15',202911,3,2029,15,11,202903,2029),
+('2029-03-16',202911,3,2029,16,11,202903,2029),
+('2029-03-17',202911,3,2029,17,11,202903,2029),
+('2029-03-18',202912,3,2029,18,12,202903,2029),
+('2029-03-19',202912,3,2029,19,12,202903,2029),
+('2029-03-20',202912,3,2029,20,12,202903,2029),
+('2029-03-21',202912,3,2029,21,12,202903,2029),
+('2029-03-22',202912,3,2029,22,12,202903,2029),
+('2029-03-23',202912,3,2029,23,12,202903,2029),
+('2029-03-24',202912,3,2029,24,12,202903,2029),
+('2029-03-25',202913,3,2029,25,13,202903,2029),
+('2029-03-26',202913,3,2029,26,13,202903,2029),
+('2029-03-27',202913,3,2029,27,13,202903,2029),
+('2029-03-28',202913,3,2029,28,13,202903,2029),
+('2029-03-29',202913,3,2029,29,13,202903,2029),
+('2029-03-30',202913,3,2029,30,13,202903,2029),
+('2029-03-31',202913,3,2029,31,13,202903,2029),
+('2029-04-01',202914,4,2029,1,14,202904,2029),
+('2029-04-02',202914,4,2029,2,14,202904,2029),
+('2029-04-03',202914,4,2029,3,14,202904,2029),
+('2029-04-04',202914,4,2029,4,14,202904,2029),
+('2029-04-05',202914,4,2029,5,14,202904,2029),
+('2029-04-06',202914,4,2029,6,14,202904,2029),
+('2029-04-07',202914,4,2029,7,14,202904,2029),
+('2029-04-08',202915,4,2029,8,15,202904,2029),
+('2029-04-09',202915,4,2029,9,15,202904,2029),
+('2029-04-10',202915,4,2029,10,15,202904,2029),
+('2029-04-11',202915,4,2029,11,15,202904,2029),
+('2029-04-12',202915,4,2029,12,15,202904,2029),
+('2029-04-13',202915,4,2029,13,15,202904,2029),
+('2029-04-14',202915,4,2029,14,15,202904,2029),
+('2029-04-15',202916,4,2029,15,16,202904,2029),
+('2029-04-16',202916,4,2029,16,16,202904,2029),
+('2029-04-17',202916,4,2029,17,16,202904,2029),
+('2029-04-18',202916,4,2029,18,16,202904,2029),
+('2029-04-19',202916,4,2029,19,16,202904,2029),
+('2029-04-20',202916,4,2029,20,16,202904,2029),
+('2029-04-21',202916,4,2029,21,16,202904,2029),
+('2029-04-22',202917,4,2029,22,17,202904,2029),
+('2029-04-23',202917,4,2029,23,17,202904,2029),
+('2029-04-24',202917,4,2029,24,17,202904,2029),
+('2029-04-25',202917,4,2029,25,17,202904,2029),
+('2029-04-26',202917,4,2029,26,17,202904,2029),
+('2029-04-27',202917,4,2029,27,17,202904,2029),
+('2029-04-28',202917,4,2029,28,17,202904,2029),
+('2029-04-29',202918,4,2029,29,18,202904,2029),
+('2029-04-30',202918,4,2029,30,18,202904,2029),
+('2029-05-01',202918,5,2029,1,18,202905,2029),
+('2029-05-02',202918,5,2029,2,18,202905,2029),
+('2029-05-03',202918,5,2029,3,18,202905,2029),
+('2029-05-04',202918,5,2029,4,18,202905,2029),
+('2029-05-05',202918,5,2029,5,18,202905,2029),
+('2029-05-06',202919,5,2029,6,19,202905,2029),
+('2029-05-07',202919,5,2029,7,19,202905,2029),
+('2029-05-08',202919,5,2029,8,19,202905,2029),
+('2029-05-09',202919,5,2029,9,19,202905,2029),
+('2029-05-10',202919,5,2029,10,19,202905,2029),
+('2029-05-11',202919,5,2029,11,19,202905,2029),
+('2029-05-12',202919,5,2029,12,19,202905,2029),
+('2029-05-13',202920,5,2029,13,20,202905,2029),
+('2029-05-14',202920,5,2029,14,20,202905,2029),
+('2029-05-15',202920,5,2029,15,20,202905,2029),
+('2029-05-16',202920,5,2029,16,20,202905,2029),
+('2029-05-17',202920,5,2029,17,20,202905,2029),
+('2029-05-18',202920,5,2029,18,20,202905,2029),
+('2029-05-19',202920,5,2029,19,20,202905,2029),
+('2029-05-20',202921,5,2029,20,21,202905,2029),
+('2029-05-21',202921,5,2029,21,21,202905,2029),
+('2029-05-22',202921,5,2029,22,21,202905,2029),
+('2029-05-23',202921,5,2029,23,21,202905,2029),
+('2029-05-24',202921,5,2029,24,21,202905,2029),
+('2029-05-25',202921,5,2029,25,21,202905,2029),
+('2029-05-26',202921,5,2029,26,21,202905,2029),
+('2029-05-27',202922,5,2029,27,22,202905,2029),
+('2029-05-28',202922,5,2029,28,22,202905,2029),
+('2029-05-29',202922,5,2029,29,22,202905,2029),
+('2029-05-30',202922,5,2029,30,22,202905,2029),
+('2029-05-31',202922,5,2029,31,22,202905,2029),
+('2029-06-01',202922,6,2029,1,22,202906,2029),
+('2029-06-02',202922,6,2029,2,22,202906,2029),
+('2029-06-03',202923,6,2029,3,23,202906,2029),
+('2029-06-04',202923,6,2029,4,23,202906,2029),
+('2029-06-05',202923,6,2029,5,23,202906,2029),
+('2029-06-06',202923,6,2029,6,23,202906,2029),
+('2029-06-07',202923,6,2029,7,23,202906,2029),
+('2029-06-08',202923,6,2029,8,23,202906,2029),
+('2029-06-09',202923,6,2029,9,23,202906,2029),
+('2029-06-10',202924,6,2029,10,24,202906,2029),
+('2029-06-11',202924,6,2029,11,24,202906,2029),
+('2029-06-12',202924,6,2029,12,24,202906,2029),
+('2029-06-13',202924,6,2029,13,24,202906,2029),
+('2029-06-14',202924,6,2029,14,24,202906,2029),
+('2029-06-15',202924,6,2029,15,24,202906,2029),
+('2029-06-16',202924,6,2029,16,24,202906,2029),
+('2029-06-17',202925,6,2029,17,25,202906,2029),
+('2029-06-18',202925,6,2029,18,25,202906,2029),
+('2029-06-19',202925,6,2029,19,25,202906,2029),
+('2029-06-20',202925,6,2029,20,25,202906,2029),
+('2029-06-21',202925,6,2029,21,25,202906,2029),
+('2029-06-22',202925,6,2029,22,25,202906,2029),
+('2029-06-23',202925,6,2029,23,25,202906,2029),
+('2029-06-24',202926,6,2029,24,26,202906,2029),
+('2029-06-25',202926,6,2029,25,26,202906,2029),
+('2029-06-26',202926,6,2029,26,26,202906,2029),
+('2029-06-27',202926,6,2029,27,26,202906,2029),
+('2029-06-28',202926,6,2029,28,26,202906,2029),
+('2029-06-29',202926,6,2029,29,26,202906,2029),
+('2029-06-30',202926,6,2029,30,26,202906,2029),
+('2029-07-01',202927,7,2029,1,27,202907,2029),
+('2029-07-02',202927,7,2029,2,27,202907,2029),
+('2029-07-03',202927,7,2029,3,27,202907,2029),
+('2029-07-04',202927,7,2029,4,27,202907,2029),
+('2029-07-05',202927,7,2029,5,27,202907,2029),
+('2029-07-06',202927,7,2029,6,27,202907,2029),
+('2029-07-07',202927,7,2029,7,27,202907,2029),
+('2029-07-08',202928,7,2029,8,28,202907,2029),
+('2029-07-09',202928,7,2029,9,28,202907,2029),
+('2029-07-10',202928,7,2029,10,28,202907,2029),
+('2029-07-11',202928,7,2029,11,28,202907,2029),
+('2029-07-12',202928,7,2029,12,28,202907,2029),
+('2029-07-13',202928,7,2029,13,28,202907,2029),
+('2029-07-14',202928,7,2029,14,28,202907,2029),
+('2029-07-15',202929,7,2029,15,29,202907,2029),
+('2029-07-16',202929,7,2029,16,29,202907,2029),
+('2029-07-17',202929,7,2029,17,29,202907,2029),
+('2029-07-18',202929,7,2029,18,29,202907,2029),
+('2029-07-19',202929,7,2029,19,29,202907,2029),
+('2029-07-20',202929,7,2029,20,29,202907,2029),
+('2029-07-21',202929,7,2029,21,29,202907,2029),
+('2029-07-22',202930,7,2029,22,30,202907,2029),
+('2029-07-23',202930,7,2029,23,30,202907,2029),
+('2029-07-24',202930,7,2029,24,30,202907,2029),
+('2029-07-25',202930,7,2029,25,30,202907,2029),
+('2029-07-26',202930,7,2029,26,30,202907,2029),
+('2029-07-27',202930,7,2029,27,30,202907,2029),
+('2029-07-28',202930,7,2029,28,30,202907,2029),
+('2029-07-29',202931,7,2029,29,31,202907,2029),
+('2029-07-30',202931,7,2029,30,31,202907,2029),
+('2029-07-31',202931,7,2029,31,31,202907,2029),
+('2029-08-01',202931,8,2029,1,31,202908,2029),
+('2029-08-02',202931,8,2029,2,31,202908,2029),
+('2029-08-03',202931,8,2029,3,31,202908,2029),
+('2029-08-04',202931,8,2029,4,31,202908,2029),
+('2029-08-05',202932,8,2029,5,32,202908,2029),
+('2029-08-06',202932,8,2029,6,32,202908,2029),
+('2029-08-07',202932,8,2029,7,32,202908,2029),
+('2029-08-08',202932,8,2029,8,32,202908,2029),
+('2029-08-09',202932,8,2029,9,32,202908,2029),
+('2029-08-10',202932,8,2029,10,32,202908,2029),
+('2029-08-11',202932,8,2029,11,32,202908,2029),
+('2029-08-12',202933,8,2029,12,33,202908,2029),
+('2029-08-13',202933,8,2029,13,33,202908,2029),
+('2029-08-14',202933,8,2029,14,33,202908,2029),
+('2029-08-15',202933,8,2029,15,33,202908,2029),
+('2029-08-16',202933,8,2029,16,33,202908,2029),
+('2029-08-17',202933,8,2029,17,33,202908,2029),
+('2029-08-18',202933,8,2029,18,33,202908,2029),
+('2029-08-19',202934,8,2029,19,34,202908,2029),
+('2029-08-20',202934,8,2029,20,34,202908,2029),
+('2029-08-21',202934,8,2029,21,34,202908,2029),
+('2029-08-22',202934,8,2029,22,34,202908,2029),
+('2029-08-23',202934,8,2029,23,34,202908,2029),
+('2029-08-24',202934,8,2029,24,34,202908,2029),
+('2029-08-25',202934,8,2029,25,34,202908,2029),
+('2029-08-26',202935,8,2029,26,35,202908,2029),
+('2029-08-27',202935,8,2029,27,35,202908,2029),
+('2029-08-28',202935,8,2029,28,35,202908,2029),
+('2029-08-29',202935,8,2029,29,35,202908,2029),
+('2029-08-30',202935,8,2029,30,35,202908,2029),
+('2029-08-31',202935,8,2029,31,35,202908,2029),
+('2029-09-01',202935,9,2029,1,35,202909,2029),
+('2029-09-02',202936,9,2029,2,36,202909,2029),
+('2029-09-03',202936,9,2029,3,36,202909,2029),
+('2029-09-04',202936,9,2029,4,36,202909,2029),
+('2029-09-05',202936,9,2029,5,36,202909,2029),
+('2029-09-06',202936,9,2029,6,36,202909,2029),
+('2029-09-07',202936,9,2029,7,36,202909,2029),
+('2029-09-08',202936,9,2029,8,36,202909,2029),
+('2029-09-09',202937,9,2029,9,37,202909,2029),
+('2029-09-10',202937,9,2029,10,37,202909,2029),
+('2029-09-11',202937,9,2029,11,37,202909,2029),
+('2029-09-12',202937,9,2029,12,37,202909,2029),
+('2029-09-13',202937,9,2029,13,37,202909,2029),
+('2029-09-14',202937,9,2029,14,37,202909,2029),
+('2029-09-15',202937,9,2029,15,37,202909,2029),
+('2029-09-16',202938,9,2029,16,38,202909,2029),
+('2029-09-17',202938,9,2029,17,38,202909,2029),
+('2029-09-18',202938,9,2029,18,38,202909,2029),
+('2029-09-19',202938,9,2029,19,38,202909,2029),
+('2029-09-20',202938,9,2029,20,38,202909,2029),
+('2029-09-21',202938,9,2029,21,38,202909,2029),
+('2029-09-22',202938,9,2029,22,38,202909,2029),
+('2029-09-23',202939,9,2029,23,39,202909,2029),
+('2029-09-24',202939,9,2029,24,39,202909,2029),
+('2029-09-25',202939,9,2029,25,39,202909,2029),
+('2029-09-26',202939,9,2029,26,39,202909,2029),
+('2029-09-27',202939,9,2029,27,39,202909,2029),
+('2029-09-28',202939,9,2029,28,39,202909,2029),
+('2029-09-29',202939,9,2029,29,39,202909,2029),
+('2029-09-30',202940,9,2029,30,40,202909,2029),
+('2029-10-01',202940,10,2029,1,40,202910,2029),
+('2029-10-02',202940,10,2029,2,40,202910,2029),
+('2029-10-03',202940,10,2029,3,40,202910,2029),
+('2029-10-04',202940,10,2029,4,40,202910,2029),
+('2029-10-05',202940,10,2029,5,40,202910,2029),
+('2029-10-06',202940,10,2029,6,40,202910,2029),
+('2029-10-07',202941,10,2029,7,41,202910,2029),
+('2029-10-08',202941,10,2029,8,41,202910,2029),
+('2029-10-09',202941,10,2029,9,41,202910,2029),
+('2029-10-10',202941,10,2029,10,41,202910,2029),
+('2029-10-11',202941,10,2029,11,41,202910,2029),
+('2029-10-12',202941,10,2029,12,41,202910,2029),
+('2029-10-13',202941,10,2029,13,41,202910,2029),
+('2029-10-14',202942,10,2029,14,42,202910,2029),
+('2029-10-15',202942,10,2029,15,42,202910,2029),
+('2029-10-16',202942,10,2029,16,42,202910,2029),
+('2029-10-17',202942,10,2029,17,42,202910,2029),
+('2029-10-18',202942,10,2029,18,42,202910,2029),
+('2029-10-19',202942,10,2029,19,42,202910,2029),
+('2029-10-20',202942,10,2029,20,42,202910,2029),
+('2029-10-21',202943,10,2029,21,43,202910,2029),
+('2029-10-22',202943,10,2029,22,43,202910,2029),
+('2029-10-23',202943,10,2029,23,43,202910,2029),
+('2029-10-24',202943,10,2029,24,43,202910,2029),
+('2029-10-25',202943,10,2029,25,43,202910,2029),
+('2029-10-26',202943,10,2029,26,43,202910,2029),
+('2029-10-27',202943,10,2029,27,43,202910,2029),
+('2029-10-28',202944,10,2029,28,44,202910,2029),
+('2029-10-29',202944,10,2029,29,44,202910,2029),
+('2029-10-30',202944,10,2029,30,44,202910,2029),
+('2029-10-31',202944,10,2029,31,44,202910,2029),
+('2029-11-01',202944,11,2029,1,44,202911,2029),
+('2029-11-02',202944,11,2029,2,44,202911,2029),
+('2029-11-03',202944,11,2029,3,44,202911,2029),
+('2029-11-04',202945,11,2029,4,45,202911,2029),
+('2029-11-05',202945,11,2029,5,45,202911,2029),
+('2029-11-06',202945,11,2029,6,45,202911,2029),
+('2029-11-07',202945,11,2029,7,45,202911,2029),
+('2029-11-08',202945,11,2029,8,45,202911,2029),
+('2029-11-09',202945,11,2029,9,45,202911,2029),
+('2029-11-10',202945,11,2029,10,45,202911,2029),
+('2029-11-11',202946,11,2029,11,46,202911,2029),
+('2029-11-12',202946,11,2029,12,46,202911,2029),
+('2029-11-13',202946,11,2029,13,46,202911,2029),
+('2029-11-14',202946,11,2029,14,46,202911,2029),
+('2029-11-15',202946,11,2029,15,46,202911,2029),
+('2029-11-16',202946,11,2029,16,46,202911,2029),
+('2029-11-17',202946,11,2029,17,46,202911,2029),
+('2029-11-18',202947,11,2029,18,47,202911,2029),
+('2029-11-19',202947,11,2029,19,47,202911,2029),
+('2029-11-20',202947,11,2029,20,47,202911,2029),
+('2029-11-21',202947,11,2029,21,47,202911,2029),
+('2029-11-22',202947,11,2029,22,47,202911,2029),
+('2029-11-23',202947,11,2029,23,47,202911,2029),
+('2029-11-24',202947,11,2029,24,47,202911,2029),
+('2029-11-25',202948,11,2029,25,48,202911,2029),
+('2029-11-26',202948,11,2029,26,48,202911,2029),
+('2029-11-27',202948,11,2029,27,48,202911,2029),
+('2029-11-28',202948,11,2029,28,48,202911,2029),
+('2029-11-29',202948,11,2029,29,48,202911,2029),
+('2029-11-30',202948,11,2029,30,48,202911,2029),
+('2029-12-01',202948,12,2029,1,48,202912,2030),
+('2029-12-02',202949,12,2029,2,49,202912,2030),
+('2029-12-03',202949,12,2029,3,49,202912,2030),
+('2029-12-04',202949,12,2029,4,49,202912,2030),
+('2029-12-05',202949,12,2029,5,49,202912,2030),
+('2029-12-06',202949,12,2029,6,49,202912,2030),
+('2029-12-07',202949,12,2029,7,49,202912,2030),
+('2029-12-08',202949,12,2029,8,49,202912,2030),
+('2029-12-09',202950,12,2029,9,50,202912,2030),
+('2029-12-10',202950,12,2029,10,50,202912,2030),
+('2029-12-11',202950,12,2029,11,50,202912,2030),
+('2029-12-12',202950,12,2029,12,50,202912,2030),
+('2029-12-13',202950,12,2029,13,50,202912,2030),
+('2029-12-14',202950,12,2029,14,50,202912,2030),
+('2029-12-15',202950,12,2029,15,50,202912,2030),
+('2029-12-16',202951,12,2029,16,51,202912,2030),
+('2029-12-17',202951,12,2029,17,51,202912,2030),
+('2029-12-18',202951,12,2029,18,51,202912,2030),
+('2029-12-19',202951,12,2029,19,51,202912,2030),
+('2029-12-20',202951,12,2029,20,51,202912,2030),
+('2029-12-21',202951,12,2029,21,51,202912,2030),
+('2029-12-22',202951,12,2029,22,51,202912,2030),
+('2029-12-23',202952,12,2029,23,52,202912,2030),
+('2029-12-24',202952,12,2029,24,52,202912,2030),
+('2029-12-25',202952,12,2029,25,52,202912,2030),
+('2029-12-26',202952,12,2029,26,52,202912,2030),
+('2029-12-27',202952,12,2029,27,52,202912,2030),
+('2029-12-28',202952,12,2029,28,52,202912,2030),
+('2029-12-29',202952,12,2029,29,52,202912,2030),
+('2029-12-30',202953,12,2029,30,1,202912,2030),
+('2029-12-31',202901,12,2029,31,1,202912,2030),
+('2030-01-01',203001,1,2030,1,1,203001,2030),
+('2030-01-02',203001,1,2030,2,1,203001,2030),
+('2030-01-03',203001,1,2030,3,1,203001,2030),
+('2030-01-04',203001,1,2030,4,1,203001,2030),
+('2030-01-05',203001,1,2030,5,1,203001,2030),
+('2030-01-06',203002,1,2030,6,2,203001,2030),
+('2030-01-07',203002,1,2030,7,2,203001,2030),
+('2030-01-08',203002,1,2030,8,2,203001,2030),
+('2030-01-09',203002,1,2030,9,2,203001,2030),
+('2030-01-10',203002,1,2030,10,2,203001,2030),
+('2030-01-11',203002,1,2030,11,2,203001,2030),
+('2030-01-12',203002,1,2030,12,2,203001,2030),
+('2030-01-13',203003,1,2030,13,3,203001,2030),
+('2030-01-14',203003,1,2030,14,3,203001,2030),
+('2030-01-15',203003,1,2030,15,3,203001,2030),
+('2030-01-16',203003,1,2030,16,3,203001,2030),
+('2030-01-17',203003,1,2030,17,3,203001,2030),
+('2030-01-18',203003,1,2030,18,3,203001,2030),
+('2030-01-19',203003,1,2030,19,3,203001,2030),
+('2030-01-20',203004,1,2030,20,4,203001,2030),
+('2030-01-21',203004,1,2030,21,4,203001,2030),
+('2030-01-22',203004,1,2030,22,4,203001,2030),
+('2030-01-23',203004,1,2030,23,4,203001,2030),
+('2030-01-24',203004,1,2030,24,4,203001,2030),
+('2030-01-25',203004,1,2030,25,4,203001,2030),
+('2030-01-26',203004,1,2030,26,4,203001,2030),
+('2030-01-27',203005,1,2030,27,5,203001,2030),
+('2030-01-28',203005,1,2030,28,5,203001,2030),
+('2030-01-29',203005,1,2030,29,5,203001,2030),
+('2030-01-30',203005,1,2030,30,5,203001,2030),
+('2030-01-31',203005,1,2030,31,5,203001,2030),
+('2030-02-01',203005,2,2030,1,5,203002,2030),
+('2030-02-02',203005,2,2030,2,5,203002,2030),
+('2030-02-03',203006,2,2030,3,6,203002,2030),
+('2030-02-04',203006,2,2030,4,6,203002,2030),
+('2030-02-05',203006,2,2030,5,6,203002,2030),
+('2030-02-06',203006,2,2030,6,6,203002,2030),
+('2030-02-07',203006,2,2030,7,6,203002,2030),
+('2030-02-08',203006,2,2030,8,6,203002,2030),
+('2030-02-09',203006,2,2030,9,6,203002,2030),
+('2030-02-10',203007,2,2030,10,7,203002,2030),
+('2030-02-11',203007,2,2030,11,7,203002,2030),
+('2030-02-12',203007,2,2030,12,7,203002,2030),
+('2030-02-13',203007,2,2030,13,7,203002,2030),
+('2030-02-14',203007,2,2030,14,7,203002,2030),
+('2030-02-15',203007,2,2030,15,7,203002,2030),
+('2030-02-16',203007,2,2030,16,7,203002,2030),
+('2030-02-17',203008,2,2030,17,8,203002,2030),
+('2030-02-18',203008,2,2030,18,8,203002,2030),
+('2030-02-19',203008,2,2030,19,8,203002,2030),
+('2030-02-20',203008,2,2030,20,8,203002,2030),
+('2030-02-21',203008,2,2030,21,8,203002,2030),
+('2030-02-22',203008,2,2030,22,8,203002,2030),
+('2030-02-23',203008,2,2030,23,8,203002,2030),
+('2030-02-24',203009,2,2030,24,9,203002,2030),
+('2030-02-25',203009,2,2030,25,9,203002,2030),
+('2030-02-26',203009,2,2030,26,9,203002,2030),
+('2030-02-27',203009,2,2030,27,9,203002,2030),
+('2030-02-28',203009,2,2030,28,9,203002,2030),
+('2030-03-01',203009,3,2030,1,9,203003,2030),
+('2030-03-02',203009,3,2030,2,9,203003,2030),
+('2030-03-03',203010,3,2030,3,10,203003,2030),
+('2030-03-04',203010,3,2030,4,10,203003,2030),
+('2030-03-05',203010,3,2030,5,10,203003,2030),
+('2030-03-06',203010,3,2030,6,10,203003,2030),
+('2030-03-07',203010,3,2030,7,10,203003,2030),
+('2030-03-08',203010,3,2030,8,10,203003,2030),
+('2030-03-09',203010,3,2030,9,10,203003,2030),
+('2030-03-10',203011,3,2030,10,11,203003,2030),
+('2030-03-11',203011,3,2030,11,11,203003,2030),
+('2030-03-12',203011,3,2030,12,11,203003,2030),
+('2030-03-13',203011,3,2030,13,11,203003,2030),
+('2030-03-14',203011,3,2030,14,11,203003,2030),
+('2030-03-15',203011,3,2030,15,11,203003,2030),
+('2030-03-16',203011,3,2030,16,11,203003,2030),
+('2030-03-17',203012,3,2030,17,12,203003,2030),
+('2030-03-18',203012,3,2030,18,12,203003,2030),
+('2030-03-19',203012,3,2030,19,12,203003,2030),
+('2030-03-20',203012,3,2030,20,12,203003,2030),
+('2030-03-21',203012,3,2030,21,12,203003,2030),
+('2030-03-22',203012,3,2030,22,12,203003,2030),
+('2030-03-23',203012,3,2030,23,12,203003,2030),
+('2030-03-24',203013,3,2030,24,13,203003,2030),
+('2030-03-25',203013,3,2030,25,13,203003,2030),
+('2030-03-26',203013,3,2030,26,13,203003,2030),
+('2030-03-27',203013,3,2030,27,13,203003,2030),
+('2030-03-28',203013,3,2030,28,13,203003,2030),
+('2030-03-29',203013,3,2030,29,13,203003,2030),
+('2030-03-30',203013,3,2030,30,13,203003,2030),
+('2030-03-31',203014,3,2030,31,14,203003,2030),
+('2030-04-01',203014,4,2030,1,14,203004,2030),
+('2030-04-02',203014,4,2030,2,14,203004,2030),
+('2030-04-03',203014,4,2030,3,14,203004,2030),
+('2030-04-04',203014,4,2030,4,14,203004,2030),
+('2030-04-05',203014,4,2030,5,14,203004,2030),
+('2030-04-06',203014,4,2030,6,14,203004,2030),
+('2030-04-07',203015,4,2030,7,15,203004,2030),
+('2030-04-08',203015,4,2030,8,15,203004,2030),
+('2030-04-09',203015,4,2030,9,15,203004,2030),
+('2030-04-10',203015,4,2030,10,15,203004,2030),
+('2030-04-11',203015,4,2030,11,15,203004,2030),
+('2030-04-12',203015,4,2030,12,15,203004,2030),
+('2030-04-13',203015,4,2030,13,15,203004,2030),
+('2030-04-14',203016,4,2030,14,16,203004,2030),
+('2030-04-15',203016,4,2030,15,16,203004,2030),
+('2030-04-16',203016,4,2030,16,16,203004,2030),
+('2030-04-17',203016,4,2030,17,16,203004,2030),
+('2030-04-18',203016,4,2030,18,16,203004,2030),
+('2030-04-19',203016,4,2030,19,16,203004,2030),
+('2030-04-20',203016,4,2030,20,16,203004,2030),
+('2030-04-21',203017,4,2030,21,17,203004,2030),
+('2030-04-22',203017,4,2030,22,17,203004,2030),
+('2030-04-23',203017,4,2030,23,17,203004,2030),
+('2030-04-24',203017,4,2030,24,17,203004,2030),
+('2030-04-25',203017,4,2030,25,17,203004,2030),
+('2030-04-26',203017,4,2030,26,17,203004,2030),
+('2030-04-27',203017,4,2030,27,17,203004,2030),
+('2030-04-28',203018,4,2030,28,18,203004,2030),
+('2030-04-29',203018,4,2030,29,18,203004,2030),
+('2030-04-30',203018,4,2030,30,18,203004,2030),
+('2030-05-01',203018,5,2030,1,18,203005,2030),
+('2030-05-02',203018,5,2030,2,18,203005,2030),
+('2030-05-03',203018,5,2030,3,18,203005,2030),
+('2030-05-04',203018,5,2030,4,18,203005,2030),
+('2030-05-05',203019,5,2030,5,19,203005,2030),
+('2030-05-06',203019,5,2030,6,19,203005,2030),
+('2030-05-07',203019,5,2030,7,19,203005,2030),
+('2030-05-08',203019,5,2030,8,19,203005,2030),
+('2030-05-09',203019,5,2030,9,19,203005,2030),
+('2030-05-10',203019,5,2030,10,19,203005,2030),
+('2030-05-11',203019,5,2030,11,19,203005,2030),
+('2030-05-12',203020,5,2030,12,20,203005,2030),
+('2030-05-13',203020,5,2030,13,20,203005,2030),
+('2030-05-14',203020,5,2030,14,20,203005,2030),
+('2030-05-15',203020,5,2030,15,20,203005,2030),
+('2030-05-16',203020,5,2030,16,20,203005,2030),
+('2030-05-17',203020,5,2030,17,20,203005,2030),
+('2030-05-18',203020,5,2030,18,20,203005,2030),
+('2030-05-19',203021,5,2030,19,21,203005,2030),
+('2030-05-20',203021,5,2030,20,21,203005,2030),
+('2030-05-21',203021,5,2030,21,21,203005,2030),
+('2030-05-22',203021,5,2030,22,21,203005,2030),
+('2030-05-23',203021,5,2030,23,21,203005,2030),
+('2030-05-24',203021,5,2030,24,21,203005,2030),
+('2030-05-25',203021,5,2030,25,21,203005,2030),
+('2030-05-26',203022,5,2030,26,22,203005,2030),
+('2030-05-27',203022,5,2030,27,22,203005,2030),
+('2030-05-28',203022,5,2030,28,22,203005,2030),
+('2030-05-29',203022,5,2030,29,22,203005,2030),
+('2030-05-30',203022,5,2030,30,22,203005,2030),
+('2030-05-31',203022,5,2030,31,22,203005,2030),
+('2030-06-01',203022,6,2030,1,22,203006,2030),
+('2030-06-02',203023,6,2030,2,23,203006,2030),
+('2030-06-03',203023,6,2030,3,23,203006,2030),
+('2030-06-04',203023,6,2030,4,23,203006,2030),
+('2030-06-05',203023,6,2030,5,23,203006,2030),
+('2030-06-06',203023,6,2030,6,23,203006,2030),
+('2030-06-07',203023,6,2030,7,23,203006,2030),
+('2030-06-08',203023,6,2030,8,23,203006,2030),
+('2030-06-09',203024,6,2030,9,24,203006,2030),
+('2030-06-10',203024,6,2030,10,24,203006,2030),
+('2030-06-11',203024,6,2030,11,24,203006,2030),
+('2030-06-12',203024,6,2030,12,24,203006,2030),
+('2030-06-13',203024,6,2030,13,24,203006,2030),
+('2030-06-14',203024,6,2030,14,24,203006,2030),
+('2030-06-15',203024,6,2030,15,24,203006,2030),
+('2030-06-16',203025,6,2030,16,25,203006,2030),
+('2030-06-17',203025,6,2030,17,25,203006,2030),
+('2030-06-18',203025,6,2030,18,25,203006,2030),
+('2030-06-19',203025,6,2030,19,25,203006,2030),
+('2030-06-20',203025,6,2030,20,25,203006,2030),
+('2030-06-21',203025,6,2030,21,25,203006,2030),
+('2030-06-22',203025,6,2030,22,25,203006,2030),
+('2030-06-23',203026,6,2030,23,26,203006,2030),
+('2030-06-24',203026,6,2030,24,26,203006,2030),
+('2030-06-25',203026,6,2030,25,26,203006,2030),
+('2030-06-26',203026,6,2030,26,26,203006,2030),
+('2030-06-27',203026,6,2030,27,26,203006,2030),
+('2030-06-28',203026,6,2030,28,26,203006,2030),
+('2030-06-29',203026,6,2030,29,26,203006,2030),
+('2030-06-30',203027,6,2030,30,27,203006,2030),
+('2030-07-01',203027,7,2030,1,27,203007,2030),
+('2030-07-02',203027,7,2030,2,27,203007,2030),
+('2030-07-03',203027,7,2030,3,27,203007,2030),
+('2030-07-04',203027,7,2030,4,27,203007,2030),
+('2030-07-05',203027,7,2030,5,27,203007,2030),
+('2030-07-06',203027,7,2030,6,27,203007,2030),
+('2030-07-07',203028,7,2030,7,28,203007,2030),
+('2030-07-08',203028,7,2030,8,28,203007,2030),
+('2030-07-09',203028,7,2030,9,28,203007,2030),
+('2030-07-10',203028,7,2030,10,28,203007,2030),
+('2030-07-11',203028,7,2030,11,28,203007,2030),
+('2030-07-12',203028,7,2030,12,28,203007,2030),
+('2030-07-13',203028,7,2030,13,28,203007,2030),
+('2030-07-14',203029,7,2030,14,29,203007,2030),
+('2030-07-15',203029,7,2030,15,29,203007,2030),
+('2030-07-16',203029,7,2030,16,29,203007,2030),
+('2030-07-17',203029,7,2030,17,29,203007,2030),
+('2030-07-18',203029,7,2030,18,29,203007,2030),
+('2030-07-19',203029,7,2030,19,29,203007,2030),
+('2030-07-20',203029,7,2030,20,29,203007,2030),
+('2030-07-21',203030,7,2030,21,30,203007,2030),
+('2030-07-22',203030,7,2030,22,30,203007,2030),
+('2030-07-23',203030,7,2030,23,30,203007,2030),
+('2030-07-24',203030,7,2030,24,30,203007,2030),
+('2030-07-25',203030,7,2030,25,30,203007,2030),
+('2030-07-26',203030,7,2030,26,30,203007,2030),
+('2030-07-27',203030,7,2030,27,30,203007,2030),
+('2030-07-28',203031,7,2030,28,31,203007,2030),
+('2030-07-29',203031,7,2030,29,31,203007,2030),
+('2030-07-30',203031,7,2030,30,31,203007,2030),
+('2030-07-31',203031,7,2030,31,31,203007,2030),
+('2030-08-01',203031,8,2030,1,31,203008,2030),
+('2030-08-02',203031,8,2030,2,31,203008,2030),
+('2030-08-03',203031,8,2030,3,31,203008,2030),
+('2030-08-04',203032,8,2030,4,32,203008,2030),
+('2030-08-05',203032,8,2030,5,32,203008,2030),
+('2030-08-06',203032,8,2030,6,32,203008,2030),
+('2030-08-07',203032,8,2030,7,32,203008,2030),
+('2030-08-08',203032,8,2030,8,32,203008,2030),
+('2030-08-09',203032,8,2030,9,32,203008,2030),
+('2030-08-10',203032,8,2030,10,32,203008,2030),
+('2030-08-11',203033,8,2030,11,33,203008,2030),
+('2030-08-12',203033,8,2030,12,33,203008,2030),
+('2030-08-13',203033,8,2030,13,33,203008,2030),
+('2030-08-14',203033,8,2030,14,33,203008,2030),
+('2030-08-15',203033,8,2030,15,33,203008,2030),
+('2030-08-16',203033,8,2030,16,33,203008,2030),
+('2030-08-17',203033,8,2030,17,33,203008,2030),
+('2030-08-18',203034,8,2030,18,34,203008,2030),
+('2030-08-19',203034,8,2030,19,34,203008,2030),
+('2030-08-20',203034,8,2030,20,34,203008,2030),
+('2030-08-21',203034,8,2030,21,34,203008,2030),
+('2030-08-22',203034,8,2030,22,34,203008,2030),
+('2030-08-23',203034,8,2030,23,34,203008,2030),
+('2030-08-24',203034,8,2030,24,34,203008,2030),
+('2030-08-25',203035,8,2030,25,35,203008,2030),
+('2030-08-26',203035,8,2030,26,35,203008,2030),
+('2030-08-27',203035,8,2030,27,35,203008,2030),
+('2030-08-28',203035,8,2030,28,35,203008,2030),
+('2030-08-29',203035,8,2030,29,35,203008,2030),
+('2030-08-30',203035,8,2030,30,35,203008,2030),
+('2030-08-31',203035,8,2030,31,35,203008,2030),
+('2030-09-01',203036,9,2030,1,36,203009,2030),
+('2030-09-02',203036,9,2030,2,36,203009,2030),
+('2030-09-03',203036,9,2030,3,36,203009,2030),
+('2030-09-04',203036,9,2030,4,36,203009,2030),
+('2030-09-05',203036,9,2030,5,36,203009,2030),
+('2030-09-06',203036,9,2030,6,36,203009,2030),
+('2030-09-07',203036,9,2030,7,36,203009,2030),
+('2030-09-08',203037,9,2030,8,37,203009,2030),
+('2030-09-09',203037,9,2030,9,37,203009,2030),
+('2030-09-10',203037,9,2030,10,37,203009,2030),
+('2030-09-11',203037,9,2030,11,37,203009,2030),
+('2030-09-12',203037,9,2030,12,37,203009,2030),
+('2030-09-13',203037,9,2030,13,37,203009,2030),
+('2030-09-14',203037,9,2030,14,37,203009,2030),
+('2030-09-15',203038,9,2030,15,38,203009,2030),
+('2030-09-16',203038,9,2030,16,38,203009,2030),
+('2030-09-17',203038,9,2030,17,38,203009,2030),
+('2030-09-18',203038,9,2030,18,38,203009,2030),
+('2030-09-19',203038,9,2030,19,38,203009,2030),
+('2030-09-20',203038,9,2030,20,38,203009,2030),
+('2030-09-21',203038,9,2030,21,38,203009,2030),
+('2030-09-22',203039,9,2030,22,39,203009,2030),
+('2030-09-23',203039,9,2030,23,39,203009,2030),
+('2030-09-24',203039,9,2030,24,39,203009,2030),
+('2030-09-25',203039,9,2030,25,39,203009,2030),
+('2030-09-26',203039,9,2030,26,39,203009,2030),
+('2030-09-27',203039,9,2030,27,39,203009,2030),
+('2030-09-28',203039,9,2030,28,39,203009,2030),
+('2030-09-29',203040,9,2030,29,40,203009,2030),
+('2030-09-30',203040,9,2030,30,40,203009,2030),
+('2030-10-01',203040,10,2030,1,40,203010,2030),
+('2030-10-02',203040,10,2030,2,40,203010,2030),
+('2030-10-03',203040,10,2030,3,40,203010,2030),
+('2030-10-04',203040,10,2030,4,40,203010,2030),
+('2030-10-05',203040,10,2030,5,40,203010,2030),
+('2030-10-06',203041,10,2030,6,41,203010,2030),
+('2030-10-07',203041,10,2030,7,41,203010,2030),
+('2030-10-08',203041,10,2030,8,41,203010,2030),
+('2030-10-09',203041,10,2030,9,41,203010,2030),
+('2030-10-10',203041,10,2030,10,41,203010,2030),
+('2030-10-11',203041,10,2030,11,41,203010,2030),
+('2030-10-12',203041,10,2030,12,41,203010,2030),
+('2030-10-13',203042,10,2030,13,42,203010,2030),
+('2030-10-14',203042,10,2030,14,42,203010,2030),
+('2030-10-15',203042,10,2030,15,42,203010,2030),
+('2030-10-16',203042,10,2030,16,42,203010,2030),
+('2030-10-17',203042,10,2030,17,42,203010,2030),
+('2030-10-18',203042,10,2030,18,42,203010,2030),
+('2030-10-19',203042,10,2030,19,42,203010,2030),
+('2030-10-20',203043,10,2030,20,43,203010,2030),
+('2030-10-21',203043,10,2030,21,43,203010,2030),
+('2030-10-22',203043,10,2030,22,43,203010,2030),
+('2030-10-23',203043,10,2030,23,43,203010,2030),
+('2030-10-24',203043,10,2030,24,43,203010,2030),
+('2030-10-25',203043,10,2030,25,43,203010,2030),
+('2030-10-26',203043,10,2030,26,43,203010,2030),
+('2030-10-27',203044,10,2030,27,44,203010,2030),
+('2030-10-28',203044,10,2030,28,44,203010,2030),
+('2030-10-29',203044,10,2030,29,44,203010,2030),
+('2030-10-30',203044,10,2030,30,44,203010,2030),
+('2030-10-31',203044,10,2030,31,44,203010,2030),
+('2030-11-01',203044,11,2030,1,44,203011,2030),
+('2030-11-02',203044,11,2030,2,44,203011,2030),
+('2030-11-03',203045,11,2030,3,45,203011,2030),
+('2030-11-04',203045,11,2030,4,45,203011,2030),
+('2030-11-05',203045,11,2030,5,45,203011,2030),
+('2030-11-06',203045,11,2030,6,45,203011,2030),
+('2030-11-07',203045,11,2030,7,45,203011,2030),
+('2030-11-08',203045,11,2030,8,45,203011,2030),
+('2030-11-09',203045,11,2030,9,45,203011,2030),
+('2030-11-10',203046,11,2030,10,46,203011,2030),
+('2030-11-11',203046,11,2030,11,46,203011,2030),
+('2030-11-12',203046,11,2030,12,46,203011,2030),
+('2030-11-13',203046,11,2030,13,46,203011,2030),
+('2030-11-14',203046,11,2030,14,46,203011,2030),
+('2030-11-15',203046,11,2030,15,46,203011,2030),
+('2030-11-16',203046,11,2030,16,46,203011,2030),
+('2030-11-17',203047,11,2030,17,47,203011,2030),
+('2030-11-18',203047,11,2030,18,47,203011,2030),
+('2030-11-19',203047,11,2030,19,47,203011,2030),
+('2030-11-20',203047,11,2030,20,47,203011,2030),
+('2030-11-21',203047,11,2030,21,47,203011,2030),
+('2030-11-22',203047,11,2030,22,47,203011,2030),
+('2030-11-23',203047,11,2030,23,47,203011,2030),
+('2030-11-24',203048,11,2030,24,48,203011,2030),
+('2030-11-25',203048,11,2030,25,48,203011,2030),
+('2030-11-26',203048,11,2030,26,48,203011,2030),
+('2030-11-27',203048,11,2030,27,48,203011,2030),
+('2030-11-28',203048,11,2030,28,48,203011,2030),
+('2030-11-29',203048,11,2030,29,48,203011,2030),
+('2030-11-30',203048,11,2030,30,48,203011,2030),
+('2030-12-01',203049,12,2030,1,49,203012,2031),
+('2030-12-02',203049,12,2030,2,49,203012,2031),
+('2030-12-03',203049,12,2030,3,49,203012,2031),
+('2030-12-04',203049,12,2030,4,49,203012,2031),
+('2030-12-05',203049,12,2030,5,49,203012,2031),
+('2030-12-06',203049,12,2030,6,49,203012,2031),
+('2030-12-07',203049,12,2030,7,49,203012,2031),
+('2030-12-08',203050,12,2030,8,50,203012,2031),
+('2030-12-09',203050,12,2030,9,50,203012,2031),
+('2030-12-10',203050,12,2030,10,50,203012,2031),
+('2030-12-11',203050,12,2030,11,50,203012,2031),
+('2030-12-12',203050,12,2030,12,50,203012,2031),
+('2030-12-13',203050,12,2030,13,50,203012,2031),
+('2030-12-14',203050,12,2030,14,50,203012,2031),
+('2030-12-15',203051,12,2030,15,51,203012,2031),
+('2030-12-16',203051,12,2030,16,51,203012,2031),
+('2030-12-17',203051,12,2030,17,51,203012,2031),
+('2030-12-18',203051,12,2030,18,51,203012,2031),
+('2030-12-19',203051,12,2030,19,51,203012,2031),
+('2030-12-20',203051,12,2030,20,51,203012,2031),
+('2030-12-21',203051,12,2030,21,51,203012,2031),
+('2030-12-22',203052,12,2030,22,52,203012,2031),
+('2030-12-23',203052,12,2030,23,52,203012,2031),
+('2030-12-24',203052,12,2030,24,52,203012,2031),
+('2030-12-25',203052,12,2030,25,52,203012,2031),
+('2030-12-26',203052,12,2030,26,52,203012,2031),
+('2030-12-27',203052,12,2030,27,52,203012,2031),
+('2030-12-28',203052,12,2030,28,52,203012,2031),
+('2030-12-29',203053,12,2030,29,1,203012,2031),
+('2030-12-30',203001,12,2030,30,1,203012,2031),
+('2030-12-31',203001,12,2030,31,1,203012,2031),
+('2031-01-01',203101,1,2031,1,1,203101,2031),
+('2031-01-02',203101,1,2031,2,1,203101,2031),
+('2031-01-03',203101,1,2031,3,1,203101,2031),
+('2031-01-04',203101,1,2031,4,1,203101,2031),
+('2031-01-05',203102,1,2031,5,2,203101,2031),
+('2031-01-06',203102,1,2031,6,2,203101,2031),
+('2031-01-07',203102,1,2031,7,2,203101,2031),
+('2031-01-08',203102,1,2031,8,2,203101,2031),
+('2031-01-09',203102,1,2031,9,2,203101,2031),
+('2031-01-10',203102,1,2031,10,2,203101,2031),
+('2031-01-11',203102,1,2031,11,2,203101,2031),
+('2031-01-12',203103,1,2031,12,3,203101,2031),
+('2031-01-13',203103,1,2031,13,3,203101,2031),
+('2031-01-14',203103,1,2031,14,3,203101,2031),
+('2031-01-15',203103,1,2031,15,3,203101,2031),
+('2031-01-16',203103,1,2031,16,3,203101,2031),
+('2031-01-17',203103,1,2031,17,3,203101,2031),
+('2031-01-18',203103,1,2031,18,3,203101,2031),
+('2031-01-19',203104,1,2031,19,4,203101,2031),
+('2031-01-20',203104,1,2031,20,4,203101,2031),
+('2031-01-21',203104,1,2031,21,4,203101,2031),
+('2031-01-22',203104,1,2031,22,4,203101,2031),
+('2031-01-23',203104,1,2031,23,4,203101,2031),
+('2031-01-24',203104,1,2031,24,4,203101,2031),
+('2031-01-25',203104,1,2031,25,4,203101,2031),
+('2031-01-26',203105,1,2031,26,5,203101,2031),
+('2031-01-27',203105,1,2031,27,5,203101,2031),
+('2031-01-28',203105,1,2031,28,5,203101,2031),
+('2031-01-29',203105,1,2031,29,5,203101,2031),
+('2031-01-30',203105,1,2031,30,5,203101,2031),
+('2031-01-31',203105,1,2031,31,5,203101,2031),
+('2031-02-01',203105,2,2031,1,5,203102,2031),
+('2031-02-02',203106,2,2031,2,6,203102,2031),
+('2031-02-03',203106,2,2031,3,6,203102,2031),
+('2031-02-04',203106,2,2031,4,6,203102,2031),
+('2031-02-05',203106,2,2031,5,6,203102,2031),
+('2031-02-06',203106,2,2031,6,6,203102,2031),
+('2031-02-07',203106,2,2031,7,6,203102,2031),
+('2031-02-08',203106,2,2031,8,6,203102,2031),
+('2031-02-09',203107,2,2031,9,7,203102,2031),
+('2031-02-10',203107,2,2031,10,7,203102,2031),
+('2031-02-11',203107,2,2031,11,7,203102,2031),
+('2031-02-12',203107,2,2031,12,7,203102,2031),
+('2031-02-13',203107,2,2031,13,7,203102,2031),
+('2031-02-14',203107,2,2031,14,7,203102,2031),
+('2031-02-15',203107,2,2031,15,7,203102,2031),
+('2031-02-16',203108,2,2031,16,8,203102,2031),
+('2031-02-17',203108,2,2031,17,8,203102,2031),
+('2031-02-18',203108,2,2031,18,8,203102,2031),
+('2031-02-19',203108,2,2031,19,8,203102,2031),
+('2031-02-20',203108,2,2031,20,8,203102,2031),
+('2031-02-21',203108,2,2031,21,8,203102,2031),
+('2031-02-22',203108,2,2031,22,8,203102,2031),
+('2031-02-23',203109,2,2031,23,9,203102,2031),
+('2031-02-24',203109,2,2031,24,9,203102,2031),
+('2031-02-25',203109,2,2031,25,9,203102,2031),
+('2031-02-26',203109,2,2031,26,9,203102,2031),
+('2031-02-27',203109,2,2031,27,9,203102,2031),
+('2031-02-28',203109,2,2031,28,9,203102,2031),
+('2031-03-01',203109,3,2031,1,9,203103,2031),
+('2031-03-02',203110,3,2031,2,10,203103,2031),
+('2031-03-03',203110,3,2031,3,10,203103,2031),
+('2031-03-04',203110,3,2031,4,10,203103,2031),
+('2031-03-05',203110,3,2031,5,10,203103,2031),
+('2031-03-06',203110,3,2031,6,10,203103,2031),
+('2031-03-07',203110,3,2031,7,10,203103,2031),
+('2031-03-08',203110,3,2031,8,10,203103,2031),
+('2031-03-09',203111,3,2031,9,11,203103,2031),
+('2031-03-10',203111,3,2031,10,11,203103,2031),
+('2031-03-11',203111,3,2031,11,11,203103,2031),
+('2031-03-12',203111,3,2031,12,11,203103,2031),
+('2031-03-13',203111,3,2031,13,11,203103,2031),
+('2031-03-14',203111,3,2031,14,11,203103,2031),
+('2031-03-15',203111,3,2031,15,11,203103,2031),
+('2031-03-16',203112,3,2031,16,12,203103,2031),
+('2031-03-17',203112,3,2031,17,12,203103,2031),
+('2031-03-18',203112,3,2031,18,12,203103,2031),
+('2031-03-19',203112,3,2031,19,12,203103,2031),
+('2031-03-20',203112,3,2031,20,12,203103,2031),
+('2031-03-21',203112,3,2031,21,12,203103,2031),
+('2031-03-22',203112,3,2031,22,12,203103,2031),
+('2031-03-23',203113,3,2031,23,13,203103,2031),
+('2031-03-24',203113,3,2031,24,13,203103,2031),
+('2031-03-25',203113,3,2031,25,13,203103,2031),
+('2031-03-26',203113,3,2031,26,13,203103,2031),
+('2031-03-27',203113,3,2031,27,13,203103,2031),
+('2031-03-28',203113,3,2031,28,13,203103,2031),
+('2031-03-29',203113,3,2031,29,13,203103,2031),
+('2031-03-30',203114,3,2031,30,14,203103,2031),
+('2031-03-31',203114,3,2031,31,14,203103,2031),
+('2031-04-01',203114,4,2031,1,14,203104,2031),
+('2031-04-02',203114,4,2031,2,14,203104,2031),
+('2031-04-03',203114,4,2031,3,14,203104,2031),
+('2031-04-04',203114,4,2031,4,14,203104,2031),
+('2031-04-05',203114,4,2031,5,14,203104,2031),
+('2031-04-06',203115,4,2031,6,15,203104,2031),
+('2031-04-07',203115,4,2031,7,15,203104,2031),
+('2031-04-08',203115,4,2031,8,15,203104,2031),
+('2031-04-09',203115,4,2031,9,15,203104,2031),
+('2031-04-10',203115,4,2031,10,15,203104,2031),
+('2031-04-11',203115,4,2031,11,15,203104,2031),
+('2031-04-12',203115,4,2031,12,15,203104,2031),
+('2031-04-13',203116,4,2031,13,16,203104,2031),
+('2031-04-14',203116,4,2031,14,16,203104,2031),
+('2031-04-15',203116,4,2031,15,16,203104,2031),
+('2031-04-16',203116,4,2031,16,16,203104,2031),
+('2031-04-17',203116,4,2031,17,16,203104,2031),
+('2031-04-18',203116,4,2031,18,16,203104,2031),
+('2031-04-19',203116,4,2031,19,16,203104,2031),
+('2031-04-20',203117,4,2031,20,17,203104,2031),
+('2031-04-21',203117,4,2031,21,17,203104,2031),
+('2031-04-22',203117,4,2031,22,17,203104,2031),
+('2031-04-23',203117,4,2031,23,17,203104,2031),
+('2031-04-24',203117,4,2031,24,17,203104,2031),
+('2031-04-25',203117,4,2031,25,17,203104,2031),
+('2031-04-26',203117,4,2031,26,17,203104,2031),
+('2031-04-27',203118,4,2031,27,18,203104,2031),
+('2031-04-28',203118,4,2031,28,18,203104,2031),
+('2031-04-29',203118,4,2031,29,18,203104,2031),
+('2031-04-30',203118,4,2031,30,18,203104,2031),
+('2031-05-01',203118,5,2031,1,18,203105,2031),
+('2031-05-02',203118,5,2031,2,18,203105,2031),
+('2031-05-03',203118,5,2031,3,18,203105,2031),
+('2031-05-04',203119,5,2031,4,19,203105,2031),
+('2031-05-05',203119,5,2031,5,19,203105,2031),
+('2031-05-06',203119,5,2031,6,19,203105,2031),
+('2031-05-07',203119,5,2031,7,19,203105,2031),
+('2031-05-08',203119,5,2031,8,19,203105,2031),
+('2031-05-09',203119,5,2031,9,19,203105,2031),
+('2031-05-10',203119,5,2031,10,19,203105,2031),
+('2031-05-11',203120,5,2031,11,20,203105,2031),
+('2031-05-12',203120,5,2031,12,20,203105,2031),
+('2031-05-13',203120,5,2031,13,20,203105,2031),
+('2031-05-14',203120,5,2031,14,20,203105,2031),
+('2031-05-15',203120,5,2031,15,20,203105,2031),
+('2031-05-16',203120,5,2031,16,20,203105,2031),
+('2031-05-17',203120,5,2031,17,20,203105,2031),
+('2031-05-18',203121,5,2031,18,21,203105,2031),
+('2031-05-19',203121,5,2031,19,21,203105,2031),
+('2031-05-20',203121,5,2031,20,21,203105,2031),
+('2031-05-21',203121,5,2031,21,21,203105,2031),
+('2031-05-22',203121,5,2031,22,21,203105,2031),
+('2031-05-23',203121,5,2031,23,21,203105,2031),
+('2031-05-24',203121,5,2031,24,21,203105,2031),
+('2031-05-25',203122,5,2031,25,22,203105,2031),
+('2031-05-26',203122,5,2031,26,22,203105,2031),
+('2031-05-27',203122,5,2031,27,22,203105,2031),
+('2031-05-28',203122,5,2031,28,22,203105,2031),
+('2031-05-29',203122,5,2031,29,22,203105,2031),
+('2031-05-30',203122,5,2031,30,22,203105,2031),
+('2031-05-31',203122,5,2031,31,22,203105,2031),
+('2031-06-01',203123,6,2031,1,23,203106,2031),
+('2031-06-02',203123,6,2031,2,23,203106,2031),
+('2031-06-03',203123,6,2031,3,23,203106,2031),
+('2031-06-04',203123,6,2031,4,23,203106,2031),
+('2031-06-05',203123,6,2031,5,23,203106,2031),
+('2031-06-06',203123,6,2031,6,23,203106,2031),
+('2031-06-07',203123,6,2031,7,23,203106,2031),
+('2031-06-08',203124,6,2031,8,24,203106,2031),
+('2031-06-09',203124,6,2031,9,24,203106,2031),
+('2031-06-10',203124,6,2031,10,24,203106,2031),
+('2031-06-11',203124,6,2031,11,24,203106,2031),
+('2031-06-12',203124,6,2031,12,24,203106,2031),
+('2031-06-13',203124,6,2031,13,24,203106,2031),
+('2031-06-14',203124,6,2031,14,24,203106,2031),
+('2031-06-15',203125,6,2031,15,25,203106,2031),
+('2031-06-16',203125,6,2031,16,25,203106,2031),
+('2031-06-17',203125,6,2031,17,25,203106,2031),
+('2031-06-18',203125,6,2031,18,25,203106,2031),
+('2031-06-19',203125,6,2031,19,25,203106,2031),
+('2031-06-20',203125,6,2031,20,25,203106,2031),
+('2031-06-21',203125,6,2031,21,25,203106,2031),
+('2031-06-22',203126,6,2031,22,26,203106,2031),
+('2031-06-23',203126,6,2031,23,26,203106,2031),
+('2031-06-24',203126,6,2031,24,26,203106,2031),
+('2031-06-25',203126,6,2031,25,26,203106,2031),
+('2031-06-26',203126,6,2031,26,26,203106,2031),
+('2031-06-27',203126,6,2031,27,26,203106,2031),
+('2031-06-28',203126,6,2031,28,26,203106,2031),
+('2031-06-29',203127,6,2031,29,27,203106,2031),
+('2031-06-30',203127,6,2031,30,27,203106,2031),
+('2031-07-01',203127,7,2031,1,27,203107,2031),
+('2031-07-02',203127,7,2031,2,27,203107,2031),
+('2031-07-03',203127,7,2031,3,27,203107,2031),
+('2031-07-04',203127,7,2031,4,27,203107,2031),
+('2031-07-05',203127,7,2031,5,27,203107,2031),
+('2031-07-06',203128,7,2031,6,28,203107,2031),
+('2031-07-07',203128,7,2031,7,28,203107,2031),
+('2031-07-08',203128,7,2031,8,28,203107,2031),
+('2031-07-09',203128,7,2031,9,28,203107,2031),
+('2031-07-10',203128,7,2031,10,28,203107,2031),
+('2031-07-11',203128,7,2031,11,28,203107,2031),
+('2031-07-12',203128,7,2031,12,28,203107,2031),
+('2031-07-13',203129,7,2031,13,29,203107,2031),
+('2031-07-14',203129,7,2031,14,29,203107,2031),
+('2031-07-15',203129,7,2031,15,29,203107,2031),
+('2031-07-16',203129,7,2031,16,29,203107,2031),
+('2031-07-17',203129,7,2031,17,29,203107,2031),
+('2031-07-18',203129,7,2031,18,29,203107,2031),
+('2031-07-19',203129,7,2031,19,29,203107,2031),
+('2031-07-20',203130,7,2031,20,30,203107,2031),
+('2031-07-21',203130,7,2031,21,30,203107,2031),
+('2031-07-22',203130,7,2031,22,30,203107,2031),
+('2031-07-23',203130,7,2031,23,30,203107,2031),
+('2031-07-24',203130,7,2031,24,30,203107,2031),
+('2031-07-25',203130,7,2031,25,30,203107,2031),
+('2031-07-26',203130,7,2031,26,30,203107,2031),
+('2031-07-27',203131,7,2031,27,31,203107,2031),
+('2031-07-28',203131,7,2031,28,31,203107,2031),
+('2031-07-29',203131,7,2031,29,31,203107,2031),
+('2031-07-30',203131,7,2031,30,31,203107,2031),
+('2031-07-31',203131,7,2031,31,31,203107,2031),
+('2031-08-01',203131,8,2031,1,31,203108,2031),
+('2031-08-02',203131,8,2031,2,31,203108,2031),
+('2031-08-03',203132,8,2031,3,32,203108,2031),
+('2031-08-04',203132,8,2031,4,32,203108,2031),
+('2031-08-05',203132,8,2031,5,32,203108,2031),
+('2031-08-06',203132,8,2031,6,32,203108,2031),
+('2031-08-07',203132,8,2031,7,32,203108,2031),
+('2031-08-08',203132,8,2031,8,32,203108,2031),
+('2031-08-09',203132,8,2031,9,32,203108,2031),
+('2031-08-10',203133,8,2031,10,33,203108,2031),
+('2031-08-11',203133,8,2031,11,33,203108,2031),
+('2031-08-12',203133,8,2031,12,33,203108,2031),
+('2031-08-13',203133,8,2031,13,33,203108,2031),
+('2031-08-14',203133,8,2031,14,33,203108,2031),
+('2031-08-15',203133,8,2031,15,33,203108,2031),
+('2031-08-16',203133,8,2031,16,33,203108,2031),
+('2031-08-17',203134,8,2031,17,34,203108,2031),
+('2031-08-18',203134,8,2031,18,34,203108,2031),
+('2031-08-19',203134,8,2031,19,34,203108,2031),
+('2031-08-20',203134,8,2031,20,34,203108,2031),
+('2031-08-21',203134,8,2031,21,34,203108,2031),
+('2031-08-22',203134,8,2031,22,34,203108,2031),
+('2031-08-23',203134,8,2031,23,34,203108,2031),
+('2031-08-24',203135,8,2031,24,35,203108,2031),
+('2031-08-25',203135,8,2031,25,35,203108,2031),
+('2031-08-26',203135,8,2031,26,35,203108,2031),
+('2031-08-27',203135,8,2031,27,35,203108,2031),
+('2031-08-28',203135,8,2031,28,35,203108,2031),
+('2031-08-29',203135,8,2031,29,35,203108,2031),
+('2031-08-30',203135,8,2031,30,35,203108,2031),
+('2031-08-31',203136,8,2031,31,36,203108,2031),
+('2031-09-01',203136,9,2031,1,36,203109,2031),
+('2031-09-02',203136,9,2031,2,36,203109,2031),
+('2031-09-03',203136,9,2031,3,36,203109,2031),
+('2031-09-04',203136,9,2031,4,36,203109,2031),
+('2031-09-05',203136,9,2031,5,36,203109,2031),
+('2031-09-06',203136,9,2031,6,36,203109,2031),
+('2031-09-07',203137,9,2031,7,37,203109,2031),
+('2031-09-08',203137,9,2031,8,37,203109,2031),
+('2031-09-09',203137,9,2031,9,37,203109,2031),
+('2031-09-10',203137,9,2031,10,37,203109,2031),
+('2031-09-11',203137,9,2031,11,37,203109,2031),
+('2031-09-12',203137,9,2031,12,37,203109,2031),
+('2031-09-13',203137,9,2031,13,37,203109,2031),
+('2031-09-14',203138,9,2031,14,38,203109,2031),
+('2031-09-15',203138,9,2031,15,38,203109,2031),
+('2031-09-16',203138,9,2031,16,38,203109,2031),
+('2031-09-17',203138,9,2031,17,38,203109,2031),
+('2031-09-18',203138,9,2031,18,38,203109,2031),
+('2031-09-19',203138,9,2031,19,38,203109,2031),
+('2031-09-20',203138,9,2031,20,38,203109,2031),
+('2031-09-21',203139,9,2031,21,39,203109,2031),
+('2031-09-22',203139,9,2031,22,39,203109,2031),
+('2031-09-23',203139,9,2031,23,39,203109,2031),
+('2031-09-24',203139,9,2031,24,39,203109,2031),
+('2031-09-25',203139,9,2031,25,39,203109,2031),
+('2031-09-26',203139,9,2031,26,39,203109,2031),
+('2031-09-27',203139,9,2031,27,39,203109,2031),
+('2031-09-28',203140,9,2031,28,40,203109,2031),
+('2031-09-29',203140,9,2031,29,40,203109,2031),
+('2031-09-30',203140,9,2031,30,40,203109,2031),
+('2031-10-01',203140,10,2031,1,40,203110,2031),
+('2031-10-02',203140,10,2031,2,40,203110,2031),
+('2031-10-03',203140,10,2031,3,40,203110,2031),
+('2031-10-04',203140,10,2031,4,40,203110,2031),
+('2031-10-05',203141,10,2031,5,41,203110,2031),
+('2031-10-06',203141,10,2031,6,41,203110,2031),
+('2031-10-07',203141,10,2031,7,41,203110,2031),
+('2031-10-08',203141,10,2031,8,41,203110,2031),
+('2031-10-09',203141,10,2031,9,41,203110,2031),
+('2031-10-10',203141,10,2031,10,41,203110,2031),
+('2031-10-11',203141,10,2031,11,41,203110,2031),
+('2031-10-12',203142,10,2031,12,42,203110,2031),
+('2031-10-13',203142,10,2031,13,42,203110,2031),
+('2031-10-14',203142,10,2031,14,42,203110,2031),
+('2031-10-15',203142,10,2031,15,42,203110,2031),
+('2031-10-16',203142,10,2031,16,42,203110,2031),
+('2031-10-17',203142,10,2031,17,42,203110,2031),
+('2031-10-18',203142,10,2031,18,42,203110,2031),
+('2031-10-19',203143,10,2031,19,43,203110,2031),
+('2031-10-20',203143,10,2031,20,43,203110,2031),
+('2031-10-21',203143,10,2031,21,43,203110,2031),
+('2031-10-22',203143,10,2031,22,43,203110,2031),
+('2031-10-23',203143,10,2031,23,43,203110,2031),
+('2031-10-24',203143,10,2031,24,43,203110,2031),
+('2031-10-25',203143,10,2031,25,43,203110,2031),
+('2031-10-26',203144,10,2031,26,44,203110,2031),
+('2031-10-27',203144,10,2031,27,44,203110,2031),
+('2031-10-28',203144,10,2031,28,44,203110,2031),
+('2031-10-29',203144,10,2031,29,44,203110,2031),
+('2031-10-30',203144,10,2031,30,44,203110,2031),
+('2031-10-31',203144,10,2031,31,44,203110,2031),
+('2031-11-01',203144,11,2031,1,44,203111,2031),
+('2031-11-02',203145,11,2031,2,45,203111,2031),
+('2031-11-03',203145,11,2031,3,45,203111,2031),
+('2031-11-04',203145,11,2031,4,45,203111,2031),
+('2031-11-05',203145,11,2031,5,45,203111,2031),
+('2031-11-06',203145,11,2031,6,45,203111,2031),
+('2031-11-07',203145,11,2031,7,45,203111,2031),
+('2031-11-08',203145,11,2031,8,45,203111,2031),
+('2031-11-09',203146,11,2031,9,46,203111,2031),
+('2031-11-10',203146,11,2031,10,46,203111,2031),
+('2031-11-11',203146,11,2031,11,46,203111,2031),
+('2031-11-12',203146,11,2031,12,46,203111,2031),
+('2031-11-13',203146,11,2031,13,46,203111,2031),
+('2031-11-14',203146,11,2031,14,46,203111,2031),
+('2031-11-15',203146,11,2031,15,46,203111,2031),
+('2031-11-16',203147,11,2031,16,47,203111,2031),
+('2031-11-17',203147,11,2031,17,47,203111,2031),
+('2031-11-18',203147,11,2031,18,47,203111,2031),
+('2031-11-19',203147,11,2031,19,47,203111,2031),
+('2031-11-20',203147,11,2031,20,47,203111,2031),
+('2031-11-21',203147,11,2031,21,47,203111,2031),
+('2031-11-22',203147,11,2031,22,47,203111,2031),
+('2031-11-23',203148,11,2031,23,48,203111,2031),
+('2031-11-24',203148,11,2031,24,48,203111,2031),
+('2031-11-25',203148,11,2031,25,48,203111,2031),
+('2031-11-26',203148,11,2031,26,48,203111,2031),
+('2031-11-27',203148,11,2031,27,48,203111,2031),
+('2031-11-28',203148,11,2031,28,48,203111,2031),
+('2031-11-29',203148,11,2031,29,48,203111,2031),
+('2031-11-30',203149,11,2031,30,49,203111,2031),
+('2031-12-01',203149,12,2031,1,49,203112,2032),
+('2031-12-02',203149,12,2031,2,49,203112,2032),
+('2031-12-03',203149,12,2031,3,49,203112,2032),
+('2031-12-04',203149,12,2031,4,49,203112,2032),
+('2031-12-05',203149,12,2031,5,49,203112,2032),
+('2031-12-06',203149,12,2031,6,49,203112,2032),
+('2031-12-07',203150,12,2031,7,50,203112,2032),
+('2031-12-08',203150,12,2031,8,50,203112,2032),
+('2031-12-09',203150,12,2031,9,50,203112,2032),
+('2031-12-10',203150,12,2031,10,50,203112,2032),
+('2031-12-11',203150,12,2031,11,50,203112,2032),
+('2031-12-12',203150,12,2031,12,50,203112,2032),
+('2031-12-13',203150,12,2031,13,50,203112,2032),
+('2031-12-14',203151,12,2031,14,51,203112,2032),
+('2031-12-15',203151,12,2031,15,51,203112,2032),
+('2031-12-16',203151,12,2031,16,51,203112,2032),
+('2031-12-17',203151,12,2031,17,51,203112,2032),
+('2031-12-18',203151,12,2031,18,51,203112,2032),
+('2031-12-19',203151,12,2031,19,51,203112,2032),
+('2031-12-20',203151,12,2031,20,51,203112,2032),
+('2031-12-21',203152,12,2031,21,52,203112,2032),
+('2031-12-22',203152,12,2031,22,52,203112,2032),
+('2031-12-23',203152,12,2031,23,52,203112,2032),
+('2031-12-24',203152,12,2031,24,52,203112,2032),
+('2031-12-25',203152,12,2031,25,52,203112,2032),
+('2031-12-26',203152,12,2031,26,52,203112,2032),
+('2031-12-27',203152,12,2031,27,52,203112,2032),
+('2031-12-28',203153,12,2031,28,53,203112,2032),
+('2031-12-29',203101,12,2031,29,53,203112,2032),
+('2031-12-30',203101,12,2031,30,53,203112,2032),
+('2031-12-31',203101,12,2031,31,53,203112,2032),
+('2032-01-01',203201,1,2032,1,53,203201,2032),
+('2032-01-02',203201,1,2032,2,53,203201,2032),
+('2032-01-03',203201,1,2032,3,53,203201,2032),
+('2032-01-04',203202,1,2032,4,1,203201,2032),
+('2032-01-05',203202,1,2032,5,1,203201,2032),
+('2032-01-06',203202,1,2032,6,1,203201,2032),
+('2032-01-07',203202,1,2032,7,1,203201,2032),
+('2032-01-08',203202,1,2032,8,1,203201,2032),
+('2032-01-09',203202,1,2032,9,1,203201,2032),
+('2032-01-10',203202,1,2032,10,1,203201,2032),
+('2032-01-11',203203,1,2032,11,2,203201,2032),
+('2032-01-12',203203,1,2032,12,2,203201,2032),
+('2032-01-13',203203,1,2032,13,2,203201,2032),
+('2032-01-14',203203,1,2032,14,2,203201,2032),
+('2032-01-15',203203,1,2032,15,2,203201,2032),
+('2032-01-16',203203,1,2032,16,2,203201,2032),
+('2032-01-17',203203,1,2032,17,2,203201,2032),
+('2032-01-18',203204,1,2032,18,3,203201,2032),
+('2032-01-19',203204,1,2032,19,3,203201,2032),
+('2032-01-20',203204,1,2032,20,3,203201,2032),
+('2032-01-21',203204,1,2032,21,3,203201,2032),
+('2032-01-22',203204,1,2032,22,3,203201,2032),
+('2032-01-23',203204,1,2032,23,3,203201,2032),
+('2032-01-24',203204,1,2032,24,3,203201,2032),
+('2032-01-25',203205,1,2032,25,4,203201,2032),
+('2032-01-26',203205,1,2032,26,4,203201,2032),
+('2032-01-27',203205,1,2032,27,4,203201,2032),
+('2032-01-28',203205,1,2032,28,4,203201,2032),
+('2032-01-29',203205,1,2032,29,4,203201,2032),
+('2032-01-30',203205,1,2032,30,4,203201,2032),
+('2032-01-31',203205,1,2032,31,4,203201,2032),
+('2032-02-01',203206,2,2032,1,5,203202,2032),
+('2032-02-02',203206,2,2032,2,5,203202,2032),
+('2032-02-03',203206,2,2032,3,5,203202,2032),
+('2032-02-04',203206,2,2032,4,5,203202,2032),
+('2032-02-05',203206,2,2032,5,5,203202,2032),
+('2032-02-06',203206,2,2032,6,5,203202,2032),
+('2032-02-07',203206,2,2032,7,5,203202,2032),
+('2032-02-08',203207,2,2032,8,6,203202,2032),
+('2032-02-09',203207,2,2032,9,6,203202,2032),
+('2032-02-10',203207,2,2032,10,6,203202,2032),
+('2032-02-11',203207,2,2032,11,6,203202,2032),
+('2032-02-12',203207,2,2032,12,6,203202,2032),
+('2032-02-13',203207,2,2032,13,6,203202,2032),
+('2032-02-14',203207,2,2032,14,6,203202,2032),
+('2032-02-15',203208,2,2032,15,7,203202,2032),
+('2032-02-16',203208,2,2032,16,7,203202,2032),
+('2032-02-17',203208,2,2032,17,7,203202,2032),
+('2032-02-18',203208,2,2032,18,7,203202,2032),
+('2032-02-19',203208,2,2032,19,7,203202,2032),
+('2032-02-20',203208,2,2032,20,7,203202,2032),
+('2032-02-21',203208,2,2032,21,7,203202,2032),
+('2032-02-22',203209,2,2032,22,8,203202,2032),
+('2032-02-23',203209,2,2032,23,8,203202,2032),
+('2032-02-24',203209,2,2032,24,8,203202,2032),
+('2032-02-25',203209,2,2032,25,8,203202,2032),
+('2032-02-26',203209,2,2032,26,8,203202,2032),
+('2032-02-27',203209,2,2032,27,8,203202,2032),
+('2032-02-28',203209,2,2032,28,8,203202,2032),
+('2032-02-29',203210,2,2032,29,9,203202,2032),
+('2032-03-01',203210,3,2032,1,9,203203,2032),
+('2032-03-02',203210,3,2032,2,9,203203,2032),
+('2032-03-03',203210,3,2032,3,9,203203,2032),
+('2032-03-04',203210,3,2032,4,9,203203,2032),
+('2032-03-05',203210,3,2032,5,9,203203,2032),
+('2032-03-06',203210,3,2032,6,9,203203,2032),
+('2032-03-07',203211,3,2032,7,10,203203,2032),
+('2032-03-08',203211,3,2032,8,10,203203,2032),
+('2032-03-09',203211,3,2032,9,10,203203,2032),
+('2032-03-10',203211,3,2032,10,10,203203,2032),
+('2032-03-11',203211,3,2032,11,10,203203,2032),
+('2032-03-12',203211,3,2032,12,10,203203,2032),
+('2032-03-13',203211,3,2032,13,10,203203,2032),
+('2032-03-14',203212,3,2032,14,11,203203,2032),
+('2032-03-15',203212,3,2032,15,11,203203,2032),
+('2032-03-16',203212,3,2032,16,11,203203,2032),
+('2032-03-17',203212,3,2032,17,11,203203,2032),
+('2032-03-18',203212,3,2032,18,11,203203,2032),
+('2032-03-19',203212,3,2032,19,11,203203,2032),
+('2032-03-20',203212,3,2032,20,11,203203,2032),
+('2032-03-21',203213,3,2032,21,12,203203,2032),
+('2032-03-22',203213,3,2032,22,12,203203,2032),
+('2032-03-23',203213,3,2032,23,12,203203,2032),
+('2032-03-24',203213,3,2032,24,12,203203,2032),
+('2032-03-25',203213,3,2032,25,12,203203,2032),
+('2032-03-26',203213,3,2032,26,12,203203,2032),
+('2032-03-27',203213,3,2032,27,12,203203,2032),
+('2032-03-28',203214,3,2032,28,13,203203,2032),
+('2032-03-29',203214,3,2032,29,13,203203,2032),
+('2032-03-30',203214,3,2032,30,13,203203,2032),
+('2032-03-31',203214,3,2032,31,13,203203,2032),
+('2032-04-01',203214,4,2032,1,13,203204,2032),
+('2032-04-02',203214,4,2032,2,13,203204,2032),
+('2032-04-03',203214,4,2032,3,13,203204,2032),
+('2032-04-04',203215,4,2032,4,14,203204,2032),
+('2032-04-05',203215,4,2032,5,14,203204,2032),
+('2032-04-06',203215,4,2032,6,14,203204,2032),
+('2032-04-07',203215,4,2032,7,14,203204,2032),
+('2032-04-08',203215,4,2032,8,14,203204,2032),
+('2032-04-09',203215,4,2032,9,14,203204,2032),
+('2032-04-10',203215,4,2032,10,14,203204,2032),
+('2032-04-11',203216,4,2032,11,15,203204,2032),
+('2032-04-12',203216,4,2032,12,15,203204,2032),
+('2032-04-13',203216,4,2032,13,15,203204,2032),
+('2032-04-14',203216,4,2032,14,15,203204,2032),
+('2032-04-15',203216,4,2032,15,15,203204,2032),
+('2032-04-16',203216,4,2032,16,15,203204,2032),
+('2032-04-17',203216,4,2032,17,15,203204,2032),
+('2032-04-18',203217,4,2032,18,16,203204,2032),
+('2032-04-19',203217,4,2032,19,16,203204,2032),
+('2032-04-20',203217,4,2032,20,16,203204,2032),
+('2032-04-21',203217,4,2032,21,16,203204,2032),
+('2032-04-22',203217,4,2032,22,16,203204,2032),
+('2032-04-23',203217,4,2032,23,16,203204,2032),
+('2032-04-24',203217,4,2032,24,16,203204,2032),
+('2032-04-25',203218,4,2032,25,17,203204,2032),
+('2032-04-26',203218,4,2032,26,17,203204,2032),
+('2032-04-27',203218,4,2032,27,17,203204,2032),
+('2032-04-28',203218,4,2032,28,17,203204,2032),
+('2032-04-29',203218,4,2032,29,17,203204,2032),
+('2032-04-30',203218,4,2032,30,17,203204,2032),
+('2032-05-01',203218,5,2032,1,17,203205,2032),
+('2032-05-02',203219,5,2032,2,18,203205,2032),
+('2032-05-03',203219,5,2032,3,18,203205,2032),
+('2032-05-04',203219,5,2032,4,18,203205,2032),
+('2032-05-05',203219,5,2032,5,18,203205,2032),
+('2032-05-06',203219,5,2032,6,18,203205,2032),
+('2032-05-07',203219,5,2032,7,18,203205,2032),
+('2032-05-08',203219,5,2032,8,18,203205,2032),
+('2032-05-09',203220,5,2032,9,19,203205,2032),
+('2032-05-10',203220,5,2032,10,19,203205,2032),
+('2032-05-11',203220,5,2032,11,19,203205,2032),
+('2032-05-12',203220,5,2032,12,19,203205,2032),
+('2032-05-13',203220,5,2032,13,19,203205,2032),
+('2032-05-14',203220,5,2032,14,19,203205,2032),
+('2032-05-15',203220,5,2032,15,19,203205,2032),
+('2032-05-16',203221,5,2032,16,20,203205,2032),
+('2032-05-17',203221,5,2032,17,20,203205,2032),
+('2032-05-18',203221,5,2032,18,20,203205,2032),
+('2032-05-19',203221,5,2032,19,20,203205,2032),
+('2032-05-20',203221,5,2032,20,20,203205,2032),
+('2032-05-21',203221,5,2032,21,20,203205,2032),
+('2032-05-22',203221,5,2032,22,20,203205,2032),
+('2032-05-23',203222,5,2032,23,21,203205,2032),
+('2032-05-24',203222,5,2032,24,21,203205,2032),
+('2032-05-25',203222,5,2032,25,21,203205,2032),
+('2032-05-26',203222,5,2032,26,21,203205,2032),
+('2032-05-27',203222,5,2032,27,21,203205,2032),
+('2032-05-28',203222,5,2032,28,21,203205,2032),
+('2032-05-29',203222,5,2032,29,21,203205,2032),
+('2032-05-30',203223,5,2032,30,22,203205,2032),
+('2032-05-31',203223,5,2032,31,22,203205,2032),
+('2032-06-01',203223,6,2032,1,22,203206,2032),
+('2032-06-02',203223,6,2032,2,22,203206,2032),
+('2032-06-03',203223,6,2032,3,22,203206,2032),
+('2032-06-04',203223,6,2032,4,22,203206,2032),
+('2032-06-05',203223,6,2032,5,22,203206,2032),
+('2032-06-06',203224,6,2032,6,23,203206,2032),
+('2032-06-07',203224,6,2032,7,23,203206,2032),
+('2032-06-08',203224,6,2032,8,23,203206,2032),
+('2032-06-09',203224,6,2032,9,23,203206,2032),
+('2032-06-10',203224,6,2032,10,23,203206,2032),
+('2032-06-11',203224,6,2032,11,23,203206,2032),
+('2032-06-12',203224,6,2032,12,23,203206,2032),
+('2032-06-13',203225,6,2032,13,24,203206,2032),
+('2032-06-14',203225,6,2032,14,24,203206,2032),
+('2032-06-15',203225,6,2032,15,24,203206,2032),
+('2032-06-16',203225,6,2032,16,24,203206,2032),
+('2032-06-17',203225,6,2032,17,24,203206,2032),
+('2032-06-18',203225,6,2032,18,24,203206,2032),
+('2032-06-19',203225,6,2032,19,24,203206,2032),
+('2032-06-20',203226,6,2032,20,25,203206,2032),
+('2032-06-21',203226,6,2032,21,25,203206,2032),
+('2032-06-22',203226,6,2032,22,25,203206,2032),
+('2032-06-23',203226,6,2032,23,25,203206,2032),
+('2032-06-24',203226,6,2032,24,25,203206,2032),
+('2032-06-25',203226,6,2032,25,25,203206,2032),
+('2032-06-26',203226,6,2032,26,25,203206,2032),
+('2032-06-27',203227,6,2032,27,26,203206,2032),
+('2032-06-28',203227,6,2032,28,26,203206,2032),
+('2032-06-29',203227,6,2032,29,26,203206,2032),
+('2032-06-30',203227,6,2032,30,26,203206,2032),
+('2032-07-01',203227,7,2032,1,26,203207,2032),
+('2032-07-02',203227,7,2032,2,26,203207,2032),
+('2032-07-03',203227,7,2032,3,26,203207,2032),
+('2032-07-04',203228,7,2032,4,27,203207,2032),
+('2032-07-05',203228,7,2032,5,27,203207,2032),
+('2032-07-06',203228,7,2032,6,27,203207,2032),
+('2032-07-07',203228,7,2032,7,27,203207,2032),
+('2032-07-08',203228,7,2032,8,27,203207,2032),
+('2032-07-09',203228,7,2032,9,27,203207,2032),
+('2032-07-10',203228,7,2032,10,27,203207,2032),
+('2032-07-11',203229,7,2032,11,28,203207,2032),
+('2032-07-12',203229,7,2032,12,28,203207,2032),
+('2032-07-13',203229,7,2032,13,28,203207,2032),
+('2032-07-14',203229,7,2032,14,28,203207,2032),
+('2032-07-15',203229,7,2032,15,28,203207,2032),
+('2032-07-16',203229,7,2032,16,28,203207,2032),
+('2032-07-17',203229,7,2032,17,28,203207,2032),
+('2032-07-18',203230,7,2032,18,29,203207,2032),
+('2032-07-19',203230,7,2032,19,29,203207,2032),
+('2032-07-20',203230,7,2032,20,29,203207,2032),
+('2032-07-21',203230,7,2032,21,29,203207,2032),
+('2032-07-22',203230,7,2032,22,29,203207,2032),
+('2032-07-23',203230,7,2032,23,29,203207,2032),
+('2032-07-24',203230,7,2032,24,29,203207,2032),
+('2032-07-25',203231,7,2032,25,30,203207,2032),
+('2032-07-26',203231,7,2032,26,30,203207,2032),
+('2032-07-27',203231,7,2032,27,30,203207,2032),
+('2032-07-28',203231,7,2032,28,30,203207,2032),
+('2032-07-29',203231,7,2032,29,30,203207,2032),
+('2032-07-30',203231,7,2032,30,30,203207,2032),
+('2032-07-31',203231,7,2032,31,30,203207,2032),
+('2032-08-01',203232,8,2032,1,31,203208,2032),
+('2032-08-02',203232,8,2032,2,31,203208,2032),
+('2032-08-03',203232,8,2032,3,31,203208,2032),
+('2032-08-04',203232,8,2032,4,31,203208,2032),
+('2032-08-05',203232,8,2032,5,31,203208,2032),
+('2032-08-06',203232,8,2032,6,31,203208,2032),
+('2032-08-07',203232,8,2032,7,31,203208,2032),
+('2032-08-08',203233,8,2032,8,32,203208,2032),
+('2032-08-09',203233,8,2032,9,32,203208,2032),
+('2032-08-10',203233,8,2032,10,32,203208,2032),
+('2032-08-11',203233,8,2032,11,32,203208,2032),
+('2032-08-12',203233,8,2032,12,32,203208,2032),
+('2032-08-13',203233,8,2032,13,32,203208,2032),
+('2032-08-14',203233,8,2032,14,32,203208,2032),
+('2032-08-15',203234,8,2032,15,33,203208,2032),
+('2032-08-16',203234,8,2032,16,33,203208,2032),
+('2032-08-17',203234,8,2032,17,33,203208,2032),
+('2032-08-18',203234,8,2032,18,33,203208,2032),
+('2032-08-19',203234,8,2032,19,33,203208,2032),
+('2032-08-20',203234,8,2032,20,33,203208,2032),
+('2032-08-21',203234,8,2032,21,33,203208,2032),
+('2032-08-22',203235,8,2032,22,34,203208,2032),
+('2032-08-23',203235,8,2032,23,34,203208,2032),
+('2032-08-24',203235,8,2032,24,34,203208,2032),
+('2032-08-25',203235,8,2032,25,34,203208,2032),
+('2032-08-26',203235,8,2032,26,34,203208,2032),
+('2032-08-27',203235,8,2032,27,34,203208,2032),
+('2032-08-28',203235,8,2032,28,34,203208,2032),
+('2032-08-29',203236,8,2032,29,35,203208,2032),
+('2032-08-30',203236,8,2032,30,35,203208,2032),
+('2032-08-31',203236,8,2032,31,35,203208,2032),
+('2032-09-01',203236,9,2032,1,35,203209,2032),
+('2032-09-02',203236,9,2032,2,35,203209,2032),
+('2032-09-03',203236,9,2032,3,35,203209,2032),
+('2032-09-04',203236,9,2032,4,35,203209,2032),
+('2032-09-05',203237,9,2032,5,36,203209,2032),
+('2032-09-06',203237,9,2032,6,36,203209,2032),
+('2032-09-07',203237,9,2032,7,36,203209,2032),
+('2032-09-08',203237,9,2032,8,36,203209,2032),
+('2032-09-09',203237,9,2032,9,36,203209,2032),
+('2032-09-10',203237,9,2032,10,36,203209,2032),
+('2032-09-11',203237,9,2032,11,36,203209,2032),
+('2032-09-12',203238,9,2032,12,37,203209,2032),
+('2032-09-13',203238,9,2032,13,37,203209,2032),
+('2032-09-14',203238,9,2032,14,37,203209,2032),
+('2032-09-15',203238,9,2032,15,37,203209,2032),
+('2032-09-16',203238,9,2032,16,37,203209,2032),
+('2032-09-17',203238,9,2032,17,37,203209,2032),
+('2032-09-18',203238,9,2032,18,37,203209,2032),
+('2032-09-19',203239,9,2032,19,38,203209,2032),
+('2032-09-20',203239,9,2032,20,38,203209,2032),
+('2032-09-21',203239,9,2032,21,38,203209,2032),
+('2032-09-22',203239,9,2032,22,38,203209,2032),
+('2032-09-23',203239,9,2032,23,38,203209,2032),
+('2032-09-24',203239,9,2032,24,38,203209,2032),
+('2032-09-25',203239,9,2032,25,38,203209,2032),
+('2032-09-26',203240,9,2032,26,39,203209,2032),
+('2032-09-27',203240,9,2032,27,39,203209,2032),
+('2032-09-28',203240,9,2032,28,39,203209,2032),
+('2032-09-29',203240,9,2032,29,39,203209,2032),
+('2032-09-30',203240,9,2032,30,39,203209,2032),
+('2032-10-01',203240,10,2032,1,39,203210,2032),
+('2032-10-02',203240,10,2032,2,39,203210,2032),
+('2032-10-03',203241,10,2032,3,40,203210,2032),
+('2032-10-04',203241,10,2032,4,40,203210,2032),
+('2032-10-05',203241,10,2032,5,40,203210,2032),
+('2032-10-06',203241,10,2032,6,40,203210,2032),
+('2032-10-07',203241,10,2032,7,40,203210,2032),
+('2032-10-08',203241,10,2032,8,40,203210,2032),
+('2032-10-09',203241,10,2032,9,40,203210,2032),
+('2032-10-10',203242,10,2032,10,41,203210,2032),
+('2032-10-11',203242,10,2032,11,41,203210,2032),
+('2032-10-12',203242,10,2032,12,41,203210,2032),
+('2032-10-13',203242,10,2032,13,41,203210,2032),
+('2032-10-14',203242,10,2032,14,41,203210,2032),
+('2032-10-15',203242,10,2032,15,41,203210,2032),
+('2032-10-16',203242,10,2032,16,41,203210,2032),
+('2032-10-17',203243,10,2032,17,42,203210,2032),
+('2032-10-18',203243,10,2032,18,42,203210,2032),
+('2032-10-19',203243,10,2032,19,42,203210,2032),
+('2032-10-20',203243,10,2032,20,42,203210,2032),
+('2032-10-21',203243,10,2032,21,42,203210,2032),
+('2032-10-22',203243,10,2032,22,42,203210,2032),
+('2032-10-23',203243,10,2032,23,42,203210,2032),
+('2032-10-24',203244,10,2032,24,43,203210,2032),
+('2032-10-25',203244,10,2032,25,43,203210,2032),
+('2032-10-26',203244,10,2032,26,43,203210,2032),
+('2032-10-27',203244,10,2032,27,43,203210,2032),
+('2032-10-28',203244,10,2032,28,43,203210,2032),
+('2032-10-29',203244,10,2032,29,43,203210,2032),
+('2032-10-30',203244,10,2032,30,43,203210,2032),
+('2032-10-31',203245,10,2032,31,44,203210,2032),
+('2032-11-01',203245,11,2032,1,44,203211,2032),
+('2032-11-02',203245,11,2032,2,44,203211,2032),
+('2032-11-03',203245,11,2032,3,44,203211,2032),
+('2032-11-04',203245,11,2032,4,44,203211,2032),
+('2032-11-05',203245,11,2032,5,44,203211,2032),
+('2032-11-06',203245,11,2032,6,44,203211,2032),
+('2032-11-07',203246,11,2032,7,45,203211,2032),
+('2032-11-08',203246,11,2032,8,45,203211,2032),
+('2032-11-09',203246,11,2032,9,45,203211,2032),
+('2032-11-10',203246,11,2032,10,45,203211,2032),
+('2032-11-11',203246,11,2032,11,45,203211,2032),
+('2032-11-12',203246,11,2032,12,45,203211,2032),
+('2032-11-13',203246,11,2032,13,45,203211,2032),
+('2032-11-14',203247,11,2032,14,46,203211,2032),
+('2032-11-15',203247,11,2032,15,46,203211,2032),
+('2032-11-16',203247,11,2032,16,46,203211,2032),
+('2032-11-17',203247,11,2032,17,46,203211,2032),
+('2032-11-18',203247,11,2032,18,46,203211,2032),
+('2032-11-19',203247,11,2032,19,46,203211,2032),
+('2032-11-20',203247,11,2032,20,46,203211,2032),
+('2032-11-21',203248,11,2032,21,47,203211,2032),
+('2032-11-22',203248,11,2032,22,47,203211,2032),
+('2032-11-23',203248,11,2032,23,47,203211,2032),
+('2032-11-24',203248,11,2032,24,47,203211,2032),
+('2032-11-25',203248,11,2032,25,47,203211,2032),
+('2032-11-26',203248,11,2032,26,47,203211,2032),
+('2032-11-27',203248,11,2032,27,47,203211,2032),
+('2032-11-28',203249,11,2032,28,48,203211,2032),
+('2032-11-29',203249,11,2032,29,48,203211,2032),
+('2032-11-30',203249,11,2032,30,48,203211,2032),
+('2032-12-01',203249,12,2032,1,48,203212,2033),
+('2032-12-02',203249,12,2032,2,48,203212,2033),
+('2032-12-03',203249,12,2032,3,48,203212,2033),
+('2032-12-04',203249,12,2032,4,48,203212,2033),
+('2032-12-05',203250,12,2032,5,49,203212,2033),
+('2032-12-06',203250,12,2032,6,49,203212,2033),
+('2032-12-07',203250,12,2032,7,49,203212,2033),
+('2032-12-08',203250,12,2032,8,49,203212,2033),
+('2032-12-09',203250,12,2032,9,49,203212,2033),
+('2032-12-10',203250,12,2032,10,49,203212,2033),
+('2032-12-11',203250,12,2032,11,49,203212,2033),
+('2032-12-12',203251,12,2032,12,50,203212,2033),
+('2032-12-13',203251,12,2032,13,50,203212,2033),
+('2032-12-14',203251,12,2032,14,50,203212,2033),
+('2032-12-15',203251,12,2032,15,50,203212,2033),
+('2032-12-16',203251,12,2032,16,50,203212,2033),
+('2032-12-17',203251,12,2032,17,50,203212,2033),
+('2032-12-18',203251,12,2032,18,50,203212,2033),
+('2032-12-19',203252,12,2032,19,51,203212,2033),
+('2032-12-20',203252,12,2032,20,51,203212,2033),
+('2032-12-21',203252,12,2032,21,51,203212,2033),
+('2032-12-22',203252,12,2032,22,51,203212,2033),
+('2032-12-23',203252,12,2032,23,51,203212,2033),
+('2032-12-24',203252,12,2032,24,51,203212,2033),
+('2032-12-25',203252,12,2032,25,51,203212,2033),
+('2032-12-26',203253,12,2032,26,52,203212,2033),
+('2032-12-27',203253,12,2032,27,52,203212,2033),
+('2032-12-28',203253,12,2032,28,52,203212,2033),
+('2032-12-29',203253,12,2032,29,52,203212,2033),
+('2032-12-30',203253,12,2032,30,52,203212,2033),
+('2032-12-31',203253,12,2032,31,52,203212,2033),
+('2033-01-01',203353,1,2033,1,52,203301,2033),
+('2033-01-02',203354,1,2033,2,1,203301,2033),
+('2033-01-03',203301,1,2033,3,1,203301,2033),
+('2033-01-04',203301,1,2033,4,1,203301,2033),
+('2033-01-05',203301,1,2033,5,1,203301,2033),
+('2033-01-06',203301,1,2033,6,1,203301,2033),
+('2033-01-07',203301,1,2033,7,1,203301,2033),
+('2033-01-08',203301,1,2033,8,1,203301,2033),
+('2033-01-09',203302,1,2033,9,2,203301,2033),
+('2033-01-10',203302,1,2033,10,2,203301,2033),
+('2033-01-11',203302,1,2033,11,2,203301,2033),
+('2033-01-12',203302,1,2033,12,2,203301,2033),
+('2033-01-13',203302,1,2033,13,2,203301,2033),
+('2033-01-14',203302,1,2033,14,2,203301,2033),
+('2033-01-15',203302,1,2033,15,2,203301,2033),
+('2033-01-16',203303,1,2033,16,3,203301,2033),
+('2033-01-17',203303,1,2033,17,3,203301,2033),
+('2033-01-18',203303,1,2033,18,3,203301,2033),
+('2033-01-19',203303,1,2033,19,3,203301,2033),
+('2033-01-20',203303,1,2033,20,3,203301,2033),
+('2033-01-21',203303,1,2033,21,3,203301,2033),
+('2033-01-22',203303,1,2033,22,3,203301,2033),
+('2033-01-23',203304,1,2033,23,4,203301,2033),
+('2033-01-24',203304,1,2033,24,4,203301,2033),
+('2033-01-25',203304,1,2033,25,4,203301,2033),
+('2033-01-26',203304,1,2033,26,4,203301,2033),
+('2033-01-27',203304,1,2033,27,4,203301,2033),
+('2033-01-28',203304,1,2033,28,4,203301,2033),
+('2033-01-29',203304,1,2033,29,4,203301,2033),
+('2033-01-30',203305,1,2033,30,5,203301,2033),
+('2033-01-31',203305,1,2033,31,5,203301,2033),
+('2033-02-01',203305,2,2033,1,5,203302,2033),
+('2033-02-02',203305,2,2033,2,5,203302,2033),
+('2033-02-03',203305,2,2033,3,5,203302,2033),
+('2033-02-04',203305,2,2033,4,5,203302,2033),
+('2033-02-05',203305,2,2033,5,5,203302,2033),
+('2033-02-06',203306,2,2033,6,6,203302,2033),
+('2033-02-07',203306,2,2033,7,6,203302,2033),
+('2033-02-08',203306,2,2033,8,6,203302,2033),
+('2033-02-09',203306,2,2033,9,6,203302,2033),
+('2033-02-10',203306,2,2033,10,6,203302,2033),
+('2033-02-11',203306,2,2033,11,6,203302,2033),
+('2033-02-12',203306,2,2033,12,6,203302,2033),
+('2033-02-13',203307,2,2033,13,7,203302,2033),
+('2033-02-14',203307,2,2033,14,7,203302,2033),
+('2033-02-15',203307,2,2033,15,7,203302,2033),
+('2033-02-16',203307,2,2033,16,7,203302,2033),
+('2033-02-17',203307,2,2033,17,7,203302,2033),
+('2033-02-18',203307,2,2033,18,7,203302,2033),
+('2033-02-19',203307,2,2033,19,7,203302,2033),
+('2033-02-20',203308,2,2033,20,8,203302,2033),
+('2033-02-21',203308,2,2033,21,8,203302,2033),
+('2033-02-22',203308,2,2033,22,8,203302,2033),
+('2033-02-23',203308,2,2033,23,8,203302,2033),
+('2033-02-24',203308,2,2033,24,8,203302,2033),
+('2033-02-25',203308,2,2033,25,8,203302,2033),
+('2033-02-26',203308,2,2033,26,8,203302,2033),
+('2033-02-27',203309,2,2033,27,9,203302,2033),
+('2033-02-28',203309,2,2033,28,9,203302,2033),
+('2033-03-01',203309,3,2033,1,9,203303,2033),
+('2033-03-02',203309,3,2033,2,9,203303,2033),
+('2033-03-03',203309,3,2033,3,9,203303,2033),
+('2033-03-04',203309,3,2033,4,9,203303,2033),
+('2033-03-05',203309,3,2033,5,9,203303,2033),
+('2033-03-06',203310,3,2033,6,10,203303,2033),
+('2033-03-07',203310,3,2033,7,10,203303,2033),
+('2033-03-08',203310,3,2033,8,10,203303,2033),
+('2033-03-09',203310,3,2033,9,10,203303,2033),
+('2033-03-10',203310,3,2033,10,10,203303,2033),
+('2033-03-11',203310,3,2033,11,10,203303,2033),
+('2033-03-12',203310,3,2033,12,10,203303,2033),
+('2033-03-13',203311,3,2033,13,11,203303,2033),
+('2033-03-14',203311,3,2033,14,11,203303,2033),
+('2033-03-15',203311,3,2033,15,11,203303,2033),
+('2033-03-16',203311,3,2033,16,11,203303,2033),
+('2033-03-17',203311,3,2033,17,11,203303,2033),
+('2033-03-18',203311,3,2033,18,11,203303,2033),
+('2033-03-19',203311,3,2033,19,11,203303,2033),
+('2033-03-20',203312,3,2033,20,12,203303,2033),
+('2033-03-21',203312,3,2033,21,12,203303,2033),
+('2033-03-22',203312,3,2033,22,12,203303,2033),
+('2033-03-23',203312,3,2033,23,12,203303,2033),
+('2033-03-24',203312,3,2033,24,12,203303,2033),
+('2033-03-25',203312,3,2033,25,12,203303,2033),
+('2033-03-26',203312,3,2033,26,12,203303,2033),
+('2033-03-27',203313,3,2033,27,13,203303,2033),
+('2033-03-28',203313,3,2033,28,13,203303,2033),
+('2033-03-29',203313,3,2033,29,13,203303,2033),
+('2033-03-30',203313,3,2033,30,13,203303,2033),
+('2033-03-31',203313,3,2033,31,13,203303,2033),
+('2033-04-01',203313,4,2033,1,13,203304,2033),
+('2033-04-02',203313,4,2033,2,13,203304,2033),
+('2033-04-03',203314,4,2033,3,14,203304,2033),
+('2033-04-04',203314,4,2033,4,14,203304,2033),
+('2033-04-05',203314,4,2033,5,14,203304,2033),
+('2033-04-06',203314,4,2033,6,14,203304,2033),
+('2033-04-07',203314,4,2033,7,14,203304,2033),
+('2033-04-08',203314,4,2033,8,14,203304,2033),
+('2033-04-09',203314,4,2033,9,14,203304,2033),
+('2033-04-10',203315,4,2033,10,15,203304,2033),
+('2033-04-11',203315,4,2033,11,15,203304,2033),
+('2033-04-12',203315,4,2033,12,15,203304,2033),
+('2033-04-13',203315,4,2033,13,15,203304,2033),
+('2033-04-14',203315,4,2033,14,15,203304,2033),
+('2033-04-15',203315,4,2033,15,15,203304,2033),
+('2033-04-16',203315,4,2033,16,15,203304,2033),
+('2033-04-17',203316,4,2033,17,16,203304,2033),
+('2033-04-18',203316,4,2033,18,16,203304,2033),
+('2033-04-19',203316,4,2033,19,16,203304,2033),
+('2033-04-20',203316,4,2033,20,16,203304,2033),
+('2033-04-21',203316,4,2033,21,16,203304,2033),
+('2033-04-22',203316,4,2033,22,16,203304,2033),
+('2033-04-23',203316,4,2033,23,16,203304,2033),
+('2033-04-24',203317,4,2033,24,17,203304,2033),
+('2033-04-25',203317,4,2033,25,17,203304,2033),
+('2033-04-26',203317,4,2033,26,17,203304,2033),
+('2033-04-27',203317,4,2033,27,17,203304,2033),
+('2033-04-28',203317,4,2033,28,17,203304,2033),
+('2033-04-29',203317,4,2033,29,17,203304,2033),
+('2033-04-30',203317,4,2033,30,17,203304,2033),
+('2033-05-01',203318,5,2033,1,18,203305,2033),
+('2033-05-02',203318,5,2033,2,18,203305,2033),
+('2033-05-03',203318,5,2033,3,18,203305,2033),
+('2033-05-04',203318,5,2033,4,18,203305,2033),
+('2033-05-05',203318,5,2033,5,18,203305,2033),
+('2033-05-06',203318,5,2033,6,18,203305,2033),
+('2033-05-07',203318,5,2033,7,18,203305,2033),
+('2033-05-08',203319,5,2033,8,19,203305,2033),
+('2033-05-09',203319,5,2033,9,19,203305,2033),
+('2033-05-10',203319,5,2033,10,19,203305,2033),
+('2033-05-11',203319,5,2033,11,19,203305,2033),
+('2033-05-12',203319,5,2033,12,19,203305,2033),
+('2033-05-13',203319,5,2033,13,19,203305,2033),
+('2033-05-14',203319,5,2033,14,19,203305,2033),
+('2033-05-15',203320,5,2033,15,20,203305,2033),
+('2033-05-16',203320,5,2033,16,20,203305,2033),
+('2033-05-17',203320,5,2033,17,20,203305,2033),
+('2033-05-18',203320,5,2033,18,20,203305,2033),
+('2033-05-19',203320,5,2033,19,20,203305,2033),
+('2033-05-20',203320,5,2033,20,20,203305,2033),
+('2033-05-21',203320,5,2033,21,20,203305,2033),
+('2033-05-22',203321,5,2033,22,21,203305,2033),
+('2033-05-23',203321,5,2033,23,21,203305,2033),
+('2033-05-24',203321,5,2033,24,21,203305,2033),
+('2033-05-25',203321,5,2033,25,21,203305,2033),
+('2033-05-26',203321,5,2033,26,21,203305,2033),
+('2033-05-27',203321,5,2033,27,21,203305,2033),
+('2033-05-28',203321,5,2033,28,21,203305,2033),
+('2033-05-29',203322,5,2033,29,22,203305,2033),
+('2033-05-30',203322,5,2033,30,22,203305,2033),
+('2033-05-31',203322,5,2033,31,22,203305,2033),
+('2033-06-01',203322,6,2033,1,22,203306,2033),
+('2033-06-02',203322,6,2033,2,22,203306,2033),
+('2033-06-03',203322,6,2033,3,22,203306,2033),
+('2033-06-04',203322,6,2033,4,22,203306,2033),
+('2033-06-05',203323,6,2033,5,23,203306,2033),
+('2033-06-06',203323,6,2033,6,23,203306,2033),
+('2033-06-07',203323,6,2033,7,23,203306,2033),
+('2033-06-08',203323,6,2033,8,23,203306,2033),
+('2033-06-09',203323,6,2033,9,23,203306,2033),
+('2033-06-10',203323,6,2033,10,23,203306,2033),
+('2033-06-11',203323,6,2033,11,23,203306,2033),
+('2033-06-12',203324,6,2033,12,24,203306,2033),
+('2033-06-13',203324,6,2033,13,24,203306,2033),
+('2033-06-14',203324,6,2033,14,24,203306,2033),
+('2033-06-15',203324,6,2033,15,24,203306,2033),
+('2033-06-16',203324,6,2033,16,24,203306,2033),
+('2033-06-17',203324,6,2033,17,24,203306,2033),
+('2033-06-18',203324,6,2033,18,24,203306,2033),
+('2033-06-19',203325,6,2033,19,25,203306,2033),
+('2033-06-20',203325,6,2033,20,25,203306,2033),
+('2033-06-21',203325,6,2033,21,25,203306,2033),
+('2033-06-22',203325,6,2033,22,25,203306,2033),
+('2033-06-23',203325,6,2033,23,25,203306,2033),
+('2033-06-24',203325,6,2033,24,25,203306,2033),
+('2033-06-25',203325,6,2033,25,25,203306,2033),
+('2033-06-26',203326,6,2033,26,26,203306,2033),
+('2033-06-27',203326,6,2033,27,26,203306,2033),
+('2033-06-28',203326,6,2033,28,26,203306,2033),
+('2033-06-29',203326,6,2033,29,26,203306,2033),
+('2033-06-30',203326,6,2033,30,26,203306,2033),
+('2033-07-01',203326,7,2033,1,26,203307,2033),
+('2033-07-02',203326,7,2033,2,26,203307,2033),
+('2033-07-03',203327,7,2033,3,27,203307,2033),
+('2033-07-04',203327,7,2033,4,27,203307,2033),
+('2033-07-05',203327,7,2033,5,27,203307,2033),
+('2033-07-06',203327,7,2033,6,27,203307,2033),
+('2033-07-07',203327,7,2033,7,27,203307,2033),
+('2033-07-08',203327,7,2033,8,27,203307,2033),
+('2033-07-09',203327,7,2033,9,27,203307,2033),
+('2033-07-10',203328,7,2033,10,28,203307,2033),
+('2033-07-11',203328,7,2033,11,28,203307,2033),
+('2033-07-12',203328,7,2033,12,28,203307,2033),
+('2033-07-13',203328,7,2033,13,28,203307,2033),
+('2033-07-14',203328,7,2033,14,28,203307,2033),
+('2033-07-15',203328,7,2033,15,28,203307,2033),
+('2033-07-16',203328,7,2033,16,28,203307,2033),
+('2033-07-17',203329,7,2033,17,29,203307,2033),
+('2033-07-18',203329,7,2033,18,29,203307,2033),
+('2033-07-19',203329,7,2033,19,29,203307,2033),
+('2033-07-20',203329,7,2033,20,29,203307,2033),
+('2033-07-21',203329,7,2033,21,29,203307,2033),
+('2033-07-22',203329,7,2033,22,29,203307,2033),
+('2033-07-23',203329,7,2033,23,29,203307,2033),
+('2033-07-24',203330,7,2033,24,30,203307,2033),
+('2033-07-25',203330,7,2033,25,30,203307,2033),
+('2033-07-26',203330,7,2033,26,30,203307,2033),
+('2033-07-27',203330,7,2033,27,30,203307,2033),
+('2033-07-28',203330,7,2033,28,30,203307,2033),
+('2033-07-29',203330,7,2033,29,30,203307,2033),
+('2033-07-30',203330,7,2033,30,30,203307,2033),
+('2033-07-31',203331,7,2033,31,31,203307,2033),
+('2033-08-01',203331,8,2033,1,31,203308,2033),
+('2033-08-02',203331,8,2033,2,31,203308,2033),
+('2033-08-03',203331,8,2033,3,31,203308,2033),
+('2033-08-04',203331,8,2033,4,31,203308,2033),
+('2033-08-05',203331,8,2033,5,31,203308,2033),
+('2033-08-06',203331,8,2033,6,31,203308,2033),
+('2033-08-07',203332,8,2033,7,32,203308,2033),
+('2033-08-08',203332,8,2033,8,32,203308,2033),
+('2033-08-09',203332,8,2033,9,32,203308,2033),
+('2033-08-10',203332,8,2033,10,32,203308,2033),
+('2033-08-11',203332,8,2033,11,32,203308,2033),
+('2033-08-12',203332,8,2033,12,32,203308,2033),
+('2033-08-13',203332,8,2033,13,32,203308,2033),
+('2033-08-14',203333,8,2033,14,33,203308,2033),
+('2033-08-15',203333,8,2033,15,33,203308,2033),
+('2033-08-16',203333,8,2033,16,33,203308,2033),
+('2033-08-17',203333,8,2033,17,33,203308,2033),
+('2033-08-18',203333,8,2033,18,33,203308,2033),
+('2033-08-19',203333,8,2033,19,33,203308,2033),
+('2033-08-20',203333,8,2033,20,33,203308,2033),
+('2033-08-21',203334,8,2033,21,34,203308,2033),
+('2033-08-22',203334,8,2033,22,34,203308,2033),
+('2033-08-23',203334,8,2033,23,34,203308,2033),
+('2033-08-24',203334,8,2033,24,34,203308,2033),
+('2033-08-25',203334,8,2033,25,34,203308,2033),
+('2033-08-26',203334,8,2033,26,34,203308,2033),
+('2033-08-27',203334,8,2033,27,34,203308,2033),
+('2033-08-28',203335,8,2033,28,35,203308,2033),
+('2033-08-29',203335,8,2033,29,35,203308,2033),
+('2033-08-30',203335,8,2033,30,35,203308,2033),
+('2033-08-31',203335,8,2033,31,35,203308,2033),
+('2033-09-01',203335,9,2033,1,35,203309,2033),
+('2033-09-02',203335,9,2033,2,35,203309,2033),
+('2033-09-03',203335,9,2033,3,35,203309,2033),
+('2033-09-04',203336,9,2033,4,36,203309,2033),
+('2033-09-05',203336,9,2033,5,36,203309,2033),
+('2033-09-06',203336,9,2033,6,36,203309,2033),
+('2033-09-07',203336,9,2033,7,36,203309,2033),
+('2033-09-08',203336,9,2033,8,36,203309,2033),
+('2033-09-09',203336,9,2033,9,36,203309,2033),
+('2033-09-10',203336,9,2033,10,36,203309,2033),
+('2033-09-11',203337,9,2033,11,37,203309,2033),
+('2033-09-12',203337,9,2033,12,37,203309,2033),
+('2033-09-13',203337,9,2033,13,37,203309,2033),
+('2033-09-14',203337,9,2033,14,37,203309,2033),
+('2033-09-15',203337,9,2033,15,37,203309,2033),
+('2033-09-16',203337,9,2033,16,37,203309,2033),
+('2033-09-17',203337,9,2033,17,37,203309,2033),
+('2033-09-18',203338,9,2033,18,38,203309,2033),
+('2033-09-19',203338,9,2033,19,38,203309,2033),
+('2033-09-20',203338,9,2033,20,38,203309,2033),
+('2033-09-21',203338,9,2033,21,38,203309,2033),
+('2033-09-22',203338,9,2033,22,38,203309,2033),
+('2033-09-23',203338,9,2033,23,38,203309,2033),
+('2033-09-24',203338,9,2033,24,38,203309,2033),
+('2033-09-25',203339,9,2033,25,39,203309,2033),
+('2033-09-26',203339,9,2033,26,39,203309,2033),
+('2033-09-27',203339,9,2033,27,39,203309,2033),
+('2033-09-28',203339,9,2033,28,39,203309,2033),
+('2033-09-29',203339,9,2033,29,39,203309,2033),
+('2033-09-30',203339,9,2033,30,39,203309,2033),
+('2033-10-01',203339,10,2033,1,39,203310,2033),
+('2033-10-02',203340,10,2033,2,40,203310,2033),
+('2033-10-03',203340,10,2033,3,40,203310,2033),
+('2033-10-04',203340,10,2033,4,40,203310,2033),
+('2033-10-05',203340,10,2033,5,40,203310,2033),
+('2033-10-06',203340,10,2033,6,40,203310,2033),
+('2033-10-07',203340,10,2033,7,40,203310,2033),
+('2033-10-08',203340,10,2033,8,40,203310,2033),
+('2033-10-09',203341,10,2033,9,41,203310,2033),
+('2033-10-10',203341,10,2033,10,41,203310,2033),
+('2033-10-11',203341,10,2033,11,41,203310,2033),
+('2033-10-12',203341,10,2033,12,41,203310,2033),
+('2033-10-13',203341,10,2033,13,41,203310,2033),
+('2033-10-14',203341,10,2033,14,41,203310,2033),
+('2033-10-15',203341,10,2033,15,41,203310,2033),
+('2033-10-16',203342,10,2033,16,42,203310,2033),
+('2033-10-17',203342,10,2033,17,42,203310,2033),
+('2033-10-18',203342,10,2033,18,42,203310,2033),
+('2033-10-19',203342,10,2033,19,42,203310,2033),
+('2033-10-20',203342,10,2033,20,42,203310,2033),
+('2033-10-21',203342,10,2033,21,42,203310,2033),
+('2033-10-22',203342,10,2033,22,42,203310,2033),
+('2033-10-23',203343,10,2033,23,43,203310,2033),
+('2033-10-24',203343,10,2033,24,43,203310,2033),
+('2033-10-25',203343,10,2033,25,43,203310,2033),
+('2033-10-26',203343,10,2033,26,43,203310,2033),
+('2033-10-27',203343,10,2033,27,43,203310,2033),
+('2033-10-28',203343,10,2033,28,43,203310,2033),
+('2033-10-29',203343,10,2033,29,43,203310,2033),
+('2033-10-30',203344,10,2033,30,44,203310,2033),
+('2033-10-31',203344,10,2033,31,44,203310,2033),
+('2033-11-01',203344,11,2033,1,44,203311,2033),
+('2033-11-02',203344,11,2033,2,44,203311,2033),
+('2033-11-03',203344,11,2033,3,44,203311,2033),
+('2033-11-04',203344,11,2033,4,44,203311,2033),
+('2033-11-05',203344,11,2033,5,44,203311,2033),
+('2033-11-06',203345,11,2033,6,45,203311,2033),
+('2033-11-07',203345,11,2033,7,45,203311,2033),
+('2033-11-08',203345,11,2033,8,45,203311,2033),
+('2033-11-09',203345,11,2033,9,45,203311,2033),
+('2033-11-10',203345,11,2033,10,45,203311,2033),
+('2033-11-11',203345,11,2033,11,45,203311,2033),
+('2033-11-12',203345,11,2033,12,45,203311,2033),
+('2033-11-13',203346,11,2033,13,46,203311,2033),
+('2033-11-14',203346,11,2033,14,46,203311,2033),
+('2033-11-15',203346,11,2033,15,46,203311,2033),
+('2033-11-16',203346,11,2033,16,46,203311,2033),
+('2033-11-17',203346,11,2033,17,46,203311,2033),
+('2033-11-18',203346,11,2033,18,46,203311,2033),
+('2033-11-19',203346,11,2033,19,46,203311,2033),
+('2033-11-20',203347,11,2033,20,47,203311,2033),
+('2033-11-21',203347,11,2033,21,47,203311,2033),
+('2033-11-22',203347,11,2033,22,47,203311,2033),
+('2033-11-23',203347,11,2033,23,47,203311,2033),
+('2033-11-24',203347,11,2033,24,47,203311,2033),
+('2033-11-25',203347,11,2033,25,47,203311,2033),
+('2033-11-26',203347,11,2033,26,47,203311,2033),
+('2033-11-27',203348,11,2033,27,48,203311,2033),
+('2033-11-28',203348,11,2033,28,48,203311,2033),
+('2033-11-29',203348,11,2033,29,48,203311,2033),
+('2033-11-30',203348,11,2033,30,48,203311,2033),
+('2033-12-01',203348,12,2033,1,48,203312,2034),
+('2033-12-02',203348,12,2033,2,48,203312,2034),
+('2033-12-03',203348,12,2033,3,48,203312,2034),
+('2033-12-04',203349,12,2033,4,49,203312,2034),
+('2033-12-05',203349,12,2033,5,49,203312,2034),
+('2033-12-06',203349,12,2033,6,49,203312,2034),
+('2033-12-07',203349,12,2033,7,49,203312,2034),
+('2033-12-08',203349,12,2033,8,49,203312,2034),
+('2033-12-09',203349,12,2033,9,49,203312,2034),
+('2033-12-10',203349,12,2033,10,49,203312,2034),
+('2033-12-11',203350,12,2033,11,50,203312,2034),
+('2033-12-12',203350,12,2033,12,50,203312,2034),
+('2033-12-13',203350,12,2033,13,50,203312,2034),
+('2033-12-14',203350,12,2033,14,50,203312,2034),
+('2033-12-15',203350,12,2033,15,50,203312,2034),
+('2033-12-16',203350,12,2033,16,50,203312,2034),
+('2033-12-17',203350,12,2033,17,50,203312,2034),
+('2033-12-18',203351,12,2033,18,51,203312,2034),
+('2033-12-19',203351,12,2033,19,51,203312,2034),
+('2033-12-20',203351,12,2033,20,51,203312,2034),
+('2033-12-21',203351,12,2033,21,51,203312,2034),
+('2033-12-22',203351,12,2033,22,51,203312,2034),
+('2033-12-23',203351,12,2033,23,51,203312,2034),
+('2033-12-24',203351,12,2033,24,51,203312,2034),
+('2033-12-25',203352,12,2033,25,52,203312,2034),
+('2033-12-26',203352,12,2033,26,52,203312,2034),
+('2033-12-27',203352,12,2033,27,52,203312,2034),
+('2033-12-28',203352,12,2033,28,52,203312,2034),
+('2033-12-29',203352,12,2033,29,52,203312,2034),
+('2033-12-30',203352,12,2033,30,52,203312,2034),
+('2033-12-31',203352,12,2033,31,52,203312,2034),
+('2034-01-01',203453,1,2034,1,1,203401,2034),
+('2034-01-02',203401,1,2034,2,1,203401,2034),
+('2034-01-03',203401,1,2034,3,1,203401,2034),
+('2034-01-04',203401,1,2034,4,1,203401,2034),
+('2034-01-05',203401,1,2034,5,1,203401,2034),
+('2034-01-06',203401,1,2034,6,1,203401,2034),
+('2034-01-07',203401,1,2034,7,1,203401,2034),
+('2034-01-08',203402,1,2034,8,2,203401,2034),
+('2034-01-09',203402,1,2034,9,2,203401,2034),
+('2034-01-10',203402,1,2034,10,2,203401,2034),
+('2034-01-11',203402,1,2034,11,2,203401,2034),
+('2034-01-12',203402,1,2034,12,2,203401,2034),
+('2034-01-13',203402,1,2034,13,2,203401,2034),
+('2034-01-14',203402,1,2034,14,2,203401,2034),
+('2034-01-15',203403,1,2034,15,3,203401,2034),
+('2034-01-16',203403,1,2034,16,3,203401,2034),
+('2034-01-17',203403,1,2034,17,3,203401,2034),
+('2034-01-18',203403,1,2034,18,3,203401,2034),
+('2034-01-19',203403,1,2034,19,3,203401,2034),
+('2034-01-20',203403,1,2034,20,3,203401,2034),
+('2034-01-21',203403,1,2034,21,3,203401,2034),
+('2034-01-22',203404,1,2034,22,4,203401,2034),
+('2034-01-23',203404,1,2034,23,4,203401,2034),
+('2034-01-24',203404,1,2034,24,4,203401,2034),
+('2034-01-25',203404,1,2034,25,4,203401,2034),
+('2034-01-26',203404,1,2034,26,4,203401,2034),
+('2034-01-27',203404,1,2034,27,4,203401,2034),
+('2034-01-28',203404,1,2034,28,4,203401,2034),
+('2034-01-29',203405,1,2034,29,5,203401,2034),
+('2034-01-30',203405,1,2034,30,5,203401,2034),
+('2034-01-31',203405,1,2034,31,5,203401,2034),
+('2034-02-01',203405,2,2034,1,5,203402,2034),
+('2034-02-02',203405,2,2034,2,5,203402,2034),
+('2034-02-03',203405,2,2034,3,5,203402,2034),
+('2034-02-04',203405,2,2034,4,5,203402,2034),
+('2034-02-05',203406,2,2034,5,6,203402,2034),
+('2034-02-06',203406,2,2034,6,6,203402,2034),
+('2034-02-07',203406,2,2034,7,6,203402,2034),
+('2034-02-08',203406,2,2034,8,6,203402,2034),
+('2034-02-09',203406,2,2034,9,6,203402,2034),
+('2034-02-10',203406,2,2034,10,6,203402,2034),
+('2034-02-11',203406,2,2034,11,6,203402,2034),
+('2034-02-12',203407,2,2034,12,7,203402,2034),
+('2034-02-13',203407,2,2034,13,7,203402,2034),
+('2034-02-14',203407,2,2034,14,7,203402,2034),
+('2034-02-15',203407,2,2034,15,7,203402,2034),
+('2034-02-16',203407,2,2034,16,7,203402,2034),
+('2034-02-17',203407,2,2034,17,7,203402,2034),
+('2034-02-18',203407,2,2034,18,7,203402,2034),
+('2034-02-19',203408,2,2034,19,8,203402,2034),
+('2034-02-20',203408,2,2034,20,8,203402,2034),
+('2034-02-21',203408,2,2034,21,8,203402,2034),
+('2034-02-22',203408,2,2034,22,8,203402,2034),
+('2034-02-23',203408,2,2034,23,8,203402,2034),
+('2034-02-24',203408,2,2034,24,8,203402,2034),
+('2034-02-25',203408,2,2034,25,8,203402,2034),
+('2034-02-26',203409,2,2034,26,9,203402,2034),
+('2034-02-27',203409,2,2034,27,9,203402,2034),
+('2034-02-28',203409,2,2034,28,9,203402,2034),
+('2034-03-01',203409,3,2034,1,9,203403,2034),
+('2034-03-02',203409,3,2034,2,9,203403,2034),
+('2034-03-03',203409,3,2034,3,9,203403,2034),
+('2034-03-04',203409,3,2034,4,9,203403,2034),
+('2034-03-05',203410,3,2034,5,10,203403,2034),
+('2034-03-06',203410,3,2034,6,10,203403,2034),
+('2034-03-07',203410,3,2034,7,10,203403,2034),
+('2034-03-08',203410,3,2034,8,10,203403,2034),
+('2034-03-09',203410,3,2034,9,10,203403,2034),
+('2034-03-10',203410,3,2034,10,10,203403,2034),
+('2034-03-11',203410,3,2034,11,10,203403,2034),
+('2034-03-12',203411,3,2034,12,11,203403,2034),
+('2034-03-13',203411,3,2034,13,11,203403,2034),
+('2034-03-14',203411,3,2034,14,11,203403,2034),
+('2034-03-15',203411,3,2034,15,11,203403,2034),
+('2034-03-16',203411,3,2034,16,11,203403,2034),
+('2034-03-17',203411,3,2034,17,11,203403,2034),
+('2034-03-18',203411,3,2034,18,11,203403,2034),
+('2034-03-19',203412,3,2034,19,12,203403,2034),
+('2034-03-20',203412,3,2034,20,12,203403,2034),
+('2034-03-21',203412,3,2034,21,12,203403,2034),
+('2034-03-22',203412,3,2034,22,12,203403,2034),
+('2034-03-23',203412,3,2034,23,12,203403,2034),
+('2034-03-24',203412,3,2034,24,12,203403,2034),
+('2034-03-25',203412,3,2034,25,12,203403,2034),
+('2034-03-26',203413,3,2034,26,13,203403,2034),
+('2034-03-27',203413,3,2034,27,13,203403,2034),
+('2034-03-28',203413,3,2034,28,13,203403,2034),
+('2034-03-29',203413,3,2034,29,13,203403,2034),
+('2034-03-30',203413,3,2034,30,13,203403,2034),
+('2034-03-31',203413,3,2034,31,13,203403,2034),
+('2034-04-01',203413,4,2034,1,13,203404,2034),
+('2034-04-02',203414,4,2034,2,14,203404,2034),
+('2034-04-03',203414,4,2034,3,14,203404,2034),
+('2034-04-04',203414,4,2034,4,14,203404,2034),
+('2034-04-05',203414,4,2034,5,14,203404,2034),
+('2034-04-06',203414,4,2034,6,14,203404,2034),
+('2034-04-07',203414,4,2034,7,14,203404,2034),
+('2034-04-08',203414,4,2034,8,14,203404,2034),
+('2034-04-09',203415,4,2034,9,15,203404,2034),
+('2034-04-10',203415,4,2034,10,15,203404,2034),
+('2034-04-11',203415,4,2034,11,15,203404,2034),
+('2034-04-12',203415,4,2034,12,15,203404,2034),
+('2034-04-13',203415,4,2034,13,15,203404,2034),
+('2034-04-14',203415,4,2034,14,15,203404,2034),
+('2034-04-15',203415,4,2034,15,15,203404,2034),
+('2034-04-16',203416,4,2034,16,16,203404,2034),
+('2034-04-17',203416,4,2034,17,16,203404,2034),
+('2034-04-18',203416,4,2034,18,16,203404,2034),
+('2034-04-19',203416,4,2034,19,16,203404,2034),
+('2034-04-20',203416,4,2034,20,16,203404,2034),
+('2034-04-21',203416,4,2034,21,16,203404,2034),
+('2034-04-22',203416,4,2034,22,16,203404,2034),
+('2034-04-23',203417,4,2034,23,17,203404,2034),
+('2034-04-24',203417,4,2034,24,17,203404,2034),
+('2034-04-25',203417,4,2034,25,17,203404,2034),
+('2034-04-26',203417,4,2034,26,17,203404,2034),
+('2034-04-27',203417,4,2034,27,17,203404,2034),
+('2034-04-28',203417,4,2034,28,17,203404,2034),
+('2034-04-29',203417,4,2034,29,17,203404,2034),
+('2034-04-30',203418,4,2034,30,18,203404,2034),
+('2034-05-01',203418,5,2034,1,18,203405,2034),
+('2034-05-02',203418,5,2034,2,18,203405,2034),
+('2034-05-03',203418,5,2034,3,18,203405,2034),
+('2034-05-04',203418,5,2034,4,18,203405,2034),
+('2034-05-05',203418,5,2034,5,18,203405,2034),
+('2034-05-06',203418,5,2034,6,18,203405,2034),
+('2034-05-07',203419,5,2034,7,19,203405,2034),
+('2034-05-08',203419,5,2034,8,19,203405,2034),
+('2034-05-09',203419,5,2034,9,19,203405,2034),
+('2034-05-10',203419,5,2034,10,19,203405,2034),
+('2034-05-11',203419,5,2034,11,19,203405,2034),
+('2034-05-12',203419,5,2034,12,19,203405,2034),
+('2034-05-13',203419,5,2034,13,19,203405,2034),
+('2034-05-14',203420,5,2034,14,20,203405,2034),
+('2034-05-15',203420,5,2034,15,20,203405,2034),
+('2034-05-16',203420,5,2034,16,20,203405,2034),
+('2034-05-17',203420,5,2034,17,20,203405,2034),
+('2034-05-18',203420,5,2034,18,20,203405,2034),
+('2034-05-19',203420,5,2034,19,20,203405,2034),
+('2034-05-20',203420,5,2034,20,20,203405,2034),
+('2034-05-21',203421,5,2034,21,21,203405,2034),
+('2034-05-22',203421,5,2034,22,21,203405,2034),
+('2034-05-23',203421,5,2034,23,21,203405,2034),
+('2034-05-24',203421,5,2034,24,21,203405,2034),
+('2034-05-25',203421,5,2034,25,21,203405,2034),
+('2034-05-26',203421,5,2034,26,21,203405,2034),
+('2034-05-27',203421,5,2034,27,21,203405,2034),
+('2034-05-28',203422,5,2034,28,22,203405,2034),
+('2034-05-29',203422,5,2034,29,22,203405,2034),
+('2034-05-30',203422,5,2034,30,22,203405,2034),
+('2034-05-31',203422,5,2034,31,22,203405,2034),
+('2034-06-01',203422,6,2034,1,22,203406,2034),
+('2034-06-02',203422,6,2034,2,22,203406,2034),
+('2034-06-03',203422,6,2034,3,22,203406,2034),
+('2034-06-04',203423,6,2034,4,23,203406,2034),
+('2034-06-05',203423,6,2034,5,23,203406,2034),
+('2034-06-06',203423,6,2034,6,23,203406,2034),
+('2034-06-07',203423,6,2034,7,23,203406,2034),
+('2034-06-08',203423,6,2034,8,23,203406,2034),
+('2034-06-09',203423,6,2034,9,23,203406,2034),
+('2034-06-10',203423,6,2034,10,23,203406,2034),
+('2034-06-11',203424,6,2034,11,24,203406,2034),
+('2034-06-12',203424,6,2034,12,24,203406,2034),
+('2034-06-13',203424,6,2034,13,24,203406,2034),
+('2034-06-14',203424,6,2034,14,24,203406,2034),
+('2034-06-15',203424,6,2034,15,24,203406,2034),
+('2034-06-16',203424,6,2034,16,24,203406,2034),
+('2034-06-17',203424,6,2034,17,24,203406,2034),
+('2034-06-18',203425,6,2034,18,25,203406,2034),
+('2034-06-19',203425,6,2034,19,25,203406,2034),
+('2034-06-20',203425,6,2034,20,25,203406,2034),
+('2034-06-21',203425,6,2034,21,25,203406,2034),
+('2034-06-22',203425,6,2034,22,25,203406,2034),
+('2034-06-23',203425,6,2034,23,25,203406,2034),
+('2034-06-24',203425,6,2034,24,25,203406,2034),
+('2034-06-25',203426,6,2034,25,26,203406,2034),
+('2034-06-26',203426,6,2034,26,26,203406,2034),
+('2034-06-27',203426,6,2034,27,26,203406,2034),
+('2034-06-28',203426,6,2034,28,26,203406,2034),
+('2034-06-29',203426,6,2034,29,26,203406,2034),
+('2034-06-30',203426,6,2034,30,26,203406,2034),
+('2034-07-01',203426,7,2034,1,26,203407,2034),
+('2034-07-02',203427,7,2034,2,27,203407,2034),
+('2034-07-03',203427,7,2034,3,27,203407,2034),
+('2034-07-04',203427,7,2034,4,27,203407,2034),
+('2034-07-05',203427,7,2034,5,27,203407,2034),
+('2034-07-06',203427,7,2034,6,27,203407,2034),
+('2034-07-07',203427,7,2034,7,27,203407,2034),
+('2034-07-08',203427,7,2034,8,27,203407,2034),
+('2034-07-09',203428,7,2034,9,28,203407,2034),
+('2034-07-10',203428,7,2034,10,28,203407,2034),
+('2034-07-11',203428,7,2034,11,28,203407,2034),
+('2034-07-12',203428,7,2034,12,28,203407,2034),
+('2034-07-13',203428,7,2034,13,28,203407,2034),
+('2034-07-14',203428,7,2034,14,28,203407,2034),
+('2034-07-15',203428,7,2034,15,28,203407,2034),
+('2034-07-16',203429,7,2034,16,29,203407,2034),
+('2034-07-17',203429,7,2034,17,29,203407,2034),
+('2034-07-18',203429,7,2034,18,29,203407,2034),
+('2034-07-19',203429,7,2034,19,29,203407,2034),
+('2034-07-20',203429,7,2034,20,29,203407,2034),
+('2034-07-21',203429,7,2034,21,29,203407,2034),
+('2034-07-22',203429,7,2034,22,29,203407,2034),
+('2034-07-23',203430,7,2034,23,30,203407,2034),
+('2034-07-24',203430,7,2034,24,30,203407,2034),
+('2034-07-25',203430,7,2034,25,30,203407,2034),
+('2034-07-26',203430,7,2034,26,30,203407,2034),
+('2034-07-27',203430,7,2034,27,30,203407,2034),
+('2034-07-28',203430,7,2034,28,30,203407,2034),
+('2034-07-29',203430,7,2034,29,30,203407,2034),
+('2034-07-30',203431,7,2034,30,31,203407,2034),
+('2034-07-31',203431,7,2034,31,31,203407,2034),
+('2034-08-01',203431,8,2034,1,31,203408,2034),
+('2034-08-02',203431,8,2034,2,31,203408,2034),
+('2034-08-03',203431,8,2034,3,31,203408,2034),
+('2034-08-04',203431,8,2034,4,31,203408,2034),
+('2034-08-05',203431,8,2034,5,31,203408,2034),
+('2034-08-06',203432,8,2034,6,32,203408,2034),
+('2034-08-07',203432,8,2034,7,32,203408,2034),
+('2034-08-08',203432,8,2034,8,32,203408,2034),
+('2034-08-09',203432,8,2034,9,32,203408,2034),
+('2034-08-10',203432,8,2034,10,32,203408,2034),
+('2034-08-11',203432,8,2034,11,32,203408,2034),
+('2034-08-12',203432,8,2034,12,32,203408,2034),
+('2034-08-13',203433,8,2034,13,33,203408,2034),
+('2034-08-14',203433,8,2034,14,33,203408,2034),
+('2034-08-15',203433,8,2034,15,33,203408,2034),
+('2034-08-16',203433,8,2034,16,33,203408,2034),
+('2034-08-17',203433,8,2034,17,33,203408,2034),
+('2034-08-18',203433,8,2034,18,33,203408,2034),
+('2034-08-19',203433,8,2034,19,33,203408,2034),
+('2034-08-20',203434,8,2034,20,34,203408,2034),
+('2034-08-21',203434,8,2034,21,34,203408,2034),
+('2034-08-22',203434,8,2034,22,34,203408,2034),
+('2034-08-23',203434,8,2034,23,34,203408,2034),
+('2034-08-24',203434,8,2034,24,34,203408,2034),
+('2034-08-25',203434,8,2034,25,34,203408,2034),
+('2034-08-26',203434,8,2034,26,34,203408,2034),
+('2034-08-27',203435,8,2034,27,35,203408,2034),
+('2034-08-28',203435,8,2034,28,35,203408,2034),
+('2034-08-29',203435,8,2034,29,35,203408,2034),
+('2034-08-30',203435,8,2034,30,35,203408,2034),
+('2034-08-31',203435,8,2034,31,35,203408,2034),
+('2034-09-01',203435,9,2034,1,35,203409,2034),
+('2034-09-02',203435,9,2034,2,35,203409,2034),
+('2034-09-03',203436,9,2034,3,36,203409,2034),
+('2034-09-04',203436,9,2034,4,36,203409,2034),
+('2034-09-05',203436,9,2034,5,36,203409,2034),
+('2034-09-06',203436,9,2034,6,36,203409,2034),
+('2034-09-07',203436,9,2034,7,36,203409,2034),
+('2034-09-08',203436,9,2034,8,36,203409,2034),
+('2034-09-09',203436,9,2034,9,36,203409,2034),
+('2034-09-10',203437,9,2034,10,37,203409,2034),
+('2034-09-11',203437,9,2034,11,37,203409,2034),
+('2034-09-12',203437,9,2034,12,37,203409,2034),
+('2034-09-13',203437,9,2034,13,37,203409,2034),
+('2034-09-14',203437,9,2034,14,37,203409,2034),
+('2034-09-15',203437,9,2034,15,37,203409,2034),
+('2034-09-16',203437,9,2034,16,37,203409,2034),
+('2034-09-17',203438,9,2034,17,38,203409,2034),
+('2034-09-18',203438,9,2034,18,38,203409,2034),
+('2034-09-19',203438,9,2034,19,38,203409,2034),
+('2034-09-20',203438,9,2034,20,38,203409,2034),
+('2034-09-21',203438,9,2034,21,38,203409,2034),
+('2034-09-22',203438,9,2034,22,38,203409,2034),
+('2034-09-23',203438,9,2034,23,38,203409,2034),
+('2034-09-24',203439,9,2034,24,39,203409,2034),
+('2034-09-25',203439,9,2034,25,39,203409,2034),
+('2034-09-26',203439,9,2034,26,39,203409,2034),
+('2034-09-27',203439,9,2034,27,39,203409,2034),
+('2034-09-28',203439,9,2034,28,39,203409,2034),
+('2034-09-29',203439,9,2034,29,39,203409,2034),
+('2034-09-30',203439,9,2034,30,39,203409,2034),
+('2034-10-01',203440,10,2034,1,40,203410,2034),
+('2034-10-02',203440,10,2034,2,40,203410,2034),
+('2034-10-03',203440,10,2034,3,40,203410,2034),
+('2034-10-04',203440,10,2034,4,40,203410,2034),
+('2034-10-05',203440,10,2034,5,40,203410,2034),
+('2034-10-06',203440,10,2034,6,40,203410,2034),
+('2034-10-07',203440,10,2034,7,40,203410,2034),
+('2034-10-08',203441,10,2034,8,41,203410,2034),
+('2034-10-09',203441,10,2034,9,41,203410,2034),
+('2034-10-10',203441,10,2034,10,41,203410,2034),
+('2034-10-11',203441,10,2034,11,41,203410,2034),
+('2034-10-12',203441,10,2034,12,41,203410,2034),
+('2034-10-13',203441,10,2034,13,41,203410,2034),
+('2034-10-14',203441,10,2034,14,41,203410,2034),
+('2034-10-15',203442,10,2034,15,42,203410,2034),
+('2034-10-16',203442,10,2034,16,42,203410,2034),
+('2034-10-17',203442,10,2034,17,42,203410,2034),
+('2034-10-18',203442,10,2034,18,42,203410,2034),
+('2034-10-19',203442,10,2034,19,42,203410,2034),
+('2034-10-20',203442,10,2034,20,42,203410,2034),
+('2034-10-21',203442,10,2034,21,42,203410,2034),
+('2034-10-22',203443,10,2034,22,43,203410,2034),
+('2034-10-23',203443,10,2034,23,43,203410,2034),
+('2034-10-24',203443,10,2034,24,43,203410,2034),
+('2034-10-25',203443,10,2034,25,43,203410,2034),
+('2034-10-26',203443,10,2034,26,43,203410,2034),
+('2034-10-27',203443,10,2034,27,43,203410,2034),
+('2034-10-28',203443,10,2034,28,43,203410,2034),
+('2034-10-29',203444,10,2034,29,44,203410,2034),
+('2034-10-30',203444,10,2034,30,44,203410,2034),
+('2034-10-31',203444,10,2034,31,44,203410,2034),
+('2034-11-01',203444,11,2034,1,44,203411,2034),
+('2034-11-02',203444,11,2034,2,44,203411,2034),
+('2034-11-03',203444,11,2034,3,44,203411,2034),
+('2034-11-04',203444,11,2034,4,44,203411,2034),
+('2034-11-05',203445,11,2034,5,45,203411,2034),
+('2034-11-06',203445,11,2034,6,45,203411,2034),
+('2034-11-07',203445,11,2034,7,45,203411,2034),
+('2034-11-08',203445,11,2034,8,45,203411,2034),
+('2034-11-09',203445,11,2034,9,45,203411,2034),
+('2034-11-10',203445,11,2034,10,45,203411,2034),
+('2034-11-11',203445,11,2034,11,45,203411,2034),
+('2034-11-12',203446,11,2034,12,46,203411,2034),
+('2034-11-13',203446,11,2034,13,46,203411,2034),
+('2034-11-14',203446,11,2034,14,46,203411,2034),
+('2034-11-15',203446,11,2034,15,46,203411,2034),
+('2034-11-16',203446,11,2034,16,46,203411,2034),
+('2034-11-17',203446,11,2034,17,46,203411,2034),
+('2034-11-18',203446,11,2034,18,46,203411,2034),
+('2034-11-19',203447,11,2034,19,47,203411,2034),
+('2034-11-20',203447,11,2034,20,47,203411,2034),
+('2034-11-21',203447,11,2034,21,47,203411,2034),
+('2034-11-22',203447,11,2034,22,47,203411,2034),
+('2034-11-23',203447,11,2034,23,47,203411,2034),
+('2034-11-24',203447,11,2034,24,47,203411,2034),
+('2034-11-25',203447,11,2034,25,47,203411,2034),
+('2034-11-26',203448,11,2034,26,48,203411,2034),
+('2034-11-27',203448,11,2034,27,48,203411,2034),
+('2034-11-28',203448,11,2034,28,48,203411,2034),
+('2034-11-29',203448,11,2034,29,48,203411,2034),
+('2034-11-30',203448,11,2034,30,48,203411,2034),
+('2034-12-01',203448,12,2034,1,48,203412,2035),
+('2034-12-02',203448,12,2034,2,48,203412,2035),
+('2034-12-03',203449,12,2034,3,49,203412,2035),
+('2034-12-04',203449,12,2034,4,49,203412,2035),
+('2034-12-05',203449,12,2034,5,49,203412,2035),
+('2034-12-06',203449,12,2034,6,49,203412,2035),
+('2034-12-07',203449,12,2034,7,49,203412,2035),
+('2034-12-08',203449,12,2034,8,49,203412,2035),
+('2034-12-09',203449,12,2034,9,49,203412,2035),
+('2034-12-10',203450,12,2034,10,50,203412,2035),
+('2034-12-11',203450,12,2034,11,50,203412,2035),
+('2034-12-12',203450,12,2034,12,50,203412,2035),
+('2034-12-13',203450,12,2034,13,50,203412,2035),
+('2034-12-14',203450,12,2034,14,50,203412,2035),
+('2034-12-15',203450,12,2034,15,50,203412,2035),
+('2034-12-16',203450,12,2034,16,50,203412,2035),
+('2034-12-17',203451,12,2034,17,51,203412,2035),
+('2034-12-18',203451,12,2034,18,51,203412,2035),
+('2034-12-19',203451,12,2034,19,51,203412,2035),
+('2034-12-20',203451,12,2034,20,51,203412,2035),
+('2034-12-21',203451,12,2034,21,51,203412,2035),
+('2034-12-22',203451,12,2034,22,51,203412,2035),
+('2034-12-23',203451,12,2034,23,51,203412,2035),
+('2034-12-24',203452,12,2034,24,52,203412,2035),
+('2034-12-25',203452,12,2034,25,52,203412,2035),
+('2034-12-26',203452,12,2034,26,52,203412,2035),
+('2034-12-27',203452,12,2034,27,52,203412,2035),
+('2034-12-28',203452,12,2034,28,52,203412,2035),
+('2034-12-29',203452,12,2034,29,52,203412,2035),
+('2034-12-30',203452,12,2034,30,52,203412,2035),
+('2034-12-31',203453,12,2034,31,1,203412,2035),
+('2035-01-01',203501,1,2035,1,1,203501,2035),
+('2035-01-02',203501,1,2035,2,1,203501,2035),
+('2035-01-03',203501,1,2035,3,1,203501,2035),
+('2035-01-04',203501,1,2035,4,1,203501,2035),
+('2035-01-05',203501,1,2035,5,1,203501,2035),
+('2035-01-06',203501,1,2035,6,1,203501,2035),
+('2035-01-07',203502,1,2035,7,2,203501,2035),
+('2035-01-08',203502,1,2035,8,2,203501,2035),
+('2035-01-09',203502,1,2035,9,2,203501,2035),
+('2035-01-10',203502,1,2035,10,2,203501,2035),
+('2035-01-11',203502,1,2035,11,2,203501,2035),
+('2035-01-12',203502,1,2035,12,2,203501,2035),
+('2035-01-13',203502,1,2035,13,2,203501,2035),
+('2035-01-14',203503,1,2035,14,3,203501,2035),
+('2035-01-15',203503,1,2035,15,3,203501,2035),
+('2035-01-16',203503,1,2035,16,3,203501,2035),
+('2035-01-17',203503,1,2035,17,3,203501,2035),
+('2035-01-18',203503,1,2035,18,3,203501,2035),
+('2035-01-19',203503,1,2035,19,3,203501,2035),
+('2035-01-20',203503,1,2035,20,3,203501,2035),
+('2035-01-21',203504,1,2035,21,4,203501,2035),
+('2035-01-22',203504,1,2035,22,4,203501,2035),
+('2035-01-23',203504,1,2035,23,4,203501,2035),
+('2035-01-24',203504,1,2035,24,4,203501,2035),
+('2035-01-25',203504,1,2035,25,4,203501,2035),
+('2035-01-26',203504,1,2035,26,4,203501,2035),
+('2035-01-27',203504,1,2035,27,4,203501,2035),
+('2035-01-28',203505,1,2035,28,5,203501,2035),
+('2035-01-29',203505,1,2035,29,5,203501,2035),
+('2035-01-30',203505,1,2035,30,5,203501,2035),
+('2035-01-31',203505,1,2035,31,5,203501,2035),
+('2035-02-01',203505,2,2035,1,5,203502,2035),
+('2035-02-02',203505,2,2035,2,5,203502,2035),
+('2035-02-03',203505,2,2035,3,5,203502,2035),
+('2035-02-04',203506,2,2035,4,6,203502,2035),
+('2035-02-05',203506,2,2035,5,6,203502,2035),
+('2035-02-06',203506,2,2035,6,6,203502,2035),
+('2035-02-07',203506,2,2035,7,6,203502,2035),
+('2035-02-08',203506,2,2035,8,6,203502,2035),
+('2035-02-09',203506,2,2035,9,6,203502,2035),
+('2035-02-10',203506,2,2035,10,6,203502,2035),
+('2035-02-11',203507,2,2035,11,7,203502,2035),
+('2035-02-12',203507,2,2035,12,7,203502,2035),
+('2035-02-13',203507,2,2035,13,7,203502,2035),
+('2035-02-14',203507,2,2035,14,7,203502,2035),
+('2035-02-15',203507,2,2035,15,7,203502,2035),
+('2035-02-16',203507,2,2035,16,7,203502,2035),
+('2035-02-17',203507,2,2035,17,7,203502,2035),
+('2035-02-18',203508,2,2035,18,8,203502,2035),
+('2035-02-19',203508,2,2035,19,8,203502,2035),
+('2035-02-20',203508,2,2035,20,8,203502,2035),
+('2035-02-21',203508,2,2035,21,8,203502,2035),
+('2035-02-22',203508,2,2035,22,8,203502,2035),
+('2035-02-23',203508,2,2035,23,8,203502,2035),
+('2035-02-24',203508,2,2035,24,8,203502,2035),
+('2035-02-25',203509,2,2035,25,9,203502,2035),
+('2035-02-26',203509,2,2035,26,9,203502,2035),
+('2035-02-27',203509,2,2035,27,9,203502,2035),
+('2035-02-28',203509,2,2035,28,9,203502,2035),
+('2035-03-01',203509,3,2035,1,9,203503,2035),
+('2035-03-02',203509,3,2035,2,9,203503,2035),
+('2035-03-03',203509,3,2035,3,9,203503,2035),
+('2035-03-04',203510,3,2035,4,10,203503,2035),
+('2035-03-05',203510,3,2035,5,10,203503,2035),
+('2035-03-06',203510,3,2035,6,10,203503,2035),
+('2035-03-07',203510,3,2035,7,10,203503,2035),
+('2035-03-08',203510,3,2035,8,10,203503,2035),
+('2035-03-09',203510,3,2035,9,10,203503,2035),
+('2035-03-10',203510,3,2035,10,10,203503,2035),
+('2035-03-11',203511,3,2035,11,11,203503,2035),
+('2035-03-12',203511,3,2035,12,11,203503,2035),
+('2035-03-13',203511,3,2035,13,11,203503,2035),
+('2035-03-14',203511,3,2035,14,11,203503,2035),
+('2035-03-15',203511,3,2035,15,11,203503,2035),
+('2035-03-16',203511,3,2035,16,11,203503,2035),
+('2035-03-17',203511,3,2035,17,11,203503,2035),
+('2035-03-18',203512,3,2035,18,12,203503,2035),
+('2035-03-19',203512,3,2035,19,12,203503,2035),
+('2035-03-20',203512,3,2035,20,12,203503,2035),
+('2035-03-21',203512,3,2035,21,12,203503,2035),
+('2035-03-22',203512,3,2035,22,12,203503,2035),
+('2035-03-23',203512,3,2035,23,12,203503,2035),
+('2035-03-24',203512,3,2035,24,12,203503,2035),
+('2035-03-25',203513,3,2035,25,13,203503,2035),
+('2035-03-26',203513,3,2035,26,13,203503,2035),
+('2035-03-27',203513,3,2035,27,13,203503,2035),
+('2035-03-28',203513,3,2035,28,13,203503,2035),
+('2035-03-29',203513,3,2035,29,13,203503,2035),
+('2035-03-30',203513,3,2035,30,13,203503,2035),
+('2035-03-31',203513,3,2035,31,13,203503,2035),
+('2035-04-01',203514,4,2035,1,14,203504,2035),
+('2035-04-02',203514,4,2035,2,14,203504,2035),
+('2035-04-03',203514,4,2035,3,14,203504,2035),
+('2035-04-04',203514,4,2035,4,14,203504,2035),
+('2035-04-05',203514,4,2035,5,14,203504,2035),
+('2035-04-06',203514,4,2035,6,14,203504,2035),
+('2035-04-07',203514,4,2035,7,14,203504,2035),
+('2035-04-08',203515,4,2035,8,15,203504,2035),
+('2035-04-09',203515,4,2035,9,15,203504,2035),
+('2035-04-10',203515,4,2035,10,15,203504,2035),
+('2035-04-11',203515,4,2035,11,15,203504,2035),
+('2035-04-12',203515,4,2035,12,15,203504,2035),
+('2035-04-13',203515,4,2035,13,15,203504,2035),
+('2035-04-14',203515,4,2035,14,15,203504,2035),
+('2035-04-15',203516,4,2035,15,16,203504,2035),
+('2035-04-16',203516,4,2035,16,16,203504,2035),
+('2035-04-17',203516,4,2035,17,16,203504,2035),
+('2035-04-18',203516,4,2035,18,16,203504,2035),
+('2035-04-19',203516,4,2035,19,16,203504,2035),
+('2035-04-20',203516,4,2035,20,16,203504,2035),
+('2035-04-21',203516,4,2035,21,16,203504,2035),
+('2035-04-22',203517,4,2035,22,17,203504,2035),
+('2035-04-23',203517,4,2035,23,17,203504,2035),
+('2035-04-24',203517,4,2035,24,17,203504,2035),
+('2035-04-25',203517,4,2035,25,17,203504,2035),
+('2035-04-26',203517,4,2035,26,17,203504,2035),
+('2035-04-27',203517,4,2035,27,17,203504,2035),
+('2035-04-28',203517,4,2035,28,17,203504,2035),
+('2035-04-29',203518,4,2035,29,18,203504,2035),
+('2035-04-30',203518,4,2035,30,18,203504,2035),
+('2035-05-01',203518,5,2035,1,18,203505,2035),
+('2035-05-02',203518,5,2035,2,18,203505,2035),
+('2035-05-03',203518,5,2035,3,18,203505,2035),
+('2035-05-04',203518,5,2035,4,18,203505,2035),
+('2035-05-05',203518,5,2035,5,18,203505,2035),
+('2035-05-06',203519,5,2035,6,19,203505,2035),
+('2035-05-07',203519,5,2035,7,19,203505,2035),
+('2035-05-08',203519,5,2035,8,19,203505,2035),
+('2035-05-09',203519,5,2035,9,19,203505,2035),
+('2035-05-10',203519,5,2035,10,19,203505,2035),
+('2035-05-11',203519,5,2035,11,19,203505,2035),
+('2035-05-12',203519,5,2035,12,19,203505,2035),
+('2035-05-13',203520,5,2035,13,20,203505,2035),
+('2035-05-14',203520,5,2035,14,20,203505,2035),
+('2035-05-15',203520,5,2035,15,20,203505,2035),
+('2035-05-16',203520,5,2035,16,20,203505,2035),
+('2035-05-17',203520,5,2035,17,20,203505,2035),
+('2035-05-18',203520,5,2035,18,20,203505,2035),
+('2035-05-19',203520,5,2035,19,20,203505,2035),
+('2035-05-20',203521,5,2035,20,21,203505,2035),
+('2035-05-21',203521,5,2035,21,21,203505,2035),
+('2035-05-22',203521,5,2035,22,21,203505,2035),
+('2035-05-23',203521,5,2035,23,21,203505,2035),
+('2035-05-24',203521,5,2035,24,21,203505,2035),
+('2035-05-25',203521,5,2035,25,21,203505,2035),
+('2035-05-26',203521,5,2035,26,21,203505,2035),
+('2035-05-27',203522,5,2035,27,22,203505,2035),
+('2035-05-28',203522,5,2035,28,22,203505,2035),
+('2035-05-29',203522,5,2035,29,22,203505,2035),
+('2035-05-30',203522,5,2035,30,22,203505,2035),
+('2035-05-31',203522,5,2035,31,22,203505,2035),
+('2035-06-01',203522,6,2035,1,22,203506,2035),
+('2035-06-02',203522,6,2035,2,22,203506,2035),
+('2035-06-03',203523,6,2035,3,23,203506,2035),
+('2035-06-04',203523,6,2035,4,23,203506,2035),
+('2035-06-05',203523,6,2035,5,23,203506,2035),
+('2035-06-06',203523,6,2035,6,23,203506,2035),
+('2035-06-07',203523,6,2035,7,23,203506,2035),
+('2035-06-08',203523,6,2035,8,23,203506,2035),
+('2035-06-09',203523,6,2035,9,23,203506,2035),
+('2035-06-10',203524,6,2035,10,24,203506,2035),
+('2035-06-11',203524,6,2035,11,24,203506,2035),
+('2035-06-12',203524,6,2035,12,24,203506,2035),
+('2035-06-13',203524,6,2035,13,24,203506,2035),
+('2035-06-14',203524,6,2035,14,24,203506,2035),
+('2035-06-15',203524,6,2035,15,24,203506,2035),
+('2035-06-16',203524,6,2035,16,24,203506,2035),
+('2035-06-17',203525,6,2035,17,25,203506,2035),
+('2035-06-18',203525,6,2035,18,25,203506,2035),
+('2035-06-19',203525,6,2035,19,25,203506,2035),
+('2035-06-20',203525,6,2035,20,25,203506,2035),
+('2035-06-21',203525,6,2035,21,25,203506,2035),
+('2035-06-22',203525,6,2035,22,25,203506,2035),
+('2035-06-23',203525,6,2035,23,25,203506,2035),
+('2035-06-24',203526,6,2035,24,26,203506,2035),
+('2035-06-25',203526,6,2035,25,26,203506,2035),
+('2035-06-26',203526,6,2035,26,26,203506,2035),
+('2035-06-27',203526,6,2035,27,26,203506,2035),
+('2035-06-28',203526,6,2035,28,26,203506,2035),
+('2035-06-29',203526,6,2035,29,26,203506,2035),
+('2035-06-30',203526,6,2035,30,26,203506,2035),
+('2035-07-01',203527,7,2035,1,27,203507,2035),
+('2035-07-02',203527,7,2035,2,27,203507,2035),
+('2035-07-03',203527,7,2035,3,27,203507,2035),
+('2035-07-04',203527,7,2035,4,27,203507,2035),
+('2035-07-05',203527,7,2035,5,27,203507,2035),
+('2035-07-06',203527,7,2035,6,27,203507,2035),
+('2035-07-07',203527,7,2035,7,27,203507,2035),
+('2035-07-08',203528,7,2035,8,28,203507,2035),
+('2035-07-09',203528,7,2035,9,28,203507,2035),
+('2035-07-10',203528,7,2035,10,28,203507,2035),
+('2035-07-11',203528,7,2035,11,28,203507,2035),
+('2035-07-12',203528,7,2035,12,28,203507,2035),
+('2035-07-13',203528,7,2035,13,28,203507,2035),
+('2035-07-14',203528,7,2035,14,28,203507,2035),
+('2035-07-15',203529,7,2035,15,29,203507,2035),
+('2035-07-16',203529,7,2035,16,29,203507,2035),
+('2035-07-17',203529,7,2035,17,29,203507,2035),
+('2035-07-18',203529,7,2035,18,29,203507,2035),
+('2035-07-19',203529,7,2035,19,29,203507,2035),
+('2035-07-20',203529,7,2035,20,29,203507,2035),
+('2035-07-21',203529,7,2035,21,29,203507,2035),
+('2035-07-22',203530,7,2035,22,30,203507,2035),
+('2035-07-23',203530,7,2035,23,30,203507,2035),
+('2035-07-24',203530,7,2035,24,30,203507,2035),
+('2035-07-25',203530,7,2035,25,30,203507,2035),
+('2035-07-26',203530,7,2035,26,30,203507,2035),
+('2035-07-27',203530,7,2035,27,30,203507,2035),
+('2035-07-28',203530,7,2035,28,30,203507,2035),
+('2035-07-29',203531,7,2035,29,31,203507,2035),
+('2035-07-30',203531,7,2035,30,31,203507,2035),
+('2035-07-31',203531,7,2035,31,31,203507,2035),
+('2035-08-01',203531,8,2035,1,31,203508,2035),
+('2035-08-02',203531,8,2035,2,31,203508,2035),
+('2035-08-03',203531,8,2035,3,31,203508,2035),
+('2035-08-04',203531,8,2035,4,31,203508,2035),
+('2035-08-05',203532,8,2035,5,32,203508,2035),
+('2035-08-06',203532,8,2035,6,32,203508,2035),
+('2035-08-07',203532,8,2035,7,32,203508,2035),
+('2035-08-08',203532,8,2035,8,32,203508,2035),
+('2035-08-09',203532,8,2035,9,32,203508,2035),
+('2035-08-10',203532,8,2035,10,32,203508,2035),
+('2035-08-11',203532,8,2035,11,32,203508,2035),
+('2035-08-12',203533,8,2035,12,33,203508,2035),
+('2035-08-13',203533,8,2035,13,33,203508,2035),
+('2035-08-14',203533,8,2035,14,33,203508,2035),
+('2035-08-15',203533,8,2035,15,33,203508,2035),
+('2035-08-16',203533,8,2035,16,33,203508,2035),
+('2035-08-17',203533,8,2035,17,33,203508,2035),
+('2035-08-18',203533,8,2035,18,33,203508,2035),
+('2035-08-19',203534,8,2035,19,34,203508,2035),
+('2035-08-20',203534,8,2035,20,34,203508,2035),
+('2035-08-21',203534,8,2035,21,34,203508,2035),
+('2035-08-22',203534,8,2035,22,34,203508,2035),
+('2035-08-23',203534,8,2035,23,34,203508,2035),
+('2035-08-24',203534,8,2035,24,34,203508,2035),
+('2035-08-25',203534,8,2035,25,34,203508,2035),
+('2035-08-26',203535,8,2035,26,35,203508,2035),
+('2035-08-27',203535,8,2035,27,35,203508,2035),
+('2035-08-28',203535,8,2035,28,35,203508,2035),
+('2035-08-29',203535,8,2035,29,35,203508,2035),
+('2035-08-30',203535,8,2035,30,35,203508,2035),
+('2035-08-31',203535,8,2035,31,35,203508,2035),
+('2035-09-01',203535,9,2035,1,35,203509,2035),
+('2035-09-02',203536,9,2035,2,36,203509,2035),
+('2035-09-03',203536,9,2035,3,36,203509,2035),
+('2035-09-04',203536,9,2035,4,36,203509,2035),
+('2035-09-05',203536,9,2035,5,36,203509,2035),
+('2035-09-06',203536,9,2035,6,36,203509,2035),
+('2035-09-07',203536,9,2035,7,36,203509,2035),
+('2035-09-08',203536,9,2035,8,36,203509,2035),
+('2035-09-09',203537,9,2035,9,37,203509,2035),
+('2035-09-10',203537,9,2035,10,37,203509,2035),
+('2035-09-11',203537,9,2035,11,37,203509,2035),
+('2035-09-12',203537,9,2035,12,37,203509,2035),
+('2035-09-13',203537,9,2035,13,37,203509,2035),
+('2035-09-14',203537,9,2035,14,37,203509,2035),
+('2035-09-15',203537,9,2035,15,37,203509,2035),
+('2035-09-16',203538,9,2035,16,38,203509,2035),
+('2035-09-17',203538,9,2035,17,38,203509,2035),
+('2035-09-18',203538,9,2035,18,38,203509,2035),
+('2035-09-19',203538,9,2035,19,38,203509,2035),
+('2035-09-20',203538,9,2035,20,38,203509,2035),
+('2035-09-21',203538,9,2035,21,38,203509,2035),
+('2035-09-22',203538,9,2035,22,38,203509,2035),
+('2035-09-23',203539,9,2035,23,39,203509,2035),
+('2035-09-24',203539,9,2035,24,39,203509,2035),
+('2035-09-25',203539,9,2035,25,39,203509,2035),
+('2035-09-26',203539,9,2035,26,39,203509,2035),
+('2035-09-27',203539,9,2035,27,39,203509,2035),
+('2035-09-28',203539,9,2035,28,39,203509,2035),
+('2035-09-29',203539,9,2035,29,39,203509,2035),
+('2035-09-30',203540,9,2035,30,40,203509,2035),
+('2035-10-01',203540,10,2035,1,40,203510,2035),
+('2035-10-02',203540,10,2035,2,40,203510,2035),
+('2035-10-03',203540,10,2035,3,40,203510,2035),
+('2035-10-04',203540,10,2035,4,40,203510,2035),
+('2035-10-05',203540,10,2035,5,40,203510,2035),
+('2035-10-06',203540,10,2035,6,40,203510,2035),
+('2035-10-07',203541,10,2035,7,41,203510,2035),
+('2035-10-08',203541,10,2035,8,41,203510,2035),
+('2035-10-09',203541,10,2035,9,41,203510,2035),
+('2035-10-10',203541,10,2035,10,41,203510,2035),
+('2035-10-11',203541,10,2035,11,41,203510,2035),
+('2035-10-12',203541,10,2035,12,41,203510,2035),
+('2035-10-13',203541,10,2035,13,41,203510,2035),
+('2035-10-14',203542,10,2035,14,42,203510,2035),
+('2035-10-15',203542,10,2035,15,42,203510,2035),
+('2035-10-16',203542,10,2035,16,42,203510,2035),
+('2035-10-17',203542,10,2035,17,42,203510,2035),
+('2035-10-18',203542,10,2035,18,42,203510,2035),
+('2035-10-19',203542,10,2035,19,42,203510,2035),
+('2035-10-20',203542,10,2035,20,42,203510,2035),
+('2035-10-21',203543,10,2035,21,43,203510,2035),
+('2035-10-22',203543,10,2035,22,43,203510,2035),
+('2035-10-23',203543,10,2035,23,43,203510,2035),
+('2035-10-24',203543,10,2035,24,43,203510,2035),
+('2035-10-25',203543,10,2035,25,43,203510,2035),
+('2035-10-26',203543,10,2035,26,43,203510,2035),
+('2035-10-27',203543,10,2035,27,43,203510,2035),
+('2035-10-28',203544,10,2035,28,44,203510,2035),
+('2035-10-29',203544,10,2035,29,44,203510,2035),
+('2035-10-30',203544,10,2035,30,44,203510,2035),
+('2035-10-31',203544,10,2035,31,44,203510,2035),
+('2035-11-01',203544,11,2035,1,44,203511,2035),
+('2035-11-02',203544,11,2035,2,44,203511,2035),
+('2035-11-03',203544,11,2035,3,44,203511,2035),
+('2035-11-04',203545,11,2035,4,45,203511,2035),
+('2035-11-05',203545,11,2035,5,45,203511,2035),
+('2035-11-06',203545,11,2035,6,45,203511,2035),
+('2035-11-07',203545,11,2035,7,45,203511,2035),
+('2035-11-08',203545,11,2035,8,45,203511,2035),
+('2035-11-09',203545,11,2035,9,45,203511,2035),
+('2035-11-10',203545,11,2035,10,45,203511,2035),
+('2035-11-11',203546,11,2035,11,46,203511,2035),
+('2035-11-12',203546,11,2035,12,46,203511,2035),
+('2035-11-13',203546,11,2035,13,46,203511,2035),
+('2035-11-14',203546,11,2035,14,46,203511,2035),
+('2035-11-15',203546,11,2035,15,46,203511,2035),
+('2035-11-16',203546,11,2035,16,46,203511,2035),
+('2035-11-17',203546,11,2035,17,46,203511,2035),
+('2035-11-18',203547,11,2035,18,47,203511,2035),
+('2035-11-19',203547,11,2035,19,47,203511,2035),
+('2035-11-20',203547,11,2035,20,47,203511,2035),
+('2035-11-21',203547,11,2035,21,47,203511,2035),
+('2035-11-22',203547,11,2035,22,47,203511,2035),
+('2035-11-23',203547,11,2035,23,47,203511,2035),
+('2035-11-24',203547,11,2035,24,47,203511,2035),
+('2035-11-25',203548,11,2035,25,48,203511,2035),
+('2035-11-26',203548,11,2035,26,48,203511,2035),
+('2035-11-27',203548,11,2035,27,48,203511,2035),
+('2035-11-28',203548,11,2035,28,48,203511,2035),
+('2035-11-29',203548,11,2035,29,48,203511,2035),
+('2035-11-30',203548,11,2035,30,48,203511,2035),
+('2035-12-01',203548,12,2035,1,48,203512,2036),
+('2035-12-02',203549,12,2035,2,49,203512,2036),
+('2035-12-03',203549,12,2035,3,49,203512,2036),
+('2035-12-04',203549,12,2035,4,49,203512,2036),
+('2035-12-05',203549,12,2035,5,49,203512,2036),
+('2035-12-06',203549,12,2035,6,49,203512,2036),
+('2035-12-07',203549,12,2035,7,49,203512,2036),
+('2035-12-08',203549,12,2035,8,49,203512,2036),
+('2035-12-09',203550,12,2035,9,50,203512,2036),
+('2035-12-10',203550,12,2035,10,50,203512,2036),
+('2035-12-11',203550,12,2035,11,50,203512,2036),
+('2035-12-12',203550,12,2035,12,50,203512,2036),
+('2035-12-13',203550,12,2035,13,50,203512,2036),
+('2035-12-14',203550,12,2035,14,50,203512,2036),
+('2035-12-15',203550,12,2035,15,50,203512,2036),
+('2035-12-16',203551,12,2035,16,51,203512,2036),
+('2035-12-17',203551,12,2035,17,51,203512,2036),
+('2035-12-18',203551,12,2035,18,51,203512,2036),
+('2035-12-19',203551,12,2035,19,51,203512,2036),
+('2035-12-20',203551,12,2035,20,51,203512,2036),
+('2035-12-21',203551,12,2035,21,51,203512,2036),
+('2035-12-22',203551,12,2035,22,51,203512,2036),
+('2035-12-23',203552,12,2035,23,52,203512,2036),
+('2035-12-24',203552,12,2035,24,52,203512,2036),
+('2035-12-25',203552,12,2035,25,52,203512,2036),
+('2035-12-26',203552,12,2035,26,52,203512,2036),
+('2035-12-27',203552,12,2035,27,52,203512,2036),
+('2035-12-28',203552,12,2035,28,52,203512,2036),
+('2035-12-29',203552,12,2035,29,52,203512,2036),
+('2035-12-30',203553,12,2035,30,1,203512,2036),
+('2035-12-31',203501,12,2035,31,1,203512,2036),
+('2036-01-01',203601,1,2036,1,1,203601,2036),
+('2036-01-02',203601,1,2036,2,1,203601,2036),
+('2036-01-03',203601,1,2036,3,1,203601,2036),
+('2036-01-04',203601,1,2036,4,1,203601,2036),
+('2036-01-05',203601,1,2036,5,1,203601,2036),
+('2036-01-06',203602,1,2036,6,2,203601,2036),
+('2036-01-07',203602,1,2036,7,2,203601,2036),
+('2036-01-08',203602,1,2036,8,2,203601,2036),
+('2036-01-09',203602,1,2036,9,2,203601,2036),
+('2036-01-10',203602,1,2036,10,2,203601,2036),
+('2036-01-11',203602,1,2036,11,2,203601,2036),
+('2036-01-12',203602,1,2036,12,2,203601,2036),
+('2036-01-13',203603,1,2036,13,3,203601,2036),
+('2036-01-14',203603,1,2036,14,3,203601,2036),
+('2036-01-15',203603,1,2036,15,3,203601,2036),
+('2036-01-16',203603,1,2036,16,3,203601,2036),
+('2036-01-17',203603,1,2036,17,3,203601,2036),
+('2036-01-18',203603,1,2036,18,3,203601,2036),
+('2036-01-19',203603,1,2036,19,3,203601,2036),
+('2036-01-20',203604,1,2036,20,4,203601,2036),
+('2036-01-21',203604,1,2036,21,4,203601,2036),
+('2036-01-22',203604,1,2036,22,4,203601,2036),
+('2036-01-23',203604,1,2036,23,4,203601,2036),
+('2036-01-24',203604,1,2036,24,4,203601,2036),
+('2036-01-25',203604,1,2036,25,4,203601,2036),
+('2036-01-26',203604,1,2036,26,4,203601,2036),
+('2036-01-27',203605,1,2036,27,5,203601,2036),
+('2036-01-28',203605,1,2036,28,5,203601,2036),
+('2036-01-29',203605,1,2036,29,5,203601,2036),
+('2036-01-30',203605,1,2036,30,5,203601,2036),
+('2036-01-31',203605,1,2036,31,5,203601,2036),
+('2036-02-01',203605,2,2036,1,5,203602,2036),
+('2036-02-02',203605,2,2036,2,5,203602,2036),
+('2036-02-03',203606,2,2036,3,6,203602,2036),
+('2036-02-04',203606,2,2036,4,6,203602,2036),
+('2036-02-05',203606,2,2036,5,6,203602,2036),
+('2036-02-06',203606,2,2036,6,6,203602,2036),
+('2036-02-07',203606,2,2036,7,6,203602,2036),
+('2036-02-08',203606,2,2036,8,6,203602,2036),
+('2036-02-09',203606,2,2036,9,6,203602,2036),
+('2036-02-10',203607,2,2036,10,7,203602,2036),
+('2036-02-11',203607,2,2036,11,7,203602,2036),
+('2036-02-12',203607,2,2036,12,7,203602,2036),
+('2036-02-13',203607,2,2036,13,7,203602,2036),
+('2036-02-14',203607,2,2036,14,7,203602,2036),
+('2036-02-15',203607,2,2036,15,7,203602,2036),
+('2036-02-16',203607,2,2036,16,7,203602,2036),
+('2036-02-17',203608,2,2036,17,8,203602,2036),
+('2036-02-18',203608,2,2036,18,8,203602,2036),
+('2036-02-19',203608,2,2036,19,8,203602,2036),
+('2036-02-20',203608,2,2036,20,8,203602,2036),
+('2036-02-21',203608,2,2036,21,8,203602,2036),
+('2036-02-22',203608,2,2036,22,8,203602,2036),
+('2036-02-23',203608,2,2036,23,8,203602,2036),
+('2036-02-24',203609,2,2036,24,9,203602,2036),
+('2036-02-25',203609,2,2036,25,9,203602,2036),
+('2036-02-26',203609,2,2036,26,9,203602,2036),
+('2036-02-27',203609,2,2036,27,9,203602,2036),
+('2036-02-28',203609,2,2036,28,9,203602,2036),
+('2036-02-29',203609,2,2036,29,9,203602,2036),
+('2036-03-01',203609,3,2036,1,9,203603,2036),
+('2036-03-02',203610,3,2036,2,10,203603,2036),
+('2036-03-03',203610,3,2036,3,10,203603,2036),
+('2036-03-04',203610,3,2036,4,10,203603,2036),
+('2036-03-05',203610,3,2036,5,10,203603,2036),
+('2036-03-06',203610,3,2036,6,10,203603,2036),
+('2036-03-07',203610,3,2036,7,10,203603,2036),
+('2036-03-08',203610,3,2036,8,10,203603,2036),
+('2036-03-09',203611,3,2036,9,11,203603,2036),
+('2036-03-10',203611,3,2036,10,11,203603,2036),
+('2036-03-11',203611,3,2036,11,11,203603,2036),
+('2036-03-12',203611,3,2036,12,11,203603,2036),
+('2036-03-13',203611,3,2036,13,11,203603,2036),
+('2036-03-14',203611,3,2036,14,11,203603,2036),
+('2036-03-15',203611,3,2036,15,11,203603,2036),
+('2036-03-16',203612,3,2036,16,12,203603,2036),
+('2036-03-17',203612,3,2036,17,12,203603,2036),
+('2036-03-18',203612,3,2036,18,12,203603,2036),
+('2036-03-19',203612,3,2036,19,12,203603,2036),
+('2036-03-20',203612,3,2036,20,12,203603,2036),
+('2036-03-21',203612,3,2036,21,12,203603,2036),
+('2036-03-22',203612,3,2036,22,12,203603,2036),
+('2036-03-23',203613,3,2036,23,13,203603,2036),
+('2036-03-24',203613,3,2036,24,13,203603,2036),
+('2036-03-25',203613,3,2036,25,13,203603,2036),
+('2036-03-26',203613,3,2036,26,13,203603,2036),
+('2036-03-27',203613,3,2036,27,13,203603,2036),
+('2036-03-28',203613,3,2036,28,13,203603,2036),
+('2036-03-29',203613,3,2036,29,13,203603,2036),
+('2036-03-30',203614,3,2036,30,14,203603,2036),
+('2036-03-31',203614,3,2036,31,14,203603,2036),
+('2036-04-01',203614,4,2036,1,14,203604,2036),
+('2036-04-02',203614,4,2036,2,14,203604,2036),
+('2036-04-03',203614,4,2036,3,14,203604,2036),
+('2036-04-04',203614,4,2036,4,14,203604,2036),
+('2036-04-05',203614,4,2036,5,14,203604,2036),
+('2036-04-06',203615,4,2036,6,15,203604,2036),
+('2036-04-07',203615,4,2036,7,15,203604,2036),
+('2036-04-08',203615,4,2036,8,15,203604,2036),
+('2036-04-09',203615,4,2036,9,15,203604,2036),
+('2036-04-10',203615,4,2036,10,15,203604,2036),
+('2036-04-11',203615,4,2036,11,15,203604,2036),
+('2036-04-12',203615,4,2036,12,15,203604,2036),
+('2036-04-13',203616,4,2036,13,16,203604,2036),
+('2036-04-14',203616,4,2036,14,16,203604,2036),
+('2036-04-15',203616,4,2036,15,16,203604,2036),
+('2036-04-16',203616,4,2036,16,16,203604,2036),
+('2036-04-17',203616,4,2036,17,16,203604,2036),
+('2036-04-18',203616,4,2036,18,16,203604,2036),
+('2036-04-19',203616,4,2036,19,16,203604,2036),
+('2036-04-20',203617,4,2036,20,17,203604,2036),
+('2036-04-21',203617,4,2036,21,17,203604,2036),
+('2036-04-22',203617,4,2036,22,17,203604,2036),
+('2036-04-23',203617,4,2036,23,17,203604,2036),
+('2036-04-24',203617,4,2036,24,17,203604,2036),
+('2036-04-25',203617,4,2036,25,17,203604,2036),
+('2036-04-26',203617,4,2036,26,17,203604,2036),
+('2036-04-27',203618,4,2036,27,18,203604,2036),
+('2036-04-28',203618,4,2036,28,18,203604,2036),
+('2036-04-29',203618,4,2036,29,18,203604,2036),
+('2036-04-30',203618,4,2036,30,18,203604,2036),
+('2036-05-01',203618,5,2036,1,18,203605,2036),
+('2036-05-02',203618,5,2036,2,18,203605,2036),
+('2036-05-03',203618,5,2036,3,18,203605,2036),
+('2036-05-04',203619,5,2036,4,19,203605,2036),
+('2036-05-05',203619,5,2036,5,19,203605,2036),
+('2036-05-06',203619,5,2036,6,19,203605,2036),
+('2036-05-07',203619,5,2036,7,19,203605,2036),
+('2036-05-08',203619,5,2036,8,19,203605,2036),
+('2036-05-09',203619,5,2036,9,19,203605,2036),
+('2036-05-10',203619,5,2036,10,19,203605,2036),
+('2036-05-11',203620,5,2036,11,20,203605,2036),
+('2036-05-12',203620,5,2036,12,20,203605,2036),
+('2036-05-13',203620,5,2036,13,20,203605,2036),
+('2036-05-14',203620,5,2036,14,20,203605,2036),
+('2036-05-15',203620,5,2036,15,20,203605,2036),
+('2036-05-16',203620,5,2036,16,20,203605,2036),
+('2036-05-17',203620,5,2036,17,20,203605,2036),
+('2036-05-18',203621,5,2036,18,21,203605,2036),
+('2036-05-19',203621,5,2036,19,21,203605,2036),
+('2036-05-20',203621,5,2036,20,21,203605,2036),
+('2036-05-21',203621,5,2036,21,21,203605,2036),
+('2036-05-22',203621,5,2036,22,21,203605,2036),
+('2036-05-23',203621,5,2036,23,21,203605,2036),
+('2036-05-24',203621,5,2036,24,21,203605,2036),
+('2036-05-25',203622,5,2036,25,22,203605,2036),
+('2036-05-26',203622,5,2036,26,22,203605,2036),
+('2036-05-27',203622,5,2036,27,22,203605,2036),
+('2036-05-28',203622,5,2036,28,22,203605,2036),
+('2036-05-29',203622,5,2036,29,22,203605,2036),
+('2036-05-30',203622,5,2036,30,22,203605,2036),
+('2036-05-31',203622,5,2036,31,22,203605,2036),
+('2036-06-01',203623,6,2036,1,23,203606,2036),
+('2036-06-02',203623,6,2036,2,23,203606,2036),
+('2036-06-03',203623,6,2036,3,23,203606,2036),
+('2036-06-04',203623,6,2036,4,23,203606,2036),
+('2036-06-05',203623,6,2036,5,23,203606,2036),
+('2036-06-06',203623,6,2036,6,23,203606,2036),
+('2036-06-07',203623,6,2036,7,23,203606,2036),
+('2036-06-08',203624,6,2036,8,24,203606,2036),
+('2036-06-09',203624,6,2036,9,24,203606,2036),
+('2036-06-10',203624,6,2036,10,24,203606,2036),
+('2036-06-11',203624,6,2036,11,24,203606,2036),
+('2036-06-12',203624,6,2036,12,24,203606,2036),
+('2036-06-13',203624,6,2036,13,24,203606,2036),
+('2036-06-14',203624,6,2036,14,24,203606,2036),
+('2036-06-15',203625,6,2036,15,25,203606,2036),
+('2036-06-16',203625,6,2036,16,25,203606,2036),
+('2036-06-17',203625,6,2036,17,25,203606,2036),
+('2036-06-18',203625,6,2036,18,25,203606,2036),
+('2036-06-19',203625,6,2036,19,25,203606,2036),
+('2036-06-20',203625,6,2036,20,25,203606,2036),
+('2036-06-21',203625,6,2036,21,25,203606,2036),
+('2036-06-22',203626,6,2036,22,26,203606,2036),
+('2036-06-23',203626,6,2036,23,26,203606,2036),
+('2036-06-24',203626,6,2036,24,26,203606,2036),
+('2036-06-25',203626,6,2036,25,26,203606,2036),
+('2036-06-26',203626,6,2036,26,26,203606,2036),
+('2036-06-27',203626,6,2036,27,26,203606,2036),
+('2036-06-28',203626,6,2036,28,26,203606,2036),
+('2036-06-29',203627,6,2036,29,27,203606,2036),
+('2036-06-30',203627,6,2036,30,27,203606,2036),
+('2036-07-01',203627,7,2036,1,27,203607,2036),
+('2036-07-02',203627,7,2036,2,27,203607,2036),
+('2036-07-03',203627,7,2036,3,27,203607,2036),
+('2036-07-04',203627,7,2036,4,27,203607,2036),
+('2036-07-05',203627,7,2036,5,27,203607,2036),
+('2036-07-06',203628,7,2036,6,28,203607,2036),
+('2036-07-07',203628,7,2036,7,28,203607,2036),
+('2036-07-08',203628,7,2036,8,28,203607,2036),
+('2036-07-09',203628,7,2036,9,28,203607,2036),
+('2036-07-10',203628,7,2036,10,28,203607,2036),
+('2036-07-11',203628,7,2036,11,28,203607,2036),
+('2036-07-12',203628,7,2036,12,28,203607,2036),
+('2036-07-13',203629,7,2036,13,29,203607,2036),
+('2036-07-14',203629,7,2036,14,29,203607,2036),
+('2036-07-15',203629,7,2036,15,29,203607,2036),
+('2036-07-16',203629,7,2036,16,29,203607,2036),
+('2036-07-17',203629,7,2036,17,29,203607,2036),
+('2036-07-18',203629,7,2036,18,29,203607,2036),
+('2036-07-19',203629,7,2036,19,29,203607,2036),
+('2036-07-20',203630,7,2036,20,30,203607,2036),
+('2036-07-21',203630,7,2036,21,30,203607,2036),
+('2036-07-22',203630,7,2036,22,30,203607,2036),
+('2036-07-23',203630,7,2036,23,30,203607,2036),
+('2036-07-24',203630,7,2036,24,30,203607,2036),
+('2036-07-25',203630,7,2036,25,30,203607,2036),
+('2036-07-26',203630,7,2036,26,30,203607,2036),
+('2036-07-27',203631,7,2036,27,31,203607,2036),
+('2036-07-28',203631,7,2036,28,31,203607,2036),
+('2036-07-29',203631,7,2036,29,31,203607,2036),
+('2036-07-30',203631,7,2036,30,31,203607,2036),
+('2036-07-31',203631,7,2036,31,31,203607,2036),
+('2036-08-01',203631,8,2036,1,31,203608,2036),
+('2036-08-02',203631,8,2036,2,31,203608,2036),
+('2036-08-03',203632,8,2036,3,32,203608,2036),
+('2036-08-04',203632,8,2036,4,32,203608,2036),
+('2036-08-05',203632,8,2036,5,32,203608,2036),
+('2036-08-06',203632,8,2036,6,32,203608,2036),
+('2036-08-07',203632,8,2036,7,32,203608,2036),
+('2036-08-08',203632,8,2036,8,32,203608,2036),
+('2036-08-09',203632,8,2036,9,32,203608,2036),
+('2036-08-10',203633,8,2036,10,33,203608,2036),
+('2036-08-11',203633,8,2036,11,33,203608,2036),
+('2036-08-12',203633,8,2036,12,33,203608,2036),
+('2036-08-13',203633,8,2036,13,33,203608,2036),
+('2036-08-14',203633,8,2036,14,33,203608,2036),
+('2036-08-15',203633,8,2036,15,33,203608,2036),
+('2036-08-16',203633,8,2036,16,33,203608,2036),
+('2036-08-17',203634,8,2036,17,34,203608,2036),
+('2036-08-18',203634,8,2036,18,34,203608,2036),
+('2036-08-19',203634,8,2036,19,34,203608,2036),
+('2036-08-20',203634,8,2036,20,34,203608,2036),
+('2036-08-21',203634,8,2036,21,34,203608,2036),
+('2036-08-22',203634,8,2036,22,34,203608,2036),
+('2036-08-23',203634,8,2036,23,34,203608,2036),
+('2036-08-24',203635,8,2036,24,35,203608,2036),
+('2036-08-25',203635,8,2036,25,35,203608,2036),
+('2036-08-26',203635,8,2036,26,35,203608,2036),
+('2036-08-27',203635,8,2036,27,35,203608,2036),
+('2036-08-28',203635,8,2036,28,35,203608,2036),
+('2036-08-29',203635,8,2036,29,35,203608,2036),
+('2036-08-30',203635,8,2036,30,35,203608,2036),
+('2036-08-31',203636,8,2036,31,36,203608,2036),
+('2036-09-01',203636,9,2036,1,36,203609,2036),
+('2036-09-02',203636,9,2036,2,36,203609,2036),
+('2036-09-03',203636,9,2036,3,36,203609,2036),
+('2036-09-04',203636,9,2036,4,36,203609,2036),
+('2036-09-05',203636,9,2036,5,36,203609,2036),
+('2036-09-06',203636,9,2036,6,36,203609,2036),
+('2036-09-07',203637,9,2036,7,37,203609,2036),
+('2036-09-08',203637,9,2036,8,37,203609,2036),
+('2036-09-09',203637,9,2036,9,37,203609,2036),
+('2036-09-10',203637,9,2036,10,37,203609,2036),
+('2036-09-11',203637,9,2036,11,37,203609,2036),
+('2036-09-12',203637,9,2036,12,37,203609,2036),
+('2036-09-13',203637,9,2036,13,37,203609,2036),
+('2036-09-14',203638,9,2036,14,38,203609,2036),
+('2036-09-15',203638,9,2036,15,38,203609,2036),
+('2036-09-16',203638,9,2036,16,38,203609,2036),
+('2036-09-17',203638,9,2036,17,38,203609,2036),
+('2036-09-18',203638,9,2036,18,38,203609,2036),
+('2036-09-19',203638,9,2036,19,38,203609,2036),
+('2036-09-20',203638,9,2036,20,38,203609,2036),
+('2036-09-21',203639,9,2036,21,39,203609,2036),
+('2036-09-22',203639,9,2036,22,39,203609,2036),
+('2036-09-23',203639,9,2036,23,39,203609,2036),
+('2036-09-24',203639,9,2036,24,39,203609,2036),
+('2036-09-25',203639,9,2036,25,39,203609,2036),
+('2036-09-26',203639,9,2036,26,39,203609,2036),
+('2036-09-27',203639,9,2036,27,39,203609,2036),
+('2036-09-28',203640,9,2036,28,40,203609,2036),
+('2036-09-29',203640,9,2036,29,40,203609,2036),
+('2036-09-30',203640,9,2036,30,40,203609,2036),
+('2036-10-01',203640,10,2036,1,40,203610,2036),
+('2036-10-02',203640,10,2036,2,40,203610,2036),
+('2036-10-03',203640,10,2036,3,40,203610,2036),
+('2036-10-04',203640,10,2036,4,40,203610,2036),
+('2036-10-05',203641,10,2036,5,41,203610,2036),
+('2036-10-06',203641,10,2036,6,41,203610,2036),
+('2036-10-07',203641,10,2036,7,41,203610,2036),
+('2036-10-08',203641,10,2036,8,41,203610,2036),
+('2036-10-09',203641,10,2036,9,41,203610,2036),
+('2036-10-10',203641,10,2036,10,41,203610,2036),
+('2036-10-11',203641,10,2036,11,41,203610,2036),
+('2036-10-12',203642,10,2036,12,42,203610,2036),
+('2036-10-13',203642,10,2036,13,42,203610,2036),
+('2036-10-14',203642,10,2036,14,42,203610,2036),
+('2036-10-15',203642,10,2036,15,42,203610,2036),
+('2036-10-16',203642,10,2036,16,42,203610,2036),
+('2036-10-17',203642,10,2036,17,42,203610,2036),
+('2036-10-18',203642,10,2036,18,42,203610,2036),
+('2036-10-19',203643,10,2036,19,43,203610,2036),
+('2036-10-20',203643,10,2036,20,43,203610,2036),
+('2036-10-21',203643,10,2036,21,43,203610,2036),
+('2036-10-22',203643,10,2036,22,43,203610,2036),
+('2036-10-23',203643,10,2036,23,43,203610,2036),
+('2036-10-24',203643,10,2036,24,43,203610,2036),
+('2036-10-25',203643,10,2036,25,43,203610,2036),
+('2036-10-26',203644,10,2036,26,44,203610,2036),
+('2036-10-27',203644,10,2036,27,44,203610,2036),
+('2036-10-28',203644,10,2036,28,44,203610,2036),
+('2036-10-29',203644,10,2036,29,44,203610,2036),
+('2036-10-30',203644,10,2036,30,44,203610,2036),
+('2036-10-31',203644,10,2036,31,44,203610,2036),
+('2036-11-01',203644,11,2036,1,44,203611,2036),
+('2036-11-02',203645,11,2036,2,45,203611,2036),
+('2036-11-03',203645,11,2036,3,45,203611,2036),
+('2036-11-04',203645,11,2036,4,45,203611,2036),
+('2036-11-05',203645,11,2036,5,45,203611,2036),
+('2036-11-06',203645,11,2036,6,45,203611,2036),
+('2036-11-07',203645,11,2036,7,45,203611,2036),
+('2036-11-08',203645,11,2036,8,45,203611,2036),
+('2036-11-09',203646,11,2036,9,46,203611,2036),
+('2036-11-10',203646,11,2036,10,46,203611,2036),
+('2036-11-11',203646,11,2036,11,46,203611,2036),
+('2036-11-12',203646,11,2036,12,46,203611,2036),
+('2036-11-13',203646,11,2036,13,46,203611,2036),
+('2036-11-14',203646,11,2036,14,46,203611,2036),
+('2036-11-15',203646,11,2036,15,46,203611,2036),
+('2036-11-16',203647,11,2036,16,47,203611,2036),
+('2036-11-17',203647,11,2036,17,47,203611,2036),
+('2036-11-18',203647,11,2036,18,47,203611,2036),
+('2036-11-19',203647,11,2036,19,47,203611,2036),
+('2036-11-20',203647,11,2036,20,47,203611,2036),
+('2036-11-21',203647,11,2036,21,47,203611,2036),
+('2036-11-22',203647,11,2036,22,47,203611,2036),
+('2036-11-23',203648,11,2036,23,48,203611,2036),
+('2036-11-24',203648,11,2036,24,48,203611,2036),
+('2036-11-25',203648,11,2036,25,48,203611,2036),
+('2036-11-26',203648,11,2036,26,48,203611,2036),
+('2036-11-27',203648,11,2036,27,48,203611,2036),
+('2036-11-28',203648,11,2036,28,48,203611,2036),
+('2036-11-29',203648,11,2036,29,48,203611,2036),
+('2036-11-30',203649,11,2036,30,49,203611,2036),
+('2036-12-01',203649,12,2036,1,49,203612,2037),
+('2036-12-02',203649,12,2036,2,49,203612,2037),
+('2036-12-03',203649,12,2036,3,49,203612,2037),
+('2036-12-04',203649,12,2036,4,49,203612,2037),
+('2036-12-05',203649,12,2036,5,49,203612,2037),
+('2036-12-06',203649,12,2036,6,49,203612,2037),
+('2036-12-07',203650,12,2036,7,50,203612,2037),
+('2036-12-08',203650,12,2036,8,50,203612,2037),
+('2036-12-09',203650,12,2036,9,50,203612,2037),
+('2036-12-10',203650,12,2036,10,50,203612,2037),
+('2036-12-11',203650,12,2036,11,50,203612,2037),
+('2036-12-12',203650,12,2036,12,50,203612,2037),
+('2036-12-13',203650,12,2036,13,50,203612,2037),
+('2036-12-14',203651,12,2036,14,51,203612,2037),
+('2036-12-15',203651,12,2036,15,51,203612,2037),
+('2036-12-16',203651,12,2036,16,51,203612,2037),
+('2036-12-17',203651,12,2036,17,51,203612,2037),
+('2036-12-18',203651,12,2036,18,51,203612,2037),
+('2036-12-19',203651,12,2036,19,51,203612,2037),
+('2036-12-20',203651,12,2036,20,51,203612,2037),
+('2036-12-21',203652,12,2036,21,52,203612,2037),
+('2036-12-22',203652,12,2036,22,52,203612,2037),
+('2036-12-23',203652,12,2036,23,52,203612,2037),
+('2036-12-24',203652,12,2036,24,52,203612,2037),
+('2036-12-25',203652,12,2036,25,52,203612,2037),
+('2036-12-26',203652,12,2036,26,52,203612,2037),
+('2036-12-27',203652,12,2036,27,52,203612,2037),
+('2036-12-28',203653,12,2036,28,53,203612,2037),
+('2036-12-29',203601,12,2036,29,53,203612,2037),
+('2036-12-30',203601,12,2036,30,53,203612,2037);
/*!40000 ALTER TABLE `time` ENABLE KEYS */;
UNLOCK TABLES;
@@ -460,7 +13539,8 @@ UNLOCK TABLES;
LOCK TABLES `volumeConfig` WRITE;
/*!40000 ALTER TABLE `volumeConfig` DISABLE KEYS */;
-INSERT INTO `volumeConfig` VALUES (2.67,1.60,0.8,150,0.30,120,57,2.0,5,200,5,167.0);
+INSERT INTO `volumeConfig` VALUES
+(2.67,1.60,0.8,150,0.30,120,57,2.0,0,200,0,167.0);
/*!40000 ALTER TABLE `volumeConfig` ENABLE KEYS */;
UNLOCK TABLES;
@@ -470,7 +13550,16 @@ UNLOCK TABLES;
LOCK TABLES `workCenter` WRITE;
/*!40000 ALTER TABLE `workCenter` DISABLE KEYS */;
-INSERT INTO `workCenter` VALUES (1,'Silla',20,859,1,'Av espioca 100',552703),(2,'Mercaflor',19,NULL,NULL,NULL,NULL),(3,'Marjales',26,20008,NULL,NULL,NULL),(4,'VNH',NULL,NULL,NULL,NULL,NULL),(5,'Madrid',28,2869,5,'Av constitución 3',554145),(6,'Vilassar',88,88038,NULL,'Cami del Crist, 33',556412),(7,'Tenerife',NULL,NULL,NULL,NULL,NULL),(8,'Silla-Agrario',26,NULL,NULL,NULL,NULL),(9,'Algemesi',20,1354,60,'Fenollars, 2',523549);
+INSERT INTO `workCenter` VALUES
+(1,'Silla',20,859,1,'Av espioca 100',552703,NULL),
+(2,'Mercaflor',19,NULL,NULL,NULL,NULL,NULL),
+(3,'Marjales',26,20008,NULL,NULL,NULL,NULL),
+(4,'VNH',NULL,NULL,NULL,NULL,NULL,NULL),
+(5,'Madrid',28,2869,5,'Av constitución 3',554145,0.50),
+(6,'Vilassar',88,88038,NULL,'Cami del Crist, 33',556412,NULL),
+(7,'Tenerife',NULL,NULL,NULL,NULL,NULL,NULL),
+(8,'Silla-Agrario',26,NULL,NULL,NULL,NULL,NULL),
+(9,'Algemesi',20,1354,60,'Fenollars, 2',523549,NULL);
/*!40000 ALTER TABLE `workCenter` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
@@ -482,13 +13571,13 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
--- Dump completed on 2022-09-16 7:03:16
+-- Dump completed on 2022-11-21 7:59:05
USE `cache`;
--- MySQL dump 10.19 Distrib 10.3.34-MariaDB, for debian-linux-gnu (x86_64)
+-- MariaDB dump 10.19 Distrib 10.9.4-MariaDB, for Linux (x86_64)
--
-- Host: db.verdnatura.es Database: cache
-- ------------------------------------------------------
--- Server version 10.7.4-MariaDB-1:10.7.4+maria~bullseye-log
+-- Server version 10.7.6-MariaDB-1:10.7.6+maria~deb11-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@@ -506,7 +13595,21 @@ USE `cache`;
LOCK TABLES `cache` WRITE;
/*!40000 ALTER TABLE `cache` DISABLE KEYS */;
-INSERT INTO `cache` VALUES (1,'equalizator','00:19:00'),(2,'available','00:06:00'),(3,'stock','00:30:00'),(4,'last_buy','23:59:00'),(5,'weekly_sales','12:00:00'),(6,'bionic','00:06:00'),(7,'sales','00:04:00'),(8,'visible','00:04:00'),(9,'item_range','00:03:00'),(10,'barcodes','01:00:00'),(11,'prod_graphic','00:17:00'),(12,'ticketShipping','00:01:00'),(13,'availableNoRaids','00:06:00'),(14,'lastBuy','23:59:00');
+INSERT INTO `cache` VALUES
+(1,'equalizator','00:19:00'),
+(2,'available','00:06:00'),
+(3,'stock','00:30:00'),
+(4,'last_buy','23:59:00'),
+(5,'weekly_sales','12:00:00'),
+(6,'bionic','00:06:00'),
+(7,'sales','00:04:00'),
+(8,'visible','00:04:00'),
+(9,'item_range','00:03:00'),
+(10,'barcodes','01:00:00'),
+(11,'prod_graphic','00:17:00'),
+(12,'ticketShipping','00:01:00'),
+(13,'availableNoRaids','00:06:00'),
+(14,'lastBuy','23:59:00');
/*!40000 ALTER TABLE `cache` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
@@ -518,13 +13621,13 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
--- Dump completed on 2022-09-16 7:03:17
+-- Dump completed on 2022-11-21 7:59:06
USE `hedera`;
--- MySQL dump 10.19 Distrib 10.3.34-MariaDB, for debian-linux-gnu (x86_64)
+-- MariaDB dump 10.19 Distrib 10.9.4-MariaDB, for Linux (x86_64)
--
-- Host: db.verdnatura.es Database: hedera
-- ------------------------------------------------------
--- Server version 10.7.4-MariaDB-1:10.7.4+maria~bullseye-log
+-- Server version 10.7.6-MariaDB-1:10.7.6+maria~deb11-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@@ -542,7 +13645,12 @@ USE `hedera`;
LOCK TABLES `browser` WRITE;
/*!40000 ALTER TABLE `browser` DISABLE KEYS */;
-INSERT INTO `browser` VALUES ('Chrome',29),('Firefox',20),('Iceweasel',20),('IE',12),('Opera',12),('Safari',9);
+INSERT INTO `browser` VALUES
+('Chrome',49),
+('Edge',79),
+('Firefox',69),
+('Opera',36),
+('Safari',11);
/*!40000 ALTER TABLE `browser` ENABLE KEYS */;
UNLOCK TABLES;
@@ -552,7 +13660,11 @@ UNLOCK TABLES;
LOCK TABLES `imageCollection` WRITE;
/*!40000 ALTER TABLE `imageCollection` DISABLE KEYS */;
-INSERT INTO `imageCollection` VALUES (1,'catalog','Artículo',3840,2160,'Item','image','vn','item','image',1,75),(4,'link','Enlace',200,200,'Link','image','hedera','link','image',1,9),(5,'news','Noticias',800,1200,'New','image','hedera','news','image',1,9),(6,'user','Usuario',800,1200,'Account','image','account','user','image',1,74);
+INSERT INTO `imageCollection` VALUES
+(1,'catalog','Artículo',3840,2160,'Item','image','vn','item','image',1,75),
+(4,'link','Enlace',200,200,'Link','image','hedera','link','image',1,9),
+(5,'news','Noticias',800,1200,'New','image','hedera','news','image',1,9),
+(6,'user','Usuario',800,1200,'Account','image','account','user','image',1,74);
/*!40000 ALTER TABLE `imageCollection` ENABLE KEYS */;
UNLOCK TABLES;
@@ -562,7 +13674,17 @@ UNLOCK TABLES;
LOCK TABLES `imageCollectionSize` WRITE;
/*!40000 ALTER TABLE `imageCollectionSize` DISABLE KEYS */;
-INSERT INTO `imageCollectionSize` VALUES (2,1,50,50,1),(3,1,200,200,1),(5,5,200,200,1),(6,1,70,70,1),(8,5,50,50,1),(9,1,1600,900,0),(13,6,160,160,1),(14,6,520,520,1),(15,6,1600,1600,1);
+INSERT INTO `imageCollectionSize` VALUES
+(2,1,50,50,1),
+(3,1,200,200,1),
+(5,5,200,200,1),
+(6,1,70,70,1),
+(8,5,50,50,1),
+(9,1,1600,900,0),
+(13,6,160,160,1),
+(14,6,520,520,1),
+(15,6,1600,1600,1),
+(16,1,500,500,1);
/*!40000 ALTER TABLE `imageCollectionSize` ENABLE KEYS */;
UNLOCK TABLES;
@@ -572,7 +13694,13 @@ UNLOCK TABLES;
LOCK TABLES `language` WRITE;
/*!40000 ALTER TABLE `language` DISABLE KEYS */;
-INSERT INTO `language` VALUES ('ca','Català','Catalan',1),('en','English','English',1),('es','Español','Spanish',1),('fr','Français','French',1),('mn','Португалий','Mongolian',1),('pt','Português','Portuguese',1);
+INSERT INTO `language` VALUES
+('ca','Català','Catalan',1),
+('en','English','English',1),
+('es','Español','Spanish',1),
+('fr','Français','French',1),
+('mn','Португалий','Mongolian',1),
+('pt','Português','Portuguese',1);
/*!40000 ALTER TABLE `language` ENABLE KEYS */;
UNLOCK TABLES;
@@ -582,17 +13710,43 @@ UNLOCK TABLES;
LOCK TABLES `link` WRITE;
/*!40000 ALTER TABLE `link` DISABLE KEYS */;
-INSERT INTO `link` VALUES (16,'Printing server','Manage the CUPS printing server','http://server.verdnatura.es:631','printer'),(20,'Webmail','Verdnatura webmail','https://webmail.verdnatura.es/','mail'),(23,'Verdnatura Beta','Trial version of the web page','https://test.verdnatura.es/','vn'),(25,'Shared folder','Shared folder','/share','backup'),(29,'phpMyAdmin','Manage MySQL database','https://pma.verdnatura.es/','pma'),(30,'Nagios','Monitoring system','https://nagios.verdnatura.es/','nagios'),(33,'Gitea','Version control system','https://gitea.verdnatura.es/','git'),(34,'Wiknatura','Verdnatura wiki page','https://wiki.verdnatura.es/','wiki'),(35,'phpLDAPadmin','Manage the LDAP database','https://pla.verdnatura.es/','pla'),(36,'Applications','Access applications repository','/vn-access','backup');
+INSERT INTO `link` VALUES
+(16,'Printing server','Manage the CUPS printing server','http://server.verdnatura.es:631','printer'),
+(20,'Webmail','Verdnatura webmail','https://webmail.verdnatura.es/','mail'),
+(23,'Verdnatura Beta','Trial version of the web page','https://test.verdnatura.es/','vn'),
+(25,'Shared folder','Shared folder','/share','backup'),
+(29,'phpMyAdmin','Manage MySQL database','https://pma.verdnatura.es/','pma'),
+(30,'Nagios','Monitoring system','https://nagios.verdnatura.es/','nagios'),
+(33,'Gitea','Version control system','https://gitea.verdnatura.es/','git'),
+(34,'Wiknatura','Verdnatura wiki page','https://wiki.verdnatura.es/','wiki'),
+(35,'phpLDAPadmin','Manage the LDAP database','https://pla.verdnatura.es/','pla'),
+(36,'Applications','Access applications repository','/vn-access','backup');
/*!40000 ALTER TABLE `link` ENABLE KEYS */;
UNLOCK TABLES;
+--
+-- Manual Dumping data for table `agencyTermConfig`
+--
+LOCK TABLES `agencyTermConfig` WRITE;
+/*!40000 ALTER TABLE `agencyTermConfig` DISABLE KEYS */;
+INSERT INTO `vn`.`agencyTermConfig` (`expenceFk`, `vatAccountSupported`, `vatPercentage`, `transaction`)
+ VALUES
+ ('6240000000', '4721000015', 21.0000000000, 'Adquisiciones intracomunitarias de servicios');
+/*!40000 ALTER TABLE `agencyTermConfig` ENABLE KEYS */;
+UNLOCK TABLES;
+
--
-- Dumping data for table `location`
--
LOCK TABLES `location` WRITE;
/*!40000 ALTER TABLE `location` DISABLE KEYS */;
-INSERT INTO `location` VALUES (2,'39.2095886','-0.4173501','Valencia','Calle Fenollar, 2','46680','Algemesi','Valencia','963 242 100','es'),(3,'40.4564969','-3.4875829','Madrid','Avenida de la Constitución, 3 - Nave E','28850','Torrejón de Ardoz','Madrid','963 242 100',NULL),(4,'41.4962045','2.3765504','Barcelona','Camí del crist, 33','08340','Vilassar de Mar','Barcelona','607 562 391','ca'),(5,'52.2612312','4.7818154','Holland','Aalsmeer Flower Auction','1430 BA','Legmeerdijk 313','Aalsmeer','Nederland','nl'),(6,'43.4375416','5.2261456','Marseille','ruben@verdnatura.es','13054','Marigname','Marseille','+33 781 533 900','fr');
+INSERT INTO `location` VALUES
+(2,'39.2095886','-0.4173501','Valencia','Calle Fenollar, 2','46680','Algemesi','Valencia','963 242 100','es'),
+(3,'40.4564969','-3.4875829','Madrid','Avenida de la Constitución, 3 - Nave E','28850','Torrejón de Ardoz','Madrid','963 242 100',NULL),
+(4,'41.4962045','2.3765504','Barcelona','Camí del crist, 33','08340','Vilassar de Mar','Barcelona','607 562 391','ca'),
+(5,'52.2612312','4.7818154','Holland','Aalsmeer Flower Auction','1430 BA','Legmeerdijk 313','Aalsmeer','Nederland','nl'),
+(6,'43.4375416','5.2261456','Marseille','ruben@verdnatura.es','13054','Marigname','Marseille','+33 781 533 900','fr');
/*!40000 ALTER TABLE `location` ENABLE KEYS */;
UNLOCK TABLES;
@@ -602,7 +13756,27 @@ UNLOCK TABLES;
LOCK TABLES `menu` WRITE;
/*!40000 ALTER TABLE `menu` DISABLE KEYS */;
-INSERT INTO `menu` VALUES (1,'Home','cms/home',6,NULL,1),(2,'Orders',NULL,11,NULL,1),(3,'Catalog','ecomerce/catalog',6,NULL,2),(5,'About',NULL,6,NULL,2),(6,'Location','cms/location',6,5,2),(7,'Administration',NULL,1,NULL,2),(8,'Users','admin/users',1,7,2),(9,'Connections','admin/connections',1,7,2),(11,'Agencies','agencies/packages',3,NULL,2),(12,'News','news/news',1,7,3),(14,'Why','cms/why',6,5,2),(15,'Photos','admin/photos',1,7,3),(17,'Configuration',NULL,11,NULL,3),(19,'Control panel','admin/links',1,7,1),(20,'About us','cms/about',6,5,1),(21,'Basket','ecomerce/basket',11,NULL,1),(22,'Last orders','ecomerce/orders',11,2,2),(23,'Invoices','ecomerce/invoices',11,2,2),(24,'Account','account/conf',11,17,1),(25,'Addresses','account/address-list',11,17,2),(26,'Shelves','reports/shelves',1,29,1),(27,'Items list','reports/items-form',1,29,1),(28,'Visits','admin/visits',1,7,2),(29,'Reports',NULL,1,NULL,2),(30,'Items','admin/items',1,7,3);
+INSERT INTO `menu` VALUES
+(1,'Home','cms/home',6,NULL,1),
+(2,'Orders',NULL,11,NULL,1),
+(3,'Catalog','ecomerce/catalog',6,NULL,2),
+(7,'Administration',NULL,1,NULL,2),
+(8,'Users','admin/users',1,7,2),
+(9,'Connections','admin/connections',1,7,2),
+(11,'Agencies','agencies/packages',3,NULL,2),
+(12,'News','news/news',1,7,3),
+(15,'Photos','admin/photos',1,7,3),
+(17,'Configuration',NULL,11,NULL,3),
+(19,'Control panel','admin/links',1,7,1),
+(21,'Basket','ecomerce/basket',11,NULL,1),
+(22,'Last orders','ecomerce/orders',11,2,2),
+(23,'Invoices','ecomerce/invoices',11,2,2),
+(24,'Account','account/conf',11,17,1),
+(25,'Addresses','account/address-list',11,17,2),
+(26,'Shelves','reports/shelves',1,29,1),
+(28,'Visits','admin/visits',1,7,2),
+(29,'Reports',NULL,1,NULL,2),
+(30,'Items','admin/items',1,7,3);
/*!40000 ALTER TABLE `menu` ENABLE KEYS */;
UNLOCK TABLES;
@@ -612,7 +13786,23 @@ UNLOCK TABLES;
LOCK TABLES `message` WRITE;
/*!40000 ALTER TABLE `message` DISABLE KEYS */;
-INSERT INTO `message` VALUES (1,'ORDER_DATE_HOLIDAY','No es posible realizar pedidos para días festivos'),(2,'ORDER_EMPTY','El pedido esta vacío'),(3,'ORDER_UNAVAILABLE','Algunos artículos ya no están disponibles, verifica las cantidades resaltadas en rojo'),(4,'SURVEY_MAX_ONE_VOTE','Solo es posible realizar un voto por encuesta'),(5,'ORDER_MAX_EXCEEDED','Has excedido el número máximo de pedidos por confirmar, por favor elimina o confirma los pedidos iniciados'),(6,'LOGIN_INCORRECT','Usuario o contraseña incorrectos. Recuerda que se hace distinción entre mayúsculas y minúsculas.'),(7,'ORDER_DATE_PAST','La fecha de su pedido debe ser mayor o igual al día de hoy'),(8,'ORDER_DATE_LAST','No es posible realizar más para hoy, por favor atrasa la fecha de tu pedido a mañana o días posteriores'),(9,'ORDER_DATE_SUNDAY','No es posible confirmar pedidos para Domingo'),(10,'ORDER_DATE_SATURATED','Estamos saturados de pedidos, por favor selecciona otra fecha de envío o recogida '),(11,'USER_DISCONNECTED','Has sido desconectado del servidor, por favor vuelve a iniciar sesión'),(12,'UNAUTH_ACTION','Acción no permitida'),(13,'ORDER_INVALID_AGENCY','La agencia de envío no es válida'),(14,'ORDER_EMPTY_ADDRESS','Selecciona una dirección de envío'),(15,'ORDER_AMOUNT_ROUNDED','Este artículo se vende agrupado y la cantidad ha sido redondeada'),(16,'ORDER_ALREADY_CONFIRMED','Este pedido ya estaba confirmado');
+INSERT INTO `message` VALUES
+(1,'ORDER_DATE_HOLIDAY','No es posible realizar pedidos para días festivos'),
+(2,'ORDER_EMPTY','El pedido esta vacío'),
+(3,'ORDER_UNAVAILABLE','Algunos artículos ya no están disponibles, verifica las cantidades resaltadas en rojo'),
+(4,'SURVEY_MAX_ONE_VOTE','Solo es posible realizar un voto por encuesta'),
+(5,'ORDER_MAX_EXCEEDED','Has excedido el número máximo de pedidos por confirmar, por favor elimina o confirma los pedidos iniciados'),
+(6,'LOGIN_INCORRECT','Usuario o contraseña incorrectos. Recuerda que se hace distinción entre mayúsculas y minúsculas.'),
+(7,'ORDER_DATE_PAST','La fecha de su pedido debe ser mayor o igual al día de hoy'),
+(8,'ORDER_DATE_LAST','No es posible realizar más para hoy, por favor atrasa la fecha de tu pedido a mañana o días posteriores'),
+(9,'ORDER_DATE_SUNDAY','No es posible confirmar pedidos para Domingo'),
+(10,'ORDER_DATE_SATURATED','Estamos saturados de pedidos, por favor selecciona otra fecha de envío o recogida '),
+(11,'USER_DISCONNECTED','Has sido desconectado del servidor, por favor vuelve a iniciar sesión'),
+(12,'UNAUTH_ACTION','Acción no permitida'),
+(13,'ORDER_INVALID_AGENCY','La agencia de envío no es válida'),
+(14,'ORDER_EMPTY_ADDRESS','Selecciona una dirección de envío'),
+(15,'ORDER_AMOUNT_ROUNDED','Este artículo se vende agrupado y la cantidad ha sido redondeada'),
+(16,'ORDER_ALREADY_CONFIRMED','Este pedido ya estaba confirmado');
/*!40000 ALTER TABLE `message` ENABLE KEYS */;
UNLOCK TABLES;
@@ -622,7 +13812,15 @@ UNLOCK TABLES;
LOCK TABLES `metatag` WRITE;
/*!40000 ALTER TABLE `metatag` DISABLE KEYS */;
-INSERT INTO `metatag` VALUES (2,'title','Verdnatura Levante SL, mayorista de flores, plantas y complementos para floristería y decoración'),(3,'description','Verdnatura Levante SL, mayorista de flores, plantas y complementos para floristería y decoración. Envío a toda España, pedidos por internet o por teléfono.'),(4,'keywords','verdnatura, mayorista, floristería, flores, verdes, plantas, ramos, complementos, artificial, natural, decoración, rosas, helecho, fern, clavel, lilium, orquídea, tulipan, crisantemo, cala, gerbera, hiedra, eucaliptus, cinerea, aralia'),(6,'revisit-after','15 days'),(7,'rating','general'),(8,'author','Juan Ferrer Toribio'),(9,'owner','Verdnatura Levante S.L.'),(10,'robots','index, follow');
+INSERT INTO `metatag` VALUES
+(2,'title','Verdnatura Levante SL, mayorista de flores, plantas y complementos para floristería y decoración'),
+(3,'description','Verdnatura Levante SL, mayorista de flores, plantas y complementos para floristería y decoración. Envío a toda España, pedidos por internet o por teléfono.'),
+(4,'keywords','verdnatura, mayorista, floristería, flores, verdes, plantas, ramos, complementos, artificial, natural, decoración, rosas, helecho, fern, clavel, lilium, orquídea, tulipan, crisantemo, cala, gerbera, hiedra, eucaliptus, cinerea, aralia'),
+(6,'revisit-after','15 days'),
+(7,'rating','general'),
+(8,'author','Juan Ferrer Toribio'),
+(9,'owner','Verdnatura Levante S.L.'),
+(10,'robots','index, follow');
/*!40000 ALTER TABLE `metatag` ENABLE KEYS */;
UNLOCK TABLES;
@@ -632,7 +13830,10 @@ UNLOCK TABLES;
LOCK TABLES `newsTag` WRITE;
/*!40000 ALTER TABLE `newsTag` DISABLE KEYS */;
-INSERT INTO `newsTag` VALUES ('course','Curso'),('new','Noticia'),('offer','Oferta');
+INSERT INTO `newsTag` VALUES
+('course','Curso'),
+('new','Noticia'),
+('offer','Oferta');
/*!40000 ALTER TABLE `newsTag` ENABLE KEYS */;
UNLOCK TABLES;
@@ -642,7 +13843,23 @@ UNLOCK TABLES;
LOCK TABLES `restPriv` WRITE;
/*!40000 ALTER TABLE `restPriv` DISABLE KEYS */;
-INSERT INTO `restPriv` VALUES (1,'tpv/transaction',2),(3,'image/upload',1),(4,'misc/sms',1),(5,'core/supplant',104),(7,'core/set-password',5),(9,'misc/access-version',NULL),(10,'core/captcha',NULL),(11,'core/log',NULL),(12,'core/login',NULL),(13,'core/logout',NULL),(14,'core/query',NULL),(15,'core/recover-password',NULL),(16,'core/restore-password',NULL),(17,'dms/invoice',2),(18,'image/thumb',NULL),(19,'misc/contact',NULL),(20,'misc/production',NULL),(21,'tpv/confirm-post',NULL),(22,'tpv/confirm-soap',NULL),(23,'client/supplant',18),(24,'client/supplant',35);
+INSERT INTO `restPriv` VALUES
+(1,'tpv/transaction',2),
+(3,'image/upload',1),
+(5,'user/supplant',104),
+(10,'misc/captcha',NULL),
+(11,'core/log',NULL),
+(14,'core/query',NULL),
+(15,'user/recover-password',NULL),
+(16,'user/restore-password',NULL),
+(17,'dms/invoice',2),
+(18,'image/thumb',NULL),
+(19,'misc/contact',NULL),
+(20,'misc/production',NULL),
+(21,'tpv/confirm-post',NULL),
+(22,'tpv/confirm-soap',NULL),
+(23,'client/supplant',18),
+(24,'client/supplant',35);
/*!40000 ALTER TABLE `restPriv` ENABLE KEYS */;
UNLOCK TABLES;
@@ -652,7 +13869,14 @@ UNLOCK TABLES;
LOCK TABLES `social` WRITE;
/*!40000 ALTER TABLE `social` DISABLE KEYS */;
-INSERT INTO `social` VALUES (1,'Blog','https://blog.verdnatura.es/','blog.svg',0),(3,'Facebook','http://www.facebook.com/verdnatura','facebook.svg',2),(4,'YouTube','http://www.youtube.com/user/verdnatura','youtube.svg',2),(5,'Twitter','https://twitter.com/Verdnatura','twitter.svg',1),(6,'Instagram','https://www.instagram.com/verdnatura','instagram.svg',2),(7,'Linkedin','https://www.linkedin.com/company/verdnatura','linkedin.svg',1),(8,'Pinterest','https://es.pinterest.com/verdnatura/','pinterest.svg',1);
+INSERT INTO `social` VALUES
+(1,'Blog','https://blog.verdnatura.es/','blog.svg',0),
+(3,'Facebook','http://www.facebook.com/verdnatura','facebook.svg',2),
+(4,'YouTube','http://www.youtube.com/user/verdnatura','youtube.svg',2),
+(5,'Twitter','https://twitter.com/Verdnatura','twitter.svg',1),
+(6,'Instagram','https://www.instagram.com/verdnatura','instagram.svg',2),
+(7,'Linkedin','https://www.linkedin.com/company/verdnatura','linkedin.svg',1),
+(8,'Pinterest','https://es.pinterest.com/verdnatura/','pinterest.svg',1);
/*!40000 ALTER TABLE `social` ENABLE KEYS */;
UNLOCK TABLES;
@@ -662,7 +13886,89 @@ UNLOCK TABLES;
LOCK TABLES `tpvError` WRITE;
/*!40000 ALTER TABLE `tpvError` DISABLE KEYS */;
-INSERT INTO `tpvError` VALUES ('SIS0007','Error al desmontar el XML de entrada'),('SIS0008','Error falta Ds_Merchant_MerchantCode'),('SIS0009','Error de formato en Ds_Merchant_MerchantCode'),('SIS0010','Error falta Ds_Merchant_Terminal'),('SIS0011','Error de formato en Ds_Merchant_Terminal'),('SIS0014','Error de formato en Ds_Merchant_Order'),('SIS0015','Error falta Ds_Merchant_Currency'),('SIS0016','Error de formato en Ds_Merchant_Currency'),('SIS0017','Error no se admite operaciones en pesetas'),('SIS0018','Error falta Ds_Merchant_Amount'),('SIS0019','Error de formato en Ds_Merchant_Amount'),('SIS0020','Error falta Ds_Merchant_MerchantSignature'),('SIS0021','Error la Ds_Merchant_MerchantSignature viene vacía'),('SIS0022','Error de formato en Ds_Merchant_TransactionType'),('SIS0023','Error Ds_Merchant_TransactionType desconocido'),('SIS0024','Error Ds_Merchant_ConsumerLanguage tiene más de 3 posiciones'),('SIS0026','Error No existe el comercio / terminal enviado'),('SIS0027','Error Moneda enviada por el comercio es diferente a la que tiene asignada para ese terminal'),('SIS0028','Error Comercio / terminal está dado de baja'),('SIS0030','Error en un pago con tarjeta ha llegado un tipo de operación no valido'),('SIS0031','Método de pago no definido'),('SIS0034','Error de acceso a la Base de Datos'),('SIS0038','Error en java'),('SIS0040','Error el comercio / terminal no tiene ningún método de pago asignado'),('SIS0041','Error en el cálculo de la firma de datos del comercio'),('SIS0042','La firma enviada no es correcta'),('SIS0046','El BIN de la tarjeta no está dado de alta'),('SIS0051','Error número de pedido repetido'),('SIS0054','Error no existe operación sobre la que realizar la devolución'),('SIS0055','Error no existe más de un pago con el mismo número de pedido'),('SIS0056','La operación sobre la que se desea devolver no está autorizada'),('SIS0057','El importe a devolver supera el permitido'),('SIS0058','Inconsistencia de datos, en la validación de una confirmación'),('SIS0059','Error no existe operación sobre la que realizar la devolución'),('SIS0060','Ya existe una confirmación asociada a la preautorización'),('SIS0061','La preautorización sobre la que se desea confirmar no está autorizada'),('SIS0062','El importe a confirmar supera el permitido'),('SIS0063','Error. Número de tarjeta no disponible'),('SIS0064','Error. El número de tarjeta no puede tener más de 19 posiciones'),('SIS0065','Error. El número de tarjeta no es numérico'),('SIS0066','Error. Mes de caducidad no disponible'),('SIS0067','Error. El mes de la caducidad no es numérico'),('SIS0068','Error. El mes de la caducidad no es válido'),('SIS0069','Error. Año de caducidad no disponible'),('SIS0070','Error. El Año de la caducidad no es numérico'),('SIS0071','Tarjeta caducada'),('SIS0072','Operación no anulable'),('SIS0074','Error falta Ds_Merchant_Order'),('SIS0075','Error el Ds_Merchant_Order tiene menos de 4 posiciones o más de 12'),('SIS0076','Error el Ds_Merchant_Order no tiene las cuatro primeras posiciones numéricas'),('SIS0078','Método de pago no disponible'),('SIS0079','Error al realizar el pago con tarjeta'),('SIS0081','La sesión es nueva, se han perdido los datos almacenados'),('SIS0089','El valor de Ds_Merchant_ExpiryDate no ocupa 4 posiciones'),('SIS0092','El valor de Ds_Merchant_ExpiryDate es nulo'),('SIS0093','Tarjeta no encontrada en la tabla de rangos'),('SIS0112','Error. El tipo de transacción especificado en Ds_Merchant_Transaction_Type no esta permitido'),('SIS0115','Error no existe operación sobre la que realizar el pago de la cuota'),('SIS0116','La operación sobre la que se desea pagar una cuota no es una operación válida'),('SIS0117','La operación sobre la que se desea pagar una cuota no está autorizada'),('SIS0118','Se ha excedido el importe total de las cuotas'),('SIS0119','Valor del campo Ds_Merchant_DateFrecuency no válido'),('SIS0120','Valor del campo Ds_Merchant_CargeExpiryDate no válido'),('SIS0121','Valor del campo Ds_Merchant_SumTotal no válido'),('SIS0122','Valor del campo Ds_merchant_DateFrecuency o Ds_Merchant_SumTotal tiene formato incorrecto'),('SIS0123','Se ha excedido la fecha tope para realizar transacciones'),('SIS0124','No ha transcurrido la frecuencia mínima en un pago recurrente sucesivo'),('SIS0132','La fecha de Confirmación de Autorización no puede superar en más de 7 días a la de Preautorización'),('SIS0139','Error el pago recurrente inicial está duplicado SIS0142 Tiempo excedido para el pago'),('SIS0216','Error Ds_Merchant_CVV2 tiene mas de 3/4 posiciones'),('SIS0217','Error de formato en Ds_Merchant_CVV2'),('SIS0221','Error el CVV2 es obligatorio'),('SIS0222','Ya existe una anulación asociada a la preautorización'),('SIS0223','La preautorización que se desea anular no está autorizada'),('SIS0225','Error no existe operación sobre la que realizar la anulación'),('SIS0226','Inconsistencia de datos, en la validación de una anulación'),('SIS0227','Valor del campo Ds_Merchan_TransactionDate no válido'),('SIS0252','El comercio no permite el envío de tarjeta'),('SIS0253','La tarjeta no cumple el check-digit'),('SIS0261','Operación detenida por superar el control de restricciones en la entrada al SIS'),('SIS0274','Tipo de operación desconocida o no permitida por esta entrada al SIS'),('SIS9915','A petición del usuario se ha cancelado el pago');
+INSERT INTO `tpvError` VALUES
+('SIS0007','Error al desmontar el XML de entrada'),
+('SIS0008','Error falta Ds_Merchant_MerchantCode'),
+('SIS0009','Error de formato en Ds_Merchant_MerchantCode'),
+('SIS0010','Error falta Ds_Merchant_Terminal'),
+('SIS0011','Error de formato en Ds_Merchant_Terminal'),
+('SIS0014','Error de formato en Ds_Merchant_Order'),
+('SIS0015','Error falta Ds_Merchant_Currency'),
+('SIS0016','Error de formato en Ds_Merchant_Currency'),
+('SIS0017','Error no se admite operaciones en pesetas'),
+('SIS0018','Error falta Ds_Merchant_Amount'),
+('SIS0019','Error de formato en Ds_Merchant_Amount'),
+('SIS0020','Error falta Ds_Merchant_MerchantSignature'),
+('SIS0021','Error la Ds_Merchant_MerchantSignature viene vacía'),
+('SIS0022','Error de formato en Ds_Merchant_TransactionType'),
+('SIS0023','Error Ds_Merchant_TransactionType desconocido'),
+('SIS0024','Error Ds_Merchant_ConsumerLanguage tiene más de 3 posiciones'),
+('SIS0026','Error No existe el comercio / terminal enviado'),
+('SIS0027','Error Moneda enviada por el comercio es diferente a la que tiene asignada para ese terminal'),
+('SIS0028','Error Comercio / terminal está dado de baja'),
+('SIS0030','Error en un pago con tarjeta ha llegado un tipo de operación no valido'),
+('SIS0031','Método de pago no definido'),
+('SIS0034','Error de acceso a la Base de Datos'),
+('SIS0038','Error en java'),
+('SIS0040','Error el comercio / terminal no tiene ningún método de pago asignado'),
+('SIS0041','Error en el cálculo de la firma de datos del comercio'),
+('SIS0042','La firma enviada no es correcta'),
+('SIS0046','El BIN de la tarjeta no está dado de alta'),
+('SIS0051','Error número de pedido repetido'),
+('SIS0054','Error no existe operación sobre la que realizar la devolución'),
+('SIS0055','Error no existe más de un pago con el mismo número de pedido'),
+('SIS0056','La operación sobre la que se desea devolver no está autorizada'),
+('SIS0057','El importe a devolver supera el permitido'),
+('SIS0058','Inconsistencia de datos, en la validación de una confirmación'),
+('SIS0059','Error no existe operación sobre la que realizar la devolución'),
+('SIS0060','Ya existe una confirmación asociada a la preautorización'),
+('SIS0061','La preautorización sobre la que se desea confirmar no está autorizada'),
+('SIS0062','El importe a confirmar supera el permitido'),
+('SIS0063','Error. Número de tarjeta no disponible'),
+('SIS0064','Error. El número de tarjeta no puede tener más de 19 posiciones'),
+('SIS0065','Error. El número de tarjeta no es numérico'),
+('SIS0066','Error. Mes de caducidad no disponible'),
+('SIS0067','Error. El mes de la caducidad no es numérico'),
+('SIS0068','Error. El mes de la caducidad no es válido'),
+('SIS0069','Error. Año de caducidad no disponible'),
+('SIS0070','Error. El Año de la caducidad no es numérico'),
+('SIS0071','Tarjeta caducada'),
+('SIS0072','Operación no anulable'),
+('SIS0074','Error falta Ds_Merchant_Order'),
+('SIS0075','Error el Ds_Merchant_Order tiene menos de 4 posiciones o más de 12'),
+('SIS0076','Error el Ds_Merchant_Order no tiene las cuatro primeras posiciones numéricas'),
+('SIS0078','Método de pago no disponible'),
+('SIS0079','Error al realizar el pago con tarjeta'),
+('SIS0081','La sesión es nueva, se han perdido los datos almacenados'),
+('SIS0089','El valor de Ds_Merchant_ExpiryDate no ocupa 4 posiciones'),
+('SIS0092','El valor de Ds_Merchant_ExpiryDate es nulo'),
+('SIS0093','Tarjeta no encontrada en la tabla de rangos'),
+('SIS0112','Error. El tipo de transacción especificado en Ds_Merchant_Transaction_Type no esta permitido'),
+('SIS0115','Error no existe operación sobre la que realizar el pago de la cuota'),
+('SIS0116','La operación sobre la que se desea pagar una cuota no es una operación válida'),
+('SIS0117','La operación sobre la que se desea pagar una cuota no está autorizada'),
+('SIS0118','Se ha excedido el importe total de las cuotas'),
+('SIS0119','Valor del campo Ds_Merchant_DateFrecuency no válido'),
+('SIS0120','Valor del campo Ds_Merchant_CargeExpiryDate no válido'),
+('SIS0121','Valor del campo Ds_Merchant_SumTotal no válido'),
+('SIS0122','Valor del campo Ds_merchant_DateFrecuency o Ds_Merchant_SumTotal tiene formato incorrecto'),
+('SIS0123','Se ha excedido la fecha tope para realizar transacciones'),
+('SIS0124','No ha transcurrido la frecuencia mínima en un pago recurrente sucesivo'),
+('SIS0132','La fecha de Confirmación de Autorización no puede superar en más de 7 días a la de Preautorización'),
+('SIS0139','Error el pago recurrente inicial está duplicado SIS0142 Tiempo excedido para el pago'),
+('SIS0216','Error Ds_Merchant_CVV2 tiene mas de 3/4 posiciones'),
+('SIS0217','Error de formato en Ds_Merchant_CVV2'),
+('SIS0221','Error el CVV2 es obligatorio'),
+('SIS0222','Ya existe una anulación asociada a la preautorización'),
+('SIS0223','La preautorización que se desea anular no está autorizada'),
+('SIS0225','Error no existe operación sobre la que realizar la anulación'),
+('SIS0226','Inconsistencia de datos, en la validación de una anulación'),
+('SIS0227','Valor del campo Ds_Merchan_TransactionDate no válido'),
+('SIS0252','El comercio no permite el envío de tarjeta'),
+('SIS0253','La tarjeta no cumple el check-digit'),
+('SIS0261','Operación detenida por superar el control de restricciones en la entrada al SIS'),
+('SIS0274','Tipo de operación desconocida o no permitida por esta entrada al SIS'),
+('SIS9915','A petición del usuario se ha cancelado el pago');
/*!40000 ALTER TABLE `tpvError` ENABLE KEYS */;
UNLOCK TABLES;
@@ -672,7 +13978,44 @@ UNLOCK TABLES;
LOCK TABLES `tpvResponse` WRITE;
/*!40000 ALTER TABLE `tpvResponse` DISABLE KEYS */;
-INSERT INTO `tpvResponse` VALUES (101,'Tarjeta Caducada'),(102,'Tarjeta en excepción transitoria o bajo sospecha de fraude'),(104,'Operación no permitida para esa tarjeta o terminal'),(106,'Intentos de PIN excedidos'),(116,'Disponible Insuficiente'),(118,'Tarjeta no Registrada'),(125,'Tarjeta no efectiva'),(129,'Código de seguridad (CVV2/CVC2) incorrecto'),(180,'Tarjeta ajena al servicio'),(184,'Error en la autenticación del titular'),(190,'Denegación sin especificar motivo'),(191,'Fecha de caducidad errónea'),(202,'Tarjeta en excepción transitoria o bajo sospecha de fraude con retirada de tarjeta'),(904,'Comercio no registrado en FUC'),(909,'Error de sistema'),(912,'Emisor no Disponible'),(913,'Pedido repetido'),(944,'Sesión Incorrecta'),(950,'Operación de devolución no permitida'),(9064,'Número de posiciones de la tarjeta incorrecto'),(9078,'No existe método de pago válido para esa tarjeta'),(9093,'Tarjeta no existente'),(9094,'Rechazo servidores internacionales'),(9104,'A petición del usuario se ha cancelado el pago'),(9218,'El comercio no permite op. seguras por entrada /operaciones'),(9253,'Tarjeta no cumple el check-digit'),(9256,'El comercio no puede realizar preautorizaciones'),(9257,'Esta tarjeta no permite operativa de preautorizaciones'),(9261,'Operación detenida por superar el control de restricciones en la entrada al SIS'),(9912,'Emisor no Disponible'),(9913,'Error en la confirmación que el comercio envía al TPV Virtual (solo aplicable en la opción de sincronización SOAP)'),(9914,'Confirmación “KO” del comercio (solo aplicable en la opción de sincronización SOAP)'),(9915,'A petición del usuario se ha cancelado el pago'),(9928,'Anulación de autorización en diferido realizada por el SIS (proceso batch)'),(9929,'Anulación de autorización en diferido realizada por el comercio'),(9998,'Operación en proceso de solicitud de datos de tarjeta'),(9999,'Operación que ha sido redirigida al emisora autenticar');
+INSERT INTO `tpvResponse` VALUES
+(101,'Tarjeta Caducada'),
+(102,'Tarjeta en excepción transitoria o bajo sospecha de fraude'),
+(104,'Operación no permitida para esa tarjeta o terminal'),
+(106,'Intentos de PIN excedidos'),
+(116,'Disponible Insuficiente'),
+(118,'Tarjeta no Registrada'),
+(125,'Tarjeta no efectiva'),
+(129,'Código de seguridad (CVV2/CVC2) incorrecto'),
+(180,'Tarjeta ajena al servicio'),
+(184,'Error en la autenticación del titular'),
+(190,'Denegación sin especificar motivo'),
+(191,'Fecha de caducidad errónea'),
+(202,'Tarjeta en excepción transitoria o bajo sospecha de fraude con retirada de tarjeta'),
+(904,'Comercio no registrado en FUC'),
+(909,'Error de sistema'),
+(912,'Emisor no Disponible'),
+(913,'Pedido repetido'),
+(944,'Sesión Incorrecta'),
+(950,'Operación de devolución no permitida'),
+(9064,'Número de posiciones de la tarjeta incorrecto'),
+(9078,'No existe método de pago válido para esa tarjeta'),
+(9093,'Tarjeta no existente'),
+(9094,'Rechazo servidores internacionales'),
+(9104,'A petición del usuario se ha cancelado el pago'),
+(9218,'El comercio no permite op. seguras por entrada /operaciones'),
+(9253,'Tarjeta no cumple el check-digit'),
+(9256,'El comercio no puede realizar preautorizaciones'),
+(9257,'Esta tarjeta no permite operativa de preautorizaciones'),
+(9261,'Operación detenida por superar el control de restricciones en la entrada al SIS'),
+(9912,'Emisor no Disponible'),
+(9913,'Error en la confirmación que el comercio envía al TPV Virtual (solo aplicable en la opción de sincronización SOAP)'),
+(9914,'Confirmación “KO” del comercio (solo aplicable en la opción de sincronización SOAP)'),
+(9915,'A petición del usuario se ha cancelado el pago'),
+(9928,'Anulación de autorización en diferido realizada por el SIS (proceso batch)'),
+(9929,'Anulación de autorización en diferido realizada por el comercio'),
+(9998,'Operación en proceso de solicitud de datos de tarjeta'),
+(9999,'Operación que ha sido redirigida al emisora autenticar');
/*!40000 ALTER TABLE `tpvResponse` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
@@ -684,13 +14027,13 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
--- Dump completed on 2022-09-16 7:03:22
+-- Dump completed on 2022-11-21 7:59:06
USE `postgresql`;
--- MySQL dump 10.19 Distrib 10.3.34-MariaDB, for debian-linux-gnu (x86_64)
+-- MariaDB dump 10.19 Distrib 10.9.4-MariaDB, for Linux (x86_64)
--
-- Host: db.verdnatura.es Database: postgresql
-- ------------------------------------------------------
--- Server version 10.7.4-MariaDB-1:10.7.4+maria~bullseye-log
+-- Server version 10.7.6-MariaDB-1:10.7.6+maria~deb11-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@@ -708,7 +14051,39 @@ USE `postgresql`;
LOCK TABLES `calendar_labour_type` WRITE;
/*!40000 ALTER TABLE `calendar_labour_type` DISABLE KEYS */;
-INSERT INTO `calendar_labour_type` VALUES (1,'Horario general','00:20:00',40,0),(2,'Horario 35h/semana','00:20:00',35,1),(3,'Horario 20h/semana','00:00:00',20,1),(4,'Festivo y Fin de semana','00:00:00',0,1),(5,'Horario 30h/semana','00:20:00',30,1),(6,'Horario 25h/semana','00:20:00',25,1),(7,'Vacaciones trabajadas','00:00:00',0,1),(8,'Vacaciones','00:00:00',0,1),(9,'Horario 26h/semana','00:20:00',26,1),(10,'Horario 28h/semana','00:20:00',28,1),(11,'Horario 8h/semana','00:00:00',8,1),(12,'Horario 16h/semana','00:00:00',16,1),(13,'Horario 32h/semana','00:20:00',32,1),(14,'Horario 24h/semana','00:20:00',24,1),(15,'Horario 10h/semana','00:00:00',10,1),(16,'Horario 27,5h/semana','00:20:00',28,1),(17,'Horario 13,5h/semana','00:20:00',14,1),(18,'Horario 31h/semana',NULL,31,1),(19,'Horario 21,5h/semana',NULL,22,1),(20,'Horario 34h/semana',NULL,34,1),(21,'Horario 17h/semana',NULL,17,1),(22,'Horario 18h/semana',NULL,18,1),(23,'Horario 37,5 h/semana',NULL,38,1),(24,'Horario 29 h/semana',NULL,29,1),(25,'Horario 12h/semana',NULL,12,1),(26,'Horario 10h/semana',NULL,10,1),(27,'Horario 15h/semana',NULL,15,1),(28,'Horario 9h/semana',NULL,9,1),(29,'Horario 23h/semana',NULL,23,1),(30,'Horario 21h/semana',NULL,21,1),(31,'Horario 39h/semana',NULL,39,1),(32,'Horario 22/semana',NULL,22,1);
+INSERT INTO `calendar_labour_type` VALUES
+(1,'Horario general','00:20:00',40,0),
+(2,'Horario 35h/semana','00:20:00',35,1),
+(3,'Horario 20h/semana','00:00:00',20,1),
+(4,'Festivo y Fin de semana','00:00:00',0,1),
+(5,'Horario 30h/semana','00:20:00',30,1),
+(6,'Horario 25h/semana','00:20:00',25,1),
+(7,'Vacaciones trabajadas','00:00:00',0,1),
+(8,'Vacaciones','00:00:00',0,1),
+(9,'Horario 26h/semana','00:20:00',26,1),
+(10,'Horario 28h/semana','00:20:00',28,1),
+(11,'Horario 8h/semana','00:00:00',8,1),
+(12,'Horario 16h/semana','00:00:00',16,1),
+(13,'Horario 32h/semana','00:20:00',32,1),
+(14,'Horario 24h/semana','00:20:00',24,1),
+(15,'Horario 10h/semana','00:00:00',10,1),
+(16,'Horario 27,5h/semana','00:20:00',28,1),
+(17,'Horario 13,5h/semana','00:20:00',14,1),
+(18,'Horario 31h/semana',NULL,31,1),
+(19,'Horario 21,5h/semana',NULL,22,1),
+(20,'Horario 34h/semana',NULL,34,1),
+(21,'Horario 17h/semana',NULL,17,1),
+(22,'Horario 18h/semana',NULL,18,1),
+(23,'Horario 37,5 h/semana',NULL,38,1),
+(24,'Horario 29 h/semana',NULL,29,1),
+(25,'Horario 12h/semana',NULL,12,1),
+(26,'Horario 10h/semana',NULL,10,1),
+(27,'Horario 15h/semana',NULL,15,1),
+(28,'Horario 9h/semana',NULL,9,1),
+(29,'Horario 23h/semana',NULL,23,1),
+(30,'Horario 21h/semana',NULL,21,1),
+(31,'Horario 39h/semana',NULL,39,1),
+(32,'Horario 22/semana',NULL,22,1);
/*!40000 ALTER TABLE `calendar_labour_type` ENABLE KEYS */;
UNLOCK TABLES;
@@ -718,7 +14093,8 @@ UNLOCK TABLES;
LOCK TABLES `labour_agreement` WRITE;
/*!40000 ALTER TABLE `labour_agreement` DISABLE KEYS */;
-INSERT INTO `labour_agreement` VALUES (1,2.5,1830,'Flores y Plantas','2012-01-01',NULL);
+INSERT INTO `labour_agreement` VALUES
+(1,2.5,1830,'Flores y Plantas','2012-01-01',NULL);
/*!40000 ALTER TABLE `labour_agreement` ENABLE KEYS */;
UNLOCK TABLES;
@@ -728,7 +14104,18 @@ UNLOCK TABLES;
LOCK TABLES `media_type` WRITE;
/*!40000 ALTER TABLE `media_type` DISABLE KEYS */;
-INSERT INTO `media_type` VALUES (3,'email'),(12,'extension movil'),(6,'facebook'),(2,'fijo'),(11,'material'),(10,'movil empresa'),(1,'movil personal'),(5,'msn'),(9,'seg social'),(4,'skype'),(7,'web');
+INSERT INTO `media_type` VALUES
+(3,'email'),
+(12,'extension movil'),
+(6,'facebook'),
+(2,'fijo'),
+(11,'material'),
+(10,'movil empresa'),
+(1,'movil personal'),
+(5,'msn'),
+(9,'seg social'),
+(4,'skype'),
+(7,'web');
/*!40000 ALTER TABLE `media_type` ENABLE KEYS */;
UNLOCK TABLES;
@@ -738,7 +14125,50 @@ UNLOCK TABLES;
LOCK TABLES `professional_category` WRITE;
/*!40000 ALTER TABLE `professional_category` DISABLE KEYS */;
-INSERT INTO `professional_category` VALUES (1,'Mozos',5,1,27.5,NULL),(2,'Encargados',3,1,27.5,NULL),(4,'Comprador',3,1,27.5,NULL),(5,'Aux Administracion',NULL,1,27.5,NULL),(6,'Of Administracion',3,1,27.5,NULL),(7,'Jefe Administracion',2,1,27.5,NULL),(8,'Informatico',3,1,27.5,NULL),(9,'Directivo',1,0,27.5,NULL),(10,'Aux Ventas',4,1,27.5,NULL),(11,'Vendedor',4,1,27.5,NULL),(12,'Jefe de Ventas',4,0,27.5,NULL),(13,'Repartidor',5,1,27.5,NULL),(14,'Aprendices',NULL,1,27.5,NULL),(15,'Técnicos',2,1,27.5,NULL),(16,'Aux Florista',5,1,27.5,NULL),(17,'Florista',4,1,27.5,NULL),(18,'Jefe Floristas',2,1,27.5,NULL),(19,'Técnico marketing',3,1,27.5,NULL),(20,'Auxiliar marketing',4,1,27.5,NULL),(21,'Aux Informática',4,1,27.5,NULL),(22,'Peón agrícola',5,1,27.5,NULL),(23,'Oficial mantenimiento',4,1,27.5,NULL),(24,'Aux mantenimiento',5,1,27.5,NULL),(25,'Mozo Aeropuerto',5,1,27.5,NULL),(26,'Coordinador',2,1,27.5,NULL),(28,'Aux Logistica',4,1,27.5,NULL),(29,'Oficial Logistica',3,1,27.5,NULL),(30,'Subencargado',4,1,27.5,NULL),(31,'Conductor +3500kg',NULL,1,27.5,32400),(32,'Oficial 1ª',NULL,1,27.5,NULL),(33,'Oficial 2ª',NULL,1,27.5,NULL),(34,'Supervisor',NULL,1,27.5,NULL),(35,'Aux.Comerc./Market.',NULL,1,27.5,NULL),(36,'Oficial Comerc./Market.',NULL,1,27.5,NULL),(37,'Coord. Comerc./Market.',NULL,1,27.5,NULL),(38,'Aux. Florista 1ª',NULL,1,27.5,NULL),(39,'Mozo/campo',NULL,1,27.5,NULL),(40,'Conductor B',NULL,1,27.5,NULL),(41,'Conductor C',NULL,1,27.5,NULL),(42,'Conductor C + E',NULL,1,27.5,NULL),(43,'Enrutador I',NULL,1,27.5,NULL),(44,'Enrutador II',NULL,1,27.5,NULL),(45,'Jefe Logística',NULL,1,27.5,NULL);
+INSERT INTO `professional_category` VALUES
+(1,'Mozos',5,1,27.5,NULL),
+(2,'Encargados',3,1,27.5,NULL),
+(4,'Comprador',3,1,27.5,NULL),
+(5,'Aux Administracion',NULL,1,27.5,NULL),
+(6,'Of Administracion',3,1,27.5,NULL),
+(7,'Jefe Administracion',2,1,27.5,NULL),
+(8,'Informatico',3,1,27.5,NULL),
+(9,'Directivo',1,0,27.5,NULL),
+(10,'Aux Ventas',4,1,27.5,NULL),
+(11,'Vendedor',4,1,27.5,NULL),
+(12,'Jefe de Ventas',4,0,27.5,NULL),
+(13,'Repartidor',5,1,27.5,NULL),
+(14,'Aprendices',NULL,1,27.5,NULL),
+(15,'Técnicos',2,1,27.5,NULL),
+(16,'Aux Florista',5,1,27.5,NULL),
+(17,'Florista',4,1,27.5,NULL),
+(18,'Jefe Floristas',2,1,27.5,NULL),
+(19,'Técnico marketing',3,1,27.5,NULL),
+(20,'Auxiliar marketing',4,1,27.5,NULL),
+(21,'Aux Informática',4,1,27.5,NULL),
+(22,'Peón agrícola',5,1,27.5,NULL),
+(23,'Oficial mantenimiento',4,1,27.5,NULL),
+(24,'Aux mantenimiento',5,1,27.5,NULL),
+(25,'Mozo Aeropuerto',5,1,27.5,NULL),
+(26,'Coordinador',2,1,27.5,NULL),
+(28,'Aux Logistica',4,1,27.5,NULL),
+(29,'Oficial Logistica',3,1,27.5,NULL),
+(30,'Subencargado',4,1,27.5,NULL),
+(31,'Conductor +3500kg',NULL,1,27.5,32400),
+(32,'Oficial 1ª',NULL,1,27.5,NULL),
+(33,'Oficial 2ª',NULL,1,27.5,NULL),
+(34,'Supervisor',NULL,1,27.5,NULL),
+(35,'Aux.Comerc./Market.',NULL,1,27.5,NULL),
+(36,'Oficial Comerc./Market.',NULL,1,27.5,NULL),
+(37,'Coord. Comerc./Market.',NULL,1,27.5,NULL),
+(38,'Aux. Florista 1ª',NULL,1,27.5,NULL),
+(39,'Mozo/campo',NULL,1,27.5,NULL),
+(40,'Conductor B',NULL,1,27.5,NULL),
+(41,'Conductor C',NULL,1,27.5,NULL),
+(42,'Conductor C + E',NULL,1,27.5,NULL),
+(43,'Enrutador I',NULL,1,27.5,NULL),
+(44,'Enrutador II',NULL,1,27.5,NULL),
+(45,'Jefe Logística',NULL,1,27.5,NULL);
/*!40000 ALTER TABLE `professional_category` ENABLE KEYS */;
UNLOCK TABLES;
@@ -748,7 +14178,13 @@ UNLOCK TABLES;
LOCK TABLES `profile_type` WRITE;
/*!40000 ALTER TABLE `profile_type` DISABLE KEYS */;
-INSERT INTO `profile_type` VALUES (1,'Laboral'),(2,'Personal'),(3,'Cliente'),(4,'Proveedor'),(5,'Banco'),(6,'Patronal');
+INSERT INTO `profile_type` VALUES
+(1,'Laboral'),
+(2,'Personal'),
+(3,'Cliente'),
+(4,'Proveedor'),
+(5,'Banco'),
+(6,'Patronal');
/*!40000 ALTER TABLE `profile_type` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
@@ -760,13 +14196,13 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
--- Dump completed on 2022-09-16 7:03:24
+-- Dump completed on 2022-11-21 7:59:07
USE `sage`;
--- MySQL dump 10.19 Distrib 10.3.34-MariaDB, for debian-linux-gnu (x86_64)
+-- MariaDB dump 10.19 Distrib 10.9.4-MariaDB, for Linux (x86_64)
--
-- Host: db.verdnatura.es Database: sage
-- ------------------------------------------------------
--- Server version 10.7.4-MariaDB-1:10.7.4+maria~bullseye-log
+-- Server version 10.7.6-MariaDB-1:10.7.6+maria~deb11-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@@ -784,7 +14220,34 @@ USE `sage`;
LOCK TABLES `TiposIva` WRITE;
/*!40000 ALTER TABLE `TiposIva` DISABLE KEYS */;
-INSERT INTO `TiposIva` VALUES (2,0,'Operaciones no sujetas',0.0000000000,0.0000000000,0.0000000000,'','4770000020','','','','','','','95B21A93-5910-489D-83BB-C32788C9B19D','','','','','','','','','',0,0),(4,0,'I.V.A. 4%',0.0000000000,4.0000000000,0.0000000000,'4720000004','4770000004','','6310000000','','','','','9E6160D5-984E-4643-ACBC-1EBC3BF73360','','','','','','','','','',0,0),(5,0,'I.V.A. 4% y R.E. 0.5%',0.0000000000,4.0000000000,0.5000000000,'','4770000504','4770000405','','','','','','DBEFA562-63FB-4FFC-8171-64F0C6F065FF','','','','','','','','','',0,0),(6,0,'H.P. IVA 4% CEE',0.0000000000,4.0000000000,0.0000000000,'4721000004','4771000004','','','','','','','DD0ECBA8-2EF5-425E-911B-623580BADA77','','','','','','','','','',0,1),(7,0,'H.P. IVA 10% CEE',0.0000000000,10.0000000000,0.0000000000,'4721000011','4771000010','','','','','','','593208CD-6F28-4489-B6EC-907AD689EAC9','','','','','','','','','',0,1),(8,0,'H.P. IVA 21% CEE',0.0000000000,21.0000000000,0.0000000000,'4721000021','4771000021','','','','','','','27061852-9BC1-4C4F-9B6E-69970E208F23','','','','','','','','','',0,1),(10,0,'I.V.A. 10% Nacional',0.0000000000,10.0000000000,0.0000000000,'4720000011','4770000010','','6290000553','','','','','828A9D6F-5C01-4C3A-918A-B2E4482830D3','','','','','','','','','',0,0),(11,0,'I.V.A. 10% y R.E. 1,4%',0.0000000000,10.0000000000,1.4000000000,'','4770000101','4770000110','','','','','','C1F2D910-83A1-4191-A76C-8B3D7AB98348','','','','','','','','','',0,0),(16,0,'I.V.A. Adqui. servicios CEE',0.0000000000,21.0000000000,0.0000000000,'4721000015','4771000016','','','','','','','E3EDE961-CE8F-41D4-9E6C-D8BCD32275A1','','','','','','','','','',0,1),(18,0,'H.P. Iva Importación 0% ISP',0.0000000000,0.0000000000,0.0000000000,'4720000005','4770000005','','','','','','','27AD4158-2349-49C2-B53A-A4E0EFAC5D09','','','','','','','','','',0,0),(20,0,'I.V.A 0% Nacional',0.0000000000,0.0000000000,0.0000000000,'4720000000','','','','','','','','B90B0FBD-E513-4F04-9721-C873504E08DF','','','','','','','','','',0,0),(21,0,'I.V.A. 21%',0.0000000000,21.0000000000,0.0000000000,'4720000021','4770000021','4770000000','','','','','','BA8C4E28-DCFA-4F7B-AE4F-CA044626B55E','','','','','','','','','',0,0),(22,0,'IVA 10% importaciones',0.0000000000,10.0000000000,0.0000000000,'4722000010','','','','','','','','540450A8-4B41-4607-96D1-E7F296FB6933','','','','','','','','','',0,0),(26,0,'I.V.A. 21% y R.E. 5,2%',0.0000000000,21.0000000000,5.2000000000,'4720000021','4770000215','4770000521','631000000','','','','','2BC0765F-7739-49AE-A5F0-28B648B81677','','','','','','','','','',0,0),(90,0,'IVA 21% importaciones',0.0000000000,21.0000000000,0.0000000000,'4722000021','','','','','','','','EB675F91-5FF2-4E26-A31E-EEB674125945','','','','','','','','','',0,0),(91,0,'IVA 0% importaciones',0.0000000000,0.0000000000,0.0000000000,'4723000000','','','','','','','','5E5EFA56-2A99-4D54-A16B-5D818274CA18','','','','','','','','','',0,0),(92,0,'8.5% comp. ganadera o pesquera',0.0000000000,8.5000000000,0.0000000000,'4720000000','4770000000','477000000','631000000','','','','','','','','','','','','','','',0,0),(93,0,'12% com. agrícola o forestal',0.0000000000,12.0000000000,0.0000000000,'4720000012','','','','','','','','267B1DDB-247F-4A71-AB95-3349FEFC5F92','','','','','','','','','',0,0),(94,0,'10,5% com. ganadera o pesquera',0.0000000000,10.5000000000,0.0000000000,'4770000000','4720000000','631000000','477000000','','','','','','','','','','','','','','',0,0),(108,0,'I.V.A. 8%',0.0000000000,8.0000000000,0.0000000000,'4720000000','4770000000','477000000','631000000','','','','','','','','','','','','','','',0,0),(109,0,'I.V.A. 8% y R.E. 1%',0.0000000000,8.0000000000,1.0000000000,'4720000000','4770000000','477000000','631000000','','','','','','','','','','','','','','',0,0),(110,0,'HP IVA Devengado Exento CEE',0.0000000000,0.0000000000,0.0000000000,'','4771000000','','','','','','','C605BC32-E161-42FD-83F3-3A66B1FBE399','','','','','','','','','',0,1),(111,0,'H.P. Iva Devengado Exento Ser',0.0000000000,0.0000000000,0.0000000000,'','4771000001','','','','','','','F1AEC4DC-AFE5-498E-A713-2648FFB6DA32','','','','','','','','','',0,0),(112,0,'H.P. IVA Devengado en exportac',0.0000000000,0.0000000000,0.0000000000,'','4770000002','','','','','','','F980AE74-BF75-4F4C-927F-0CCCE0DB8D15','','','','','','','','','',0,0),(113,0,'HP DEVENGADO 21 ISP ',0.0000000000,21.0000000000,0.0000000000,'4720000006','4770000006','','','','','','','728D7A76-E936-438C-AF05-3CA38FE16EA5','','','','','','','','','',0,0),(114,0,'HP.IVA NO DEDUCIBLE 10%',0.0000000000,0.0000000000,0.0000000000,'4720000026','','','','','','','','','','','','','','','','','',0,0),(115,0,'H.P. IVA Soportado Impor 4% ',0.0000000000,4.0000000000,0.0000000000,'4722000004','','','','','','','','','','','','','','','','','',0,0);
+INSERT INTO `TiposIva` VALUES
+(2,0,'Operaciones no sujetas',0.0000000000,0.0000000000,0.0000000000,'','4770000020','','','','','','','95B21A93-5910-489D-83BB-C32788C9B19D','','','','','','','','','',0,0),
+(4,0,'I.V.A. 4%',0.0000000000,4.0000000000,0.0000000000,'4720000004','4770000004','','6310000000','','','','','9E6160D5-984E-4643-ACBC-1EBC3BF73360','','','','','','','','','',0,0),
+(5,0,'I.V.A. 4% y R.E. 0.5%',0.0000000000,4.0000000000,0.5000000000,'','4770000504','4770000405','','','','','','DBEFA562-63FB-4FFC-8171-64F0C6F065FF','','','','','','','','','',0,0),
+(6,0,'H.P. IVA 4% CEE',0.0000000000,4.0000000000,0.0000000000,'4721000004','4771000004','','','','','','','DD0ECBA8-2EF5-425E-911B-623580BADA77','','','','','','','','','',0,1),
+(7,0,'H.P. IVA 10% CEE',0.0000000000,10.0000000000,0.0000000000,'4721000011','4771000010','','','','','','','593208CD-6F28-4489-B6EC-907AD689EAC9','','','','','','','','','',0,1),
+(8,0,'H.P. IVA 21% CEE',0.0000000000,21.0000000000,0.0000000000,'4721000021','4771000021','','','','','','','27061852-9BC1-4C4F-9B6E-69970E208F23','','','','','','','','','',0,1),
+(10,0,'I.V.A. 10% Nacional',0.0000000000,10.0000000000,0.0000000000,'4720000011','4770000010','','6290000553','','','','','828A9D6F-5C01-4C3A-918A-B2E4482830D3','','','','','','','','','',0,0),
+(11,0,'I.V.A. 10% y R.E. 1,4%',0.0000000000,10.0000000000,1.4000000000,'','4770000101','4770000110','','','','','','C1F2D910-83A1-4191-A76C-8B3D7AB98348','','','','','','','','','',0,0),
+(16,0,'I.V.A. Adqui. servicios CEE',0.0000000000,21.0000000000,0.0000000000,'4721000015','4771000016','','','','','','','E3EDE961-CE8F-41D4-9E6C-D8BCD32275A1','','','','','','','','','',0,1),
+(18,0,'H.P. Iva Importación 0% ISP',0.0000000000,0.0000000000,0.0000000000,'4720000005','4770000005','','','','','','','27AD4158-2349-49C2-B53A-A4E0EFAC5D09','','','','','','','','','',0,0),
+(20,0,'I.V.A 0% Nacional',0.0000000000,0.0000000000,0.0000000000,'4720000000','','','','','','','','B90B0FBD-E513-4F04-9721-C873504E08DF','','','','','','','','','',0,0),
+(21,0,'I.V.A. 21%',0.0000000000,21.0000000000,0.0000000000,'4720000021','4770000021','4770000000','','','','','','BA8C4E28-DCFA-4F7B-AE4F-CA044626B55E','','','','','','','','','',0,0),
+(22,0,'IVA 10% importaciones',0.0000000000,10.0000000000,0.0000000000,'4722000010','','','','','','','','540450A8-4B41-4607-96D1-E7F296FB6933','','','','','','','','','',0,0),
+(26,0,'I.V.A. 21% y R.E. 5,2%',0.0000000000,21.0000000000,5.2000000000,'4720000021','4770000215','4770000521','631000000','','','','','2BC0765F-7739-49AE-A5F0-28B648B81677','','','','','','','','','',0,0),
+(90,0,'IVA 21% importaciones',0.0000000000,21.0000000000,0.0000000000,'4722000021','','','','','','','','EB675F91-5FF2-4E26-A31E-EEB674125945','','','','','','','','','',0,0),
+(91,0,'IVA 0% importaciones',0.0000000000,0.0000000000,0.0000000000,'4723000000','','','','','','','','5E5EFA56-2A99-4D54-A16B-5D818274CA18','','','','','','','','','',0,0),
+(92,0,'8.5% comp. ganadera o pesquera',0.0000000000,8.5000000000,0.0000000000,'4720000000','4770000000','477000000','631000000','','','','','','','','','','','','','','',0,0),
+(93,0,'12% com. agrícola o forestal',0.0000000000,12.0000000000,0.0000000000,'4720000012','','','','','','','','267B1DDB-247F-4A71-AB95-3349FEFC5F92','','','','','','','','','',0,0),
+(94,0,'10,5% com. ganadera o pesquera',0.0000000000,10.5000000000,0.0000000000,'4770000000','4720000000','631000000','477000000','','','','','','','','','','','','','','',0,0),
+(108,0,'I.V.A. 8%',0.0000000000,8.0000000000,0.0000000000,'4720000000','4770000000','477000000','631000000','','','','','','','','','','','','','','',0,0),
+(109,0,'I.V.A. 8% y R.E. 1%',0.0000000000,8.0000000000,1.0000000000,'4720000000','4770000000','477000000','631000000','','','','','','','','','','','','','','',0,0),
+(110,0,'HP IVA Devengado Exento CEE',0.0000000000,0.0000000000,0.0000000000,'','4771000000','','','','','','','C605BC32-E161-42FD-83F3-3A66B1FBE399','','','','','','','','','',0,1),
+(111,0,'H.P. Iva Devengado Exento Ser',0.0000000000,0.0000000000,0.0000000000,'','4771000001','','','','','','','F1AEC4DC-AFE5-498E-A713-2648FFB6DA32','','','','','','','','','',0,0),
+(112,0,'H.P. IVA Devengado en exportac',0.0000000000,0.0000000000,0.0000000000,'','4770000002','','','','','','','F980AE74-BF75-4F4C-927F-0CCCE0DB8D15','','','','','','','','','',0,0),
+(113,0,'HP DEVENGADO 21 ISP ',0.0000000000,21.0000000000,0.0000000000,'4720000006','4770000006','','','','','','','728D7A76-E936-438C-AF05-3CA38FE16EA5','','','','','','','','','',0,0),
+(114,0,'HP.IVA NO DEDUCIBLE 10%',0.0000000000,0.0000000000,0.0000000000,'4720000026','','','','','','','','','','','','','','','','','',0,0),
+(115,0,'H.P. IVA Soportado Impor 4% ',0.0000000000,4.0000000000,0.0000000000,'4722000004','','','','','','','','','','','','','','','','','',0,0);
/*!40000 ALTER TABLE `TiposIva` ENABLE KEYS */;
UNLOCK TABLES;
@@ -794,7 +14257,66 @@ UNLOCK TABLES;
LOCK TABLES `TiposTransacciones` WRITE;
/*!40000 ALTER TABLE `TiposTransacciones` DISABLE KEYS */;
-INSERT INTO `TiposTransacciones` VALUES (1,'Rég.general/Oper.interiores bienes y serv.corrien.','',0,''),(2,'Régimen especial de bienes usados','E',0,''),(3,'Régimen especial de obj. de arte y antigüedades','E',0,''),(4,'Régimen especial agencias de viaje','',0,''),(5,'Régimen especial determinación proporcional','E',0,''),(6,'Oper.en rég.simplificado art.37.1.2º Rgto.IVA','E',0,''),(7,'Oper.en rég.simplificado art.37.1.1º Rgto.IVA','E',0,''),(8,'Oper.en rég.de agricultura, ganadería y pesca','E',0,''),(9,'Oper.en rég.especial de recargo de equivalencia','E',0,''),(10,'Entregas intracomunitarias','E',0,''),(11,'Entregas intermediarias intracomunitarias','E',0,''),(12,'Operaciones sujetas con derecho a devolución','E',0,''),(13,'Prest. Serv. No sujetas derecho devolución','E',0,''),(14,'Exportaciones definitivas','E',0,''),(15,'Envíos definitivos a Canarias, Ceuta y Melilla','E',0,''),(16,'Devoluciones en régimen de viajeros','E',0,''),(17,'Operaciones con áreas exentas','E',0,''),(18,'Operaciones exentas con derecho a deducción','E',0,''),(19,'Operaciones exentas sin derecho a deducción','E',0,''),(20,'Adquisic.intracomunitarias de bienes y serv.corr.','',-1,'P'),(21,'Adquisic.intracomunitarias de bienes de inversión','',-1,'P'),(22,'Adquisic.intermediarias intracomunitarias','',-1,'P'),(23,'Modif.autorizadas en quiebras y susp.de pagos','',0,''),(24,'Entrega de bienes inmuebles no habituales','E',0,''),(25,'Entrega de bienes de inversión','E',0,''),(26,'Op.finan. y Entregas oro inversión, no habituales','E',0,''),(27,'Inversión sujeto pasivo','',-1,'I'),(28,'Prestaciones intracomunitarias de servicios','E',0,''),(29,'Adquisiciones intracomunitarias de servicios','',-1,'I'),(30,'Operaciones interiores de bienes de inversión','R',0,''),(31,'Importaciones de bienes y servicios corrientes','R',0,''),(32,'Importaciones de bienes de inversión','R',0,''),(33,'Operaciones que generan inversión sujeto pasivo','E',0,''),(35,'Compensaciones en rég.de agricultura, gan.y pesca','R',0,''),(36,'Regularización de inversiones','R',0,''),(37,'Operaciones exentas','R',0,''),(38,'Operaciones no sujetas','',0,''),(39,'Gastos devengados op interiores (País Vasco)','R',0,''),(40,'Gastos Adq.intracom. bienes (País Vasco)','',-1,'P'),(42,'Gastos Adq.intermediarias intracom. (País Vasco)','',-1,'P'),(47,'Gastos Inversión sujeto pasivo (País Vasco)','',-1,'I'),(49,'Gastos Adq. intracom. servicios (País Vasco)','',-1,'I'),(51,'Gastos Importaciones (País Vasco)','R',0,''),(53,'Adquisiciones a agencias de viajes en rég.especial','R',0,''),(54,'Entregas intrac.posteriores a importaciones','E',0,''),(55,'Entregas intrac.post.impor.con representante','E',0,''),(56,'Import. bienes y serv. corrientes pdte. liquidar','R',0,''),(57,'Import. bienes de inversión pdte. liquidar','R',0,''),(58,'Servicios prestados por Internet desde España','E',0,''),(59,'Servicios prestados por Internet fuera de España','E',0,''),(60,'Régimen depósito distinto al aduanero','',0,''),(61,'Adquisición de bienes de inversión con ISP','',-1,'I'),(62,'Prest. Serv. Interiores clientes comunit./extranj.','',0,''),(63,'Prest. Serv. Ex. con derecho a deducc. comu./extr.','E',0,''),(64,'Prest. Serv. Ex. sin derecho a deducc. comu./extr.','E',0,''),(65,'Entregas No sujetas derecho devolución','E',0,''),(66,'Operaciones exentas art. 25 ley 19/1994 (Canarias)','',0,''),(67,'Entrega de bienes exenta \"Zona Especial Canaria\"','',0,''),(68,'Prestac. servicios exenta \"Zona Especial Canaria\"','',0,'');
+INSERT INTO `TiposTransacciones` VALUES
+(1,'Rég.general/Oper.interiores bienes y serv.corrien.','',0,''),
+(2,'Régimen especial de bienes usados','E',0,''),
+(3,'Régimen especial de obj. de arte y antigüedades','E',0,''),
+(4,'Régimen especial agencias de viaje','',0,''),
+(5,'Régimen especial determinación proporcional','E',0,''),
+(6,'Oper.en rég.simplificado art.37.1.2º Rgto.IVA','E',0,''),
+(7,'Oper.en rég.simplificado art.37.1.1º Rgto.IVA','E',0,''),
+(8,'Oper.en rég.de agricultura, ganadería y pesca','E',0,''),
+(9,'Oper.en rég.especial de recargo de equivalencia','E',0,''),
+(10,'Entregas intracomunitarias','E',0,''),
+(11,'Entregas intermediarias intracomunitarias','E',0,''),
+(12,'Operaciones sujetas con derecho a devolución','E',0,''),
+(13,'Prest. Serv. No sujetas derecho devolución','E',0,''),
+(14,'Exportaciones definitivas','E',0,''),
+(15,'Envíos definitivos a Canarias, Ceuta y Melilla','E',0,''),
+(16,'Devoluciones en régimen de viajeros','E',0,''),
+(17,'Operaciones con áreas exentas','E',0,''),
+(18,'Operaciones exentas con derecho a deducción','E',0,''),
+(19,'Operaciones exentas sin derecho a deducción','E',0,''),
+(20,'Adquisic.intracomunitarias de bienes y serv.corr.','',-1,'P'),
+(21,'Adquisic.intracomunitarias de bienes de inversión','',-1,'P'),
+(22,'Adquisic.intermediarias intracomunitarias','',-1,'P'),
+(23,'Modif.autorizadas en quiebras y susp.de pagos','',0,''),
+(24,'Entrega de bienes inmuebles no habituales','E',0,''),
+(25,'Entrega de bienes de inversión','E',0,''),
+(26,'Op.finan. y Entregas oro inversión, no habituales','E',0,''),
+(27,'Inversión sujeto pasivo','',-1,'I'),
+(28,'Prestaciones intracomunitarias de servicios','E',0,''),
+(29,'Adquisiciones intracomunitarias de servicios','',-1,'I'),
+(30,'Operaciones interiores de bienes de inversión','R',0,''),
+(31,'Importaciones de bienes y servicios corrientes','R',0,''),
+(32,'Importaciones de bienes de inversión','R',0,''),
+(33,'Operaciones que generan inversión sujeto pasivo','E',0,''),
+(35,'Compensaciones en rég.de agricultura, gan.y pesca','R',0,''),
+(36,'Regularización de inversiones','R',0,''),
+(37,'Operaciones exentas','R',0,''),
+(38,'Operaciones no sujetas','',0,''),
+(39,'Gastos devengados op interiores (País Vasco)','R',0,''),
+(40,'Gastos Adq.intracom. bienes (País Vasco)','',-1,'P'),
+(42,'Gastos Adq.intermediarias intracom. (País Vasco)','',-1,'P'),
+(47,'Gastos Inversión sujeto pasivo (País Vasco)','',-1,'I'),
+(49,'Gastos Adq. intracom. servicios (País Vasco)','',-1,'I'),
+(51,'Gastos Importaciones (País Vasco)','R',0,''),
+(53,'Adquisiciones a agencias de viajes en rég.especial','R',0,''),
+(54,'Entregas intrac.posteriores a importaciones','E',0,''),
+(55,'Entregas intrac.post.impor.con representante','E',0,''),
+(56,'Import. bienes y serv. corrientes pdte. liquidar','R',0,''),
+(57,'Import. bienes de inversión pdte. liquidar','R',0,''),
+(58,'Servicios prestados por Internet desde España','E',0,''),
+(59,'Servicios prestados por Internet fuera de España','E',0,''),
+(60,'Régimen depósito distinto al aduanero','',0,''),
+(61,'Adquisición de bienes de inversión con ISP','',-1,'I'),
+(62,'Prest. Serv. Interiores clientes comunit./extranj.','',0,''),
+(63,'Prest. Serv. Ex. con derecho a deducc. comu./extr.','E',0,''),
+(64,'Prest. Serv. Ex. sin derecho a deducc. comu./extr.','E',0,''),
+(65,'Entregas No sujetas derecho devolución','E',0,''),
+(66,'Operaciones exentas art. 25 ley 19/1994 (Canarias)','',0,''),
+(67,'Entrega de bienes exenta \"Zona Especial Canaria\"','',0,''),
+(68,'Prestac. servicios exenta \"Zona Especial Canaria\"','',0,'');
/*!40000 ALTER TABLE `TiposTransacciones` ENABLE KEYS */;
UNLOCK TABLES;
@@ -804,7 +14326,12 @@ UNLOCK TABLES;
LOCK TABLES `TiposRetencion` WRITE;
/*!40000 ALTER TABLE `TiposRetencion` DISABLE KEYS */;
-INSERT INTO `TiposRetencion` VALUES (1,'RETENCION ESTIMACION OBJETIVA',1.0000000000,'4730000000','4751000000',NULL,NULL,NULL,'03811652-0F3A-44A1-AE1C-B19624525D7F'),(2,'ACTIVIDADES AGRICOLAS O GANADERAS',2.0000000000,'4730000000','4751000000',NULL,NULL,NULL,'F3F91EF3-FED6-444D-B03C-75B639D13FB4'),(9,'ACTIVIDADES PROFESIONALES 2 PRIMEROS AÑOS',9.0000000000,'4730000000','4751000000',NULL,NULL,NULL,'73F95642-E951-4C91-970A-60C503A4792B'),(15,'ACTIVIDADES PROFESIONALES',15.0000000000,'4730000000','4751000000','6',NULL,NULL,'F6BDE0EE-3B01-4023-8FFF-A73AE9AC50D7'),(19,'ARRENDAMIENTO Y SUBARRENDAMIENTO',19.0000000000,'4730000000','4751000000','8',NULL,NULL,'09B033AE-16E5-4057-8D4A-A7710C8A4FB9');
+INSERT INTO `TiposRetencion` VALUES
+(1,'RETENCION ESTIMACION OBJETIVA',1.0000000000,'4730000000','4751000000',NULL,NULL,NULL,'03811652-0F3A-44A1-AE1C-B19624525D7F'),
+(2,'ACTIVIDADES AGRICOLAS O GANADERAS',2.0000000000,'4730000000','4751000000',NULL,NULL,NULL,'F3F91EF3-FED6-444D-B03C-75B639D13FB4'),
+(9,'ACTIVIDADES PROFESIONALES 2 PRIMEROS AÑOS',9.0000000000,'4730000000','4751000000',NULL,NULL,NULL,'73F95642-E951-4C91-970A-60C503A4792B'),
+(15,'ACTIVIDADES PROFESIONALES',15.0000000000,'4730000000','4751000000','6',NULL,NULL,'F6BDE0EE-3B01-4023-8FFF-A73AE9AC50D7'),
+(19,'ARRENDAMIENTO Y SUBARRENDAMIENTO',19.0000000000,'4730000000','4751000000','8',NULL,NULL,'09B033AE-16E5-4057-8D4A-A7710C8A4FB9');
/*!40000 ALTER TABLE `TiposRetencion` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
@@ -816,4 +14343,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
--- Dump completed on 2022-09-16 7:03:25
+-- Dump completed on 2022-11-21 7:59:07
diff --git a/db/dump/fixtures.sql b/db/dump/fixtures.sql
index 73a6ef687..1ea4fa114 100644
--- a/db/dump/fixtures.sql
+++ b/db/dump/fixtures.sql
@@ -14,10 +14,10 @@ INSERT INTO `salix`.`AccessToken` (`id`, `ttl`, `created`, `userId`)
('DEFAULT_TOKEN', '1209600', util.VN_CURDATE(), 66);
INSERT INTO `salix`.`printConfig` (`id`, `itRecipient`, `incidencesEmail`)
- VALUES
+ VALUES
(1, 'it@gotamcity.com', 'incidences@gotamcity.com');
-INSERT INTO `vn`.`ticketConfig` (`id`, `scopeDays`)
+INSERT INTO `vn`.`ticketConfig` (`id`, `scopeDays`)
VALUES
('1', '6');
@@ -45,8 +45,8 @@ INSERT INTO `account`.`roleConfig`(`id`, `mysqlPassword`, `rolePrefix`, `userPre
CALL `account`.`role_sync`;
-INSERT INTO `account`.`user`(`id`,`name`, `nickname`, `password`,`role`,`active`,`email`, `lang`, `image`)
- SELECT id, name, CONCAT(name, 'Nick'),MD5('nightmare'), id, 1, CONCAT(name, '@mydomain.com'), 'en', '4fa3ada0-3ac4-11eb-9ab8-27f6fc3b85fd'
+INSERT INTO `account`.`user`(`id`,`name`, `nickname`, `password`,`role`,`active`,`email`, `lang`, `image`, `bcryptPassword`)
+ SELECT id, name, CONCAT(name, 'Nick'),MD5('nightmare'), id, 1, CONCAT(name, '@mydomain.com'), 'en', '4fa3ada0-3ac4-11eb-9ab8-27f6fc3b85fd', '$2b$10$UzQHth.9UUQ1T5aiQJ21lOU0oVlbxoqH4PFM9V8T90KNSAcg0eEL2'
FROM `account`.`role` WHERE id <> 20
ORDER BY id;
@@ -60,7 +60,7 @@ INSERT INTO `vn`.`educationLevel` (`id`, `name`)
INSERT INTO `vn`.`worker`(`id`,`code`, `firstName`, `lastName`, `userFk`, `bossFk`)
SELECT id,UPPER(LPAD(role, 3, '0')), name, name, id, 9
- FROM `vn`.`user`;
+ FROM `account`.`user`;
UPDATE `vn`.`worker` SET bossFk = NULL WHERE id = 20;
UPDATE `vn`.`worker` SET bossFk = 20 WHERE id = 1 OR id = 9;
@@ -105,20 +105,8 @@ INSERT INTO `account`.`mailForward`(`account`, `forwardTo`)
VALUES
(1, 'employee@domain.local');
-INSERT INTO `vn`.`printer` (`id`, `name`, `path`, `isLabeler`)
- VALUES
- (1, 'printer1', 'path1', 0),
- (2, 'printer2', 'path2', 1);
-INSERT INTO `vn`.`worker`(`id`, `code`, `firstName`, `lastName`, `userFk`,`bossFk`, `phone`, `sectorFk`, `labelerFk`)
- VALUES
- (1106, 'LGN', 'David Charles', 'Haller', 1106, 19, 432978106, NULL, NULL),
- (1107, 'ANT', 'Hank' , 'Pym' , 1107, 19, 432978107, NULL, 1),
- (1108, 'DCX', 'Charles' , 'Xavier', 1108, 19, 432978108, 1, NULL),
- (1109, 'HLK', 'Bruce' , 'Banner', 1109, 19, 432978109, 1, 2),
- (1110, 'JJJ', 'Jessica' , 'Jones' , 1110, 19, 432978110, 2, 1);
-
INSERT INTO `vn`.`currency`(`id`, `code`, `name`, `ratio`)
VALUES
(1, 'EUR', 'Euro', 1),
@@ -159,6 +147,19 @@ INSERT INTO `vn`.`sector`(`id`, `description`, `warehouseFk`, `isPreviousPrepare
(1, 'First sector', 1, 1, 'FIRST'),
(2, 'Second sector', 2, 0, 'SECOND');
+INSERT INTO `vn`.`printer` (`id`, `name`, `path`, `isLabeler`, `sectorFk`)
+ VALUES
+ (1, 'printer1', 'path1', 0, 1),
+ (2, 'printer2', 'path2', 1, 1);
+
+INSERT INTO `vn`.`worker`(`id`, `code`, `firstName`, `lastName`, `userFk`,`bossFk`, `phone`, `sectorFk`, `labelerFk`)
+ VALUES
+ (1106, 'LGN', 'David Charles', 'Haller', 1106, 19, 432978106, NULL, NULL),
+ (1107, 'ANT', 'Hank' , 'Pym' , 1107, 19, 432978107, NULL, NULL),
+ (1108, 'DCX', 'Charles' , 'Xavier', 1108, 19, 432978108, 1, NULL),
+ (1109, 'HLK', 'Bruce' , 'Banner', 1109, 19, 432978109, 1, NULL),
+ (1110, 'JJJ', 'Jessica' , 'Jones' , 1110, 19, 432978110, 2, NULL);
+
INSERT INTO `vn`.`parking` (`id`, `column`, `row`, `sectorFk`, `code`, `pickingOrder`)
VALUES
('1', 700, '01', 1, '700-01', 70001),
@@ -216,18 +217,18 @@ INSERT INTO `vn`.`deliveryMethod`(`id`, `code`, `description`)
(3, 'PICKUP', 'Recogida'),
(4, 'OTHER', 'Otros');
-INSERT INTO `vn`.`agency`(`id`, `name`, `warehouseFk`, `bankFk__`, `warehouseAliasFk`)
+INSERT INTO `vn`.`agency`(`id`, `name`, `warehouseFk`, `warehouseAliasFk`)
VALUES
- (1, 'inhouse pickup' , 1, 1, 1),
- (2, 'Super-Man delivery' , 1, 1, 1),
- (3, 'Teleportation device' , 1, 1, 1),
- (4, 'Entanglement' , 1, 1, 1),
- (5, 'Quantum break device' , 1, 1, 1),
- (6, 'Walking' , 1, 1, 1),
- (7, 'Gotham247' , 1, 1, 1),
- (8, 'Gotham247Expensive' , 1, 1, 1),
- (9, 'Refund' , 1, 1, 1),
- (10, 'Other agency' , 1, 1, 1);
+ (1, 'inhouse pickup' , 1, 1),
+ (2, 'Super-Man delivery' , 1, 1),
+ (3, 'Teleportation device' , 1, 1),
+ (4, 'Entanglement' , 1, 1),
+ (5, 'Quantum break device' , 1, 1),
+ (6, 'Walking' , 1, 1),
+ (7, 'Gotham247' , 1, 1),
+ (8, 'Gotham247Expensive' , 1, 1),
+ (9, 'Refund' , 1, 1),
+ (10, 'Other agency' , 1, 1);
UPDATE `vn`.`agencyMode` SET `id` = 1 WHERE `name` = 'inhouse pickup';
UPDATE `vn`.`agencyMode` SET `id` = 2 WHERE `name` = 'Super-Man delivery';
@@ -353,48 +354,48 @@ INSERT INTO `vn`.`clientConfig`(`riskTolerance`, `maxCreditRows`)
INSERT INTO `vn`.`address`(`id`, `nickname`, `street`, `city`, `postalCode`, `provinceFk`, `phone`, `mobile`, `isActive`, `clientFk`, `agencyModeFk`, `longitude`, `latitude`, `isEqualizated`, `isDefaultAddress`)
VALUES
- (1, 'Bruce Wayne', '1007 Mountain Drive, Gotham', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1101, 2, NULL, NULL, 0, 1),
- (2, 'Petter Parker', '20 Ingram Street', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1102, 2, NULL, NULL, 0, 1),
- (3, 'Clark Kent', '344 Clinton Street', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1103, 2, NULL, NULL, 0, 1),
- (4, 'Tony Stark', '10880 Malibu Point', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1104, 2, NULL, NULL, 0, 1),
- (5, 'Max Eisenhardt', 'Unknown Whereabouts', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1105, 2, NULL, NULL, 0, 1),
- (6, 'DavidCharlesHaller', 'Evil hideout', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1106, 2, NULL, NULL, 0, 1),
- (7, 'Hank Pym', 'Anthill', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1107, 2, NULL, NULL, 0, 1),
- (8, 'Charles Xavier', '3800 Victory Pkwy, Cincinnati, OH 45207, USA', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1108, 2, NULL, NULL, 0, 1),
- (9, 'Bruce Banner', 'Somewhere in New York', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 1),
- (10, 'Jessica Jones', 'NYCC 2015 Poster', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1110, 2, NULL, NULL, 0, 1),
- (11, 'Missing', 'The space', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1111, 10, NULL, NULL, 0, 1),
- (12, 'Trash', 'New York city', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1112, 10, NULL, NULL, 0, 1),
- (101, 'Somewhere in Thailand', 'address 01', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 0),
- (102, 'Somewhere in Poland', 'address 02', 'Gotham', 46460, 1, 3333333333, 444444444, 1, 1109, 2, NULL, NULL, 0, 0),
- (103, 'Somewhere in Japan', 'address 03', 'Gotham', 46460, 1, 3333333333, 444444444, 1, 1109, 2, NULL, NULL, 0, 0),
- (104, 'Somewhere in Spain', 'address 04', 'Gotham', 46460, 1, 3333333333, 444444444, 1, 1109, 2, NULL, NULL, 0, 0),
- (105, 'Somewhere in Potugal', 'address 05', 'Gotham', 46460, 1, 5555555555, 666666666, 1, 1109, 2, NULL, NULL, 0, 0),
- (106, 'Somewhere in UK', 'address 06', 'Gotham', 46460, 1, 5555555555, 666666666, 1, 1109, 2, NULL, NULL, 0, 0),
- (107, 'Somewhere in Valencia', 'address 07', 'Gotham', 46460, 1, 5555555555, 666666666, 1, 1109, 2, NULL, NULL, 0, 0),
- (108, 'Somewhere in Gotham', 'address 08', 'Gotham', 46460, 1, 5555555555, 666666666, 1, 1109, 2, NULL, NULL, 0, 0),
- (109, 'Somewhere in London', 'address 09', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 0),
- (110, 'Somewhere in Algemesi', 'address 10', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 0),
- (111, 'Somewhere in Carlet', 'address 11', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 0),
- (112, 'Somewhere in Campanar', 'address 12', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 0),
- (113, 'Somewhere in Malilla', 'address 13', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 0),
- (114, 'Somewhere in France', 'address 14', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 0),
- (115, 'Somewhere in Birmingham', 'address 15', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 0),
- (116, 'Somewhere in Scotland', 'address 16', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 0),
- (117, 'Somewhere in nowhere', 'address 17', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 0),
- (118, 'Somewhere over the rainbow', 'address 18', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 0),
- (119, 'Somewhere in Alberic', 'address 19', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 0),
- (120, 'Somewhere in Montortal', 'address 20', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 0),
- (121, 'the bat cave', 'address 21', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1101, 2, NULL, NULL, 0, 0),
- (122, 'NY roofs', 'address 22', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1102, 2, NULL, NULL, 0, 0),
- (123, 'The phone box', 'address 23', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1103, 2, NULL, NULL, 0, 0),
- (124, 'Stark tower Gotham', 'address 24', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1104, 2, NULL, NULL, 0, 0),
- (125, 'The plastic cell', 'address 25', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1105, 2, NULL, NULL, 0, 0),
- (126, 'Many places', 'address 26', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1106, 2, NULL, NULL, 0, 0),
- (127, 'Your pocket', 'address 27', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1107, 2, NULL, NULL, 0, 0),
- (128, 'Cerebro', 'address 28', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1108, 2, NULL, NULL, 0, 0),
- (129, 'Luke Cages Bar', 'address 29', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1110, 2, NULL, NULL, 0, 0),
- (130, 'Non valid address', 'address 30', 'Gotham', 46460, 1, 1111111111, 222222222, 0, 1101, 2, NULL, NULL, 0, 0);
+ (1, 'Bruce Wayne', '1007 Mountain Drive, Gotham', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1101, 2, NULL, NULL, 0, 1),
+ (2, 'Petter Parker', '20 Ingram Street', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1102, 2, NULL, NULL, 0, 1),
+ (3, 'Clark Kent', '344 Clinton Street', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1103, 2, NULL, NULL, 0, 1),
+ (4, 'Tony Stark', '10880 Malibu Point', 'Gotham', 46460, 1, 1111111111, 222222222, 1 , 1104, 2, NULL, NULL, 0, 1),
+ (5, 'Max Eisenhardt', 'Unknown Whereabouts', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1105, 2, NULL, NULL, 0, 1),
+ (6, 'DavidCharlesHaller', 'Evil hideout', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1106, 2, NULL, NULL, 0, 1),
+ (7, 'Hank Pym', 'Anthill', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1107, 2, NULL, NULL, 0, 1),
+ (8, 'Charles Xavier', '3800 Victory Pkwy, Cincinnati, OH 45207, USA', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1108, 2, NULL, NULL, 0, 1),
+ (9, 'Bruce Banner', 'Somewhere in New York', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 1),
+ (10, 'Jessica Jones', 'NYCC 2015 Poster', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1110, 2, NULL, NULL, 0, 1),
+ (11, 'Missing', 'The space', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1111, 10, NULL, NULL, 0, 1),
+ (12, 'Trash', 'New York city', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1112, 10, NULL, NULL, 0, 1),
+ (101, 'Somewhere in Thailand', 'address 01', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 0),
+ (102, 'Somewhere in Poland', 'address 02', 'Gotham', 46460, 1, 3333333333, 444444444, 1, 1109, 2, NULL, NULL, 0, 0),
+ (103, 'Somewhere in Japan', 'address 03', 'Gotham', 46460, 1, 3333333333, 444444444, 1, 1109, 2, NULL, NULL, 0, 0),
+ (104, 'Somewhere in Spain', 'address 04', 'Gotham', 46460, 1, 3333333333, 444444444, 1, 1109, 2, NULL, NULL, 0, 0),
+ (105, 'Somewhere in Potugal', 'address 05', 'Gotham', 46460, 1, 5555555555, 666666666, 1, 1109, 2, NULL, NULL, 0, 0),
+ (106, 'Somewhere in UK', 'address 06', 'Gotham', 46460, 1, 5555555555, 666666666, 1, 1109, 2, NULL, NULL, 0, 0),
+ (107, 'Somewhere in Valencia', 'address 07', 'Gotham', 46460, 1, 5555555555, 666666666, 1, 1109, 2, NULL, NULL, 0, 0),
+ (108, 'Somewhere in Gotham', 'address 08', 'Gotham', 46460, 1, 5555555555, 666666666, 1, 1109, 2, NULL, NULL, 0, 0),
+ (109, 'Somewhere in London', 'address 09', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 0),
+ (110, 'Somewhere in Algemesi', 'address 10', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 0),
+ (111, 'Somewhere in Carlet', 'address 11', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 0),
+ (112, 'Somewhere in Campanar', 'address 12', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 0),
+ (113, 'Somewhere in Malilla', 'address 13', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 0),
+ (114, 'Somewhere in France', 'address 14', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 0),
+ (115, 'Somewhere in Birmingham', 'address 15', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 0),
+ (116, 'Somewhere in Scotland', 'address 16', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 0),
+ (117, 'Somewhere in nowhere', 'address 17', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 0),
+ (118, 'Somewhere over the rainbow', 'address 18', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 0),
+ (119, 'Somewhere in Alberic', 'address 19', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 0),
+ (120, 'Somewhere in Montortal', 'address 20', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1109, 2, NULL, NULL, 0, 0),
+ (121, 'the bat cave', 'address 21', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1101, 2, NULL, NULL, 0, 0),
+ (122, 'NY roofs', 'address 22', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1102, 2, NULL, NULL, 0, 0),
+ (123, 'The phone box', 'address 23', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1103, 2, NULL, NULL, 0, 0),
+ (124, 'Stark tower Gotham', 'address 24', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1104, 2, NULL, NULL, 0, 0),
+ (125, 'The plastic cell', 'address 25', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1105, 2, NULL, NULL, 0, 0),
+ (126, 'Many places', 'address 26', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1106, 2, NULL, NULL, 0, 0),
+ (127, 'Your pocket', 'address 27', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1107, 2, NULL, NULL, 0, 0),
+ (128, 'Cerebro', 'address 28', 'Gotham', 46460, 1, 1111111111, 222222222, 1, 1108, 2, NULL, NULL, 0, 0),
+ (129, 'Luke Cages Bar', 'address 29', 'Gotham', 'EC170150', 1, 1111111111, 222222222, 1, 1110, 2, NULL, NULL, 0, 0),
+ (130, 'Non valid address', 'address 30', 'Gotham', 46460, 1, 1111111111, 222222222, 0, 1101, 2, NULL, NULL, 0, 0);
INSERT INTO `vn`.`address`( `nickname`, `street`, `city`, `postalCode`, `provinceFk`, `isActive`, `clientFk`, `agencyModeFk`, `isDefaultAddress`)
SELECT name, CONCAT(name, 'Street'), 'GOTHAM', 46460, 1, 1, id, 2, 1
@@ -686,7 +687,11 @@ INSERT INTO `vn`.`ticket`(`id`, `priority`, `agencyModeFk`,`warehouseFk`,`routeF
(24 ,NULL, 8, 1, 7, util.VN_CURDATE(), util.VN_CURDATE(), 1101, 'Bruce Wayne', 1, NULL, 0, 5, 5, 1, util.VN_CURDATE()),
(25 ,NULL, 8, 1, NULL, util.VN_CURDATE(), util.VN_CURDATE(), 1101, 'Bruce Wayne', 1, NULL, 0, 1, 5, 1, util.VN_CURDATE()),
(26 ,NULL, 8, 1, NULL, util.VN_CURDATE(), util.VN_CURDATE(), 1101, 'An incredibly long alias for testing purposes', 1, NULL, 0, 1, 5, 1, util.VN_CURDATE()),
- (27 ,NULL, 8, 1, NULL, util.VN_CURDATE(), util.VN_CURDATE(), 1101, 'Wolverine', 1, NULL, 0, 1, 5, 1, util.VN_CURDATE());
+ (27 ,NULL, 8, 1, NULL, util.VN_CURDATE(), util.VN_CURDATE(), 1101, 'Wolverine', 1, NULL, 0, 1, 5, 1, util.VN_CURDATE()),
+ (28, 1, 8, 1, 1, util.VN_CURDATE(), DATE_ADD(util.VN_CURDATE(), INTERVAL + 1 DAY), 1103, 'Phone Box', 123, NULL, 0, 1, 5, 1, util.VN_CURDATE()),
+ (29, 1, 8, 1, 1, util.VN_CURDATE(), DATE_ADD(util.VN_CURDATE(), INTERVAL + 1 DAY), 1103, 'Phone Box', 123, NULL, 0, 1, 5, 1, util.VN_CURDATE()),
+ (30, 1, 8, 1, 1, util.VN_CURDATE(), DATE_ADD(util.VN_CURDATE(), INTERVAL + 1 DAY), 1103, 'Phone Box', 123, NULL, 0, 1, 5, 1, util.VN_CURDATE()),
+ (31, 1, 8, 1, 1, DATE_ADD(util.VN_CURDATE(), INTERVAL + 1 DAY), DATE_ADD(util.VN_CURDATE(), INTERVAL + 2 DAY), 1103, 'Phone Box', 123, NULL, 0, 1, 5, 1, util.VN_CURDATE());
INSERT INTO `vn`.`ticketObservation`(`id`, `ticketFk`, `observationTypeFk`, `description`)
VALUES
@@ -918,21 +923,21 @@ INSERT INTO `vn`.`expeditionStateType`(`id`, `description`, `code`)
(3, 'Perdida', 'LOST');
-INSERT INTO `vn`.`expedition`(`id`, `agencyModeFk`, `ticketFk`, `isBox`, `created`, `itemFk`, `counter`, `workerFk`, `externalId`, `packagingFk`, `stateTypeFk`)
+INSERT INTO `vn`.`expedition`(`id`, `agencyModeFk`, `ticketFk`, `freightItemFk`, `created`, `counter`, `workerFk`, `externalId`, `packagingFk`, `stateTypeFk`, `hostFk`)
VALUES
- (1, 1, 1, 71, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), 15, 1, 18, 'UR9000006041', 94, 1),
- (2, 1, 1, 71, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), 16, 2, 18, 'UR9000006041', 94, 1),
- (3, 1, 1, 71, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), NULL, 3, 18, 'UR9000006041', 94, 2),
- (4, 1, 1, 71, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), NULL, 4, 18, 'UR9000006041', 94, 2),
- (5, 1, 2, 71, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), NULL, 1, 18, NULL, 94, 3),
- (6, 7, 3, 71, DATE_ADD(util.VN_CURDATE(), INTERVAL -2 MONTH), NULL, 1, 18, NULL, 94, 3),
- (7, 2, 4, 71, DATE_ADD(util.VN_CURDATE(), INTERVAL -3 MONTH), NULL, 1, 18, NULL, 94, NULL),
- (8, 3, 5, 71, DATE_ADD(util.VN_CURDATE(), INTERVAL -4 MONTH), NULL, 1, 18, NULL, 94, 1),
- (9, 3, 6, 71, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), NULL, 1, 18, NULL, 94, 2),
- (10, 7, 7, 71, NOW(), NULL, 1, 18, NULL, 94, 3),
- (11, 7, 8, 71, NOW(), NULL, 1, 18, NULL, 94, 3),
- (12, 7, 9, 71, NOW(), NULL, 1, 18, NULL, 94, 3),
- (13, 1, 10, 71, NOW(), NULL, 1, 18, NULL, 94, 3);
+ (1, 1, 1, 71, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), 1, 18, 'UR9000006041', 94, 1, 'pc1'),
+ (2, 1, 1, 71, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), 2, 18, 'UR9000006041', 94, 1, NULL),
+ (3, 1, 1, 71, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), 3, 18, 'UR9000006041', 94, 2, NULL),
+ (4, 1, 1, 71, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), 4, 18, 'UR9000006041', 94, 2, NULL),
+ (5, 1, 2, 71, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), 1, 18, NULL, 94, 3, NULL),
+ (6, 7, 3, 71, DATE_ADD(util.VN_CURDATE(), INTERVAL -2 MONTH), 1, 18, NULL, 94, 3, NULL),
+ (7, 2, 4, 71, DATE_ADD(util.VN_CURDATE(), INTERVAL -3 MONTH), 1, 18, NULL, 94, NULL,NULL),
+ (8, 3, 5, 71, DATE_ADD(util.VN_CURDATE(), INTERVAL -4 MONTH), 1, 18, NULL, 94, 1, NULL),
+ (9, 3, 6, 71, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), 1, 18, NULL, 94, 2, NULL),
+ (10, 7, 7, 71, NOW(), 1, 18, NULL, 94, 3, NULL),
+ (11, 7, 8, 71, NOW(), 1, 18, NULL, 94, 3, NULL),
+ (12, 7, 9, 71, NOW(), 1, 18, NULL, 94, 3, NULL),
+ (13, 1, 10,71, NOW(), 1, 18, NULL, 94, 3, NULL);
INSERT INTO `vn`.`expeditionState`(`id`, `created`, `expeditionFk`, `typeFk`, `userFk`)
@@ -984,7 +989,11 @@ INSERT INTO `vn`.`sale`(`id`, `itemFk`, `ticketFk`, `concept`, `quantity`, `pric
(30, 4, 18, 'Melee weapon heavy shield 1x0.5m', 20, 1.72, 0, 0, 0, util.VN_CURDATE()),
(31, 2, 23, 'Melee weapon combat fist 15cm', -5, 7.08, 0, 0, 0, util.VN_CURDATE()),
(32, 1, 24, 'Ranged weapon longbow 2m', -1, 8.07, 0, 0, 0, util.VN_CURDATE()),
- (33, 5, 14, 'Ranged weapon pistol 9mm', 50, 1.79, 0, 0, 0, util.VN_CURDATE());
+ (33, 5, 14, 'Ranged weapon pistol 9mm', 50, 1.79, 0, 0, 0, util.VN_CURDATE()),
+ (34, 4, 28, 'Melee weapon heavy shield 1x0.5m', 20, 1.72, 0, 0, 0, util.VN_CURDATE()),
+ (35, 4, 29, 'Melee weapon heavy shield 1x0.5m', 20, 1.72, 0, 0, 0, util.VN_CURDATE()),
+ (36, 4, 30, 'Melee weapon heavy shield 1x0.5m', 20, 1.72, 0, 0, 0, util.VN_CURDATE()),
+ (37, 4, 31, 'Melee weapon heavy shield 1x0.5m', 20, 1.72, 0, 0, 0, util.VN_CURDATE());
INSERT INTO `vn`.`saleChecked`(`saleFk`, `isChecked`)
VALUES
@@ -1126,11 +1135,11 @@ INSERT INTO `vn`.`saleComponent`(`saleFk`, `componentFk`, `value`)
(32, 36, -92.324),
(32, 39, 0.994);
-INSERT INTO `vn`.`itemShelving` (`itemFk`, `shelvingFk`, `shelve`, `visible`, `grouping`, `packing`, `userFk`)
+INSERT INTO `vn`.`itemShelving` (`itemFk`, `shelvingFk`, `visible`, `grouping`, `packing`, `userFk`)
VALUES
- (2, 'GVC', 'A', 1, 1, 1, 1106),
- (4, 'HEJ', 'A', 1, 1, 1, 1106),
- (1, 'UXN', 'A', 2, 12, 12, 1106);
+ (2, 'GVC', 1, 1, 1, 1106),
+ (4, 'HEJ', 1, 1, 1, 1106),
+ (1, 'UXN', 2, 12, 12, 1106);
INSERT INTO `vn`.`itemShelvingSale` (`itemShelvingFk`, `saleFk`, `quantity`, `created`, `userFk`)
VALUES
@@ -1146,10 +1155,11 @@ INSERT INTO `vncontrol`.`accion`(`accion_id`, `accion`)
INSERT INTO `vn`.`saleTracking`(`saleFk`, `isChecked`, `created`, `originalQuantity`, `workerFk`, `actionFk`, `id`, `stateFk`)
VALUES
- (1, 0, util.VN_CURDATE(), 5, 55, 3, 1, 14),
- (1, 1, util.VN_CURDATE(), 5, 54, 3, 2, 8),
- (2, 1, util.VN_CURDATE(), 10, 40, 4, 3, 8),
- (3, 1, util.VN_CURDATE(), 2, 40, 4, 4, 8);
+ (1, 0, util.VN_CURDATE(), 5, 55, 3, 1, 14),
+ (1, 1, util.VN_CURDATE(), 5, 54, 3, 2, 8),
+ (2, 1, util.VN_CURDATE(), 10, 40, 4, 3, 8),
+ (3, 1, util.VN_CURDATE(), 2, 40, 4, 4, 8),
+ (31, 1, util.VN_CURDATE(), -5, 40, 4, 5, 8);
INSERT INTO `vn`.`itemBarcode`(`id`, `itemFk`, `code`)
VALUES
@@ -1325,9 +1335,9 @@ INSERT INTO `vn`.`itemTypeTag`(`id`, `itemTypeFk`, `tagFk`, `priority`)
CALL `vn`.`itemRefreshTags`(NULL);
-INSERT INTO `vn`.`itemLog` (`id`, `originFk`, `userFk`, `action`, `description`)
+INSERT INTO `vn`.`itemLog` (`id`, `originFk`, `userFk`, `action`, `description`, `changedModel`, `oldInstance`, `newInstance`, `changedModelId`, `changedModelValue`)
VALUES
- ('1', '1', '1', 'insert', 'We made a change!');
+ ('1', '1', '1', 'insert', 'We made a change!', 'Item', '{}', '{}', 1, '1');
INSERT INTO `vn`.`recovery`(`id`, `clientFk`, `started`, `finished`, `amount`, `period`)
VALUES
@@ -1356,7 +1366,8 @@ INSERT INTO `vn`.`ticketWeekly`(`ticketFk`, `weekDay`)
(2, 1),
(3, 2),
(4, 4),
- (5, 6);
+ (5, 6),
+ (15, 6);
INSERT INTO `vn`.`travel`(`id`,`shipped`, `landed`, `warehouseInFk`, `warehouseOutFk`, `agencyModeFk`, `m3`, `kg`,`ref`, `totalEntries`, `cargoSupplierFk`)
VALUES
@@ -1369,23 +1380,16 @@ INSERT INTO `vn`.`travel`(`id`,`shipped`, `landed`, `warehouseInFk`, `warehouseO
(7, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), 5, 4, 1, 50.00, 500, 'seventh travel', 2, 1),
(8, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), 5, 1, 1, 50.00, 500, 'eight travel', 1, 2);
-INSERT INTO `vn`.`entry`(`id`, `supplierFk`, `created`, `travelFk`, `isConfirmed`, `companyFk`, `ref`,`isExcludedFromAvailable`, `isRaid`, `notes`, `evaNotes`)
+INSERT INTO `vn`.`entry`(`id`, `supplierFk`, `created`, `travelFk`, `isConfirmed`, `companyFk`, `invoiceNumber`, `reference`, `isExcludedFromAvailable`, `isRaid`, `notes`, `evaNotes`)
VALUES
- (1, 1, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), 1, 1, 442, 'Movement 1', 0, 0, '', ''),
- (2, 2, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), 2, 0, 442, 'Movement 2', 0, 0, 'this is the note two', 'observation two'),
- (3, 1, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), 3, 0, 442, 'Movement 3', 0, 0, 'this is the note three', 'observation three'),
- (4, 2, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), 2, 0, 69, 'Movement 4', 0, 0, 'this is the note four', 'observation four'),
- (5, 2, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), 5, 0, 442, 'Movement 5', 0, 0, 'this is the note five', 'observation five'),
- (6, 2, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), 6, 0, 442, 'Movement 6', 0, 0, 'this is the note six', 'observation six'),
- (7, 2, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), 7, 0, 442, 'Movement 7', 0, 0, 'this is the note seven', 'observation seven'),
- (8, 2, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), 7, 0, 442, 'Movement 8', 1, 1, '', '');
-
-INSERT INTO `vn`.`claimRatio`(`clientFk`, `yearSale`, `claimAmount`, `claimingRate`, `priceIncreasing`, `packingRate`)
- VALUES
- (1101, 500, NULL, 0.00, 0.00, 1.00),
- (1102, 1000, 2.00, 0.01, 0.05, 1.00),
- (1103, 2000, 0.00, 0.00, 0.02, 1.00),
- (1104, 2500, 150.00, 0.02, 0.10, 1.00);
+ (1, 1, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), 1, 1, 442, 'IN2001', 'Movement 1', 0, 0, '', ''),
+ (2, 2, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), 2, 0, 442, 'IN2002', 'Movement 2', 0, 0, 'this is the note two', 'observation two'),
+ (3, 1, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), 3, 0, 442, 'IN2003', 'Movement 3', 0, 0, 'this is the note three', 'observation three'),
+ (4, 2, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), 2, 0, 69, 'IN2004', 'Movement 4', 0, 0, 'this is the note four', 'observation four'),
+ (5, 2, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), 5, 0, 442, 'IN2005', 'Movement 5', 0, 0, 'this is the note five', 'observation five'),
+ (6, 2, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), 6, 0, 442, 'IN2006', 'Movement 6', 0, 0, 'this is the note six', 'observation six'),
+ (7, 2, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), 7, 0, 442, 'IN2007', 'Movement 7', 0, 0, 'this is the note seven', 'observation seven'),
+ (8, 2, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH), 7, 0, 442, 'IN2008', 'Movement 8', 1, 1, '', '');
INSERT INTO `bs`.`waste`(`buyer`, `year`, `week`, `family`, `itemFk`, `itemTypeFk`, `saleTotal`, `saleWaste`, `rate`)
VALUES
@@ -1405,23 +1409,23 @@ INSERT INTO `bs`.`waste`(`buyer`, `year`, `week`, `family`, `itemFk`, `itemTypeF
('HankPym', YEAR(DATE_ADD(util.VN_CURDATE(), INTERVAL -1 WEEK)), WEEK(DATE_ADD(util.VN_CURDATE(), INTERVAL -1 WEEK), 1), 'Miscellaneous Accessories', 6, 1, '186', '0', '0.0'),
('HankPym', YEAR(DATE_ADD(util.VN_CURDATE(), INTERVAL -1 WEEK)), WEEK(DATE_ADD(util.VN_CURDATE(), INTERVAL -1 WEEK), 1), 'Adhesives', 7, 1, '277', '0', '0.0');
-INSERT INTO `vn`.`buy`(`id`,`entryFk`,`itemFk`,`buyingValue`,`quantity`,`packageFk`,`stickers`,`freightValue`,`packageValue`,`comissionValue`,`packing`,`grouping`,`groupingMode`,`location`,`price1`,`price2`,`price3`,`producer`,`printedStickers`,`isChecked`,`isIgnored`,`weight`, `created`)
+INSERT INTO `vn`.`buy`(`id`,`entryFk`,`itemFk`,`buyingValue`,`quantity`,`packageFk`,`stickers`,`freightValue`,`packageValue`,`comissionValue`,`packing`,`grouping`,`groupingMode`,`location`,`price1`,`price2`,`price3`, `printedStickers`,`isChecked`,`isIgnored`,`weight`, `created`)
VALUES
- (1, 1, 1, 50, 5000, 4, 1, 1.500, 1.500, 0.000, 1, 1, 1, NULL, 0.00, 99.6, 99.4, NULL, 0, 1, 0, 1, DATE_ADD(util.VN_CURDATE(), INTERVAL -2 MONTH)),
- (2, 2, 1, 50, 100, 4, 1, 1.500, 1.500, 0.000, 1, 1, 1, NULL, 0.00, 99.6, 99.4, NULL, 0, 1, 0, 1, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH)),
- (3, 3, 1, 50, 100, 4, 1, 1.500, 1.500, 0.000, 1, 1, 0, NULL, 0.00, 99.6, 99.4, NULL, 0, 1, 0, 1, util.VN_CURDATE()),
- (4, 2, 2, 5, 450, 3, 1, 1.000, 1.000, 0.000, 10, 10, 0, NULL, 0.00, 7.30, 7.00, NULL, 0, 1, 0, 2.5, util.VN_CURDATE()),
- (5, 3, 3, 55, 500, 5, 1, 1.000, 1.000, 0.000, 1, 1, 0, NULL, 0.00, 78.3, 75.6, NULL, 0, 1, 0, 2.5, util.VN_CURDATE()),
- (6, 4, 8, 50, 1000, 4, 1, 1.000, 1.000, 0.000, 1, 1, 1, NULL, 0.00, 99.6, 99.4, NULL, 0, 1, 0, 2.5, util.VN_CURDATE()),
- (7, 4, 9, 20, 1000, 3, 1, 0.500, 0.500, 0.000, 10, 10, 1, NULL, 0.00, 30.50, 29.00, NULL, 0, 1, 0, 2.5, util.VN_CURDATE()),
- (8, 4, 4, 1.25, 1000, 3, 1, 0.500, 0.500, 0.000, 10, 10, 1, NULL, 0.00, 1.75, 1.67, NULL, 0, 1, 0, 2.5, util.VN_CURDATE()),
- (9, 4, 4, 1.25, 1000, 3, 1, 0.500, 0.500, 0.000, 10, 10, 1, NULL, 0.00, 1.75, 1.67, NULL, 0, 1, 0, 4, util.VN_CURDATE()),
- (10, 5, 1, 50, 10, 4, 1, 2.500, 2.500, 0.000, 1, 1, 1, NULL, 0.00, 99.6, 99.4, NULL, 0, 1, 0, 4, util.VN_CURDATE()),
- (11, 5, 4, 1.25, 10, 3, 1, 2.500, 2.500, 0.000, 10, 10, 1, NULL, 0.00, 1.75, 1.67, NULL, 0, 1, 0, 4, util.VN_CURDATE()),
- (12, 6, 4, 1.25, 0, 3, 1, 2.500, 2.500, 0.000, 10, 10, 1, NULL, 0.00, 1.75, 1.67, NULL, 0, 1, 0, 4, util.VN_CURDATE()),
- (13, 7, 1, 50, 0, 3, 1, 2.000, 2.000, 0.000, 1, 1, 1, NULL, 0.00, 99.6, 99.4, NULL, 0, 1, 0, 4, util.VN_CURDATE()),
- (14, 7, 2, 5, 0, 3, 1, 2.000, 2.000, 0.000, 10, 10, 1, NULL, 0.00, 7.30, 7.00, NULL, 0, 1, 0, 4, util.VN_CURDATE()),
- (15, 7, 4, 1.25, 0, 3, 1, 2.000, 2.000, 0.000, 10, 10, 1, NULL, 0.00, 1.75, 1.67, NULL, 0, 1, 0, 4, util.VN_CURDATE());
+ (1, 1, 1, 50, 5000, 4, 1, 1.500, 1.500, 0.000, 1, 1, 1, NULL, 0.00, 99.6, 99.4, 0, 1, 0, 1, DATE_ADD(util.VN_CURDATE(), INTERVAL -2 MONTH)),
+ (2, 2, 1, 50, 100, 4, 1, 1.500, 1.500, 0.000, 1, 1, 1, NULL, 0.00, 99.6, 99.4, 0, 1, 0, 1, DATE_ADD(util.VN_CURDATE(), INTERVAL -1 MONTH)),
+ (3, 3, 1, 50, 100, 4, 1, 1.500, 1.500, 0.000, 1, 1, 0, NULL, 0.00, 99.6, 99.4, 0, 1, 0, 1, util.VN_CURDATE()),
+ (4, 2, 2, 5, 450, 3, 1, 1.000, 1.000, 0.000, 10, 10, 0, NULL, 0.00, 7.30, 7.00, 0, 1, 0, 2.5, util.VN_CURDATE()),
+ (5, 3, 3, 55, 500, 5, 1, 1.000, 1.000, 0.000, 1, 1, 0, NULL, 0.00, 78.3, 75.6, 0, 1, 0, 2.5, util.VN_CURDATE()),
+ (6, 4, 8, 50, 1000, 4, 1, 1.000, 1.000, 0.000, 1, 1, 1, NULL, 0.00, 99.6, 99.4, 0, 1, 0, 2.5, util.VN_CURDATE()),
+ (7, 4, 9, 20, 1000, 3, 1, 0.500, 0.500, 0.000, 10, 10, 1, NULL, 0.00, 30.50, 29.00, 0, 1, 0, 2.5, util.VN_CURDATE()),
+ (8, 4, 4, 1.25, 1000, 3, 1, 0.500, 0.500, 0.000, 10, 10, 1, NULL, 0.00, 1.75, 1.67, 0, 1, 0, 2.5, util.VN_CURDATE()),
+ (9, 4, 4, 1.25, 1000, 3, 1, 0.500, 0.500, 0.000, 10, 10, 1, NULL, 0.00, 1.75, 1.67, 0, 1, 0, 4, util.VN_CURDATE()),
+ (10, 5, 1, 50, 10, 4, 1, 2.500, 2.500, 0.000, 1, 1, 1, NULL, 0.00, 99.6, 99.4, 0, 1, 0, 4, util.VN_CURDATE()),
+ (11, 5, 4, 1.25, 10, 3, 1, 2.500, 2.500, 0.000, 10, 10, 1, NULL, 0.00, 1.75, 1.67, 0, 1, 0, 4, util.VN_CURDATE()),
+ (12, 6, 4, 1.25, 0, 3, 1, 2.500, 2.500, 0.000, 10, 10, 1, NULL, 0.00, 1.75, 1.67, 0, 1, 0, 4, util.VN_CURDATE()),
+ (13, 7, 1, 50, 0, 3, 1, 2.000, 2.000, 0.000, 1, 1, 1, NULL, 0.00, 99.6, 99.4, 0, 1, 0, 4, util.VN_CURDATE()),
+ (14, 7, 2, 5, 0, 3, 1, 2.000, 2.000, 0.000, 10, 10, 1, NULL, 0.00, 7.30, 7.00, 0, 1, 0, 4, util.VN_CURDATE()),
+ (15, 7, 4, 1.25, 0, 3, 1, 2.000, 2.000, 0.000, 10, 10, 1, NULL, 0.00, 1.75, 1.67, 0, 1, 0, 4, util.VN_CURDATE());
INSERT INTO `hedera`.`order`(`id`, `date_send`, `customer_id`, `delivery_method_id`, `agency_id`, `address_id`, `company_id`, `note`, `source_app`, `confirmed`,`total`, `date_make`, `first_row_stamp`, `confirm_date`)
VALUES
@@ -1743,12 +1747,12 @@ INSERT INTO `vn`.`claimState`(`id`, `code`, `description`, `roleFk`, `priority`,
( 6, 'mana', 'Mana', 1, 4, 0),
( 7, 'lack', 'Faltas', 1, 2, 0);
-INSERT INTO `vn`.`claim`(`id`, `ticketCreated`, `claimStateFk`, `clientFk`, `workerFk`, `responsibility`, `isChargedToMana`, `created`, `packages`)
+INSERT INTO `vn`.`claim`(`id`, `ticketCreated`, `claimStateFk`, `clientFk`, `workerFk`, `responsibility`, `isChargedToMana`, `created`, `packages`, `rma`)
VALUES
- (1, util.VN_CURDATE(), 1, 1101, 18, 3, 0, util.VN_CURDATE(), 0),
- (2, util.VN_CURDATE(), 2, 1101, 18, 3, 0, util.VN_CURDATE(), 1),
- (3, util.VN_CURDATE(), 3, 1101, 18, 1, 1, util.VN_CURDATE(), 5),
- (4, util.VN_CURDATE(), 3, 1104, 18, 5, 0, util.VN_CURDATE(), 10);
+ (1, util.VN_CURDATE(), 1, 1101, 18, 3, 0, util.VN_CURDATE(), 0, '02676A049183'),
+ (2, util.VN_CURDATE(), 2, 1101, 18, 3, 0, util.VN_CURDATE(), 1, NULL),
+ (3, util.VN_CURDATE(), 3, 1101, 18, 1, 1, util.VN_CURDATE(), 5, NULL),
+ (4, util.VN_CURDATE(), 3, 1104, 18, 5, 0, util.VN_CURDATE(), 10, NULL);
INSERT INTO `vn`.`claimObservation` (`claimFk`, `workerFk`, `text`, `created`)
VALUES
@@ -1785,10 +1789,27 @@ INSERT INTO `vn`.`claimEnd`(`id`, `saleFk`, `claimFk`, `workerFk`, `claimDestina
(1, 31, 4, 21, 2),
(2, 32, 3, 21, 3);
-INSERT INTO `vn`.`claimConfig`(`id`, `pickupContact`, `maxResponsibility`)
+INSERT INTO `vn`.`claimConfig`(`id`, `maxResponsibility`)
VALUES
- (1, 'Contact description', 50),
- (2, 'Contact description', 30);
+ (1, 50),
+ (2, 30);
+
+INSERT INTO `vn`.`claimRatio`(`clientFk`, `yearSale`, `claimAmount`, `claimingRate`, `priceIncreasing`, `packingRate`)
+ VALUES
+ (1101, 500, NULL, 0.00, 0.00, 1.00),
+ (1102, 1000, 2.00, 0.01, 0.05, 1.00),
+ (1103, 2000, 0.00, 0.00, 0.02, 1.00),
+ (1104, 2500, 150.00, 0.02, 0.10, 1.00);
+
+INSERT INTO vn.claimRma (`id`, `code`, `created`, `workerFk`)
+ VALUES
+ (1, '02676A049183', DEFAULT, 1106),
+ (2, '02676A049183', DEFAULT, 1106),
+ (3, '02676A049183', DEFAULT, 1107),
+ (4, '02676A049183', DEFAULT, 1107),
+ (5, '01837B023653', DEFAULT, 1106);
+
+
INSERT INTO `hedera`.`tpvMerchant`(`id`, `description`, `companyFk`, `bankFk`, `secretKey`)
VALUES
@@ -1841,7 +1862,8 @@ INSERT INTO `vn`.`receipt`(`id`, `invoiceFk`, `amountPaid`, `payed`, `workerFk`,
(1, 'Cobro web', 100.50, util.VN_CURDATE(), 9, 1, 1101, util.VN_CURDATE(), 442, 1),
(2, 'Cobro web', 200.50, DATE_ADD(util.VN_CURDATE(), INTERVAL -5 DAY), 9, 1, 1101, DATE_ADD(util.VN_CURDATE(), INTERVAL -5 DAY), 442, 1),
(3, 'Cobro en efectivo', 300.00, DATE_ADD(util.VN_CURDATE(), INTERVAL -10 DAY), 9, 1, 1102, DATE_ADD(util.VN_CURDATE(), INTERVAL -10 DAY), 442, 0),
- (4, 'Cobro en efectivo', 400.00, DATE_ADD(util.VN_CURDATE(), INTERVAL -15 DAY), 9, 1, 1103, DATE_ADD(util.VN_CURDATE(), INTERVAL -15 DAY), 442, 0);
+ (4, 'Cobro en efectivo', 400.00, DATE_ADD(util.VN_CURDATE(), INTERVAL -15 DAY), 9, 1, 1103, DATE_ADD(util.VN_CURDATE(), INTERVAL -15 DAY), 442, 0),
+ (5, 'Compensación', 400.00, DATE_ADD(util.VN_CURDATE(), INTERVAL -15 DAY), 9, 3, 1103, DATE_ADD(util.VN_CURDATE(), INTERVAL -15 DAY), 442, 0);
INSERT INTO `vn`.`workerTeam`(`id`, `team`, `workerFk`)
VALUES
@@ -1932,30 +1954,34 @@ INSERT INTO `vn`.`workerBusinessType` (`id`, `name`, `isFullTime`, `isPermanent`
(100, 'INDEFINIDO A TIEMPO COMPLETO', 1, 1, 1),
(109, 'CONVERSION DE TEMPORAL EN INDEFINIDO T.COMPLETO', 1, 1, 1);
+INSERT INTO `vn`.`businessCategory` (`id`, `description`, `rate`)
+ VALUES
+ (1, 'basic employee', 1);
+
UPDATE `vn`.`business` b
SET `rate` = 7,
- `workerBusinessCategoryFk` = 12,
+ `workerBusinessCategoryFk` = 1,
`workerBusinessTypeFk` = 100,
`amount` = 900.50
WHERE b.id = 1;
UPDATE `vn`.`business` b
SET `rate` = 7,
- `workerBusinessCategoryFk` = 12,
+ `workerBusinessCategoryFk` = 1,
`workerBusinessTypeFk` = 100,
`amount` = 1263.03
WHERE b.id = 1106;
UPDATE `vn`.`business` b
SET `rate` = 7,
- `workerBusinessCategoryFk` = 12,
+ `workerBusinessCategoryFk` = 1,
`workerBusinessTypeFk` = 100,
`amount` = 2000
WHERE b.id = 1107;
UPDATE `vn`.`business` b
SET `rate` = 7,
- `workerBusinessCategoryFk` = 12,
+ `workerBusinessCategoryFk` = 1,
`workerBusinessTypeFk` = 100,
`amount` = 1500
WHERE b.id = 1108;
@@ -2037,6 +2063,7 @@ INSERT INTO `vn`.`zoneIncluded` (`zoneFk`, `geoFk`, `isIncluded`)
(8, 4, 0),
(8, 5, 0),
(8, 1, 1),
+ (9, 7, 1),
(10, 14, 1);
INSERT INTO `vn`.`zoneEvent`(`zoneFk`, `type`, `dated`)
@@ -2256,12 +2283,16 @@ INSERT INTO `vn`.`zoneEvent`(`zoneFk`, `type`, `started`, `ended`)
VALUES
(9, 'range', DATE_ADD(util.VN_CURDATE(), INTERVAL -1 YEAR), DATE_ADD(util.VN_CURDATE(), INTERVAL +1 YEAR));
-INSERT INTO `vn`.`workerTimeControl`(`userFk`, `timed`, `manual`, `direction`)
+INSERT INTO `vn`.`workerTimeControl`(`userFk`, `timed`, `manual`, `direction`, `isSendMail`)
VALUES
- (1106, CONCAT(util.VN_CURDATE(), ' 07:00'), TRUE, 'in'),
- (1106, CONCAT(util.VN_CURDATE(), ' 10:00'), TRUE, 'middle'),
- (1106, CONCAT(util.VN_CURDATE(), ' 10:20'), TRUE, 'middle'),
- (1106, CONCAT(util.VN_CURDATE(), ' 14:50'), TRUE, 'out');
+ (1106, CONCAT(util.VN_CURDATE(), ' 07:00'), TRUE, 'in', 0),
+ (1106, CONCAT(util.VN_CURDATE(), ' 10:00'), TRUE, 'middle', 0),
+ (1106, CONCAT(util.VN_CURDATE(), ' 10:20'), TRUE, 'middle', 0),
+ (1106, CONCAT(util.VN_CURDATE(), ' 14:50'), TRUE, 'out', 0),
+ (1107, CONCAT(util.VN_CURDATE(), ' 07:00'), TRUE, 'in', 1),
+ (1107, CONCAT(util.VN_CURDATE(), ' 10:00'), TRUE, 'middle', 1),
+ (1107, CONCAT(util.VN_CURDATE(), ' 10:20'), TRUE, 'middle', 1),
+ (1107, CONCAT(util.VN_CURDATE(), ' 14:50'), TRUE, 'out', 1);
INSERT INTO `vn`.`dmsType`(`id`, `name`, `path`, `readRoleFk`, `writeRoleFk`, `code`)
VALUES
@@ -2540,10 +2571,6 @@ UPDATE `vn`.`route`
UPDATE `vn`.`route`
SET `invoiceInFk`=2
WHERE `id`=2;
-INSERT INTO `bs`.`salesPerson` (`workerFk`, `year`, `month`, `portfolioWeight`)
- VALUES
- (18, YEAR(util.VN_CURDATE()), MONTH(util.VN_CURDATE()), 807.23),
- (19, YEAR(util.VN_CURDATE()), MONTH(util.VN_CURDATE()), 34.40);
INSERT INTO `bs`.`sale` (`saleFk`, `amount`, `dated`, `typeFk`, `clientFk`)
VALUES
@@ -2625,7 +2652,7 @@ INSERT INTO `vn`.`mdbVersion` (`app`, `branchFk`, `version`)
INSERT INTO `vn`.`accountingConfig` (`id`, `minDate`, `maxDate`)
VALUES
- (1, '2022-01-01', '2023-01-01');
+ (1, CONCAT(YEAR(DATE_ADD(util.VN_CURDATE(), INTERVAL -1 YEAR)), '-01-01'), CONCAT(YEAR(DATE_ADD(util.VN_CURDATE(), INTERVAL +1 YEAR)), '-01-01'));
INSERT INTO `vn`.`saleGroup` (`userFk`, `parkingFk`, `sectorFk`)
@@ -2648,6 +2675,41 @@ INSERT INTO `vn`.`workerTimeControlConfig` (`id`, `dayBreak`, `dayBreakDriver`,
VALUES
(1, 43200, 32400, 129600, 259200, 604800, '', '', 'Leidos.exito', 'Leidos.error', 'timeControl', 5.33, 0.33, 40, '22:00:00', '06:00:00', 57600, 1200, 18000, 57600, 6, 13);
+INSERT INTO `vn`.`host` (`id`, `code`, `description`, `warehouseFk`, `bankFk`)
+ VALUES
+ (1, 'pc1', 'pc host', 1, 1);
+
+INSERT INTO `vn`.`packingSite` (`id`, `code`, `hostFk`, `monitorId`)
+ VALUES
+ (1, 'h1', 1, '');
+
+INSERT INTO `vn`.`packingSiteConfig` (`shinobiUrl`, `shinobiToken`, `shinobiGroupKey`, `avgBoxingTime`)
+ VALUES
+ ('', 'SHINNOBI_TOKEN', 'GROUP_TOKEN', 6000);
+INSERT INTO `util`.`notificationConfig`
+ SET `cleanDays` = 90;
+
+INSERT INTO `util`.`notification` (`id`, `name`, `description`)
+ VALUES
+ (1, 'print-email', 'notification fixture one'),
+ (4, 'supplier-pay-method-update', 'A supplier pay method has been updated');
+
+INSERT INTO `util`.`notificationAcl` (`notificationFk`, `roleFk`)
+ VALUES
+ (1, 9);
+
+INSERT INTO `util`.`notificationQueue` (`id`, `notificationFk`, `params`, `authorFk`, `status`, `created`)
+ VALUES
+ (1, 'print-email', '{"id": "1"}', 9, 'pending', util.VN_CURDATE()),
+ (2, 'print-email', '{"id": "2"}', null, 'pending', util.VN_CURDATE()),
+ (3, 'print-email', null, null, 'pending', util.VN_CURDATE());
+
+INSERT INTO `util`.`notificationSubscription` (`notificationFk`, `userFk`)
+ VALUES
+ (1, 1109),
+ (1, 1110),
+ (3, 1109);
+
INSERT INTO `vn`.`routeConfig` (`id`, `defaultWorkCenterFk`)
VALUES
(1, 9);
@@ -2663,3 +2725,42 @@ INSERT INTO `vn`.`collection` (`id`, `created`, `workerFk`, `stateFk`, `itemPack
INSERT INTO `vn`.`ticketCollection` (`ticketFk`, `collectionFk`, `created`, `level`, `wagon`, `smartTagFk`, `usedShelves`, `itemCount`, `liters`)
VALUES
(9, 3, util.VN_NOW(), NULL, 0, NULL, NULL, NULL, NULL);
+
+INSERT INTO `vn`.`saleCloned` (`saleClonedFk`, `saleOriginalFk`)
+ VALUES
+ (29, 25);
+
+UPDATE `account`.`user`
+ SET `hasGrant` = 1
+ WHERE `id` = 66;
+
+INSERT INTO `vn`.`ticketLog` (`originFk`, userFk, `action`, changedModel, oldInstance, newInstance, changedModelId, `description`)
+ VALUES
+ (7, 18, 'update', 'Sale', '{"quantity":1}', '{"quantity":10}', 1, NULL),
+ (7, 18, 'update', 'Ticket', '{"quantity":1,"concept":"Chest ammo box"}', '{"quantity":10,"concept":"Chest ammo box"}', 1, NULL),
+ (7, 18, 'update', 'Sale', '{"price":3}', '{"price":5}', 1, NULL),
+ (7, 18, 'update', NULL, NULL, NULL, NULL, "Cambio cantidad Melee weapon heavy shield 1x0.5m de '5' a '10'");
+
+
+INSERT INTO `vn`.`osTicketConfig` (`id`, `host`, `user`, `password`, `oldStatus`, `newStatusId`, `day`, `comment`, `hostDb`, `userDb`, `passwordDb`, `portDb`, `responseType`, `fromEmailId`, `replyTo`)
+ VALUES
+ (0, 'http://localhost:56596/scp', 'ostadmin', 'Admin1', 'open', 3, 60, 'Este CAU se ha cerrado automáticamente. Si el problema persiste responda a este mensaje.', 'localhost', 'osticket', 'osticket', 40003, 'reply', 1, 'all');
+
+INSERT INTO `vn`.`mdbApp` (`app`, `baselineBranchFk`, `userFk`, `locked`)
+ VALUES
+ ('foo', 'master', NULL, NULL),
+ ('bar', 'test', 9, util.VN_NOW());
+INSERT INTO `vn`.`ticketLog` (`id`, `originFk`, `userFk`, `action`, `changedModel`, `oldInstance`, `newInstance`, `changedModelId`)
+ VALUES
+ (1, 1, 9, 'insert', 'Ticket', '{}', '{"clientFk":1, "nickname": "Bat cave"}', 1);
+
+
+INSERT INTO `salix`.`url` (`appName`, `environment`, `url`)
+ VALUES
+ ('lilium', 'dev', 'http://localhost:8080/#/'),
+ ('salix', 'dev', 'http://localhost:5000/#!/');
+
+INSERT INTO `vn`.`payDemDetail` (`id`, `detail`)
+ VALUES
+ (1, 1);
+
diff --git a/db/dump/structure.sql b/db/dump/structure.sql
index 402c8e695..47fdd6d74 100644
--- a/db/dump/structure.sql
+++ b/db/dump/structure.sql
@@ -1,8 +1,8 @@
--- MariaDB dump 10.19 Distrib 10.5.12-MariaDB, for debian-linux-gnu (x86_64)
+-- MariaDB dump 10.19 Distrib 10.9.4-MariaDB, for Linux (x86_64)
--
--- Host: 127.0.0.1 Database: account
+-- Host: db.verdnatura.es Database: account
-- ------------------------------------------------------
--- Server version 10.7.3-MariaDB-1:10.7.3+maria~focal
+-- Server version 10.7.6-MariaDB-1:10.7.6+maria~deb11-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@@ -19,6 +19,7 @@
-- Current Database: `account`
--
+
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `account` /*!40100 DEFAULT CHARACTER SET utf8mb3 */;
USE `account`;
@@ -107,10 +108,9 @@ DROP TABLE IF EXISTS `accountDovecot`;
/*!50001 DROP VIEW IF EXISTS `accountDovecot`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `accountDovecot` (
- `name` tinyint NOT NULL,
- `password` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `accountDovecot` AS SELECT
+ 1 AS `name`,
+ 1 AS `password` */;
SET character_set_client = @saved_cs_client;
--
@@ -140,10 +140,9 @@ DROP TABLE IF EXISTS `emailUser`;
/*!50001 DROP VIEW IF EXISTS `emailUser`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `emailUser` (
- `userFk` tinyint NOT NULL,
- `email` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `emailUser` AS SELECT
+ 1 AS `userFk`,
+ 1 AS `email` */;
SET character_set_client = @saved_cs_client;
--
@@ -161,7 +160,7 @@ CREATE TABLE `ldapConfig` (
`userDn` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'The base DN for users',
`groupDn` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'The base DN for groups',
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='LDAP server configuration parameters';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='LDAP server configuration parameters';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -214,7 +213,7 @@ CREATE TABLE `mailClientAccess` (
`description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `mailFrom` (`client`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -260,7 +259,7 @@ CREATE TABLE `mailSenderAccess` (
`description` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `mailFrom` (`sender`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -271,9 +270,8 @@ DROP TABLE IF EXISTS `myRole`;
/*!50001 DROP VIEW IF EXISTS `myRole`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `myRole` (
- `id` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `myRole` AS SELECT
+ 1 AS `id` */;
SET character_set_client = @saved_cs_client;
--
@@ -284,16 +282,15 @@ DROP TABLE IF EXISTS `myUser`;
/*!50001 DROP VIEW IF EXISTS `myUser`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `myUser` (
- `id` tinyint NOT NULL,
- `name` tinyint NOT NULL,
- `active` tinyint NOT NULL,
- `email` tinyint NOT NULL,
- `nickname` tinyint NOT NULL,
- `lang` tinyint NOT NULL,
- `role` tinyint NOT NULL,
- `recoverPass` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `myUser` AS SELECT
+ 1 AS `id`,
+ 1 AS `name`,
+ 1 AS `active`,
+ 1 AS `email`,
+ 1 AS `nickname`,
+ 1 AS `lang`,
+ 1 AS `role`,
+ 1 AS `recoverPass` */;
SET character_set_client = @saved_cs_client;
--
@@ -425,7 +422,7 @@ CREATE TABLE `sambaConfig` (
`adPassword` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'Active directory password',
`verifyCert` tinyint(3) unsigned NOT NULL DEFAULT 1 COMMENT 'Whether to verify server certificate',
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Global configuration parameters for accounts';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Global configuration parameters for accounts';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -454,6 +451,7 @@ CREATE TABLE `user` (
`password` char(64) COLLATE utf8mb3_unicode_ci NOT NULL COMMENT 'Deprecated',
`recoverPass` tinyint(3) unsigned NOT NULL DEFAULT 1 COMMENT 'Deprecated',
`sync` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'Deprecated',
+ `hasGrant` tinyint(1) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`),
UNIQUE KEY `mail` (`email`),
@@ -612,7 +610,7 @@ CREATE TABLE `userConfig` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`loginKey` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -653,6 +651,8 @@ CREATE TABLE `userSync` (
--
-- Dumping routines for database 'account'
--
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `myUser_checkLogin` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -660,8 +660,6 @@ CREATE TABLE `userSync` (
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `myUser_checkLogin`() RETURNS tinyint(1)
READS SQL DATA
@@ -692,6 +690,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `myUser_getId` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -699,8 +699,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `myUser_getId`() RETURNS int(11)
READS SQL DATA
@@ -728,6 +726,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `myUser_getName` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -735,10 +735,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `myUser_getName`() RETURNS varchar(30) CHARSET utf8mb3
+CREATE DEFINER=`root`@`localhost` FUNCTION `myUser_getName`() RETURNS varchar(30) CHARSET utf8
NO SQL
DETERMINISTIC
BEGIN
@@ -763,6 +761,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `myUser_hasRole` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -770,8 +770,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `myUser_hasRole`(vRoleName VARCHAR(255)) RETURNS tinyint(1)
DETERMINISTIC
@@ -789,6 +787,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `myUser_hasRoleId` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -796,8 +796,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `myUser_hasRoleId`(vRoleId INT) RETURNS tinyint(1)
DETERMINISTIC
@@ -815,6 +813,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `passwordGenerate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -822,10 +822,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `passwordGenerate`() RETURNS text CHARSET utf8mb3 COLLATE utf8mb3_unicode_ci
+CREATE DEFINER=`root`@`localhost` FUNCTION `passwordGenerate`() RETURNS text CHARSET utf8 COLLATE utf8_unicode_ci
READS SQL DATA
BEGIN
/**
@@ -879,6 +877,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `toUnixDays` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -886,8 +886,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `toUnixDays`(vDate DATE) RETURNS int(11)
DETERMINISTIC
@@ -905,6 +903,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `user_getMysqlRole` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -912,10 +912,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `user_getMysqlRole`(vUserName VARCHAR(255)) RETURNS varchar(255) CHARSET utf8mb3 COLLATE utf8mb3_unicode_ci
+CREATE DEFINER=`root`@`localhost` FUNCTION `user_getMysqlRole`(vUserName VARCHAR(255)) RETURNS varchar(255) CHARSET utf8 COLLATE utf8_unicode_ci
DETERMINISTIC
BEGIN
/**
@@ -940,6 +938,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `user_getNameFromId` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -947,10 +947,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `user_getNameFromId`(vSelf INT) RETURNS varchar(30) CHARSET utf8mb3 COLLATE utf8mb3_unicode_ci
+CREATE DEFINER=`root`@`localhost` FUNCTION `user_getNameFromId`(vSelf INT) RETURNS varchar(30) CHARSET utf8 COLLATE utf8_unicode_ci
DETERMINISTIC
BEGIN
/**
@@ -972,6 +970,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `user_hasRole` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -979,8 +979,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `user_hasRole`(vUserName VARCHAR(255), vRoleName VARCHAR(255)) RETURNS tinyint(1)
DETERMINISTIC
@@ -1008,6 +1006,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `user_hasRoleId` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -1015,8 +1015,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `user_hasRoleId`(vUser VARCHAR(255), vRoleId INT) RETURNS tinyint(1)
DETERMINISTIC
@@ -1044,6 +1042,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myUser_changePassword` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -1051,8 +1051,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myUser_changePassword`(vOldPassword VARCHAR(255), vPassword VARCHAR(255))
BEGIN
@@ -1069,6 +1067,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myUser_login` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -1076,8 +1076,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myUser_login`(vUserName VARCHAR(255), vPassword VARCHAR(255))
READS SQL DATA
@@ -1107,6 +1105,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myUser_loginWithKey` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -1114,8 +1114,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myUser_loginWithKey`(vUserName VARCHAR(255), vKey VARCHAR(255))
READS SQL DATA
@@ -1141,6 +1139,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myUser_loginWithName` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -1148,8 +1148,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myUser_loginWithName`(vUserName VARCHAR(255))
READS SQL DATA
@@ -1178,6 +1176,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myUser_logout` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -1185,8 +1185,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myUser_logout`()
BEGIN
@@ -1202,6 +1200,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myUser_restorePassword` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -1209,8 +1209,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myUser_restorePassword`(vVerificationToken VARCHAR(255), vPassword VARCHAR(255))
BEGIN
@@ -1227,6 +1225,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `role_checkName` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -1234,8 +1234,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `role_checkName`(vRoleName VARCHAR(255))
BEGIN
@@ -1256,6 +1254,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `role_getDescendents` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -1263,8 +1263,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `role_getDescendents`(vSelf INT)
BEGIN
@@ -1333,6 +1331,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `role_sync` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -1340,8 +1340,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `role_sync`()
BEGIN
@@ -1397,6 +1395,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `role_syncPrivileges` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -1404,8 +1404,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection = utf8mb3_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `role_syncPrivileges`()
BEGIN
@@ -1975,6 +1973,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `user_changePassword` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -1982,8 +1982,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `user_changePassword`(vSelf INT, vOldPassword VARCHAR(255), vPassword VARCHAR(255))
BEGIN
@@ -2013,6 +2011,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `user_checkName` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -2020,8 +2020,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `user_checkName`(vUserName VARCHAR(255))
BEGIN
@@ -2041,6 +2039,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `user_checkPassword` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -2048,8 +2048,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `user_checkPassword`(vPassword VARCHAR(255))
BEGIN
@@ -2109,6 +2107,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `user_restorePassword` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -2116,8 +2116,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `user_restorePassword`(vSelf INT, vVerificationToken VARCHAR(255), vPassword VARCHAR(255))
BEGIN
@@ -2147,6 +2145,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `user_setPassword` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -2154,8 +2154,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `user_setPassword`(vSelf INT, vPassword VARCHAR(255))
BEGIN
@@ -2196,16 +2194,15 @@ DROP TABLE IF EXISTS `bajasLaborales`;
/*!50001 DROP VIEW IF EXISTS `bajasLaborales`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `bajasLaborales` (
- `firstname` tinyint NOT NULL,
- `name` tinyint NOT NULL,
- `businessFk` tinyint NOT NULL,
- `lastDate` tinyint NOT NULL,
- `endContract` tinyint NOT NULL,
- `type` tinyint NOT NULL,
- `dias` tinyint NOT NULL,
- `userFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `bajasLaborales` AS SELECT
+ 1 AS `firstname`,
+ 1 AS `name`,
+ 1 AS `businessFk`,
+ 1 AS `lastDate`,
+ 1 AS `endContract`,
+ 1 AS `type`,
+ 1 AS `dias`,
+ 1 AS `userFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -2320,20 +2317,6 @@ DELIMITER ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
---
--- Table structure for table `clientNewBorn__`
---
-
-DROP TABLE IF EXISTS `clientNewBorn__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `clientNewBorn__` (
- `clientFk` int(11) NOT NULL,
- `shipped` date NOT NULL,
- PRIMARY KEY (`clientFk`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Listado de clientes que se consideran nuevos a efectos de cobrar la comision adicional del comercial';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
--
-- Table structure for table `compradores`
--
@@ -2454,14 +2437,6 @@ CREATE TABLE `indicators` (
`lastMonthLostClients` int(11) DEFAULT NULL,
`lastMonthNewClients` int(11) DEFAULT NULL,
`lastMonthWebBuyingRate` decimal(5,4) DEFAULT NULL,
- `productionHours__` decimal(10,1) DEFAULT NULL,
- `dailyWorkersCost__` decimal(10,0) DEFAULT NULL,
- `volumeM3__` decimal(10,0) DEFAULT NULL,
- `salesValue__` decimal(10,0) DEFAULT NULL,
- `valueM3__` decimal(10,0) DEFAULT NULL,
- `hoursM3__` decimal(5,2) DEFAULT NULL,
- `workerCostM3__` decimal(10,1) DEFAULT NULL,
- `salesWorkersCostRate__` decimal(10,2) DEFAULT NULL,
`thisWeekSales` decimal(10,2) DEFAULT NULL,
`lastYearWeekSales` decimal(10,2) DEFAULT NULL,
PRIMARY KEY (`updated`)
@@ -2498,39 +2473,30 @@ DROP TABLE IF EXISTS `lastIndicators`;
/*!50001 DROP VIEW IF EXISTS `lastIndicators`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `lastIndicators` (
- `updated` tinyint NOT NULL,
- `lastYearSales` tinyint NOT NULL,
- `incLastYearSales` tinyint NOT NULL,
- `totalGreuge` tinyint NOT NULL,
- `incTotalGreuge` tinyint NOT NULL,
- `latePaymentRate` tinyint NOT NULL,
- `incLatePaymentRate` tinyint NOT NULL,
- `countEmployee` tinyint NOT NULL,
- `incCountEmployee` tinyint NOT NULL,
- `averageMana` tinyint NOT NULL,
- `incAverageMana` tinyint NOT NULL,
- `bankingPool` tinyint NOT NULL,
- `incbankingPool` tinyint NOT NULL,
- `lastMonthActiveClients` tinyint NOT NULL,
- `incLastMonthActiveClients` tinyint NOT NULL,
- `lastMonthLostClients` tinyint NOT NULL,
- `incLastMonthLostClients` tinyint NOT NULL,
- `lastMonthNewClients` tinyint NOT NULL,
- `incLastMonthNewClients` tinyint NOT NULL,
- `lastMonthWebBuyingRate` tinyint NOT NULL,
- `incLastMonthWebBuyingRate` tinyint NOT NULL,
- `productionHours__` tinyint NOT NULL,
- `dailyWorkersCost__` tinyint NOT NULL,
- `volumeM3__` tinyint NOT NULL,
- `salesValue__` tinyint NOT NULL,
- `valueM3__` tinyint NOT NULL,
- `hoursM3__` tinyint NOT NULL,
- `workerCostM3__` tinyint NOT NULL,
- `salesWorkersCostRate__` tinyint NOT NULL,
- `thisWeekSales` tinyint NOT NULL,
- `lastYearWeekSales` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `lastIndicators` AS SELECT
+ 1 AS `updated`,
+ 1 AS `lastYearSales`,
+ 1 AS `incLastYearSales`,
+ 1 AS `totalGreuge`,
+ 1 AS `incTotalGreuge`,
+ 1 AS `latePaymentRate`,
+ 1 AS `incLatePaymentRate`,
+ 1 AS `countEmployee`,
+ 1 AS `incCountEmployee`,
+ 1 AS `averageMana`,
+ 1 AS `incAverageMana`,
+ 1 AS `bankingPool`,
+ 1 AS `incbankingPool`,
+ 1 AS `lastMonthActiveClients`,
+ 1 AS `incLastMonthActiveClients`,
+ 1 AS `lastMonthLostClients`,
+ 1 AS `incLastMonthLostClients`,
+ 1 AS `lastMonthNewClients`,
+ 1 AS `incLastMonthNewClients`,
+ 1 AS `lastMonthWebBuyingRate`,
+ 1 AS `incLastMonthWebBuyingRate`,
+ 1 AS `thisWeekSales`,
+ 1 AS `lastYearWeekSales` */;
SET character_set_client = @saved_cs_client;
--
@@ -2553,24 +2519,7 @@ CREATE TABLE `m3` (
`dayName` varchar(12) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`euros` decimal(10,2) DEFAULT 0.00,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `mermasCache__`
---
-
-DROP TABLE IF EXISTS `mermasCache__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `mermasCache__` (
- `Comprador` varchar(3) COLLATE utf8mb3_unicode_ci NOT NULL,
- `año` int(4) NOT NULL,
- `Valor_Compra` decimal(10,0) DEFAULT NULL,
- `Faltas` decimal(10,0) DEFAULT NULL,
- `Basura` decimal(10,0) DEFAULT NULL,
- PRIMARY KEY (`Comprador`,`año`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -2591,7 +2540,7 @@ CREATE TABLE `nightTask` (
`error` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`errorCode` varchar(10) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -2657,7 +2606,7 @@ CREATE TABLE `nightTaskConfig` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`logMail` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -2668,13 +2617,12 @@ DROP TABLE IF EXISTS `packingSpeed`;
/*!50001 DROP VIEW IF EXISTS `packingSpeed`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `packingSpeed` (
- `hora` tinyint NOT NULL,
- `minuto` tinyint NOT NULL,
- `cm3` tinyint NOT NULL,
- `warehouse_id` tinyint NOT NULL,
- `odbc_date` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `packingSpeed` AS SELECT
+ 1 AS `hora`,
+ 1 AS `minuto`,
+ 1 AS `cm3`,
+ 1 AS `warehouse_id`,
+ 1 AS `odbc_date` */;
SET character_set_client = @saved_cs_client;
--
@@ -2695,7 +2643,7 @@ CREATE TABLE `payMethodClient` (
KEY `FkDateClientPayMethod` (`dated`,`clientFk`),
CONSTRAINT `FkClientPayMethod` FOREIGN KEY (`clientFk`) REFERENCES `vn`.`client` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `FkPayMethodClient` FOREIGN KEY (`payMethodFk`) REFERENCES `vn`.`payMethod` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -2713,23 +2661,7 @@ CREATE TABLE `payMethodClientEvolution` (
`amount` decimal(10,2) NOT NULL,
`equalizationTax` decimal(10,2) NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `produccion__`
---
-
-DROP TABLE IF EXISTS `produccion__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `produccion__` (
- `dated` date NOT NULL,
- `m3` int(11) NOT NULL DEFAULT 0,
- `cost` int(11) NOT NULL DEFAULT 0,
- `eurosM3` decimal(10,2) NOT NULL DEFAULT 0.00,
- PRIMARY KEY (`dated`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -2740,13 +2672,12 @@ DROP TABLE IF EXISTS `s1_ticketDetail`;
/*!50001 DROP VIEW IF EXISTS `s1_ticketDetail`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `s1_ticketDetail` (
- `ticketFk` tinyint NOT NULL,
- `ticketAmount` tinyint NOT NULL,
- `ticketLines` tinyint NOT NULL,
- `ticketM3` tinyint NOT NULL,
- `shipped` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `s1_ticketDetail` AS SELECT
+ 1 AS `ticketFk`,
+ 1 AS `ticketAmount`,
+ 1 AS `ticketLines`,
+ 1 AS `ticketM3`,
+ 1 AS `shipped` */;
SET character_set_client = @saved_cs_client;
--
@@ -2757,20 +2688,19 @@ DROP TABLE IF EXISTS `s21_saleDetail`;
/*!50001 DROP VIEW IF EXISTS `s21_saleDetail`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `s21_saleDetail` (
- `dia` tinyint NOT NULL,
- `año` tinyint NOT NULL,
- `mes` tinyint NOT NULL,
- `concepto` tinyint NOT NULL,
- `unidades` tinyint NOT NULL,
- `precio` tinyint NOT NULL,
- `venta` tinyint NOT NULL,
- `familia` tinyint NOT NULL,
- `comprador` tinyint NOT NULL,
- `itemFk` tinyint NOT NULL,
- `ticketFk` tinyint NOT NULL,
- `volume` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `s21_saleDetail` AS SELECT
+ 1 AS `dia`,
+ 1 AS `año`,
+ 1 AS `mes`,
+ 1 AS `concepto`,
+ 1 AS `unidades`,
+ 1 AS `precio`,
+ 1 AS `venta`,
+ 1 AS `familia`,
+ 1 AS `comprador`,
+ 1 AS `itemFk`,
+ 1 AS `ticketFk`,
+ 1 AS `volume` */;
SET character_set_client = @saved_cs_client;
--
@@ -2801,22 +2731,6 @@ CREATE TABLE `sale` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
---
--- Table structure for table `salePersonEvolution__`
---
-
-DROP TABLE IF EXISTS `salePersonEvolution__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `salePersonEvolution__` (
- `dated` date NOT NULL DEFAULT '0000-00-00',
- `amount` decimal(10,2) NOT NULL DEFAULT 0.00,
- `equalizationTax` decimal(10,2) NOT NULL DEFAULT 0.00,
- `salesPersonFk` int(11) NOT NULL DEFAULT 0,
- PRIMARY KEY (`dated`,`salesPersonFk`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
--
-- Table structure for table `salesByItemTypeDay`
--
@@ -2908,37 +2822,7 @@ CREATE TABLE `salesMonthlySnapshot` (
`newClientScore` decimal(10,3) DEFAULT NULL,
`teamBossPlus` decimal(10,3) DEFAULT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `salesMonthlySnapshot__`
---
-
-DROP TABLE IF EXISTS `salesMonthlySnapshot__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `salesMonthlySnapshot__` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `workerFk` int(11) NOT NULL,
- `year` int(4) NOT NULL,
- `month` int(2) NOT NULL,
- `departmentFk` int(11) NOT NULL,
- `ownSalesAmount` decimal(10,2) DEFAULT 0.00,
- `ownSalesPosition` int(11) DEFAULT NULL,
- `ownSalesBonus` int(11) DEFAULT NULL,
- `ownSalesScore` int(11) DEFAULT NULL,
- `newClientsSalesAmount` decimal(10,2) DEFAULT NULL,
- `newClientsSalesPosition` int(11) DEFAULT NULL,
- `newClientsSalesBonus` int(11) DEFAULT NULL,
- `newClientsScore` int(11) DEFAULT NULL,
- `teamSalesAmount` decimal(10,2) DEFAULT NULL,
- `teamSalesPosition` int(11) DEFAULT NULL,
- `teamSalesBonus` int(11) DEFAULT NULL,
- `teamSalesScore` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `workerFk_UNIQUE` (`workerFk`,`year`,`month`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='cada mes se guardan aqui los datos de forma estática, para consulta en grafana.';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -2966,29 +2850,6 @@ CREATE TABLE `salesPerson` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
---
--- Table structure for table `salesPersonClient__`
---
-
-DROP TABLE IF EXISTS `salesPersonClient__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `salesPersonClient__` (
- `salesPersonFk` int(11) NOT NULL,
- `clientFk` int(11) NOT NULL,
- `year` int(4) NOT NULL,
- `month` int(2) NOT NULL,
- `amount` decimal(10,2) DEFAULT NULL,
- `comission` decimal(10,2) DEFAULT NULL,
- `comissionBorrowed` decimal(10,2) DEFAULT NULL,
- `comissionLended` decimal(10,2) DEFAULT NULL,
- `comissionNewClient` decimal(10,2) DEFAULT NULL,
- `substitutionBorrowed` decimal(10,2) DEFAULT NULL,
- `itemTypeBorrowed` decimal(10,2) DEFAULT NULL,
- PRIMARY KEY (`salesPersonFk`,`clientFk`,`year`,`month`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Ventas por comercial por cliente';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
--
-- Table structure for table `salesPersonEvolution`
--
@@ -3006,7 +2867,7 @@ CREATE TABLE `salesPersonEvolution` (
PRIMARY KEY (`id`),
KEY `salesPersonEvolution_salesPerson` (`salesPersonFk`),
CONSTRAINT `salesPersonEvolution_salesPerson` FOREIGN KEY (`salesPersonFk`) REFERENCES `vn`.`worker` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Evolución Comerciales';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Evolución Comerciales';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -3017,20 +2878,19 @@ DROP TABLE IF EXISTS `vendedores`;
/*!50001 DROP VIEW IF EXISTS `vendedores`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `vendedores` (
- `Id_Trabajador` tinyint NOT NULL,
- `año` tinyint NOT NULL,
- `mes` tinyint NOT NULL,
- `importe` tinyint NOT NULL,
- `comision` tinyint NOT NULL,
- `comisionArrendada` tinyint NOT NULL,
- `comisionCedida` tinyint NOT NULL,
- `comisionNuevos` tinyint NOT NULL,
- `sustitucionArrendada` tinyint NOT NULL,
- `itemTypeBorrowed` tinyint NOT NULL,
- `portfolioWeight` tinyint NOT NULL,
- `updated` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `vendedores` AS SELECT
+ 1 AS `Id_Trabajador`,
+ 1 AS `año`,
+ 1 AS `mes`,
+ 1 AS `importe`,
+ 1 AS `comision`,
+ 1 AS `comisionArrendada`,
+ 1 AS `comisionCedida`,
+ 1 AS `comisionNuevos`,
+ 1 AS `sustitucionArrendada`,
+ 1 AS `itemTypeBorrowed`,
+ 1 AS `portfolioWeight`,
+ 1 AS `updated` */;
SET character_set_client = @saved_cs_client;
--
@@ -3058,16 +2918,15 @@ DROP TABLE IF EXISTS `ventas`;
/*!50001 DROP VIEW IF EXISTS `ventas`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `ventas` (
- `Id_Movimiento` tinyint NOT NULL,
- `importe` tinyint NOT NULL,
- `recargo` tinyint NOT NULL,
- `fecha` tinyint NOT NULL,
- `tipo_id` tinyint NOT NULL,
- `Id_Cliente` tinyint NOT NULL,
- `empresa_id` tinyint NOT NULL,
- `margen` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `ventas` AS SELECT
+ 1 AS `Id_Movimiento`,
+ 1 AS `importe`,
+ 1 AS `recargo`,
+ 1 AS `fecha`,
+ 1 AS `tipo_id`,
+ 1 AS `Id_Cliente`,
+ 1 AS `empresa_id`,
+ 1 AS `margen` */;
SET character_set_client = @saved_cs_client;
--
@@ -3131,7 +2990,7 @@ CREATE TABLE `workerLabourDataByMonth` (
`permanent` int(5) NOT NULL COMMENT 'Número de empleados fijos',
PRIMARY KEY (`id`),
KEY `workerLabourDataByMonth_graph_idx` (`code`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -3153,10 +3012,10 @@ CREATE TABLE `workerProductivity` (
KEY `workerProductivity_warehouseFk_idx` (`warehouseFk`),
KEY `workerProductivity_workerFk_idx` (`workerFk`),
KEY `workerProductivity_roleFk_idx` (`actionFk`),
- CONSTRAINT `workerProductivity_FK` FOREIGN KEY (`actionFk`) REFERENCES `vncontrol`.`accion` (`accion_id`) ON UPDATE CASCADE,
+ CONSTRAINT `workerProductivity_FK` FOREIGN KEY (`actionFk`) REFERENCES `vn`.`ticketTrackingState` (`id`) ON UPDATE CASCADE,
CONSTRAINT `workerProductivity_warehouseFk` FOREIGN KEY (`warehouseFk`) REFERENCES `vn`.`warehouse` (`id`) ON UPDATE CASCADE,
CONSTRAINT `workerProductivity_workerFk` FOREIGN KEY (`workerFk`) REFERENCES `vn`.`worker` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -3171,42 +3030,7 @@ CREATE TABLE `workerProductivityConfig` (
`minSeconsPackager` int(11) DEFAULT NULL,
`minSeconsItemPicker` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `workerSpeed__`
---
-
-DROP TABLE IF EXISTS `workerSpeed__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `workerSpeed__` (
- `workerCode` varchar(3) COLLATE utf8mb3_unicode_ci NOT NULL,
- `accion` varchar(15) COLLATE utf8mb3_unicode_ci NOT NULL,
- `warehouseFk` smallint(6) unsigned NOT NULL DEFAULT 1,
- `LitrosMinuto` decimal(10,1) DEFAULT NULL,
- `LitrosMinutoLastHour` decimal(10,1) DEFAULT NULL,
- `lastUpdated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`workerCode`,`warehouseFk`,`accion`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `zone_ETD__`
---
-
-DROP TABLE IF EXISTS `zone_ETD__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `zone_ETD__` (
- `zoneFk` int(11) DEFAULT NULL,
- `totalVolume` decimal(5,1) DEFAULT NULL,
- `remainingVolume` decimal(5,1) DEFAULT NULL,
- `speed` decimal(10,2) NOT NULL DEFAULT 0.00,
- `hourTheoretical` time DEFAULT NULL,
- `hourPractical` varchar(10) CHARACTER SET utf8mb3 NOT NULL DEFAULT ''
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -3237,6 +3061,8 @@ DELIMITER ;
--
-- Dumping routines for database 'bs'
--
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `tramo` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -3244,10 +3070,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection = utf8mb3_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `tramo`(vDateTime DATETIME) RETURNS varchar(20) CHARSET utf8mb3 COLLATE utf8mb3_unicode_ci
+CREATE DEFINER=`root`@`localhost` FUNCTION `tramo`(vDateTime DATETIME) RETURNS varchar(20) CHARSET utf8 COLLATE utf8_unicode_ci
NO SQL
BEGIN
@@ -3269,6 +3093,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `bancos_evolution_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -3276,8 +3102,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `bancos_evolution_add`(vStartingDate DATE)
BEGIN
@@ -3394,6 +3218,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `campaignComparative` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -3401,8 +3227,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `campaignComparative`(vDateFrom DATE, vDateTo DATE)
BEGIN
@@ -3449,6 +3273,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `carteras_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -3456,8 +3282,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `carteras_add`()
BEGIN
@@ -3481,6 +3305,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `clean` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -3488,8 +3314,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `clean`()
BEGIN
@@ -3530,6 +3354,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `clientDied_recalc` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -3537,8 +3363,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `clientDied_recalc`()
BEGIN
@@ -3577,6 +3401,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `clientNewBorn_recalc` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -3584,8 +3410,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `clientNewBorn_recalc`()
BLOCK1: BEGIN
@@ -3677,6 +3501,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `comercialesCompleto` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -3684,8 +3510,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `comercialesCompleto`(IN vWorker INT, vDate DATE)
BEGIN
@@ -3802,6 +3626,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `compradores_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -3809,8 +3635,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `compradores_add`(IN vYear INT, IN vWeekFrom INT, IN vWeekTo INT)
BEGIN
@@ -3836,6 +3660,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `compradores_add_launcher` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -3843,8 +3669,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `compradores_add_launcher`()
BEGIN
@@ -3891,6 +3715,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `compradores_evolution_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -3898,8 +3724,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `compradores_evolution_add`()
BEGIN
@@ -3980,6 +3804,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `fondo_evolution_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -3987,8 +3813,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `fondo_evolution_add`()
BEGIN
@@ -4058,6 +3882,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `fruitsEvolution` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -4065,8 +3891,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `fruitsEvolution`()
BEGIN
@@ -4088,6 +3912,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `indicatorsUpdate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -4095,8 +3921,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `indicatorsUpdate`(vDated DATE)
BEGIN
@@ -4251,6 +4075,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `indicatorsUpdateLauncher` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -4258,8 +4084,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `indicatorsUpdateLauncher`()
BEGIN
@@ -4286,6 +4110,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `inspeccionSS_2021_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -4293,8 +4119,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `inspeccionSS_2021_add`()
BEGIN
@@ -4341,6 +4165,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `m3Add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -4348,8 +4174,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `m3Add`()
BEGIN
@@ -4386,6 +4210,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `manaCustomerUpdate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -4393,8 +4219,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `manaCustomerUpdate`()
BEGIN
@@ -4492,6 +4316,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `manaSpellers_actualize` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -4499,8 +4325,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `manaSpellers_actualize`()
BEGIN
@@ -4523,6 +4347,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `nightTask_launchAll` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -4530,8 +4356,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `nightTask_launchAll`()
BEGIN
@@ -4620,6 +4444,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `nightTask_launchTask` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -4627,8 +4453,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `nightTask_launchTask`(
vSchema VARCHAR(255),
@@ -4659,6 +4483,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `payMethodClientAdd` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -4666,8 +4492,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `payMethodClientAdd`()
BEGIN
@@ -4693,6 +4517,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `saleGraphic` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -4700,8 +4526,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `saleGraphic`(IN vItemFk INT, IN vTypeFk INT, IN vCategoryFk INT, IN vFromDate DATE,
IN vToDate DATE, IN vProducerFk INT)
@@ -4745,6 +4569,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `salePersonEvolutionAdd` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -4752,8 +4578,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `salePersonEvolutionAdd`(IN vDateStart DATETIME)
BEGIN
@@ -4778,6 +4602,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `salesByclientSalesPerson_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -4785,33 +4611,49 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `salesByclientSalesPerson_add`(vDatedFrom DATE)
BEGIN
+/**
+ * Agrupa las ventas por cliente/comercial/fecha en la tabla bs.salesByclientSalesPerson
+ * El asociación cliente/comercial/fecha, se mantiene correcta en el tiempo
+ *
+ * @param vDatedFrom el cálculo se realizará desde la fecha introducida hasta ayer
+ */
IF vDatedFrom IS NULL THEN
- SELECT util.VN_CURDATE() - INTERVAL DAY(util.VN_CURDATE())-1 DAY - INTERVAL 1 MONTH INTO vDatedFrom;
+ SET vDatedFrom = util.VN_CURDATE() - INTERVAL 1 MONTH;
END IF;
- INSERT INTO salesByclientSalesPerson( dated, salesPersonFk, clientFk, amount, equalizationTax)
- SELECT v.fecha,
+ UPDATE salesByclientSalesPerson
+ SET amount = 0,
+ equalizationTax = 0,
+ amountNewBorn = 0
+ WHERE dated BETWEEN vDatedFrom AND util.yesterday();
+
+ INSERT INTO salesByclientSalesPerson(
+ dated,
+ salesPersonFk,
+ clientFk,
+ amount,
+ equalizationTax)
+ SELECT s.dated,
c.salesPersonFk,
- v.Id_Cliente,
- SUM(v.importe) amount,
- SUM(v.recargo) equalizationTax
- FROM ventas v
- JOIN vn.client c on v.Id_Cliente = c.id
- WHERE v.fecha >= vDatedFrom
- GROUP BY v.fecha,c.salesPersonFk,v.Id_Cliente
- ON DUPLICATE KEY UPDATE amount= VALUES(amount), equalizationTax= VALUES(equalizationTax);
+ s.clientFk,
+ SUM(s.amount),
+ SUM(s.surcharge)
+ FROM sale s
+ JOIN vn.client c on s.clientFk = c.id
+ WHERE s.dated BETWEEN vDatedFrom AND util.yesterday()
+ GROUP BY s.dated, c.salesPersonFk, s.clientFk
+ ON DUPLICATE KEY UPDATE amount= VALUES(amount),
+ equalizationTax= VALUES(equalizationTax);
UPDATE salesByclientSalesPerson s
JOIN vn.newBornSales n ON n.dated = s.dated AND
n.clientFk = s.clientFk
SET s.amountNewBorn = n.amount
- WHERE n.dated >= vDatedFrom;
+ WHERE n.dated BETWEEN vDatedFrom AND util.yesterday();
END ;;
DELIMITER ;
@@ -4819,6 +4661,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `salesByItemTypeDay_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -4826,8 +4670,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `salesByItemTypeDay_add`(vDateStart DATE, vDateEnd DATE)
BEGIN
@@ -5047,6 +4889,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `salesByItemTypeDay_addLauncher` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -5054,8 +4898,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `salesByItemTypeDay_addLauncher`()
BEGIN
@@ -5069,6 +4911,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `salesMonthlySnapshot_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -5076,8 +4920,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `salesMonthlySnapshot_add`()
BEGIN
@@ -5283,6 +5125,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `salesPersonEvolution_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -5290,8 +5134,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `salesPersonEvolution_add`()
BEGIN
@@ -5340,6 +5182,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `salesPerson_updatePortfolio` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -5347,8 +5191,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `salesPerson_updatePortfolio`()
BEGIN
@@ -5383,6 +5225,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `vendedores_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -5390,8 +5234,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `vendedores_add`(intYEAR INT, vQuarter INT)
BEGIN
@@ -5460,6 +5302,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `vendedores_add_launcher` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -5467,17 +5311,13 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `vendedores_add_launcher`()
BEGIN
- DECLARE vDatedFrom DATE;
CALL bs.vendedores_add(YEAR(util.VN_CURDATE()),QUARTER(util.VN_CURDATE()));
CALL bs.vendedores_evolution_add;
- SELECT util.firstDayOfMonth(util.VN_CURDATE())- INTERVAL 1 MONTH INTO vDatedFrom;
- CALL bs.salesByclientSalesPerson_add(vDatedFrom);
+ CALL bs.salesByclientSalesPerson_add(util.VN_CURDATE()- INTERVAL 15 DAY);
END ;;
DELIMITER ;
@@ -5485,6 +5325,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `vendedores_evolution_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -5492,8 +5334,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `vendedores_evolution_add`()
BEGIN
@@ -5548,6 +5388,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ventas_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -5555,8 +5397,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ventas_add`(
IN vStarted DATETIME,
@@ -5639,6 +5479,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ventas_add_launcher` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -5646,8 +5488,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ventas_add_launcher`()
BEGIN
@@ -5666,6 +5506,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ventas_contables_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -5673,8 +5515,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ventas_contables_add`(IN vYear INT, IN vMonth INT)
BEGIN
@@ -5781,6 +5621,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ventas_contables_add_launcher` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -5788,8 +5630,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ventas_contables_add_launcher`()
BEGIN
@@ -5808,6 +5648,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ventas_contables_por_cliente` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -5815,8 +5657,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ventas_contables_por_cliente`(IN vYear INT, IN vMonth INT)
BEGIN
@@ -5868,6 +5708,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `vivosMuertos` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -5875,8 +5717,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `vivosMuertos`()
BEGIN
@@ -5944,6 +5784,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `waste_addSales` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -5951,8 +5793,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `waste_addSales`()
BEGIN
@@ -5988,6 +5828,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerLabour_getData` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -5995,8 +5837,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerLabour_getData`()
BEGIN
@@ -6107,6 +5947,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerProductivity_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -6114,8 +5956,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerProductivity_add`()
BEGIN
@@ -6330,7 +6170,7 @@ CREATE TABLE `cache_valid` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`valid` tinyint(3) unsigned NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=MEMORYDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -6385,7 +6225,7 @@ CREATE TABLE `prod_graphic_source` (
`graphCategory` int(11) NOT NULL DEFAULT 0,
`Agencia` varchar(45) CHARACTER SET utf8mb3 NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -6484,6 +6324,8 @@ DELIMITER ;
--
-- Dumping routines for database 'cache'
--
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `addressFriendship_Update` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -6491,8 +6333,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `addressFriendship_Update`()
BEGIN
@@ -6524,6 +6364,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `availableNoRaids_refresh` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -6531,10 +6373,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `availableNoRaids_refresh`(OUT `vCalc` INT, IN `vRefresh` INT, IN `vWarehouse` INT, IN `vDate` DATE)
+CREATE DEFINER=`root`@`localhost` PROCEDURE `availableNoRaids_refresh`(OUT `vCalc` INT, IN `vRefresh` INT, IN `vWarehouse` INT, IN `vDated` DATE)
proc: BEGIN
DECLARE vStartDate DATE;
DECLARE vEndDate DATETIME;
@@ -6548,13 +6388,12 @@ proc: BEGIN
RESIGNAL;
END;
- IF vDate < util.VN_CURDATE() THEN
+ IF vDated < util.VN_CURDATE() THEN
LEAVE proc;
END IF;
- CALL vn.itemStock (vWarehouse, vDate, NULL);
-
- SET vParams = CONCAT_WS('/', vWarehouse, vDate);
+ SET vParams = CONCAT_WS('/', vWarehouse, vDated);
+ CALL vn.itemStock (vWarehouse, vDated, NULL);
CALL cache_calc_start (vCalc, vRefresh, 'availableNoRaids', vParams);
IF !vRefresh THEN
@@ -6563,8 +6402,8 @@ proc: BEGIN
-- Calcula algunos parametros necesarios
- SET vStartDate = TIMESTAMP(vDate, '00:00:00');
- SET vEndDate = TIMESTAMP(TIMESTAMPADD(DAY, 4, vDate), '23:59:59');
+ SET vStartDate = TIMESTAMP(vDated, '00:00:00');
+ SET vEndDate = TIMESTAMP(TIMESTAMPADD(DAY, 4, vDated), '23:59:59');
SELECT inventoried INTO vInventoryDate FROM vn.config;
@@ -6573,108 +6412,87 @@ proc: BEGIN
-- Calcula el ultimo dia de vida para cada producto
- DROP TEMPORARY TABLE IF EXISTS item_range;
- CREATE TEMPORARY TABLE item_range
- (PRIMARY KEY (item_id))
- ENGINE = MEMORY
- SELECT c.item_id, IF(it.life IS NULL, NULL,
- TIMESTAMP(TIMESTAMPADD(DAY, it.life, c.landing), '23:59:59')) AS date_end
- FROM (
- SELECT b.itemFk item_id, MAX(t.landed) landing
- FROM vn.buy b
- JOIN vn.entry e ON b.entryFk = e.id
- JOIN vn.travel t ON t.id = e.travelFk
- JOIN vn.warehouse w ON w.id = t.warehouseInFk
- JOIN vn.supplier s ON s.id = e.supplierFk
- WHERE t.landed BETWEEN vInventoryDate AND vStartDate
- AND t.warehouseInFk = vWarehouse
- AND s.name != 'INVENTARIO'
- AND NOT e.isRaid
- GROUP BY b.itemFk
- ) c
- JOIN vn.item i ON i.id = c.item_id
- JOIN vn.itemType it ON it.id = i.typeFk
- HAVING date_end >= vStartDate OR date_end IS NULL;
-
- -- Replica la tabla item_range para poder usarla varias veces en la misma consulta
-
- DROP TEMPORARY TABLE IF EXISTS item_range_copy1;
- CREATE TEMPORARY TABLE item_range_copy1 LIKE item_range;
- INSERT INTO item_range_copy1
- SELECT * FROM item_range;
-
- DROP TEMPORARY TABLE IF EXISTS item_range_copy2;
- CREATE TEMPORARY TABLE item_range_copy2 LIKE item_range;
- INSERT INTO item_range_copy2
- SELECT * FROM item_range;
-
- DROP TEMPORARY TABLE IF EXISTS item_range_copy3;
- CREATE TEMPORARY TABLE item_range_copy3 LIKE item_range;
- INSERT INTO item_range_copy3
- SELECT * FROM item_range;
-
- DROP TEMPORARY TABLE IF EXISTS item_range_copy4;
- CREATE TEMPORARY TABLE item_range_copy4 LIKE item_range;
- INSERT INTO item_range_copy4
- SELECT * FROM item_range;
+ DROP TEMPORARY TABLE IF EXISTS tItemRange;
+ CREATE TEMPORARY TABLE tItemRange
+ (PRIMARY KEY (itemFk))
+ ENGINE = MEMORY
+ SELECT c.itemFk, IF(it.life IS NULL, NULL,
+ TIMESTAMP(TIMESTAMPADD(DAY, it.life, c.landing), '23:59:59')) AS ended
+ FROM (
+ SELECT b.itemFk, MAX(t.landed) landing
+ FROM vn.buy b
+ JOIN vn.entry e ON b.entryFk = e.id
+ JOIN vn.travel t ON t.id = e.travelFk
+ JOIN vn.warehouse w ON w.id = t.warehouseInFk
+ JOIN vn.supplier s ON s.id = e.supplierFk
+ WHERE t.landed BETWEEN vInventoryDate AND vStartDate
+ AND t.warehouseInFk = vWarehouse
+ AND s.name != 'INVENTARIO'
+ AND NOT e.isRaid
+ GROUP BY b.itemFk
+ ) c
+ JOIN vn.item i ON i.id = c.itemFk
+ JOIN vn.itemType it ON it.id = i.typeFk
+ HAVING ended >= vStartDate OR ended IS NULL;
-- Calcula el ATP
DELETE FROM availableNoRaids WHERE calc_id = vCalc;
- INSERT INTO availableNoRaids (calc_id, item_id, available)
- SELECT vCalc, t.item_id, SUM(stock) amount FROM (
- SELECT il.itemFk AS item_id, stock
- FROM tmp.itemList il
- JOIN item_range ir ON ir.item_id = il.itemFk
- UNION ALL
- SELECT t.item_id, minacum(dt, amount, vDate) AS available FROM (
- SELECT itemFk AS item_id, DATE(dat) dt, SUM(quantity) amount FROM (
- SELECT i.itemFk, i.shipped AS dat, i.quantity
+ DROP TEMPORARY TABLE IF EXISTS tmp.itemCalc;
+ CREATE TEMPORARY TABLE tmp.itemCalc
+ (INDEX (itemFk, warehouseFk))
+ SELECT itemFk, vWarehouse warehouseFk, DATE(dated) dated, SUM(quantity) quantity
+ FROM (
+ SELECT i.itemFk, i.shipped dated, i.quantity
FROM vn.itemTicketOut i
- JOIN item_range_copy1 ir ON ir.item_id = i.itemFk
+ JOIN tItemRange ir ON ir.itemFk = i.itemFk
WHERE i.shipped >= vStartDate
- AND (ir.date_end IS NULL OR i.shipped <= ir.date_end)
+ AND (ir.ended IS NULL OR i.shipped <= ir.ended)
AND i.warehouseFk = vWarehouse
UNION ALL
- SELECT i.itemFk, i.landed AS dat, i.quantity
+ SELECT i.itemFk, i.landed, i.quantity
FROM vn.itemEntryIn i
- JOIN item_range_copy2 ir ON ir.item_id = i.itemFk
+ JOIN tItemRange ir ON ir.itemFk = i.itemFk
WHERE i.landed >= vStartDate
- AND (ir.date_end IS NULL OR i.landed <= ir.date_end)
+ AND (ir.ended IS NULL OR i.landed <= ir.ended)
AND i.warehouseInFk = vWarehouse
AND i.isVirtualStock = FALSE
UNION ALL
- SELECT i.itemFk, i.shipped AS dat, i.quantity
+ SELECT i.itemFk, i.shipped, i.quantity
FROM vn.itemEntryOut i
- JOIN item_range_copy3 ir ON ir.item_id = i.itemFk
+ JOIN tItemRange ir ON ir.itemFk = i.itemFk
WHERE i.shipped >= vStartDate
- AND (ir.date_end IS NULL OR i.shipped <= ir.date_end)
+ AND (ir.ended IS NULL OR i.shipped <= ir.ended)
AND i.warehouseOutFk = vWarehouse
UNION ALL
SELECT r.item_id, r.shipment, -r.amount
FROM hedera.order_row r
JOIN hedera.`order` o ON o.id = r.order_id
- JOIN item_range_copy4 ir ON ir.item_id = r.item_id
+ JOIN tItemRange ir ON ir.itemFk = r.item_id
WHERE r.shipment >= vStartDate
- AND (ir.date_end IS NULL OR r.shipment <= ir.date_end)
+ AND (ir.ended IS NULL OR r.shipment <= ir.ended)
AND r.warehouse_id = vWarehouse
AND r.created >= vReserveDate
AND NOT o.confirmed
) t
- GROUP BY item_id, dt
- ) t
- GROUP BY t.item_id
- ) t GROUP BY t.item_id;
+ GROUP BY itemFk, dated;
- DROP TEMPORARY TABLE IF EXISTS
- tmp.itemList
- ,item_range
- ,item_range_copy1
- ,item_range_copy2
- ,item_range_copy3
- ,item_range_copy4;
+ CALL vn.item_getAtp(vDated);
+ INSERT INTO availableNoRaids (calc_id, item_id, available)
+ SELECT vCalc, sub.itemFk, SUM(sub.quantity)
+ FROM (
+ SELECT il.itemFk, stock quantity
+ FROM tmp.itemList il
+ JOIN tItemRange ir ON ir.itemFk = il.itemFk
+ UNION ALL
+ SELECT itemFk, quantity
+ FROM tmp.itemAtp
+ )sub
+ GROUP BY sub.itemFk;
+
+ DROP TEMPORARY TABLE tmp.itemCalc, tItemRange;
CALL cache_calc_end (vCalc);
END ;;
DELIMITER ;
@@ -6682,6 +6500,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `available_clean` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -6689,8 +6509,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `available_clean`()
BEGIN
@@ -6717,6 +6535,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `available_refresh` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -6724,10 +6544,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `available_refresh`(OUT `vCalc` INT, IN `vRefresh` INT, IN `vWarehouse` INT, IN `vDate` DATE)
+CREATE DEFINER=`root`@`localhost` PROCEDURE `available_refresh`(OUT `vCalc` INT, IN `vRefresh` INT, IN `vWarehouse` INT, IN `vDated` DATE)
proc: BEGIN
DECLARE vStartDate DATE;
DECLARE vReserveDate DATETIME;
@@ -6741,13 +6559,13 @@ proc: BEGIN
RESIGNAL;
END;
- IF vDate < util.VN_CURDATE() THEN
+ IF vDated < util.VN_CURDATE() THEN
LEAVE proc;
END IF;
- CALL vn.itemStock (vWarehouse, vDate, NULL);
+ CALL vn.itemStock(vWarehouse, vDated, NULL);
- SET vParams = CONCAT_WS('/', vWarehouse, vDate);
+ SET vParams = CONCAT_WS('/', vWarehouse, vDated);
CALL cache_calc_start (vCalc, vRefresh, 'available', vParams);
IF !vRefresh THEN
@@ -6755,131 +6573,101 @@ proc: BEGIN
END IF;
-- Invoca al procedimiento que genera el stock virtual de Logiflora, si coincide con la peticion de refresco del disponible
- IF vn.isLogifloraDay(vDate, vWarehouse) THEN
-
+ IF vn.isLogifloraDay(vDated, vWarehouse) THEN
-- CALL edi.floramondo_offerRefresh;
SET vIsLogifloraDay = TRUE;
-
ELSE
-
SET vIsLogifloraDay = FALSE;
-
END IF;
- -- Calcula algunos parámetros necesarios
-
- SET vStartDate = TIMESTAMP(vDate, '00:00:00');
-
+ -- Calcula algunos parámetros necesarios
+ SET vStartDate = TIMESTAMP(vDated, '00:00:00');
SELECT inventoried INTO vInventoryDate FROM vn.config;
-
SELECT SUBTIME(util.VN_NOW(), reserveTime) INTO vReserveDate
FROM hedera.orderConfig;
-- Calcula el ultimo dia de vida para cada producto
-
- DROP TEMPORARY TABLE IF EXISTS item_range;
- CREATE TEMPORARY TABLE item_range
- (PRIMARY KEY (item_id))
- ENGINE = MEMORY
- SELECT c.item_id, IF(it.life IS NULL, NULL,
- TIMESTAMP(TIMESTAMPADD(DAY, it.life, c.landing), '23:59:59')) AS date_end
- FROM (
- SELECT b.itemFk item_id, MAX(t.landed) landing
- FROM vn.buy b
- JOIN vn.entry e ON b.entryFk = e.id
- JOIN vn.travel t ON t.id = e.travelFk
- JOIN vn.warehouse w ON w.id = t.warehouseInFk
- WHERE t.landed BETWEEN vInventoryDate AND vStartDate
- AND t.warehouseInFk = vWarehouse
- AND NOT e.isExcludedFromAvailable
- GROUP BY b.itemFk
- ) c
- JOIN vn.item i ON i.id = c.item_id
- JOIN vn.itemType it ON it.id = i.typeFk
- HAVING date_end >= vStartDate OR date_end IS NULL;
-
- -- Replica la tabla item_range para poder usarla varias veces en la misma consulta
-
- DROP TEMPORARY TABLE IF EXISTS item_range_copy1;
- CREATE TEMPORARY TABLE item_range_copy1 LIKE item_range;
- INSERT INTO item_range_copy1
- SELECT * FROM item_range;
-
- DROP TEMPORARY TABLE IF EXISTS item_range_copy2;
- CREATE TEMPORARY TABLE item_range_copy2 LIKE item_range;
- INSERT INTO item_range_copy2
- SELECT * FROM item_range;
-
- DROP TEMPORARY TABLE IF EXISTS item_range_copy3;
- CREATE TEMPORARY TABLE item_range_copy3 LIKE item_range;
- INSERT INTO item_range_copy3
- SELECT * FROM item_range;
-
- DROP TEMPORARY TABLE IF EXISTS item_range_copy4;
- CREATE TEMPORARY TABLE item_range_copy4 LIKE item_range;
- INSERT INTO item_range_copy4
- SELECT * FROM item_range;
+ DROP TEMPORARY TABLE IF EXISTS itemRange;
+ CREATE TEMPORARY TABLE itemRange
+ (PRIMARY KEY (itemFk))
+ ENGINE = MEMORY
+ SELECT c.itemFk,
+ IF(it.life IS NULL,
+ NULL,
+ TIMESTAMP(TIMESTAMPADD(DAY, it.life, c.landing), '23:59:59')) ended
+ FROM (
+ SELECT b.itemFk, MAX(t.landed) landing
+ FROM vn.buy b
+ JOIN vn.entry e ON b.entryFk = e.id
+ JOIN vn.travel t ON t.id = e.travelFk
+ JOIN vn.warehouse w ON w.id = t.warehouseInFk
+ WHERE t.landed BETWEEN vInventoryDate AND vStartDate
+ AND t.warehouseInFk = vWarehouse
+ AND NOT e.isExcludedFromAvailable
+ GROUP BY b.itemFk
+ ) c
+ JOIN vn.item i ON i.id = c.itemFk
+ JOIN vn.itemType it ON it.id = i.typeFk
+ HAVING ended >= vStartDate OR ended IS NULL;
-- Calcula el ATP
-
DELETE FROM available WHERE calc_id = vCalc;
- INSERT INTO available (calc_id, item_id, available)
- SELECT vCalc, t.item_id, SUM(stock) amount FROM (
- SELECT il.itemFk AS item_id, stock
- FROM tmp.itemList il
- JOIN item_range ir ON ir.item_id = il.itemFk
- UNION ALL
- SELECT t.item_id, minacum(dt, amount, vDate) AS available
- FROM (
- SELECT itemFk AS item_id, DATE(dat) dt, SUM(quantity) amount
- FROM (
- SELECT i.itemFk, i.shipped AS dat, i.quantity
+ DROP TEMPORARY TABLE IF EXISTS tmp.itemCalc;
+ CREATE TEMPORARY TABLE tmp.itemCalc
+ (INDEX (itemFk,warehouseFk))
+ ENGINE = MEMORY
+ SELECT itemFk, vWarehouse warehouseFk, DATE(dated) dated, SUM(quantity) quantity
+ FROM (SELECT i.itemFk, i.shipped dated, i.quantity
FROM vn.itemTicketOut i
- JOIN item_range_copy1 ir ON ir.item_id = i.itemFk
+ JOIN itemRange ir ON ir.itemFk = i.itemFk
WHERE i.shipped >= vStartDate
- AND (ir.date_end IS NULL OR i.shipped <= ir.date_end)
+ AND (ir.ended IS NULL OR i.shipped <= ir.ended)
AND i.warehouseFk = vWarehouse
UNION ALL
- SELECT i.itemFk, i.landed AS dat, i.quantity
+ SELECT i.itemFk, i.landed, i.quantity
FROM vn.itemEntryIn i
- JOIN item_range_copy2 ir ON ir.item_id = i.itemFk
+ JOIN itemRange ir ON ir.itemFk = i.itemFk
LEFT JOIN edi.warehouseFloramondo wf ON wf.entryFk = i.entryFk
WHERE i.landed >= vStartDate
- AND (ir.date_end IS NULL OR i.landed <= ir.date_end)
+ AND (ir.ended IS NULL OR i.landed <= ir.ended)
AND i.warehouseInFk = vWarehouse
AND (ISNULL(wf.entryFk) OR vIsLogifloraDay)
UNION ALL
- SELECT i.itemFk, i.shipped AS dat, i.quantity
+ SELECT i.itemFk, i.shipped, i.quantity
FROM vn.itemEntryOut i
- JOIN item_range_copy3 ir ON ir.item_id = i.itemFk
+ JOIN itemRange ir ON ir.itemFk = i.itemFk
WHERE i.shipped >= vStartDate
- AND (ir.date_end IS NULL OR i.shipped <= ir.date_end)
+ AND (ir.ended IS NULL OR i.shipped <= ir.ended)
AND i.warehouseOutFk = vWarehouse
UNION ALL
SELECT r.item_id, r.shipment, -r.amount
FROM hedera.order_row r
JOIN hedera.`order` o ON o.id = r.order_id
- JOIN item_range_copy4 ir ON ir.item_id = r.item_id
+ JOIN itemRange ir ON ir.itemFk = r.item_id
WHERE r.shipment >= vStartDate
- AND (ir.date_end IS NULL OR r.shipment <= ir.date_end)
+ AND (ir.ended IS NULL OR r.shipment <= ir.ended)
AND r.warehouse_id = vWarehouse
AND r.created >= vReserveDate
AND NOT o.confirmed
- ) t
- GROUP BY item_id, dt
- ) t
- GROUP BY t.item_id
- ) t GROUP BY t.item_id;
+ ) t
+ GROUP BY itemFk, dated;
- DROP TEMPORARY TABLE IF EXISTS
- tmp.itemList
- ,item_range
- ,item_range_copy1
- ,item_range_copy2
- ,item_range_copy3
- ,item_range_copy4;
+ CALL vn.item_getAtp(vDated);
+ INSERT INTO available (calc_id, item_id, available)
+ SELECT vCalc, sub.itemFk, SUM(sub.quantity)
+ FROM (
+ SELECT ir.itemFk, stock quantity
+ FROM tmp.itemList il
+ JOIN itemRange ir ON ir.itemFk = il.itemFk
+ UNION ALL
+ SELECT itemFk, quantity
+ FROM tmp.itemAtp
+ )sub
+ GROUP BY sub.itemFk;
+
+ DROP TEMPORARY TABLE tmp.itemCalc, itemRange;
CALL cache_calc_end (vCalc);
END ;;
DELIMITER ;
@@ -6887,6 +6675,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `cacheCalc_clean` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -6894,8 +6684,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `cacheCalc_clean`()
BEGIN
@@ -6907,6 +6695,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `cache_calc_end` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -6914,8 +6704,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `cache_calc_end`(IN `v_calc` INT)
BEGIN
@@ -6945,6 +6733,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `cache_calc_start` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -6952,8 +6742,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `cache_calc_start`(OUT `v_calc` INT, INOUT `v_refresh` INT, IN `v_cache_name` VARCHAR(50), IN `v_params` VARCHAR(100))
proc: BEGIN
@@ -7044,6 +6832,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `cache_calc_unlock` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -7051,8 +6841,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `cache_calc_unlock`(IN `v_calc` INT)
proc: BEGIN
@@ -7079,6 +6867,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `cache_clean` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -7086,8 +6876,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `cache_clean`()
NO SQL
@@ -7100,6 +6888,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `clean` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -7107,8 +6897,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `clean`()
BEGIN
@@ -7124,6 +6912,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `departure_timing` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -7131,8 +6921,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `departure_timing`(vWarehouseId INT)
BEGIN
@@ -7211,6 +6999,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `last_buy_refresh` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -7218,8 +7008,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `last_buy_refresh`(vRefresh BOOL)
proc: BEGIN
@@ -7269,6 +7057,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `prod_graphic_refresh` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -7276,8 +7066,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `prod_graphic_refresh`(v_refresh BOOL, wh_id INT)
proc: BEGIN
@@ -7318,6 +7106,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `stock_refresh` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -7325,8 +7115,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `stock_refresh`(v_refresh BOOL)
proc: BEGIN
@@ -7384,6 +7172,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `visible_clean` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -7391,8 +7181,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `visible_clean`()
BEGIN
@@ -7414,6 +7202,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `visible_refresh` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -7421,8 +7211,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `visible_refresh`(OUT v_calc INT, v_refresh BOOL, v_warehouse INT)
proc: BEGIN
@@ -7616,13 +7404,13 @@ CREATE TABLE `deliveryInformation` (
`supplyResponseID` int(11) DEFAULT NULL,
`updated` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`ID`),
- UNIQUE KEY `deliveryInformation_UN` (`Location`,`LatestDeliveryDateTime`,`FirstOrderDateTime`,`LatestOrderDateTime`,`supplyResponseID`,`DeliveryType`) USING HASH,
+ UNIQUE KEY `deliveryInformation_UN` (`Location`,`LatestDeliveryDateTime`,`FirstOrderDateTime`,`LatestOrderDateTime`,`supplyResponseID`,`DeliveryType`),
KEY `fgbSupplyResponse_idx` (`supplyResponseID`),
KEY `fgbSupplyResponse_idx2` (`FirstOrderDateTime`),
KEY `fgbSupplyResponse_idx3` (`LatestOrderDateTime`) USING BTREE,
KEY `deliveryInformation_updated_IDX` (`updated`) USING BTREE,
CONSTRAINT `fgbSupplyResponse` FOREIGN KEY (`supplyResponseID`) REFERENCES `supplyResponse` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -7705,7 +7493,7 @@ CREATE TABLE `ekt` (
KEY `putOrderFk` (`putOrderFk`),
KEY `ekt_batchNumber` (`batchNumber`) USING BTREE,
KEY `ekt_vendorOrderNumber` (`vendorOrderNumber`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -7725,26 +7513,6 @@ CREATE TABLE `ektConfig` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
---
--- Table structure for table `ektEntryAssign__`
---
-
-DROP TABLE IF EXISTS `ektEntryAssign__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `ektEntryAssign__` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `kop` int(11) DEFAULT NULL,
- `sub` mediumint(8) unsigned DEFAULT NULL,
- `warehouseOutFk` int(11) DEFAULT NULL,
- `warehouseInFk` int(11) DEFAULT NULL,
- `agencyModeFk` int(11) DEFAULT NULL,
- `supplierFk` int(11) DEFAULT NULL,
- `entryFk` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='define las condiciones para asignar entradas a los ekt';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
--
-- Temporary table structure for view `ektRecent`
--
@@ -7753,56 +7521,55 @@ DROP TABLE IF EXISTS `ektRecent`;
/*!50001 DROP VIEW IF EXISTS `ektRecent`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `ektRecent` (
- `id` tinyint NOT NULL,
- `barcode` tinyint NOT NULL,
- `entryYear` tinyint NOT NULL,
- `batchNumber` tinyint NOT NULL,
- `deliveryNumber` tinyint NOT NULL,
- `vendorOrderNumber` tinyint NOT NULL,
- `fec` tinyint NOT NULL,
- `hor` tinyint NOT NULL,
- `util.VN_NOW` tinyint NOT NULL,
- `ptj` tinyint NOT NULL,
- `ref` tinyint NOT NULL,
- `item` tinyint NOT NULL,
- `pac` tinyint NOT NULL,
- `qty` tinyint NOT NULL,
- `ori` tinyint NOT NULL,
- `cat` tinyint NOT NULL,
- `agj` tinyint NOT NULL,
- `kop` tinyint NOT NULL,
- `ptd` tinyint NOT NULL,
- `sub` tinyint NOT NULL,
- `pro` tinyint NOT NULL,
- `pri` tinyint NOT NULL,
- `package` tinyint NOT NULL,
- `auction` tinyint NOT NULL,
- `klo` tinyint NOT NULL,
- `k1` tinyint NOT NULL,
- `k2` tinyint NOT NULL,
- `k3` tinyint NOT NULL,
- `k4` tinyint NOT NULL,
- `s1` tinyint NOT NULL,
- `s2` tinyint NOT NULL,
- `s3` tinyint NOT NULL,
- `s4` tinyint NOT NULL,
- `s5` tinyint NOT NULL,
- `s6` tinyint NOT NULL,
- `ok` tinyint NOT NULL,
- `trolleyFk` tinyint NOT NULL,
- `putOrderFk` tinyint NOT NULL,
- `scanned` tinyint NOT NULL,
- `cps` tinyint NOT NULL,
- `dp` tinyint NOT NULL,
- `sender` tinyint NOT NULL,
- `usefulAuctionLeftSegmentLength` tinyint NOT NULL,
- `standardBarcodeLength` tinyint NOT NULL,
- `floridayBarcodeLength` tinyint NOT NULL,
- `floramondoBarcodeLength` tinyint NOT NULL,
- `defaultKlo` tinyint NOT NULL,
- `ektRecentScopeDays` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `ektRecent` AS SELECT
+ 1 AS `id`,
+ 1 AS `barcode`,
+ 1 AS `entryYear`,
+ 1 AS `batchNumber`,
+ 1 AS `deliveryNumber`,
+ 1 AS `vendorOrderNumber`,
+ 1 AS `fec`,
+ 1 AS `hor`,
+ 1 AS `util.VN_NOW`,
+ 1 AS `ptj`,
+ 1 AS `ref`,
+ 1 AS `item`,
+ 1 AS `pac`,
+ 1 AS `qty`,
+ 1 AS `ori`,
+ 1 AS `cat`,
+ 1 AS `agj`,
+ 1 AS `kop`,
+ 1 AS `ptd`,
+ 1 AS `sub`,
+ 1 AS `pro`,
+ 1 AS `pri`,
+ 1 AS `package`,
+ 1 AS `auction`,
+ 1 AS `klo`,
+ 1 AS `k1`,
+ 1 AS `k2`,
+ 1 AS `k3`,
+ 1 AS `k4`,
+ 1 AS `s1`,
+ 1 AS `s2`,
+ 1 AS `s3`,
+ 1 AS `s4`,
+ 1 AS `s5`,
+ 1 AS `s6`,
+ 1 AS `ok`,
+ 1 AS `trolleyFk`,
+ 1 AS `putOrderFk`,
+ 1 AS `scanned`,
+ 1 AS `cps`,
+ 1 AS `dp`,
+ 1 AS `sender`,
+ 1 AS `usefulAuctionLeftSegmentLength`,
+ 1 AS `standardBarcodeLength`,
+ 1 AS `floridayBarcodeLength`,
+ 1 AS `floramondoBarcodeLength`,
+ 1 AS `defaultKlo`,
+ 1 AS `ektRecentScopeDays` */;
SET character_set_client = @saved_cs_client;
--
@@ -7813,18 +7580,17 @@ DROP TABLE IF EXISTS `errorList`;
/*!50001 DROP VIEW IF EXISTS `errorList`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `errorList` (
- `id` tinyint NOT NULL,
- `name` tinyint NOT NULL,
- `longName` tinyint NOT NULL,
- `quantity` tinyint NOT NULL,
- `stock` tinyint NOT NULL,
- `error` tinyint NOT NULL,
- `deliveryInformationID` tinyint NOT NULL,
- `supplyResponseID` tinyint NOT NULL,
- `OrderTradeLineDateTime` tinyint NOT NULL,
- `EndUserPartyGLN` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `errorList` AS SELECT
+ 1 AS `id`,
+ 1 AS `name`,
+ 1 AS `longName`,
+ 1 AS `quantity`,
+ 1 AS `stock`,
+ 1 AS `error`,
+ 1 AS `deliveryInformationID`,
+ 1 AS `supplyResponseID`,
+ 1 AS `OrderTradeLineDateTime`,
+ 1 AS `EndUserPartyGLN` */;
SET character_set_client = @saved_cs_client;
--
@@ -7845,7 +7611,7 @@ CREATE TABLE `exchange` (
KEY `buy_edi_id` (`ektFk`),
CONSTRAINT `exchange_ibfk_1` FOREIGN KEY (`mailFk`) REFERENCES `mail` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `exchange_ibfk_2` FOREIGN KEY (`ektFk`) REFERENCES `ekt` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -7864,7 +7630,7 @@ CREATE TABLE `exchangeConfig` (
PRIMARY KEY (`id`),
KEY `presale_id` (`presaleFk`),
CONSTRAINT `exchangeConfig_ibfk_1` FOREIGN KEY (`presaleFk`) REFERENCES `exchangeType` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Configuration parameters';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Configuration parameters';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -7942,7 +7708,7 @@ CREATE TABLE `ftpConfig` (
`user` varchar(50) CHARACTER SET utf8mb3 NOT NULL,
`password` varchar(50) CHARACTER SET utf8mb3 NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Configuration parameters';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Configuration parameters';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -8172,7 +7938,7 @@ CREATE TABLE `log` (
`fieldValue` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`created` timestamp NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -8195,7 +7961,7 @@ CREATE TABLE `mail` (
UNIQUE KEY `mail_id` (`messageId`),
KEY `sender_id` (`senderFk`),
CONSTRAINT `mail_ibfk_2` FOREIGN KEY (`senderFk`) REFERENCES `mailSender` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -8211,7 +7977,7 @@ CREATE TABLE `mailSender` (
`kop` int(10) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `mail` (`mail`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='List of allowed mailers';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='List of allowed mailers';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -8271,7 +8037,7 @@ CREATE TABLE `param` (
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`),
UNIQUE KEY `name` (`name`,`subname`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Parameters to capture of every exchange';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Parameters to capture of every exchange';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -8321,7 +8087,7 @@ CREATE TABLE `putOrder` (
KEY `supplyResponseID_idx` (`supplyResponseID`),
KEY `putOrder_FK` (`saleFk`),
CONSTRAINT `putOrder_FK` FOREIGN KEY (`saleFk`) REFERENCES `vn`.`sale` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -8445,7 +8211,7 @@ BEGIN
CONCAT('El artículo ', s.concept, ' del ticket ', t.id , ' ha sido cancelado por Floramondo. ',
' Se ha actualizado la cantidad de ', OLD.quantity,' a 0. ',
IF (u.id IS NOT NULL AND c.email IS NOT NULL ,
- CONCAT('https://verdnatura.es/#!form=ecomerce%2Fticket&ticket=', t.id ),
+ CONCAT('https://shop.verdnatura.es/#!form=ecomerce%2Fticket&ticket=', t.id ),
CONCAT('https://salix.verdnatura.es/#!/ticket/', t.id ,'/summary')))
FROM vn.sale s
JOIN vn.ticket t ON t.id = s.ticketFk
@@ -8535,51 +8301,50 @@ DROP TABLE IF EXISTS `supplyOffer`;
/*!50001 DROP VIEW IF EXISTS `supplyOffer`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `supplyOffer` (
- `vmpID` tinyint NOT NULL,
- `diId` tinyint NOT NULL,
- `srId` tinyint NOT NULL,
- `Item_ArticleCode` tinyint NOT NULL,
- `product_name` tinyint NOT NULL,
- `company_name` tinyint NOT NULL,
- `Price` tinyint NOT NULL,
- `Quality` tinyint NOT NULL,
- `s1` tinyint NOT NULL,
- `s2` tinyint NOT NULL,
- `s3` tinyint NOT NULL,
- `s4` tinyint NOT NULL,
- `s5` tinyint NOT NULL,
- `s6` tinyint NOT NULL,
- `NumberOfUnits` tinyint NOT NULL,
- `EmbalageCode` tinyint NOT NULL,
- `LatestDeliveryDateTime` tinyint NOT NULL,
- `EarliestDespatchDateTime` tinyint NOT NULL,
- `FirstOrderDateTime` tinyint NOT NULL,
- `LatestOrderDateTime` tinyint NOT NULL,
- `NumberOfItemsPerCask` tinyint NOT NULL,
- `NumberOfLayersPerTrolley` tinyint NOT NULL,
- `MinimumNumberToOrder` tinyint NOT NULL,
- `MaximumNumberToOrder` tinyint NOT NULL,
- `IncrementalOrderableQuantity` tinyint NOT NULL,
- `PackingPrice` tinyint NOT NULL,
- `MarketPlaceID` tinyint NOT NULL,
- `PictureReference` tinyint NOT NULL,
- `supplyResponseUpdated` tinyint NOT NULL,
- `group_id` tinyint NOT NULL,
- `marketPlace` tinyint NOT NULL,
- `DeliveryPrice` tinyint NOT NULL,
- `ChargeAmount` tinyint NOT NULL,
- `MinimumQuantity` tinyint NOT NULL,
- `MaximumQuantity` tinyint NOT NULL,
- `OrderUnit` tinyint NOT NULL,
- `IncrementalOrderUnit` tinyint NOT NULL,
- `isEarlyBird` tinyint NOT NULL,
- `isVNHSupplier` tinyint NOT NULL,
- `expenseFk` tinyint NOT NULL,
- `intrastatFk` tinyint NOT NULL,
- `originFk` tinyint NOT NULL,
- `itemTypeFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `supplyOffer` AS SELECT
+ 1 AS `vmpID`,
+ 1 AS `diId`,
+ 1 AS `srId`,
+ 1 AS `Item_ArticleCode`,
+ 1 AS `product_name`,
+ 1 AS `company_name`,
+ 1 AS `Price`,
+ 1 AS `Quality`,
+ 1 AS `s1`,
+ 1 AS `s2`,
+ 1 AS `s3`,
+ 1 AS `s4`,
+ 1 AS `s5`,
+ 1 AS `s6`,
+ 1 AS `NumberOfUnits`,
+ 1 AS `EmbalageCode`,
+ 1 AS `LatestDeliveryDateTime`,
+ 1 AS `EarliestDespatchDateTime`,
+ 1 AS `FirstOrderDateTime`,
+ 1 AS `LatestOrderDateTime`,
+ 1 AS `NumberOfItemsPerCask`,
+ 1 AS `NumberOfLayersPerTrolley`,
+ 1 AS `MinimumNumberToOrder`,
+ 1 AS `MaximumNumberToOrder`,
+ 1 AS `IncrementalOrderableQuantity`,
+ 1 AS `PackingPrice`,
+ 1 AS `MarketPlaceID`,
+ 1 AS `PictureReference`,
+ 1 AS `supplyResponseUpdated`,
+ 1 AS `group_id`,
+ 1 AS `marketPlace`,
+ 1 AS `DeliveryPrice`,
+ 1 AS `ChargeAmount`,
+ 1 AS `MinimumQuantity`,
+ 1 AS `MaximumQuantity`,
+ 1 AS `OrderUnit`,
+ 1 AS `IncrementalOrderUnit`,
+ 1 AS `isEarlyBird`,
+ 1 AS `isVNHSupplier`,
+ 1 AS `expenseFk`,
+ 1 AS `intrastatFk`,
+ 1 AS `originFk`,
+ 1 AS `itemTypeFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -8656,7 +8421,7 @@ CREATE TABLE `supplyResponse` (
KEY `supplyResponse_updated_IDX` (`updated`) USING BTREE,
CONSTRAINT `supplyResponse_fk2` FOREIGN KEY (`MarketPlaceID`) REFERENCES `marketPlace` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `supplyResponseputOrder_FK` FOREIGN KEY (`vmpID`) REFERENCES `VMPSettings` (`VMPID`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -8709,7 +8474,7 @@ CREATE TABLE `supplyResponseLog` (
PRIMARY KEY (`id`),
KEY `supplyResponseLog_FK` (`supplyResponseFk`),
CONSTRAINT `supplyResponseLog_FK` FOREIGN KEY (`supplyResponseFk`) REFERENCES `supplyResponse` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Esta tabla la utiliza la empresa LOGIFLORA. No kkear.';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Esta tabla la utiliza la empresa LOGIFLORA. No kkear.';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -8813,6 +8578,8 @@ DELIMITER ;
--
-- Dumping routines for database 'edi'
--
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `imageName` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -8820,10 +8587,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `imageName`(vPictureReference VARCHAR(255)) RETURNS varchar(255) CHARSET utf8mb3 COLLATE utf8mb3_unicode_ci
+CREATE DEFINER=`root`@`localhost` FUNCTION `imageName`(vPictureReference VARCHAR(255)) RETURNS varchar(255) CHARSET utf8 COLLATE utf8_unicode_ci
DETERMINISTIC
BEGIN
@@ -8847,6 +8612,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `clean` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -8854,8 +8621,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `clean`()
BEGIN
@@ -8879,6 +8644,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `deliveryInformation_Delete` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -8886,8 +8653,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `deliveryInformation_Delete`()
BEGIN
@@ -8918,6 +8683,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ekt_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -8925,8 +8692,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ekt_add`(vPutOrderFk INT)
BEGIN
@@ -8995,6 +8760,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ekt_load` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -9002,8 +8769,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ekt_load`(IN `vSelf` INT)
proc:BEGIN
@@ -9150,7 +8915,6 @@ proc:BEGIN
,`grouping`
,quantity
,groupingMode
- ,producer
,packageFk
,weight
)
@@ -9164,9 +8928,8 @@ proc:BEGIN
,IFNULL(b.`grouping`, e.pac)
,@pac * e.qty
,vForceToPacking
- ,s.`name`
,IF(vHasToChangePackagingFk OR ISNULL(b.packageFk), vPackage, b.packageFk)
- ,b.weight
+ ,(IFNULL(i.weightByPiece,0) * @pac)/1000
FROM edi.ekt e
LEFT JOIN vn.buy b ON b.id = vBuy
LEFT JOIN vn.item i ON i.id = b.itemFk
@@ -9285,6 +9048,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ekt_loadNotBuy` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -9292,8 +9057,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ekt_loadNotBuy`()
BEGIN
@@ -9334,6 +9097,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ekt_refresh` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -9341,8 +9106,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ekt_refresh`(
`vSelf` INT, vMailFk INT)
@@ -9402,6 +9165,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ekt_scan` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -9409,8 +9174,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ekt_scan`(vBarcode VARCHAR(512))
BEGIN
@@ -9546,6 +9309,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `floramondo_offerRefresh` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -9553,8 +9318,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `floramondo_offerRefresh`()
proc: BEGIN
@@ -9583,10 +9346,20 @@ proc: BEGIN
RESIGNAL;
END;
+ DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
+ BEGIN
+ DO RELEASE_LOCK('edi.floramondo_offerRefresh');
+ RESIGNAL;
+ END;
+
IF 'test' = (SELECT environment FROM util.config) THEN
LEAVE proc;
END IF;
+ IF !GET_LOCK('edi.floramondo_offerRefresh', 0) THEN
+ LEAVE proc;
+ END IF;
+
SET vStartingTime = util.VN_NOW();
TRUNCATE edi.offerList ;
@@ -9874,11 +9647,11 @@ proc: BEGIN
JOIN itemToInsert ii ON i.supplyResponseFk = ii.`srId`
JOIN vn.packaging p ON p.id LIKE ii.EmbalageCode -- AND hasCompressionVariations
JOIN vn.itemTag it ON it.itemFk = i.id
- JOIN vn.tag tSize ON tSize.overwrite = 'size' AND tSize.id = it.tagFk
+ LEFT JOIN vn.tag tSize ON tSize.overwrite = 'size' AND tSize.id = it.tagFk
JOIN vn.volumeConfig vc
- SET i.packingOut = vc.standardFlowerBox * 1000
+ SET i.packingOut = IFNULL(vc.standardFlowerBox * 1000
* ii.NumberOfItemsPerCask
- / (p.width * p.depth * IFNULL(p.height, it.value ));
+ / (p.width * p.depth * IFNULL(p.height, it.value )),ii.NumberOfItemsPerCask);
DROP TABLE IF EXISTS tmp.item;
CREATE TABLE tmp.item
@@ -9921,7 +9694,6 @@ proc: BEGIN
UPDATE edi.warehouseFloramondo
SET entryFk = vn.entry_getForLogiflora(TIMESTAMPADD(DAY,travellingDays,vLanded), warehouseFk);
-
IF vLanded IS NOT NULL THEN
-- actualiza la oferta existente
UPDATE vn.buy b
@@ -10000,7 +9772,6 @@ proc: BEGIN
GROUP BY sr.vmpID) sub ON o.supplier = sub.name
SET o.algemesi = sub.total;
-
END IF;
DROP TEMPORARY TABLE
@@ -10024,12 +9795,16 @@ proc: BEGIN
INSERT INTO edi.log(tableName, fieldName,fieldValue)
VALUES('floramondo_offerRefresh','Tiempo de proceso',TIMEDIFF(util.VN_NOW(),vStartingTime));
+
+ DO RELEASE_LOCK('edi.floramondo_offerRefresh');
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `item_freeAdd` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -10037,66 +9812,44 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `item_freeAdd`()
BEGIN
-
- /**
- * Rellena la tabla item_free con los id ausentes en vn.item
- *
- */
-
- DECLARE vCounter INT DEFAULT 400000;
-
- DECLARE vCounterNewItems INT DEFAULT 0;
-
+/**
+ * Rellena la tabla item_free con los id ausentes en vn.item
+ *
+ */
DECLARE vMaxItem INT;
- DECLARE vExists BOOLEAN DEFAULT FALSE;
-
SELECT MAX(id)
INTO vMaxItem
FROM vn.item;
DROP TEMPORARY TABLE IF EXISTS tmp.itemBusy;
CREATE TEMPORARY TABLE tmp.itemBusy
- (id INT PRIMARY KEY)
+ (id INT PRIMARY KEY)
SELECT i.id
FROM vn.item i
- WHERE id >= 400000
+ WHERE i.isFloramondo
UNION ALL
SELECT ifr.id
FROM edi.item_free ifr;
- WHILE vCounter < vMaxItem DO
-
- SET vCounter = vCounter + 1;
-
- SELECT count(*) INTO vExists
- FROM tmp.itemBusy
- WHERE id = vCounter;
-
- IF NOT vExists THEN
-
- SET vCounterNewItems = vCounterNewItems + 1;
-
- INSERT INTO edi.item_free(id)
- VALUES (vCounter);
-
- END IF;
-
- END WHILE;
-
- DROP TEMPORARY TABLE tmp.itemBusy;
+ INSERT INTO edi.item_free(id)
+ SELECT i.id
+ FROM vn.item i
+ LEFT JOIN tmp.itemBusy ib ON ib.id = i.id
+ WHERE i.isFloramondo AND ib.id is null;
+ DROP TEMPORARY TABLE IF EXISTS tmp.itemBusy;
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `item_getNewByEkt` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -10104,8 +9857,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection = utf8mb3_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `item_getNewByEkt`(vEktFk INT, OUT vItemFk INT)
BEGIN
@@ -10289,6 +10040,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `mail_new` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -10296,8 +10049,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `mail_new`(
vMessageId VARCHAR(100)
@@ -10342,6 +10093,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_calcCompByFloramondo` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -10349,8 +10102,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_calcCompByFloramondo`(vSelf INT)
BEGIN
@@ -10487,7 +10238,7 @@ CREATE TABLE `config` (
`dmsDir` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'Directory where documents are allocated',
PRIMARY KEY (`id`),
KEY `jwtkey_IX` (`jwtKey`) COMMENT 'Prueba de Ernesto 3.8.2020. MySQL se queja de no tener indices. Si, se que solo tiene un registro pero molesta para depurar otros.'
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Global configuration parameters';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Global configuration parameters';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -10501,7 +10252,7 @@ CREATE TABLE `contact` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`recipient` varchar(255) COLLATE utf8mb3_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -10584,7 +10335,7 @@ CREATE TABLE `imageConfig` (
`useXsendfile` tinyint(4) NOT NULL COMMENT 'Whether to use the apache module XSendfile',
`url` varchar(255) NOT NULL COMMENT 'Public URL where image are hosted',
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COMMENT='Global image parameters';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COMMENT='Global image parameters';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -10722,7 +10473,7 @@ CREATE TABLE `mailConfig` (
`user` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'SMTP user',
`password` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'SMTP password, base64 encoded',
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -10746,10 +10497,9 @@ DROP TABLE IF EXISTS `mainAccountBank`;
/*!50001 DROP VIEW IF EXISTS `mainAccountBank`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `mainAccountBank` (
- `name` tinyint NOT NULL,
- `iban` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `mainAccountBank` AS SELECT
+ 1 AS `name`,
+ 1 AS `iban` */;
SET character_set_client = @saved_cs_client;
--
@@ -10813,20 +10563,19 @@ DROP TABLE IF EXISTS `myAddress`;
/*!50001 DROP VIEW IF EXISTS `myAddress`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `myAddress` (
- `id` tinyint NOT NULL,
- `clientFk` tinyint NOT NULL,
- `street` tinyint NOT NULL,
- `city` tinyint NOT NULL,
- `postalCode` tinyint NOT NULL,
- `provinceFk` tinyint NOT NULL,
- `nickname` tinyint NOT NULL,
- `isDefaultAddress` tinyint NOT NULL,
- `isActive` tinyint NOT NULL,
- `longitude` tinyint NOT NULL,
- `latitude` tinyint NOT NULL,
- `agencyModeFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `myAddress` AS SELECT
+ 1 AS `id`,
+ 1 AS `clientFk`,
+ 1 AS `street`,
+ 1 AS `city`,
+ 1 AS `postalCode`,
+ 1 AS `provinceFk`,
+ 1 AS `nickname`,
+ 1 AS `isDefaultAddress`,
+ 1 AS `isActive`,
+ 1 AS `longitude`,
+ 1 AS `latitude`,
+ 1 AS `agencyModeFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -10837,17 +10586,16 @@ DROP TABLE IF EXISTS `myBasket`;
/*!50001 DROP VIEW IF EXISTS `myBasket`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `myBasket` (
- `id` tinyint NOT NULL,
- `made` tinyint NOT NULL,
- `sent` tinyint NOT NULL,
- `clientFk` tinyint NOT NULL,
- `deliveryMethodFk` tinyint NOT NULL,
- `agencyModeFk` tinyint NOT NULL,
- `addressFk` tinyint NOT NULL,
- `companyFk` tinyint NOT NULL,
- `notes` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `myBasket` AS SELECT
+ 1 AS `id`,
+ 1 AS `made`,
+ 1 AS `sent`,
+ 1 AS `clientFk`,
+ 1 AS `deliveryMethodFk`,
+ 1 AS `agencyModeFk`,
+ 1 AS `addressFk`,
+ 1 AS `companyFk`,
+ 1 AS `notes` */;
SET character_set_client = @saved_cs_client;
--
@@ -10858,12 +10606,11 @@ DROP TABLE IF EXISTS `myBasketDefaults`;
/*!50001 DROP VIEW IF EXISTS `myBasketDefaults`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `myBasketDefaults` (
- `deliveryMethod` tinyint NOT NULL,
- `agencyModeFk` tinyint NOT NULL,
- `addressFk` tinyint NOT NULL,
- `defaultAgencyFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `myBasketDefaults` AS SELECT
+ 1 AS `deliveryMethod`,
+ 1 AS `agencyModeFk`,
+ 1 AS `addressFk`,
+ 1 AS `defaultAgencyFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -10874,14 +10621,13 @@ DROP TABLE IF EXISTS `myBasketItem`;
/*!50001 DROP VIEW IF EXISTS `myBasketItem`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `myBasketItem` (
- `id` tinyint NOT NULL,
- `orderFk` tinyint NOT NULL,
- `warehouseFk` tinyint NOT NULL,
- `itemFk` tinyint NOT NULL,
- `amount` tinyint NOT NULL,
- `price` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `myBasketItem` AS SELECT
+ 1 AS `id`,
+ 1 AS `orderFk`,
+ 1 AS `warehouseFk`,
+ 1 AS `itemFk`,
+ 1 AS `amount`,
+ 1 AS `price` */;
SET character_set_client = @saved_cs_client;
--
@@ -10892,12 +10638,11 @@ DROP TABLE IF EXISTS `myClient`;
/*!50001 DROP VIEW IF EXISTS `myClient`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `myClient` (
- `id` tinyint NOT NULL,
- `isToBeMailed` tinyint NOT NULL,
- `defaultAddressFk` tinyint NOT NULL,
- `credit` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `myClient` AS SELECT
+ 1 AS `id`,
+ 1 AS `isToBeMailed`,
+ 1 AS `defaultAddressFk`,
+ 1 AS `credit` */;
SET character_set_client = @saved_cs_client;
--
@@ -10908,13 +10653,12 @@ DROP TABLE IF EXISTS `myInvoice`;
/*!50001 DROP VIEW IF EXISTS `myInvoice`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `myInvoice` (
- `id` tinyint NOT NULL,
- `ref` tinyint NOT NULL,
- `issued` tinyint NOT NULL,
- `amount` tinyint NOT NULL,
- `hasPdf` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `myInvoice` AS SELECT
+ 1 AS `id`,
+ 1 AS `ref`,
+ 1 AS `issued`,
+ 1 AS `amount`,
+ 1 AS `hasPdf` */;
SET character_set_client = @saved_cs_client;
--
@@ -10925,12 +10669,11 @@ DROP TABLE IF EXISTS `myMenu`;
/*!50001 DROP VIEW IF EXISTS `myMenu`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `myMenu` (
- `id` tinyint NOT NULL,
- `path` tinyint NOT NULL,
- `description` tinyint NOT NULL,
- `parentFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `myMenu` AS SELECT
+ 1 AS `id`,
+ 1 AS `path`,
+ 1 AS `description`,
+ 1 AS `parentFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -10941,21 +10684,20 @@ DROP TABLE IF EXISTS `myOrder`;
/*!50001 DROP VIEW IF EXISTS `myOrder`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `myOrder` (
- `id` tinyint NOT NULL,
- `landed` tinyint NOT NULL,
- `clientFk` tinyint NOT NULL,
- `deliveryMethodFk` tinyint NOT NULL,
- `agencyModeFk` tinyint NOT NULL,
- `addressFk` tinyint NOT NULL,
- `companyFk` tinyint NOT NULL,
- `note` tinyint NOT NULL,
- `sourceApp` tinyint NOT NULL,
- `isConfirmed` tinyint NOT NULL,
- `created` tinyint NOT NULL,
- `firstRowStamp` tinyint NOT NULL,
- `confirmed` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `myOrder` AS SELECT
+ 1 AS `id`,
+ 1 AS `landed`,
+ 1 AS `clientFk`,
+ 1 AS `deliveryMethodFk`,
+ 1 AS `agencyModeFk`,
+ 1 AS `addressFk`,
+ 1 AS `companyFk`,
+ 1 AS `note`,
+ 1 AS `sourceApp`,
+ 1 AS `isConfirmed`,
+ 1 AS `created`,
+ 1 AS `firstRowStamp`,
+ 1 AS `confirmed` */;
SET character_set_client = @saved_cs_client;
--
@@ -10966,18 +10708,17 @@ DROP TABLE IF EXISTS `myOrderRow`;
/*!50001 DROP VIEW IF EXISTS `myOrderRow`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `myOrderRow` (
- `id` tinyint NOT NULL,
- `Fk` tinyint NOT NULL,
- `itemFk` tinyint NOT NULL,
- `warehouseFk` tinyint NOT NULL,
- `shipped` tinyint NOT NULL,
- `amount` tinyint NOT NULL,
- `price` tinyint NOT NULL,
- `rate` tinyint NOT NULL,
- `created` tinyint NOT NULL,
- `saleFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `myOrderRow` AS SELECT
+ 1 AS `id`,
+ 1 AS `Fk`,
+ 1 AS `itemFk`,
+ 1 AS `warehouseFk`,
+ 1 AS `shipped`,
+ 1 AS `amount`,
+ 1 AS `price`,
+ 1 AS `rate`,
+ 1 AS `created`,
+ 1 AS `saleFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -10988,10 +10729,9 @@ DROP TABLE IF EXISTS `myOrderTicket`;
/*!50001 DROP VIEW IF EXISTS `myOrderTicket`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `myOrderTicket` (
- `orderFk` tinyint NOT NULL,
- `ticketFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `myOrderTicket` AS SELECT
+ 1 AS `orderFk`,
+ 1 AS `ticketFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -11002,19 +10742,18 @@ DROP TABLE IF EXISTS `myTicket`;
/*!50001 DROP VIEW IF EXISTS `myTicket`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `myTicket` (
- `id` tinyint NOT NULL,
- `clientFk` tinyint NOT NULL,
- `warehouseFk` tinyint NOT NULL,
- `shipped` tinyint NOT NULL,
- `landed` tinyint NOT NULL,
- `nickname` tinyint NOT NULL,
- `agencyModeFk` tinyint NOT NULL,
- `refFk` tinyint NOT NULL,
- `addressFk` tinyint NOT NULL,
- `location` tinyint NOT NULL,
- `companyFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `myTicket` AS SELECT
+ 1 AS `id`,
+ 1 AS `clientFk`,
+ 1 AS `warehouseFk`,
+ 1 AS `shipped`,
+ 1 AS `landed`,
+ 1 AS `nickname`,
+ 1 AS `agencyModeFk`,
+ 1 AS `refFk`,
+ 1 AS `addressFk`,
+ 1 AS `location`,
+ 1 AS `companyFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -11025,17 +10764,16 @@ DROP TABLE IF EXISTS `myTicketRow`;
/*!50001 DROP VIEW IF EXISTS `myTicketRow`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `myTicketRow` (
- `id` tinyint NOT NULL,
- `itemFk` tinyint NOT NULL,
- `ticketFk` tinyint NOT NULL,
- `concept` tinyint NOT NULL,
- `quantity` tinyint NOT NULL,
- `price` tinyint NOT NULL,
- `discount` tinyint NOT NULL,
- `reserved` tinyint NOT NULL,
- `isPicked` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `myTicketRow` AS SELECT
+ 1 AS `id`,
+ 1 AS `itemFk`,
+ 1 AS `ticketFk`,
+ 1 AS `concept`,
+ 1 AS `quantity`,
+ 1 AS `price`,
+ 1 AS `discount`,
+ 1 AS `reserved`,
+ 1 AS `isPicked` */;
SET character_set_client = @saved_cs_client;
--
@@ -11046,15 +10784,14 @@ DROP TABLE IF EXISTS `myTicketService`;
/*!50001 DROP VIEW IF EXISTS `myTicketService`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `myTicketService` (
- `id` tinyint NOT NULL,
- `description` tinyint NOT NULL,
- `quantity` tinyint NOT NULL,
- `price` tinyint NOT NULL,
- `taxClassFk` tinyint NOT NULL,
- `ticketFk` tinyint NOT NULL,
- `ticketServiceTypeFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `myTicketService` AS SELECT
+ 1 AS `id`,
+ 1 AS `description`,
+ 1 AS `quantity`,
+ 1 AS `price`,
+ 1 AS `taxClassFk`,
+ 1 AS `ticketFk`,
+ 1 AS `ticketServiceTypeFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -11065,21 +10802,20 @@ DROP TABLE IF EXISTS `myTicketState`;
/*!50001 DROP VIEW IF EXISTS `myTicketState`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `myTicketState` (
- `id` tinyint NOT NULL,
- `clientFk` tinyint NOT NULL,
- `warehouseFk` tinyint NOT NULL,
- `shipped` tinyint NOT NULL,
- `landed` tinyint NOT NULL,
- `nickname` tinyint NOT NULL,
- `agencyModeFk` tinyint NOT NULL,
- `refFk` tinyint NOT NULL,
- `addressFk` tinyint NOT NULL,
- `location` tinyint NOT NULL,
- `companyFk` tinyint NOT NULL,
- `alertLevel` tinyint NOT NULL,
- `code` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `myTicketState` AS SELECT
+ 1 AS `id`,
+ 1 AS `clientFk`,
+ 1 AS `warehouseFk`,
+ 1 AS `shipped`,
+ 1 AS `landed`,
+ 1 AS `nickname`,
+ 1 AS `agencyModeFk`,
+ 1 AS `refFk`,
+ 1 AS `addressFk`,
+ 1 AS `location`,
+ 1 AS `companyFk`,
+ 1 AS `alertLevel`,
+ 1 AS `code` */;
SET character_set_client = @saved_cs_client;
--
@@ -11090,16 +10826,15 @@ DROP TABLE IF EXISTS `myTpvTransaction`;
/*!50001 DROP VIEW IF EXISTS `myTpvTransaction`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `myTpvTransaction` (
- `id` tinyint NOT NULL,
- `merchantFk` tinyint NOT NULL,
- `clientFk` tinyint NOT NULL,
- `receiptFk` tinyint NOT NULL,
- `amount` tinyint NOT NULL,
- `response` tinyint NOT NULL,
- `status` tinyint NOT NULL,
- `created` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `myTpvTransaction` AS SELECT
+ 1 AS `id`,
+ 1 AS `merchantFk`,
+ 1 AS `clientFk`,
+ 1 AS `receiptFk`,
+ 1 AS `amount`,
+ 1 AS `response`,
+ 1 AS `status`,
+ 1 AS `created` */;
SET character_set_client = @saved_cs_client;
--
@@ -11123,7 +10858,7 @@ CREATE TABLE `news` (
KEY `tag` (`tag`),
CONSTRAINT `news_ibfk_1` FOREIGN KEY (`userFk`) REFERENCES `account`.`account` (`id`) ON UPDATE CASCADE,
CONSTRAINT `news_ibfk_2` FOREIGN KEY (`tag`) REFERENCES `newsTag` (`name`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -11341,7 +11076,6 @@ CREATE TABLE `orderConfig` (
`defaultAgencyFk` int(11) DEFAULT NULL,
`guestMethod` varchar(45) CHARACTER SET utf8mb3 NOT NULL,
`guestAgencyFk` int(11) NOT NULL,
- `guestAddressFk` int(11) NOT NULL,
`reserveTime` time NOT NULL,
`defaultCompanyFk` smallint(6) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
@@ -11350,13 +11084,11 @@ CREATE TABLE `orderConfig` (
KEY `defaultCompanyFk` (`defaultCompanyFk`),
KEY `guestMethod` (`guestMethod`),
KEY `defaultAgencyFk` (`defaultAgencyFk`),
- KEY `guestAddressFk` (`guestAddressFk`),
CONSTRAINT `orderConfig_ibfk_1` FOREIGN KEY (`employeeFk`) REFERENCES `vn`.`worker` (`id`) ON UPDATE CASCADE,
CONSTRAINT `orderConfig_ibfk_2` FOREIGN KEY (`defaultCompanyFk`) REFERENCES `vn`.`company` (`id`) ON UPDATE CASCADE,
CONSTRAINT `orderConfig_ibfk_3` FOREIGN KEY (`guestAgencyFk`) REFERENCES `vn`.`agencyMode` (`id`) ON UPDATE CASCADE,
- CONSTRAINT `orderConfig_ibfk_4` FOREIGN KEY (`defaultAgencyFk`) REFERENCES `vn`.`agencyMode` (`id`),
- CONSTRAINT `orderConfig_ibfk_5` FOREIGN KEY (`guestAddressFk`) REFERENCES `vn`.`address` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+ CONSTRAINT `orderConfig_ibfk_4` FOREIGN KEY (`defaultAgencyFk`) REFERENCES `vn`.`agencyMode` (`id`)
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -11522,10 +11254,9 @@ DROP TABLE IF EXISTS `orderTicket`;
/*!50001 DROP VIEW IF EXISTS `orderTicket`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `orderTicket` (
- `orderFk` tinyint NOT NULL,
- `ticketFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `orderTicket` AS SELECT
+ 1 AS `orderFk`,
+ 1 AS `ticketFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -11536,11 +11267,10 @@ DROP TABLE IF EXISTS `order_component`;
/*!50001 DROP VIEW IF EXISTS `order_component`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `order_component` (
- `order_row_id` tinyint NOT NULL,
- `component_id` tinyint NOT NULL,
- `price` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `order_component` AS SELECT
+ 1 AS `order_row_id`,
+ 1 AS `component_id`,
+ 1 AS `price` */;
SET character_set_client = @saved_cs_client;
--
@@ -11551,18 +11281,17 @@ DROP TABLE IF EXISTS `order_row`;
/*!50001 DROP VIEW IF EXISTS `order_row`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `order_row` (
- `id` tinyint NOT NULL,
- `order_id` tinyint NOT NULL,
- `item_id` tinyint NOT NULL,
- `warehouse_id` tinyint NOT NULL,
- `shipment` tinyint NOT NULL,
- `amount` tinyint NOT NULL,
- `price` tinyint NOT NULL,
- `rate` tinyint NOT NULL,
- `created` tinyint NOT NULL,
- `Id_Movimiento` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `order_row` AS SELECT
+ 1 AS `id`,
+ 1 AS `order_id`,
+ 1 AS `item_id`,
+ 1 AS `warehouse_id`,
+ 1 AS `shipment`,
+ 1 AS `amount`,
+ 1 AS `price`,
+ 1 AS `rate`,
+ 1 AS `created`,
+ 1 AS `Id_Movimiento` */;
SET character_set_client = @saved_cs_client;
--
@@ -11625,7 +11354,7 @@ CREATE TABLE `shelfConfig` (
CONSTRAINT `shelfConfig_ibfk_1` FOREIGN KEY (`family`) REFERENCES `vn`.`itemType` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `shelfConfig_ibfk_2` FOREIGN KEY (`shelf`) REFERENCES `shelf` (`id`) ON UPDATE CASCADE,
CONSTRAINT `shelfConfig_ibfk_3` FOREIGN KEY (`warehouse`) REFERENCES `vn`.`warehouse` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -11657,7 +11386,7 @@ CREATE TABLE `survey` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`question` varchar(255) COLLATE utf8mb3_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -11749,7 +11478,7 @@ CREATE TABLE `tpvImapConfig` (
`successFolder` varchar(150) CHARACTER SET utf8mb3 DEFAULT NULL,
`errorFolder` varchar(150) CHARACTER SET utf8mb3 DEFAULT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='IMAP configuration parameters for virtual TPV';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='IMAP configuration parameters for virtual TPV';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -11959,6 +11688,8 @@ DELIMITER ;
--
-- Dumping routines for database 'hedera'
--
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `myBasket_getId` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -11966,15 +11697,13 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `myBasket_getId`() RETURNS int(11)
DETERMINISTIC
BEGIN
DECLARE vOrder INT;
- SELECT orderFk INTO vOrder FROM basketOrder
+ SELECT orderFk INTO vOrder FROM basketOrder
WHERE clientFk = account.myUser_getId();
RETURN vOrder;
@@ -11984,6 +11713,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `myClient_getDebt` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -11991,8 +11722,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `myClient_getDebt`(vDate DATE) RETURNS decimal(10,2)
DETERMINISTIC
@@ -12009,6 +11738,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `myUser_checkRestPriv` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -12016,8 +11747,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `myUser_checkRestPriv`(vMethodPath VARCHAR(255)) RETURNS tinyint(1)
DETERMINISTIC
@@ -12052,6 +11781,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `order_getTotal` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -12059,8 +11790,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `order_getTotal`(vSelf INT) RETURNS decimal(10,2)
READS SQL DATA
@@ -12095,6 +11824,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `catalog_calcFromMyAddress` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -12102,8 +11833,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `catalog_calcFromMyAddress`(vDelivery DATE, vAddress INT)
BEGIN
@@ -12147,6 +11876,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `catalog_calcFromMyAddress_beta` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -12154,8 +11885,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `catalog_calcFromMyAddress_beta`(vDelivery DATE, vAddress INT)
BEGIN
@@ -12199,6 +11928,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `image_ref` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -12206,8 +11937,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `image_ref`(
vCollection VARCHAR(255),
@@ -12237,6 +11966,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `image_unref` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -12244,8 +11975,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `image_unref`(
vCollection VARCHAR(255),
@@ -12267,6 +11996,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `item_calcCatalog` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -12274,8 +12005,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `item_calcCatalog`(
vSelf INT,
@@ -12315,55 +12044,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 DROP PROCEDURE IF EXISTS `item_getList` */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `item_getList`(IN `vWarehouse` SMALLINT, IN `vShipping` DATE, IN `vCategory` INT, IN `vRate` TINYINT)
-BEGIN
- DECLARE vCalc INT;
-
- CALL cache.available_refresh(vCalc, FALSE, vWarehouse, vShipping);
- CALL vn.buyUltimate(vWarehouse, vShipping);
-
- SELECT a.id, a.`name`, a.category, a.size, a.stems, a.inkFk, a.typeFk, a.image,
- c.available, o.`name` origin, t.`name` `type`,
- CASE b.groupingMode
- WHEN 0 THEN 1
- WHEN 2 THEN b.packing
- ELSE b.`grouping`
- END AS `grouping`,
- CASE vRate
- WHEN 1 THEN b.price1
- WHEN 2 THEN b.price2
- WHEN 3 THEN b.price3
- ELSE NULL
- END AS price
- FROM cache.available c
- JOIN vn.item a ON a.id = c.item_id
- JOIN vn.itemType t ON t.id = a.typeFk
- JOIN vn.itemCategory r ON r.id = t.categoryFk
- LEFT JOIN vn.origin o ON o.id = a.originFk
- JOIN tmp.buyUltimate bu ON bu.itemFk = a.id
- JOIN vn.buy b ON b.id = bu.buyFk
- WHERE c.calc_id = vCalc
- AND c.available > 0
- AND a.id != 90
- AND r.display
- AND (vCategory IS NULL OR vCategory = r.id)
- ORDER BY a.typeFk, a.`name`, a.size;
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 DROP PROCEDURE IF EXISTS `item_getVisible` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -12371,8 +12053,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `item_getVisible`(
vWarehouse TINYINT,
@@ -12489,7 +12169,7 @@ BEGIN
LEFT JOIN vn.packaging p ON p.id = t.packageFk
WHERE CEIL(s.quantity / t.packing) > 0
-- FIXME: Column Cubos.box not included in view vn.packaging
- /* AND p.box */ ;
+ /* AND p.box */;
DROP TEMPORARY TABLE
`filter`,
@@ -12501,6 +12181,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `item_listAllocation` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -12508,8 +12190,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `item_listAllocation`(IN `vWh` TINYINT, IN `vDate` DATE, IN `vType` INT, IN `vPrefix` VARCHAR(255), IN `vUseIds` BOOLEAN)
BEGIN
@@ -12542,6 +12222,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myBasket_addItem` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -12549,8 +12231,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myBasket_addItem`(
vWarehouse INT,
@@ -12564,6 +12244,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myBasket_calcCatalogFromItem` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -12571,8 +12253,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myBasket_calcCatalogFromItem`(vItem INT)
BEGIN
@@ -12594,6 +12274,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myBasket_calcCatalogFull` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -12601,8 +12283,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myBasket_calcCatalogFull`()
BEGIN
@@ -12624,6 +12304,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myBasket_check` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -12631,8 +12313,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myBasket_check`()
BEGIN
@@ -12672,6 +12352,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myBasket_configure` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -12679,25 +12361,23 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myBasket_configure`(
vDelivery DATE,
- vDeliveryMethod VARCHAR(45),
- vAgency INT,
- vAddress INT)
+ vDeliveryMethod VARCHAR(45),
+ vAgency INT,
+ vAddress INT)
BEGIN
/**
- * Configura la cesta de la compra utilizando los parámetros
- * pasados. Si los parámetros no son válidos devuelve un error.
+ * Configura la cesta de la compra utilizando los parámetros pasados. Si los
+ * parámetros no son válidos devuelve un error.
*
* @param vDelivery Fecha de recogida
* @param vAgency Id de la agencia
* @param vAddress Id de dirección de envío, @NULL si es recogida
*/
DECLARE vSelf INT;
- DECLARE vCompany INT;
+ DECLARE vCompany INT;
DECLARE vDeliveryMethodId INT;
DECLARE CONTINUE HANDLER FOR NOT FOUND SET vSelf = NULL;
@@ -12713,17 +12393,14 @@ BEGIN
FROM vn.deliveryMethod
WHERE code = vDeliveryMethod;
- IF vDeliveryMethod = 'PICKUP' AND vAddress IS NULL
- THEN
+ IF vDeliveryMethod = 'PICKUP' AND vAddress IS NULL THEN
SELECT defaultAddressFk INTO vAddress
FROM myClient;
END IF;
SET vSelf = myBasket_getId();
- IF vSelf IS NULL
- THEN
-
+ IF vSelf IS NULL THEN
SELECT defaultCompanyFk INTO vCompany
FROM orderConfig;
@@ -12734,14 +12411,14 @@ BEGIN
delivery_method_id = vDeliveryMethodId,
agency_id = vAgency,
address_id = vAddress,
- source_app = 'WEB',
- company_id = vCompany;
+ source_app = 'WEB',
+ company_id = vCompany;
SET vSelf = LAST_INSERT_ID();
- INSERT INTO basketOrder SET
+ INSERT INTO basketOrder SET
clientFk = account.myUser_getId(),
- orderFk = vSelf;
+ orderFk = vSelf;
ELSE
UPDATE `order`
SET
@@ -12764,6 +12441,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myBasket_configureForGuest` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -12771,34 +12450,35 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myBasket_configureForGuest`()
BEGIN
- DECLARE vMethod VARCHAR(255);
- DECLARE vAgency INT;
- DECLARE vAddress INT;
- DECLARE vDate DATE;
+ DECLARE vMethod VARCHAR(255);
+ DECLARE vAgency INT;
+ DECLARE vAddress INT;
+ DECLARE vDate DATE;
- SELECT guestMethod, guestAgencyFk, guestAddressFk
+ SELECT cf.guestMethod, cf.guestAgencyFk, cl.defaultAddressFk
INTO vMethod, vAgency, vAddress
- FROM orderConfig
- LIMIT 1;
+ FROM orderConfig cf
+ JOIN myClient cl
+ LIMIT 1;
SET vDate = TIMESTAMPADD(DAY, 1, util.VN_CURDATE());
- IF WEEKDAY(vDate) BETWEEN 5 AND 6 THEN
+ IF WEEKDAY(vDate) BETWEEN 5 AND 6 THEN
SET vDate = TIMESTAMPADD(DAY, 7 - WEEKDAY(vDate), vDate);
END IF;
- CALL myBasket_configure(vDate, vMethod, vAgency, vAddress);
+ CALL myBasket_configure(vDate, vMethod, vAgency, vAddress);
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myBasket_confirm` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -12806,8 +12486,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myBasket_confirm`()
BEGIN
@@ -12825,6 +12503,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myBasket_getAvailable` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -12832,8 +12512,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myBasket_getAvailable`()
BEGIN
@@ -12849,6 +12527,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myBasket_getTax` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -12856,8 +12536,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myBasket_getTax`()
READS SQL DATA
@@ -12881,6 +12559,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myOrder_addItem` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -12888,8 +12568,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myOrder_addItem`(
vSelf INT,
@@ -12912,6 +12590,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myOrder_confirm` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -12919,8 +12599,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myOrder_confirm`(vSelf INT)
BEGIN
@@ -12939,6 +12617,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myOrder_getAvailable` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -12946,8 +12626,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myOrder_getAvailable`(vSelf INT)
BEGIN
@@ -12972,6 +12650,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myOrder_newWithAddress` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -12979,8 +12659,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myOrder_newWithAddress`(
OUT vSelf INT,
@@ -13044,6 +12722,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myOrder_newWithDate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -13051,8 +12731,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myOrder_newWithDate`(
OUT vSelf INT,
@@ -13116,6 +12794,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myTicket_get` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -13123,8 +12803,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myTicket_get`(vSelf INT)
BEGIN
@@ -13170,6 +12848,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myTicket_getPackages` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -13177,8 +12857,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myTicket_getPackages`(vSelf INT)
BEGIN
@@ -13203,6 +12881,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myTicket_getRows` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -13210,8 +12890,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myTicket_getRows`(vSelf INT)
BEGIN
@@ -13232,6 +12910,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myTicket_getServices` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -13239,8 +12919,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myTicket_getServices`(vSelf INT)
BEGIN
@@ -13259,6 +12937,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myTicket_list` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -13266,8 +12946,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myTicket_list`(vFrom DATE, vTo DATE)
BEGIN
@@ -13311,6 +12989,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myTicket_logAccess` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -13318,8 +12998,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myTicket_logAccess`(vSelf INT)
BEGIN
@@ -13339,6 +13017,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myTpvTransaction_end` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -13346,8 +13026,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myTpvTransaction_end`(vSelf INT, vStatus VARCHAR(12))
BEGIN
@@ -13372,6 +13050,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `myTpvTransaction_start` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -13379,8 +13059,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `myTpvTransaction_start`(vAmount INT, vCompany INT)
BEGIN
@@ -13459,6 +13137,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `order_addItem` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -13466,8 +13146,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `order_addItem`(
vSelf INT,
@@ -13575,6 +13253,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `order_calcCatalog` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -13582,8 +13262,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `order_calcCatalog`(vSelf INT)
BEGIN
@@ -13622,6 +13300,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `order_calcCatalogFromItem` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -13629,8 +13309,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `order_calcCatalogFromItem`(vSelf INT, vItem INT)
BEGIN
@@ -13662,6 +13340,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `order_calcCatalogFull` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -13669,8 +13349,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `order_calcCatalogFull`(vSelf INT)
BEGIN
@@ -13697,10 +13375,13 @@ BEGIN
CALL vn.catalog_calculate(vDate, vAddress, vAgencyMode);
- IF account.myUser_getName() = 'visitor'
- THEN
- DROP TEMPORARY TABLE tmp.ticketComponent;
- UPDATE tmp.ticketCalculateItem SET price = NULL;
+ IF account.myUser_getName() = 'visitor' THEN
+ UPDATE tmp.ticketCalculateItem
+ SET price = NULL;
+ UPDATE tmp.ticketComponent
+ SET cost = 0;
+ UPDATE tmp.ticketComponentPrice
+ SET price = 0, priceKg = NULL;
END IF;
END ;;
DELIMITER ;
@@ -13708,6 +13389,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `order_checkConfig` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -13715,16 +13398,14 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `order_checkConfig`(vSelf INT)
BEGIN
/**
-* Comprueba que la configuración del pedido es correcta.
-*
-* @param vSelf Identificador del pedido
-*/
+ * Comprueba que la configuración del pedido es correcta.
+ *
+ * @param vSelf Identificador del pedido
+ */
DECLARE vDeliveryMethod VARCHAR(255);
DECLARE vLanded DATE;
DECLARE vAgencyMode INT;
@@ -13743,9 +13424,7 @@ BEGIN
-- Comprueba que se ha seleccionado una dirección
- IF vDeliveryMethod IN ('AGENCY', 'DELIVERY')
- AND vAddress IS NULL
- THEN
+ IF vDeliveryMethod IN ('AGENCY', 'DELIVERY') AND vAddress IS NULL THEN
CALL util.throw ('ORDER_EMPTY_ADDRESS');
END IF;
@@ -13782,6 +13461,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `order_confirm` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -13789,8 +13470,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `order_confirm`(vSelf INT)
BEGIN
@@ -13808,6 +13487,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `order_confirmWithUser` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -13815,8 +13496,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `order_confirmWithUser`(IN `vOrder` INT, IN `vUserId` INT)
BEGIN
@@ -13978,7 +13657,7 @@ BEGIN
THEN
INSERT INTO vn.ticketObservation SET
ticketFk = vTicket,
- observationTypeFk = 4 /* salesperson */ ,
+ observationTypeFk = 4 /* salesperson */,
`description` = vNotes
ON DUPLICATE KEY UPDATE
`description` = CONCAT(VALUES(`description`),'. ', `description`);
@@ -14119,6 +13798,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `order_doRecalc` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -14126,8 +13807,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `order_doRecalc`()
proc: BEGIN
@@ -14185,6 +13864,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `order_getAvailable` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -14192,8 +13873,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `order_getAvailable`(vSelf INT)
BEGIN
@@ -14230,6 +13909,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `order_getTax` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -14237,8 +13918,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `order_getTax`()
READS SQL DATA
@@ -14305,6 +13984,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `order_getTotal` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -14312,8 +13993,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `order_getTotal`()
BEGIN
@@ -14343,6 +14022,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `order_recalc` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -14350,8 +14031,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `order_recalc`(vSelf INT)
BEGIN
@@ -14389,6 +14068,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `order_requestRecalc` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -14396,8 +14077,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `order_requestRecalc`(vSelf INT)
proc: BEGIN
@@ -14417,6 +14096,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `order_update` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -14424,8 +14105,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `order_update`(vSelf INT)
proc: BEGIN
@@ -14497,6 +14176,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `survey_vote` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -14504,8 +14185,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `survey_vote`(vAnswer INT)
BEGIN
@@ -14529,6 +14208,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `tpvTransaction_confirm` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -14536,8 +14217,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `tpvTransaction_confirm`(
vAmount INT
@@ -14654,6 +14333,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `tpvTransaction_confirmAll` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -14661,8 +14342,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `tpvTransaction_confirmAll`(vDate DATE)
BEGIN
@@ -14705,6 +14384,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `tpvTransaction_confirmById` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -14712,8 +14393,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `tpvTransaction_confirmById`(vOrder INT)
BEGIN
@@ -14747,6 +14426,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `tpvTransaction_undo` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -14754,8 +14435,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `tpvTransaction_undo`(vSelf INT)
p: BEGIN
@@ -14841,6 +14520,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `visitUser_new` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -14848,8 +14529,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `visitUser_new`(
vAccess INT
@@ -14875,6 +14554,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `visit_listByBrowser` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -14882,8 +14563,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `visit_listByBrowser`(vFrom DATE, vTo DATE)
BEGIN
@@ -14912,6 +14591,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `visit_register` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -14919,8 +14600,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `visit_register`(
vVisit INT
@@ -15001,416 +14680,6 @@ DELIMITER ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
---
--- Current Database: `nst`
---
-
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `nst` /*!40100 DEFAULT CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci */;
-
-USE `nst`;
-
---
--- Table structure for table `balance`
---
-
-DROP TABLE IF EXISTS `balance`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `balance` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `lft` int(11) NOT NULL,
- `rgt` int(11) NOT NULL,
- `name` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `lft_UNIQUE` (`lft`),
- UNIQUE KEY `rgt_UNIQUE` (`rgt`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `geo`
---
-
-DROP TABLE IF EXISTS `geo`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `geo` (
- `id` int(11) NOT NULL,
- `lft` int(11) DEFAULT NULL,
- `rgt` int(11) DEFAULT NULL,
- `depth` int(11) DEFAULT NULL,
- `sons` int(11) DEFAULT NULL,
- `item` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `lft_UNIQUE` (`lft`),
- UNIQUE KEY `rgt_UNIQUE` (`rgt`),
- CONSTRAINT `nst_geo_id` FOREIGN KEY (`id`) REFERENCES `nst` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `labourTree`
---
-
-DROP TABLE IF EXISTS `labourTree`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `labourTree` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `lft` int(11) NOT NULL,
- `rgt` int(11) NOT NULL,
- `depth` int(11) NOT NULL DEFAULT 0,
- `sons` int(11) NOT NULL DEFAULT 0,
- `name` varchar(45) COLLATE utf8mb3_unicode_ci NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `nst`
---
-
-DROP TABLE IF EXISTS `nst`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `nst` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `lft` int(11) NOT NULL,
- `rgt` int(11) NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `lft_UNIQUE` (`lft`),
- UNIQUE KEY `rgt_UNIQUE` (`rgt`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Dumping events for database 'nst'
---
-
---
--- Dumping routines for database 'nst'
---
-/*!50003 DROP PROCEDURE IF EXISTS `nodeAdd` */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `nodeAdd`(IN `vScheme` VARCHAR(45), IN `vTable` VARCHAR(45), IN `vParentFk` INT, IN `vChild` VARCHAR(100))
-BEGIN
- DECLARE vSql TEXT;
- DECLARE vTableClone VARCHAR(45);
-
- SET vTableClone = CONCAT(vTable, 'Clone');
-
- CALL util.exec(CONCAT('DROP TEMPORARY TABLE IF EXISTS tmp.', vTableClone));
- CALL util.exec(CONCAT(
- 'CREATE TEMPORARY TABLE tmp.', vTableClone,
- ' ENGINE = MEMORY',
- ' SELECT * FROM ', vScheme, '.', vTable
- ));
-
- CALL util.exec(CONCAT(
- 'SELECT COUNT(c.id) INTO @childs',
- ' FROM ', vScheme, '.', vTable, ' p',
- ' LEFT JOIN tmp.', vTableClone, ' c ON c.depth = p.depth + 1',
- ' AND c.lft BETWEEN p.lft AND p.rgt AND c.id != ', vParentFk,
- ' WHERE p.id = ', vParentFk
- ));
-
- IF @childs = 0 THEN
- CALL util.exec(CONCAT(
- 'SELECT lft, depth INTO @vLeft, @vDepth',
- ' FROM ', vScheme, '.', vTable,
- ' WHERE id = ', vParentFk
- ));
- ELSE
- CALL util.exec(CONCAT(
- 'SELECT c.rgt, p.depth INTO @vLeft, @vDepth',
- ' FROM ', vScheme, '.', vTable, ' p',
- ' JOIN tmp.', vTableClone, ' c ON c.depth = p.depth + 1'
- ' AND c.lft BETWEEN p.lft AND p.rgt',
- ' WHERE p.id = ', vParentFk,
- ' ORDER BY c.lft',
- ' DESC LIMIT 1'
- ));
- END IF;
-
- CALL util.exec(CONCAT(
- 'UPDATE ', vScheme, '.', vTable, ' SET rgt = rgt + 2',
- ' WHERE rgt > @vLeft',
- ' ORDER BY rgt DESC'
- ));
- CALL util.exec(CONCAT(
- 'UPDATE ', vScheme, '.', vTable, ' SET lft = lft + 2',
- ' WHERE lft > @vLeft',
- ' ORDER BY lft DESC'
- ));
-
- SET vChild = REPLACE(vChild, "'", "\\'");
-
- CALL util.exec(CONCAT(
- 'INSERT INTO ', vScheme, '.', vTable, ' (name, lft, rgt, depth)',
- ' VALUES ("', vChild, '", @vLeft + 1, @vLeft + 2, @vDepth + 1)'
- ));
-
- CALL util.exec(CONCAT('DROP TEMPORARY TABLE tmp.', vTableClone));
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 DROP PROCEDURE IF EXISTS `nodeDelete` */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `nodeDelete`(IN `vScheme` VARCHAR(45), IN `vTable` VARCHAR(45), IN `vNodeId` INT)
-BEGIN
- DECLARE vMyRight INT;
- DECLARE vMyLeft INT;
- DECLARE vMyWidth INT;
-
- CALL util.exec(CONCAT(
- 'SELECT t.rgt, t.lft, t.rgt - t.lft + 1',
- ' INTO @vMyRight, @vMyLeft, @vMyWidth',
- ' FROM ', vScheme, '.', vTable, ' t',
- ' WHERE t.id = ', vNodeId
- ));
-
- CALL util.exec(CONCAT(
- 'DELETE FROM ', vScheme, '.', vTable,
- ' WHERE lft BETWEEN @vMyLeft AND @vMyRight'
- ));
-
- CALL util.exec(CONCAT(
- 'UPDATE ', vScheme, '.', vTable, ' SET rgt = rgt - @vMyWidth'
- ' WHERE rgt > @vMyRight ORDER BY rgt'
- ));
-
- CALL util.exec(CONCAT(
- 'UPDATE ', vScheme, '.', vTable, ' SET lft = lft - @vMyWidth'
- ' WHERE lft > @vMyRight ORDER BY lft'
- ));
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 DROP PROCEDURE IF EXISTS `nodeMove` */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `nodeMove`(IN `vScheme` VARCHAR(45), IN `vTable` VARCHAR(45), IN `vNodeId` INT, IN `vFatherId` INT)
-BEGIN
- -- Averiguamos el ancho de la rama
- CALL util.exec (sql_printf (
- 'SELECT t.rgt - t.lft +1 INTO @vMyWidth FROM %t.%t t WHERE t.id = %v'
- ,vScheme
- ,vTable
- ,vNodeId
- ));
-
- -- Averiguamos la posicion del nuevo padre
-
- CALL util.exec (sql_printf (
- 'SELECT t.rgt, t.lft INTO @vFatherRight , @vFatherLeft FROM %t.%t t WHERE t.id = %v'
- ,vScheme
- ,vTable
- ,vFatherId
- ));
-
- -- 1º Incrementamos los valores de todos los nodos a la derecha del punto de inserción (vFatherRight) , para hacer sitio
-
- CALL util.exec (sql_printf (
- 'UPDATE %t.%t SET rgt = rgt + @vMyWidth WHERE rgt >= @vFatherRight ORDER BY rgt DESC'
- ,vScheme
- ,vTable
- ));
-
- CALL util.exec (sql_printf (
- 'UPDATE %t.%t SET lft = lft + @vMyWidth WHERE lft >= @vFatherRight ORDER BY lft DESC'
- ,vScheme
- ,vTable
- ));
-
- -- Es preciso recalcular los valores del nodo en el caso de que estuviera a la derecha del nuevo padre
-
- CALL util.exec (sql_printf (
- 'SELECT t.rgt, t.lft, @vFatherRight - t.lft INTO @vMyRight, @vMyLeft, @vGap FROM %t.%t t WHERE t.id = %v'
- ,vScheme
- ,vTable
- ,vNodeId
- ));
- -- 2º Incrementamos el valor de todos los nodos a trasladar hasta alcanzar su nueva posicion
-
- CALL util.exec (sql_printf (
- 'UPDATE %t.%t SET lft = lft + @vGap WHERE lft BETWEEN @vMyLeft AND @vMyRight ORDER BY lft DESC'
- ,vScheme
- ,vTable
- ));
- CALL util.exec (sql_printf (
- 'UPDATE %t.%t SET rgt = rgt + @vGap WHERE rgt BETWEEN @vMyLeft AND @vMyRight ORDER BY rgt DESC'
- ,vScheme
- ,vTable
- ));
-
- -- 3º Restaremos a todos los nodos resultantes, a la derecha de la posicion arrancada el ancho de la rama escindida
-
- CALL util.exec (sql_printf (
- 'UPDATE %t.%t SET lft = lft - @vMyWidth WHERE lft > @vMyLeft ORDER BY lft'
- ,vScheme
- ,vTable
- ));
- CALL util.exec (sql_printf (
- 'UPDATE %t.%t SET rgt = rgt - @vMyWidth WHERE rgt > @vMyRight ORDER BY rgt'
- ,vScheme
- ,vTable
- ));
-
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 DROP PROCEDURE IF EXISTS `nodeRecalc` */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `nodeRecalc`(IN `vScheme` VARCHAR(45), IN `vTable` VARCHAR(45))
-BEGIN
- CALL util.exec(CONCAT (
- 'UPDATE ', vScheme, '.', vTable, ' d',
- ' JOIN (SELECT',
- ' node.id,',
- ' COUNT(parent.id) - 1 as depth,',
- ' cast((node.rgt - node.lft - 1) / 2 as DECIMAL) as sons',
- ' FROM ',
- ' ', vScheme, '.', vTable, ' AS node,',
- ' ', vScheme, '.', vTable, ' AS parent',
- ' WHERE node.lft BETWEEN parent.lft AND parent.rgt',
- ' GROUP BY node.id',
- ' ORDER BY node.lft) n ON n.id = d.id ',
- ' SET d.`depth` = n.depth, d.sons = n.sons'
- ));
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 DROP PROCEDURE IF EXISTS `nodeTree` */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `nodeTree`(IN `vScheme` VARCHAR(45), IN `vTable` VARCHAR(45), IN `vGap` INT, IN `vShouldShow` BOOLEAN)
-BEGIN
-
- DROP TEMPORARY TABLE IF EXISTS tmp.nest;
- CALL util.exec (sql_printf (
- 'CREATE TEMPORARY TABLE tmp.nest
- SELECT node.id
- ,CONCAT( REPEAT(REPEAT(" ",%v), COUNT(parent.id) - 1), node.name) AS name
- ,node.lft
- ,node.rgt
- ,COUNT(parent.id) - 1 as depth
- ,cast((node.rgt - node.lft - 1) / 2 as DECIMAL) as sons
- FROM %t.%t AS node,
- %t.%t AS parent
- WHERE node.lft BETWEEN parent.lft AND parent.rgt
- GROUP BY node.id
- ORDER BY node.lft'
- ,vGap
- ,vScheme
- ,vTable
- ,vScheme
- ,vTable
- ));
-
- IF vShouldShow THEN
- SELECT * FROM tmp.nest;
- END IF;
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 DROP PROCEDURE IF EXISTS `nodeTree_pako` */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `nodeTree_pako`(IN `vScheme` VARCHAR(45), IN `vTable` VARCHAR(45), IN `vGap` INT, IN `vShouldShow` BOOLEAN)
-BEGIN
-
- DROP TEMPORARY TABLE IF EXISTS tmp.nest;
- CALL util.exec (sql_printf (
- 'CREATE TEMPORARY TABLE tmp.nest
- SELECT node.id
- ,CONCAT( REPEAT(REPEAT(" ",%v), COUNT(parent.id) - 1), node.name) AS name
- ,node.lft
- ,node.rgt
- ,COUNT(parent.id) - 1 as depth
- ,cast((node.rgt - node.lft - 1) / 2 as DECIMAL) as sons
- ,node.isSelected
- FROM %t.%t AS node,
- %t.%t AS parent
- WHERE node.lft BETWEEN parent.lft AND parent.rgt
- GROUP BY node.id
- ORDER BY node.lft'
- ,vGap
- ,vScheme
- ,vTable
- ,vScheme
- ,vTable
- ));
-
- IF vShouldShow THEN
- SELECT * FROM tmp.nest;
- END IF;
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-
--
-- Current Database: `pbx`
--
@@ -15504,7 +14773,7 @@ CREATE TABLE `cdr` (
KEY `dstchannel` (`dst_channel`),
KEY `disposition` (`disposition`),
KEY `src` (`src`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -15515,24 +14784,23 @@ DROP TABLE IF EXISTS `cdrConf`;
/*!50001 DROP VIEW IF EXISTS `cdrConf`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `cdrConf` (
- `calldate` tinyint NOT NULL,
- `clid` tinyint NOT NULL,
- `src` tinyint NOT NULL,
- `dst` tinyint NOT NULL,
- `dcontext` tinyint NOT NULL,
- `channel` tinyint NOT NULL,
- `dstchannel` tinyint NOT NULL,
- `lastapp` tinyint NOT NULL,
- `lastdata` tinyint NOT NULL,
- `duration` tinyint NOT NULL,
- `billsec` tinyint NOT NULL,
- `disposition` tinyint NOT NULL,
- `amaflags` tinyint NOT NULL,
- `accountcode` tinyint NOT NULL,
- `uniqueid` tinyint NOT NULL,
- `userfield` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `cdrConf` AS SELECT
+ 1 AS `calldate`,
+ 1 AS `clid`,
+ 1 AS `src`,
+ 1 AS `dst`,
+ 1 AS `dcontext`,
+ 1 AS `channel`,
+ 1 AS `dstchannel`,
+ 1 AS `lastapp`,
+ 1 AS `lastdata`,
+ 1 AS `duration`,
+ 1 AS `billsec`,
+ 1 AS `disposition`,
+ 1 AS `amaflags`,
+ 1 AS `accountcode`,
+ 1 AS `uniqueid`,
+ 1 AS `userfield` */;
SET character_set_client = @saved_cs_client;
--
@@ -15547,7 +14815,7 @@ CREATE TABLE `config` (
`sundayFestive` tinyint(4) NOT NULL,
`countryPrefix` varchar(20) CHARACTER SET utf8mb3 DEFAULT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Global configuration';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Global configuration';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -15613,13 +14881,12 @@ DROP TABLE IF EXISTS `followmeConf`;
/*!50001 DROP VIEW IF EXISTS `followmeConf`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `followmeConf` (
- `name` tinyint NOT NULL,
- `music` tinyint NOT NULL,
- `context` tinyint NOT NULL,
- `takecall` tinyint NOT NULL,
- `declinecall` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `followmeConf` AS SELECT
+ 1 AS `name`,
+ 1 AS `music`,
+ 1 AS `context`,
+ 1 AS `takecall`,
+ 1 AS `declinecall` */;
SET character_set_client = @saved_cs_client;
--
@@ -15637,7 +14904,7 @@ CREATE TABLE `followmeConfig` (
`declineCall` char(1) CHARACTER SET utf8mb3 NOT NULL,
`timeout` int(11) NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -15648,12 +14915,11 @@ DROP TABLE IF EXISTS `followmeNumberConf`;
/*!50001 DROP VIEW IF EXISTS `followmeNumberConf`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `followmeNumberConf` (
- `name` tinyint NOT NULL,
- `ordinal` tinyint NOT NULL,
- `phonenumber` tinyint NOT NULL,
- `timeout` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `followmeNumberConf` AS SELECT
+ 1 AS `name`,
+ 1 AS `ordinal`,
+ 1 AS `phonenumber`,
+ 1 AS `timeout` */;
SET character_set_client = @saved_cs_client;
--
@@ -15673,7 +14939,7 @@ CREATE TABLE `queue` (
UNIQUE KEY `description` (`description`),
KEY `config` (`config`),
CONSTRAINT `queue_ibfk_1` FOREIGN KEY (`config`) REFERENCES `queueConfig` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Queues';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Queues';
/*!40101 SET character_set_client = @saved_cs_client */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -15724,15 +14990,14 @@ DROP TABLE IF EXISTS `queueConf`;
/*!50001 DROP VIEW IF EXISTS `queueConf`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `queueConf` (
- `name` tinyint NOT NULL,
- `strategy` tinyint NOT NULL,
- `timeout` tinyint NOT NULL,
- `retry` tinyint NOT NULL,
- `weight` tinyint NOT NULL,
- `maxlen` tinyint NOT NULL,
- `ringinuse` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `queueConf` AS SELECT
+ 1 AS `name`,
+ 1 AS `strategy`,
+ 1 AS `timeout`,
+ 1 AS `retry`,
+ 1 AS `weight`,
+ 1 AS `maxlen`,
+ 1 AS `ringinuse` */;
SET character_set_client = @saved_cs_client;
--
@@ -15751,7 +15016,7 @@ CREATE TABLE `queueConfig` (
`maxLen` int(10) unsigned NOT NULL,
`ringInUse` tinyint(4) NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Default values for queues configuration';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Default values for queues configuration';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -15770,7 +15035,7 @@ CREATE TABLE `queueMember` (
KEY `extension` (`extension`),
CONSTRAINT `queueMember_ibfk_1` FOREIGN KEY (`queue`) REFERENCES `queue` (`name`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `queueMember_ibfk_2` FOREIGN KEY (`extension`) REFERENCES `sip` (`extension`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Queue members';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Queue members';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -15781,12 +15046,11 @@ DROP TABLE IF EXISTS `queueMemberConf`;
/*!50001 DROP VIEW IF EXISTS `queueMemberConf`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `queueMemberConf` (
- `uniqueid` tinyint NOT NULL,
- `queue_name` tinyint NOT NULL,
- `interface` tinyint NOT NULL,
- `paused` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `queueMemberConf` AS SELECT
+ 1 AS `uniqueid`,
+ 1 AS `queue_name`,
+ 1 AS `interface`,
+ 1 AS `paused` */;
SET character_set_client = @saved_cs_client;
--
@@ -15803,7 +15067,7 @@ CREATE TABLE `queuePhone` (
PRIMARY KEY (`id`),
UNIQUE KEY `queue` (`queue`,`phone`),
CONSTRAINT `queuePhone_ibfk_1` FOREIGN KEY (`queue`) REFERENCES `queue` (`name`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -15862,7 +15126,7 @@ CREATE TABLE `schedule` (
PRIMARY KEY (`id`),
KEY `queue` (`queue`),
CONSTRAINT `schedule_ibfk_1` FOREIGN KEY (`queue`) REFERENCES `queue` (`name`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -15982,32 +15246,31 @@ DROP TABLE IF EXISTS `sipConf`;
/*!50001 DROP VIEW IF EXISTS `sipConf`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `sipConf` (
- `id` tinyint NOT NULL,
- `name` tinyint NOT NULL,
- `callbackextension` tinyint NOT NULL,
- `md5secret` tinyint NOT NULL,
- `callerid` tinyint NOT NULL,
- `host` tinyint NOT NULL,
- `deny` tinyint NOT NULL,
- `permit` tinyint NOT NULL,
- `type` tinyint NOT NULL,
- `context` tinyint NOT NULL,
- `incominglimit` tinyint NOT NULL,
- `pickupgroup` tinyint NOT NULL,
- `careinvite` tinyint NOT NULL,
- `insecure` tinyint NOT NULL,
- `transport` tinyint NOT NULL,
- `nat` tinyint NOT NULL,
- `ipaddr` tinyint NOT NULL,
- `regseconds` tinyint NOT NULL,
- `port` tinyint NOT NULL,
- `defaultuser` tinyint NOT NULL,
- `useragent` tinyint NOT NULL,
- `lastms` tinyint NOT NULL,
- `fullcontact` tinyint NOT NULL,
- `regserver` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `sipConf` AS SELECT
+ 1 AS `id`,
+ 1 AS `name`,
+ 1 AS `callbackextension`,
+ 1 AS `md5secret`,
+ 1 AS `callerid`,
+ 1 AS `host`,
+ 1 AS `deny`,
+ 1 AS `permit`,
+ 1 AS `type`,
+ 1 AS `context`,
+ 1 AS `incominglimit`,
+ 1 AS `pickupgroup`,
+ 1 AS `careinvite`,
+ 1 AS `insecure`,
+ 1 AS `transport`,
+ 1 AS `nat`,
+ 1 AS `ipaddr`,
+ 1 AS `regseconds`,
+ 1 AS `port`,
+ 1 AS `defaultuser`,
+ 1 AS `useragent`,
+ 1 AS `lastms`,
+ 1 AS `fullcontact`,
+ 1 AS `regserver` */;
SET character_set_client = @saved_cs_client;
--
@@ -16039,7 +15302,7 @@ CREATE TABLE `sipConfig` (
`dtlssetup` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`nat` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Default values for SIP accounts';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Default values for SIP accounts';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -16071,6 +15334,8 @@ CREATE TABLE `sipReg` (
--
-- Dumping routines for database 'pbx'
--
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `clientFromPhone` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -16078,8 +15343,6 @@ CREATE TABLE `sipReg` (
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `clientFromPhone`(vPhone VARCHAR(255)) RETURNS int(11)
DETERMINISTIC
@@ -16094,6 +15357,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `phone_format` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -16101,10 +15366,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `phone_format`(vPhone VARCHAR(255)) RETURNS varchar(255) CHARSET utf8mb3
+CREATE DEFINER=`root`@`localhost` FUNCTION `phone_format`(vPhone VARCHAR(255)) RETURNS varchar(255) CHARSET utf8
DETERMINISTIC
BEGIN
DECLARE vI INT DEFAULT 0;
@@ -16142,6 +15405,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `phone_isValid` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -16149,8 +15414,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `phone_isValid`(vPhone VARCHAR(255))
BEGIN
@@ -16177,6 +15440,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `queue_isValid` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -16184,8 +15449,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `queue_isValid`(vQueue VARCHAR(255))
BEGIN
@@ -16210,6 +15473,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `sip_getExtension` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -16217,8 +15482,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `sip_getExtension`(vUserId INT(10))
BEGIN
@@ -16240,6 +15503,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `sip_isValid` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -16247,8 +15512,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `sip_isValid`(vExtension VARCHAR(255))
BEGIN
@@ -16274,6 +15537,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `sip_setPassword` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -16281,8 +15546,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `sip_setPassword`(
vUser VARCHAR(255),
@@ -16327,7 +15590,7 @@ CREATE TABLE `address` (
KEY `address_town_id_idx` (`town_id`),
CONSTRAINT `address_ibfk_1` FOREIGN KEY (`address_type_id`) REFERENCES `address_type` (`address_type_id`) ON DELETE NO ACTION ON UPDATE CASCADE,
CONSTRAINT `address_ibfk_2` FOREIGN KEY (`town_id`) REFERENCES `townKk` (`town_id`) ON DELETE NO ACTION ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -16341,39 +15604,7 @@ CREATE TABLE `address_type` (
`address_type_id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(20) NOT NULL,
PRIMARY KEY (`address_type_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `bank_account__`
---
-
-DROP TABLE IF EXISTS `bank_account__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `bank_account__` (
- `bank_account_id` int(11) NOT NULL AUTO_INCREMENT,
- `client_id__` int(11) DEFAULT NULL,
- `account` char(50) DEFAULT NULL,
- `bic` char(20) DEFAULT NULL,
- `bank_account_type_id` int(11) DEFAULT NULL,
- `nation_id` mediumint(8) unsigned DEFAULT NULL,
- `sortcode` char(50) DEFAULT NULL,
- `bank_name` char(30) DEFAULT NULL,
- `bank_adress` char(125) DEFAULT NULL,
- `bank_city` char(50) DEFAULT NULL,
- `bank_account_link_id` int(11) DEFAULT NULL,
- `workerFk` int(10) unsigned NOT NULL,
- PRIMARY KEY (`bank_account_id`),
- UNIQUE KEY `workerFk_UNIQUE` (`workerFk`),
- KEY `fki_business_account_fk` (`client_id__`),
- KEY `fki_person_account_fk` (`client_id__`),
- KEY `bank_account_bank_account_type` (`bank_account_type_id`),
- KEY `bank_account_nation_id` (`nation_id`),
- CONSTRAINT `bank_account_bank_account_type` FOREIGN KEY (`bank_account_type_id`) REFERENCES `bank_account_type` (`bank_account_type_id`) ON UPDATE CASCADE,
- CONSTRAINT `bank_account_nation_id` FOREIGN KEY (`nation_id`) REFERENCES `vn`.`country` (`id`) ON UPDATE CASCADE,
- CONSTRAINT `bank_account_workerFk` FOREIGN KEY (`workerFk`) REFERENCES `vn`.`worker` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -16387,129 +15618,8 @@ CREATE TABLE `bank_account_type` (
`bank_account_type_id` int(11) NOT NULL AUTO_INCREMENT,
`name` char(15) DEFAULT NULL,
PRIMARY KEY (`bank_account_type_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `bank_bic__`
---
-
-DROP TABLE IF EXISTS `bank_bic__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `bank_bic__` (
- `nrbe` int(11) NOT NULL,
- `denominacion` varchar(255) DEFAULT NULL,
- `bic` char(11) DEFAULT NULL,
- `referenciaFTH` varchar(35) DEFAULT NULL,
- `referenciaVNL` varchar(35) DEFAULT NULL,
- PRIMARY KEY (`nrbe`),
- KEY `bankbic_ikey1` (`bic`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `business__`
---
-
-DROP TABLE IF EXISTS `business__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `business__` (
- `business_id` int(11) NOT NULL AUTO_INCREMENT,
- `client_id` int(11) DEFAULT NULL,
- `provider_id__` int(11) DEFAULT NULL,
- `companyCodeFk` char(3) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `date_start` date DEFAULT NULL,
- `date_end` date DEFAULT NULL,
- `workerBusiness` longtext DEFAULT NULL,
- `reasonEndFk` int(11) DEFAULT NULL,
- `payedHolidays` decimal(5,2) NOT NULL DEFAULT 0.00,
- `occupationCodeFk` varchar(1) DEFAULT NULL,
- `workerFk` int(10) unsigned NOT NULL,
- PRIMARY KEY (`business_id`),
- KEY `business_client` (`client_id`),
- KEY `business_occupationCodeFk` (`occupationCodeFk`),
- KEY `business_companyCodeFk` (`companyCodeFk`),
- KEY `business_workerFk_idx` (`workerFk`),
- CONSTRAINT `business_client` FOREIGN KEY (`client_id`) REFERENCES `profile__` (`profile_id`) ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT `business_companyCodeFk` FOREIGN KEY (`companyCodeFk`) REFERENCES `vn`.`company` (`code`) ON UPDATE CASCADE,
- CONSTRAINT `business_occupationCodeFk` FOREIGN KEY (`occupationCodeFk`) REFERENCES `vn`.`occupationCode` (`code`) ON UPDATE CASCADE,
- CONSTRAINT `business_workerFk` FOREIGN KEY (`workerFk`) REFERENCES `vn`.`worker` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `postgresql`.`business_beforeInsert`
- BEFORE INSERT ON `business__` FOR EACH ROW
-BEGIN
- IF NEW.date_end IS NULL THEN
- SET NEW.payedHolidays = 0;
- END IF;
-END */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-
---
--- Table structure for table `business_labour__`
---
-
-DROP TABLE IF EXISTS `business_labour__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `business_labour__` (
- `business_id` int(11) NOT NULL,
- `notes` longtext DEFAULT NULL,
- `department_id` int(11) NOT NULL,
- `professional_category_id` int(11) DEFAULT 0,
- `incentivo` double DEFAULT 0,
- `calendar_labour_type_id` int(11) DEFAULT 1,
- `porhoras` smallint(6) NOT NULL DEFAULT 0,
- `labour_agreement_id` int(11) DEFAULT NULL,
- `workcenter_id` int(11) NOT NULL,
- PRIMARY KEY (`business_id`),
- KEY `fki_business_labour_agreement` (`labour_agreement_id`),
- KEY `fki_workcenter_labour` (`workcenter_id`),
- KEY `horario_tipo` (`calendar_labour_type_id`),
- KEY `business_labour_department_idx` (`department_id`),
- CONSTRAINT `business_labour_FK` FOREIGN KEY (`workcenter_id`) REFERENCES `vn`.`workCenter` (`id`) ON UPDATE CASCADE,
- CONSTRAINT `business_labour_agreement` FOREIGN KEY (`labour_agreement_id`) REFERENCES `labour_agreement` (`labour_agreement_id`) ON UPDATE CASCADE,
- CONSTRAINT `business_labour_business_id` FOREIGN KEY (`business_id`) REFERENCES `vn`.`business` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT `business_labour_department_id` FOREIGN KEY (`department_id`) REFERENCES `vn`.`department` (`id`) ON UPDATE CASCADE,
- CONSTRAINT `horario_tipo` FOREIGN KEY (`calendar_labour_type_id`) REFERENCES `calendar_labour_type` (`calendar_labour_type_id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `business_labour_payroll__`
---
-
-DROP TABLE IF EXISTS `business_labour_payroll__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `business_labour_payroll__` (
- `business_id` int(11) NOT NULL,
- `cod_tarifa` int(11) DEFAULT NULL,
- `cod_categoria` int(11) DEFAULT NULL,
- `cod_contrato` int(11) DEFAULT NULL,
- `importepactado` decimal(10,2) NOT NULL DEFAULT 0.00,
- PRIMARY KEY (`business_id`),
- KEY `business_labour_payroll_cod_categoria_idx` (`cod_categoria`),
- KEY `business_labour_payroll_FK` (`cod_contrato`),
- CONSTRAINT `business_labour_payroll_FK` FOREIGN KEY (`cod_contrato`) REFERENCES `vn`.`workerBusinessType` (`id`) ON UPDATE CASCADE,
- CONSTRAINT `business_labour_payroll_business_id` FOREIGN KEY (`business_id`) REFERENCES `vn`.`business` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Temporary table structure for view `calendar_employee`
@@ -16519,70 +15629,13 @@ DROP TABLE IF EXISTS `calendar_employee`;
/*!50001 DROP VIEW IF EXISTS `calendar_employee`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `calendar_employee` (
- `id` tinyint NOT NULL,
- `businessFk` tinyint NOT NULL,
- `calendar_state_id` tinyint NOT NULL,
- `date` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `calendar_employee` AS SELECT
+ 1 AS `id`,
+ 1 AS `businessFk`,
+ 1 AS `calendar_state_id`,
+ 1 AS `date` */;
SET character_set_client = @saved_cs_client;
---
--- Table structure for table `calendar_free__`
---
-
-DROP TABLE IF EXISTS `calendar_free__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `calendar_free__` (
- `calendar_free_id` int(11) NOT NULL AUTO_INCREMENT,
- `type` varchar(20) NOT NULL,
- `rgb` varchar(7) DEFAULT NULL,
- PRIMARY KEY (`calendar_free_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `calendar_labour__`
---
-
-DROP TABLE IF EXISTS `calendar_labour__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `calendar_labour__` (
- `calendar_free_id` int(11) NOT NULL,
- `person_id` int(11) NOT NULL,
- `day` date NOT NULL,
- `calendar_labour_legend_id` int(11) DEFAULT NULL,
- `workcenter_id` int(11) NOT NULL,
- `calendar_id` int(11) NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`calendar_id`),
- UNIQUE KEY `person_id_UNIQUE` (`person_id`,`day`,`workcenter_id`),
- KEY `calendar_labour_calendar_free_id_idx` (`calendar_free_id`),
- KEY `fki_calendar_labour_legend_id` (`calendar_labour_legend_id`),
- KEY `fki_calendar_labour_person_day` (`person_id`,`day`),
- KEY `fki_workcenter_calendar` (`workcenter_id`),
- CONSTRAINT `fk_calendar_labour_calendar_free1` FOREIGN KEY (`calendar_free_id`) REFERENCES `calendar_free__` (`calendar_free_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
- CONSTRAINT `fk_calendar_labour_legend_id` FOREIGN KEY (`calendar_labour_legend_id`) REFERENCES `calendar_labour_legend__` (`calendar_labour_legend_id`) ON DELETE NO ACTION ON UPDATE CASCADE,
- CONSTRAINT `workcenter_calendar` FOREIGN KEY (`workcenter_id`) REFERENCES `workcenter__` (`workcenter_id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `calendar_labour_legend__`
---
-
-DROP TABLE IF EXISTS `calendar_labour_legend__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `calendar_labour_legend__` (
- `calendar_labour_legend_id` int(11) NOT NULL AUTO_INCREMENT,
- `descripcion` longtext DEFAULT NULL,
- PRIMARY KEY (`calendar_labour_legend_id`),
- UNIQUE KEY `calendar_labour_legend_calendar_labour_legend_id_key` (`calendar_labour_legend_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
--
-- Table structure for table `calendar_labour_type`
--
@@ -16601,20 +15654,6 @@ CREATE TABLE `calendar_labour_type` (
) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
---
--- Table structure for table `currency__`
---
-
-DROP TABLE IF EXISTS `currency__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `currency__` (
- `currency_id` int(11) NOT NULL AUTO_INCREMENT,
- `name` varchar(15) NOT NULL,
- PRIMARY KEY (`currency_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
--
-- Table structure for table `erte_COVID19`
--
@@ -16625,8 +15664,7 @@ DROP TABLE IF EXISTS `erte_COVID19`;
CREATE TABLE `erte_COVID19` (
`personFk` int(11) NOT NULL,
`description` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- PRIMARY KEY (`personFk`),
- CONSTRAINT `erte_COVID19_FK` FOREIGN KEY (`personFk`) REFERENCES `vn`.`person__` (`id`)
+ PRIMARY KEY (`personFk`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -16644,15 +15682,76 @@ CREATE TABLE `income_employee` (
`id_incomeType` int(11) DEFAULT NULL,
`odbc_date` date DEFAULT NULL,
`workerFk` int(11) unsigned NOT NULL,
- `person_id__` int(11) DEFAULT NULL,
`concepto` longtext DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `income_employeeId_incomeType_idx` (`id_incomeType`),
KEY `income_employee_workerFk_idx` (`workerFk`),
CONSTRAINT `income_employeeId_incomeType` FOREIGN KEY (`id_incomeType`) REFERENCES `vn2008`.`payroll_conceptos` (`conceptoid`) ON UPDATE CASCADE,
CONSTRAINT `income_employee_workerFk` FOREIGN KEY (`workerFk`) REFERENCES `vn`.`worker` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+DELIMITER ;;
+/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `postgresql`.`income_employee_afterInsert`
+ AFTER INSERT ON `income_employee`
+ FOR EACH ROW
+BEGIN
+ CALL vn.worker_updateBalance(NEW.workerFk,NEW.haber,NEW.debe);
+END */;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+DELIMITER ;;
+/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `postgresql`.`income_employee_afterUpdate`
+ AFTER UPDATE ON `income_employee`
+ FOR EACH ROW
+BEGIN
+ CALL vn.worker_updateBalance(NEW.workerFk,-OLD.haber,-OLD.debe);
+
+ CALL vn.worker_updateBalance(NEW.workerFk,NEW.haber,NEW.debe);
+END */;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+DELIMITER ;;
+/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `postgresql`.`income_employee_afterDelete`
+ AFTER DELETE ON `income_employee`
+ FOR EACH ROW
+BEGIN
+ CALL vn.worker_updateBalance(OLD.workerFk,-OLD.haber,-OLD.debe);
+END */;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
--
-- Table structure for table `incometype_employee`
@@ -16686,8 +15785,8 @@ CREATE TABLE `journey` (
PRIMARY KEY (`journey_id`),
UNIQUE KEY `day_id` (`day_id`,`start`,`end`,`business_id`),
KEY `journey_business_id_idx` (`business_id`),
- CONSTRAINT `journey_business_id` FOREIGN KEY (`business_id`) REFERENCES `vn`.`business` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
+ CONSTRAINT `journey_business_id` FOREIGN KEY (`business_id`) REFERENCES `vn`.`business` (`id`) ON UPDATE CASCADE
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -16741,72 +15840,6 @@ CREATE TABLE `media_type` (
) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
---
--- Table structure for table `nation__`
---
-
-DROP TABLE IF EXISTS `nation__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `nation__` (
- `nation_id` int(11) NOT NULL AUTO_INCREMENT,
- `currency_id` int(11) NOT NULL DEFAULT 1,
- `name` varchar(20) NOT NULL,
- `brief` char(3) NOT NULL,
- `flag` longblob DEFAULT NULL,
- PRIMARY KEY (`nation_id`),
- UNIQUE KEY `nation_name_key` (`name`),
- KEY `nation_currency_id_idx` (`currency_id`),
- CONSTRAINT `nation___ibfk_1` FOREIGN KEY (`currency_id`) REFERENCES `currency__` (`currency_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `periodos__`
---
-
-DROP TABLE IF EXISTS `periodos__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `periodos__` (
- `fecha` date NOT NULL,
- `periodo` int(11) DEFAULT NULL,
- PRIMARY KEY (`fecha`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `person__`
---
-
-DROP TABLE IF EXISTS `person__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `person__` (
- `person_id` int(11) NOT NULL AUTO_INCREMENT,
- `name` varchar(60) NOT NULL,
- `nickname` varchar(15) DEFAULT NULL,
- `nif` varchar(15) DEFAULT NULL,
- `birth` date DEFAULT NULL,
- `firstname` varchar(20) DEFAULT NULL,
- `p2` longtext DEFAULT NULL,
- `nis` int(11) DEFAULT NULL,
- `id_trabajador` int(10) unsigned DEFAULT NULL,
- `isDisable` smallint(6) NOT NULL DEFAULT 0,
- `isFreelance` smallint(6) NOT NULL DEFAULT 0 COMMENT 'M Male\nF Female',
- `isSsDiscounted` smallint(6) NOT NULL DEFAULT 0,
- `sex` enum('M','F') NOT NULL DEFAULT 'F' COMMENT 'M Masculino F Femenino',
- PRIMARY KEY (`person_id`),
- UNIQUE KEY `person_nis` (`person_id`),
- UNIQUE KEY `Index_unique_nif` (`nif`),
- UNIQUE KEY `person_nif_key` (`nif`),
- UNIQUE KEY `nis_UNIQUE` (`nis`),
- KEY `index1` (`person_id`,`name`,`nickname`,`firstname`),
- KEY `person_worker` (`id_trabajador`),
- CONSTRAINT `Person_ibfk_1` FOREIGN KEY (`id_trabajador`) REFERENCES `vn`.`worker` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
--
-- Table structure for table `professional_category`
--
@@ -16838,26 +15871,6 @@ CREATE TABLE `professional_levels` (
`level_name` varchar(5) DEFAULT NULL,
`price_overtime` double DEFAULT NULL,
PRIMARY KEY (`professional_levels_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `profile__`
---
-
-DROP TABLE IF EXISTS `profile__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `profile__` (
- `profile_id` int(11) NOT NULL AUTO_INCREMENT,
- `person_id__` int(11) DEFAULT NULL,
- `profile_type_id` int(11) NOT NULL DEFAULT 1,
- `workerFk` int(10) unsigned DEFAULT NULL,
- PRIMARY KEY (`profile_id`),
- KEY `profile_person_id_idx` (`person_id__`),
- KEY `profile_profile_type_id_idx` (`profile_type_id`),
- KEY `profile_workerFk_idx` (`workerFk`),
- CONSTRAINT `profile_workerFk` FOREIGN KEY (`workerFk`) REFERENCES `vn`.`worker` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -16875,7 +15888,7 @@ CREATE TABLE `profile_address` (
PRIMARY KEY (`profile_address_id`),
KEY `profile_address_address_id_idx` (`address_id`),
KEY `profile_address_profile_id_idx` (`profile_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -16891,9 +15904,7 @@ CREATE TABLE `profile_media` (
`media_id` int(11) NOT NULL,
PRIMARY KEY (`profile_media_id`),
KEY `profile_media_media_id_idx` (`media_id`),
- KEY `profile_media_profile_id_idx` (`profile_id`),
- CONSTRAINT `fk_profile_media_media1` FOREIGN KEY (`media_id`) REFERENCES `media` (`media_id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
- CONSTRAINT `media_ibfk_20` FOREIGN KEY (`profile_id`) REFERENCES `profile__` (`profile_id`) ON DELETE NO ACTION ON UPDATE CASCADE
+ CONSTRAINT `fk_profile_media_media1` FOREIGN KEY (`media_id`) REFERENCES `media` (`media_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -16923,10 +15934,8 @@ CREATE TABLE `province` (
`name` varchar(15) NOT NULL,
`nation_id` int(11) NOT NULL,
PRIMARY KEY (`province_id`),
- UNIQUE KEY `province_name_key` (`name`),
- KEY `province_nation_id_idx` (`nation_id`),
- CONSTRAINT `fk_province_nation1` FOREIGN KEY (`nation_id`) REFERENCES `nation__` (`nation_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
+ UNIQUE KEY `province_name_key` (`name`)
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -16944,44 +15953,7 @@ CREATE TABLE `townKk` (
PRIMARY KEY (`town_id`),
KEY `town_province_id_idx` (`province_id`),
CONSTRAINT `townKk_ibfk_1` FOREIGN KEY (`province_id`) REFERENCES `province` (`province_id`) ON DELETE NO ACTION ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `workcenter__`
---
-
-DROP TABLE IF EXISTS `workcenter__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `workcenter__` (
- `workcenter_id` int(11) NOT NULL AUTO_INCREMENT,
- `name` longtext DEFAULT NULL,
- `center_id` int(11) DEFAULT NULL,
- `counter` bigint(20) DEFAULT NULL,
- `warehouseFk` smallint(6) DEFAULT NULL,
- `street` varchar(255) DEFAULT NULL,
- `geoFk` int(11) DEFAULT NULL,
- PRIMARY KEY (`workcenter_id`),
- KEY `workcenter_geoFk_idx` (`geoFk`),
- CONSTRAINT `workCenter_geoFk` FOREIGN KEY (`geoFk`) REFERENCES `vn`.`zoneGeo` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `workerTimeControlConfig__`
---
-
-DROP TABLE IF EXISTS `workerTimeControlConfig__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `workerTimeControlConfig__` (
- `id` varchar(45) COLLATE utf8mb3_unicode_ci NOT NULL,
- `warehouseFk` smallint(6) unsigned NOT NULL,
- PRIMARY KEY (`id`),
- KEY `warehouseFk_1_idx` (`warehouseFk`),
- CONSTRAINT `warehouseFk_1` FOREIGN KEY (`warehouseFk`) REFERENCES `vn`.`warehouse` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -17183,10 +16155,9 @@ DROP TABLE IF EXISTS `clientLastTwoMonths`;
/*!50001 DROP VIEW IF EXISTS `clientLastTwoMonths`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `clientLastTwoMonths` (
- `clientFk` tinyint NOT NULL,
- `companyFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `clientLastTwoMonths` AS SELECT
+ 1 AS `clientFk`,
+ 1 AS `companyFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -17321,6 +16292,20 @@ CREATE TABLE `clientesProveedores` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
+--
+-- Table structure for table `config`
+--
+
+DROP TABLE IF EXISTS `config`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `config` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `pendingTaxAccount` varchar(100) DEFAULT NULL COMMENT 'Cuenta contable IVA pendiente',
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
--
-- Temporary table structure for view `invoiceInList`
--
@@ -17329,15 +16314,14 @@ DROP TABLE IF EXISTS `invoiceInList`;
/*!50001 DROP VIEW IF EXISTS `invoiceInList`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `invoiceInList` (
- `id` tinyint NOT NULL,
- `supplierRef` tinyint NOT NULL,
- `serial` tinyint NOT NULL,
- `supplierFk` tinyint NOT NULL,
- `issued` tinyint NOT NULL,
- `isVatDeductible` tinyint NOT NULL,
- `serialNumber` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `invoiceInList` AS SELECT
+ 1 AS `id`,
+ 1 AS `supplierRef`,
+ 1 AS `serial`,
+ 1 AS `supplierFk`,
+ 1 AS `issued`,
+ 1 AS `isVatDeductible`,
+ 1 AS `serialNumber` */;
SET character_set_client = @saved_cs_client;
--
@@ -17356,6 +16340,185 @@ CREATE TABLE `invoiceType` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
+--
+-- Table structure for table `movConta`
+--
+
+DROP TABLE IF EXISTS `movConta`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `movConta` (
+ `OrdenMovimientos` int(11) NOT NULL AUTO_INCREMENT,
+ `MovPosicion` varchar(64) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `Ejercicio` smallint(6) NOT NULL,
+ `CodigoEmpresa` smallint(6) NOT NULL,
+ `Asiento` int(11) NOT NULL,
+ `CargoAbono` varchar(1) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `CodigoCuenta` varchar(15) CHARACTER SET utf8mb3 NOT NULL,
+ `Contrapartida` varchar(15) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `FechaAsiento` datetime NOT NULL,
+ `TipoDocumento` varchar(6) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `DocumentoConta` varchar(9) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `Comentario` varchar(40) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `ImporteAsiento` decimal(28,10) NOT NULL,
+ `CodigoDiario` smallint(6) NOT NULL,
+ `CodigoCanal` varchar(10) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `CodigoActividad` varchar(1) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `FechaVencimiento` datetime DEFAULT NULL,
+ `NumeroPeriodo` smallint(6) NOT NULL,
+ `CodigoUsuario` smallint(6) NOT NULL,
+ `FechaGrabacion` datetime NOT NULL,
+ `TipoEntrada` varchar(2) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `CodigoDepartamento` varchar(10) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `CodigoSeccion` varchar(10) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `CodigoDivisa` varchar(3) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `ImporteCambio` decimal(28,10) NOT NULL,
+ `ImporteDivisa` decimal(28,10) NOT NULL,
+ `FactorCambio` decimal(28,10) NOT NULL,
+ `CodigoProyecto` varchar(10) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `LibreN1` int(11) NOT NULL,
+ `LibreN2` int(11) NOT NULL,
+ `LibreA1` varchar(15) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `LibreA2` varchar(15) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `IdDelegacion` varchar(10) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `MovCartera` varchar(64) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
+ `IdProcesoIME` varchar(64) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `TipoCarteraIME` smallint(6) NOT NULL,
+ `TipoAnaliticaIME` smallint(6) NOT NULL,
+ `StatusTraspasadoIME` tinyint(4) NOT NULL,
+ `TipoImportacionIME` tinyint(4) NOT NULL,
+ `BaseIva1` decimal(28,10) NOT NULL,
+ `PorBaseCorrectora1` decimal(28,10) NOT NULL,
+ `PorIva1` decimal(28,10) NOT NULL,
+ `CuotaIva1` decimal(28,10) NOT NULL,
+ `PorRecargoEquivalencia1` decimal(28,10) NOT NULL,
+ `RecargoEquivalencia1` decimal(28,10) NOT NULL,
+ `CodigoTransaccion1` tinyint(4) NOT NULL,
+ `BaseIva2` decimal(28,10) NOT NULL,
+ `PorBaseCorrectora2` decimal(28,10) NOT NULL,
+ `PorIva2` decimal(28,10) NOT NULL,
+ `CuotaIva2` decimal(28,10) NOT NULL,
+ `PorRecargoEquivalencia2` decimal(28,10) NOT NULL,
+ `RecargoEquivalencia2` decimal(28,10) NOT NULL,
+ `CodigoTransaccion2` tinyint(4) NOT NULL,
+ `BaseIva3` decimal(28,10) NOT NULL,
+ `PorBaseCorrectora3` decimal(28,10) NOT NULL,
+ `PorIva3` decimal(28,10) NOT NULL,
+ `CuotaIva3` decimal(28,10) NOT NULL,
+ `PorRecargoEquivalencia3` decimal(28,10) NOT NULL,
+ `RecargoEquivalencia3` decimal(28,10) NOT NULL,
+ `CodigoTransaccion3` tinyint(4) NOT NULL,
+ `baseIva4` decimal(28,10) NOT NULL,
+ `PorBaseCorrectora4` decimal(28,10) NOT NULL,
+ `PorIva4` decimal(28,10) NOT NULL,
+ `CuotaIva4` decimal(28,10) NOT NULL,
+ `PorRecargoEquivalencia4` decimal(28,10) NOT NULL,
+ `RecargoEquivalencia4` decimal(28,10) NOT NULL,
+ `CodigoTransaccion4` tinyint(4) NOT NULL,
+ `Año` smallint(6) NOT NULL,
+ `Serie` varchar(10) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `Factura` int(11) NOT NULL,
+ `SuFacturaNo` varchar(40) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `FechaFactura` datetime NOT NULL,
+ `ImporteFactura` decimal(28,10) NOT NULL,
+ `TipoFactura` varchar(1) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `CodigoCuentaFactura` varchar(15) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `CifDni` varchar(13) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `Nombre` varchar(35) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `CodigoRetencion` smallint(6) NOT NULL,
+ `BaseRetencion` decimal(28,10) NOT NULL,
+ `PorRetencion` decimal(28,10) NOT NULL,
+ `ImporteRetencion` decimal(28,10) NOT NULL,
+ `AbonoIva` smallint(6) NOT NULL,
+ `CodigoActividadF` varchar(1) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `Intracomunitaria` smallint(6) NOT NULL,
+ `CodigoTerritorio` smallint(6) NOT NULL,
+ `SiglaNacion` varchar(2) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `RetencionInformativa` smallint(6) NOT NULL,
+ `EjercicioFacturaOriginal` smallint(6) NOT NULL,
+ `SerieFacturaOriginal` varchar(10) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `NumeroFacturaOriginal` int(11) NOT NULL,
+ `EjercicioFactura` smallint(6) NOT NULL,
+ `CobroPagoRetencion` varchar(1) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `FechaOperacion` datetime NOT NULL,
+ `Exclusion347` smallint(6) NOT NULL,
+ `MovIdentificadorIME` varchar(64) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `Previsiones` varchar(1) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `MantenerAsiento` tinyint(4) NOT NULL,
+ `OrdenMovIME` smallint(6) NOT NULL,
+ `Metalico347` smallint(6) NOT NULL,
+ `ClaveOperacionFactura_` varchar(1) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `SerieAgrupacion_` varchar(10) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `NumeroFacturaInicial_` int(11) NOT NULL,
+ `NumeroFacturaFinal_` int(11) NOT NULL,
+ `IdAsientoExterno` text COLLATE utf8mb3_unicode_ci NOT NULL,
+ `IdDiarioExterno` varchar(10) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `IdFacturaExterno` text COLLATE utf8mb3_unicode_ci NOT NULL,
+ `IdMovimiento` varchar(40) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `IdCuadre` smallint(6) NOT NULL,
+ `FechaCuadre` datetime NOT NULL,
+ `TipoCuadre` varchar(4) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `AgrupacionCuadre` int(11) NOT NULL,
+ `StatusSaldo` smallint(6) NOT NULL,
+ `StatusConciliacion` smallint(6) NOT NULL,
+ `CodigoConciliacion` int(11) NOT NULL,
+ `FechaConciliacion` datetime NOT NULL,
+ `TipoConciliacion` smallint(6) NOT NULL,
+ `IndicadorContaBanco` varchar(1) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `Descripcion3` varchar(40) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `Descripcion4` varchar(40) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `Descripcion5` varchar(40) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `Descripcion6` varchar(40) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `Descripcion7` varchar(40) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `Descripcion8` text COLLATE utf8mb3_unicode_ci NOT NULL,
+ `Descripcion9` text COLLATE utf8mb3_unicode_ci NOT NULL,
+ `Descripcion2` text COLLATE utf8mb3_unicode_ci NOT NULL,
+ `Descripcion1` text COLLATE utf8mb3_unicode_ci NOT NULL,
+ `Punteo1` smallint(6) NOT NULL,
+ `Punteo9` smallint(6) NOT NULL,
+ `Punteo8` smallint(6) NOT NULL,
+ `Punteo7` smallint(6) NOT NULL,
+ `Punteo6` smallint(6) NOT NULL,
+ `Punteo5` smallint(6) NOT NULL,
+ `Punteo4` smallint(6) NOT NULL,
+ `Punteo3` smallint(6) NOT NULL,
+ `Punteo2` smallint(6) NOT NULL,
+ `CodigoIva1` smallint(6) NOT NULL,
+ `CodigoIva2` smallint(6) NOT NULL,
+ `CodigoIva3` smallint(6) NOT NULL,
+ `CodigoIva4` smallint(6) NOT NULL,
+ `CriterioIva` tinyint(4) NOT NULL,
+ `FechaMaxVencimiento` datetime NOT NULL,
+ `TipoCriterioCaja` tinyint(4) NOT NULL,
+ `MovFacturaOrigenIME` text COLLATE utf8mb3_unicode_ci NOT NULL,
+ `IdFacturaExternoFinal` text COLLATE utf8mb3_unicode_ci NOT NULL,
+ `IdFacturaExternoInicial` text COLLATE utf8mb3_unicode_ci NOT NULL,
+ `IdFacturaExternoOriginal` text COLLATE utf8mb3_unicode_ci NOT NULL,
+ `NumFacturasExternoAgrupacion` int(11) NOT NULL,
+ `CodigoMedioCobro` varchar(1) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `MedioCobro` varchar(31) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `IvaDeducible1` smallint(6) NOT NULL DEFAULT 1,
+ `IvaDeducible2` smallint(6) NOT NULL DEFAULT 1,
+ `IvaDeducible3` smallint(6) NOT NULL DEFAULT 1,
+ `IvaDeducible4` smallint(6) NOT NULL DEFAULT 1,
+ `TipoRectificativa` smallint(6) NOT NULL,
+ `FechaFacturaOriginal` datetime NOT NULL,
+ `BaseImponibleOriginal` decimal(28,10) NOT NULL,
+ `CuotaIvaOriginal` decimal(28,10) NOT NULL,
+ `ClaseAbonoRectificativas` smallint(6) NOT NULL,
+ `RecargoEquivalenciaOriginal` decimal(28,10) NOT NULL,
+ `ObjetoFactura` text COLLATE utf8mb3_unicode_ci NOT NULL,
+ `enlazadoSage` tinyint(1) NOT NULL DEFAULT 0,
+ PRIMARY KEY (`OrdenMovimientos`,`LibreN1`),
+ KEY `ix_movconta2` (`IdProcesoIME`),
+ KEY `CodigoCuenta` (`CodigoCuenta`),
+ KEY `movConta_Asiento` (`Asiento`),
+ KEY `ix_movconta` (`enlazadoSage`,`IdProcesoIME`),
+ KEY `movConta_IdProcesoIME` (`IdProcesoIME`),
+ KEY `movConta_Asiento2` (`Asiento`,`IdProcesoIME`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
--
-- Table structure for table `movContaIVA`
--
@@ -17452,7 +16615,7 @@ CREATE TABLE `pgcToSage` (
`accountTaxInput` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
`accountTaxOutput` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COMMENT='Tabla relaciona cuentas pgc con Código de IVA y Código de Transacción en Sage';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COMMENT='Tabla relaciona cuentas pgc con Código de IVA y Código de Transacción en Sage';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -17496,10 +16659,9 @@ DROP TABLE IF EXISTS `supplierLastThreeMonths`;
/*!50001 DROP VIEW IF EXISTS `supplierLastThreeMonths`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `supplierLastThreeMonths` (
- `supplierFk` tinyint NOT NULL,
- `companyFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `supplierLastThreeMonths` AS SELECT
+ 1 AS `supplierFk`,
+ 1 AS `companyFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -17509,6 +16671,8 @@ SET character_set_client = @saved_cs_client;
--
-- Dumping routines for database 'sage'
--
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `company_getCode` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -17516,8 +16680,6 @@ SET character_set_client = @saved_cs_client;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `company_getCode`(vCompanyFk INT) RETURNS int(2)
READS SQL DATA
@@ -17546,6 +16708,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `accountingMovements_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -17553,8 +16717,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `accountingMovements_add`(vYear INT, vCompanyFk INT)
BEGIN
@@ -17998,6 +17160,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `clientSupplier_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -18005,8 +17169,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `clientSupplier_add`(vCompanyFk INT)
BEGIN
@@ -18135,6 +17297,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `invoiceIn_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -18142,8 +17306,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceIn_add`(vInvoiceInFk INT, vXDiarioFk INT)
BEGIN
@@ -18336,6 +17498,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `invoiceIn_manager` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -18343,8 +17507,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceIn_manager`(vYear INT, vCompanyFk INT)
BEGIN
@@ -18622,6 +17784,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `invoiceOut_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -18629,8 +17793,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceOut_add`(IN vInvoiceOutFk INT, IN vXDiarioFk INT)
BEGIN
@@ -18655,6 +17817,7 @@ BEGIN
DECLARE vIsIntracommunity BOOL DEFAULT FALSE;
DECLARE vInvoiceTypeSended VARCHAR(1);
DECLARE vOperationCode VARCHAR(1);
+ DECLARE vHasCustomsAccountingNote BOOL;
DECLARE vCursor CURSOR FOR
SELECT oit.taxableBase,
@@ -18681,8 +17844,14 @@ BEGIN
DECLARE CONTINUE HANDLER FOR NOT FOUND SET vDone = TRUE;
+ SELECT COUNT(*) INTO vHasCustomsAccountingNote
+ FROM vn.XDiario x
+ JOIN config c ON c.pendingTaxAccount = x.SUBCTA
+ WHERE ASIEN = (SELECT ASIEN FROM vn.XDiario WHERE id = vXDiarioFk);
+
SELECT codeSage INTO vInvoiceTypeSended
- FROM invoiceType WHERE code ='sended';
+ FROM invoiceType
+ WHERE code = IF(vHasCustomsAccountingNote, 'informative', 'sended');
DELETE FROM movContaIVA
WHERE id = vXDiarioFk;
@@ -18822,6 +17991,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `invoiceOut_manager` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -18829,8 +18000,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceOut_manager`(vYear INT, vCompanyFk INT)
BEGIN
@@ -18889,6 +18058,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `pgc_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -18896,8 +18067,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `pgc_add`(vCompanyFk INT)
BEGIN
@@ -18995,16 +18164,15 @@ DROP TABLE IF EXISTS `Account`;
/*!50001 DROP VIEW IF EXISTS `Account`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `Account` (
- `id` tinyint NOT NULL,
- `name` tinyint NOT NULL,
- `password` tinyint NOT NULL,
- `roleFk` tinyint NOT NULL,
- `active` tinyint NOT NULL,
- `email` tinyint NOT NULL,
- `created` tinyint NOT NULL,
- `updated` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `Account` AS SELECT
+ 1 AS `id`,
+ 1 AS `name`,
+ 1 AS `password`,
+ 1 AS `roleFk`,
+ 1 AS `active`,
+ 1 AS `email`,
+ 1 AS `created`,
+ 1 AS `updated` */;
SET character_set_client = @saved_cs_client;
--
@@ -19015,13 +18183,12 @@ DROP TABLE IF EXISTS `Role`;
/*!50001 DROP VIEW IF EXISTS `Role`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `Role` (
- `id` tinyint NOT NULL,
- `name` tinyint NOT NULL,
- `description` tinyint NOT NULL,
- `created` tinyint NOT NULL,
- `modified` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `Role` AS SELECT
+ 1 AS `id`,
+ 1 AS `name`,
+ 1 AS `description`,
+ 1 AS `created`,
+ 1 AS `modified` */;
SET character_set_client = @saved_cs_client;
--
@@ -19032,12 +18199,11 @@ DROP TABLE IF EXISTS `RoleMapping`;
/*!50001 DROP VIEW IF EXISTS `RoleMapping`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `RoleMapping` (
- `id` tinyint NOT NULL,
- `principalType` tinyint NOT NULL,
- `principalId` tinyint NOT NULL,
- `roleId` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `RoleMapping` AS SELECT
+ 1 AS `id`,
+ 1 AS `principalType`,
+ 1 AS `principalId`,
+ 1 AS `roleId` */;
SET character_set_client = @saved_cs_client;
--
@@ -19048,15 +18214,14 @@ DROP TABLE IF EXISTS `User`;
/*!50001 DROP VIEW IF EXISTS `User`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `User` (
- `id` tinyint NOT NULL,
- `realm` tinyint NOT NULL,
- `username` tinyint NOT NULL,
- `password` tinyint NOT NULL,
- `email` tinyint NOT NULL,
- `emailVerified` tinyint NOT NULL,
- `verificationToken` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `User` AS SELECT
+ 1 AS `id`,
+ 1 AS `realm`,
+ 1 AS `username`,
+ 1 AS `password`,
+ 1 AS `email`,
+ 1 AS `emailVerified`,
+ 1 AS `verificationToken` */;
SET character_set_client = @saved_cs_client;
--
@@ -19102,6 +18267,36 @@ CREATE TABLE `module` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
+--
+-- Table structure for table `printConfig`
+--
+
+DROP TABLE IF EXISTS `printConfig`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `printConfig` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `itRecipient` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'IT recipients for report mailing',
+ `incidencesEmail` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'CAU destinatary email',
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Print service config';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `url`
+--
+
+DROP TABLE IF EXISTS `url`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `url` (
+ `appName` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `environment` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `url` varchar(255) COLLATE utf8mb3_unicode_ci NOT NULL,
+ PRIMARY KEY (`appName`,`environment`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
--
-- Table structure for table `userConfigView`
--
@@ -19116,7 +18311,7 @@ CREATE TABLE `userConfigView` (
`configuration` text COLLATE utf8mb3_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `uniqueUser_TableCode` (`userFk`,`tableCode`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -19407,6 +18602,8 @@ DELIMITER ;
--
-- Dumping routines for database 'stock'
--
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `inbound_addPick` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -19414,8 +18611,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `inbound_addPick`(
vSelf INT,
@@ -19436,6 +18631,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `inbound_removePick` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -19443,8 +18640,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `inbound_removePick`(
vSelf INT,
@@ -19469,6 +18664,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `inbound_requestQuantity` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -19476,8 +18673,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `inbound_requestQuantity`(
vSelf INT,
@@ -19543,6 +18738,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `inbound_sync` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -19550,8 +18747,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `inbound_sync`(vSelf INT)
BEGIN
@@ -19640,6 +18835,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `log_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -19647,8 +18844,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `log_add`(IN `vTableName` VARCHAR(255), IN `vNewId` VARCHAR(255), IN `vOldId` VARCHAR(255))
proc: BEGIN
@@ -19674,6 +18869,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `log_clean` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -19681,8 +18878,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `log_clean`()
BEGIN
@@ -19694,6 +18889,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `log_delete` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -19701,8 +18898,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `log_delete`(vTableName VARCHAR(255), vTableId INT)
proc: BEGIN
@@ -19726,6 +18921,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `log_refreshAll` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -19733,8 +18930,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `log_refreshAll`()
BEGIN
@@ -19772,6 +18967,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `log_refreshBuy` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -19779,8 +18976,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `log_refreshBuy`(
`vTableName` VARCHAR(255),
@@ -19859,6 +19054,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `log_refreshOrder` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -19866,8 +19063,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `log_refreshOrder`(
`vTableName` VARCHAR(255),
@@ -19919,6 +19114,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `log_refreshSale` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -19926,8 +19123,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `log_refreshSale`(
`vTableName` VARCHAR(255),
@@ -19997,6 +19192,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `log_sync` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -20004,8 +19201,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `log_sync`(vSync BOOL)
proc: BEGIN
@@ -20133,6 +19328,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `log_syncNoWait` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -20140,8 +19337,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `log_syncNoWait`()
BEGIN
@@ -20162,6 +19357,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `outbound_requestQuantity` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -20169,8 +19366,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `outbound_requestQuantity`(
vSelf INT,
@@ -20236,6 +19431,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `outbound_sync` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -20243,8 +19440,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `outbound_sync`(vSelf INT)
BEGIN
@@ -20327,6 +19522,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `visible_log` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -20334,8 +19531,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `visible_log`(
vIsPicked BOOL,
@@ -20365,7 +19560,7 @@ DELIMITER ;
-- Current Database: `util`
--
-CREATE DATABASE /*!32312 IF NOT EXISTS*/ `util` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;
+CREATE DATABASE /*!32312 IF NOT EXISTS*/ `util` /*!40100 DEFAULT CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci */;
USE `util`;
@@ -20418,7 +19613,7 @@ CREATE TABLE `debug` (
`value` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `created` (`created`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Log de depuración';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Log de depuración';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -20435,7 +19630,7 @@ CREATE TABLE `eventLog` (
`error` varchar(1024) COLLATE utf8mb3_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
KEY `date` (`date`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Event scheduler error log';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Event scheduler error log';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -20446,18 +19641,105 @@ DROP TABLE IF EXISTS `eventLogGrouped`;
/*!50001 DROP VIEW IF EXISTS `eventLogGrouped`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `eventLogGrouped` (
- `lastHappened` tinyint NOT NULL,
- `nErrors` tinyint NOT NULL,
- `event` tinyint NOT NULL,
- `error` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `eventLogGrouped` AS SELECT
+ 1 AS `lastHappened`,
+ 1 AS `nErrors`,
+ 1 AS `event`,
+ 1 AS `error` */;
SET character_set_client = @saved_cs_client;
+--
+-- Table structure for table `notification`
+--
+
+DROP TABLE IF EXISTS `notification`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `notification` (
+ `id` int(11) NOT NULL,
+ `name` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
+ `description` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `name` (`name`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `notificationAcl`
+--
+
+DROP TABLE IF EXISTS `notificationAcl`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `notificationAcl` (
+ `notificationFk` int(11) NOT NULL,
+ `roleFk` int(10) unsigned NOT NULL,
+ PRIMARY KEY (`notificationFk`,`roleFk`),
+ KEY `notificationAcl_ibfk_2` (`roleFk`),
+ CONSTRAINT `notificationAcl_ibfk_1` FOREIGN KEY (`notificationFk`) REFERENCES `notification` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
+ CONSTRAINT `notificationAcl_ibfk_2` FOREIGN KEY (`roleFk`) REFERENCES `account`.`role` (`id`) ON UPDATE CASCADE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `notificationConfig`
+--
+
+DROP TABLE IF EXISTS `notificationConfig`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `notificationConfig` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `cleanDays` mediumint(9) DEFAULT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `notificationQueue`
+--
+
+DROP TABLE IF EXISTS `notificationQueue`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `notificationQueue` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `notificationFk` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
+ `params` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`params`)),
+ `authorFk` int(10) unsigned DEFAULT NULL,
+ `status` enum('pending','sent','error') COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
+ `created` datetime DEFAULT current_timestamp(),
+ PRIMARY KEY (`id`),
+ KEY `notificationFk` (`notificationFk`),
+ KEY `authorFk` (`authorFk`),
+ KEY `status` (`status`),
+ CONSTRAINT `nnotificationQueue_ibfk_1` FOREIGN KEY (`notificationFk`) REFERENCES `notification` (`name`) ON DELETE CASCADE ON UPDATE CASCADE,
+ CONSTRAINT `notificationQueue_ibfk_2` FOREIGN KEY (`authorFk`) REFERENCES `account`.`user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `notificationSubscription`
+--
+
+DROP TABLE IF EXISTS `notificationSubscription`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `notificationSubscription` (
+ `notificationFk` int(11) NOT NULL,
+ `userFk` int(10) unsigned NOT NULL,
+ PRIMARY KEY (`notificationFk`,`userFk`),
+ KEY `notificationSubscription_ibfk_2` (`userFk`),
+ CONSTRAINT `notificationSubscription_ibfk_1` FOREIGN KEY (`notificationFk`) REFERENCES `notification` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
+ CONSTRAINT `notificationSubscription_ibfk_2` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
--
-- Table structure for table `version`
--
+
DROP TABLE IF EXISTS `version`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
@@ -20518,6 +19800,8 @@ DELIMITER ;
--
-- Dumping routines for database 'util'
--
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `accountShortToStandard` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -20525,10 +19809,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `accountShortToStandard`(vAccount VARCHAR(10)) RETURNS varchar(10) CHARSET utf8mb3 COLLATE utf8mb3_unicode_ci
+CREATE DEFINER=`root`@`localhost` FUNCTION `accountShortToStandard`(vAccount VARCHAR(10)) RETURNS varchar(10) CHARSET utf8 COLLATE utf8_unicode_ci
DETERMINISTIC
BEGIN
RETURN REPLACE(vAccount, '.', REPEAT('0', 11 - LENGTH(vAccount)));
@@ -20538,6 +19820,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `capitalizeFirst` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -20545,10 +19829,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `capitalizeFirst`(vString VARCHAR(255)) RETURNS varchar(255) CHARSET utf8mb3
+CREATE DEFINER=`root`@`localhost` FUNCTION `capitalizeFirst`(vString VARCHAR(255)) RETURNS varchar(255) CHARSET utf8
NO SQL
DETERMINISTIC
BEGIN
@@ -20592,6 +19874,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `crypt` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -20599,10 +19883,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `crypt`(vText VARCHAR(255), vKey VARCHAR(255)) RETURNS varchar(255) CHARSET utf8mb3
+CREATE DEFINER=`root`@`localhost` FUNCTION `crypt`(vText VARCHAR(255), vKey VARCHAR(255)) RETURNS varchar(255) CHARSET utf8
READS SQL DATA
BEGIN
@@ -20618,6 +19900,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `cryptOff` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -20625,10 +19909,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `cryptOff`(vText VARCHAR(255), vKey VARCHAR(255)) RETURNS varchar(255) CHARSET utf8mb3
+CREATE DEFINER=`root`@`localhost` FUNCTION `cryptOff`(vText VARCHAR(255), vKey VARCHAR(255)) RETURNS varchar(255) CHARSET utf8
READS SQL DATA
BEGIN
@@ -20644,6 +19926,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `dayEnd` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -20651,8 +19935,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `dayEnd`(vDated DATE) RETURNS datetime
NO SQL
@@ -20671,6 +19953,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `firstDayOfMonth` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -20678,8 +19962,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `firstDayOfMonth`(vDate DATE) RETURNS date
NO SQL
@@ -20698,6 +19980,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `firstDayOfYear` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -20705,8 +19989,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `firstDayOfYear`(vDate DATE) RETURNS date
NO SQL
@@ -20725,6 +20007,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `formatRow` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -20732,10 +20016,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `formatRow`(vType CHAR(3), vValues VARCHAR(512)) RETURNS varchar(512) CHARSET utf8mb3 COLLATE utf8mb3_unicode_ci
+CREATE DEFINER=`root`@`localhost` FUNCTION `formatRow`(vType CHAR(3), vValues VARCHAR(512)) RETURNS varchar(512) CHARSET utf8 COLLATE utf8_unicode_ci
DETERMINISTIC
BEGIN
DECLARE vRow VARCHAR(512);
@@ -20758,6 +20040,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `formatTable` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -20765,10 +20049,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `formatTable`(vFields VARCHAR(512), vOldValues VARCHAR(512), vNewValues VARCHAR(512)) RETURNS text CHARSET utf8mb3 COLLATE utf8mb3_unicode_ci
+CREATE DEFINER=`root`@`localhost` FUNCTION `formatTable`(vFields VARCHAR(512), vOldValues VARCHAR(512), vNewValues VARCHAR(512)) RETURNS text CHARSET utf8 COLLATE utf8_unicode_ci
DETERMINISTIC
BEGIN
DECLARE vTable TEXT;
@@ -20793,6 +20075,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `hasDateOverlapped` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -20800,8 +20084,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `hasDateOverlapped`(vSarted1 DATE, vEnded1 DATE, vSarted2 DATE, vEnded2 DATE) RETURNS tinyint(1)
DETERMINISTIC
@@ -20815,6 +20097,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `hmacSha2` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -20822,10 +20106,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `hmacSha2`(`vAlg` SMALLINT, `vMsg` MEDIUMBLOB, `vKey` MEDIUMBLOB) RETURNS varchar(128) CHARSET utf8mb3
+CREATE DEFINER=`root`@`localhost` FUNCTION `hmacSha2`(`vAlg` SMALLINT, `vMsg` MEDIUMBLOB, `vKey` MEDIUMBLOB) RETURNS varchar(128) CHARSET utf8
NO SQL
DETERMINISTIC
BEGIN
@@ -20859,6 +20141,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `isLeapYear` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -20866,8 +20150,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `isLeapYear`(vYear INT) RETURNS tinyint(1)
DETERMINISTIC
@@ -20881,6 +20163,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `lang` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -20888,10 +20172,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `lang`() RETURNS char(2) CHARSET utf8mb3
+CREATE DEFINER=`root`@`localhost` FUNCTION `lang`() RETURNS char(2) CHARSET utf8
NO SQL
DETERMINISTIC
BEGIN
@@ -20907,6 +20189,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `lastDayOfYear` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -20914,8 +20198,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `lastDayOfYear`(vDate DATE) RETURNS date
NO SQL
@@ -20934,6 +20216,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `midnight` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -20941,8 +20225,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `midnight`() RETURNS datetime
READS SQL DATA
@@ -20956,18 +20238,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb3 */ ;
-/*!50003 SET character_set_results = utf8mb3 */ ;
-/*!50003 SET collation_connection = utf8mb3_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `nextWeek` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -20975,8 +20247,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `nextWeek`(vYearWeek INT) RETURNS int(11)
DETERMINISTIC
@@ -20999,6 +20269,47 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
+/*!50003 DROP FUNCTION IF EXISTS `notification_send` */;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb3 */ ;
+/*!50003 SET character_set_results = utf8mb3 */ ;
+/*!50003 SET collation_connection = utf8mb3_general_ci */ ;
+DELIMITER ;;
+CREATE DEFINER=`root`@`localhost` FUNCTION `notification_send`(vNotificationName VARCHAR(255), vParams TEXT, vAuthorFk INT) RETURNS int(11)
+ MODIFIES SQL DATA
+BEGIN
+/**
+ * Sends a notification.
+ *
+ * @param vNotificationName The notification name
+ * @param vParams The notification parameters formatted as JSON
+ * @param vAuthorFk The notification author or %NULL if there is no author
+ * @return The notification id
+ */
+ DECLARE vNotificationFk INT;
+
+ SELECT id INTO vNotificationFk
+ FROM `notification`
+ WHERE `name` = vNotificationName;
+
+ INSERT INTO notificationQueue
+ SET notificationFk = vNotificationFk,
+ params = vParams,
+ authorFk = vAuthorFk;
+
+ RETURN LAST_INSERT_ID();
+END ;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `quarterFirstDay` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -21006,8 +20317,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `quarterFirstDay`(vYear INT, vQuarter INT) RETURNS date
DETERMINISTIC
@@ -21019,6 +20328,29 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+/*!50003 DROP FUNCTION IF EXISTS `quoteIdentifier` */;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+DELIMITER ;;
+CREATE DEFINER=`root`@`localhost` FUNCTION `quoteIdentifier`(vString TEXT) RETURNS text CHARSET utf8mb3
+ NO SQL
+ DETERMINISTIC
+BEGIN
+ RETURN CONCAT('`', REPLACE(vString, '`', '``'), '`');
+END ;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `stringXor` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -21026,8 +20358,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `stringXor`(vString MEDIUMBLOB, vConst TINYINT UNSIGNED) RETURNS mediumblob
NO SQL
@@ -21055,6 +20385,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `today` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -21062,8 +20394,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `today`() RETURNS date
DETERMINISTIC
@@ -21082,6 +20412,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `tomorrow` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -21089,8 +20421,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `tomorrow`() RETURNS date
DETERMINISTIC
@@ -21107,6 +20437,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `twoDaysAgo` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -21114,8 +20446,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `twoDaysAgo`() RETURNS date
DETERMINISTIC
@@ -21132,66 +20462,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 DROP FUNCTION IF EXISTS `VN_CURDATE` */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb3 */ ;
-/*!50003 SET character_set_results = utf8mb3 */ ;
-/*!50003 SET collation_connection = utf8mb3_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `VN_CURDATE`() RETURNS date
- DETERMINISTIC
-BEGIN
- RETURN DATE(mockedDate());
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 DROP FUNCTION IF EXISTS `VN_CURTIME` */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb3 */ ;
-/*!50003 SET character_set_results = utf8mb3 */ ;
-/*!50003 SET collation_connection = utf8mb3_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `VN_CURTIME`() RETURNS time
- DETERMINISTIC
-BEGIN
- RETURN TIME(mockedDate());
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 DROP FUNCTION IF EXISTS `VN_NOW` */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb3 */ ;
-/*!50003 SET character_set_results = utf8mb3 */ ;
-/*!50003 SET collation_connection = utf8mb3_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `VN_NOW`() RETURNS datetime
- DETERMINISTIC
-BEGIN
- RETURN mockedDate();
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `yearRelativePosition` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -21199,10 +20471,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `yearRelativePosition`(vYear INT) RETURNS varchar(20) CHARSET utf8mb3
+CREATE DEFINER=`root`@`localhost` FUNCTION `yearRelativePosition`(vYear INT) RETURNS varchar(20) CHARSET utf8
DETERMINISTIC
BEGIN
/**
@@ -21233,6 +20503,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `yesterday` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -21240,8 +20512,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `yesterday`() RETURNS date
DETERMINISTIC
@@ -21258,6 +20528,34 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+/*!50003 DROP PROCEDURE IF EXISTS `checkHex` */;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+DELIMITER ;;
+CREATE DEFINER=`root`@`localhost` PROCEDURE `checkHex`(vParam VARCHAR(255))
+BEGIN
+/**
+ * Comprueba si vParam es un número hexadecimal que empieza por # y tiene una longitud total de 7 dígitos
+ *
+ * @param expresión a comprobar
+ */
+ IF vParam NOT REGEXP ('^#[0-9a-f]{6}$') THEN
+ CALL util.throw('Invalid RGB format');
+ END IF;
+END ;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `compareObjects` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -21265,8 +20563,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `compareObjects`(vChain VARCHAR(45),vCompare VARCHAR(45))
READS SQL DATA
@@ -21374,6 +20670,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `debugAdd` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -21381,8 +20679,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `debugAdd`(vVariable VARCHAR(255), vValue VARCHAR(255))
MODIFIES SQL DATA
@@ -21407,6 +20703,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `exec` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -21414,10 +20712,9 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `exec`(vSqlQuery TEXT)
+ SQL SECURITY INVOKER
BEGIN
/**
* Executes a string with an SQL query.
@@ -21430,13 +20727,15 @@ BEGIN
EXECUTE stmt;
DEALLOCATE PREPARE stmt;
- SET @sqlQuery = NULL;
+ SET @sqlQuery = NULL;
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `findObject` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -21444,8 +20743,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `findObject`(vChain VARCHAR(45))
READS SQL DATA
@@ -21508,6 +20805,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `procNoOverlap` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -21515,8 +20814,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `procNoOverlap`(procName VARCHAR(255))
SQL SECURITY INVOKER
@@ -21545,6 +20842,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `proc_changedPrivs` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -21552,8 +20851,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `proc_changedPrivs`()
BEGIN
@@ -21573,6 +20870,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `proc_restorePrivs` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -21580,8 +20879,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `proc_restorePrivs`()
BEGIN
@@ -21601,6 +20898,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `proc_savePrivs` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -21608,8 +20907,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `proc_savePrivs`()
BEGIN
@@ -21629,6 +20926,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `slowLog_prune` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -21636,8 +20935,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection = utf8mb3_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `slowLog_prune`()
BEGIN
@@ -21665,6 +20962,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `throw` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -21672,8 +20971,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `throw`(vMessage CHAR(55))
BEGIN
@@ -21690,6 +20987,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `time_createTable` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -21697,8 +20996,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `time_createTable`(vStarted DATE, vEnded DATE)
BEGIN
@@ -21718,32 +21015,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 DROP PROCEDURE IF EXISTS `udf_test` */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb3 */ ;
-/*!50003 SET character_set_results = utf8mb3 */ ;
-/*!50003 SET collation_connection = utf8mb3_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-CREATE DEFINER=`$itBoss`@`%` PROCEDURE `udf_test`(vLoops BIGINT)
-BEGIN
- DECLARE vI BIGINT DEFAULT 0;
- DECLARE vRes VARCHAR(255);
- WHILE vI < vLoops DO
- SELECT minacum(2, -10, 1) INTO vRes;
- SELECT multimax(10, 20) INTO vRes;
- SELECT sql_printf('SELECT %v FROM %t', TRUE, 'myTable') INTO vRes;
- SET vI = vI + 1;
- END WHILE;
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `warn` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -21751,8 +21024,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `warn`(vCode CHAR(35))
BEGIN
@@ -21781,11 +21052,10 @@ DROP TABLE IF EXISTS `NewView`;
/*!50001 DROP VIEW IF EXISTS `NewView`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `NewView` (
- `clientFk` tinyint NOT NULL,
- `lastShipped` tinyint NOT NULL,
- `notBuyingMonths` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `NewView` AS SELECT
+ 1 AS `clientFk`,
+ 1 AS `lastShipped`,
+ 1 AS `notBuyingMonths` */;
SET character_set_client = @saved_cs_client;
--
@@ -21871,7 +21141,7 @@ CREATE TABLE `XDiario` (
KEY `XDiario` (`enlazado`),
KEY `enlazadoSage` (`enlazadoSage`),
CONSTRAINT `XDiario_ibfk_1` FOREIGN KEY (`empresa_id`) REFERENCES `company` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -21886,13 +21156,11 @@ DELIMITER ;;
BEFORE INSERT ON `XDiario`
FOR EACH ROW
BEGIN
- IF (NOT isDateRangeAccounting(NEW.FECHA) AND NEW.FECHA IS NOT NULL) OR
- (NOT isDateRangeAccounting(NEW.FECHA_EX) AND NEW.FECHA_EX IS NOT NULL) OR
- (NOT isDateRangeAccounting(NEW.FECHA_OP) AND NEW.FECHA_OP IS NOT NULL) OR
- (NOT isDateRangeAccounting(NEW.FECHA_RT) AND NEW.FECHA_RT IS NOT NULL) OR
- (NOT isDateRangeAccounting(NEW.FECREGCON) AND NEW.FECREGCON IS NOT NULL) THEN
- CALL util.throw ('Fecha fuera de rango');
- END IF;
+ CALL XDiario_checkDate(NEW.FECHA);
+ CALL XDiario_checkDate(NEW.FECHA_EX);
+ CALL XDiario_checkDate(NEW.FECHA_OP);
+ CALL XDiario_checkDate(NEW.FECHA_RT);
+ CALL XDiario_checkDate(NEW.FECREGCON);
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
@@ -21912,14 +21180,21 @@ DELIMITER ;;
BEFORE UPDATE ON `XDiario`
FOR EACH ROW
BEGIN
- IF (!(NEW.FECHA <=> OLD.FECHA) AND NOT isDateRangeAccounting(NEW.FECHA)) OR
- (!(NEW.FECHA_EX <=> OLD.FECHA_EX) AND NOT isDateRangeAccounting(NEW.FECHA_EX)) OR
- (!(NEW.FECHA_OP <=> OLD.FECHA_OP) AND NOT isDateRangeAccounting(NEW.FECHA_OP)) OR
- (!(NEW.FECHA_RT <=> OLD.FECHA_RT) AND NOT isDateRangeAccounting(NEW.FECHA_RT)) OR
- (!(NEW.FECREGCON <=> OLD.FECREGCON) AND NOT isDateRangeAccounting(NEW.FECREGCON)) THEN
- CALL util.throw ('Fecha fuera de rango');
- END IF;
-
+ IF NOT NEW.FECHA <=> OLD.FECHA THEN
+ CALL XDiario_checkDate(NEW.FECHA);
+ END IF;
+ IF NOT NEW.FECHA_EX <=> OLD.FECHA_EX THEN
+ CALL XDiario_checkDate(NEW.FECHA_EX);
+ END IF;
+ IF NOT NEW.FECHA_OP <=> OLD.FECHA_OP THEN
+ CALL XDiario_checkDate(NEW.FECHA_OP);
+ END IF;
+ IF NOT NEW.FECHA_RT <=> OLD.FECHA_RT THEN
+ CALL XDiario_checkDate(NEW.FECHA_RT);
+ END IF;
+ IF NOT NEW.FECREGCON <=> OLD.FECREGCON THEN
+ CALL XDiario_checkDate(NEW.FECREGCON);
+ END IF;
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
@@ -21927,6 +21202,20 @@ DELIMITER ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+--
+-- Temporary table structure for view `__coolerPathDetail`
+--
+
+DROP TABLE IF EXISTS `__coolerPathDetail`;
+/*!50001 DROP VIEW IF EXISTS `__coolerPathDetail`*/;
+SET @saved_cs_client = @@character_set_client;
+SET character_set_client = utf8;
+/*!50001 CREATE VIEW `__coolerPathDetail` AS SELECT
+ 1 AS `id`,
+ 1 AS `coolerPathFk`,
+ 1 AS `hallway` */;
+SET character_set_client = @saved_cs_client;
+
--
-- Table structure for table `absenceType`
--
@@ -22013,20 +21302,6 @@ CREATE TABLE `accountingType` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='descripcio dels valors de la columna "cash" de la taula vn2008.Bancios';
/*!40101 SET character_set_client = @saved_cs_client */;
---
--- Table structure for table `activeContrat__`
---
-
-DROP TABLE IF EXISTS `activeContrat__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `activeContrat__` (
- `date` date NOT NULL,
- `business_id` int(11) NOT NULL,
- PRIMARY KEY (`date`,`business_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
--
-- Table structure for table `activityTaxDismissed`
--
@@ -22054,7 +21329,6 @@ DROP TABLE IF EXISTS `address`;
CREATE TABLE `address` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`clientFk` int(11) NOT NULL DEFAULT 0,
- `warehouseFk__` smallint(6) unsigned DEFAULT 1,
`street` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`city` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`provinceFk` smallint(5) unsigned DEFAULT NULL,
@@ -22064,23 +21338,16 @@ CREATE TABLE `address` (
`nickname` varchar(40) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`isDefaultAddress` tinyint(1) NOT NULL DEFAULT 0,
`agencyModeFk` int(11) NOT NULL DEFAULT 2,
- `notes__` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `hasInsurance__` tinyint(1) NOT NULL DEFAULT 0,
- `porte__` double DEFAULT NULL,
`isActive` tinyint(4) NOT NULL DEFAULT 1,
- `postcodeOLD__` int(11) unsigned DEFAULT NULL,
`longitude` decimal(11,7) DEFAULT NULL,
`latitude` decimal(11,7) DEFAULT NULL,
- `codPosOld__` char(5) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`isEqualizated` tinyint(1) DEFAULT NULL,
`customsAgentFk` int(11) DEFAULT NULL,
`incotermsFk` varchar(3) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `isVilassarBuyer__` tinyint(4) NOT NULL DEFAULT 0,
`isLogifloraAllowed` tinyint(4) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
KEY `Id_Agencia` (`agencyModeFk`),
KEY `Id_cliente` (`clientFk`),
- KEY `warehouse_id` (`warehouseFk__`),
KEY `province_id` (`provinceFk`),
KEY `telefono` (`phone`),
KEY `movil` (`mobile`),
@@ -22089,7 +21356,6 @@ CREATE TABLE `address` (
KEY `address_incotermsFk_idx` (`incotermsFk`),
CONSTRAINT `address_customer_id` FOREIGN KEY (`clientFk`) REFERENCES `client` (`id`) ON UPDATE CASCADE,
CONSTRAINT `address_customsAgentFk` FOREIGN KEY (`customsAgentFk`) REFERENCES `customsAgent` (`id`) ON UPDATE CASCADE,
- CONSTRAINT `address_ibfk_1` FOREIGN KEY (`warehouseFk__`) REFERENCES `warehouse` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
CONSTRAINT `address_ibfk_3` FOREIGN KEY (`provinceFk`) REFERENCES `province` (`id`) ON UPDATE CASCADE,
CONSTRAINT `address_ibfk_4` FOREIGN KEY (`agencyModeFk`) REFERENCES `agencyMode` (`id`) ON UPDATE CASCADE,
CONSTRAINT `address_incotermsFk` FOREIGN KEY (`incotermsFk`) REFERENCES `incoterms` (`code`) ON UPDATE CASCADE
@@ -22231,7 +21497,7 @@ CREATE TABLE `addressFilter` (
CONSTRAINT `addressFilter_FK` FOREIGN KEY (`provinceFk`) REFERENCES `province` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `addressFilter_FK_1` FOREIGN KEY (`countryFk`) REFERENCES `country` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `addressFilter_FK_2` FOREIGN KEY (`warehouseFk`) REFERENCES `warehouse` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Establece los criterios para habilitar las compras directas a Logiflora';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Establece los criterios para habilitar las compras directas a Logiflora';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -22280,23 +21546,16 @@ CREATE TABLE `agency` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(25) COLLATE utf8mb3_unicode_ci NOT NULL,
`warehouseFk` smallint(5) unsigned DEFAULT NULL COMMENT 'A nulo si se puede enrutar desde todos los almacenes',
- `isVolumetric__` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'Si el calculo del porte se hacer por volumen',
- `bankFk__` int(11) NOT NULL DEFAULT 8 COMMENT 'para realizar los reembolsos',
`warehouseAliasFk` smallint(5) unsigned DEFAULT NULL,
`isOwn` tinyint(1) NOT NULL DEFAULT 0,
- `labelZone__` tinyint(4) NOT NULL DEFAULT 0,
`workCenterFk` int(11) DEFAULT NULL,
- `supplierFk__` int(11) DEFAULT NULL,
`isAnyVolumeAllowed` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Permite vender productos que tengan vn.itemType.IsUnconventionalSize = TRUE',
PRIMARY KEY (`id`),
KEY `warehouse_id` (`warehouseFk`),
- KEY `Id_Banco` (`bankFk__`),
KEY `agencias_alias_idx` (`warehouseAliasFk`),
KEY `agency_ibfk_3_idx` (`workCenterFk`),
- KEY `agency_ibfk_4_idx` (`supplierFk__`),
CONSTRAINT `agency_FK` FOREIGN KEY (`warehouseAliasFk`) REFERENCES `warehouseAlias` (`id`) ON UPDATE CASCADE,
CONSTRAINT `agency_ibfk_1` FOREIGN KEY (`warehouseFk`) REFERENCES `warehouse` (`id`) ON UPDATE CASCADE,
- CONSTRAINT `agency_ibfk_2` FOREIGN KEY (`bankFk__`) REFERENCES `accounting` (`id`) ON UPDATE CASCADE,
CONSTRAINT `agency_ibfk_3` FOREIGN KEY (`workCenterFk`) REFERENCES `workCenter` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -22354,7 +21613,6 @@ CREATE TABLE `agencyMode` (
`description` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`deliveryMethodFk` int(11) DEFAULT NULL,
`m3` double DEFAULT 0,
- `cod71__` tinyint(3) unsigned DEFAULT 0,
`web` smallint(1) unsigned zerofill NOT NULL DEFAULT 0,
`agencyFk` smallint(5) unsigned NOT NULL,
`inflation` decimal(5,2) NOT NULL DEFAULT 0.00 COMMENT 'Este valor se utiliza para aumentar el valor del componente porte.',
@@ -22385,16 +21643,15 @@ DROP TABLE IF EXISTS `agencyTerm`;
/*!50001 DROP VIEW IF EXISTS `agencyTerm`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `agencyTerm` (
- `agencyFk` tinyint NOT NULL,
- `minimumPackages` tinyint NOT NULL,
- `kmPrice` tinyint NOT NULL,
- `packagePrice` tinyint NOT NULL,
- `routePrice` tinyint NOT NULL,
- `minimumKm` tinyint NOT NULL,
- `minimumM3` tinyint NOT NULL,
- `m3Price` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `agencyTerm` AS SELECT
+ 1 AS `agencyFk`,
+ 1 AS `minimumPackages`,
+ 1 AS `kmPrice`,
+ 1 AS `packagePrice`,
+ 1 AS `routePrice`,
+ 1 AS `minimumKm`,
+ 1 AS `minimumM3`,
+ 1 AS `m3Price` */;
SET character_set_client = @saved_cs_client;
--
@@ -22448,10 +21705,9 @@ DROP TABLE IF EXISTS `annualAverageInvoiced`;
/*!50001 DROP VIEW IF EXISTS `annualAverageInvoiced`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `annualAverageInvoiced` (
- `clientFk` tinyint NOT NULL,
- `invoiced` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `annualAverageInvoiced` AS SELECT
+ 1 AS `clientFk`,
+ 1 AS `invoiced` */;
SET character_set_client = @saved_cs_client;
--
@@ -22468,7 +21724,7 @@ CREATE TABLE `assignedTicketToWorker` (
PRIMARY KEY (`id`),
UNIQUE KEY `idWorker_UNIQUE` (`idWorker`),
UNIQUE KEY `idTicket_UNIQUE` (`idTicket`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Tabla para relacionar un ticket con el sacador del altillo ';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Tabla para relacionar un ticket con el sacador del altillo ';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -22504,25 +21760,7 @@ CREATE TABLE `autoRadioLogCall` (
PRIMARY KEY (`id`),
KEY `ticket_idx` (`ticketFk`),
CONSTRAINT `ticket` FOREIGN KEY (`ticketFk`) REFERENCES `ticket` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `autonomousRegion__`
---
-
-DROP TABLE IF EXISTS `autonomousRegion__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `autonomousRegion__` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `name` varchar(50) CHARACTER SET utf8mb3 NOT NULL,
- `geoFk` int(11) DEFAULT NULL,
- `countryFk` mediumint(8) unsigned DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `countryFk` (`countryFk`),
- CONSTRAINT `countryFk` FOREIGN KEY (`countryFk`) REFERENCES `country` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -22702,11 +21940,10 @@ DROP TABLE IF EXISTS `awbVolume`;
/*!50001 DROP VIEW IF EXISTS `awbVolume`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `awbVolume` (
- `awbFk` tinyint NOT NULL,
- `volume` tinyint NOT NULL,
- `buyFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `awbVolume` AS SELECT
+ 1 AS `awbFk`,
+ 1 AS `volume`,
+ 1 AS `buyFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -22717,16 +21954,15 @@ DROP TABLE IF EXISTS `bank`;
/*!50001 DROP VIEW IF EXISTS `bank`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `bank` (
- `id` tinyint NOT NULL,
- `bank` tinyint NOT NULL,
- `account` tinyint NOT NULL,
- `cash` tinyint NOT NULL,
- `entityFk` tinyint NOT NULL,
- `isActive` tinyint NOT NULL,
- `currencyFk` tinyint NOT NULL,
- `code` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `bank` AS SELECT
+ 1 AS `id`,
+ 1 AS `bank`,
+ 1 AS `account`,
+ 1 AS `cash`,
+ 1 AS `entityFk`,
+ 1 AS `isActive`,
+ 1 AS `currencyFk`,
+ 1 AS `code` */;
SET character_set_client = @saved_cs_client;
--
@@ -22801,9 +22037,39 @@ CREATE TABLE `bankEntityConfig` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`bicLength` tinyint(4) DEFAULT 11 COMMENT 'Tamaño del campo bic',
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
+--
+-- Temporary table structure for view `bankPolicy`
+--
+
+DROP TABLE IF EXISTS `bankPolicy`;
+/*!50001 DROP VIEW IF EXISTS `bankPolicy`*/;
+SET @saved_cs_client = @@character_set_client;
+SET character_set_client = utf8;
+/*!50001 CREATE VIEW `bankPolicy` AS SELECT
+ 1 AS `id`,
+ 1 AS `ref`,
+ 1 AS `amount`,
+ 1 AS `balanceInterestDrawn`,
+ 1 AS `commissionAvailableBalances`,
+ 1 AS `openingCommission`,
+ 1 AS `started`,
+ 1 AS `ended`,
+ 1 AS `bankFk`,
+ 1 AS `companyFk`,
+ 1 AS `supplierFk`,
+ 1 AS `description`,
+ 1 AS `hasGuarantee`,
+ 1 AS `dmsFk`,
+ 1 AS `notaryFk`,
+ 1 AS `currencyFk`,
+ 1 AS `amortizationTypeFk`,
+ 1 AS `periodicityTypeFk`,
+ 1 AS `insuranceExpired` */;
+SET character_set_client = @saved_cs_client;
+
--
-- Table structure for table `beach`
--
@@ -22883,7 +22149,7 @@ CREATE TABLE `botanicExport` (
KEY `botanicExport_ibfk_2_idx` (`ediGenusFk`),
KEY `botanicExport_ibfk_3_idx` (`ediSpecieFk`),
CONSTRAINT `botanicExport_ibfk_1` FOREIGN KEY (`countryFk`) REFERENCES `country` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Especifica los generos y especies prohibidos en paises';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Especifica los generos y especies prohibidos en paises';
/*!40101 SET character_set_client = @saved_cs_client */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -22936,7 +22202,7 @@ CREATE TABLE `budget` (
CONSTRAINT `budget_FK_1` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `budget_FK_2` FOREIGN KEY (`departmentFk`) REFERENCES `department` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `budget_FK_3` FOREIGN KEY (`supplierFk`) REFERENCES `supplier` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Master de presupuestos de project';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Master de presupuestos de project';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -22955,7 +22221,7 @@ CREATE TABLE `budgetDms` (
KEY `budgetDms_FK_1` (`dmsFk`),
CONSTRAINT `budgetDms_FK` FOREIGN KEY (`budgetFk`) REFERENCES `budget` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `budgetDms_FK_1` FOREIGN KEY (`dmsFk`) REFERENCES `dms` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Gestion documental de budget';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Gestion documental de budget';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -22976,7 +22242,7 @@ CREATE TABLE `budgetInvoiceIn` (
KEY `budgetInvoiceIn_FK_1` (`invoiceInFk`),
CONSTRAINT `budgetInvoiceIn_FK` FOREIGN KEY (`budgetFk`) REFERENCES `budget` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `budgetInvoiceIn_FK_1` FOREIGN KEY (`invoiceInFk`) REFERENCES `invoiceIn` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Facturas relativas al presupuesto';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Facturas relativas al presupuesto';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -22997,7 +22263,7 @@ CREATE TABLE `budgetNotes` (
KEY `budgetNotes_FK_2` (`userFk`),
CONSTRAINT `budgetNotes_FK` FOREIGN KEY (`budgetFk`) REFERENCES `budget` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `budgetNotes_FK_2` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Historico de budget';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Historico de budget';
/*!40101 SET character_set_client = @saved_cs_client */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -23054,6 +22320,7 @@ CREATE TABLE `business` (
`workerBusinessTypeFk` int(11) DEFAULT NULL,
`amount` decimal(10,2) NOT NULL DEFAULT 0.00 COMMENT 'Importe pactado',
`workerBusinessAgreementFk` int(11) DEFAULT NULL,
+ `basicSalary` decimal(10,2) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `business_occupationCodeFk` (`occupationCodeFk`),
KEY `business_companyCodeFk` (`companyCodeFk`),
@@ -23061,16 +22328,15 @@ CREATE TABLE `business` (
KEY `business_departmentFk_idx` (`departmentFk`),
KEY `business_workerBusinessProfessionalCategoryFk_idx` (`workerBusinessProfessionalCategoryFk`),
KEY `business_calendarTypeFk_idx` (`calendarTypeFk`),
- KEY `business_workerBusinessCategoryFk` (`workerBusinessCategoryFk`),
KEY `business_workerBusinessTypeFk_idx` (`workerBusinessTypeFk`),
KEY `business_workerBusinessAgreementFk_idx` (`workerBusinessAgreementFk`),
- CONSTRAINT `business_calendarTypeFk` FOREIGN KEY (`calendarTypeFk`) REFERENCES `postgresql`.`calendar_labour_type` (`calendar_labour_type_id`) ON DELETE NO ACTION ON UPDATE CASCADE,
+ CONSTRAINT `business_calendarTypeFk` FOREIGN KEY (`calendarTypeFk`) REFERENCES `postgresql`.`calendar_labour_type` (`calendar_labour_type_id`) ON UPDATE CASCADE,
CONSTRAINT `business_companyCodeFk` FOREIGN KEY (`companyCodeFk`) REFERENCES `company` (`code`) ON UPDATE CASCADE,
- CONSTRAINT `business_departmentFk` FOREIGN KEY (`departmentFk`) REFERENCES `department` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE,
+ CONSTRAINT `business_departmentFk` FOREIGN KEY (`departmentFk`) REFERENCES `department` (`id`) ON UPDATE CASCADE,
CONSTRAINT `business_occupationCodeFk` FOREIGN KEY (`occupationCodeFk`) REFERENCES `occupationCode` (`code`) ON UPDATE CASCADE,
- CONSTRAINT `business_workerBusinessAgreementFk` FOREIGN KEY (`workerBusinessAgreementFk`) REFERENCES `postgresql`.`labour_agreement` (`labour_agreement_id`) ON DELETE NO ACTION ON UPDATE CASCADE,
- CONSTRAINT `business_workerBusinessProfessionalCategoryFk` FOREIGN KEY (`workerBusinessProfessionalCategoryFk`) REFERENCES `postgresql`.`professional_category` (`professional_category_id`) ON DELETE NO ACTION ON UPDATE CASCADE,
- CONSTRAINT `business_workerBusinessTypeFk` FOREIGN KEY (`workerBusinessTypeFk`) REFERENCES `workerBusinessType` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE,
+ CONSTRAINT `business_workerBusinessAgreementFk` FOREIGN KEY (`workerBusinessAgreementFk`) REFERENCES `postgresql`.`labour_agreement` (`labour_agreement_id`) ON UPDATE CASCADE,
+ CONSTRAINT `business_workerBusinessProfessionalCategoryFk` FOREIGN KEY (`workerBusinessProfessionalCategoryFk`) REFERENCES `postgresql`.`professional_category` (`professional_category_id`) ON UPDATE CASCADE,
+ CONSTRAINT `business_workerBusinessTypeFk` FOREIGN KEY (`workerBusinessTypeFk`) REFERENCES `workerBusinessType` (`id`) ON UPDATE CASCADE,
CONSTRAINT `business_workerFk` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -23213,12 +22479,11 @@ DROP TABLE IF EXISTS `businessCalendar`;
/*!50001 DROP VIEW IF EXISTS `businessCalendar`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `businessCalendar` (
- `id` tinyint NOT NULL,
- `businessFk` tinyint NOT NULL,
- `absenceTypeFk` tinyint NOT NULL,
- `dated` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `businessCalendar` AS SELECT
+ 1 AS `id`,
+ 1 AS `businessFk`,
+ 1 AS `absenceTypeFk`,
+ 1 AS `dated` */;
SET character_set_client = @saved_cs_client;
--
@@ -23232,7 +22497,7 @@ CREATE TABLE `businessReasonEnd` (
`id` tinyint(3) NOT NULL AUTO_INCREMENT,
`reason` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -23262,23 +22527,22 @@ CREATE TABLE `buy` (
`itemFk` int(11) NOT NULL DEFAULT 90,
`quantity` int(11) DEFAULT 0,
`dispatched` int(11) NOT NULL DEFAULT 0,
- `buyingValue` decimal(10,3) DEFAULT 0.000,
- `freightValue` decimal(10,3) DEFAULT 0.000,
+ `buyingValue` decimal(10,3) NOT NULL DEFAULT 0.000,
+ `freightValue` decimal(10,3) NOT NULL DEFAULT 0.000,
`isIgnored` tinyint(1) NOT NULL DEFAULT 0,
`stickers` int(11) NOT NULL DEFAULT 0,
`packing` int(11) DEFAULT 0,
`grouping` smallint(5) unsigned NOT NULL DEFAULT 1,
`groupingMode` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0=sin obligar 1=groping 2=packing',
`containerFk` smallint(5) unsigned DEFAULT NULL,
- `comissionValue` decimal(10,3) DEFAULT 0.000,
- `packageValue` decimal(10,3) DEFAULT 0.000,
+ `comissionValue` decimal(10,3) NOT NULL DEFAULT 0.000,
+ `packageValue` decimal(10,3) NOT NULL DEFAULT 0.000,
`location` varchar(5) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`packageFk` varchar(10) COLLATE utf8mb3_unicode_ci DEFAULT '--',
`price1` decimal(10,2) DEFAULT 0.00,
`price2` decimal(10,2) DEFAULT 0.00,
`price3` decimal(10,2) DEFAULT 0.00,
`minPrice` decimal(10,2) DEFAULT 0.00,
- `producer` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`printedStickers` int(11) DEFAULT 0,
`workerFk` int(11) DEFAULT 0,
`isChecked` tinyint(1) NOT NULL DEFAULT 0,
@@ -23494,15 +22758,15 @@ trig: BEGIN
DECLARE vLanded DATE;
DECLARE vBuyerFk INT;
DECLARE vIsBuyerToBeEmailed BOOL;
- DECLARE vItemName VARCHAR(50);
+ DECLARE vItemName VARCHAR(50);
DECLARE vNewValues VARCHAR(255);
DECLARE vOldValues VARCHAR(255);
- IF !(NEW.id <=> OLD.id)
- OR !(NEW.entryFk <=> OLD.entryFk)
- OR !(NEW.itemFk <=> OLD.itemFk)
- OR !(NEW.quantity <=> OLD.quantity)
- OR !(NEW.created <=> OLD.created) THEN
+ IF !(NEW.id <=> OLD.id)
+ OR !(NEW.entryFk <=> OLD.entryFk)
+ OR !(NEW.itemFk <=> OLD.itemFk)
+ OR !(NEW.quantity <=> OLD.quantity)
+ OR !(NEW.created <=> OLD.created) THEN
CALL stock.log_add('buy', NEW.id, OLD.id);
END IF;
@@ -23514,7 +22778,7 @@ trig: BEGIN
LEAVE trig;
END IF;
- CALL buy_afterUpsert(NEW.id);
+ CALL buy_afterUpsert(NEW.id);
SELECT w.isBuyerToBeEmailed, t.landed
INTO vIsBuyerToBeEmailed, vLanded
@@ -23530,15 +22794,15 @@ trig: BEGIN
JOIN item i ON i.typeFk = it.id
WHERE i.id = OLD.itemFk;
- IF vIsBuyerToBeEmailed AND
- vBuyerFk != account.myUser_getId() AND
- vLanded = util.VN_CURDATE() THEN
+ IF vIsBuyerToBeEmailed AND
+ vBuyerFk != account.myUser_getId() AND
+ vLanded = util.VN_CURDATE() THEN
IF !(NEW.itemFk <=> OLD.itemFk) OR
- !(NEW.quantity <=> OLD.quantity) OR
- !(NEW.packing <=> OLD.packing) OR
- !(NEW.grouping <=> OLD.grouping) OR
- !(NEW.packageFk <=> OLD.packageFk) OR
- !(NEW.weight <=> OLD.weight) THEN
+ !(NEW.quantity <=> OLD.quantity) OR
+ !(NEW.packing <=> OLD.packing) OR
+ !(NEW.grouping <=> OLD.grouping) OR
+ !(NEW.packageFk <=> OLD.packageFk) OR
+ !(NEW.weight <=> OLD.weight) THEN
CALL vn.mail_insert(
CONCAT(account.user_getNameFromId(vBuyerFk),'@verdnatura.es'),
CONCAT(account.myUser_getName(),'@verdnatura.es'),
@@ -23548,36 +22812,6 @@ trig: BEGIN
END IF;
END IF;
- IF OLD.printedStickers <> 0 AND NEW.printedStickers = 0 THEN
- CALL util.debugAdd('buy_deleted', CONCAT(OLD.id,' ', OLD.itemFk,' ', vn.getWorkerCode()));
- END IF;
-/*
- IF (!(NEW.entryFk <=> OLD.entryFk)
- OR !(NEW.quantity <=> OLD.quantity)
- OR !(NEW.price1 <=> OLD.price1)
- OR !(NEW.price2 <=> OLD.price2)
- OR !(NEW.price3 <=> OLD.price3))
- AND (entry_isInventoryOrPrevious(NEW.entryFk)
- OR entry_isInventoryOrPrevious(OLD.entryFk)) THEN
- SET vOldValues = CONCAT_WS(',',
- OLD.entryFk,
- OLD.itemFk,
- OLD.quantity,
- OLD.price1,
- OLD.price2,
- OLD.price3
- );
- SET vNewValues = CONCAT_WS(',',
- NEW.entryFk,
- NEW.itemFk,
- NEW.quantity,
- NEW.price1,
- NEW.price2,
- NEW.price3
- );
- CALL entry_notifyChanged(NEW.entryFk, NEW.id, vNewValues, vOldValues);
- END IF;
- */
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
@@ -23670,10 +22904,9 @@ DROP TABLE IF EXISTS `buyer`;
/*!50001 DROP VIEW IF EXISTS `buyer`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `buyer` (
- `userFk` tinyint NOT NULL,
- `nickname` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `buyer` AS SELECT
+ 1 AS `userFk`,
+ 1 AS `nickname` */;
SET character_set_client = @saved_cs_client;
--
@@ -23684,12 +22917,11 @@ DROP TABLE IF EXISTS `buyerSales`;
/*!50001 DROP VIEW IF EXISTS `buyerSales`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `buyerSales` (
- `importe` tinyint NOT NULL,
- `comprador` tinyint NOT NULL,
- `año` tinyint NOT NULL,
- `semana` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `buyerSales` AS SELECT
+ 1 AS `importe`,
+ 1 AS `comprador`,
+ 1 AS `año`,
+ 1 AS `semana` */;
SET character_set_client = @saved_cs_client;
--
@@ -23709,7 +22941,7 @@ CREATE TABLE `calendar` (
KEY `calendar_employee_calendar_state_calendar_state_id_idx` (`dayOffTypeFk`),
KEY `id_index` (`id`),
CONSTRAINT `calendar_FK` FOREIGN KEY (`dayOffTypeFk`) REFERENCES `absenceType` (`id`) ON UPDATE CASCADE,
- CONSTRAINT `calendar_businessFk` FOREIGN KEY (`businessFk`) REFERENCES `business` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE
+ CONSTRAINT `calendar_businessFk` FOREIGN KEY (`businessFk`) REFERENCES `business` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -23795,7 +23027,7 @@ CREATE TABLE `category` (
`description` varchar(45) COLLATE utf8mb3_unicode_ci NOT NULL,
`nick` varchar(3) COLLATE utf8mb3_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -23813,7 +23045,7 @@ CREATE TABLE `chain` (
PRIMARY KEY (`id`),
KEY `chain_FK` (`componentFk`),
CONSTRAINT `chain_FK` FOREIGN KEY (`componentFk`) REFERENCES `component` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Grupos de clientes';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Grupos de clientes';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -23866,7 +23098,6 @@ DROP TABLE IF EXISTS `claim`;
CREATE TABLE `claim` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ticketCreated` date NOT NULL,
- `claimDepartmentFk__` tinyint(3) unsigned DEFAULT NULL,
`claimStateFk` int(10) unsigned NOT NULL DEFAULT 1,
`observation` text COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`clientFk` int(11) NOT NULL,
@@ -23877,15 +23108,14 @@ CREATE TABLE `claim` (
`ticketFk` int(11) DEFAULT NULL,
`hasToPickUp` tinyint(1) NOT NULL,
`packages` smallint(10) unsigned DEFAULT 0 COMMENT 'packages received by the client',
+ `rma` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
- KEY `cl_dep_id` (`claimDepartmentFk__`),
KEY `cl_est_id` (`claimStateFk`),
KEY `Id_Cliente` (`clientFk`),
KEY `Id_Trabajador` (`workerFk`),
KEY `cl_main_ticketFk_idx` (`ticketFk`),
CONSTRAINT `cl_main_ticketFk` FOREIGN KEY (`ticketFk`) REFERENCES `ticket` (`id`) ON UPDATE CASCADE,
CONSTRAINT `claim_ibfk_3` FOREIGN KEY (`claimStateFk`) REFERENCES `claimState` (`id`) ON UPDATE CASCADE,
- CONSTRAINT `claim_ibfk_4` FOREIGN KEY (`claimDepartmentFk__`) REFERENCES `vn2008`.`cl_dep` (`id`) ON UPDATE CASCADE,
CONSTRAINT `claim_ibfk_5` FOREIGN KEY (`clientFk`) REFERENCES `client` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Reclamaciones, tabla principal';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -23901,8 +23131,6 @@ CREATE TABLE `claimBeginning` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`claimFk` int(10) unsigned NOT NULL,
`saleFk` int(11) DEFAULT NULL,
- `claimComplaintFk__` int(10) unsigned NOT NULL DEFAULT 1,
- `claimRequestFk__` int(1) unsigned NOT NULL DEFAULT 1,
`quantity` double DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `Id_Movimiento` (`saleFk`),
@@ -23949,7 +23177,6 @@ DROP TABLE IF EXISTS `claimConfig`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `claimConfig` (
`id` int(11) NOT NULL,
- `pickupContact` varchar(250) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`maxResponsibility` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
@@ -24072,7 +23299,7 @@ CREATE TABLE `claimLog` (
KEY `userFk` (`userFk`),
CONSTRAINT `claimOriginFk` FOREIGN KEY (`originFk`) REFERENCES `claim` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `claimUserFk` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -24174,6 +23401,22 @@ CREATE TABLE `claimResult` (
) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Consecuencias de los motivos';
/*!40101 SET character_set_client = @saved_cs_client */;
+--
+-- Table structure for table `claimRma`
+--
+
+DROP TABLE IF EXISTS `claimRma`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `claimRma` (
+ `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
+ `code` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `created` timestamp NOT NULL DEFAULT current_timestamp(),
+ `workerFk` int(10) unsigned NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
--
-- Table structure for table `claimState`
--
@@ -24204,16 +23447,12 @@ DROP TABLE IF EXISTS `client`;
CREATE TABLE `client` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
- `discount__` tinyint(3) unsigned NOT NULL DEFAULT 0 COMMENT 'obsoleta (comprobar)',
`defaultAddressFk` int(11) DEFAULT NULL,
`street` longtext COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`fi` varchar(14) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`phone` varchar(15) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `fax__` varchar(11) COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'obsoleta (comprobar)',
`email` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`dueDay` smallint(6) NOT NULL DEFAULT 5,
- `receipt__` int(11) DEFAULT 1 COMMENT 'obsoleta',
- `isOfficial__` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'obsoleta (comprobar)',
`isTaxDataChecked` tinyint(1) NOT NULL DEFAULT 0,
`mobile` varchar(15) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`accountingAccount` varchar(10) CHARACTER SET utf8mb3 NOT NULL,
@@ -24223,17 +23462,10 @@ CREATE TABLE `client` (
`postcode` varchar(8) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`socialName` varchar(60) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`contact` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `wholesaler__` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'obsoleta (comprobar)',
- `isReExpedition__` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'obsoleta (comprobar)',
`hasToInvoice` tinyint(1) NOT NULL DEFAULT 1,
- `notes__` text COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'obsoleta (comprobar)',
- `administrativeNotes__` text COLLATE utf8mb3_unicode_ci NOT NULL COMMENT 'obsoleta (comprobar)',
- `invoiceCopy__` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'obsoleta (comprobar)',
- `hold__` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'obsoleta (comprobar)',
`isFreezed` tinyint(1) NOT NULL DEFAULT 0,
`salesPersonFk` int(10) unsigned DEFAULT NULL,
`credit` decimal(10,2) NOT NULL DEFAULT 0.00,
- `cyc__` double DEFAULT NULL COMMENT 'obsoleta (comprobar)',
`countryFk` mediumint(8) unsigned NOT NULL DEFAULT 1,
`isActive` tinyint(1) NOT NULL DEFAULT 1,
`gestdocFk` int(11) DEFAULT NULL,
@@ -24243,22 +23475,16 @@ CREATE TABLE `client` (
`isToBeMailed` tinyint(1) NOT NULL DEFAULT 1,
`contactChannelFk` smallint(6) DEFAULT NULL,
`isVies` tinyint(4) NOT NULL DEFAULT 0,
- `splitHolland__` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'obsoleta (comprobar)',
- `sepaFth__` tinyint(1) DEFAULT 0 COMMENT 'campo para recibir los escritos de los clientes para el sepaobsoleta (comprobar)',
`hasSepaVnl` tinyint(1) DEFAULT 0,
- `coreFth__` tinyint(1) DEFAULT 0 COMMENT 'obsoleta (comprobar)',
`hasCoreVnl` tinyint(1) DEFAULT 0,
`riskCalculated` date NOT NULL,
`hasCoreVnh` tinyint(1) DEFAULT 0,
`isRelevant` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'Define los clientes cuyas ventas hay que tener en cuenta en los calculos estadisticos.',
`clientTypeFk` int(11) NOT NULL DEFAULT 1,
- `postcodeOld__` int(11) unsigned DEFAULT NULL COMMENT 'obsoleta (comprobar)',
`mailAddress` int(11) DEFAULT NULL,
- `codposOLD__` char(5) COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'obsoleta (comprobar)',
`creditInsurance` int(11) DEFAULT NULL,
`eypbc` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Email\\nYesterday\\nPurchases\\nBy\\nConsigna',
`hasToInvoiceByAddress` tinyint(1) DEFAULT 0,
- `cplusTerIdNifFk__` int(11) NOT NULL DEFAULT 1 COMMENT 'OBSOLETO',
`isCreatedAsServed` tinyint(1) DEFAULT 0,
`hasInvoiceSimplified` tinyint(1) NOT NULL DEFAULT 0,
`iban` varchar(45) CHARACTER SET utf8mb3 DEFAULT NULL,
@@ -24283,7 +23509,6 @@ CREATE TABLE `client` (
KEY `Telefono` (`phone`),
KEY `movil` (`mobile`),
KEY `tipos_de_cliente_idx` (`clientTypeFk`),
- KEY `codpos` (`codposOLD__`,`postcode`),
KEY `fk_Clientes_entity_idx` (`bankEntityFk`),
KEY `typeFk` (`typeFk`),
KEY `client_taxTypeSageFk_idx` (`taxTypeSageFk`),
@@ -24291,6 +23516,7 @@ CREATE TABLE `client` (
KEY `client_FK` (`businessTypeFk`),
KEY `client_lastSalesPersonFk_IDX` (`lastSalesPersonFk`) USING BTREE,
KEY `client_FK_3` (`transferorFk`),
+ KEY `codpos` (`postcode`),
CONSTRAINT `canal_nuevo_cliente` FOREIGN KEY (`contactChannelFk`) REFERENCES `contactChannel` (`id`) ON UPDATE CASCADE,
CONSTRAINT `client_FK` FOREIGN KEY (`businessTypeFk`) REFERENCES `businessType` (`code`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `client_FK_1` FOREIGN KEY (`bankEntityFk`) REFERENCES `bankEntity` (`id`) ON UPDATE CASCADE,
@@ -24404,7 +23630,9 @@ BEGIN
END IF;
END IF;
- SET NEW.lastSalesPersonFk = IFNULL(NEW.salesPersonFk, OLD.salesPersonFk);
+ IF !(NEW.salesPersonFk <=> OLD.salesPersonFk) THEN
+ SET NEW.lastSalesPersonFk = IFNULL(NEW.salesPersonFk, OLD.salesPersonFk);
+ END IF;
IF !(NEW.businessTypeFk <=> OLD.businessTypeFk) THEN
SET NEW.isTaxDataChecked = 0;
@@ -24472,7 +23700,7 @@ CREATE TABLE `clientChain` (
KEY `clientChain_fk2_idx` (`chainFk`),
CONSTRAINT `clientChain_fk1` FOREIGN KEY (`clientFk`) REFERENCES `client` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `clientChain_fk2` FOREIGN KEY (`chainFk`) REFERENCES `chain` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -24487,10 +23715,28 @@ CREATE TABLE `clientConfig` (
`riskTolerance` int(11) DEFAULT NULL COMMENT 'Maximo riesgo de un cliente para preparar su pedido',
`maxCreditRows` int(11) DEFAULT NULL COMMENT 'Máximo número de registros a mantener en la tabla clientCredit',
`maxPriceIncreasingRatio` decimal(2,2) NOT NULL DEFAULT 0.25 COMMENT 'máximo recobro permitido',
+ `riskScope` int(11) NOT NULL DEFAULT 2 COMMENT 'Time range in months to calculating a customer''s risk',
PRIMARY KEY (`id`)
) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
+--
+-- Table structure for table `clientConsumptionQueue`
+--
+
+DROP TABLE IF EXISTS `clientConsumptionQueue`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `clientConsumptionQueue` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `params` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`params`)),
+ `queued` datetime NOT NULL DEFAULT current_timestamp(),
+ `printed` datetime DEFAULT NULL,
+ `status` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT '',
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Queue for client consumption PDF mailing';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
--
-- Table structure for table `clientContact`
--
@@ -24614,7 +23860,7 @@ CREATE TABLE `clientItemCategory` (
KEY `clientItemCategory_FK_1` (`itemCategoryFk`),
CONSTRAINT `clientItemCategory_FK` FOREIGN KEY (`clientFk`) REFERENCES `client` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `clientItemCategory_FK_1` FOREIGN KEY (`itemCategoryFk`) REFERENCES `itemCategory` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -24662,7 +23908,7 @@ CREATE TABLE `clientLog` (
KEY `userFk` (`userFk`),
CONSTRAINT `clientLog_ibfk_1` FOREIGN KEY (`originFk`) REFERENCES `client` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `clientLog_ibfk_2` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -24673,11 +23919,10 @@ DROP TABLE IF EXISTS `clientLost`;
/*!50001 DROP VIEW IF EXISTS `clientLost`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `clientLost` (
- `clientFk` tinyint NOT NULL,
- `lastShipped` tinyint NOT NULL,
- `notBuyingMonths` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `clientLost` AS SELECT
+ 1 AS `clientFk`,
+ 1 AS `lastShipped`,
+ 1 AS `notBuyingMonths` */;
SET character_set_client = @saved_cs_client;
--
@@ -24745,10 +23990,9 @@ DROP TABLE IF EXISTS `clientPhoneBook`;
/*!50001 DROP VIEW IF EXISTS `clientPhoneBook`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `clientPhoneBook` (
- `clientFk` tinyint NOT NULL,
- `phone` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `clientPhoneBook` AS SELECT
+ 1 AS `clientFk`,
+ 1 AS `phone` */;
SET character_set_client = @saved_cs_client;
--
@@ -24761,7 +24005,6 @@ DROP TABLE IF EXISTS `clientProtected`;
CREATE TABLE `clientProtected` (
`clientFk` int(11) NOT NULL,
`workerFk` int(10) unsigned NOT NULL,
- `isValidated__` tinyint(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`clientFk`),
KEY `clientProtected_fk2_idx` (`workerFk`),
CONSTRAINT `clientProtected_fk1` FOREIGN KEY (`clientFk`) REFERENCES `client` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
@@ -24895,7 +24138,7 @@ CREATE TABLE `cmr` (
CONSTRAINT `cmr_fk1` FOREIGN KEY (`ticketFk`) REFERENCES `ticket` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `cmr_fk2` FOREIGN KEY (`companyFk`) REFERENCES `company` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
CONSTRAINT `cmr_fk3` FOREIGN KEY (`addressToFk`) REFERENCES `address` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -24954,13 +24197,13 @@ CREATE TABLE `cmrConfig` (
/*!40101 SET character_set_client = @saved_cs_client */;
--
--- Table structure for table `cmr_expeditionPallet`
+-- Table structure for table `cmrPallet`
--
-DROP TABLE IF EXISTS `cmr_expeditionPallet`;
+DROP TABLE IF EXISTS `cmrPallet`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `cmr_expeditionPallet` (
+CREATE TABLE `cmrPallet` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`cmrFk` int(11) NOT NULL,
`expeditionPalletFk` int(11) NOT NULL,
@@ -24981,42 +24224,41 @@ DROP TABLE IF EXISTS `cmr_list`;
/*!50001 DROP VIEW IF EXISTS `cmr_list`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `cmr_list` (
- `cmrFk` tinyint NOT NULL,
- `ticketFk` tinyint NOT NULL,
- `truckPlate` tinyint NOT NULL,
- `observations` tinyint NOT NULL,
- `senderInstruccions` tinyint NOT NULL,
- `paymentInstruccions` tinyint NOT NULL,
- `specialAgreements` tinyint NOT NULL,
- `created` tinyint NOT NULL,
- `packagesList` tinyint NOT NULL,
- `clientName` tinyint NOT NULL,
- `clientPostalCode` tinyint NOT NULL,
- `clientStreet` tinyint NOT NULL,
- `clientCity` tinyint NOT NULL,
- `clientProvince` tinyint NOT NULL,
- `clientCountry` tinyint NOT NULL,
- `companyName` tinyint NOT NULL,
- `companyStreet` tinyint NOT NULL,
- `companyPostCode` tinyint NOT NULL,
- `companyCity` tinyint NOT NULL,
- `companyCountry` tinyint NOT NULL,
- `warehouseAddress` tinyint NOT NULL,
- `shipped` tinyint NOT NULL,
- `clientOficialName` tinyint NOT NULL,
- `supplierFk` tinyint NOT NULL,
- `carrierName` tinyint NOT NULL,
- `carrierStreet` tinyint NOT NULL,
- `carrierPostCode` tinyint NOT NULL,
- `carrierCity` tinyint NOT NULL,
- `carrierCountry` tinyint NOT NULL,
- `phone` tinyint NOT NULL,
- `mobile` tinyint NOT NULL,
- `addressFk` tinyint NOT NULL,
- `stamp` tinyint NOT NULL,
- `merchandiseDetail` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `cmr_list` AS SELECT
+ 1 AS `cmrFk`,
+ 1 AS `ticketFk`,
+ 1 AS `truckPlate`,
+ 1 AS `observations`,
+ 1 AS `senderInstruccions`,
+ 1 AS `paymentInstruccions`,
+ 1 AS `specialAgreements`,
+ 1 AS `created`,
+ 1 AS `packagesList`,
+ 1 AS `clientName`,
+ 1 AS `clientPostalCode`,
+ 1 AS `clientStreet`,
+ 1 AS `clientCity`,
+ 1 AS `clientProvince`,
+ 1 AS `clientCountry`,
+ 1 AS `companyName`,
+ 1 AS `companyStreet`,
+ 1 AS `companyPostCode`,
+ 1 AS `companyCity`,
+ 1 AS `companyCountry`,
+ 1 AS `warehouseAddress`,
+ 1 AS `shipped`,
+ 1 AS `clientOficialName`,
+ 1 AS `supplierFk`,
+ 1 AS `carrierName`,
+ 1 AS `carrierStreet`,
+ 1 AS `carrierPostCode`,
+ 1 AS `carrierCity`,
+ 1 AS `carrierCountry`,
+ 1 AS `phone`,
+ 1 AS `mobile`,
+ 1 AS `addressFk`,
+ 1 AS `stamp`,
+ 1 AS `merchandiseDetail` */;
SET character_set_client = @saved_cs_client;
--
@@ -25037,14 +24279,17 @@ CREATE TABLE `collection` (
`trainFk` int(11) NOT NULL DEFAULT 1,
`sectorFk` int(11) DEFAULT NULL,
`wagons` int(11) DEFAULT NULL,
+ `warehouseFk` smallint(6) unsigned NOT NULL DEFAULT 60,
PRIMARY KEY (`id`),
KEY `ticketCollection_idx` (`workerFk`),
KEY `collection_id2_idx` (`stateFk`),
KEY `collection_FK` (`itemPackingTypeFk`),
KEY `collectionTrain_Fk` (`trainFk`),
KEY `collectionSector_FK` (`sectorFk`),
+ KEY `collection_FK2` (`warehouseFk`),
CONSTRAINT `collectionSector_FK` FOREIGN KEY (`sectorFk`) REFERENCES `sector` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
CONSTRAINT `collectionTrain_Fk` FOREIGN KEY (`trainFk`) REFERENCES `train` (`id`) ON UPDATE CASCADE,
+ CONSTRAINT `collection_FK2` FOREIGN KEY (`warehouseFk`) REFERENCES `warehouse` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `collection_id2` FOREIGN KEY (`stateFk`) REFERENCES `state` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
CONSTRAINT `ticketCollection` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
@@ -25111,10 +24356,67 @@ CREATE TABLE `collectionColors` (
`shelve` int(11) NOT NULL DEFAULT 1,
`wagon` int(11) NOT NULL DEFAULT 1,
`trainFk` int(11) NOT NULL DEFAULT 1,
+ `rgb` char(7) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
+ UNIQUE KEY `collectionColors_UN` (`shelve`,`wagon`,`trainFk`),
KEY `collectionColors_FK` (`trainFk`),
CONSTRAINT `collectionColors_FK` FOREIGN KEY (`trainFk`) REFERENCES `train` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Recoge los colores para las baldas de las colecciones';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Recoge los colores para las baldas de las colecciones';
+/*!40101 SET character_set_client = @saved_cs_client */;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+DELIMITER ;;
+/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER vn.collectionColors_beforeInsert
+BEFORE INSERT
+ON collectionColors FOR EACH ROW
+BEGIN
+ CALL util.checkHex(NEW.rgb);
+END */;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+DELIMITER ;;
+/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `vn`.`collectionColors_beforeUpdate`
+ BEFORE UPDATE ON `collectionColors`
+ FOR EACH ROW
+BEGIN
+ CALL util.checkHex(NEW.rgb);
+END */;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+
+--
+-- Table structure for table `collectionHotbed`
+--
+
+DROP TABLE IF EXISTS `collectionHotbed`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `collectionHotbed` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `userFk` int(11) NOT NULL,
+ `created` timestamp NULL DEFAULT current_timestamp(),
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -25137,7 +24439,7 @@ CREATE TABLE `collectionVolumetry` (
KEY `collectionVolumetry_FK_1` (`trainFk`),
CONSTRAINT `collectionVolumetry_FK` FOREIGN KEY (`itemPackingTypeFk`) REFERENCES `itemPackingType` (`code`) ON UPDATE CASCADE,
CONSTRAINT `collectionVolumetry_FK_1` FOREIGN KEY (`trainFk`) REFERENCES `train` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -25190,7 +24492,7 @@ CREATE TABLE `company` (
`rgb` varchar(6) COLLATE utf8mb3_unicode_ci NOT NULL,
`email` varchar(30) COLLATE utf8mb3_unicode_ci NOT NULL,
`stamp` blob DEFAULT NULL,
- `created` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(),
+ `created` timestamp NOT NULL ON UPDATE current_timestamp(),
`clientFk` int(11) DEFAULT NULL,
`sage200Company` int(2) DEFAULT NULL,
`supplierAccountFk` mediumint(8) unsigned DEFAULT NULL,
@@ -25296,7 +24598,7 @@ CREATE TABLE `confectionType` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`description` varchar(45) COLLATE utf8mb3_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -25310,16 +24612,7 @@ CREATE TABLE `config` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`ochoa` int(10) unsigned NOT NULL,
`invoiceOutFk` int(11) DEFAULT 0,
- `bookFk__` int(11) DEFAULT 0,
- `serialAFk__` int(11) DEFAULT 0,
- `serialEFk__` int(11) DEFAULT 0,
- `serialRFk__` int(11) DEFAULT 0,
- `serialCFk__` int(11) DEFAULT 0,
- `serialHFk__` int(11) NOT NULL,
- `serialPFk__` int(11) DEFAULT 0,
- `serialTFk__` int(11) DEFAULT 0,
`inventoried` datetime DEFAULT NULL,
- `serialMFk__` int(11) DEFAULT 0,
`itemLog` int(11) DEFAULT 0,
`weekGoal` int(11) DEFAULT NULL,
`photosPath` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
@@ -25404,12 +24697,10 @@ CREATE TABLE `contratos_subvencion_270619` (
`nif` varchar(12) COLLATE utf8mb3_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
KEY `contratos_subvencion_270619_fk2_idx` (`cod_centroFk`),
- KEY `contratos_subvencion_270619_fk3_idx` (`CodContratoFk`),
KEY `contratos_subvencion_270619_fk1_idx` (`workerFk`),
CONSTRAINT `contratos_subvencion_270619_fk1` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`) ON UPDATE CASCADE,
- CONSTRAINT `contratos_subvencion_270619_fk2` FOREIGN KEY (`cod_centroFk`) REFERENCES `vn2008`.`payroll_centros` (`cod_centro`) ON UPDATE CASCADE,
- CONSTRAINT `contratos_subvencion_270619_fk3` FOREIGN KEY (`CodContratoFk`) REFERENCES `vn2008`.`payroll_contratos__` (`CodContrato`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Segun los informes de vida laboral aportados por la SS';
+ CONSTRAINT `contratos_subvencion_270619_fk2` FOREIGN KEY (`cod_centroFk`) REFERENCES `vn2008`.`payroll_centros` (`cod_centro`) ON UPDATE CASCADE
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Segun los informes de vida laboral aportados por la SS';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -25435,7 +24726,7 @@ CREATE TABLE `conveyor` (
PRIMARY KEY (`id`),
KEY `conveyor_fk1_idx` (`typeFk`),
CONSTRAINT `conveyor_fk1` FOREIGN KEY (`typeFk`) REFERENCES `conveyorType` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -25451,7 +24742,7 @@ CREATE TABLE `conveyorBuildingClass` (
`priority` int(11) NOT NULL DEFAULT 0,
`weightThreshold` int(11) NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Tipo de caja para el montaje de pallets';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Tipo de caja para el montaje de pallets';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -25469,7 +24760,7 @@ CREATE TABLE `conveyorConfig` (
`height` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `itemName_UNIQUE` (`itemName`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -25532,7 +24823,7 @@ CREATE TABLE `conveyorType` (
`description` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`color` int(11) NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -25710,7 +25001,7 @@ CREATE TABLE `cplusCorrectingType` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`description` varchar(45) COLLATE utf8mb3_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -25998,13 +25289,12 @@ DROP TABLE IF EXISTS `defaulter`;
/*!50001 DROP VIEW IF EXISTS `defaulter`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `defaulter` (
- `clientFk` tinyint NOT NULL,
- `created` tinyint NOT NULL,
- `amount` tinyint NOT NULL,
- `defaulterSinced` tinyint NOT NULL,
- `hasChanged` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `defaulter` AS SELECT
+ 1 AS `clientFk`,
+ 1 AS `created`,
+ 1 AS `amount`,
+ 1 AS `defaulterSinced`,
+ 1 AS `hasChanged` */;
SET character_set_client = @saved_cs_client;
--
@@ -26024,7 +25314,7 @@ CREATE TABLE `delivery` (
PRIMARY KEY (`id`),
KEY `delivery_FK` (`addressFk`),
CONSTRAINT `delivery_FK` FOREIGN KEY (`addressFk`) REFERENCES `address` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Informa de los datos geográficos y temporales de las entregas de los repartidores';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Informa de los datos geográficos y temporales de las entregas de los repartidores';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -26085,7 +25375,7 @@ CREATE TABLE `delivery_zip` (
KEY `postal_code_idx` (`postal_code`),
KEY `admin_name3_idx` (`admin_name3`),
KEY `admin_name2_idx` (`admin_name2`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -26103,9 +25393,6 @@ CREATE TABLE `department` (
`rgt` int(11) DEFAULT NULL,
`workerFk` int(10) unsigned DEFAULT NULL COMMENT 'Id_Trabajador es el jefe del departamento',
`companyFk` int(11) NOT NULL,
- `bossFk__` int(11) DEFAULT NULL,
- `x__` int(11) DEFAULT NULL,
- `y__` int(11) DEFAULT NULL,
`isProduction` tinyint(4) NOT NULL DEFAULT 0,
`isSelected` tinyint(1) NOT NULL DEFAULT 0,
`depth` int(11) NOT NULL DEFAULT 0,
@@ -26234,10 +25521,9 @@ DROP TABLE IF EXISTS `departmentTree`;
/*!50001 DROP VIEW IF EXISTS `departmentTree`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `departmentTree` (
- `id` tinyint NOT NULL,
- `dep` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `departmentTree` AS SELECT
+ 1 AS `id`,
+ 1 AS `dep` */;
SET character_set_client = @saved_cs_client;
--
@@ -26251,7 +25537,7 @@ CREATE TABLE `department_recalc` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`isChanged` tinyint(4) NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -26289,7 +25575,7 @@ CREATE TABLE `deviceLog` (
PRIMARY KEY (`id`),
KEY `deviceLog_FK` (`userFk`),
CONSTRAINT `deviceLog_FK` FOREIGN KEY (`userFk`) REFERENCES `worker` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -26317,7 +25603,7 @@ CREATE TABLE `deviceProduction` (
KEY `departmentFgn` (`departmentFk`),
CONSTRAINT `departmentFgn` FOREIGN KEY (`departmentFk`) REFERENCES `department` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
CONSTRAINT `deviceProductionModelsFgn` FOREIGN KEY (`modelFk`) REFERENCES `deviceProductionModels` (`code`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -26332,7 +25618,7 @@ CREATE TABLE `deviceProductionConfig` (
`isAllUsersallowed` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Permite que cualquier usuario pueda loguearse',
`isTractorHuntingMode` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Habilita el modo cazador para usuarios que no se han logeado un tractor para sacar',
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -26403,7 +25689,7 @@ CREATE TABLE `disabilityGrade` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Grados de discapacidad Modelo 145 IRPF',
`description` varchar(45) COLLATE utf8mb3_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -26561,7 +25847,7 @@ CREATE TABLE `dmsRecover` (
PRIMARY KEY (`id`),
KEY `ticketFk_idx` (`ticketFk`),
CONSTRAINT `ticketFk` FOREIGN KEY (`ticketFk`) REFERENCES `ticket` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -26701,7 +25987,7 @@ CREATE TABLE `duaIntrastat` (
KEY `duaIntrastat_fk2_idx` (`duaFk`),
CONSTRAINT `duaIntrastat_fk1` FOREIGN KEY (`intrastatFk`) REFERENCES `intrastat` (`id`) ON UPDATE CASCADE,
CONSTRAINT `duaIntrastat_fk2` FOREIGN KEY (`duaFk`) REFERENCES `dua` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -26746,7 +26032,7 @@ CREATE TABLE `duaTax` (
CONSTRAINT `duaTax_fk1` FOREIGN KEY (`duaFk`) REFERENCES `dua` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `duaTax_fk2` FOREIGN KEY (`supplierFk`) REFERENCES `supplier` (`id`) ON UPDATE CASCADE,
CONSTRAINT `duaTax_fk3` FOREIGN KEY (`taxClassFk`) REFERENCES `taxClass` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -26799,13 +26085,12 @@ DROP TABLE IF EXISTS `ediGenus`;
/*!50001 DROP VIEW IF EXISTS `ediGenus`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `ediGenus` (
- `id` tinyint NOT NULL,
- `latinGenusName` tinyint NOT NULL,
- `entried` tinyint NOT NULL,
- `dued` tinyint NOT NULL,
- `modified` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `ediGenus` AS SELECT
+ 1 AS `id`,
+ 1 AS `latinGenusName`,
+ 1 AS `entried`,
+ 1 AS `dued`,
+ 1 AS `modified` */;
SET character_set_client = @saved_cs_client;
--
@@ -26816,14 +26101,13 @@ DROP TABLE IF EXISTS `ediSpecie`;
/*!50001 DROP VIEW IF EXISTS `ediSpecie`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `ediSpecie` (
- `id` tinyint NOT NULL,
- `genusFk` tinyint NOT NULL,
- `latinSpeciesName` tinyint NOT NULL,
- `entried` tinyint NOT NULL,
- `dued` tinyint NOT NULL,
- `modified` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `ediSpecie` AS SELECT
+ 1 AS `id`,
+ 1 AS `genusFk`,
+ 1 AS `latinSpeciesName`,
+ 1 AS `entried`,
+ 1 AS `dued`,
+ 1 AS `modified` */;
SET character_set_client = @saved_cs_client;
--
@@ -26865,8 +26149,44 @@ CREATE TABLE `ektEntryAssign` (
UNIQUE KEY `ektEntryAssign_ix1` (`kop`,`sub`,`pro`),
KEY `ektEntryAssign_FK` (`addressFk`),
CONSTRAINT `ektEntryAssign_FK` FOREIGN KEY (`addressFk`) REFERENCES `address` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='define las condiciones para asignar entradas a los ekt';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='define las condiciones para asignar entradas a los ekt';
/*!40101 SET character_set_client = @saved_cs_client */;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+DELIMITER ;;
+/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER ektEntryAssign_afterInsert
+AFTER INSERT
+ON ektEntryAssign FOR EACH ROW
+ UPDATE entry SET reference = NEW.`ref` WHERE id = NEW.entryFk */;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+DELIMITER ;;
+/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER ektEntryAssign_afterUpdate
+AFTER UPDATE
+ON ektEntryAssign FOR EACH ROW
+ UPDATE entry SET reference = NEW.`ref` WHERE id = NEW.entryFk */;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
--
-- Temporary table structure for view `ektSubAddress`
@@ -26876,12 +26196,11 @@ DROP TABLE IF EXISTS `ektSubAddress`;
/*!50001 DROP VIEW IF EXISTS `ektSubAddress`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `ektSubAddress` (
- `sub` tinyint NOT NULL,
- `clientFk` tinyint NOT NULL,
- `nickname` tinyint NOT NULL,
- `addressFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `ektSubAddress` AS SELECT
+ 1 AS `sub`,
+ 1 AS `clientFk`,
+ 1 AS `nickname`,
+ 1 AS `addressFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -26896,7 +26215,7 @@ CREATE TABLE `emergencyMedia` (
`name` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`value` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'Table to save all emergency phones',
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -26941,7 +26260,7 @@ CREATE TABLE `entry` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`supplierFk` int(11) NOT NULL DEFAULT 644,
`dated` datetime NOT NULL,
- `ref` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
+ `invoiceNumber` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`isBooked` tinyint(1) NOT NULL DEFAULT 0,
`isExcludedFromAvailable` tinyint(1) NOT NULL DEFAULT 0,
`notes` longtext COLLATE utf8mb3_unicode_ci DEFAULT NULL,
@@ -26965,6 +26284,8 @@ CREATE TABLE `entry` (
`invoiceAmount` decimal(10,2) DEFAULT NULL,
`buyerFk` int(10) unsigned DEFAULT NULL,
`typeFk` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'Tipo de entrada',
+ `reference` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'Referencia para eti',
+ `ref` varchar(50) GENERATED ALWAYS AS (`invoiceNumber`) VIRTUAL COMMENT 'Columna virtual provisional para Salix',
PRIMARY KEY (`id`),
KEY `Id_Proveedor` (`supplierFk`),
KEY `Fecha` (`dated`),
@@ -27212,7 +26533,7 @@ CREATE TABLE `entryLog` (
KEY `entryLog_ibfk_2` (`userFk`),
CONSTRAINT `entryLog_ibfk_1` FOREIGN KEY (`originFk`) REFERENCES `entry` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `entryLog_ibfk_2` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -27232,24 +26553,7 @@ CREATE TABLE `entryObservation` (
KEY `observationType_id_observationTypeFk` (`observationTypeFk`),
CONSTRAINT `entry_id_entryFk` FOREIGN KEY (`entryFk`) REFERENCES `entry` (`id`),
CONSTRAINT `observationType_id_observationTypeFk` FOREIGN KEY (`observationTypeFk`) REFERENCES `observationType` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `entrySplit__`
---
-
-DROP TABLE IF EXISTS `entrySplit__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `entrySplit__` (
- `receivedFk` int(11) NOT NULL,
- `delayedFk` int(11) NOT NULL,
- PRIMARY KEY (`receivedFk`,`delayedFk`),
- KEY `entrySplit_fk2_idx` (`delayedFk`),
- CONSTRAINT `entrySplit_fk1` FOREIGN KEY (`receivedFk`) REFERENCES `entry` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT `entrySplit_fk2` FOREIGN KEY (`delayedFk`) REFERENCES `entry` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -27295,26 +26599,6 @@ CREATE TABLE `envialiaAgency` (
UNIQUE KEY `id_UNIQUE` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `vn`.`envialiaAgency_bd`
- BEFORE DELETE ON `envialiaAgency`
- FOR EACH ROW
-BEGIN
- CALL util.debugAdd("envialiaAgency", OLD.id);
-END */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
--
-- Table structure for table `envialiaCity`
@@ -27331,28 +26615,8 @@ CREATE TABLE `envialiaCity` (
PRIMARY KEY (`id`),
KEY `agencyFk` (`agencyFk`),
KEY `postalCode` (`postalCode`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `vn`.`envialiaCity_bd`
- BEFORE DELETE ON `envialiaCity`
- FOR EACH ROW
-BEGIN
- CALL util.debugAdd("envialiaCity", OLD.id);
-END */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
--
-- Table structure for table `envialiaConfig`
@@ -27387,7 +26651,7 @@ CREATE TABLE `errorLogApp` (
`date` datetime DEFAULT NULL,
`workerFk` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Guarda un registro de errores e la app de almacén';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Guarda un registro de errores e la app de almacén';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -27412,30 +26676,7 @@ CREATE TABLE `errorProduction` (
`hourWorked` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`dated` date DEFAULT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `errorProduction__`
---
-
-DROP TABLE IF EXISTS `errorProduction__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `errorProduction__` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `userFk` int(11) DEFAULT NULL,
- `firstname` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `lastname` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `rol` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `ticketNumber` int(11) DEFAULT NULL,
- `error` int(11) DEFAULT NULL,
- `ratio` double DEFAULT NULL,
- `volume` double DEFAULT NULL,
- `month` int(11) DEFAULT NULL,
- `year` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -27459,7 +26700,7 @@ CREATE TABLE `erte` (
`saturday` tinyint(1) DEFAULT NULL,
`sunday` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -27470,11 +26711,24 @@ DROP TABLE IF EXISTS `exchangeInsuranceEntry`;
/*!50001 DROP VIEW IF EXISTS `exchangeInsuranceEntry`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `exchangeInsuranceEntry` (
- `dated` tinyint NOT NULL,
- `Dolares` tinyint NOT NULL,
- `rate` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `exchangeInsuranceEntry` AS SELECT
+ 1 AS `dated`,
+ 1 AS `Dolares`,
+ 1 AS `rate` */;
+SET character_set_client = @saved_cs_client;
+
+--
+-- Temporary table structure for view `exchangeInsuranceIn`
+--
+
+DROP TABLE IF EXISTS `exchangeInsuranceIn`;
+/*!50001 DROP VIEW IF EXISTS `exchangeInsuranceIn`*/;
+SET @saved_cs_client = @@character_set_client;
+SET character_set_client = utf8;
+/*!50001 CREATE VIEW `exchangeInsuranceIn` AS SELECT
+ 1 AS `dated`,
+ 1 AS `amount`,
+ 1 AS `rate` */;
SET character_set_client = @saved_cs_client;
--
@@ -27485,11 +26739,28 @@ DROP TABLE IF EXISTS `exchangeInsuranceOut`;
/*!50001 DROP VIEW IF EXISTS `exchangeInsuranceOut`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `exchangeInsuranceOut` (
- `received` tinyint NOT NULL,
- `divisa` tinyint NOT NULL,
- `rate` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `exchangeInsuranceOut` AS SELECT
+ 1 AS `received`,
+ 1 AS `divisa`,
+ 1 AS `rate` */;
+SET character_set_client = @saved_cs_client;
+
+--
+-- Temporary table structure for view `exchangeReportSourcePrevious`
+--
+
+DROP TABLE IF EXISTS `exchangeReportSourcePrevious`;
+/*!50001 DROP VIEW IF EXISTS `exchangeReportSourcePrevious`*/;
+SET @saved_cs_client = @@character_set_client;
+SET character_set_client = utf8;
+/*!50001 CREATE VIEW `exchangeReportSourcePrevious` AS SELECT
+ 1 AS `dated`,
+ 1 AS `amountIn`,
+ 1 AS `rateIn`,
+ 1 AS `amountOut`,
+ 1 AS `rateOut`,
+ 1 AS `amountEntry`,
+ 1 AS `rateEntry` */;
SET character_set_client = @saved_cs_client;
--
@@ -27504,7 +26775,7 @@ CREATE TABLE `excuse` (
`txt` varchar(255) CHARACTER SET latin1 NOT NULL,
`date` datetime NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -27518,13 +26789,10 @@ CREATE TABLE `expedition` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`agencyModeFk` int(11) NOT NULL,
`ticketFk` int(10) NOT NULL,
- `isBox` int(11) DEFAULT 1 COMMENT 'Este campo realmente en un campo itemFk, haciendo referencia al artículo que nos va a facturar el proveedor de transporte.\nSe debería llamar freightItemFk',
+ `freightItemFk` int(11) DEFAULT 1 COMMENT 'itemFk del artículo que nos va a facturar el proveedor de transporte.',
`created` timestamp NULL DEFAULT current_timestamp(),
- `isRefund__` bit(1) DEFAULT b'0' COMMENT 'Deprecado 01/06/2022',
- `isPickUp__` bit(1) DEFAULT b'0' COMMENT 'Deprecado 01/06/2022',
`itemFk` int(11) DEFAULT NULL COMMENT 'Si es necesario el itemFk del cubo, se obtiene mediante packagingFk, join packing.itemFk',
`counter` smallint(5) unsigned NOT NULL,
- `checked__` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'Deprecado 01/06/2022',
`workerFk` int(10) unsigned DEFAULT NULL,
`externalId` varchar(20) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`packagingFk` varchar(10) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
@@ -27532,9 +26800,10 @@ CREATE TABLE `expedition` (
`hostFk` varchar(6) COLLATE utf8mb3_unicode_ci NOT NULL,
`stateTypeFk` int(11) DEFAULT NULL COMMENT 'Ultimo estado de la expedicion',
`hasNewRoute` bit(1) NOT NULL DEFAULT b'0',
+ `isBox` int(11) GENERATED ALWAYS AS (`freightItemFk`) VIRTUAL COMMENT 'Columna virtual provisional para Salix',
PRIMARY KEY (`id`),
KEY `index1` (`agencyModeFk`),
- KEY `index2` (`isBox`),
+ KEY `index2` (`freightItemFk`),
KEY `index3` (`created`),
KEY `index4` (`ticketFk`),
KEY `expedition_fk3_idx` (`packagingFk`),
@@ -27562,12 +26831,10 @@ DELIMITER ;;
BEFORE INSERT ON `expedition`
FOR EACH ROW
BEGIN
-
DECLARE intcounter INT;
-
DECLARE vShipFk INT;
- IF NEW.isBox > 0 THEN
+ IF NEW.freightItemFk IS NOT NULL THEN
UPDATE ticket SET packages = nz(packages) + 1 WHERE id = NEW.ticketFk;
@@ -27582,14 +26849,6 @@ BEGIN
SET NEW.`counter` = intcounter;
END IF;
-
-/*
- SELECT shipFk INTO vShipFk FROM stowaway WHERE id = NEW.ticketFk;
-
- IF vShipFk THEN
- CALL stowaway_unboarding(vShipFk, NEW.ticketFk);
- END IF;
-*/
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
@@ -27638,7 +26897,7 @@ DELIMITER ;;
BEGIN
UPDATE ticket t
SET packages = (SELECT COUNT(counter)-1
- FROM expedition e WHERE e.ticketFk = OLD.ticketFk and e.isBox)
+ FROM expedition e WHERE e.ticketFk = OLD.ticketFk and e.freightItemFk)
WHERE t.id = OLD.ticketFk;
END */;;
@@ -27672,21 +26931,55 @@ DROP TABLE IF EXISTS `expeditionCommon`;
/*!50001 DROP VIEW IF EXISTS `expeditionCommon`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `expeditionCommon` (
- `truckFk` tinyint NOT NULL,
- `etd` tinyint NOT NULL,
- `description` tinyint NOT NULL,
- `palletFk` tinyint NOT NULL,
- `routeFk` tinyint NOT NULL,
- `scanFk` tinyint NOT NULL,
- `expeditionFk` tinyint NOT NULL,
- `expeditionTruckFk` tinyint NOT NULL,
- `warehouseFk` tinyint NOT NULL,
- `lastPacked` tinyint NOT NULL,
- `ticketFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `expeditionCommon` AS SELECT
+ 1 AS `truckFk`,
+ 1 AS `etd`,
+ 1 AS `description`,
+ 1 AS `palletFk`,
+ 1 AS `routeFk`,
+ 1 AS `scanFk`,
+ 1 AS `expeditionFk`,
+ 1 AS `expeditionTruckFk`,
+ 1 AS `warehouseFk`,
+ 1 AS `lastPacked`,
+ 1 AS `ticketFk` */;
SET character_set_client = @saved_cs_client;
+--
+-- Table structure for table `expeditionMistake`
+--
+
+DROP TABLE IF EXISTS `expeditionMistake`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `expeditionMistake` (
+ `expeditionFk` int(11) NOT NULL,
+ `workerFk` int(10) unsigned NOT NULL COMMENT 'Quien marca el error',
+ `typeFk` varchar(15) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `created` timestamp NOT NULL DEFAULT current_timestamp(),
+ PRIMARY KEY (`expeditionFk`),
+ KEY `expeditionMistake_FK_1` (`workerFk`),
+ KEY `expeditionMistake_FK_2` (`typeFk`),
+ CONSTRAINT `expeditionMistake_FK` FOREIGN KEY (`expeditionFk`) REFERENCES `expedition` (`id`) ON UPDATE CASCADE,
+ CONSTRAINT `expeditionMistake_FK_1` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`) ON UPDATE CASCADE,
+ CONSTRAINT `expeditionMistake_FK_2` FOREIGN KEY (`typeFk`) REFERENCES `expeditionMistakeType` (`code`) ON UPDATE CASCADE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Errores de encajadores';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `expeditionMistakeType`
+--
+
+DROP TABLE IF EXISTS `expeditionMistakeType`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `expeditionMistakeType` (
+ `code` varchar(15) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `description` varchar(45) COLLATE utf8mb3_unicode_ci NOT NULL,
+ PRIMARY KEY (`code`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
--
-- Table structure for table `expeditionPallet`
--
@@ -27733,37 +27026,25 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER vn.expeditionPallet_beforeDelete
-BEFORE DELETE
-ON expeditionPallet FOR EACH ROW
-BEGIN
- DECLARE vIndex INT DEFAULT INSTR(USER(), '@');
- CALL util.debugAdd('expeditionPallet_deleted', CONCAT(OLD.id,' ', vn.getWorkerCode()));
+--
+-- Temporary table structure for view `expeditionPallet_Print`
+--
- INSERT INTO util.debug(connectionId, `user`, host, variable, value)
- SELECT CONNECTION_ID(),
- LEFT(USER(), vIndex - 1),
- RIGHT(USER(), CHAR_LENGTH(USER()) - vIndex),
- 'expeditionScan_deleted',
- es.id
- FROM vn.expeditionScan es
- WHERE es.palletFk = OLD.id;
-END */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
+DROP TABLE IF EXISTS `expeditionPallet_Print`;
+/*!50001 DROP VIEW IF EXISTS `expeditionPallet_Print`*/;
+SET @saved_cs_client = @@character_set_client;
+SET character_set_client = utf8;
+/*!50001 CREATE VIEW `expeditionPallet_Print` AS SELECT
+ 1 AS `truck`,
+ 1 AS `routeFk`,
+ 1 AS `zone`,
+ 1 AS `eti`,
+ 1 AS `palletFk`,
+ 1 AS `isMatch`,
+ 1 AS `warehouseFk`,
+ 1 AS `nombreDia` */;
+SET character_set_client = @saved_cs_client;
--
-- Temporary table structure for view `expeditionRoute_Monitor`
@@ -27773,14 +27054,13 @@ DROP TABLE IF EXISTS `expeditionRoute_Monitor`;
/*!50001 DROP VIEW IF EXISTS `expeditionRoute_Monitor`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `expeditionRoute_Monitor` (
- `routeFk` tinyint NOT NULL,
- `tickets` tinyint NOT NULL,
- `expeditions` tinyint NOT NULL,
- `scanned` tinyint NOT NULL,
- `lastPacked` tinyint NOT NULL,
- `created` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `expeditionRoute_Monitor` AS SELECT
+ 1 AS `routeFk`,
+ 1 AS `tickets`,
+ 1 AS `expeditions`,
+ 1 AS `scanned`,
+ 1 AS `lastPacked`,
+ 1 AS `created` */;
SET character_set_client = @saved_cs_client;
--
@@ -27791,14 +27071,13 @@ DROP TABLE IF EXISTS `expeditionRoute_freeTickets`;
/*!50001 DROP VIEW IF EXISTS `expeditionRoute_freeTickets`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `expeditionRoute_freeTickets` (
- `routeFk` tinyint NOT NULL,
- `ticket` tinyint NOT NULL,
- `code` tinyint NOT NULL,
- `almacen` tinyint NOT NULL,
- `updated` tinyint NOT NULL,
- `parkingCode` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `expeditionRoute_freeTickets` AS SELECT
+ 1 AS `routeFk`,
+ 1 AS `ticket`,
+ 1 AS `code`,
+ 1 AS `almacen`,
+ 1 AS `updated`,
+ 1 AS `parkingCode` */;
SET character_set_client = @saved_cs_client;
--
@@ -27840,28 +27119,6 @@ BEGIN
SET NEW.workerFk = vn.getUser();
-END */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER vn.expeditionScan_afterDelete
-AFTER DELETE
-ON expeditionScan FOR EACH ROW
-BEGIN
-
- CALL util.debugAdd('expeditionScan_deleted', CONCAT(OLD.id,' ', vn.getWorkerCode()));
-
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
@@ -27877,17 +27134,16 @@ DROP TABLE IF EXISTS `expeditionScan_Monitor`;
/*!50001 DROP VIEW IF EXISTS `expeditionScan_Monitor`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `expeditionScan_Monitor` (
- `truckFk` tinyint NOT NULL,
- `ETD` tinyint NOT NULL,
- `description` tinyint NOT NULL,
- `palletFk` tinyint NOT NULL,
- `position` tinyint NOT NULL,
- `built` tinyint NOT NULL,
- `scanFk` tinyint NOT NULL,
- `expeditionFk` tinyint NOT NULL,
- `scanned` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `expeditionScan_Monitor` AS SELECT
+ 1 AS `truckFk`,
+ 1 AS `ETD`,
+ 1 AS `description`,
+ 1 AS `palletFk`,
+ 1 AS `position`,
+ 1 AS `built`,
+ 1 AS `scanFk`,
+ 1 AS `expeditionFk`,
+ 1 AS `scanned` */;
SET character_set_client = @saved_cs_client;
--
@@ -27980,22 +27236,21 @@ DROP TABLE IF EXISTS `expeditionSticker`;
/*!50001 DROP VIEW IF EXISTS `expeditionSticker`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `expeditionSticker` (
- `expeditionFk` tinyint NOT NULL,
- `ticketFk` tinyint NOT NULL,
- `addressFk` tinyint NOT NULL,
- `clientFk` tinyint NOT NULL,
- `street` tinyint NOT NULL,
- `postalCode` tinyint NOT NULL,
- `city` tinyint NOT NULL,
- `nickname` tinyint NOT NULL,
- `routeFk` tinyint NOT NULL,
- `beachFk` tinyint NOT NULL,
- `zona` tinyint NOT NULL,
- `province` tinyint NOT NULL,
- `phone` tinyint NOT NULL,
- `workerCode` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `expeditionSticker` AS SELECT
+ 1 AS `expeditionFk`,
+ 1 AS `ticketFk`,
+ 1 AS `addressFk`,
+ 1 AS `clientFk`,
+ 1 AS `street`,
+ 1 AS `postalCode`,
+ 1 AS `city`,
+ 1 AS `nickname`,
+ 1 AS `routeFk`,
+ 1 AS `beachFk`,
+ 1 AS `zona`,
+ 1 AS `province`,
+ 1 AS `phone`,
+ 1 AS `workerCode` */;
SET character_set_client = @saved_cs_client;
--
@@ -28006,12 +27261,11 @@ DROP TABLE IF EXISTS `expeditionTicket_NoBoxes`;
/*!50001 DROP VIEW IF EXISTS `expeditionTicket_NoBoxes`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `expeditionTicket_NoBoxes` (
- `ticketFk` tinyint NOT NULL,
- `warehouseFk` tinyint NOT NULL,
- `routeFk` tinyint NOT NULL,
- `description` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `expeditionTicket_NoBoxes` AS SELECT
+ 1 AS `ticketFk`,
+ 1 AS `warehouseFk`,
+ 1 AS `routeFk`,
+ 1 AS `description` */;
SET character_set_client = @saved_cs_client;
--
@@ -28022,14 +27276,13 @@ DROP TABLE IF EXISTS `expeditionTimeExpended`;
/*!50001 DROP VIEW IF EXISTS `expeditionTimeExpended`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `expeditionTimeExpended` (
- `ticketFk` tinyint NOT NULL,
- `started` tinyint NOT NULL,
- `finished` tinyint NOT NULL,
- `cajas` tinyint NOT NULL,
- `code` tinyint NOT NULL,
- `warehouseFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `expeditionTimeExpended` AS SELECT
+ 1 AS `ticketFk`,
+ 1 AS `started`,
+ 1 AS `finished`,
+ 1 AS `cajas`,
+ 1 AS `code`,
+ 1 AS `warehouseFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -28103,18 +27356,17 @@ DROP TABLE IF EXISTS `expeditionTruck_Control`;
/*!50001 DROP VIEW IF EXISTS `expeditionTruck_Control`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `expeditionTruck_Control` (
- `id` tinyint NOT NULL,
- `ETD` tinyint NOT NULL,
- `description` tinyint NOT NULL,
- `ticketsSinBultos` tinyint NOT NULL,
- `pallets` tinyint NOT NULL,
- `routes` tinyint NOT NULL,
- `scans` tinyint NOT NULL,
- `expeditions` tinyint NOT NULL,
- `fallos` tinyint NOT NULL,
- `lastPacked` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `expeditionTruck_Control` AS SELECT
+ 1 AS `id`,
+ 1 AS `ETD`,
+ 1 AS `description`,
+ 1 AS `ticketsSinBultos`,
+ 1 AS `pallets`,
+ 1 AS `routes`,
+ 1 AS `scans`,
+ 1 AS `expeditions`,
+ 1 AS `fallos`,
+ 1 AS `lastPacked` */;
SET character_set_client = @saved_cs_client;
--
@@ -28125,17 +27377,16 @@ DROP TABLE IF EXISTS `expeditionTruck_Control_Detail`;
/*!50001 DROP VIEW IF EXISTS `expeditionTruck_Control_Detail`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `expeditionTruck_Control_Detail` (
- `id` tinyint NOT NULL,
- `ETD` tinyint NOT NULL,
- `destino` tinyint NOT NULL,
- `pallet` tinyint NOT NULL,
- `routes` tinyint NOT NULL,
- `scans` tinyint NOT NULL,
- `destinos` tinyint NOT NULL,
- `fallos` tinyint NOT NULL,
- `lastPacked` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `expeditionTruck_Control_Detail` AS SELECT
+ 1 AS `id`,
+ 1 AS `ETD`,
+ 1 AS `destino`,
+ 1 AS `pallet`,
+ 1 AS `routes`,
+ 1 AS `scans`,
+ 1 AS `destinos`,
+ 1 AS `fallos`,
+ 1 AS `lastPacked` */;
SET character_set_client = @saved_cs_client;
--
@@ -28146,18 +27397,17 @@ DROP TABLE IF EXISTS `expeditionTruck_Control_Detail_Pallet`;
/*!50001 DROP VIEW IF EXISTS `expeditionTruck_Control_Detail_Pallet`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `expeditionTruck_Control_Detail_Pallet` (
- `id` tinyint NOT NULL,
- `ETD` tinyint NOT NULL,
- `destino` tinyint NOT NULL,
- `pallet` tinyint NOT NULL,
- `route` tinyint NOT NULL,
- `scans` tinyint NOT NULL,
- `destinos` tinyint NOT NULL,
- `fallos` tinyint NOT NULL,
- `expeditionTruckFk` tinyint NOT NULL,
- `lastPacked` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `expeditionTruck_Control_Detail_Pallet` AS SELECT
+ 1 AS `id`,
+ 1 AS `ETD`,
+ 1 AS `destino`,
+ 1 AS `pallet`,
+ 1 AS `route`,
+ 1 AS `scans`,
+ 1 AS `destinos`,
+ 1 AS `fallos`,
+ 1 AS `expeditionTruckFk`,
+ 1 AS `lastPacked` */;
SET character_set_client = @saved_cs_client;
--
@@ -28175,25 +27425,6 @@ CREATE TABLE `expence` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
---
--- Table structure for table `expence__`
---
-
-DROP TABLE IF EXISTS `expence__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `expence__` (
- `id` varchar(10) NOT NULL,
- `taxTypeFk` tinyint(4) NOT NULL,
- `name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `isConbase` tinyint(4) NOT NULL DEFAULT 1,
- `isWithheld` tinyint(4) NOT NULL DEFAULT 0,
- `isForSale` tinyint(4) NOT NULL DEFAULT 0,
- PRIMARY KEY (`id`,`taxTypeFk`),
- KEY `iva_tipo_id` (`taxTypeFk`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
--
-- Temporary table structure for view `firstTicketShipped`
--
@@ -28202,10 +27433,9 @@ DROP TABLE IF EXISTS `firstTicketShipped`;
/*!50001 DROP VIEW IF EXISTS `firstTicketShipped`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `firstTicketShipped` (
- `shipped` tinyint NOT NULL,
- `clientFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `firstTicketShipped` AS SELECT
+ 1 AS `shipped`,
+ 1 AS `clientFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -28216,14 +27446,13 @@ DROP TABLE IF EXISTS `floraHollandBuyedItems`;
/*!50001 DROP VIEW IF EXISTS `floraHollandBuyedItems`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `floraHollandBuyedItems` (
- `itemFk` tinyint NOT NULL,
- `longName` tinyint NOT NULL,
- `quantity` tinyint NOT NULL,
- `buyingValue` tinyint NOT NULL,
- `landed` tinyint NOT NULL,
- `companyFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `floraHollandBuyedItems` AS SELECT
+ 1 AS `itemFk`,
+ 1 AS `longName`,
+ 1 AS `quantity`,
+ 1 AS `buyingValue`,
+ 1 AS `landed`,
+ 1 AS `companyFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -28237,20 +27466,14 @@ CREATE TABLE `floramondoConfig` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nextLanded` datetime DEFAULT NULL,
`warehouseInFk` smallint(6) unsigned DEFAULT NULL,
- `warehouseOutFk__` smallint(6) unsigned DEFAULT NULL,
- `agencyModeFk__` int(11) DEFAULT NULL,
`MaxLatestDeliveryHour` int(11) DEFAULT NULL,
`MaxLatestOrderHour` int(11) DEFAULT 12 COMMENT 'Hora máxima para aceptar pedidos hoy',
`LastUpdated` datetime DEFAULT NULL,
`itemMaxSize` int(11) DEFAULT NULL COMMENT 'tamaño maximo de los articulos a mostrar',
PRIMARY KEY (`id`),
KEY `floramondoConfigWarehouseIn_idx` (`warehouseInFk`),
- KEY `floramondoConfigWarehouseOut_idx` (`warehouseOutFk__`),
- KEY `floramondoConfigAgencyModeFk_idx` (`agencyModeFk__`),
- CONSTRAINT `floramondoConfigAgencyModeFk` FOREIGN KEY (`agencyModeFk__`) REFERENCES `agencyMode` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
- CONSTRAINT `floramondoConfigWarehouseInFk` FOREIGN KEY (`warehouseInFk`) REFERENCES `warehouse` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
- CONSTRAINT `floramondoConfigWarehouseOutFk` FOREIGN KEY (`warehouseOutFk__`) REFERENCES `warehouse` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+ CONSTRAINT `floramondoConfigWarehouseInFk` FOREIGN KEY (`warehouseInFk`) REFERENCES `warehouse` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -28273,20 +27496,6 @@ DELIMITER ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
---
--- Table structure for table `floramondoNotOfferDay__`
---
-
-DROP TABLE IF EXISTS `floramondoNotOfferDay__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `floramondoNotOfferDay__` (
- `dated` date NOT NULL,
- `warehouseFk` int(11) NOT NULL DEFAULT 60,
- PRIMARY KEY (`dated`,`warehouseFk`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='no muestra oferta en floramondo para ese dia y almacen';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
--
-- Table structure for table `fuelType`
--
@@ -28300,7 +27509,7 @@ CREATE TABLE `fuelType` (
`code` varchar(45) COLLATE utf8mb3_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `code_UNIQUE` (`code`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -28315,7 +27524,7 @@ CREATE TABLE `gateArea` (
`name` varchar(45) COLLATE utf8mb3_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name_UNIQUE` (`name`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -28351,7 +27560,7 @@ CREATE TABLE `genericAllocation` (
KEY `genericAllocation_longName_IDX` (`longName`) USING BTREE,
KEY `genericAllocation_size_IDX` (`size`) USING BTREE,
CONSTRAINT `genericAllocation_FK` FOREIGN KEY (`itemFk`) REFERENCES `item` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Almacena los filtros para asignar códigos genéricos a los items';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Almacena los filtros para asignar códigos genéricos a los items';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -28387,25 +27596,7 @@ CREATE TABLE `glsConfig` (
`refund` int(1) DEFAULT NULL,
`weight` int(1) DEFAULT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `glsExpedition__`
---
-
-DROP TABLE IF EXISTS `glsExpedition__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `glsExpedition__` (
- `expeditionFk` int(11) NOT NULL,
- `barcode` bigint(20) unsigned DEFAULT NULL,
- `uid` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `codexp` int(11) DEFAULT NULL,
- `created` timestamp NOT NULL DEFAULT current_timestamp(),
- PRIMARY KEY (`expeditionFk`),
- CONSTRAINT `glsInfo_FK` FOREIGN KEY (`expeditionFk`) REFERENCES `expedition` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -28458,30 +27649,6 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `vn`.`greuge_beforeUpdate`
- BEFORE UPDATE ON `greuge`
- FOR EACH ROW
-BEGIN
- DECLARE vMaxDate DATETIME DEFAULT TIMESTAMPADD(YEAR,1,util.VN_CURDATE());
-
- IF NEW.shipped > vMaxDate THEN
- SET NEW.shipped = vMaxDate;
- END IF;
-END */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
--
-- Table structure for table `greugeConfig`
@@ -28527,8 +27694,6 @@ CREATE TABLE `host` (
`workerFk` int(10) unsigned DEFAULT NULL,
`windowsSerial` varchar(40) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`printerFk` tinyint(3) unsigned DEFAULT NULL,
- `itemPackingTypeFk__` varchar(1) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `packingSite__` tinyint(3) unsigned DEFAULT NULL,
`warehouseFk` smallint(5) unsigned DEFAULT 60,
`companyFk` smallint(5) unsigned DEFAULT 442,
`bankFk` int(11) DEFAULT 13,
@@ -28539,17 +27704,15 @@ CREATE TABLE `host` (
UNIQUE KEY `host_UN` (`code`),
KEY `configHost_FK_3` (`companyFk`),
KEY `configHost_FK` (`printerFk`),
- KEY `configHost_FK_1` (`itemPackingTypeFk__`),
KEY `configHost_FK_2` (`warehouseFk`),
KEY `configHost_FK_4` (`bankFk`),
KEY `configHost_FK_5` (`workerFk`),
CONSTRAINT `configHost_FK` FOREIGN KEY (`printerFk`) REFERENCES `printer` (`id`) ON UPDATE CASCADE,
- CONSTRAINT `configHost_FK_1` FOREIGN KEY (`itemPackingTypeFk__`) REFERENCES `itemPackingType` (`code`) ON UPDATE CASCADE,
CONSTRAINT `configHost_FK_2` FOREIGN KEY (`warehouseFk`) REFERENCES `warehouse` (`id`) ON UPDATE CASCADE,
CONSTRAINT `configHost_FK_3` FOREIGN KEY (`companyFk`) REFERENCES `company` (`id`) ON UPDATE CASCADE,
CONSTRAINT `configHost_FK_4` FOREIGN KEY (`bankFk`) REFERENCES `accounting` (`id`) ON UPDATE CASCADE,
CONSTRAINT `configHost_FK_5` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -28580,12 +27743,12 @@ DROP TABLE IF EXISTS `improvedGeneralLog`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `improvedGeneralLog` (
- `user` char(128) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
- `db` char(64) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
- `tables` char(64) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
- `type` set('Select','Insert','Update','Delete') COLLATE utf8mb3_unicode_ci DEFAULT NULL,
+ `user` char(128) NOT NULL DEFAULT '',
+ `db` char(64) NOT NULL DEFAULT '',
+ `tables` char(64) NOT NULL DEFAULT '',
+ `type` set('Select','Insert','Update','Delete') DEFAULT NULL,
PRIMARY KEY (`user`,`db`,`tables`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -28596,12 +27759,12 @@ DROP TABLE IF EXISTS `improvedGeneralLogProcedures`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `improvedGeneralLogProcedures` (
- `user` char(128) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
- `db` varchar(250) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
- `routine` char(64) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
- `type` enum('FUNCTION','PROCEDURE') COLLATE utf8mb3_unicode_ci NOT NULL,
+ `user` char(128) NOT NULL DEFAULT '',
+ `db` varchar(250) NOT NULL DEFAULT '',
+ `routine` char(64) NOT NULL DEFAULT '',
+ `type` enum('FUNCTION','PROCEDURE') NOT NULL,
PRIMARY KEY (`user`,`db`,`routine`,`type`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -28665,10 +27828,9 @@ DROP TABLE IF EXISTS `inkL10n`;
/*!50001 DROP VIEW IF EXISTS `inkL10n`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `inkL10n` (
- `id` tinyint NOT NULL,
- `name` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `inkL10n` AS SELECT
+ 1 AS `id`,
+ 1 AS `name` */;
SET character_set_client = @saved_cs_client;
--
@@ -28681,7 +27843,6 @@ DROP TABLE IF EXISTS `intrastat`;
CREATE TABLE `intrastat` (
`id` int(8) unsigned zerofill NOT NULL,
`description` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `import__` tinyint(4) NOT NULL DEFAULT 0,
`taxClassFk` tinyint(3) unsigned NOT NULL DEFAULT 2,
`taxCodeFk` tinyint(2) unsigned NOT NULL DEFAULT 64,
PRIMARY KEY (`id`),
@@ -28719,7 +27880,7 @@ CREATE TABLE `inventoryFailure` (
CONSTRAINT `inventoryFailure_fk3` FOREIGN KEY (`guiltyFk`) REFERENCES `worker` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `inventoryFailure_fk4` FOREIGN KEY (`warehouseFk`) REFERENCES `warehouse` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `inventoryFailure_fk5` FOREIGN KEY (`causeFk`) REFERENCES `inventoryFailureCause` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -28733,7 +27894,7 @@ CREATE TABLE `inventoryFailureCause` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`description` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -28770,16 +27931,15 @@ DROP TABLE IF EXISTS `invoiceCorrectionDataSource`;
/*!50001 DROP VIEW IF EXISTS `invoiceCorrectionDataSource`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `invoiceCorrectionDataSource` (
- `itemFk` tinyint NOT NULL,
- `quantity` tinyint NOT NULL,
- `concept` tinyint NOT NULL,
- `price` tinyint NOT NULL,
- `discount` tinyint NOT NULL,
- `refFk` tinyint NOT NULL,
- `saleFk` tinyint NOT NULL,
- `shipped` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `invoiceCorrectionDataSource` AS SELECT
+ 1 AS `itemFk`,
+ 1 AS `quantity`,
+ 1 AS `concept`,
+ 1 AS `price`,
+ 1 AS `discount`,
+ 1 AS `refFk`,
+ 1 AS `saleFk`,
+ 1 AS `shipped` */;
SET character_set_client = @saved_cs_client;
--
@@ -28794,7 +27954,7 @@ CREATE TABLE `invoiceCorrectionType` (
`description` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `description_UNIQUE` (`description`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -29129,25 +28289,6 @@ CREATE TABLE `invoiceInIntrastat` (
) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
---
--- Table structure for table `invoiceInIntrastat__`
---
-
-DROP TABLE IF EXISTS `invoiceInIntrastat__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `invoiceInIntrastat__` (
- `invoiceInFk` mediumint(8) unsigned NOT NULL,
- `intrastatFk` int(8) unsigned zerofill NOT NULL,
- `amount` decimal(10,2) NOT NULL,
- PRIMARY KEY (`invoiceInFk`,`intrastatFk`),
- KEY `Codintrastat` (`intrastatFk`),
- KEY `recibida_id` (`invoiceInFk`),
- CONSTRAINT `invoiceInIntrastat___ibfk_1` FOREIGN KEY (`invoiceInFk`) REFERENCES `invoiceIn` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT `invoiceInIntrastat___ibfk_2` FOREIGN KEY (`intrastatFk`) REFERENCES `intrastat` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
--
-- Table structure for table `invoiceInLog`
--
@@ -29205,7 +28346,7 @@ CREATE TABLE `invoiceInSage` (
CONSTRAINT `invoiceInSage_taxTypeSageFk` FOREIGN KEY (`taxTypeSageFk`) REFERENCES `sage`.`TiposIva` (`CodigoIva`) ON UPDATE CASCADE,
CONSTRAINT `invoiceInSage_transactionTypeSageFk` FOREIGN KEY (`transactionTypeSageFk`) REFERENCES `sage`.`TiposTransacciones` (`CodigoTransaccion`) ON UPDATE CASCADE,
CONSTRAINT `invoiceInSage_withholdingSageFk` FOREIGN KEY (`withholdingSageFk`) REFERENCES `sage`.`TiposRetencion` (`CodigoRetencion`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Relaciones de entrelas series de facturas recibidas y sus tipo de IVA con código Iva y codigo de Transación en Sage. Para precontabilizadar facturas recibidas';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Relaciones de entrelas series de facturas recibidas y sus tipo de IVA con código Iva y codigo de Transación en Sage. Para precontabilizadar facturas recibidas';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -29281,7 +28422,7 @@ CREATE TABLE `invoiceInTaxBookingAccount` (
CONSTRAINT `invoiceInTaxBookingAccount_fk1` FOREIGN KEY (`taxAreaFk`) REFERENCES `taxArea` (`code`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `invoiceInTaxBookingAccount_fk2` FOREIGN KEY (`taxClassFk`) REFERENCES `taxClass` (`id`) ON UPDATE CASCADE,
CONSTRAINT `invoiceInTaxBookingAccount_fk3` FOREIGN KEY (`countryFk`) REFERENCES `country` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -29300,13 +28441,6 @@ CREATE TABLE `invoiceOut` (
`dued` datetime DEFAULT NULL,
`bankFk` int(11) DEFAULT NULL,
`clientFk` int(11) DEFAULT 0,
- `taxableBase7__` decimal(12,2) DEFAULT 0.00,
- `taxableBase16__` decimal(12,2) DEFAULT 0.00,
- `equ1__` decimal(12,2) DEFAULT 0.00,
- `equ4__` decimal(12,2) DEFAULT 0.00,
- `vat7__` decimal(12,2) DEFAULT 0.00,
- `vat16__` decimal(12,2) DEFAULT 0.00,
- `workerFk__` int(11) DEFAULT 0,
`created` timestamp NOT NULL DEFAULT current_timestamp(),
`companyFk` smallint(5) unsigned NOT NULL DEFAULT 442,
`hasPdf` tinyint(3) unsigned NOT NULL DEFAULT 0,
@@ -29319,7 +28453,6 @@ CREATE TABLE `invoiceOut` (
UNIQUE KEY `Id_Factura` (`ref`),
KEY `Id_Banco` (`bankFk`),
KEY `Id_Cliente` (`clientFk`),
- KEY `Id_Trabajador` (`workerFk__`),
KEY `empresa_id` (`companyFk`),
KEY `Fecha` (`issued`),
KEY `Facturas_ibfk_2_idx` (`cplusInvoiceType477Fk`),
@@ -29476,6 +28609,23 @@ CREATE TABLE `invoiceOutExpence` (
) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Desglosa la base imponible de una factura en funcion del tipo de gasto/venta';
/*!40101 SET character_set_client = @saved_cs_client */;
+--
+-- Table structure for table `invoiceOutQueue`
+--
+
+DROP TABLE IF EXISTS `invoiceOutQueue`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `invoiceOutQueue` (
+ `invoiceFk` int(10) unsigned NOT NULL,
+ `queued` datetime NOT NULL DEFAULT current_timestamp(),
+ `printed` datetime DEFAULT NULL,
+ `status` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT '',
+ PRIMARY KEY (`invoiceFk`),
+ CONSTRAINT `invoiceOut_queue_invoiceOut_id_fk` FOREIGN KEY (`invoiceFk`) REFERENCES `invoiceOut` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Queue for PDF invoicing';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
--
-- Table structure for table `invoiceOutSerial`
--
@@ -29542,24 +28692,7 @@ CREATE TABLE `invoiceOutTaxConfig` (
CONSTRAINT `invoiceOutTaxConfig_FK` FOREIGN KEY (`taxClassCodeFk`) REFERENCES `taxClass` (`code`),
CONSTRAINT `invoiceOutTaxConfig_FK_1` FOREIGN KEY (`taxTypeSageFk`) REFERENCES `sage`.`TiposIva` (`CodigoIva`),
CONSTRAINT `invoiceOutTaxConfig_FK_2` FOREIGN KEY (`transactionTypeSageFk`) REFERENCES `sage`.`TiposTransacciones` (`CodigoTransaccion`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `invoiceOut_queue`
---
-
-DROP TABLE IF EXISTS `invoiceOut_queue`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `invoiceOut_queue` (
- `invoiceFk` int(10) unsigned NOT NULL,
- `queued` datetime NOT NULL DEFAULT current_timestamp(),
- `printed` datetime DEFAULT NULL,
- `status` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT '',
- PRIMARY KEY (`invoiceFk`),
- CONSTRAINT `invoiceOut_queue_invoiceOut_id_fk` FOREIGN KEY (`invoiceFk`) REFERENCES `invoiceOut` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Queue for PDF invoicing';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -29577,8 +28710,6 @@ CREATE TABLE `item` (
`stems` int(11) DEFAULT 1,
`minPrice` double DEFAULT 0,
`isToPrint` tinyint(1) NOT NULL DEFAULT 0,
- `isDeliveryNote__` tinyint(1) NOT NULL DEFAULT 0,
- `taxClassFk__` tinyint(4) unsigned NOT NULL DEFAULT 1,
`family` varchar(3) CHARACTER SET utf8mb3 NOT NULL DEFAULT 'VT',
`box` tinyint(1) NOT NULL DEFAULT 0,
`category` varchar(3) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
@@ -29586,12 +28717,9 @@ CREATE TABLE `item` (
`doPhoto` tinyint(4) NOT NULL DEFAULT 0,
`image` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`inkFk` varchar(3) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `niche__` varchar(10) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`intrastatFk` int(8) unsigned zerofill NOT NULL DEFAULT 06039010,
`hasMinPrice` tinyint(1) NOT NULL DEFAULT 0,
`created` timestamp NOT NULL DEFAULT current_timestamp(),
- `isOnOffer__` tinyint(4) NOT NULL DEFAULT 0,
- `isBargain__` tinyint(4) NOT NULL DEFAULT 0,
`comment` varchar(150) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`typeFk` smallint(5) unsigned NOT NULL,
`generic` tinyint(1) unsigned zerofill NOT NULL DEFAULT 0,
@@ -29615,12 +28743,10 @@ CREATE TABLE `item` (
`value9` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`tag10` varchar(20) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`value10` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `compression__` decimal(5,2) NOT NULL DEFAULT 1.00 COMMENT 'Relacion de compresividad entre el volumen de las entradas en Silla y el empaquetado en los envios a clientes.',
`minimum` decimal(10,0) unsigned NOT NULL DEFAULT 3 COMMENT 'Cantidad máxima de cajas / cubos que cabe en un nicho',
`upToDown` decimal(10,0) unsigned NOT NULL DEFAULT 0 COMMENT 'Se muestra el precio por kilo ',
`supplyResponseFk` int(11) DEFAULT NULL,
`hasKgPrice` tinyint(1) NOT NULL DEFAULT 0,
- `sectorFk__` int(11) DEFAULT NULL,
`isFloramondo` tinyint(1) NOT NULL DEFAULT 0,
`isFragile` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'articulos solo para recogidas por su fragilidad',
`numberOfItemsPerCask` int(11) DEFAULT NULL COMMENT 'Campo para Floramondo',
@@ -29640,11 +28766,9 @@ CREATE TABLE `item` (
KEY `Color` (`inkFk`),
KEY `id_origen` (`originFk`),
KEY `Codintrastat` (`intrastatFk`),
- KEY `iva_group_id` (`taxClassFk__`),
KEY `tipo_id` (`typeFk`),
KEY `producer_id` (`producerFk`),
KEY `ArticlesIsActive_idx` (`isActive`),
- KEY `item_ibfk_6_idx` (`sectorFk__`),
KEY `Article` (`name`,`subName`,`value5`,`value6`,`value7`,`value8`,`value9`,`value10`),
KEY `item_id10` (`embalageCode`),
KEY `item_id11` (`numberOfItemsPerCask`),
@@ -29660,7 +28784,6 @@ CREATE TABLE `item` (
CONSTRAINT `item_family` FOREIGN KEY (`family`) REFERENCES `itemFamily` (`code`) ON UPDATE CASCADE,
CONSTRAINT `item_ibfk_1` FOREIGN KEY (`originFk`) REFERENCES `origin` (`id`) ON UPDATE CASCADE,
CONSTRAINT `item_ibfk_2` FOREIGN KEY (`intrastatFk`) REFERENCES `intrastat` (`id`) ON UPDATE CASCADE,
- CONSTRAINT `item_ibfk_4` FOREIGN KEY (`taxClassFk__`) REFERENCES `taxClass` (`id`) ON UPDATE CASCADE,
CONSTRAINT `item_ibfk_5` FOREIGN KEY (`typeFk`) REFERENCES `itemType` (`id`) ON UPDATE CASCADE,
CONSTRAINT `itemsupplyResponseFk` FOREIGN KEY (`supplyResponseFk`) REFERENCES `edi`.`supplyResponse` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
CONSTRAINT `producer_id` FOREIGN KEY (`producerFk`) REFERENCES `producer` (`id`) ON UPDATE CASCADE
@@ -29806,7 +28929,8 @@ DELIMITER ;;
FOR EACH ROW
BEGIN
CALL hedera.image_unref('catalog', OLD.image);
- IF OLD.id > 400000 THEN
+
+ IF OLD.isFloramondo THEN
INSERT IGNORE edi.item_free (id)
VALUES (OLD.id);
END IF;
@@ -29845,7 +28969,6 @@ DROP TABLE IF EXISTS `itemBotanical`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `itemBotanical` (
`itemFk` int(11) NOT NULL,
- `botanical__` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`genusFk` int(11) NOT NULL,
`specieFk` int(11) DEFAULT NULL,
PRIMARY KEY (`itemFk`),
@@ -29865,10 +28988,9 @@ DROP TABLE IF EXISTS `itemBotanicalWithGenus`;
/*!50001 DROP VIEW IF EXISTS `itemBotanicalWithGenus`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `itemBotanicalWithGenus` (
- `itemFk` tinyint NOT NULL,
- `ediBotanic` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `itemBotanicalWithGenus` AS SELECT
+ 1 AS `itemFk`,
+ 1 AS `ediBotanic` */;
SET character_set_client = @saved_cs_client;
--
@@ -29945,10 +29067,9 @@ DROP TABLE IF EXISTS `itemCategoryL10n`;
/*!50001 DROP VIEW IF EXISTS `itemCategoryL10n`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `itemCategoryL10n` (
- `id` tinyint NOT NULL,
- `name` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `itemCategoryL10n` AS SELECT
+ 1 AS `id`,
+ 1 AS `name` */;
SET character_set_client = @saved_cs_client;
--
@@ -29979,7 +29100,7 @@ CREATE TABLE `itemCleanLog` (
`itemDeleted` int(11) DEFAULT NULL COMMENT 'Indica la cantidad de items que ha eliminado',
`created` timestamp NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -29990,10 +29111,9 @@ DROP TABLE IF EXISTS `itemColor`;
/*!50001 DROP VIEW IF EXISTS `itemColor`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `itemColor` (
- `itemFk` tinyint NOT NULL,
- `color` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `itemColor` AS SELECT
+ 1 AS `itemFk`,
+ 1 AS `color` */;
SET character_set_client = @saved_cs_client;
--
@@ -30004,28 +29124,14 @@ DROP TABLE IF EXISTS `itemConfig`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `itemConfig` (
+ `id` int(11) NOT NULL,
`isItemTagTriggerDisabled` tinyint(1) NOT NULL DEFAULT 1,
- `monthToDeactivate` int(3) NOT NULL DEFAULT 24
+ `monthToDeactivate` int(3) NOT NULL DEFAULT 24,
+ `wasteRecipients` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL COMMENT 'Weekly waste report schedule recipients',
+ PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
---
--- Table structure for table `itemConversor__`
---
-
-DROP TABLE IF EXISTS `itemConversor__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `itemConversor__` (
- `espItemFk` int(11) NOT NULL,
- `genItemFk` int(11) DEFAULT NULL,
- PRIMARY KEY (`espItemFk`),
- KEY `itemConversor_fk2_idx` (`genItemFk`),
- CONSTRAINT `itemConversor_fk1` FOREIGN KEY (`espItemFk`) REFERENCES `item` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT `itemConversor_fk2` FOREIGN KEY (`genItemFk`) REFERENCES `item` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Relaciona los item específicos con los genéricos';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
--
-- Table structure for table `itemCost`
--
@@ -30125,15 +29231,14 @@ DROP TABLE IF EXISTS `itemEntryIn`;
/*!50001 DROP VIEW IF EXISTS `itemEntryIn`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `itemEntryIn` (
- `warehouseInFk` tinyint NOT NULL,
- `landed` tinyint NOT NULL,
- `itemFk` tinyint NOT NULL,
- `quantity` tinyint NOT NULL,
- `isReceived` tinyint NOT NULL,
- `isVirtualStock` tinyint NOT NULL,
- `entryFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `itemEntryIn` AS SELECT
+ 1 AS `warehouseInFk`,
+ 1 AS `landed`,
+ 1 AS `itemFk`,
+ 1 AS `quantity`,
+ 1 AS `isReceived`,
+ 1 AS `isVirtualStock`,
+ 1 AS `entryFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -30144,14 +29249,13 @@ DROP TABLE IF EXISTS `itemEntryOut`;
/*!50001 DROP VIEW IF EXISTS `itemEntryOut`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `itemEntryOut` (
- `warehouseOutFk` tinyint NOT NULL,
- `shipped` tinyint NOT NULL,
- `itemFk` tinyint NOT NULL,
- `quantity` tinyint NOT NULL,
- `isDelivered` tinyint NOT NULL,
- `entryFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `itemEntryOut` AS SELECT
+ 1 AS `warehouseOutFk`,
+ 1 AS `shipped`,
+ 1 AS `itemFk`,
+ 1 AS `quantity`,
+ 1 AS `isDelivered`,
+ 1 AS `entryFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -30196,11 +29300,10 @@ DROP TABLE IF EXISTS `itemInk`;
/*!50001 DROP VIEW IF EXISTS `itemInk`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `itemInk` (
- `longName` tinyint NOT NULL,
- `inkFk` tinyint NOT NULL,
- `color` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `itemInk` AS SELECT
+ 1 AS `longName`,
+ 1 AS `inkFk`,
+ 1 AS `color` */;
SET character_set_client = @saved_cs_client;
--
@@ -30217,7 +29320,7 @@ CREATE TABLE `itemLabel` (
`price` decimal(10,2) DEFAULT NULL,
`labels` int(11) DEFAULT NULL COMMENT 'Tabla hecha para Ruben Espinosa, para sacar etiquetas en Holanda para un cliente.',
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -30303,7 +29406,7 @@ CREATE TABLE `itemPlacementSupply` (
CONSTRAINT `itemPlacementSupply_fk2` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `itemPlacementSupply_fk3` FOREIGN KEY (`repoUserFk`) REFERENCES `account`.`user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `itemPlacementSupply_fk4` FOREIGN KEY (`sectorFk`) REFERENCES `sector` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Lista de nichos de picking que hay que reponer';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Lista de nichos de picking que hay que reponer';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -30314,93 +29417,23 @@ DROP TABLE IF EXISTS `itemPlacementSupplyList`;
/*!50001 DROP VIEW IF EXISTS `itemPlacementSupplyList`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `itemPlacementSupplyList` (
- `id` tinyint NOT NULL,
- `itemFk` tinyint NOT NULL,
- `quantity` tinyint NOT NULL,
- `priority` tinyint NOT NULL,
- `created` tinyint NOT NULL,
- `userFk` tinyint NOT NULL,
- `repoUserFk` tinyint NOT NULL,
- `saldo` tinyint NOT NULL,
- `longName` tinyint NOT NULL,
- `subName` tinyint NOT NULL,
- `size` tinyint NOT NULL,
- `workerCode` tinyint NOT NULL,
- `repoCode` tinyint NOT NULL,
- `sectorFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `itemPlacementSupplyList` AS SELECT
+ 1 AS `id`,
+ 1 AS `itemFk`,
+ 1 AS `quantity`,
+ 1 AS `priority`,
+ 1 AS `created`,
+ 1 AS `userFk`,
+ 1 AS `repoUserFk`,
+ 1 AS `saldo`,
+ 1 AS `longName`,
+ 1 AS `subName`,
+ 1 AS `size`,
+ 1 AS `workerCode`,
+ 1 AS `repoCode`,
+ 1 AS `sectorFk` */;
SET character_set_client = @saved_cs_client;
---
--- Table structure for table `itemPlacement__`
---
-
-DROP TABLE IF EXISTS `itemPlacement__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `itemPlacement__` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `itemFk` int(11) NOT NULL,
- `warehouseFk` smallint(6) unsigned NOT NULL DEFAULT 1,
- `code` varchar(10) COLLATE utf8mb3_unicode_ci NOT NULL,
- `modificationDate` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
- `reserve` varchar(10) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `pickable` int(11) unsigned NOT NULL DEFAULT 0,
- `sectorFk` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `Id_Article_UNIQUE` (`itemFk`,`warehouseFk`),
- KEY `Articles_nicho_wh_fk` (`warehouseFk`),
- KEY `itemPlacement_fk3_idx` (`id`,`sectorFk`),
- KEY `itemPlacement_fk3_idx1` (`sectorFk`),
- CONSTRAINT `Articles_nicho_wh_fk` FOREIGN KEY (`warehouseFk`) REFERENCES `warehouse` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT `Articles_nichos_fk` FOREIGN KEY (`itemFk`) REFERENCES `item` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT `itemPlacement_fk3` FOREIGN KEY (`sectorFk`) REFERENCES `sector` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `vn`.`itemPlacement_BEFORE_INSERT`
- BEFORE INSERT ON `itemPlacement__` FOR EACH ROW
-BEGIN
- IF LENGTH(NEW.code) < 3 THEN
- CALL util.throw('code too short');
- END IF;
-END */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `vn`.`itemPlacement_BEFORE_UPDATE`
- BEFORE UPDATE ON `itemPlacement__` FOR EACH ROW
-BEGIN
- IF LENGTH(NEW.code) < 3 THEN
- CALL util.throw('code too short');
- END IF;
-END */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-
--
-- Temporary table structure for view `itemProductor`
--
@@ -30409,10 +29442,9 @@ DROP TABLE IF EXISTS `itemProductor`;
/*!50001 DROP VIEW IF EXISTS `itemProductor`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `itemProductor` (
- `itemFk` tinyint NOT NULL,
- `productor` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `itemProductor` AS SELECT
+ 1 AS `itemFk`,
+ 1 AS `productor` */;
SET character_set_client = @saved_cs_client;
--
@@ -30433,21 +29465,6 @@ CREATE TABLE `itemProposal` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='almacena los cambios realizados de unos items por otros, cuando faltaban los primeros';
/*!40101 SET character_set_client = @saved_cs_client */;
---
--- Table structure for table `itemRepo__`
---
-
-DROP TABLE IF EXISTS `itemRepo__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `itemRepo__` (
- `itemFk` int(11) NOT NULL,
- `quantity` int(10) unsigned NOT NULL DEFAULT 0,
- PRIMARY KEY (`itemFk`),
- CONSTRAINT `itemRepo_fk1` FOREIGN KEY (`itemFk`) REFERENCES `item` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
--
-- Temporary table structure for view `itemSearch`
--
@@ -30456,13 +29473,12 @@ DROP TABLE IF EXISTS `itemSearch`;
/*!50001 DROP VIEW IF EXISTS `itemSearch`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `itemSearch` (
- `itemFk` tinyint NOT NULL,
- `concept` tinyint NOT NULL,
- `quantity` tinyint NOT NULL,
- `nickname` tinyint NOT NULL,
- `shipped` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `itemSearch` AS SELECT
+ 1 AS `itemFk`,
+ 1 AS `concept`,
+ 1 AS `quantity`,
+ 1 AS `nickname`,
+ 1 AS `shipped` */;
SET character_set_client = @saved_cs_client;
--
@@ -30476,19 +29492,12 @@ CREATE TABLE `itemShelving` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`itemFk` int(11) NOT NULL,
`shelvingFk` varchar(10) CHARACTER SET utf8mb3 NOT NULL,
- `shelve` varchar(2) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'A',
- `deep__` int(11) unsigned NOT NULL DEFAULT 1,
- `quantity__` int(11) NOT NULL DEFAULT 0,
`visible` int(11) NOT NULL DEFAULT 0,
- `available__` int(11) NOT NULL DEFAULT 0,
`created` timestamp NOT NULL DEFAULT current_timestamp(),
- `priority` int(11) unsigned DEFAULT NULL COMMENT 'El 0 es la mínima prioridad',
`grouping` smallint(5) unsigned DEFAULT NULL,
`packing` int(11) unsigned DEFAULT NULL,
`packagingFk` varchar(10) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `level__` varchar(45) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '1',
`userFk` int(10) unsigned DEFAULT NULL,
- `stars` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `itemShelving_fk1_idx` (`itemFk`),
KEY `itemShelving_fk2_idx` (`shelvingFk`),
@@ -30541,8 +29550,7 @@ INSERT INTO vn.itemShelvingLog( itemShelvingFk,
shelvingFk,
visible,
`grouping`,
- packing,
- stars)
+ packing)
VALUES( NEW.id,
NEW.userFk,
'CREA REGISTRO',
@@ -30550,8 +29558,7 @@ INSERT INTO vn.itemShelvingLog( itemShelvingFk,
NEW.shelvingFk,
NEW.visible,
NEW.`grouping`,
- NEW.packing,
- NEW.stars
+ NEW.packing
) */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
@@ -30597,8 +29604,7 @@ INSERT INTO vn.itemShelvingLog( itemShelvingFk,
shelvingFk,
visible,
`grouping`,
- packing,
- stars)
+ packing)
VALUES( NEW.id,
account.myUser_getId(),
'CAMBIO',
@@ -30606,8 +29612,7 @@ INSERT INTO vn.itemShelvingLog( itemShelvingFk,
NEW.shelvingFk,
NEW.visible,
NEW.`grouping`,
- NEW.packing,
- NEW.stars
+ NEW.packing
) */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
@@ -30650,31 +29655,30 @@ DROP TABLE IF EXISTS `itemShelvingAvailable`;
/*!50001 DROP VIEW IF EXISTS `itemShelvingAvailable`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `itemShelvingAvailable` (
- `saleFk` tinyint NOT NULL,
- `Modificado` tinyint NOT NULL,
- `ticketFk` tinyint NOT NULL,
- `isPicked` tinyint NOT NULL,
- `itemFk` tinyint NOT NULL,
- `quantity` tinyint NOT NULL,
- `concept` tinyint NOT NULL,
- `size` tinyint NOT NULL,
- `Estado` tinyint NOT NULL,
- `sectorProdPriority` tinyint NOT NULL,
- `available` tinyint NOT NULL,
- `sectorFk` tinyint NOT NULL,
- `matricula` tinyint NOT NULL,
- `parking` tinyint NOT NULL,
- `itemShelving` tinyint NOT NULL,
- `Agency` tinyint NOT NULL,
- `shipped` tinyint NOT NULL,
- `grouping` tinyint NOT NULL,
- `packing` tinyint NOT NULL,
- `hour` tinyint NOT NULL,
- `isPreviousPreparable` tinyint NOT NULL,
- `physicalVolume` tinyint NOT NULL,
- `warehouseFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `itemShelvingAvailable` AS SELECT
+ 1 AS `saleFk`,
+ 1 AS `Modificado`,
+ 1 AS `ticketFk`,
+ 1 AS `isPicked`,
+ 1 AS `itemFk`,
+ 1 AS `quantity`,
+ 1 AS `concept`,
+ 1 AS `size`,
+ 1 AS `Estado`,
+ 1 AS `sectorProdPriority`,
+ 1 AS `available`,
+ 1 AS `sectorFk`,
+ 1 AS `matricula`,
+ 1 AS `parking`,
+ 1 AS `itemShelving`,
+ 1 AS `Agency`,
+ 1 AS `shipped`,
+ 1 AS `grouping`,
+ 1 AS `packing`,
+ 1 AS `hour`,
+ 1 AS `isPreviousPreparable`,
+ 1 AS `physicalVolume`,
+ 1 AS `warehouseFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -30685,18 +29689,17 @@ DROP TABLE IF EXISTS `itemShelvingList`;
/*!50001 DROP VIEW IF EXISTS `itemShelvingList`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `itemShelvingList` (
- `shelvingFk` tinyint NOT NULL,
- `visible` tinyint NOT NULL,
- `created` tinyint NOT NULL,
- `parking` tinyint NOT NULL,
- `itemFk` tinyint NOT NULL,
- `longName` tinyint NOT NULL,
- `size` tinyint NOT NULL,
- `subName` tinyint NOT NULL,
- `parked` tinyint NOT NULL,
- `sectorFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `itemShelvingList` AS SELECT
+ 1 AS `shelvingFk`,
+ 1 AS `visible`,
+ 1 AS `created`,
+ 1 AS `parking`,
+ 1 AS `itemFk`,
+ 1 AS `longName`,
+ 1 AS `size`,
+ 1 AS `subName`,
+ 1 AS `parked`,
+ 1 AS `sectorFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -30746,7 +29749,7 @@ CREATE TABLE `itemShelvingPlacementSupply` (
KEY `itemShelvingPlacementSupply_fk3_idx` (`userFk`),
CONSTRAINT `itemShelvingPlacementSupply_fk1` FOREIGN KEY (`itemShelvingFk`) REFERENCES `itemShelving` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `itemShelvingPlacementSupply_fk2` FOREIGN KEY (`itemPlacementSupplyFk`) REFERENCES `itemPlacementSupply` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Detalle de los itemShelving afectados por las ordenes de reposicion de nicho';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Detalle de los itemShelving afectados por las ordenes de reposicion de nicho';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -30757,21 +29760,20 @@ DROP TABLE IF EXISTS `itemShelvingPlacementSupplyStock`;
/*!50001 DROP VIEW IF EXISTS `itemShelvingPlacementSupplyStock`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `itemShelvingPlacementSupplyStock` (
- `itemShelvingFk` tinyint NOT NULL,
- `itemFk` tinyint NOT NULL,
- `packing` tinyint NOT NULL,
- `stock` tinyint NOT NULL,
- `longName` tinyint NOT NULL,
- `size` tinyint NOT NULL,
- `subName` tinyint NOT NULL,
- `shelving` tinyint NOT NULL,
- `parking` tinyint NOT NULL,
- `created` tinyint NOT NULL,
- `priority` tinyint NOT NULL,
- `parkingFk` tinyint NOT NULL,
- `sectorFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `itemShelvingPlacementSupplyStock` AS SELECT
+ 1 AS `itemShelvingFk`,
+ 1 AS `itemFk`,
+ 1 AS `packing`,
+ 1 AS `stock`,
+ 1 AS `longName`,
+ 1 AS `size`,
+ 1 AS `subName`,
+ 1 AS `shelving`,
+ 1 AS `parking`,
+ 1 AS `created`,
+ 1 AS `priority`,
+ 1 AS `parkingFk`,
+ 1 AS `sectorFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -30830,14 +29832,13 @@ DROP TABLE IF EXISTS `itemShelvingSaleSum`;
/*!50001 DROP VIEW IF EXISTS `itemShelvingSaleSum`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `itemShelvingSaleSum` (
- `id` tinyint NOT NULL,
- `itemShelvingFk` tinyint NOT NULL,
- `saleFk` tinyint NOT NULL,
- `quantity` tinyint NOT NULL,
- `created` tinyint NOT NULL,
- `sectorFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `itemShelvingSaleSum` AS SELECT
+ 1 AS `id`,
+ 1 AS `itemShelvingFk`,
+ 1 AS `saleFk`,
+ 1 AS `quantity`,
+ 1 AS `created`,
+ 1 AS `sectorFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -30848,23 +29849,22 @@ DROP TABLE IF EXISTS `itemShelvingStock`;
/*!50001 DROP VIEW IF EXISTS `itemShelvingStock`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `itemShelvingStock` (
- `itemFk` tinyint NOT NULL,
- `visible` tinyint NOT NULL,
- `packing` tinyint NOT NULL,
- `grouping` tinyint NOT NULL,
- `sector` tinyint NOT NULL,
- `visibleOriginal` tinyint NOT NULL,
- `removed` tinyint NOT NULL,
- `sectorFk` tinyint NOT NULL,
- `warehouseFk` tinyint NOT NULL,
- `shelvingFk` tinyint NOT NULL,
- `parkingCode` tinyint NOT NULL,
- `parkingFk` tinyint NOT NULL,
- `itemShelvingFk` tinyint NOT NULL,
- `created` tinyint NOT NULL,
- `isPreviousPrepared` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `itemShelvingStock` AS SELECT
+ 1 AS `itemFk`,
+ 1 AS `visible`,
+ 1 AS `packing`,
+ 1 AS `grouping`,
+ 1 AS `sector`,
+ 1 AS `visibleOriginal`,
+ 1 AS `removed`,
+ 1 AS `sectorFk`,
+ 1 AS `warehouseFk`,
+ 1 AS `shelvingFk`,
+ 1 AS `parkingCode`,
+ 1 AS `parkingFk`,
+ 1 AS `itemShelvingFk`,
+ 1 AS `created`,
+ 1 AS `isPreviousPrepared` */;
SET character_set_client = @saved_cs_client;
--
@@ -30875,21 +29875,20 @@ DROP TABLE IF EXISTS `itemShelvingStockFull`;
/*!50001 DROP VIEW IF EXISTS `itemShelvingStockFull`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `itemShelvingStockFull` (
- `itemFk` tinyint NOT NULL,
- `quantity` tinyint NOT NULL,
- `packing` tinyint NOT NULL,
- `grouping` tinyint NOT NULL,
- `sector` tinyint NOT NULL,
- `removed` tinyint NOT NULL,
- `sectorFk` tinyint NOT NULL,
- `warehouseFk` tinyint NOT NULL,
- `shelvingFk` tinyint NOT NULL,
- `parkingCode` tinyint NOT NULL,
- `parkingFk` tinyint NOT NULL,
- `itemShelvingFk` tinyint NOT NULL,
- `created` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `itemShelvingStockFull` AS SELECT
+ 1 AS `itemFk`,
+ 1 AS `quantity`,
+ 1 AS `packing`,
+ 1 AS `grouping`,
+ 1 AS `sector`,
+ 1 AS `removed`,
+ 1 AS `sectorFk`,
+ 1 AS `warehouseFk`,
+ 1 AS `shelvingFk`,
+ 1 AS `parkingCode`,
+ 1 AS `parkingFk`,
+ 1 AS `itemShelvingFk`,
+ 1 AS `created` */;
SET character_set_client = @saved_cs_client;
--
@@ -30900,11 +29899,10 @@ DROP TABLE IF EXISTS `itemShelvingStockRemoved`;
/*!50001 DROP VIEW IF EXISTS `itemShelvingStockRemoved`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `itemShelvingStockRemoved` (
- `itemShelvingFk` tinyint NOT NULL,
- `itemFk` tinyint NOT NULL,
- `removed` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `itemShelvingStockRemoved` AS SELECT
+ 1 AS `itemShelvingFk`,
+ 1 AS `itemFk`,
+ 1 AS `removed` */;
SET character_set_client = @saved_cs_client;
--
@@ -30915,11 +29913,10 @@ DROP TABLE IF EXISTS `itemShelvingStock_byWarehouse`;
/*!50001 DROP VIEW IF EXISTS `itemShelvingStock_byWarehouse`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `itemShelvingStock_byWarehouse` (
- `itemFk` tinyint NOT NULL,
- `visible` tinyint NOT NULL,
- `warehouseFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `itemShelvingStock_byWarehouse` AS SELECT
+ 1 AS `itemFk`,
+ 1 AS `visible`,
+ 1 AS `warehouseFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -31105,9 +30102,8 @@ DROP TABLE IF EXISTS `itemTagged`;
/*!50001 DROP VIEW IF EXISTS `itemTagged`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `itemTagged` (
- `itemFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `itemTagged` AS SELECT
+ 1 AS `itemFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -31141,17 +30137,16 @@ DROP TABLE IF EXISTS `itemTicketOut`;
/*!50001 DROP VIEW IF EXISTS `itemTicketOut`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `itemTicketOut` (
- `warehouseFk` tinyint NOT NULL,
- `shipped` tinyint NOT NULL,
- `itemFk` tinyint NOT NULL,
- `quantity` tinyint NOT NULL,
- `isPicked` tinyint NOT NULL,
- `reserved` tinyint NOT NULL,
- `refFk` tinyint NOT NULL,
- `saleFk` tinyint NOT NULL,
- `ticketFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `itemTicketOut` AS SELECT
+ 1 AS `warehouseFk`,
+ 1 AS `shipped`,
+ 1 AS `itemFk`,
+ 1 AS `quantity`,
+ 1 AS `isPicked`,
+ 1 AS `reserved`,
+ 1 AS `refFk`,
+ 1 AS `saleFk`,
+ 1 AS `ticketFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -31165,14 +30160,12 @@ CREATE TABLE `itemType` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`code` varchar(3) COLLATE utf8mb3_unicode_ci NOT NULL,
`name` varchar(30) COLLATE utf8mb3_unicode_ci NOT NULL,
- `gramsMin__` int(11) DEFAULT NULL,
`gramsMax` int(11) DEFAULT NULL,
`order` int(11) DEFAULT 0,
`categoryFk` int(10) unsigned NOT NULL,
`workerFk` int(10) unsigned NOT NULL,
`isInventory` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'Se utiliza tanto en el cálculo del inventario, como en el del informe del inventario valorado',
`created` timestamp NULL DEFAULT current_timestamp(),
- `f11__` tinyint(4) NOT NULL DEFAULT 0,
`transaction` tinyint(4) NOT NULL DEFAULT 0,
`making` int(10) unsigned DEFAULT NULL COMMENT 'Son productos de confección propia',
`location` varchar(10) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
@@ -31192,6 +30185,7 @@ CREATE TABLE `itemType` (
`isUnconventionalSize` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'familia con productos cuyas medidas no son aptas para la cinta transportadora o paletizar',
`isLaid` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Indica si el producto se puede tumbar a efectos del transporte desde Holanda',
`maxRefs` int(10) unsigned DEFAULT NULL COMMENT 'Indica el número máximo de referencias',
+ `isMergeable` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'Articulos que al mergear los tickets se fusionara la linea',
PRIMARY KEY (`code`),
UNIQUE KEY `tipo_id_UNIQUE` (`id`),
UNIQUE KEY `Tipo_UNIQUE` (`name`,`categoryFk`),
@@ -31261,10 +30255,9 @@ DROP TABLE IF EXISTS `itemTypeL10n`;
/*!50001 DROP VIEW IF EXISTS `itemTypeL10n`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `itemTypeL10n` (
- `id` tinyint NOT NULL,
- `name` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `itemTypeL10n` AS SELECT
+ 1 AS `id`,
+ 1 AS `name` */;
SET character_set_client = @saved_cs_client;
--
@@ -31283,7 +30276,7 @@ CREATE TABLE `itemTypeRestriction` (
UNIQUE KEY `itemTypeRestriction_UN` (`itemTypeFk`,`dated`),
KEY `itemTypeRestriction_dated_IDX` (`dated`,`itemTypeFk`) USING BTREE,
CONSTRAINT `itemTypeRestriction_itemType_id_fk` FOREIGN KEY (`itemTypeFk`) REFERENCES `itemType` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -31307,21 +30300,6 @@ CREATE TABLE `itemTypeTag` (
) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
---
--- Table structure for table `itemVerdecora__`
---
-
-DROP TABLE IF EXISTS `itemVerdecora__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `itemVerdecora__` (
- `itemFk` int(11) NOT NULL,
- `codin` int(11) DEFAULT NULL,
- PRIMARY KEY (`itemFk`),
- CONSTRAINT `itemVerdecora_fk1` FOREIGN KEY (`itemFk`) REFERENCES `item` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Relaciona nuestros articulos con los de Verdecora';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
--
-- Temporary table structure for view `item_Free_Id`
--
@@ -31330,9 +30308,8 @@ DROP TABLE IF EXISTS `item_Free_Id`;
/*!50001 DROP VIEW IF EXISTS `item_Free_Id`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `item_Free_Id` (
- `newId` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `item_Free_Id` AS SELECT
+ 1 AS `newId` */;
SET character_set_client = @saved_cs_client;
--
@@ -31343,24 +30320,23 @@ DROP TABLE IF EXISTS `labelInfo`;
/*!50001 DROP VIEW IF EXISTS `labelInfo`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `labelInfo` (
- `itemId` tinyint NOT NULL,
- `itemName` tinyint NOT NULL,
- `stickers` tinyint NOT NULL,
- `life` tinyint NOT NULL,
- `colorCode` tinyint NOT NULL,
- `stems` tinyint NOT NULL,
- `category` tinyint NOT NULL,
- `productor` tinyint NOT NULL,
- `packing` tinyint NOT NULL,
- `warehouse_id` tinyint NOT NULL,
- `size` tinyint NOT NULL,
- `isPickedOff` tinyint NOT NULL,
- `notes` tinyint NOT NULL,
- `wh_in` tinyint NOT NULL,
- `entryId` tinyint NOT NULL,
- `buyId` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `labelInfo` AS SELECT
+ 1 AS `itemId`,
+ 1 AS `itemName`,
+ 1 AS `stickers`,
+ 1 AS `life`,
+ 1 AS `colorCode`,
+ 1 AS `stems`,
+ 1 AS `category`,
+ 1 AS `productor`,
+ 1 AS `packing`,
+ 1 AS `warehouse_id`,
+ 1 AS `size`,
+ 1 AS `isPickedOff`,
+ 1 AS `notes`,
+ 1 AS `wh_in`,
+ 1 AS `entryId`,
+ 1 AS `buyId` */;
SET character_set_client = @saved_cs_client;
--
@@ -31389,10 +30365,9 @@ DROP TABLE IF EXISTS `lastHourProduction`;
/*!50001 DROP VIEW IF EXISTS `lastHourProduction`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `lastHourProduction` (
- `warehouseFk` tinyint NOT NULL,
- `m3` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `lastHourProduction` AS SELECT
+ 1 AS `warehouseFk`,
+ 1 AS `m3` */;
SET character_set_client = @saved_cs_client;
--
@@ -31403,21 +30378,20 @@ DROP TABLE IF EXISTS `lastPurchases`;
/*!50001 DROP VIEW IF EXISTS `lastPurchases`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `lastPurchases` (
- `landed` tinyint NOT NULL,
- `warehouseFk` tinyint NOT NULL,
- `warehouse` tinyint NOT NULL,
- `longName` tinyint NOT NULL,
- `subName` tinyint NOT NULL,
- `entryFk` tinyint NOT NULL,
- `stickers` tinyint NOT NULL,
- `packing` tinyint NOT NULL,
- `ref` tinyint NOT NULL,
- `itemFk` tinyint NOT NULL,
- `pro` tinyint NOT NULL,
- `ektRef` tinyint NOT NULL,
- `agj` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `lastPurchases` AS SELECT
+ 1 AS `landed`,
+ 1 AS `warehouseFk`,
+ 1 AS `warehouse`,
+ 1 AS `longName`,
+ 1 AS `subName`,
+ 1 AS `entryFk`,
+ 1 AS `stickers`,
+ 1 AS `packing`,
+ 1 AS `ref`,
+ 1 AS `itemFk`,
+ 1 AS `pro`,
+ 1 AS `ektRef`,
+ 1 AS `agj` */;
SET character_set_client = @saved_cs_client;
--
@@ -31428,14 +30402,13 @@ DROP TABLE IF EXISTS `lastTopClaims`;
/*!50001 DROP VIEW IF EXISTS `lastTopClaims`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `lastTopClaims` (
- `itemFk` tinyint NOT NULL,
- `itemName` tinyint NOT NULL,
- `itemTypeName` tinyint NOT NULL,
- `claimsNumber` tinyint NOT NULL,
- `claimedAmount` tinyint NOT NULL,
- `totalAmount` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `lastTopClaims` AS SELECT
+ 1 AS `itemFk`,
+ 1 AS `itemName`,
+ 1 AS `itemTypeName`,
+ 1 AS `claimsNumber`,
+ 1 AS `claimedAmount`,
+ 1 AS `totalAmount` */;
SET character_set_client = @saved_cs_client;
--
@@ -31447,6 +30420,7 @@ DROP TABLE IF EXISTS `ledgerConfig`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ledgerConfig` (
`lastBookEntry` int(11) NOT NULL,
+ `maxTolerance` decimal(10,2) NOT NULL,
PRIMARY KEY (`lastBookEntry`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -31546,7 +30520,7 @@ CREATE TABLE `machineDetail` (
CONSTRAINT `machineDetail_FK` FOREIGN KEY (`machineFk`) REFERENCES `machine` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `machineDetail_FK_1` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`) ON UPDATE CASCADE,
CONSTRAINT `machineDetail_FK_2` FOREIGN KEY (`dmsFk`) REFERENCES `dms` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -31565,7 +30539,7 @@ CREATE TABLE `machineDms` (
KEY `machineDms_FK` (`dmsFk`),
CONSTRAINT `machineDms_FK` FOREIGN KEY (`dmsFk`) REFERENCES `dms` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `machineDms_FK_1` FOREIGN KEY (`machineFk`) REFERENCES `machine` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -31600,7 +30574,7 @@ CREATE TABLE `machineWorkerConfig` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`maxHours` smallint(5) unsigned NOT NULL COMMENT 'Indicates how many hours a user record is reviewed to update or insert',
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -31672,7 +30646,7 @@ CREATE TABLE `mailTemplates` (
`name` varchar(50) CHARACTER SET utf8mb3 NOT NULL,
`attachmentPath` text CHARACTER SET utf8mb3 NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -31752,7 +30726,7 @@ CREATE TABLE `manuscript` (
`enabled` tinyint(1) NOT NULL DEFAULT 1,
PRIMARY KEY (`id`),
UNIQUE KEY `code_UNIQUE` (`code`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -31796,7 +30770,7 @@ CREATE TABLE `medicalCenter` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(45) COLLATE utf8mb3_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -31821,7 +30795,7 @@ CREATE TABLE `medicalReview` (
KEY `frgnkWorker_idx` (`workerFk`),
CONSTRAINT `frgcenter` FOREIGN KEY (`centerFk`) REFERENCES `medicalCenter` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `frgnkWorker` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -31842,7 +30816,7 @@ CREATE TABLE `message` (
KEY `sender` (`sender`),
KEY `recipient` (`recipient`),
KEY `uuid` (`uuid`(8))
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -31864,7 +30838,7 @@ CREATE TABLE `messageInbox` (
PRIMARY KEY (`id`),
KEY `uuid` (`uuid`(8)),
KEY `finalRecipient` (`finalRecipient`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -31875,16 +30849,15 @@ DROP TABLE IF EXISTS `mistake`;
/*!50001 DROP VIEW IF EXISTS `mistake`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `mistake` (
- `revisador` tinyint NOT NULL,
- `concept` tinyint NOT NULL,
- `sacador` tinyint NOT NULL,
- `firstName` tinyint NOT NULL,
- `lastName` tinyint NOT NULL,
- `description` tinyint NOT NULL,
- `created` tinyint NOT NULL,
- `workerFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `mistake` AS SELECT
+ 1 AS `revisador`,
+ 1 AS `concept`,
+ 1 AS `sacador`,
+ 1 AS `firstName`,
+ 1 AS `lastName`,
+ 1 AS `description`,
+ 1 AS `created`,
+ 1 AS `workerFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -31895,16 +30868,15 @@ DROP TABLE IF EXISTS `mistakeRatio`;
/*!50001 DROP VIEW IF EXISTS `mistakeRatio`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `mistakeRatio` (
- `revisador` tinyint NOT NULL,
- `sacador` tinyint NOT NULL,
- `firstName` tinyint NOT NULL,
- `lastName` tinyint NOT NULL,
- `description` tinyint NOT NULL,
- `created` tinyint NOT NULL,
- `workerFk` tinyint NOT NULL,
- `saleFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `mistakeRatio` AS SELECT
+ 1 AS `revisador`,
+ 1 AS `sacador`,
+ 1 AS `firstName`,
+ 1 AS `lastName`,
+ 1 AS `description`,
+ 1 AS `created`,
+ 1 AS `workerFk`,
+ 1 AS `saleFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -31918,7 +30890,7 @@ CREATE TABLE `mistakeType` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`description` varchar(45) COLLATE utf8mb3_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -31955,7 +30927,7 @@ CREATE TABLE `mrw` (
`shipped` date DEFAULT NULL,
`price` decimal(10,2) DEFAULT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -31999,13 +30971,12 @@ DROP TABLE IF EXISTS `newBornSales`;
/*!50001 DROP VIEW IF EXISTS `newBornSales`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `newBornSales` (
- `amount` tinyint NOT NULL,
- `clientFk` tinyint NOT NULL,
- `userFk` tinyint NOT NULL,
- `dated` tinyint NOT NULL,
- `firstShipped` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `newBornSales` AS SELECT
+ 1 AS `amount`,
+ 1 AS `clientFk`,
+ 1 AS `userFk`,
+ 1 AS `dated`,
+ 1 AS `firstShipped` */;
SET character_set_client = @saved_cs_client;
--
@@ -32025,7 +30996,7 @@ CREATE TABLE `noticeCategory` (
`requiredRole` int(11) NOT NULL DEFAULT 1,
PRIMARY KEY (`id`),
UNIQUE KEY `keyName_UNIQUE` (`keyName`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -32085,9 +31056,18 @@ DROP TABLE IF EXISTS `operator`;
CREATE TABLE `operator` (
`workerFk` int(10) unsigned NOT NULL,
`numberOfWagons` int(11) DEFAULT 1,
+ `trainFk` int(11) NOT NULL DEFAULT 1,
+ `itemPackingTypeFk` varchar(1) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'H',
+ `warehouseFk` smallint(6) unsigned NOT NULL DEFAULT 60,
PRIMARY KEY (`workerFk`),
KEY `operator_FK` (`workerFk`),
- CONSTRAINT `operator_FK` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
+ KEY `operator_FK_1` (`trainFk`),
+ KEY `operator_FK_2` (`itemPackingTypeFk`),
+ KEY `operator_FK_3` (`warehouseFk`),
+ CONSTRAINT `operator_FK` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
+ CONSTRAINT `operator_FK_1` FOREIGN KEY (`trainFk`) REFERENCES `train` (`id`) ON UPDATE CASCADE,
+ CONSTRAINT `operator_FK_2` FOREIGN KEY (`itemPackingTypeFk`) REFERENCES `itemPackingType` (`code`) ON DELETE CASCADE ON UPDATE CASCADE,
+ CONSTRAINT `operator_FK_3` FOREIGN KEY (`warehouseFk`) REFERENCES `warehouse` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -32099,12 +31079,11 @@ DROP TABLE IF EXISTS `operatorWorkerCode`;
/*!50001 DROP VIEW IF EXISTS `operatorWorkerCode`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `operatorWorkerCode` (
- `workerFk` tinyint NOT NULL,
- `fullName` tinyint NOT NULL,
- `code` tinyint NOT NULL,
- `numberOfWagons` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `operatorWorkerCode` AS SELECT
+ 1 AS `workerFk`,
+ 1 AS `fullName`,
+ 1 AS `code`,
+ 1 AS `numberOfWagons` */;
SET character_set_client = @saved_cs_client;
--
@@ -32136,8 +31115,6 @@ CREATE TABLE `origin` (
`code` varchar(3) COLLATE utf8mb3_unicode_ci NOT NULL,
`name` varchar(20) COLLATE utf8mb3_unicode_ci NOT NULL,
`warehouseFk` smallint(5) unsigned DEFAULT 4,
- `flag__` blob DEFAULT NULL,
- `nl__` tinyint(4) NOT NULL DEFAULT 0,
`countryFk` mediumint(8) unsigned NOT NULL DEFAULT 1,
PRIMARY KEY (`id`),
UNIQUE KEY `Abreviatura` (`code`),
@@ -32170,12 +31147,38 @@ DROP TABLE IF EXISTS `originL10n`;
/*!50001 DROP VIEW IF EXISTS `originL10n`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `originL10n` (
- `id` tinyint NOT NULL,
- `name` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `originL10n` AS SELECT
+ 1 AS `id`,
+ 1 AS `name` */;
SET character_set_client = @saved_cs_client;
+--
+-- Table structure for table `osTicketConfig`
+--
+
+DROP TABLE IF EXISTS `osTicketConfig`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `osTicketConfig` (
+ `id` int(11) NOT NULL,
+ `host` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
+ `user` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
+ `password` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
+ `oldStatus` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
+ `newStatusId` int(11) DEFAULT NULL,
+ `day` int(11) DEFAULT NULL,
+ `comment` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
+ `hostDb` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
+ `userDb` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
+ `passwordDb` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
+ `portDb` int(11) DEFAULT NULL,
+ `responseType` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
+ `fromEmailId` int(11) DEFAULT NULL,
+ `replyTo` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
--
-- Table structure for table `outgoingInvoiceVat`
--
@@ -32205,7 +31208,7 @@ CREATE TABLE `packageChecked` (
PRIMARY KEY (`id`),
UNIQUE KEY `entryFk_UNIQUE` (`itemFk`),
KEY `fkItem_idx` (`itemFk`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -32233,10 +31236,9 @@ DROP TABLE IF EXISTS `packageEquivalentItem`;
/*!50001 DROP VIEW IF EXISTS `packageEquivalentItem`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `packageEquivalentItem` (
- `itemFk` tinyint NOT NULL,
- `equivalentFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `packageEquivalentItem` AS SELECT
+ 1 AS `itemFk`,
+ 1 AS `equivalentFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -32258,9 +31260,9 @@ CREATE TABLE `packaging` (
`packagingReturnFk` int(11) DEFAULT NULL,
`lower` int(11) DEFAULT NULL,
`upload` int(11) DEFAULT NULL,
- `base` decimal(10,2) DEFAULT NULL,
+ `base` decimal(10,2) NOT NULL DEFAULT 0.00,
`itemFk` int(11) DEFAULT NULL,
- `price` decimal(10,2) NOT NULL,
+ `price` decimal(10,2) NOT NULL DEFAULT 0.00,
`isBox` tinyint(1) NOT NULL DEFAULT 0,
`cubicPackage` decimal(10,2) DEFAULT NULL,
`returnCost` decimal(10,2) NOT NULL DEFAULT 0.00,
@@ -32294,19 +31296,7 @@ DELIMITER ;;
BEFORE INSERT ON `packaging`
FOR EACH ROW
BEGIN
- DECLARE vAmount INT DEFAULT NULL;
-
- IF NEW.isPackageReturnable THEN
- SELECT cb.freightPackagingFull INTO vAmount
- FROM returnBuckets cb
- WHERE cb.id = NEW.packagingReturnFk;
-
- SET NEW.value = IF (vAmount IS NULL,
- NEW.base,
- vAmount / IFNULL(NEW.upload, 0) + NEW.base);
- ELSE
- SET NEW.value = NEW.price + NEW.base;
- END IF;
+ SET NEW.value = packaging_calculate(NEW.isPackageReturnable, NEW.packagingReturnFk, NEW.base, NEW.price, NEW.upload);
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
@@ -32326,19 +31316,7 @@ DELIMITER ;;
BEFORE UPDATE ON `packaging`
FOR EACH ROW
BEGIN
- DECLARE vAmount INT DEFAULT NULL;
-
- IF NEW.isPackageReturnable THEN
- SELECT cb.freightPackagingFull INTO vAmount
- FROM returnBuckets cb
- WHERE cb.id = NEW.packagingReturnFk;
-
- SET NEW.value = IF (vAmount IS NULL,
- NEW.base,
- vAmount / IFNULL(NEW.upload, 0) + NEW.base);
- ELSE
- SET NEW.value = NEW.price + NEW.base;
- END IF;
+ SET NEW.value = packaging_calculate(NEW.isPackageReturnable, NEW.packagingReturnFk, NEW.base, NEW.price, NEW.upload);
END */;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
@@ -32388,7 +31366,7 @@ CREATE TABLE `packagingGifts` (
CONSTRAINT `PackagingGifts_FK` FOREIGN KEY (`provinceFk`) REFERENCES `province` (`id`),
CONSTRAINT `PackagingGifts_FK_1` FOREIGN KEY (`warehouseFk`) REFERENCES `warehouse` (`id`),
CONSTRAINT `PackagingGifts_FK_2` FOREIGN KEY (`countryFk`) REFERENCES `country` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -32436,6 +31414,7 @@ CREATE TABLE `packingSite` (
`hostFk` int(11) NOT NULL,
`printerFk` tinyint(3) unsigned DEFAULT NULL,
`collectionFk` int(11) DEFAULT NULL COMMENT 'Last collection packed on this site',
+ `monitorId` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `packingSite_UN` (`code`),
KEY `packingSite_FK_1` (`printerFk`),
@@ -32444,7 +31423,24 @@ CREATE TABLE `packingSite` (
CONSTRAINT `packingSite_FK` FOREIGN KEY (`hostFk`) REFERENCES `host` (`id`),
CONSTRAINT `packingSite_FK_1` FOREIGN KEY (`printerFk`) REFERENCES `printer` (`id`),
CONSTRAINT `packingSite_FK_2` FOREIGN KEY (`collectionFk`) REFERENCES `collection` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `packingSiteConfig`
+--
+
+DROP TABLE IF EXISTS `packingSiteConfig`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `packingSiteConfig` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `shinobiUrl` varchar(255) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `shinobiToken` varchar(255) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `shinobiGroupKey` varchar(255) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `avgBoxingTime` int(3) DEFAULT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -32473,7 +31469,7 @@ CREATE TABLE `packingSiteLog` (
CONSTRAINT `packingSiteLog_FK_1` FOREIGN KEY (`printerModelFk`) REFERENCES `printerModel` (`code`) ON UPDATE CASCADE,
CONSTRAINT `packingSiteLog_FK_2` FOREIGN KEY (`packingSiteFk`) REFERENCES `packingSite` (`code`) ON UPDATE CASCADE,
CONSTRAINT `packingSiteLog_FK_4` FOREIGN KEY (`typeErrorFk`) REFERENCES `packingSiteTypeError` (`code`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -32490,6 +31486,21 @@ CREATE TABLE `packingSiteTypeError` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
+--
+-- Table structure for table `paperSize`
+--
+
+DROP TABLE IF EXISTS `paperSize`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `paperSize` (
+ `code` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `color` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `alias` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
+ PRIMARY KEY (`code`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
--
-- Table structure for table `parking`
--
@@ -32627,7 +31638,6 @@ CREATE TABLE `payment` (
`companyFk` smallint(5) unsigned NOT NULL DEFAULT 442,
`created` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
`isConciliated` tinyint(1) unsigned zerofill NOT NULL DEFAULT 0,
- `exchangeInsuranceFk__` int(11) DEFAULT NULL,
`dueDated` date DEFAULT NULL,
`workerFk` int(10) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
@@ -32635,7 +31645,6 @@ CREATE TABLE `payment` (
KEY `id_banco` (`bankFk`),
KEY `id_moneda` (`currencyFk`),
KEY `pay_met` (`payMethodFk`),
- KEY `fk_pago_pago_sdc1_idx` (`exchangeInsuranceFk__`),
KEY `pagoDueDatedIdx` (`dueDated`),
KEY `pago_ibfk_3` (`supplierFk`),
KEY `payment_FK` (`workerFk`),
@@ -32645,7 +31654,7 @@ CREATE TABLE `payment` (
CONSTRAINT `payment_FK` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`),
CONSTRAINT `payment_ibfk_1` FOREIGN KEY (`companyFk`) REFERENCES `company` (`id`) ON UPDATE CASCADE,
CONSTRAINT `payment_ibfk_2` FOREIGN KEY (`bankFk`) REFERENCES `accounting` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -32832,7 +31841,7 @@ CREATE TABLE `pcs` (
`pallet` int(11) DEFAULT NULL,
`box` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -32869,7 +31878,7 @@ CREATE TABLE `pedidosInternos` (
`idArticle` int(11) DEFAULT NULL,
`quantity` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -32894,42 +31903,11 @@ DROP TABLE IF EXISTS `personMedia`;
/*!50001 DROP VIEW IF EXISTS `personMedia`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `personMedia` (
- `workerFk` tinyint NOT NULL,
- `mediaValue` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `personMedia` AS SELECT
+ 1 AS `workerFk`,
+ 1 AS `mediaValue` */;
SET character_set_client = @saved_cs_client;
---
--- Table structure for table `person__`
---
-
-DROP TABLE IF EXISTS `person__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `person__` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `firstname` varchar(20) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `surnames` varchar(60) COLLATE utf8mb3_unicode_ci NOT NULL,
- `fi` varchar(15) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `birth` date DEFAULT NULL,
- `readerId__` int(11) DEFAULT NULL,
- `workerFk` int(10) unsigned DEFAULT NULL,
- `isDisable` tinyint(1) NOT NULL DEFAULT 0,
- `isFreelance` tinyint(1) NOT NULL DEFAULT 0,
- `isSsDiscounted` tinyint(1) NOT NULL DEFAULT 0,
- `nickname` varchar(15) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `p2` longtext COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `sex` enum('M','F') COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'F' COMMENT 'M Masculino F Femenino',
- PRIMARY KEY (`id`),
- UNIQUE KEY `nif` (`fi`),
- UNIQUE KEY `person_UN` (`readerId__`),
- KEY `nifIndex` (`fi`),
- KEY `workerFk_idx` (`workerFk`),
- CONSTRAINT `Person_ibfk_1` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
--
-- Table structure for table `personalProtectionEquipment`
--
@@ -33007,12 +31985,11 @@ DROP TABLE IF EXISTS `phoneBook`;
/*!50001 DROP VIEW IF EXISTS `phoneBook`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `phoneBook` (
- `Tipo` tinyint NOT NULL,
- `Id` tinyint NOT NULL,
- `Cliente` tinyint NOT NULL,
- `Telefono` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `phoneBook` AS SELECT
+ 1 AS `Tipo`,
+ 1 AS `Id`,
+ 1 AS `Cliente`,
+ 1 AS `Telefono` */;
SET character_set_client = @saved_cs_client;
--
@@ -33206,7 +32183,7 @@ CREATE TABLE `ppe` (
CONSTRAINT `ppe_fk5` FOREIGN KEY (`account`) REFERENCES `pgcMaster` (`code`) ON UPDATE CASCADE,
CONSTRAINT `ppe_fk6` FOREIGN KEY (`endowment`) REFERENCES `pgcMaster` (`code`) ON UPDATE CASCADE,
CONSTRAINT `ppe_fk7` FOREIGN KEY (`elementAccount`) REFERENCES `pgcMaster` (`code`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Property, plant & equipment\nInmvolizado, en español';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Property, plant & equipment\nInmvolizado, en español';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -33226,7 +32203,7 @@ CREATE TABLE `ppeComponent` (
KEY `ppeComponent_fk2_idx` (`invoiceInFk`),
CONSTRAINT `ppeComponent_fk1` FOREIGN KEY (`ppeFk`) REFERENCES `ppe` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `ppeComponent_fk2` FOREIGN KEY (`invoiceInFk`) REFERENCES `invoiceIn` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -33245,7 +32222,7 @@ CREATE TABLE `ppeDMS` (
KEY `ppeDMS_fk2_idx` (`ppeFk`),
CONSTRAINT `ppeDMS_fk1` FOREIGN KEY (`dmsFk`) REFERENCES `dms` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `ppeDMS_fk2` FOREIGN KEY (`ppeFk`) REFERENCES `ppe` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -33259,7 +32236,7 @@ CREATE TABLE `ppeGroup` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`description` varchar(45) COLLATE utf8mb3_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Tipo de inmovilizado';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Tipo de inmovilizado';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -33288,7 +32265,7 @@ CREATE TABLE `ppePlan` (
`rate` decimal(3,2) NOT NULL DEFAULT 1.00,
`days` int(11) NOT NULL DEFAULT 365,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Plan de amortizacion para la tabla ppe';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Plan de amortizacion para la tabla ppe';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -33386,7 +32363,7 @@ CREATE TABLE `printQueue` (
`printerFk` tinyint(3) unsigned DEFAULT NULL,
`priorityFk` tinyint(3) unsigned NOT NULL DEFAULT 3 COMMENT '1 - high, 2 - normal, 3 - low',
`reportFk` tinyint(3) unsigned DEFAULT NULL,
- `statusCode` enum('queued','error','printing') COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'queued',
+ `statusCode` enum('queued','error','printing','printed') COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'queued',
`started` datetime DEFAULT NULL,
`finished` datetime DEFAULT NULL,
`workerFk` int(11) DEFAULT NULL,
@@ -33402,7 +32379,7 @@ CREATE TABLE `printQueue` (
CONSTRAINT `printQueue_printerFk` FOREIGN KEY (`printerFk`) REFERENCES `printer` (`id`) ON UPDATE CASCADE,
CONSTRAINT `printQueue_priorityFk` FOREIGN KEY (`priorityFk`) REFERENCES `queuePriority` (`id`) ON UPDATE CASCADE,
CONSTRAINT `printQueue_report` FOREIGN KEY (`reportFk`) REFERENCES `report` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -33436,38 +32413,6 @@ CREATE TABLE `printQueueConfig` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
---
--- Table structure for table `printServerQueue2__`
---
-
-DROP TABLE IF EXISTS `printServerQueue2__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `printServerQueue2__` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `printerFk` tinyint(3) unsigned DEFAULT NULL,
- `priorityFk` tinyint(3) unsigned DEFAULT NULL,
- `reportFk` tinyint(3) unsigned DEFAULT 0,
- `statusFk` tinyint(3) unsigned DEFAULT 1,
- `started` datetime DEFAULT NULL,
- `finished` datetime DEFAULT NULL,
- `param1` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `workerFk` int(11) DEFAULT NULL,
- `param2` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `param3` text COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `error` text COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `Id_Impresora_2` (`printerFk`,`priorityFk`,`reportFk`,`statusFk`,`param1`,`workerFk`,`param2`),
- KEY `Id_estado` (`statusFk`),
- KEY `Id_Impresora` (`printerFk`),
- KEY `Id_Informe` (`reportFk`),
- KEY `Id_Prioridad` (`priorityFk`),
- KEY `Id_Trabajador` (`workerFk`),
- CONSTRAINT `printServerQueue2_FK_1` FOREIGN KEY (`printerFk`) REFERENCES `printer` (`id`),
- CONSTRAINT `printServerQueue2_FK_2` FOREIGN KEY (`priorityFk`) REFERENCES `queuePriority` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
--
-- Table structure for table `printer`
--
@@ -33485,6 +32430,7 @@ CREATE TABLE `printer` (
`reference` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`isLabeler` tinyint(1) DEFAULT 0 COMMENT 'Indica si es impresora de etiquetas',
`sectorFk` int(11) DEFAULT NULL,
+ `paperSizeFk` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `printer_UN` (`reference`),
UNIQUE KEY `printer_UN1` (`macWifi`),
@@ -33492,7 +32438,9 @@ CREATE TABLE `printer` (
KEY `printer_FK` (`modelFk`),
KEY `printer_sectorFk_idx` (`id`,`sectorFk`),
KEY `printer_sectorFk` (`sectorFk`),
+ KEY `printer_FK_1` (`paperSizeFk`),
CONSTRAINT `printer_FK` FOREIGN KEY (`modelFk`) REFERENCES `printerModel` (`code`) ON UPDATE CASCADE,
+ CONSTRAINT `printer_FK_1` FOREIGN KEY (`paperSizeFk`) REFERENCES `paperSize` (`code`),
CONSTRAINT `printer_sectorFk` FOREIGN KEY (`sectorFk`) REFERENCES `sector` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -33566,6 +32514,8 @@ CREATE TABLE `productionConfig` (
`maxCollectionWithoutUser` int(11) NOT NULL DEFAULT 1 COMMENT 'Número máximo de colecciones que pueden estar sin usuario, haciendo de caché....',
`pendingCollectionsOrder` tinyint(3) unsigned DEFAULT 8,
`pendingCollectionsAge` tinyint(3) unsigned DEFAULT 6,
+ `maxNotAssignedCollectionLifeTime` time NOT NULL DEFAULT '00:10:00' COMMENT 'Tiempo de vida de las colecciones sin asignar. Cuando se supera son eliminadas',
+ `maxProductionScopeDays` int(11) NOT NULL DEFAULT 1 COMMENT 'maximo numero de dias en F11',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Recoge los parámetros que condicionan la producción';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -33578,13 +32528,12 @@ DROP TABLE IF EXISTS `productionVolume`;
/*!50001 DROP VIEW IF EXISTS `productionVolume`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `productionVolume` (
- `hora` tinyint NOT NULL,
- `minuto` tinyint NOT NULL,
- `cm3` tinyint NOT NULL,
- `warehouseFk` tinyint NOT NULL,
- `created` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `productionVolume` AS SELECT
+ 1 AS `hora`,
+ 1 AS `minuto`,
+ 1 AS `cm3`,
+ 1 AS `warehouseFk`,
+ 1 AS `created` */;
SET character_set_client = @saved_cs_client;
--
@@ -33595,10 +32544,9 @@ DROP TABLE IF EXISTS `productionVolume_LastHour`;
/*!50001 DROP VIEW IF EXISTS `productionVolume_LastHour`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `productionVolume_LastHour` (
- `m3` tinyint NOT NULL,
- `warehouseFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `productionVolume_LastHour` AS SELECT
+ 1 AS `m3`,
+ 1 AS `warehouseFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -33615,7 +32563,7 @@ CREATE TABLE `professionalCategory` (
`salaryorSeniority` decimal(10,2) DEFAULT NULL,
`year` int(2) DEFAULT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -33629,7 +32577,7 @@ CREATE TABLE `profileType` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(15) COLLATE utf8mb3_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -33651,14 +32599,17 @@ CREATE TABLE `project` (
`companyFk` smallint(5) unsigned NOT NULL DEFAULT 442,
`location` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`amount` decimal(15,2) DEFAULT NULL,
+ `stateFk` varchar(25) COLLATE utf8mb3_unicode_ci DEFAULT 'open',
PRIMARY KEY (`id`),
KEY `project_FK` (`userFk`),
KEY `project_FK_1` (`departmentFk`),
KEY `project_FK_2` (`companyFk`),
+ KEY `project_FK_3` (`stateFk`),
CONSTRAINT `project_FK` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `project_FK_1` FOREIGN KEY (`departmentFk`) REFERENCES `department` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT `project_FK_2` FOREIGN KEY (`companyFk`) REFERENCES `company` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Tabla master de proyectos';
+ CONSTRAINT `project_FK_2` FOREIGN KEY (`companyFk`) REFERENCES `company` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
+ CONSTRAINT `project_FK_3` FOREIGN KEY (`stateFk`) REFERENCES `projectState` (`code`)
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Tabla master de proyectos';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -33679,7 +32630,7 @@ CREATE TABLE `projectNotes` (
KEY `projectNotes_FK_1` (`userFk`),
CONSTRAINT `projectNotes_FK` FOREIGN KEY (`projectFk`) REFERENCES `project` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `projectNotes_FK_1` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Historico de notas para project';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Historico de notas para project';
/*!40101 SET character_set_client = @saved_cs_client */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -33708,6 +32659,20 @@ DELIMITER ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+--
+-- Table structure for table `projectState`
+--
+
+DROP TABLE IF EXISTS `projectState`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `projectState` (
+ `code` varchar(25) COLLATE utf8mb3_unicode_ci NOT NULL,
+ `description` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
+ PRIMARY KEY (`code`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
--
-- Table structure for table `property`
--
@@ -33744,7 +32709,7 @@ CREATE TABLE `property` (
CONSTRAINT `property_FK` FOREIGN KEY (`propertyGroupFk`) REFERENCES `propertyGroup` (`id`) ON UPDATE CASCADE,
CONSTRAINT `property_FK_1` FOREIGN KEY (`townFk`) REFERENCES `town` (`id`) ON UPDATE CASCADE,
CONSTRAINT `property_company` FOREIGN KEY (`companyFk`) REFERENCES `company` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -33763,7 +32728,7 @@ CREATE TABLE `propertyDms` (
KEY `propertyDms_FK_1` (`propertyFk`),
CONSTRAINT `propertyDms_FK` FOREIGN KEY (`dmsFk`) REFERENCES `dms` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `propertyDms_FK_1` FOREIGN KEY (`propertyFk`) REFERENCES `property` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -33777,7 +32742,7 @@ CREATE TABLE `propertyGroup` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`description` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -33798,7 +32763,7 @@ CREATE TABLE `propertyNotes` (
KEY `propertyNotes_FK` (`propertyFk`),
CONSTRAINT `propertyNotes_FK` FOREIGN KEY (`propertyFk`) REFERENCES `property` (`id`),
CONSTRAINT `propertyNotes_FK_1` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -34019,7 +32984,6 @@ CREATE TABLE `receipt` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`invoiceFk` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'nombre incorrecto, renombrar a description',
`amountPaid` decimal(10,2) NOT NULL DEFAULT 0.00,
- `amountUnpaid__` decimal(10,2) NOT NULL DEFAULT 0.00,
`payed` datetime DEFAULT NULL,
`workerFk` int(10) unsigned DEFAULT NULL,
`bankFk` int(11) DEFAULT 0,
@@ -34178,7 +33142,7 @@ CREATE TABLE `recipe` (
KEY `recipe_ix_2` (`itemFk`),
KEY `recipe_FK` (`inkFk`),
CONSTRAINT `recipe_FK` FOREIGN KEY (`inkFk`) REFERENCES `ink` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -34199,7 +33163,7 @@ CREATE TABLE `recipe_log` (
KEY `recipe_log_ix3` (`selected_ItemFk`),
CONSTRAINT `recipe_log_FK` FOREIGN KEY (`recipe_ItemFk`) REFERENCES `item` (`id`) ON UPDATE CASCADE,
CONSTRAINT `recipe_log_FK_1` FOREIGN KEY (`selected_ItemFk`) REFERENCES `item` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Almacena las decisiones tomadas al generar recetas';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Almacena las decisiones tomadas al generar recetas';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -34279,7 +33243,11 @@ DROP TABLE IF EXISTS `report`;
CREATE TABLE `report` (
`id` tinyint(3) unsigned NOT NULL,
`name` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- PRIMARY KEY (`id`)
+ `paperSizeFk` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
+ `method` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'Salix method',
+ PRIMARY KEY (`id`),
+ KEY `report_FK` (`paperSizeFk`),
+ CONSTRAINT `report_FK` FOREIGN KEY (`paperSizeFk`) REFERENCES `paperSize` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -34296,7 +33264,7 @@ CREATE TABLE `returnBuckets` (
`freightPackagingEmpty` double NOT NULL DEFAULT 0,
`freightPackagingFull` double NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -34307,12 +33275,11 @@ DROP TABLE IF EXISTS `role`;
/*!50001 DROP VIEW IF EXISTS `role`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `role` (
- `id` tinyint NOT NULL,
- `name` tinyint NOT NULL,
- `description` tinyint NOT NULL,
- `hasLogin` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `role` AS SELECT
+ 1 AS `id`,
+ 1 AS `name`,
+ 1 AS `description`,
+ 1 AS `hasLogin` */;
SET character_set_client = @saved_cs_client;
--
@@ -34477,8 +33444,9 @@ CREATE TABLE `routeAction` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(45) COLLATE utf8mb3_unicode_ci NOT NULL,
`price` decimal(10,2) DEFAULT NULL,
+ `isMainlineDelivered` tinyint(4) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -34502,9 +33470,9 @@ CREATE TABLE `routeCommission` (
PRIMARY KEY (`id`),
KEY `routeCommission_routeFk_idx` (`routeFk`),
KEY `routeCommission_workCenterFk_idx` (`workCenterFk`),
- CONSTRAINT `routeCommission_routeFk` FOREIGN KEY (`routeFk`) REFERENCES `route` (`id`) ON UPDATE CASCADE,
+ CONSTRAINT `routeCommission_routeFk` FOREIGN KEY (`routeFk`) REFERENCES `route` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `routeCommission_workCenterFk` FOREIGN KEY (`workCenterFk`) REFERENCES `workCenter` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -34525,7 +33493,7 @@ CREATE TABLE `routeComplement` (
KEY `fgn_routeActionFk_idx` (`routeActionFk`),
CONSTRAINT `fgn_routeActionFk` FOREIGN KEY (`routeActionFk`) REFERENCES `routeAction` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `fgn_workerFk` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -34578,71 +33546,13 @@ CREATE TABLE `routeConfig` (
`cutoffDated` date DEFAULT NULL COMMENT 'Fecha a partir de la cual se autoriza calcular la comisión',
`defaultWorkCenterFk` int(11) DEFAULT 9 COMMENT 'Para el cálculo de las comisiones, en caso de el creador de la ruta no tenga workCenter',
`kmMax` int(11) DEFAULT 4000 COMMENT 'Máximo número de km validos para una ruta',
+ `truckerBusinessProfessionalCategoryFk` int(11) NOT NULL DEFAULT 42,
PRIMARY KEY (`id`),
KEY `routeConfig_FK` (`defaultCompanyFk`),
CONSTRAINT `routeConfig_FK` FOREIGN KEY (`defaultCompanyFk`) REFERENCES `company` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
---
--- Table structure for table `routeGate__`
---
-
-DROP TABLE IF EXISTS `routeGate__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `routeGate__` (
- `deviceId` varchar(30) CHARACTER SET utf8mb3 NOT NULL,
- `displayText` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `status` set('idle','doing','done','') CHARACTER SET utf8mb3 DEFAULT 'idle',
- `gateAreaFk` int(11) NOT NULL DEFAULT 1,
- `routeFk` int(11) NOT NULL,
- `freeTickets` int(11) DEFAULT NULL,
- `expeditions` int(11) DEFAULT NULL,
- `scanned` int(11) DEFAULT NULL,
- `flag` blob DEFAULT NULL,
- `pallets` int(11) DEFAULT NULL,
- `lastScanned` datetime DEFAULT NULL,
- `ready` tinyint(4) NOT NULL DEFAULT 0,
- `id` int(11) NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`id`),
- UNIQUE KEY `routeFk_UNIQUE` (`routeFk`),
- KEY `routeGate_fk1_idx` (`gateAreaFk`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `vn`.`routeGateBeforeUpdate`
- BEFORE UPDATE ON `routeGate__` FOR EACH ROW
-BEGIN
- IF (NOT (NEW.expeditions <=> OLD.expeditions)
- OR NOT (NEW.scanned <=> OLD.scanned))
- AND NEW.status <=> OLD.status
- THEN
- IF NEW.expeditions = 0
- THEN
- SET NEW.status = 'idle';
- ELSEIF NEW.expeditions = NEW.scanned
- THEN
- SET NEW.status = 'done';
- ELSE
- SET NEW.status = 'doing';
- END IF;
- END IF;
-END */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-
--
-- Table structure for table `routeLoadWorker`
--
@@ -34684,7 +33594,7 @@ CREATE TABLE `routeLog` (
KEY `userFk` (`userFk`),
CONSTRAINT `routeLog_ibfk_1` FOREIGN KEY (`originFk`) REFERENCES `route` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `routeLog_ibfk_2` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -34701,13 +33611,13 @@ CREATE TABLE `routeRecalc` (
/*!40101 SET character_set_client = @saved_cs_client */;
--
--- Table structure for table `routeUserPercentage`
+-- Table structure for table `routeUserPercentage__`
--
-DROP TABLE IF EXISTS `routeUserPercentage`;
+DROP TABLE IF EXISTS `routeUserPercentage__`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `routeUserPercentage` (
+CREATE TABLE `routeUserPercentage__` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`workerFk` int(10) unsigned NOT NULL,
`percentage` decimal(10,2) NOT NULL,
@@ -34715,7 +33625,7 @@ CREATE TABLE `routeUserPercentage` (
PRIMARY KEY (`id`),
KEY `routeUserPercentageFk_idx` (`workerFk`),
CONSTRAINT `routeUserPercentageFk` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -34761,15 +33671,14 @@ DROP TABLE IF EXISTS `routesReduced`;
/*!50001 DROP VIEW IF EXISTS `routesReduced`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `routesReduced` (
- `description` tinyint NOT NULL,
- `name` tinyint NOT NULL,
- `routeFk` tinyint NOT NULL,
- `ETD` tinyint NOT NULL,
- `bufferFk` tinyint NOT NULL,
- `beachFk` tinyint NOT NULL,
- `itempackingTypeFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `routesReduced` AS SELECT
+ 1 AS `description`,
+ 1 AS `name`,
+ 1 AS `routeFk`,
+ 1 AS `ETD`,
+ 1 AS `bufferFk`,
+ 1 AS `beachFk`,
+ 1 AS `itempackingTypeFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -34884,35 +33793,35 @@ DELIMITER ;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+/*!50003 SET character_set_client = utf8mb3 */ ;
+/*!50003 SET character_set_results = utf8mb3 */ ;
+/*!50003 SET collation_connection = utf8mb3_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `vn`.`sale_afterUpdate`
AFTER UPDATE ON `sale`
FOR EACH ROW
BEGIN
- DECLARE vIsToSendMail BOOL;
+ DECLARE vIsToSendMail BOOL;
DECLARE vPickedLines INT;
DECLARE vCollectionFk INT;
DECLARE vUserRole VARCHAR(255);
IF !(NEW.id <=> OLD.id)
- OR !(NEW.ticketFk <=> OLD.ticketFk)
- OR !(NEW.itemFk <=> OLD.itemFk)
- OR !(NEW.quantity <=> OLD.quantity)
- OR !(NEW.created <=> OLD.created)
- OR !(NEW.isPicked <=> OLD.isPicked) THEN
+ OR !(NEW.ticketFk <=> OLD.ticketFk)
+ OR !(NEW.itemFk <=> OLD.itemFk)
+ OR !(NEW.quantity <=> OLD.quantity)
+ OR !(NEW.created <=> OLD.created)
+ OR !(NEW.isPicked <=> OLD.isPicked) THEN
CALL stock.log_add('sale', NEW.id, OLD.id);
END IF;
- IF !(NEW.price <=> OLD.price)
- OR !(NEW.ticketFk <=> OLD.ticketFk)
- OR !(NEW.itemFk <=> OLD.itemFk)
- OR !(NEW.quantity <=> OLD.quantity)
- OR !(NEW.discount <=> OLD.discount) THEN
+ IF !(NEW.price <=> OLD.price)
+ OR !(NEW.ticketFk <=> OLD.ticketFk)
+ OR !(NEW.itemFk <=> OLD.itemFk)
+ OR !(NEW.quantity <=> OLD.quantity)
+ OR !(NEW.discount <=> OLD.discount) THEN
CALL ticket_requestRecalc(NEW.ticketFk);
CALL ticket_requestRecalc(OLD.ticketFk);
END IF;
@@ -34931,7 +33840,7 @@ BEGIN
JOIN vn.state s ON s.id = i.state_id
WHERE s.code='PACKED'
AND i.Id_Ticket = OLD.ticketFk
- AND vUserRole IN ('salesPerson', 'salesBoss')
+ AND vUserRole IN ('salesPerson', 'salesTeamBoss')
LIMIT 1;
IF vIsToSendMail THEN
@@ -34948,17 +33857,17 @@ BEGIN
INSERT INTO saleComponent(saleFk, componentFk, value)
SELECT NEW.id, cm.id, sc.value
FROM saleComponent sc
- JOIN component cd ON cd.id = sc.componentFk
- JOIN component cm ON cm.code = 'mana'
- WHERE saleFk = NEW.id AND cd.code = 'lastUnitsDiscount'
- ON DUPLICATE KEY UPDATE value = sc.value + VALUES(value);
+ JOIN component cd ON cd.id = sc.componentFk
+ JOIN component cm ON cm.code = 'mana'
+ WHERE saleFk = NEW.id AND cd.code = 'lastUnitsDiscount'
+ ON DUPLICATE KEY UPDATE value = sc.value + VALUES(value);
DELETE sc.*
FROM vn.saleComponent sc
- JOIN component c ON c.id = sc.componentFk
- WHERE saleFk = NEW.id AND c.code = 'lastUnitsDiscount';
+ JOIN component c ON c.id = sc.componentFk
+ WHERE saleFk = NEW.id AND c.code = 'lastUnitsDiscount';
END IF;
- INSERT IGNORE INTO `vn`.`routeRecalc` (`routeFk`)
+ INSERT IGNORE INTO `vn`.`routeRecalc` (`routeFk`)
SELECT r.id
FROM vn.sale s
JOIN vn.ticket t ON t.id = s.ticketFk
@@ -34982,7 +33891,6 @@ BEGIN
UPDATE vn.collection c
JOIN vn.ticketCollection tc ON tc.collectionFk = c.id AND tc.ticketFk = NEW.ticketFk
SET c.saleTotalCount = c.saleTotalCount + IF(OLD.quantity = 0, 1, -1);
-
END IF;
END */;;
DELIMITER ;
@@ -35203,16 +34111,15 @@ DROP TABLE IF EXISTS `saleCost`;
/*!50001 DROP VIEW IF EXISTS `saleCost`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `saleCost` (
- `itemFk` tinyint NOT NULL,
- `ticketFk` tinyint NOT NULL,
- `concept` tinyint NOT NULL,
- `quantity` tinyint NOT NULL,
- `discount` tinyint NOT NULL,
- `price` tinyint NOT NULL,
- `component` tinyint NOT NULL,
- `coste` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `saleCost` AS SELECT
+ 1 AS `itemFk`,
+ 1 AS `ticketFk`,
+ 1 AS `concept`,
+ 1 AS `quantity`,
+ 1 AS `discount`,
+ 1 AS `price`,
+ 1 AS `component`,
+ 1 AS `coste` */;
SET character_set_client = @saved_cs_client;
--
@@ -35232,7 +34139,7 @@ CREATE TABLE `saleGoal` (
`goal` decimal(10,2) DEFAULT NULL,
`goalType` smallint(6) DEFAULT NULL COMMENT 'grado',
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -35265,7 +34172,7 @@ CREATE TABLE `saleGroupDetail` (
`saleFk` int(11) NOT NULL,
`saleGroupFk` int(11) NOT NULL,
PRIMARY KEY (`id`),
- KEY `saleGroupDetail_FK` (`saleFk`),
+ UNIQUE KEY `saleGroupDetail_UN` (`saleFk`,`saleGroupFk`),
KEY `saleGroupDetail_FK_1` (`saleGroupFk`),
CONSTRAINT `saleGroupDetail_FK` FOREIGN KEY (`saleFk`) REFERENCES `sale` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `saleGroupDetail_FK_1` FOREIGN KEY (`saleGroupFk`) REFERENCES `saleGroup` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
@@ -35273,23 +34180,19 @@ CREATE TABLE `saleGroupDetail` (
/*!40101 SET character_set_client = @saved_cs_client */;
--
--- Table structure for table `saleItemShelving__`
+-- Temporary table structure for view `saleLabel`
--
-DROP TABLE IF EXISTS `saleItemShelving__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `saleItemShelving__` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `saleFk` int(11) NOT NULL,
- `itemShelvingFk` int(10) unsigned NOT NULL,
- `quantity` int(11) NOT NULL DEFAULT 0,
- `isPicked` tinyint(4) NOT NULL DEFAULT 0,
- `ubication` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `saleItemShelving_fk1_idx` (`itemShelvingFk`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
+DROP TABLE IF EXISTS `saleLabel`;
+/*!50001 DROP VIEW IF EXISTS `saleLabel`*/;
+SET @saved_cs_client = @@character_set_client;
+SET character_set_client = utf8;
+/*!50001 CREATE VIEW `saleLabel` AS SELECT
+ 1 AS `saleFk`,
+ 1 AS `label`,
+ 1 AS `stem`,
+ 1 AS `created` */;
+SET character_set_client = @saved_cs_client;
--
-- Table structure for table `saleMistake`
@@ -35311,7 +34214,7 @@ CREATE TABLE `saleMistake` (
CONSTRAINT `saleMistake_fk1` FOREIGN KEY (`saleFk`) REFERENCES `sale` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `saleMistake_fk2` FOREIGN KEY (`userFk`) REFERENCES `worker` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `saleMistake_fk3` FOREIGN KEY (`typeFk`) REFERENCES `mistakeType` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -35322,15 +34225,14 @@ DROP TABLE IF EXISTS `saleMistakeList`;
/*!50001 DROP VIEW IF EXISTS `saleMistakeList`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `saleMistakeList` (
- `saleFk` tinyint NOT NULL,
- `workerFk` tinyint NOT NULL,
- `sacador` tinyint NOT NULL,
- `created` tinyint NOT NULL,
- `revisador` tinyint NOT NULL,
- `description` tinyint NOT NULL,
- `controlled` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `saleMistakeList` AS SELECT
+ 1 AS `saleFk`,
+ 1 AS `workerFk`,
+ 1 AS `sacador`,
+ 1 AS `created`,
+ 1 AS `revisador`,
+ 1 AS `description`,
+ 1 AS `controlled` */;
SET character_set_client = @saved_cs_client;
--
@@ -35341,38 +34243,16 @@ DROP TABLE IF EXISTS `saleMistake_list__2`;
/*!50001 DROP VIEW IF EXISTS `saleMistake_list__2`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `saleMistake_list__2` (
- `saleFk` tinyint NOT NULL,
- `workerFk` tinyint NOT NULL,
- `sacador` tinyint NOT NULL,
- `created` tinyint NOT NULL,
- `revisador` tinyint NOT NULL,
- `description` tinyint NOT NULL,
- `controlled` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `saleMistake_list__2` AS SELECT
+ 1 AS `saleFk`,
+ 1 AS `workerFk`,
+ 1 AS `sacador`,
+ 1 AS `created`,
+ 1 AS `revisador`,
+ 1 AS `description`,
+ 1 AS `controlled` */;
SET character_set_client = @saved_cs_client;
---
--- Table structure for table `saleParking__`
---
-
-DROP TABLE IF EXISTS `saleParking__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `saleParking__` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `saleFk` int(11) NOT NULL,
- `parkingFk` int(11) NOT NULL,
- `created` timestamp NOT NULL DEFAULT current_timestamp(),
- `userFk` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `saleParking_FK` (`saleFk`),
- KEY `saleParking_FK_1` (`parkingFk`),
- CONSTRAINT `saleParking_FK` FOREIGN KEY (`saleFk`) REFERENCES `sale` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT `saleParking_FK_1` FOREIGN KEY (`parkingFk`) REFERENCES `parking` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='ubica las lineas de venta preparadas previamente';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
--
-- Temporary table structure for view `saleSaleTracking`
--
@@ -35381,9 +34261,8 @@ DROP TABLE IF EXISTS `saleSaleTracking`;
/*!50001 DROP VIEW IF EXISTS `saleSaleTracking`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `saleSaleTracking` (
- `saleFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `saleSaleTracking` AS SELECT
+ 1 AS `saleFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -35427,7 +34306,7 @@ CREATE TABLE `saleTracking` (
KEY `saleTracking_fk2_idx` (`actionFk`),
CONSTRAINT `fgnStateFk` FOREIGN KEY (`stateFk`) REFERENCES `state` (`id`) ON UPDATE CASCADE,
CONSTRAINT `saleTracking_FK` FOREIGN KEY (`saleFk`) REFERENCES `sale` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT `saleTracking_FK_1` FOREIGN KEY (`actionFk`) REFERENCES `vncontrol`.`accion` (`accion_id`) ON UPDATE CASCADE
+ CONSTRAINT `saleTracking_FK_1` FOREIGN KEY (`actionFk`) REFERENCES `ticketTrackingState` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
@@ -35495,21 +34374,20 @@ DROP TABLE IF EXISTS `saleValue`;
/*!50001 DROP VIEW IF EXISTS `saleValue`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `saleValue` (
- `warehouse` tinyint NOT NULL,
- `client` tinyint NOT NULL,
- `clientTypeFk` tinyint NOT NULL,
- `buyer` tinyint NOT NULL,
- `itemTypeFk` tinyint NOT NULL,
- `family` tinyint NOT NULL,
- `itemFk` tinyint NOT NULL,
- `concept` tinyint NOT NULL,
- `quantity` tinyint NOT NULL,
- `cost` tinyint NOT NULL,
- `value` tinyint NOT NULL,
- `year` tinyint NOT NULL,
- `week` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `saleValue` AS SELECT
+ 1 AS `warehouse`,
+ 1 AS `client`,
+ 1 AS `clientTypeFk`,
+ 1 AS `buyer`,
+ 1 AS `itemTypeFk`,
+ 1 AS `family`,
+ 1 AS `itemFk`,
+ 1 AS `concept`,
+ 1 AS `quantity`,
+ 1 AS `cost`,
+ 1 AS `value`,
+ 1 AS `year`,
+ 1 AS `week` */;
SET character_set_client = @saved_cs_client;
--
@@ -35520,24 +34398,23 @@ DROP TABLE IF EXISTS `saleVolume`;
/*!50001 DROP VIEW IF EXISTS `saleVolume`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `saleVolume` (
- `ticketFk` tinyint NOT NULL,
- `saleFk` tinyint NOT NULL,
- `litros` tinyint NOT NULL,
- `routeFk` tinyint NOT NULL,
- `shipped` tinyint NOT NULL,
- `landed` tinyint NOT NULL,
- `volume` tinyint NOT NULL,
- `physicalWeight` tinyint NOT NULL,
- `weight` tinyint NOT NULL,
- `physicalVolume` tinyint NOT NULL,
- `freight` tinyint NOT NULL,
- `zoneFk` tinyint NOT NULL,
- `clientFk` tinyint NOT NULL,
- `isPicked` tinyint NOT NULL,
- `eurosValue` tinyint NOT NULL,
- `itemPackingTypeFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `saleVolume` AS SELECT
+ 1 AS `ticketFk`,
+ 1 AS `saleFk`,
+ 1 AS `litros`,
+ 1 AS `routeFk`,
+ 1 AS `shipped`,
+ 1 AS `landed`,
+ 1 AS `volume`,
+ 1 AS `physicalWeight`,
+ 1 AS `weight`,
+ 1 AS `physicalVolume`,
+ 1 AS `freight`,
+ 1 AS `zoneFk`,
+ 1 AS `clientFk`,
+ 1 AS `isPicked`,
+ 1 AS `eurosValue`,
+ 1 AS `itemPackingTypeFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -35548,12 +34425,11 @@ DROP TABLE IF EXISTS `saleVolume_Today_VNH`;
/*!50001 DROP VIEW IF EXISTS `saleVolume_Today_VNH`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `saleVolume_Today_VNH` (
- `Cliente` tinyint NOT NULL,
- `Provincia` tinyint NOT NULL,
- `Pais` tinyint NOT NULL,
- `volume` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `saleVolume_Today_VNH` AS SELECT
+ 1 AS `Cliente`,
+ 1 AS `Provincia`,
+ 1 AS `Pais`,
+ 1 AS `volume` */;
SET character_set_client = @saved_cs_client;
--
@@ -35564,11 +34440,10 @@ DROP TABLE IF EXISTS `sale_freightComponent`;
/*!50001 DROP VIEW IF EXISTS `sale_freightComponent`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `sale_freightComponent` (
- `ticketFk` tinyint NOT NULL,
- `amount` tinyint NOT NULL,
- `shipped` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `sale_freightComponent` AS SELECT
+ 1 AS `ticketFk`,
+ 1 AS `amount`,
+ 1 AS `shipped` */;
SET character_set_client = @saved_cs_client;
--
@@ -35595,10 +34470,9 @@ DROP TABLE IF EXISTS `salesPersonSince`;
/*!50001 DROP VIEW IF EXISTS `salesPersonSince`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `salesPersonSince` (
- `workerFk` tinyint NOT NULL,
- `started` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `salesPersonSince` AS SELECT
+ 1 AS `workerFk`,
+ 1 AS `started` */;
SET character_set_client = @saved_cs_client;
--
@@ -35609,21 +34483,20 @@ DROP TABLE IF EXISTS `salesPreparedLastHour`;
/*!50001 DROP VIEW IF EXISTS `salesPreparedLastHour`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `salesPreparedLastHour` (
- `warehouseFk` tinyint NOT NULL,
- `saleFk` tinyint NOT NULL,
- `isChecked` tinyint NOT NULL,
- `originalQuantity` tinyint NOT NULL,
- `accion` tinyint NOT NULL,
- `created` tinyint NOT NULL,
- `code` tinyint NOT NULL,
- `firstname` tinyint NOT NULL,
- `lastName` tinyint NOT NULL,
- `workerCode` tinyint NOT NULL,
- `litros` tinyint NOT NULL,
- `concept` tinyint NOT NULL,
- `departmentName` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `salesPreparedLastHour` AS SELECT
+ 1 AS `warehouseFk`,
+ 1 AS `saleFk`,
+ 1 AS `isChecked`,
+ 1 AS `originalQuantity`,
+ 1 AS `accion`,
+ 1 AS `created`,
+ 1 AS `code`,
+ 1 AS `firstname`,
+ 1 AS `lastName`,
+ 1 AS `workerCode`,
+ 1 AS `litros`,
+ 1 AS `concept`,
+ 1 AS `departmentName` */;
SET character_set_client = @saved_cs_client;
--
@@ -35634,9 +34507,8 @@ DROP TABLE IF EXISTS `salesPreviousPreparated`;
/*!50001 DROP VIEW IF EXISTS `salesPreviousPreparated`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `salesPreviousPreparated` (
- `saleFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `salesPreviousPreparated` AS SELECT
+ 1 AS `saleFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -35654,6 +34526,7 @@ CREATE TABLE `sample` (
`hasCompany` tinyint(1) unsigned NOT NULL DEFAULT 0,
`hasPreview` tinyint(1) unsigned NOT NULL DEFAULT 1,
`datepickerEnabled` tinyint(1) NOT NULL DEFAULT 0,
+ `model` varchar(25) COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'Model name in plural',
PRIMARY KEY (`id`)
) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -35671,8 +34544,6 @@ CREATE TABLE `sector` (
`warehouseFk` smallint(6) unsigned NOT NULL DEFAULT 1,
`isPreviousPreparedByPacking` tinyint(4) NOT NULL DEFAULT 1,
`code` varchar(15) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `pickingPlacement__` varchar(15) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `path__` int(11) DEFAULT NULL,
`isPreviousPrepared` tinyint(1) NOT NULL DEFAULT 0,
`isPackagingArea` tinyint(1) NOT NULL DEFAULT 0,
`reportFk` tinyint(3) unsigned DEFAULT NULL,
@@ -35680,7 +34551,6 @@ CREATE TABLE `sector` (
`isMain` tinyint(1) NOT NULL DEFAULT 0,
`itemPackingTypeFk` varchar(1) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`workerFk` int(11) DEFAULT NULL,
- `labelReport__` tinyint(3) DEFAULT NULL,
`printerFk` tinyint(3) unsigned DEFAULT NULL,
`isHideForPickers` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'sector a ocultar a los sacadores',
`isReserve` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Sectores de reserva, como Albenfruit o Fuentes',
@@ -35755,7 +34625,7 @@ CREATE TABLE `sectorProductivity` (
`hourWorked` decimal(10,2) DEFAULT NULL,
`dated` date DEFAULT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -35777,7 +34647,7 @@ CREATE TABLE `sharingCart` (
KEY `Suplent` (`workerSubstitute`),
CONSTRAINT `Suplent_key` FOREIGN KEY (`workerSubstitute`) REFERENCES `worker` (`id`) ON UPDATE CASCADE,
CONSTRAINT `Trabajador_key` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -35902,7 +34772,7 @@ CREATE TABLE `sharingClient` (
KEY `Client` (`clientFk`),
CONSTRAINT `Clients_key` FOREIGN KEY (`clientFk`) REFERENCES `client` (`id`) ON UPDATE CASCADE,
CONSTRAINT `Trabajadores_key` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -36036,7 +34906,7 @@ CREATE TABLE `shelvingLog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`originFk` int(11) NOT NULL,
`userFk` int(10) unsigned DEFAULT NULL,
- `action` set('insert','update','delete') COLLATE utf8mb3_unicode_ci NOT NULL,
+ `action` set('insert','update','delete','select') COLLATE utf8mb3_unicode_ci NOT NULL,
`creationDate` timestamp NULL DEFAULT current_timestamp(),
`description` text CHARACTER SET utf8mb3 DEFAULT NULL,
`changedModel` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
@@ -36048,7 +34918,7 @@ CREATE TABLE `shelvingLog` (
KEY `userFk` (`userFk`),
KEY `originFk` (`originFk`),
CONSTRAINT `shelvingLog_ibfk_2` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -36065,7 +34935,7 @@ CREATE TABLE `silexACL` (
`role` varchar(20) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `module_UNIQUE` (`module`,`method`) USING BTREE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -36150,7 +35020,6 @@ DROP TABLE IF EXISTS `sms`;
CREATE TABLE `sms` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`senderFk` int(10) unsigned NOT NULL,
- `destinationFk__` int(11) DEFAULT NULL,
`sender` varchar(15) CHARACTER SET utf8mb3 NOT NULL DEFAULT '693474205',
`destination` varchar(15) CHARACTER SET utf8mb3 NOT NULL,
`message` varchar(160) COLLATE utf8mb3_unicode_ci NOT NULL,
@@ -36160,7 +35029,7 @@ CREATE TABLE `sms` (
PRIMARY KEY (`id`),
KEY `sms_FK` (`senderFk`),
CONSTRAINT `sms_FK` FOREIGN KEY (`senderFk`) REFERENCES `account`.`user` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -36173,8 +35042,6 @@ DROP TABLE IF EXISTS `smsConfig`;
CREATE TABLE `smsConfig` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uri` varchar(255) COLLATE utf8mb3_unicode_ci NOT NULL,
- `user__` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
- `password__` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
`title` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
`apiKey` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
@@ -36316,7 +35183,7 @@ CREATE TABLE `specialLabels` (
`isVisible` tinyint(1) NOT NULL DEFAULT 0,
`image` blob DEFAULT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -36337,7 +35204,7 @@ CREATE TABLE `specialPrice` (
KEY `Id_Cliente` (`clientFk`),
CONSTRAINT `sp_article_id` FOREIGN KEY (`itemFk`) REFERENCES `item` (`id`) ON UPDATE CASCADE,
CONSTRAINT `sp_customer_id` FOREIGN KEY (`clientFk`) REFERENCES `client` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -36415,7 +35282,7 @@ CREATE TABLE `specieGeoInvasive` (
CONSTRAINT `specieGeoInvasive_FK` FOREIGN KEY (`genusFk`) REFERENCES `genus` (`id`) ON UPDATE CASCADE,
CONSTRAINT `specieGeoInvasive_FK_1` FOREIGN KEY (`specieFk`) REFERENCES `specie` (`id`) ON UPDATE CASCADE,
CONSTRAINT `specieGeoInvasive_FK_2` FOREIGN KEY (`zoneGeofk`) REFERENCES `zoneGeo` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Esta tabla recoge las prohibiciones de comerciar con especies invasoras de acuerdo con el Catálogo de Especies Exóticas Invasoras publicado por el Estado Español';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Esta tabla recoge las prohibiciones de comerciar con especies invasoras de acuerdo con el Catálogo de Especies Exóticas Invasoras publicado por el Estado Español';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -36437,7 +35304,7 @@ CREATE TABLE `splitFilter` (
KEY `splitFilter_FK_1` (`clientFk`),
CONSTRAINT `splitFilter_FK` FOREIGN KEY (`autonomyFk`) REFERENCES `autonomy` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `splitFilter_FK_1` FOREIGN KEY (`clientFk`) REFERENCES `client` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='define los clientes que tienen split y el nombre a mostrar en la etiqueta';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='define los clientes que tienen split y el nombre a mostrar en la etiqueta';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -36457,7 +35324,7 @@ CREATE TABLE `starredModule` (
KEY `starred_moduleFk` (`moduleFk`),
CONSTRAINT `starred_moduleFk` FOREIGN KEY (`moduleFk`) REFERENCES `salix`.`module` (`code`) ON UPDATE CASCADE,
CONSTRAINT `starred_workerFk` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -36513,7 +35380,7 @@ CREATE TABLE `stockBuyed` (
PRIMARY KEY (`id`),
KEY `stockBuyed_user_idx` (`user`),
CONSTRAINT `stockBuyedUserFk` FOREIGN KEY (`user`) REFERENCES `account`.`user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -36551,10 +35418,9 @@ CREATE TABLE `supplier` (
`isFarmer` tinyint(1) NOT NULL DEFAULT 0,
`retAccount` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`phone` varchar(16) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `Fax__` varchar(16) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`commission` float NOT NULL DEFAULT 0,
`nickname` varchar(45) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `payMethodFk` tinyint(3) unsigned NOT NULL,
+ `payMethodFk` tinyint(3) unsigned DEFAULT NULL,
`payDay` tinyint(4) unsigned DEFAULT NULL,
`payDemFk` tinyint(3) unsigned NOT NULL DEFAULT 7,
`created` timestamp NOT NULL DEFAULT current_timestamp(),
@@ -36568,7 +35434,7 @@ CREATE TABLE `supplier` (
`transactionTypeSageFk` tinyint(4) DEFAULT NULL COMMENT 'Ti po de transacción SAGE',
`isTrucker` tinyint(1) NOT NULL DEFAULT 0,
`workerFk` int(10) unsigned DEFAULT NULL COMMENT 'Responsible for approving invoices',
- `supplierActivityFk` varchar(45) NOT NULL DEFAULT 'flowersPlants',
+ `supplierActivityFk` varchar(45) DEFAULT NULL,
`healthRegister` varchar(45) DEFAULT NULL,
`isPayMethodChecked` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'Se ha validado la forma de pago',
PRIMARY KEY (`id`),
@@ -36647,7 +35513,6 @@ CREATE TABLE `supplierAccount` (
`DC` varchar(2) CHARACTER SET utf8mb3 DEFAULT NULL,
`number` varchar(10) CHARACTER SET utf8mb3 DEFAULT NULL,
`description` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'obsoleta(comprobar)',
- `bicSufix` varchar(3) CHARACTER SET utf8mb3 NOT NULL DEFAULT '',
`bankEntityFk` int(10) unsigned DEFAULT NULL,
`bankFk` int(11) DEFAULT NULL COMMENT 'obsoleta(comprobar)',
`beneficiary` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
@@ -36664,6 +35529,28 @@ CREATE TABLE `supplierAccount` (
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+DELIMITER ;;
+/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `vn`.`supplierAccount_afterInsert`
+ AFTER INSERT ON `supplierAccount`
+ FOR EACH ROW
+BEGIN
+ UPDATE vn.supplier
+ SET isPayMethodChecked = FALSE
+ WHERE id = NEW.supplierFk;
+END */;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
@@ -36691,6 +35578,28 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+DELIMITER ;;
+/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `vn`.`supplierAccount_afterDelete`
+ AFTER DELETE ON `supplierAccount`
+ FOR EACH ROW
+BEGIN
+ UPDATE vn.supplier
+ SET isPayMethodChecked = FALSE
+ WHERE id = OLD.supplierFk;
+END */;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
--
-- Table structure for table `supplierActivity`
@@ -36726,7 +35635,7 @@ CREATE TABLE `supplierAddress` (
PRIMARY KEY (`id`),
KEY `supplierAddress_province_fk` (`provinceFk`),
CONSTRAINT `supplierAddress_province_fk` FOREIGN KEY (`provinceFk`) REFERENCES `province` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -36804,7 +35713,7 @@ CREATE TABLE `supplierExpense` (
CONSTRAINT `pago_ibfk_1` FOREIGN KEY (`companyFk`) REFERENCES `company` (`id`) ON UPDATE CASCADE,
CONSTRAINT `pago_moneda` FOREIGN KEY (`currencyFk`) REFERENCES `currency` (`id`) ON UPDATE CASCADE,
CONSTRAINT `proveedor_pago` FOREIGN KEY (`supplierFk`) REFERENCES `supplier` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -36831,7 +35740,7 @@ CREATE TABLE `supplierLog` (
KEY `supplierLog_ibfk_2` (`userFk`),
CONSTRAINT `supplierLog_ibfk_1` FOREIGN KEY (`originFk`) REFERENCES `supplier` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `supplierLog_ibfk_2` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -36842,18 +35751,17 @@ DROP TABLE IF EXISTS `supplierPackaging`;
/*!50001 DROP VIEW IF EXISTS `supplierPackaging`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `supplierPackaging` (
- `supplierFk` tinyint NOT NULL,
- `itemFk` tinyint NOT NULL,
- `longName` tinyint NOT NULL,
- `supplier` tinyint NOT NULL,
- `entryFk` tinyint NOT NULL,
- `landed` tinyint NOT NULL,
- `out` tinyint NOT NULL,
- `in` tinyint NOT NULL,
- `warehouse` tinyint NOT NULL,
- `buyingValue` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `supplierPackaging` AS SELECT
+ 1 AS `supplierFk`,
+ 1 AS `itemFk`,
+ 1 AS `longName`,
+ 1 AS `supplier`,
+ 1 AS `entryFk`,
+ 1 AS `landed`,
+ 1 AS `out`,
+ 1 AS `in`,
+ 1 AS `warehouse`,
+ 1 AS `buyingValue` */;
SET character_set_client = @saved_cs_client;
--
@@ -36908,8 +35816,7 @@ CREATE TABLE `tag` (
`overwrite` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'nombre del campo de item a sobreescribir con el valor del tag, hay que añadir el código correspondiente en item_refreshTags',
PRIMARY KEY (`id`),
UNIQUE KEY `tagNameIdx` (`name`,`ediTypeFk`),
- UNIQUE KEY `tagEdiTypeFkIdx` (`ediTypeFk`),
- CONSTRAINT `fgnTag` FOREIGN KEY (`ediTypeFk`) REFERENCES `edi`.`type` (`type_id`) ON DELETE SET NULL ON UPDATE CASCADE
+ UNIQUE KEY `tagEdiTypeFkIdx` (`ediTypeFk`)
) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Categorias para etiquetar los productos';
/*!40101 SET character_set_client = @saved_cs_client */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
@@ -36975,10 +35882,9 @@ DROP TABLE IF EXISTS `tagL10n`;
/*!50001 DROP VIEW IF EXISTS `tagL10n`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `tagL10n` (
- `id` tinyint NOT NULL,
- `name` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `tagL10n` AS SELECT
+ 1 AS `id`,
+ 1 AS `name` */;
SET character_set_client = @saved_cs_client;
--
@@ -37125,10 +36031,7 @@ CREATE TABLE `ticket` (
`warehouseFk` smallint(6) unsigned NOT NULL DEFAULT 1,
`shipped` datetime NOT NULL,
`nickname` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `notes__` longtext COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`refFk` varchar(20) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `invoiceOutFk__` int(10) unsigned DEFAULT NULL COMMENT 'eliminar',
- `isBooked__` tinyint(1) NOT NULL DEFAULT 0,
`addressFk` int(11) NOT NULL DEFAULT 0,
`workerFk` int(11) DEFAULT NULL,
`observations` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'eliminar',
@@ -37150,7 +36053,6 @@ CREATE TABLE `ticket` (
`isBoxed` tinyint(2) NOT NULL DEFAULT 0,
`isDeleted` tinyint(2) NOT NULL DEFAULT 0,
`zoneFk` int(11) DEFAULT NULL,
- `collectionFk__` int(11) DEFAULT NULL,
`zonePrice` decimal(10,2) DEFAULT NULL,
`zoneBonus` decimal(10,2) DEFAULT NULL,
`totalWithVat` decimal(10,2) DEFAULT NULL COMMENT 'cache calculada del total con iva',
@@ -37168,7 +36070,6 @@ CREATE TABLE `ticket` (
KEY `warehouse_date` (`warehouseFk`,`shipped`),
KEY `Fecha` (`shipped`,`clientFk`),
KEY `tickets_zone_fk_idx` (`zoneFk`),
- KEY `tickets_fk11_idx` (`collectionFk__`),
CONSTRAINT `ticket_FK` FOREIGN KEY (`refFk`) REFERENCES `invoiceOut` (`ref`) ON UPDATE CASCADE,
CONSTRAINT `ticket_customer_id` FOREIGN KEY (`clientFk`) REFERENCES `client` (`id`) ON UPDATE CASCADE,
CONSTRAINT `ticket_ibfk_1` FOREIGN KEY (`warehouseFk`) REFERENCES `warehouse` (`id`) ON UPDATE CASCADE,
@@ -37176,7 +36077,6 @@ CREATE TABLE `ticket` (
CONSTRAINT `ticket_ibfk_6` FOREIGN KEY (`addressFk`) REFERENCES `address` (`id`) ON UPDATE CASCADE,
CONSTRAINT `ticket_ibfk_8` FOREIGN KEY (`agencyModeFk`) REFERENCES `agencyMode` (`id`),
CONSTRAINT `ticket_ibfk_9` FOREIGN KEY (`routeFk`) REFERENCES `route` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
- CONSTRAINT `tickets_fk11` FOREIGN KEY (`collectionFk__`) REFERENCES `collection` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
CONSTRAINT `tickets_zone_fk` FOREIGN KEY (`zoneFk`) REFERENCES `zone` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -37256,7 +36156,6 @@ BEGIN
AND r.id IN (OLD.routeFk,NEW.routeFk)
AND r.created >= util.VN_CURDATE()
GROUP BY r.id;
- call util.debugAdd(NEW.id,CONCAT(OLD.routeFk,' ',NEW.routeFk));
END IF;
IF !(DATE(NEW.shipped) <=> DATE(OLD.shipped)) THEN
@@ -37562,7 +36461,7 @@ CREATE TABLE `ticketDown` (
KEY `ticketDown_FK` (`collectionFk`),
CONSTRAINT `ticketDown_FK` FOREIGN KEY (`collectionFk`) REFERENCES `collection` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `ticketDown_fk1` FOREIGN KEY (`selected`) REFERENCES `ticketDown_SelectionType` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Cola de impresion para los tickets que se van a solicitar al altillo';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Cola de impresion para los tickets que se van a solicitar al altillo';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -37584,6 +36483,7 @@ CREATE TABLE `ticketDown_SelectionType` (
-- Table structure for table `ticketLastState`
--
+
DROP TABLE IF EXISTS `ticketLastState`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
@@ -37594,7 +36494,7 @@ CREATE TABLE `ticketLastState` (
PRIMARY KEY (`ticketFk`),
KEY `double_foreign` (`ticketFk`,`ticketTrackingFk`),
CONSTRAINT `Id_Ticket` FOREIGN KEY (`ticketFk`) REFERENCES `ticket` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT `double_foreign` FOREIGN KEY (`ticketFk`, `ticketTrackingFk`) REFERENCES `vncontrol`.`inter` (`Id_Ticket`, `inter_id`) ON DELETE CASCADE ON UPDATE CASCADE
+ CONSTRAINT `double_foreign` FOREIGN KEY (`ticketFk`, `ticketTrackingFk`) REFERENCES `ticketTracking` (`ticketFk`, `id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -37606,10 +36506,9 @@ DROP TABLE IF EXISTS `ticketLastUpdated`;
/*!50001 DROP VIEW IF EXISTS `ticketLastUpdated`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `ticketLastUpdated` (
- `ticketFk` tinyint NOT NULL,
- `lastUpdated` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `ticketLastUpdated` AS SELECT
+ 1 AS `ticketFk`,
+ 1 AS `lastUpdated` */;
SET character_set_client = @saved_cs_client;
--
@@ -37620,10 +36519,23 @@ DROP TABLE IF EXISTS `ticketLastUpdatedList`;
/*!50001 DROP VIEW IF EXISTS `ticketLastUpdatedList`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `ticketLastUpdatedList` (
- `ticketFk` tinyint NOT NULL,
- `created` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `ticketLastUpdatedList` AS SELECT
+ 1 AS `ticketFk`,
+ 1 AS `created` */;
+SET character_set_client = @saved_cs_client;
+
+--
+-- Temporary table structure for view `ticketLocation`
+--
+
+DROP TABLE IF EXISTS `ticketLocation`;
+/*!50001 DROP VIEW IF EXISTS `ticketLocation`*/;
+SET @saved_cs_client = @@character_set_client;
+SET character_set_client = utf8;
+/*!50001 CREATE VIEW `ticketLocation` AS SELECT
+ 1 AS `ticketFk`,
+ 1 AS `longitude`,
+ 1 AS `latitude` */;
SET character_set_client = @saved_cs_client;
--
@@ -37650,9 +36562,36 @@ CREATE TABLE `ticketLog` (
KEY `logTicketuserFk` (`userFk`),
CONSTRAINT `ticketLog_ibfk_1` FOREIGN KEY (`originFk`) REFERENCES `ticket` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `ticketLog_user` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
+--
+-- Temporary table structure for view `ticketMRW`
+--
+
+DROP TABLE IF EXISTS `ticketMRW`;
+/*!50001 DROP VIEW IF EXISTS `ticketMRW`*/;
+SET @saved_cs_client = @@character_set_client;
+SET character_set_client = utf8;
+/*!50001 CREATE VIEW `ticketMRW` AS SELECT
+ 1 AS `id_Agencia`,
+ 1 AS `empresa_id`,
+ 1 AS `Consignatario`,
+ 1 AS `DOMICILIO`,
+ 1 AS `POBLACION`,
+ 1 AS `CODPOSTAL`,
+ 1 AS `telefono`,
+ 1 AS `movil`,
+ 1 AS `IF`,
+ 1 AS `Id_Ticket`,
+ 1 AS `warehouse_id`,
+ 1 AS `Id_Consigna`,
+ 1 AS `CodigoPais`,
+ 1 AS `Fecha`,
+ 1 AS `province_id`,
+ 1 AS `landing` */;
+SET character_set_client = @saved_cs_client;
+
--
-- Temporary table structure for view `ticketNotInvoiced`
--
@@ -37661,14 +36600,13 @@ DROP TABLE IF EXISTS `ticketNotInvoiced`;
/*!50001 DROP VIEW IF EXISTS `ticketNotInvoiced`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `ticketNotInvoiced` (
- `companyFk` tinyint NOT NULL,
- `companyCode` tinyint NOT NULL,
- `clientFk` tinyint NOT NULL,
- `clientName` tinyint NOT NULL,
- `shipped` tinyint NOT NULL,
- `value` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `ticketNotInvoiced` AS SELECT
+ 1 AS `companyFk`,
+ 1 AS `companyCode`,
+ 1 AS `clientFk`,
+ 1 AS `clientName`,
+ 1 AS `shipped`,
+ 1 AS `value` */;
SET character_set_client = @saved_cs_client;
--
@@ -37784,18 +36722,17 @@ DROP TABLE IF EXISTS `ticketPackingList`;
/*!50001 DROP VIEW IF EXISTS `ticketPackingList`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `ticketPackingList` (
- `nickname` tinyint NOT NULL,
- `ticketFk` tinyint NOT NULL,
- `agencyMode` tinyint NOT NULL,
- `flag` tinyint NOT NULL,
- `province` tinyint NOT NULL,
- `itemFk` tinyint NOT NULL,
- `concept` tinyint NOT NULL,
- `quantity` tinyint NOT NULL,
- `litros` tinyint NOT NULL,
- `observaciones` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `ticketPackingList` AS SELECT
+ 1 AS `nickname`,
+ 1 AS `ticketFk`,
+ 1 AS `agencyMode`,
+ 1 AS `flag`,
+ 1 AS `province`,
+ 1 AS `itemFk`,
+ 1 AS `concept`,
+ 1 AS `quantity`,
+ 1 AS `litros`,
+ 1 AS `observaciones` */;
SET character_set_client = @saved_cs_client;
--
@@ -37817,7 +36754,7 @@ CREATE TABLE `ticketParking` (
KEY `ticketParking_fk1_idx` (`parkingFk`),
CONSTRAINT `ticketParking_fk1` FOREIGN KEY (`ticketFk`) REFERENCES `ticket` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `ticketParking_fk2` FOREIGN KEY (`parkingFk`) REFERENCES `parking` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Almacena los distintos lugares donde puede estar aparcado cada uno de los prepedidos';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Almacena los distintos lugares donde puede estar aparcado cada uno de los prepedidos';
/*!40101 SET character_set_client = @saved_cs_client */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -37850,17 +36787,16 @@ DROP TABLE IF EXISTS `ticketPreviousPreparingList`;
/*!50001 DROP VIEW IF EXISTS `ticketPreviousPreparingList`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `ticketPreviousPreparingList` (
- `ticketFk` tinyint NOT NULL,
- `code` tinyint NOT NULL,
- `saleLines` tinyint NOT NULL,
- `alreadyMadeSaleLines` tinyint NOT NULL,
- `madeRate` tinyint NOT NULL,
- `created` tinyint NOT NULL,
- `parking` tinyint NOT NULL,
- `sectorFk` tinyint NOT NULL,
- `alertCode` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `ticketPreviousPreparingList` AS SELECT
+ 1 AS `ticketFk`,
+ 1 AS `code`,
+ 1 AS `saleLines`,
+ 1 AS `alreadyMadeSaleLines`,
+ 1 AS `madeRate`,
+ 1 AS `created`,
+ 1 AS `parking`,
+ 1 AS `sectorFk`,
+ 1 AS `alertCode` */;
SET character_set_client = @saved_cs_client;
--
@@ -37890,11 +36826,11 @@ CREATE TABLE `ticketRefund` (
`refundTicketFk` int(11) NOT NULL,
`originalTicketFk` int(11) NOT NULL,
PRIMARY KEY (`id`),
- KEY `ticketRefund_FK` (`refundTicketFk`),
KEY `ticketRefund_FK_1` (`originalTicketFk`),
- CONSTRAINT `ticketRefund_FK` FOREIGN KEY (`refundTicketFk`) REFERENCES `ticket` (`id`) ON UPDATE CASCADE,
+ KEY `ticketRefund_FK` (`refundTicketFk`),
+ CONSTRAINT `ticketRefund_FK` FOREIGN KEY (`refundTicketFk`) REFERENCES `ticket` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `ticketRefund_FK_1` FOREIGN KEY (`originalTicketFk`) REFERENCES `ticket` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -37953,14 +36889,11 @@ CREATE TABLE `ticketRequest` (
`buyerCode` varchar(3) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'NOE',
`quantity` int(11) DEFAULT NULL,
`price` double DEFAULT NULL,
- `price__` double DEFAULT NULL,
`itemFk` double DEFAULT NULL,
`clientFk` int(11) DEFAULT NULL,
`response` longtext COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `ok__` tinyint(1) NOT NULL DEFAULT 0,
`total` int(11) DEFAULT NULL,
`buyed` datetime DEFAULT NULL,
- `ko__` tinyint(1) NOT NULL DEFAULT 0,
`saleFk` int(11) DEFAULT NULL,
`created` timestamp NULL DEFAULT current_timestamp(),
`isOk` tinyint(1) DEFAULT NULL,
@@ -38163,20 +37096,19 @@ DROP TABLE IF EXISTS `ticketState`;
/*!50001 DROP VIEW IF EXISTS `ticketState`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `ticketState` (
- `updated` tinyint NOT NULL,
- `stateFk` tinyint NOT NULL,
- `workerFk` tinyint NOT NULL,
- `ticketFk` tinyint NOT NULL,
- `state` tinyint NOT NULL,
- `productionOrder` tinyint NOT NULL,
- `alertLevel` tinyint NOT NULL,
- `code` tinyint NOT NULL,
- `ticket` tinyint NOT NULL,
- `worker` tinyint NOT NULL,
- `isPreviousPreparable` tinyint NOT NULL,
- `isPicked` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `ticketState` AS SELECT
+ 1 AS `updated`,
+ 1 AS `stateFk`,
+ 1 AS `workerFk`,
+ 1 AS `ticketFk`,
+ 1 AS `state`,
+ 1 AS `productionOrder`,
+ 1 AS `alertLevel`,
+ 1 AS `code`,
+ 1 AS `ticket`,
+ 1 AS `worker`,
+ 1 AS `isPreviousPreparable`,
+ 1 AS `isPicked` */;
SET character_set_client = @saved_cs_client;
--
@@ -38187,33 +37119,222 @@ DROP TABLE IF EXISTS `ticketStateToday`;
/*!50001 DROP VIEW IF EXISTS `ticketStateToday`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `ticketStateToday` (
- `ticket` tinyint NOT NULL,
- `state` tinyint NOT NULL,
- `productionOrder` tinyint NOT NULL,
- `alertLevel` tinyint NOT NULL,
- `worker` tinyint NOT NULL,
- `code` tinyint NOT NULL,
- `updated` tinyint NOT NULL,
- `isPicked` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `ticketStateToday` AS SELECT
+ 1 AS `ticket`,
+ 1 AS `state`,
+ 1 AS `productionOrder`,
+ 1 AS `alertLevel`,
+ 1 AS `worker`,
+ 1 AS `code`,
+ 1 AS `updated`,
+ 1 AS `isPicked` */;
SET character_set_client = @saved_cs_client;
--
--- Temporary table structure for view `ticketTracking`
+-- Table structure for table `ticketTracking`
--
DROP TABLE IF EXISTS `ticketTracking`;
-/*!50001 DROP VIEW IF EXISTS `ticketTracking`*/;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `ticketTracking` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `stateFk` tinyint(3) unsigned NOT NULL,
+ `failFk` int(10) unsigned NOT NULL DEFAULT 21,
+ `notes` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
+ `created` timestamp NULL DEFAULT current_timestamp(),
+ `ticketFk` int(11) DEFAULT NULL,
+ `workerFk` int(11) DEFAULT NULL,
+ `supervisorFk` int(10) unsigned DEFAULT NULL,
+ PRIMARY KEY (`id`),
+ KEY `currante` (`workerFk`),
+ KEY `responsable` (`supervisorFk`),
+ KEY `ticket` (`ticketFk`),
+ KEY `inter_state` (`stateFk`),
+ KEY `inter_id` (`ticketFk`,`id`) USING BTREE,
+ CONSTRAINT `inter_state` FOREIGN KEY (`stateFk`) REFERENCES `state` (`id`) ON UPDATE CASCADE,
+ CONSTRAINT `responsable` FOREIGN KEY (`supervisorFk`) REFERENCES `worker` (`id`) ON UPDATE CASCADE,
+ CONSTRAINT `ticketTracking_ibfk_1` FOREIGN KEY (`ticketFk`) REFERENCES `ticket` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+DELIMITER ;;
+/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `vn`.`ticketTracking_beforeInsert`
+ BEFORE INSERT ON `ticketTracking`
+ FOR EACH ROW
+BEGIN
+ DECLARE vState VARCHAR(15);
+ DECLARE vZoneFk INT;
+ DECLARE vBoardingStateFk INT;
+
+ SELECT s.code INTO vState
+ FROM state s
+ WHERE s.id = NEW.stateFk;
+
+ SELECT t.zonefk INTO vZoneFk
+ FROM ticket t
+ WHERE t.id = NEW.ticketFk;
+
+ IF vState = 'OK' AND vZoneFk IS NULL THEN
+ CALL util.throw("ASSIGN_ZONE_FIRST");
+ END IF;
+END */;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+DELIMITER ;;
+/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `vn`.`ticketTracking_afterInsert`
+ AFTER INSERT ON `ticketTracking`
+ FOR EACH ROW
+BEGIN
+ DECLARE vNumTicketsPrepared INT;
+
+ REPLACE vn.ticketLastState(ticketFk, ticketTrackingFk, name)
+ SELECT NEW.ticketFk, NEW.id, `name`
+ FROM state
+ WHERE id = NEW.stateFk;
+END */;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+DELIMITER ;;
+/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `vn`.`ticketTracking_afterUpdate`
+ AFTER UPDATE ON `ticketTracking`
+ FOR EACH ROW
+BEGIN
+ DECLARE vTicketFk INT;
+ DECLARE vTicketTrackingFk INT;
+ DECLARE vStateName VARCHAR(15);
+
+ IF NEW.stateFk <> OLD.stateFk THEN
+ REPLACE vn.ticketLastState(ticketFk, ticketTrackingFk, name)
+ SELECT NEW.ticketFk, NEW.id, `name`
+ FROM state
+ WHERE id = NEW.stateFk;
+ END IF;
+
+ IF NEW.ticketFk <> OLD.ticketFk THEN
+ SELECT i.ticketFk, i.id, s.`name`
+ INTO vTicketFk, vTicketTrackingFk, vStateName
+ FROM ticketTracking i
+ JOIN state s ON i.stateFk = s.id
+ WHERE ticketFk = NEW.ticketFk
+ ORDER BY created DESC
+ LIMIT 1;
+
+ IF vTicketFk > 0 THEN
+ REPLACE INTO ticketLastState(ticketFk, ticketTrackingFk,name)
+ VALUES(vTicketFk, vTicketTrackingFk, vStateName);
+ END IF;
+ END IF;
+END */;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+DELIMITER ;;
+/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `vn`.`ticketTracking_afterDelete`
+ AFTER DELETE ON `ticketTracking`
+ FOR EACH ROW
+BEGIN
+ DECLARE vTicketFk INT;
+ DECLARE vTicketTrackingFk INT;
+ DECLARE vStateName VARCHAR(15);
+
+ DECLARE CONTINUE HANDLER FOR SQLSTATE '23000'
+ BEGIN
+ DELETE FROM vn.ticketLastState
+ WHERE ticketFk = OLD.ticketFk;
+ END;
+
+ CALL util.debugAdd('deletedState',
+ CONCAT('interFk: ', OLD.id,
+ ' ticketFk: ', OLD.ticketFk,
+ ' stateFk: ', OLD.stateFk));
+
+ SELECT i.ticketFk, i.id, s.`name`
+ INTO vTicketFk, vTicketTrackingFk, vStateName
+ FROM ticketTracking i
+ JOIN state s ON i.stateFk = s.id
+ WHERE ticketFk = OLD.ticketFk
+ ORDER BY created DESC
+ LIMIT 1;
+
+ IF vTicketFk > 0 THEN
+ REPLACE INTO ticketLastState(ticketFk, ticketTrackingFk,name)
+ VALUES(vTicketFk, vTicketTrackingFk, vStateName);
+ END IF;
+END */;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+
+--
+-- Table structure for table `ticketTrackingState`
+--
+
+DROP TABLE IF EXISTS `ticketTrackingState`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `ticketTrackingState` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `action` varchar(15) COLLATE utf8mb3_unicode_ci NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Temporary table structure for view `ticketTracking__`
+--
+
+DROP TABLE IF EXISTS `ticketTracking__`;
+/*!50001 DROP VIEW IF EXISTS `ticketTracking__`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `ticketTracking` (
- `id` tinyint NOT NULL,
- `stateFk` tinyint NOT NULL,
- `created` tinyint NOT NULL,
- `ticketFk` tinyint NOT NULL,
- `workerFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `ticketTracking__` AS SELECT
+ 1 AS `id`,
+ 1 AS `stateFk`,
+ 1 AS `created`,
+ 1 AS `ticketFk`,
+ 1 AS `workerFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -38302,7 +37423,7 @@ CREATE TABLE `till` (
KEY `fk_Cajas_Proveedores_account1_idx` (`supplierAccountFk`),
CONSTRAINT `till_ibfk_2` FOREIGN KEY (`bankFk`) REFERENCES `accounting` (`id`) ON UPDATE CASCADE,
CONSTRAINT `till_ibfk_3` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -38511,23 +37632,22 @@ DROP TABLE IF EXISTS `tr2`;
/*!50001 DROP VIEW IF EXISTS `tr2`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `tr2` (
- `id` tinyint NOT NULL,
- `shipped` tinyint NOT NULL,
- `shipmentHour` tinyint NOT NULL,
- `landed` tinyint NOT NULL,
- `landingHour` tinyint NOT NULL,
- `warehouseInFk` tinyint NOT NULL,
- `warehouseOutFk` tinyint NOT NULL,
- `agencyFk` tinyint NOT NULL,
- `ref` tinyint NOT NULL,
- `isDelivered` tinyint NOT NULL,
- `isReceived` tinyint NOT NULL,
- `m3` tinyint NOT NULL,
- `kg` tinyint NOT NULL,
- `cargoSupplierFk` tinyint NOT NULL,
- `totalEntries` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `tr2` AS SELECT
+ 1 AS `id`,
+ 1 AS `shipped`,
+ 1 AS `shipmentHour`,
+ 1 AS `landed`,
+ 1 AS `landingHour`,
+ 1 AS `warehouseInFk`,
+ 1 AS `warehouseOutFk`,
+ 1 AS `agencyFk`,
+ 1 AS `ref`,
+ 1 AS `isDelivered`,
+ 1 AS `isReceived`,
+ 1 AS `m3`,
+ 1 AS `kg`,
+ 1 AS `cargoSupplierFk`,
+ 1 AS `totalEntries` */;
SET character_set_client = @saved_cs_client;
--
@@ -38538,15 +37658,14 @@ DROP TABLE IF EXISTS `traceabilityBuy`;
/*!50001 DROP VIEW IF EXISTS `traceabilityBuy`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `traceabilityBuy` (
- `buyFk` tinyint NOT NULL,
- `quantity` tinyint NOT NULL,
- `landed` tinyint NOT NULL,
- `warehouseName` tinyint NOT NULL,
- `entryFk` tinyint NOT NULL,
- `supplierName` tinyint NOT NULL,
- `itemFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `traceabilityBuy` AS SELECT
+ 1 AS `buyFk`,
+ 1 AS `quantity`,
+ 1 AS `landed`,
+ 1 AS `warehouseName`,
+ 1 AS `entryFk`,
+ 1 AS `supplierName`,
+ 1 AS `itemFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -38557,14 +37676,13 @@ DROP TABLE IF EXISTS `traceabilitySale`;
/*!50001 DROP VIEW IF EXISTS `traceabilitySale`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `traceabilitySale` (
- `ticketFk` tinyint NOT NULL,
- `buyFk` tinyint NOT NULL,
- `shipped` tinyint NOT NULL,
- `nickname` tinyint NOT NULL,
- `quantity` tinyint NOT NULL,
- `worker` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `traceabilitySale` AS SELECT
+ 1 AS `ticketFk`,
+ 1 AS `buyFk`,
+ 1 AS `shipped`,
+ 1 AS `nickname`,
+ 1 AS `quantity`,
+ 1 AS `worker` */;
SET character_set_client = @saved_cs_client;
--
@@ -38592,7 +37710,7 @@ CREATE TABLE `trainingCenter` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(45) COLLATE utf8mb3_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -38621,7 +37739,7 @@ CREATE TABLE `trainingCourse` (
CONSTRAINT `frgnCenter` FOREIGN KEY (`centerFk`) REFERENCES `trainingCenter` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `frgnTrainingCourseType` FOREIGN KEY (`trainingCourseTypeFk`) REFERENCES `trainingCourseType` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `frgnWorker` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Lista de trabajadores que han realizado una formación';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Lista de trabajadores que han realizado una formación';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -38635,7 +37753,7 @@ CREATE TABLE `trainingCourseType` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8mb3_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Lista de las formaciones';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Lista de las formaciones';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -38807,7 +37925,7 @@ CREATE TABLE `travelClonedWeekly` (
CONSTRAINT `travelClonedWeekly_FK_2` FOREIGN KEY (`agencyModeFk`) REFERENCES `agencyMode` (`id`) ON UPDATE CASCADE,
CONSTRAINT `travelClonedWeekly_FK_3` FOREIGN KEY (`supplierFk`) REFERENCES `supplier` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
CONSTRAINT `travelClonedWeekly_FK_4` FOREIGN KEY (`travelFk`) REFERENCES `travel` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -38834,7 +37952,7 @@ CREATE TABLE `travelLog` (
KEY `userFk` (`userFk`),
CONSTRAINT `travelLog_ibfk_1` FOREIGN KEY (`originFk`) REFERENCES `travel` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `travelLog_ibfk_2` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -38851,7 +37969,7 @@ CREATE TABLE `travelObservation` (
`description` text COLLATE utf8mb3_unicode_ci NOT NULL,
`created` timestamp NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Observaciones de travel';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Observaciones de travel';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -38880,7 +37998,6 @@ CREATE TABLE `travelThermograph` (
`created` date NOT NULL,
`warehouseFk` smallint(6) unsigned NOT NULL,
`travelFk` int(10) unsigned DEFAULT NULL,
- `temperature__` enum('COOL','WARM','DRY') COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`result` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`dmsFk` int(11) DEFAULT NULL,
`temperatureFk` varchar(10) CHARACTER SET utf8mb3 DEFAULT 'cool' COMMENT 'En la versión de Agosto de Salix se empezará a usar este campo y se actualizaran los anteriores mirando temperature.',
@@ -38912,28 +38029,9 @@ CREATE TABLE `trolley` (
PRIMARY KEY (`id`),
KEY `trolley_FK` (`workerFk`),
CONSTRAINT `trolley_FK` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
---
--- Temporary table structure for view `user`
---
-
-DROP TABLE IF EXISTS `user`;
-/*!50001 DROP VIEW IF EXISTS `user`*/;
-SET @saved_cs_client = @@character_set_client;
-SET character_set_client = utf8;
-/*!50001 CREATE TABLE `user` (
- `id` tinyint NOT NULL,
- `name` tinyint NOT NULL,
- `password` tinyint NOT NULL,
- `role` tinyint NOT NULL,
- `active` tinyint NOT NULL,
- `recoverPass` tinyint NOT NULL,
- `lastPassChange` tinyint NOT NULL
-) ENGINE=MyISAM */;
-SET character_set_client = @saved_cs_client;
-
--
-- Table structure for table `userConfig`
--
@@ -39066,7 +38164,7 @@ CREATE TABLE `vehicleDms` (
KEY `vehicleDms_FK_1` (`dmsFk`),
CONSTRAINT `vehicleDms_FK` FOREIGN KEY (`vehicleFk`) REFERENCES `vehicle` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `vehicleDms_FK_1` FOREIGN KEY (`dmsFk`) REFERENCES `dms` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Gestion documental de vehicle';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Gestion documental de vehicle';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -39089,7 +38187,7 @@ CREATE TABLE `vehicleEvent` (
KEY `vehicleEvent_FK_1` (`userFk`),
CONSTRAINT `vehicleEvent_FK` FOREIGN KEY (`vehicleStateFk`) REFERENCES `vehicleState` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `vehicleEvent_FK_1` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -39109,7 +38207,7 @@ CREATE TABLE `vehicleInvoiceIn` (
KEY `vehicleInvoiceIn_FK_1` (`invoiceInFk`),
CONSTRAINT `vehicleInvoiceIn_FK` FOREIGN KEY (`vehicleFk`) REFERENCES `vehicle` (`id`),
CONSTRAINT `vehicleInvoiceIn_FK_1` FOREIGN KEY (`invoiceInFk`) REFERENCES `invoiceIn` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -39130,7 +38228,7 @@ CREATE TABLE `vehicleNotes` (
KEY `vehicleNotes_FK` (`vehicleFk`),
CONSTRAINT `vehicleNotes_FK` FOREIGN KEY (`vehicleFk`) REFERENCES `vehicle` (`id`),
CONSTRAINT `vehicleNotes_FK_1` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -39182,7 +38280,7 @@ CREATE TABLE `wagon` (
`volume` int(11) NOT NULL DEFAULT 150 COMMENT 'Volumen en litros',
`plate` varchar(10) COLLATE utf8mb3_unicode_ci NOT NULL COMMENT 'Matrícula',
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -39202,7 +38300,7 @@ CREATE TABLE `wagonVolumetry` (
PRIMARY KEY (`id`),
KEY `wagonVolumetry_FK` (`wagonFk`),
CONSTRAINT `wagonVolumetry_FK` FOREIGN KEY (`wagonFk`) REFERENCES `wagon` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -39333,6 +38431,7 @@ CREATE TABLE `workCenter` (
`warehouseFk` smallint(6) DEFAULT NULL,
`street` varchar(255) DEFAULT NULL,
`geoFk` int(11) DEFAULT NULL,
+ `deliveryManAdjustment` decimal(4,2) DEFAULT NULL COMMENT 'Número de trabajadores para equilibrar los repartidores de diferentes centros. Utilizado en repartidores de grafana',
PRIMARY KEY (`id`),
KEY `workCenter_geoFk_idx` (`geoFk`),
CONSTRAINT `workCenter_geoFk` FOREIGN KEY (`geoFk`) REFERENCES `zoneGeo` (`id`) ON UPDATE CASCADE
@@ -39390,6 +38489,7 @@ CREATE TABLE `worker` (
`isSsDiscounted` tinyint(1) NOT NULL DEFAULT 0,
`sex` enum('M','F') COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'F' COMMENT 'M Masculino F Femenino',
`businessFk` int(11) DEFAULT NULL,
+ `balance` decimal(10,2) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `CodigoTrabajador_UNIQUE` (`code`),
UNIQUE KEY `user_id_UNIQUE` (`userFk`),
@@ -39406,6 +38506,46 @@ CREATE TABLE `worker` (
CONSTRAINT `worker_ibfk_1` FOREIGN KEY (`id`) REFERENCES `account`.`user` (`id`)
) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+DELIMITER ;;
+/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `vn`.`worker_beforeInsert`
+BEFORE INSERT
+ON worker FOR EACH ROW
+BEGIN
+ CALL vn.printer_checkSector(NEW.labelerFk, NEW.sectorFk);
+END */;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+DELIMITER ;;
+/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `vn`.`worker_beforeUpdate`
+BEFORE UPDATE
+ON worker FOR EACH ROW
+BEGIN
+ CALL vn.printer_checkSector(NEW.labelerFk, NEW.sectorFk);
+END */;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
--
-- Table structure for table `workerAppTester`
@@ -39439,7 +38579,7 @@ CREATE TABLE `workerBosses` (
KEY `fg_bossFk_worker_idx` (`bossFk`),
CONSTRAINT `fg_bossFk_worker` FOREIGN KEY (`bossFk`) REFERENCES `worker` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `fg_workerFk_worker` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -39450,11 +38590,10 @@ DROP TABLE IF EXISTS `workerBusinessDated`;
/*!50001 DROP VIEW IF EXISTS `workerBusinessDated`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `workerBusinessDated` (
- `dated` tinyint NOT NULL,
- `businessFk` tinyint NOT NULL,
- `workerFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `workerBusinessDated` AS SELECT
+ 1 AS `dated`,
+ 1 AS `businessFk`,
+ 1 AS `workerFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -39482,12 +38621,11 @@ DROP TABLE IF EXISTS `workerCalendar`;
/*!50001 DROP VIEW IF EXISTS `workerCalendar`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `workerCalendar` (
- `businessFk` tinyint NOT NULL,
- `workerFk` tinyint NOT NULL,
- `absenceTypeFk` tinyint NOT NULL,
- `dated` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `workerCalendar` AS SELECT
+ 1 AS `businessFk`,
+ 1 AS `workerFk`,
+ 1 AS `absenceTypeFk`,
+ 1 AS `dated` */;
SET character_set_client = @saved_cs_client;
--
@@ -39511,19 +38649,17 @@ CREATE TABLE `workerClockLog` (
/*!40101 SET character_set_client = @saved_cs_client */;
--
--- Table structure for table `workerConfig__`
+-- Table structure for table `workerConfig`
--
-DROP TABLE IF EXISTS `workerConfig__`;
+DROP TABLE IF EXISTS `workerConfig`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `workerConfig__` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `defaultWorkerFk` int(10) unsigned NOT NULL,
- PRIMARY KEY (`id`),
- KEY `defaultWorkerFk` (`defaultWorkerFk`),
- CONSTRAINT `workerConfig___ibfk_1` FOREIGN KEY (`defaultWorkerFk`) REFERENCES `worker` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+CREATE TABLE `workerConfig` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `businessUpdated` date DEFAULT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -39534,10 +38670,9 @@ DROP TABLE IF EXISTS `workerDepartment`;
/*!50001 DROP VIEW IF EXISTS `workerDepartment`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `workerDepartment` (
- `workerFk` tinyint NOT NULL,
- `departmentFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `workerDepartment` AS SELECT
+ 1 AS `workerFk`,
+ 1 AS `departmentFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -39569,7 +38704,7 @@ CREATE TABLE `workerDistributionCategory` (
PRIMARY KEY (`id`),
KEY `workerDistributionCategory_workerFk_idx` (`workerFk`),
CONSTRAINT `workerDistributionCategory_workerFk` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -39604,7 +38739,7 @@ CREATE TABLE `workerEmergencyBoss` (
`name` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`value` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'Table to save all responsible people phones',
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -39621,7 +38756,7 @@ CREATE TABLE `workerHourPrice` (
`nightInc` decimal(4,2) DEFAULT NULL,
`extraInc` decimal(4,2) DEFAULT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Recoge los acuerdos de los distintos convenios';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Recoge los acuerdos de los distintos convenios';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -39683,8 +38818,8 @@ CREATE TABLE `workerJourney` (
KEY `workerJourney_dated_idx` (`dated`),
KEY `workerJourney_businessFk` (`businessFk`),
CONSTRAINT `fk_workerJourney_user` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`) ON UPDATE CASCADE,
- CONSTRAINT `workerJourney_businessFk` FOREIGN KEY (`businessFk`) REFERENCES `business` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+ CONSTRAINT `workerJourney_businessFk` FOREIGN KEY (`businessFk`) REFERENCES `business` (`id`) ON UPDATE CASCADE
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -39695,15 +38830,14 @@ DROP TABLE IF EXISTS `workerLabour`;
/*!50001 DROP VIEW IF EXISTS `workerLabour`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `workerLabour` (
- `businessFk` tinyint NOT NULL,
- `workerFk` tinyint NOT NULL,
- `workCenterFk` tinyint NOT NULL,
- `started` tinyint NOT NULL,
- `ended` tinyint NOT NULL,
- `departmentFk` tinyint NOT NULL,
- `payedHolidays` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `workerLabour` AS SELECT
+ 1 AS `businessFk`,
+ 1 AS `workerFk`,
+ 1 AS `workCenterFk`,
+ 1 AS `started`,
+ 1 AS `ended`,
+ 1 AS `departmentFk`,
+ 1 AS `payedHolidays` */;
SET character_set_client = @saved_cs_client;
--
@@ -39730,7 +38864,7 @@ CREATE TABLE `workerLog` (
KEY `userFk_idx` (`userFk`),
CONSTRAINT `userFk` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `workerFk` FOREIGN KEY (`originFk`) REFERENCES `worker` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -39776,10 +38910,9 @@ DROP TABLE IF EXISTS `workerMedia`;
/*!50001 DROP VIEW IF EXISTS `workerMedia`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `workerMedia` (
- `workerFk` tinyint NOT NULL,
- `mediaValue` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `workerMedia` AS SELECT
+ 1 AS `workerFk`,
+ 1 AS `mediaValue` */;
SET character_set_client = @saved_cs_client;
--
@@ -39799,7 +38932,7 @@ CREATE TABLE `workerMistake` (
KEY `workerMistake_fk2_idx` (`workerMistakeTypeFk`),
CONSTRAINT `workerMistake_fk1` FOREIGN KEY (`userFk`) REFERENCES `worker` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `workerMistake_fk2` FOREIGN KEY (`workerMistakeTypeFk`) REFERENCES `workerMistakeType` (`code`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -39838,7 +38971,7 @@ CREATE TABLE `workerRelatives` (
KEY `workerRelatives_workerFk` (`workerFk`),
CONSTRAINT `workerRelatives_disabilityGradeFk` FOREIGN KEY (`disabilityGradeFk`) REFERENCES `disabilityGrade` (`id`) ON UPDATE CASCADE,
CONSTRAINT `workerRelatives_workerFk` FOREIGN KEY (`workerFk`) REFERENCES `workerIrpf` (`workerFk`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Modelo 145 IRPF apartado 2 y 3';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Modelo 145 IRPF apartado 2 y 3';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -39861,7 +38994,7 @@ CREATE TABLE `workerShelving` (
CONSTRAINT `workerShelving_FK` FOREIGN KEY (`collectionFk`) REFERENCES `collection` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
CONSTRAINT `workerShelving_FK_1` FOREIGN KEY (`shelvingFk`) REFERENCES `shelving` (`code`) ON UPDATE CASCADE,
CONSTRAINT `workerShelving_worker_fk` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='utilizaremos el id para establecer la prioridad de los carros a asignar';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='utilizaremos el id para establecer la prioridad de los carros a asignar';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -39872,15 +39005,14 @@ DROP TABLE IF EXISTS `workerSpeedExpedition`;
/*!50001 DROP VIEW IF EXISTS `workerSpeedExpedition`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `workerSpeedExpedition` (
- `ticketFk` tinyint NOT NULL,
- `litros` tinyint NOT NULL,
- `literLastHour` tinyint NOT NULL,
- `litersByMinute` tinyint NOT NULL,
- `workerCode` tinyint NOT NULL,
- `cajas` tinyint NOT NULL,
- `warehouseFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `workerSpeedExpedition` AS SELECT
+ 1 AS `ticketFk`,
+ 1 AS `litros`,
+ 1 AS `literLastHour`,
+ 1 AS `litersByMinute`,
+ 1 AS `workerCode`,
+ 1 AS `cajas`,
+ 1 AS `warehouseFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -39891,17 +39023,16 @@ DROP TABLE IF EXISTS `workerSpeedSaleTracking`;
/*!50001 DROP VIEW IF EXISTS `workerSpeedSaleTracking`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `workerSpeedSaleTracking` (
- `warehouseFk` tinyint NOT NULL,
- `accion` tinyint NOT NULL,
- `workerCode` tinyint NOT NULL,
- `sumaLitros` tinyint NOT NULL,
- `started` tinyint NOT NULL,
- `finished` tinyint NOT NULL,
- `sumaLitrosLastHour` tinyint NOT NULL,
- `litersByMinute` tinyint NOT NULL,
- `departmentName` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `workerSpeedSaleTracking` AS SELECT
+ 1 AS `warehouseFk`,
+ 1 AS `accion`,
+ 1 AS `workerCode`,
+ 1 AS `sumaLitros`,
+ 1 AS `started`,
+ 1 AS `finished`,
+ 1 AS `sumaLitrosLastHour`,
+ 1 AS `litersByMinute`,
+ 1 AS `departmentName` */;
SET character_set_client = @saved_cs_client;
--
@@ -39930,10 +39061,9 @@ DROP TABLE IF EXISTS `workerTeamCollegues`;
/*!50001 DROP VIEW IF EXISTS `workerTeamCollegues`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `workerTeamCollegues` (
- `workerFk` tinyint NOT NULL,
- `collegueFk` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `workerTeamCollegues` AS SELECT
+ 1 AS `workerFk`,
+ 1 AS `collegueFk` */;
SET character_set_client = @saved_cs_client;
--
@@ -40031,7 +39161,7 @@ CREATE TABLE `workerTimeControlConfig_` (
PRIMARY KEY (`id`),
KEY `warehouseFk_1_idx` (`warehouseFk`),
CONSTRAINT `warehouseFk_2` FOREIGN KEY (`warehouseFk`) REFERENCES `warehouse` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -40065,12 +39195,12 @@ CREATE TABLE `workerTimeControlMail` (
`state` enum('SENDED','CONFIRMED','REVISE') COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'SENDED',
`updated` datetime NOT NULL DEFAULT current_timestamp() COMMENT 'Fecha/hora último cambio de estado',
`sendedCounter` int(3) NOT NULL DEFAULT 1 COMMENT 'Número de veces que se ha enviado el correo',
- `emailResponse` text COLLATE utf8mb3_unicode_ci DEFAULT NULL,
+ `reason` text COLLATE utf8mb3_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `workerFk_UNIQUE` (`workerFk`,`year`,`week`),
KEY `workerFk_idx` (`workerFk`),
CONSTRAINT `workerTimeControlMail_workerFk` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Guarda las respuestas de mail de los correos generados automáticamente por la procedimiento workerTimeControl_sendMail';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Guarda las respuestas de mail de los correos generados automáticamente por la procedimiento workerTimeControl_sendMail';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -40126,7 +39256,7 @@ CREATE TABLE `workerTimeControlSchedule` (
`time` time DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `punique_trhf` (`time`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -40137,16 +39267,15 @@ DROP TABLE IF EXISTS `workerTimeControlUserInfo`;
/*!50001 DROP VIEW IF EXISTS `workerTimeControlUserInfo`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `workerTimeControlUserInfo` (
- `userFk` tinyint NOT NULL,
- `name` tinyint NOT NULL,
- `surname` tinyint NOT NULL,
- `user` tinyint NOT NULL,
- `password` tinyint NOT NULL,
- `bcryptPassword` tinyint NOT NULL,
- `departmentFk` tinyint NOT NULL,
- `dni` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `workerTimeControlUserInfo` AS SELECT
+ 1 AS `userFk`,
+ 1 AS `name`,
+ 1 AS `surname`,
+ 1 AS `user`,
+ 1 AS `password`,
+ 1 AS `bcryptPassword`,
+ 1 AS `departmentFk`,
+ 1 AS `dni` */;
SET character_set_client = @saved_cs_client;
--
@@ -40157,14 +39286,13 @@ DROP TABLE IF EXISTS `workerTimeJourneyNG`;
/*!50001 DROP VIEW IF EXISTS `workerTimeJourneyNG`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `workerTimeJourneyNG` (
- `userFk` tinyint NOT NULL,
- `dated` tinyint NOT NULL,
- `Journey` tinyint NOT NULL,
- `dayName` tinyint NOT NULL,
- `name` tinyint NOT NULL,
- `firstname` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `workerTimeJourneyNG` AS SELECT
+ 1 AS `userFk`,
+ 1 AS `dated`,
+ 1 AS `Journey`,
+ 1 AS `dayName`,
+ 1 AS `name`,
+ 1 AS `firstname` */;
SET character_set_client = @saved_cs_client;
--
@@ -40175,12 +39303,11 @@ DROP TABLE IF EXISTS `workerWithoutTractor`;
/*!50001 DROP VIEW IF EXISTS `workerWithoutTractor`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `workerWithoutTractor` (
- `workerFk` tinyint NOT NULL,
- `Trabajador` tinyint NOT NULL,
- `Colecciones` tinyint NOT NULL,
- `created` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `workerWithoutTractor` AS SELECT
+ 1 AS `workerFk`,
+ 1 AS `Trabajador`,
+ 1 AS `Colecciones`,
+ 1 AS `created` */;
SET character_set_client = @saved_cs_client;
--
@@ -40227,7 +39354,7 @@ CREATE TABLE `workers20190711_FichadasAbril` (
`sumable` double DEFAULT NULL,
`jornada` decimal(5,2) NOT NULL DEFAULT 8.00,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -40249,7 +39376,7 @@ CREATE TABLE `workers20190711_FichadasJulio11` (
`sumable` double DEFAULT NULL,
`jornada` decimal(5,2) NOT NULL DEFAULT 8.00,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -40271,7 +39398,7 @@ CREATE TABLE `workers20190711_FichadasJunio` (
`sumable` double DEFAULT NULL,
`jornada` decimal(5,2) NOT NULL DEFAULT 8.00,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -40293,7 +39420,7 @@ CREATE TABLE `workers20190711_FichadasMayo` (
`sumable` double DEFAULT NULL,
`jornada` decimal(5,2) NOT NULL DEFAULT 8.00,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -40315,7 +39442,7 @@ CREATE TABLE `workers20190711_FichadasOctubre` (
`sumable` double DEFAULT NULL,
`jornada` decimal(5,2) NOT NULL DEFAULT 8.00,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -40337,7 +39464,7 @@ CREATE TABLE `workers20190711_Garrote` (
`sumable` double DEFAULT NULL,
`jornada` decimal(5,2) NOT NULL DEFAULT 8.00,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -40355,7 +39482,7 @@ CREATE TABLE `workingHours` (
PRIMARY KEY (`id`),
KEY `user_working_hour_idx` (`userId`),
CONSTRAINT `user_working_hour` FOREIGN KEY (`userId`) REFERENCES `account`.`user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Almacena horas de Entrada y de Salida del personal';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Almacena horas de Entrada y de Salida del personal';
/*!40101 SET character_set_client = @saved_cs_client */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -40391,7 +39518,6 @@ CREATE TABLE `zone` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(45) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
`hour` datetime NOT NULL,
- `warehouseFk__` smallint(6) unsigned DEFAULT NULL,
`agencyModeFk` int(11) NOT NULL,
`travelingDays` int(11) NOT NULL DEFAULT 1,
`price` double NOT NULL DEFAULT 0,
@@ -40402,10 +39528,8 @@ CREATE TABLE `zone` (
`itemMaxSize` int(11) DEFAULT NULL COMMENT 'tamaño maximo de los articulos que esa ruta puede transportar',
`code` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id`),
- KEY `fk_zone_1_idx` (`warehouseFk__`),
KEY `fk_zone_2_idx` (`agencyModeFk`),
KEY `zone_name_idx` (`name`),
- CONSTRAINT `fk_zone_1` FOREIGN KEY (`warehouseFk__`) REFERENCES `warehouse` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE,
CONSTRAINT `fk_zone_2` FOREIGN KEY (`agencyModeFk`) REFERENCES `agencyMode` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -40467,16 +39591,15 @@ DROP TABLE IF EXISTS `zoneEstimatedDelivery`;
/*!50001 DROP VIEW IF EXISTS `zoneEstimatedDelivery`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
-/*!50001 CREATE TABLE `zoneEstimatedDelivery` (
- `zoneFk` tinyint NOT NULL,
- `hourTheoretical` tinyint NOT NULL,
- `totalVolume` tinyint NOT NULL,
- `remainingVolume` tinyint NOT NULL,
- `speed` tinyint NOT NULL,
- `hourEffective` tinyint NOT NULL,
- `minutesLess` tinyint NOT NULL,
- `etc` tinyint NOT NULL
-) ENGINE=MyISAM */;
+/*!50001 CREATE VIEW `zoneEstimatedDelivery` AS SELECT
+ 1 AS `zoneFk`,
+ 1 AS `hourTheoretical`,
+ 1 AS `totalVolume`,
+ 1 AS `remainingVolume`,
+ 1 AS `speed`,
+ 1 AS `hourEffective`,
+ 1 AS `minutesLess`,
+ 1 AS `etc` */;
SET character_set_client = @saved_cs_client;
--
@@ -40605,7 +39728,7 @@ CREATE TABLE `zoneFilter` (
KEY `zoneFilter_FK_1` (`itemTypeFk`),
CONSTRAINT `zoneFilter_FK` FOREIGN KEY (`zoneFk`) REFERENCES `zone` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `zoneFilter_FK_1` FOREIGN KEY (`itemTypeFk`) REFERENCES `itemType` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='recoge los parámetros para filtrar determinados productos según la zona';
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='recoge los parámetros para filtrar determinados productos según la zona';
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -40686,7 +39809,7 @@ CREATE TABLE `zoneGeoRecalc` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`isChanged` tinyint(4) NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -40731,26 +39854,7 @@ CREATE TABLE `zoneLog` (
KEY `userFk` (`userFk`),
CONSTRAINT `zoneLog_ibfk_1` FOREIGN KEY (`originFk`) REFERENCES `zone` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `zoneLog_ibfk_2` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `zonePromo__`
---
-
-DROP TABLE IF EXISTS `zonePromo__`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `zonePromo__` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `zoneFk` int(11) NOT NULL,
- `dated` date NOT NULL,
- `amount` decimal(10,2) NOT NULL,
- `isDone` tinyint(4) NOT NULL DEFAULT 0,
- PRIMARY KEY (`id`),
- KEY `zonePromo_fk1_idx` (`zoneFk`),
- CONSTRAINT `zonePromo_fk1` FOREIGN KEY (`zoneFk`) REFERENCES `zone` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
+) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -40776,7 +39880,25 @@ CREATE TABLE `zoneWarehouse` (
-- Dumping events for database 'vn'
--
/*!50106 SET @save_time_zone= @@TIME_ZONE */ ;
-/*!50106 DROP EVENT IF EXISTS `department_doCalc` */;
+/*!50106 DROP EVENT IF EXISTS `collection_make` */;
+DELIMITER ;;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;;
+/*!50003 SET character_set_client = utf8mb4 */ ;;
+/*!50003 SET character_set_results = utf8mb4 */ ;;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;;
+/*!50003 SET @saved_time_zone = @@time_zone */ ;;
+/*!50003 SET time_zone = 'SYSTEM' */ ;;
+/*!50106 CREATE*/ /*!50117 DEFINER=`root`@`localhost`*/ /*!50106 EVENT `collection_make` ON SCHEDULE EVERY 5 MINUTE STARTS '2022-09-15 00:00:00' ON COMPLETION PRESERVE ENABLE DO CALL vn.collection_make */ ;;
+/*!50003 SET time_zone = @saved_time_zone */ ;;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;;
+/*!50003 SET character_set_client = @saved_cs_client */ ;;
+/*!50003 SET character_set_results = @saved_cs_results */ ;;
+/*!50003 SET collation_connection = @saved_col_connection */ ;;
+/*!50106 DROP EVENT IF EXISTS `department_doCalc` */;;
DELIMITER ;;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;;
@@ -41030,7 +40152,7 @@ DELIMITER ;;
/*!50003 SET character_set_results = utf8mb4 */ ;;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;;
/*!50003 SET @saved_time_zone = @@time_zone */ ;;
/*!50003 SET time_zone = 'SYSTEM' */ ;;
/*!50106 CREATE*/ /*!50117 DEFINER=`root`@`localhost`*/ /*!50106 EVENT `ticket_doRecalc` ON SCHEDULE EVERY 10 SECOND STARTS '2022-01-28 09:29:18' ON COMPLETION PRESERVE ENABLE DO CALL ticket_doRecalc */ ;;
@@ -41127,6 +40249,8 @@ DELIMITER ;
--
-- Dumping routines for database 'vn'
--
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `addressTaxArea` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -41134,8 +40258,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `addressTaxArea`(vAddresId INT, vCompanyId INT) RETURNS varchar(25) CHARSET utf8mb3
DETERMINISTIC
@@ -41168,6 +40290,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `address_getGeo` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -41175,8 +40299,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `address_getGeo`(vSelf INT) RETURNS int(11)
DETERMINISTIC
@@ -41204,6 +40326,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `barcodeToItem` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -41211,8 +40335,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `barcodeToItem`(vBarcode VARCHAR(22)) RETURNS int(11)
DETERMINISTIC
@@ -41267,6 +40389,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `botanicExport_isUpdatable` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -41274,8 +40398,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `botanicExport_isUpdatable`(vEdiGenusFk MEDIUMINT,vEdiSpecieFk MEDIUMINT,
vCountryFk MEDIUMINT,vRestriction MEDIUMINT) RETURNS int(11)
@@ -41295,6 +40417,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `buy_getUnitVolume` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -41302,8 +40426,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buy_getUnitVolume`(vSelf INT) RETURNS int(11)
DETERMINISTIC
@@ -41330,6 +40452,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `buy_getVolume` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -41337,8 +40461,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `buy_getVolume`(vSelf INT) RETURNS int(11)
DETERMINISTIC
@@ -41363,6 +40485,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `catalog_componentReverse` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -41370,8 +40494,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `catalog_componentReverse`(vWarehouse INT,
vCost DECIMAL(10,3),
@@ -41470,6 +40592,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `clientGetDebt` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -41477,60 +40601,21 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `clientGetDebt`(`vClient` INT, `vDate` DATE) RETURNS decimal(10,2)
READS SQL DATA
BEGIN
/**
- * Devuelve el saldo de un cliente.
+ * Returns the risk of a customer.
*
- * @param vClient Identificador del cliente
- * @param vDate Fecha hasta la que tener en cuenta
- * @return Saldo del cliente
+ * @param vClient client id
+ * @param vDate date to check the risk
+ * @return client risk
*/
- DECLARE vDateEnd DATETIME;
- DECLARE vDateIni DATETIME;
+
DECLARE vDebt DECIMAL(10,2);
- DECLARE vHasDebt BOOLEAN;
- SELECT COUNT(*) INTO vHasDebt
- FROM `client` c
- WHERE c.id = vClient AND c.typeFk = 'normal';
-
- IF NOT vHasDebt THEN
- RETURN 0;
- END IF;
-
- SET vDate = IFNULL(vDate, util.VN_CURDATE());
-
- SET vDateIni = TIMESTAMPADD(MONTH, -2, util.VN_CURDATE());
- SET vDateEnd = TIMESTAMP(vDate, '23:59:59');
-
- SELECT IFNULL(SUM(t.amount), 0) INTO vDebt
- FROM (
- SELECT SUM(IFNULL(totalWithVat,0)) amount
- FROM ticket
- WHERE clientFk = vClient
- AND refFk IS NULL
- AND shipped BETWEEN vDateIni AND vDateEnd
- UNION ALL
- SELECT SUM(amountPaid) amount
- FROM receipt
- WHERE clientFk = vClient
- AND payed > vDateEnd
- UNION ALL
- SELECT SUM(amount)
- FROM clientRisk
- WHERE clientFk = vClient
- UNION ALL
- SELECT CAST(-SUM(amount) / 100 AS DECIMAL(10,2))
- FROM hedera.tpvTransaction
- WHERE clientFk = vClient
- AND receiptFk IS NULL
- AND `status` = 'ok'
- ) t;
+ SELECT vn.client_getDebt(vClient,vDate) INTO vDebt;
RETURN vDebt;
END ;;
@@ -41539,6 +40624,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `clientGetMana` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -41546,8 +40633,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `clientGetMana`(vClient INT) RETURNS decimal(10,2)
DETERMINISTIC
@@ -41623,6 +40708,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `clientGetSalesPerson` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -41630,8 +40717,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `clientGetSalesPerson`(vClientFk INT, vDated DATE) RETURNS int(11)
DETERMINISTIC
@@ -41646,6 +40731,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `clientTaxArea` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -41653,10 +40740,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `clientTaxArea`(vClientId INT, vCompanyId INT) RETURNS varchar(25) CHARSET utf8mb3
+CREATE DEFINER=`root`@`localhost` FUNCTION `clientTaxArea`(vClientId INT, vCompanyId INT) RETURNS varchar(25) CHARSET utf8
READS SQL DATA
BEGIN
/**
@@ -41681,6 +40766,53 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+/*!50003 DROP FUNCTION IF EXISTS `client_getDebt` */;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+DELIMITER ;;
+CREATE DEFINER=`root`@`localhost` FUNCTION `client_getDebt`(`vClient` INT, `vDate` DATE) RETURNS decimal(10,2)
+ READS SQL DATA
+BEGIN
+/**
+ * Returns the risk of a customer.
+ *
+ * @param vClient client id
+ * @param vDate date to check the risk
+ * @return client risk
+ */
+ DECLARE vDebt DECIMAL(10,2);
+ DECLARE vHasDebt BOOLEAN;
+
+ SELECT COUNT(*) INTO vHasDebt
+ FROM `client` c
+ WHERE c.id = vClient AND c.typeFk = 'normal';
+
+ IF NOT vHasDebt THEN
+ RETURN 0;
+ END IF;
+
+ CREATE OR REPLACE TEMPORARY TABLE tmp.clientGetDebt (clientFk INT);
+ INSERT INTO tmp.clientGetDebt SET clientFk = vClient;
+
+ CALL vn.client_getDebt(vDate);
+
+ SELECT risk INTO vDebt FROM tmp.risk;
+
+ RETURN vDebt;
+END ;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `client_getFromPhone` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -41688,8 +40820,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `client_getFromPhone`(vPhone VARCHAR(255)) RETURNS int(11)
DETERMINISTIC
@@ -41736,6 +40866,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `client_getSalesPerson` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -41743,8 +40875,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `client_getSalesPerson`(vClientFk INT, vDated DATE) RETURNS int(11)
DETERMINISTIC
@@ -41822,6 +40952,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `client_getSalesPersonByTicket` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -41829,8 +40961,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `client_getSalesPersonByTicket`(vTicketFk INT) RETURNS int(11)
DETERMINISTIC
@@ -41857,6 +40987,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `client_getSalesPersonCode` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -41864,10 +40996,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `client_getSalesPersonCode`(vClientFk INT, vDated DATE) RETURNS varchar(3) CHARSET utf8mb3
+CREATE DEFINER=`root`@`localhost` FUNCTION `client_getSalesPersonCode`(vClientFk INT, vDated DATE) RETURNS varchar(3) CHARSET utf8
DETERMINISTIC
BEGIN
/**
@@ -41895,6 +41025,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `client_getSalesPersonCodeByTicket` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -41902,10 +41034,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `client_getSalesPersonCodeByTicket`(vTicketFk INT) RETURNS varchar(3) CHARSET utf8mb3
+CREATE DEFINER=`root`@`localhost` FUNCTION `client_getSalesPersonCodeByTicket`(vTicketFk INT) RETURNS varchar(3) CHARSET utf8
DETERMINISTIC
BEGIN
/**
@@ -41930,6 +41060,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `collectionExpeditionLacks` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -41937,10 +41069,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `collectionExpeditionLacks`(vCollectionFk INT) RETURNS varchar(100) CHARSET utf8mb3 COLLATE utf8mb3_unicode_ci
+CREATE DEFINER=`root`@`localhost` FUNCTION `collectionExpeditionLacks`(vCollectionFk INT) RETURNS varchar(100) CHARSET utf8 COLLATE utf8_unicode_ci
DETERMINISTIC
BEGIN
/**
@@ -41966,6 +41096,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `collection_isPacked` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -41973,8 +41105,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `collection_isPacked`(vSelf INT) RETURNS tinyint(1)
DETERMINISTIC
@@ -42000,6 +41130,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `currentRate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -42007,8 +41139,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `currentRate`(vCurrencyFk INT, vDated DATE) RETURNS decimal(10,4)
READS SQL DATA
@@ -42031,6 +41161,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `deviceProductionUser_accessGranted` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -42038,8 +41170,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `deviceProductionUser_accessGranted`(vUserFK INT(10) , android_id VARCHAR(50)) RETURNS tinyint(1)
DETERMINISTIC
@@ -42072,6 +41202,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `duaTax_getRate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -42079,8 +41211,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `duaTax_getRate`(vDua INT, vTaxClass INT) RETURNS decimal(5,2)
DETERMINISTIC
@@ -42109,6 +41239,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `ekt_getEntry` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -42116,8 +41248,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `ekt_getEntry`(vEktFk INT) RETURNS int(11)
READS SQL DATA
@@ -42191,6 +41321,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `ekt_getTravel` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -42198,8 +41330,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `ekt_getTravel`(vEntryAssignFk INT, vEktFk INT) RETURNS int(11)
READS SQL DATA
@@ -42247,6 +41377,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `entry_getCommission` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -42254,10 +41386,9 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `entry_getCommission`(vTravelFk INT,
+CREATE DEFINER=`root`@`localhost` FUNCTION `entry_getCommission`(
+ vTravelFk INT,
vCurrencyFk INT,
vSupplierFk INT
) RETURNS int(11)
@@ -42316,6 +41447,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `entry_getCurrency` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -42323,10 +41456,9 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `entry_getCurrency`(vCurrency INT,
+CREATE DEFINER=`root`@`localhost` FUNCTION `entry_getCurrency`(
+ vCurrency INT,
vSupplierFk INT
) RETURNS int(11)
READS SQL DATA
@@ -42347,6 +41479,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `entry_getForLogiflora` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -42354,8 +41488,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `entry_getForLogiflora`(vLanded DATE, vWarehouseFk INT) RETURNS int(11)
READS SQL DATA
@@ -42422,6 +41554,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `entry_isInventoryOrPrevious` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -42429,8 +41563,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `entry_isInventoryOrPrevious`(vSelf INT) RETURNS int(11)
DETERMINISTIC
@@ -42452,6 +41584,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `expedition_checkRoute` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -42459,8 +41593,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `expedition_checkRoute`(vPalletFk INT,vExpeditionFk INT) RETURNS tinyint(1)
DETERMINISTIC
@@ -42496,6 +41628,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `firstDayOfWeek` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -42503,8 +41637,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `firstDayOfWeek`(vYear INT, vWeek INT) RETURNS date
DETERMINISTIC
@@ -42532,6 +41664,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `getAlert3State` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -42539,10 +41673,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `getAlert3State`(vTicket INT) RETURNS varchar(45) CHARSET utf8mb3 COLLATE utf8mb3_unicode_ci
+CREATE DEFINER=`root`@`localhost` FUNCTION `getAlert3State`(vTicket INT) RETURNS varchar(45) CHARSET utf8 COLLATE utf8_unicode_ci
READS SQL DATA
BEGIN
DECLARE vDeliveryType INTEGER DEFAULT 0;
@@ -42582,6 +41714,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `getAlert3StateTest` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -42589,8 +41723,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `getAlert3StateTest`(vTicket INT) RETURNS varchar(45) CHARSET latin1
READS SQL DATA
@@ -42633,6 +41765,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `getDueDate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -42640,8 +41774,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `getDueDate`(vDated DATE, vDayToPay INT) RETURNS date
NO SQL
@@ -42661,6 +41793,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `getInventoryDate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -42668,8 +41802,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `getInventoryDate`() RETURNS date
DETERMINISTIC
@@ -42681,6 +41813,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `getNewItemId` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -42688,8 +41822,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `getNewItemId`() RETURNS int(11)
READS SQL DATA
@@ -42710,6 +41842,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `getNextDueDate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -42717,8 +41851,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `getNextDueDate`(vDated DATE, vGapDays INT, vPayDay INT) RETURNS date
NO SQL
@@ -42752,6 +41884,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `getShipmentHour` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -42759,8 +41893,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `getShipmentHour`(vTicket INT) RETURNS int(11)
READS SQL DATA
@@ -42797,6 +41929,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `getSpecialPrice` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -42804,8 +41938,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `getSpecialPrice`(vItemFk int(11),vClientFk int(11)) RETURNS decimal(10,2)
READS SQL DATA
@@ -42828,6 +41960,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `getTicketToPrepare` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -42835,8 +41969,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `getTicketToPrepare`(`vWorker` INT, `vWarehouse` INT) RETURNS int(11)
READS SQL DATA
@@ -42958,6 +42090,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `getTicketTrolleyLabelCount` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -42965,8 +42099,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `getTicketTrolleyLabelCount`(vTicket INT) RETURNS int(11)
READS SQL DATA
@@ -42989,6 +42121,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `getUser` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -42996,8 +42130,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `getUser`() RETURNS int(11)
DETERMINISTIC
@@ -43012,6 +42144,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `getUserId` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -43019,8 +42153,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `getUserId`(userName varchar(30)) RETURNS int(11)
READS SQL DATA
@@ -43039,6 +42171,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `getWorkerCode` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -43046,10 +42180,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `getWorkerCode`() RETURNS varchar(3) CHARSET utf8mb3
+CREATE DEFINER=`root`@`localhost` FUNCTION `getWorkerCode`() RETURNS varchar(3) CHARSET utf8
READS SQL DATA
BEGIN
DECLARE vUserCode VARCHAR(3) CHARSET utf8 COLLATE utf8_unicode_ci;
@@ -43065,6 +42197,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `hasAnyNegativeBase` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -43072,8 +42206,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `hasAnyNegativeBase`() RETURNS tinyint(1)
DETERMINISTIC
@@ -43114,6 +42246,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `hasItemsInSector` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -43121,8 +42255,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `hasItemsInSector`(vTicketFk INT, vSectorFk INT) RETURNS tinyint(1)
DETERMINISTIC
@@ -43146,6 +42278,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `hasSomeNegativeBase` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -43153,8 +42287,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `hasSomeNegativeBase`(vTicket INT) RETURNS tinyint(1)
READS SQL DATA
@@ -43187,6 +42319,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `invoiceOutAmount` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -43194,8 +42328,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `invoiceOutAmount`(vInvoiceRef VARCHAR(15)) RETURNS decimal(10,2)
READS SQL DATA
@@ -43222,6 +42354,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `invoiceOut_getPath` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -43229,10 +42363,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `invoiceOut_getPath`(vSelf INT) RETURNS varchar(255) CHARSET utf8mb3
+CREATE DEFINER=`root`@`localhost` FUNCTION `invoiceOut_getPath`(vSelf INT) RETURNS varchar(255) CHARSET utf8
DETERMINISTIC
BEGIN
DECLARE vIssued DATE;
@@ -43255,6 +42387,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `invoiceOut_getWeight` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -43262,8 +42396,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `invoiceOut_getWeight`(vInvoice VARCHAR(15)) RETURNS decimal(10,2)
READS SQL DATA
@@ -43295,6 +42427,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `invoiceSerial` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -43302,10 +42436,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `invoiceSerial`(vClientFk INT, vCompanyFk INT, vType CHAR(1)) RETURNS char(1) CHARSET utf8mb3
+CREATE DEFINER=`root`@`localhost` FUNCTION `invoiceSerial`(vClientFk INT, vCompanyFk INT, vType CHAR(1)) RETURNS char(1) CHARSET utf8
DETERMINISTIC
BEGIN
/**
@@ -43333,6 +42465,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `invoiceSerialArea` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -43340,8 +42474,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `invoiceSerialArea`(vType CHAR(1), vTaxArea VARCHAR(25)) RETURNS char(1) CHARSET utf8mb3 COLLATE utf8mb3_unicode_ci
DETERMINISTIC
@@ -43379,40 +42511,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 DROP FUNCTION IF EXISTS `isDateRangeAccounting` */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `isDateRangeAccounting`(vSelf DATE) RETURNS int(11)
- READS SQL DATA
-BEGIN
-/**
- * Comprueba si la fecha pasada esta en el rango
- * de fecha de contabilidad
- *
- * @param vSelf Fecha para comparar
- * @return vReturn
- *
- */
- DECLARE vReturn BOOL;
-
- SELECT COUNT(*) INTO vReturn
- FROM accountingConfig
- WHERE Vself BETWEEN minDate AND maxDate;
-
- RETURN vReturn;
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 DROP FUNCTION IF EXISTS `isIntrastatEntry` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -43420,8 +42520,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `isIntrastatEntry`(vEntryFk INT) RETURNS int(11)
READS SQL DATA
@@ -43456,6 +42554,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `isLogifloraDay` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -43463,8 +42563,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `isLogifloraDay`(vShipped DATE, vWarehouse INT) RETURNS tinyint(1)
DETERMINISTIC
@@ -43487,6 +42585,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `isPalletHomogeneus` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -43494,8 +42594,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `isPalletHomogeneus`(vExpedition INT) RETURNS tinyint(1)
READS SQL DATA
@@ -43525,6 +42623,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `itemPacking` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -43532,8 +42632,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `itemPacking`(vBarcode VARCHAR(22), vWarehouseFk INT) RETURNS int(11)
DETERMINISTIC
@@ -43578,6 +42676,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `itemShelvingPlacementSupply_ClosestGet` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -43585,8 +42685,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `itemShelvingPlacementSupply_ClosestGet`(vParkingFk INT) RETURNS int(11)
READS SQL DATA
@@ -43622,6 +42720,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `itemsInSector_get` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -43629,8 +42729,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `itemsInSector_get`(vTicketFk INT, vSectorFk INT) RETURNS int(11)
READS SQL DATA
@@ -43654,6 +42752,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `itemTag_getIntValue` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -43661,8 +42761,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `itemTag_getIntValue`(vValue VARCHAR(255)) RETURNS int(11)
DETERMINISTIC
@@ -43678,6 +42776,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `item_getFhImage` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -43685,10 +42785,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `item_getFhImage`(itemFk INT) RETURNS varchar(255) CHARSET utf8mb3 COLLATE utf8mb3_unicode_ci
+CREATE DEFINER=`root`@`localhost` FUNCTION `item_getFhImage`(itemFk INT) RETURNS varchar(255) CHARSET utf8 COLLATE utf8_unicode_ci
DETERMINISTIC
BEGIN
DECLARE vImageUrl VARCHAR(255);
@@ -43707,6 +42805,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `item_getPackage` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -43714,10 +42814,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `item_getPackage`(vItemFk INT) RETURNS varchar(50) CHARSET utf8mb3 COLLATE utf8mb3_unicode_ci
+CREATE DEFINER=`root`@`localhost` FUNCTION `item_getPackage`(vItemFk INT) RETURNS varchar(50) CHARSET utf8 COLLATE utf8_unicode_ci
DETERMINISTIC
BEGIN
@@ -43749,6 +42847,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `item_getVolume` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -43756,8 +42856,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `item_getVolume`(vSelf INT, vPackaging VARCHAR(10)) RETURNS int(11)
DETERMINISTIC
@@ -43788,6 +42886,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `lastDayOfWeek` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -43795,8 +42895,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `lastDayOfWeek`(vYear INT, vWeek INT) RETURNS date
DETERMINISTIC
@@ -43824,6 +42922,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `machine_checkPlate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -43831,8 +42931,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `machine_checkPlate`(vPlate VARCHAR(10)) RETURNS tinyint(1)
READS SQL DATA
@@ -43859,6 +42957,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `messageSend` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -43866,8 +42966,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `messageSend`(vRecipient VARCHAR(255) CHARSET utf8, vMessage TEXT CHARSET utf8) RETURNS int(11)
READS SQL DATA
@@ -43885,6 +42983,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `messageSendWithUser` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -43892,8 +42992,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `messageSendWithUser`(vSenderFK INT, vRecipient VARCHAR(255) CHARSET utf8, vMessage TEXT CHARSET utf8) RETURNS int(11)
DETERMINISTIC
@@ -43950,6 +43048,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `MIDNIGHT` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -43957,8 +43057,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `MIDNIGHT`(vDate DATE) RETURNS datetime
DETERMINISTIC
@@ -43970,6 +43068,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `nz` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -43977,8 +43077,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `nz`(vQuantity DOUBLE) RETURNS double
DETERMINISTIC
@@ -43996,6 +43094,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `orderTotalVolume` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -44003,8 +43103,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `orderTotalVolume`(vOrderId INT) RETURNS decimal(10,3)
READS SQL DATA
@@ -44027,6 +43125,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `orderTotalVolumeBoxes` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -44034,8 +43134,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `orderTotalVolumeBoxes`(vOrderId INT) RETURNS decimal(10,3)
READS SQL DATA
@@ -44063,6 +43161,47 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+/*!50003 DROP FUNCTION IF EXISTS `packaging_calculate` */;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+DELIMITER ;;
+CREATE DEFINER=`root`@`localhost` FUNCTION `packaging_calculate`(isPackageReturnable TINYINT(1),
+ packagingReturnFk INT(11),
+ base DECIMAL(10,2),
+ price DECIMAL(10,2),
+ upload VARCHAR(255)) RETURNS decimal(10,2)
+ DETERMINISTIC
+BEGIN
+ DECLARE vAmount INT DEFAULT NULL;
+ DECLARE vValue DECIMAL(10,2);
+
+ IF isPackageReturnable THEN
+ SELECT cb.freightPackagingFull INTO vAmount
+ FROM returnBuckets cb
+ WHERE cb.id = packagingReturnFk;
+
+ SET vValue = IF (vAmount IS NULL,
+ IFNULL(base,0),
+ vAmount / IFNULL(upload, 0) + IFNULL(base, 0));
+ ELSE
+ SET vValue = IFNULL(price, 0) + IFNULL(base, 0);
+ END IF;
+
+ RETURN vValue;
+END ;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `phytoPassport` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -44070,10 +43209,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `phytoPassport`(vRef VARCHAR(15)) RETURNS text CHARSET utf8mb3
+CREATE DEFINER=`root`@`localhost` FUNCTION `phytoPassport`(vRef VARCHAR(15)) RETURNS text CHARSET utf8
DETERMINISTIC
BEGIN
DECLARE vPhyto TEXT CHARSET utf8 COLLATE utf8_unicode_ci;
@@ -44118,6 +43255,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `routeProposal` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -44125,8 +43264,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `routeProposal`(vTicketFk INT) RETURNS int(11)
READS SQL DATA
@@ -44184,6 +43321,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `routeProposal_` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -44191,8 +43330,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `routeProposal_`(vTicketFk INT) RETURNS int(11)
READS SQL DATA
@@ -44225,6 +43362,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `routeProposal_beta` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -44232,8 +43371,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `routeProposal_beta`(vTicketFk INT) RETURNS int(11)
READS SQL DATA
@@ -44291,6 +43428,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `specie_IsForbidden` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -44298,8 +43437,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `specie_IsForbidden`(vItemFk INT, vAddressFk INT) RETURNS tinyint(1)
READS SQL DATA
@@ -44330,6 +43467,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `testCIF` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -44337,10 +43476,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `testCIF`(vCIF VARCHAR(9)) RETURNS varchar(10) CHARSET utf8mb3 COLLATE utf8mb3_unicode_ci
+CREATE DEFINER=`root`@`localhost` FUNCTION `testCIF`(vCIF VARCHAR(9)) RETURNS varchar(10) CHARSET utf8 COLLATE utf8_unicode_ci
DETERMINISTIC
BEGIN
@@ -44415,6 +43552,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `testNIE` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -44422,8 +43561,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `testNIE`(vNIE VARCHAR(9)) RETURNS tinyint(1)
DETERMINISTIC
@@ -44482,6 +43619,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `testNIF` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -44489,8 +43628,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `testNIF`(vNIF VARCHAR(9)) RETURNS tinyint(1)
DETERMINISTIC
@@ -44523,6 +43660,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `ticketCollection_getNoPacked` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -44530,10 +43669,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `ticketCollection_getNoPacked`(vCollectionFk INT) RETURNS varchar(100) CHARSET utf8mb3 COLLATE utf8mb3_unicode_ci
+CREATE DEFINER=`root`@`localhost` FUNCTION `ticketCollection_getNoPacked`(vCollectionFk INT) RETURNS varchar(100) CHARSET utf8 COLLATE utf8_unicode_ci
DETERMINISTIC
BEGIN
@@ -44562,6 +43699,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `ticketGetTotal` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -44569,8 +43708,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `ticketGetTotal`(vTicketId INT) RETURNS decimal(10,2)
READS SQL DATA
@@ -44605,6 +43742,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `ticketPositionInPath` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -44612,10 +43751,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `ticketPositionInPath`(vTicketId INT) RETURNS varchar(10) CHARSET utf8mb3
+CREATE DEFINER=`root`@`localhost` FUNCTION `ticketPositionInPath`(vTicketId INT) RETURNS varchar(10) CHARSET utf8
DETERMINISTIC
BEGIN
@@ -44696,6 +43833,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `ticketSplitCounter` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -44703,10 +43842,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `ticketSplitCounter`(vTicketFk INT) RETURNS varchar(15) CHARSET utf8mb3
+CREATE DEFINER=`root`@`localhost` FUNCTION `ticketSplitCounter`(vTicketFk INT) RETURNS varchar(15) CHARSET utf8
READS SQL DATA
BEGIN
DECLARE vSplitCounter VARCHAR(15);
@@ -44728,6 +43865,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `ticketTotalVolume` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -44735,8 +43874,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `ticketTotalVolume`(vTicketId INT) RETURNS decimal(10,3)
READS SQL DATA
@@ -44756,6 +43893,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `ticketTotalVolumeBoxes` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -44763,8 +43902,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `ticketTotalVolumeBoxes`(vTicketId INT) RETURNS decimal(10,1)
DETERMINISTIC
@@ -44793,6 +43930,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `ticketWarehouseGet` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -44800,8 +43939,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `ticketWarehouseGet`(vTicketFk INT) RETURNS int(11)
READS SQL DATA
@@ -44819,6 +43956,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `ticket_CC_volume` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -44826,8 +43965,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `ticket_CC_volume`(vTicketFk INT) RETURNS decimal(10,1)
READS SQL DATA
@@ -44852,6 +43989,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `ticket_get` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -44859,8 +43998,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `ticket_get`(vParamFk INT) RETURNS int(11)
READS SQL DATA
@@ -44927,6 +44064,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `ticket_getFreightCost` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -44934,8 +44073,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `ticket_getFreightCost`(vTicketFk INT) RETURNS decimal(10,2)
DETERMINISTIC
@@ -44956,7 +44093,7 @@ BEGIN
SELECT SUM((t.zonePrice - t.zoneBonus) * ebv.ratio) INTO deliveryPrice
FROM vn.ticket t
LEFT JOIN expedition e ON e.ticketFk = t.id
- JOIN expeditionBoxVol ebv ON ebv.boxFk = e.isBox
+ JOIN expeditionBoxVol ebv ON ebv.boxFk = e.freightItemFk
WHERE t.id = vTicketFk;
END IF;
@@ -44967,6 +44104,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `ticket_getWeight` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -44974,8 +44113,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `ticket_getWeight`(vTicketFk INT) RETURNS decimal(10,3)
READS SQL DATA
@@ -45000,6 +44137,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `ticket_getWithParameters` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -45007,8 +44146,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `ticket_getWithParameters`(vClientFk INT, vWarehouseFk INT, vShipped DATE, vAddressFk INT, vCompanyFk INT, vAgencyModeFk INT) RETURNS int(11)
DETERMINISTIC
@@ -45059,6 +44196,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `ticket_HasUbication` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -45066,8 +44205,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `ticket_HasUbication`(vTicketFk INT) RETURNS tinyint(1)
READS SQL DATA
@@ -45089,6 +44226,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `till_new` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -45096,10 +44235,9 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `till_new`(vClient INT
+CREATE DEFINER=`root`@`localhost` FUNCTION `till_new`(
+ vClient INT
,vBank INT
,vAmount DOUBLE
,vConcept VARCHAR(25)
@@ -45180,6 +44318,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `timeWorkerControl_getDirection` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -45187,10 +44327,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `timeWorkerControl_getDirection`(vUserFk INT, vTimed DATETIME) RETURNS varchar(6) CHARSET utf8mb3 COLLATE utf8mb3_unicode_ci
+CREATE DEFINER=`root`@`localhost` FUNCTION `timeWorkerControl_getDirection`(vUserFk INT, vTimed DATETIME) RETURNS varchar(6) CHARSET utf8 COLLATE utf8_unicode_ci
READS SQL DATA
BEGIN
/**
@@ -45256,6 +44394,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `time_getSalesYear` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -45263,8 +44403,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `time_getSalesYear`(vMonth INT, vYear INT) RETURNS int(11)
DETERMINISTIC
@@ -45281,6 +44419,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `travel_getForLogiflora` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -45288,8 +44428,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `travel_getForLogiflora`(vLanded DATE, vWarehouseFk INT) RETURNS int(11)
READS SQL DATA
@@ -45344,6 +44482,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `validationCode` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -45351,8 +44491,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `validationCode`(vString VARCHAR(255)) RETURNS int(11)
DETERMINISTIC
@@ -45385,6 +44523,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `validationCode_beta` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -45392,8 +44532,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `validationCode_beta`(vString VARCHAR(255)) RETURNS int(11)
DETERMINISTIC
@@ -45426,6 +44564,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `workerIsBoss` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -45433,8 +44573,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `workerIsBoss`(vUserId INT) RETURNS int(11)
DETERMINISTIC
@@ -45485,6 +44623,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `workerMachinery_isRegistered` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -45492,8 +44632,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `workerMachinery_isRegistered`(vWorkerFk VARCHAR(10)) RETURNS tinyint(1)
READS SQL DATA
@@ -45521,6 +44659,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `workerNigthlyHours_calculate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -45528,8 +44668,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `workerNigthlyHours_calculate`(vTimeIn DATETIME, vTimeOut DATETIME) RETURNS decimal(5,2)
READS SQL DATA
@@ -45560,6 +44698,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `workerTimeControl_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -45567,10 +44707,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `workerTimeControl_add`(vUserFk INT, vWarehouseFk INT, vTimed DATETIME, vIsManual BOOL) RETURNS int(11)
+CREATE DEFINER=`root`@`localhost` FUNCTION `workerTimeControl_add`( vUserFk INT, vWarehouseFk INT, vTimed DATETIME, vIsManual BOOL) RETURNS int(11)
DETERMINISTIC
BEGIN
DECLARE vDirection VARCHAR(6);
@@ -45629,6 +44767,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `workerTimeControl_addDirection` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -45636,10 +44776,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `workerTimeControl_addDirection`(vUserFk INT, vWarehouseFk INT, vTimed DATETIME, vIsManual BOOL) RETURNS int(11)
+CREATE DEFINER=`root`@`localhost` FUNCTION `workerTimeControl_addDirection`( vUserFk INT, vWarehouseFk INT, vTimed DATETIME, vIsManual BOOL) RETURNS int(11)
DETERMINISTIC
BEGIN
DECLARE vDirection VARCHAR(6);
@@ -45698,6 +44836,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `worker_isWorking` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -45705,8 +44845,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `worker_isWorking`(vWorkerFk INT) RETURNS tinyint(1)
READS SQL DATA
@@ -45737,6 +44875,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `xdiario_new` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -45744,10 +44884,9 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` FUNCTION `xdiario_new`(vAsiento INT,
+CREATE DEFINER=`root`@`localhost` FUNCTION `xdiario_new`(
+ vAsiento INT,
vDated DATE,
vSubaccount VARCHAR(12),
vAccount VARCHAR(12),
@@ -45792,6 +44931,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP FUNCTION IF EXISTS `zoneGeo_new` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -45799,8 +44940,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` FUNCTION `zoneGeo_new`(vType VARCHAR(255), vName VARCHAR(255), vParentFk INT) RETURNS int(11)
NO SQL
@@ -45832,6 +44971,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `addNoteFromDelivery` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -45839,8 +44980,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `addNoteFromDelivery`(idTicket INT,nota TEXT)
BEGIN
@@ -45858,6 +44997,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `addressTaxArea` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -45865,8 +45006,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `addressTaxArea`()
READS SQL DATA
@@ -45906,6 +45045,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `agencyHourGetFirstShipped` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -45913,8 +45054,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `agencyHourGetFirstShipped`(vAgencyMode INT, vAddress INT, vWarehouse INT)
BEGIN
@@ -45954,6 +45093,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `agencyHourGetLanded` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -45961,8 +45102,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `agencyHourGetLanded`(vDated DATE, vAddress INT, vAgency INT, vWarehouse INT)
BEGIN
@@ -46004,6 +45143,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `agencyHourGetWarehouse` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -46011,8 +45152,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `agencyHourGetWarehouse`(vAddress INT, vDate DATE, vWarehouse INT)
BEGIN
@@ -46095,6 +45234,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `agencyHourListGetShipped` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -46102,8 +45243,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `agencyHourListGetShipped`(vDate DATE, vAddress INT, vAgency INT)
BEGIN
@@ -46121,6 +45260,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `available_calc` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -46128,8 +45269,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `available_calc`(
vDate DATE,
@@ -46191,6 +45330,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `bankEntity_checkBic` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -46198,8 +45339,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `bankEntity_checkBic`(vBic VARCHAR(255))
BEGIN
@@ -46223,6 +45362,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `bankPolicy_notifyExpired` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -46230,8 +45371,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `bankPolicy_notifyExpired`()
BEGIN
@@ -46258,6 +45397,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `buyUltimate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -46265,8 +45406,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `buyUltimate`(vWarehouseFk SMALLINT, vDated DATE)
BEGIN
@@ -46308,6 +45447,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `buyUltimateFromInterval` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -46315,8 +45456,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `buyUltimateFromInterval`(vWarehouseFk SMALLINT, vStarted DATE, vEnded DATE)
BEGIN
@@ -46329,42 +45468,46 @@ BEGIN
* @param vEnded Fecha fin
* @return tmp.buyUltimateFromInterval
*/
- IF vEnded IS NULL THEN
- SET vEnded = vStarted;
- END IF;
+ IF vEnded IS NULL THEN
+ SET vEnded = vStarted;
+ END IF;
- IF vEnded < vStarted THEN
+ IF vEnded < vStarted THEN
SET vStarted = TIMESTAMPADD(MONTH, -1, vEnded);
- END IF;
-
- -- Item
+ END IF;
+ -- Item
DROP TEMPORARY TABLE IF EXISTS tmp.buyUltimateFromInterval;
CREATE TEMPORARY TABLE tmp.buyUltimateFromInterval
- (PRIMARY KEY (itemFk, warehouseFk), INDEX(buyFk), INDEX(landed), INDEX(warehouseFk), INDEX(itemFk))
- ENGINE = MEMORY
- SELECT
- b.itemFk,
- t.warehouseInFk warehouseFk,
- MULTIMAX(t.landed, b.id) buyFk,
- MAX(t.landed) landed
- FROM buy b
- JOIN entry e ON e.id = b.entryFk
- JOIN travel t ON t.id = e.travelFk
- WHERE t.landed BETWEEN vStarted AND vEnded
- AND (vWarehouseFk IS NULL OR t.warehouseInFk = vWarehouseFk)
- AND b.price2 > 0
- AND NOT b.isIgnored
- AND b.quantity > 0
- GROUP BY itemFk, warehouseInFk;
+ (PRIMARY KEY (itemFk, warehouseFk), INDEX(buyFk), INDEX(landed), INDEX(warehouseFk), INDEX(itemFk))
+ ENGINE = MEMORY
+ SELECT itemFk,
+ warehouseFk,
+ buyFk,
+ MAX(landed) landed
+ FROM (SELECT b.itemFk,
+ t.warehouseInFk warehouseFk,
+ b.id buyFk,
+ t.landed
+ FROM buy b
+ JOIN entry e ON e.id = b.entryFk
+ JOIN travel t ON t.id = e.travelFk
+ WHERE t.landed BETWEEN vStarted AND vEnded
+ AND (vWarehouseFk IS NULL OR t.warehouseInFk = vWarehouseFk)
+ AND b.price2 > 0
+ AND NOT b.isIgnored
+ AND b.quantity > 0
+ ORDER BY t.landed DESC, b.id DESC
+ LIMIT 10000000000000000000) sub
+ GROUP BY itemFk, warehouseFk;
INSERT IGNORE INTO tmp.buyUltimateFromInterval(itemFk, warehouseFk, buyFk, landed)
SELECT
b.itemFk,
- t.warehouseInFk warehouseFk,
- b.id buyFk,
- t.landed
- FROM buy b
+ t.warehouseInFk warehouseFk,
+ b.id buyFk,
+ t.landed
+ FROM buy b
JOIN entry e ON e.id = b.entryFk
JOIN travel t ON t.id = e.travelFk
WHERE t.landed > vEnded
@@ -46376,10 +45519,10 @@ BEGIN
INSERT IGNORE INTO tmp.buyUltimateFromInterval(itemFk, warehouseFk, buyFk, landed)
SELECT
b.itemFk,
- t.warehouseInFk warehouseFk,
- b.id buyFk,
- t.landed
- FROM buy b
+ t.warehouseInFk warehouseFk,
+ b.id buyFk,
+ t.landed
+ FROM buy b
JOIN entry e ON e.id = b.entryFk
JOIN travel t ON t.id = e.travelFk
WHERE t.landed BETWEEN vStarted AND vEnded
@@ -46387,50 +45530,53 @@ BEGIN
AND b.quantity = 0
GROUP BY itemFk, warehouseInFk;
-
-
-- ItemOriginal
+ INSERT IGNORE INTO tmp.buyUltimateFromInterval(itemFk, warehouseFk, buyFk, landed)
+ SELECT itemFk,
+ warehouseFk,
+ buyFk,
+ MAX(landed) landed
+ FROM (SELECT b.itemFk,
+ t.warehouseInFk warehouseFk,
+ b.id buyFk,
+ t.landed,
+ itemOriginalFk
+ FROM buy b
+ JOIN entry e ON e.id = b.entryFk
+ JOIN travel t ON t.id = e.travelFk
+ WHERE t.landed BETWEEN vStarted AND vEnded
+ AND (vWarehouseFk IS NULL OR t.warehouseInFk = vWarehouseFk)
+ AND b.price2 > 0
+ AND NOT b.isIgnored
+ AND b.quantity > 0
+ AND itemOriginalFk
+ ORDER BY t.landed DESC, b.id DESC
+ LIMIT 10000000000000000000) sub
+ GROUP BY itemOriginalFk, warehouseFk;
- INSERT IGNORE INTO tmp.buyUltimateFromInterval(itemFk, warehouseFk, buyFk, landed)
- SELECT
- b.itemFk,
- t.warehouseInFk warehouseFk,
- MULTIMAX(t.landed, b.id) buyFk,
- MAX(t.landed) landed
- FROM buy b
- JOIN entry e ON e.id = b.entryFk
- JOIN travel t ON t.id = e.travelFk
- WHERE t.landed BETWEEN vStarted AND vEnded
- AND (vWarehouseFk IS NULL OR t.warehouseInFk = vWarehouseFk)
- AND b.price2 > 0
- AND NOT b.isIgnored
- AND b.quantity > 0
- AND itemOriginalFk
- GROUP BY itemOriginalFk, warehouseInFk;
-
- INSERT IGNORE INTO tmp.buyUltimateFromInterval(itemFk, warehouseFk, buyFk, landed)
- SELECT
- b.itemFk,
- t.warehouseInFk warehouseFk,
- b.id buyFk,
- t.landed
- FROM buy b
- JOIN entry e ON e.id = b.entryFk
- JOIN travel t ON t.id = e.travelFk
- WHERE t.landed > vEnded
- AND (vWarehouseFk IS NULL OR t.warehouseInFk = vWarehouseFk)
- AND b.price2 > 0
- AND NOT b.isIgnored
- AND itemOriginalFk
- GROUP BY itemOriginalFk, warehouseInFk;
+ INSERT IGNORE INTO tmp.buyUltimateFromInterval(itemFk, warehouseFk, buyFk, landed)
+ SELECT
+ b.itemFk,
+ t.warehouseInFk warehouseFk,
+ b.id buyFk,
+ t.landed
+ FROM buy b
+ JOIN entry e ON e.id = b.entryFk
+ JOIN travel t ON t.id = e.travelFk
+ WHERE t.landed > vEnded
+ AND (vWarehouseFk IS NULL OR t.warehouseInFk = vWarehouseFk)
+ AND b.price2 > 0
+ AND NOT b.isIgnored
+ AND itemOriginalFk
+ GROUP BY itemOriginalFk, warehouseInFk;
INSERT IGNORE INTO tmp.buyUltimateFromInterval(itemFk, warehouseFk, buyFk, landed)
SELECT
b.itemFk,
- t.warehouseInFk warehouseFk,
- b.id buyFk,
- t.landed
- FROM buy b
+ t.warehouseInFk warehouseFk,
+ b.id buyFk,
+ t.landed
+ FROM buy b
JOIN entry e ON e.id = b.entryFk
JOIN travel t ON t.id = e.travelFk
WHERE t.landed BETWEEN vStarted AND vEnded
@@ -46438,13 +45584,14 @@ BEGIN
AND b.quantity = 0
AND itemOriginalFk
GROUP BY itemOriginalFk, warehouseInFk;
-
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `buy_afterUpsert` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -46452,8 +45599,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `buy_afterUpsert`(vSelf INT)
BEGIN
@@ -46537,6 +45682,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `buy_checkGrouping` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -46544,8 +45691,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `buy_checkGrouping`(vGrouping INT)
BEGIN
@@ -46564,6 +45709,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `buy_getSplit` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -46571,8 +45718,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `buy_getSplit`(vSelf INT, vDated DATE)
BEGIN
@@ -46588,6 +45733,7 @@ BEGIN
DECLARE vSaleFk INT;
DECLARE vAmount INT;
DECLARE vDone BOOL DEFAULT FALSE;
+ DECLARE vCounter INT DEFAULT 1;
DECLARE cur CURSOR FOR
SELECT s.id, s.quantity - IFNULL(l.stem, 0)
@@ -46619,12 +45765,11 @@ BEGIN
FROM vn.buy WHERE id = vSelf;
-- Crea splits de los tickets
-
- DROP TEMPORARY TABLE IF EXISTS tmp.split;
- CREATE TEMPORARY TABLE tmp.split
+ CREATE OR REPLACE TEMPORARY TABLE tmp.split
(
id INT,
- labels INT
+ labels INT DEFAULT 0,
+ counter INT DEFAULT 0
)
ENGINE = MEMORY;
@@ -46646,7 +45791,7 @@ BEGIN
SET vLabels = vAmount DIV vPacking;
INSERT INTO tmp.split
- VALUES (vSaleFk, vLabels);
+ VALUES (vSaleFk, vLabels, 0);
INSERT INTO vn.saleLabel
SET
@@ -46661,9 +45806,18 @@ BEGIN
CLOSE cur;
+ -- Aumentar las lineas de tmp.split para tener una por cada etiqueta
+ WHILE vLabels > vCounter DO
+ INSERT INTO tmp.split(id, labels, counter)
+ VALUES(vSaleFk, vLabels, vCounter);
+ SET vCounter = vCounter + 1;
+ END WHILE;
+
+ UPDATE tmp.split
+ SET counter = counter + 1;
+
-- Devuelve los splits creados
- SELECT
- sp.labels,
+ SELECT CONCAT(sp.counter,'/',sp.labels) labels,
COALESCE(sfc.nickname, sfa.nickname, a.nickname) destination,
s.itemFk,
i.longName,
@@ -46694,6 +45848,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `buy_getVolume` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -46701,8 +45857,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `buy_getVolume`()
BEGIN
@@ -46728,6 +45882,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `buy_getVolumeByAgency` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -46735,8 +45891,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `buy_getVolumeByAgency`(vDated DATE, vAgencyFk INT)
BEGIN
@@ -46761,6 +45915,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `buy_getVolumeByEntry` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -46768,8 +45924,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `buy_getVolumeByEntry`(vEntryFk INT)
BEGIN
@@ -46792,6 +45946,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `buy_recalcPrices` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -46799,8 +45955,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `buy_recalcPrices`()
BEGIN
@@ -46857,6 +46011,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `buy_recalcPricesByAwb` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -46864,8 +46020,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `buy_recalcPricesByAwb`(IN awbFk varchar(18))
BEGIN
@@ -46894,6 +46048,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `buy_recalcPricesByBuy` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -46901,8 +46057,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `buy_recalcPricesByBuy`(IN vBuyFk INT(11))
BEGIN
@@ -46925,6 +46079,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `buy_recalcPricesByEntry` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -46932,8 +46088,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `buy_recalcPricesByEntry`(IN vEntryFk INT(11))
BEGIN
@@ -46958,6 +46112,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `buy_scan` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -46965,8 +46121,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `buy_scan`(vBarcode VARCHAR(512))
BEGIN
@@ -47010,6 +46164,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `buy_updateGrouping` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -47017,8 +46173,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `buy_updateGrouping`(vWarehouseFk INT, vItemFk INT, vGrouping INT)
BEGIN
@@ -47045,6 +46199,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `buy_updatePacking` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -47052,8 +46208,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `buy_updatePacking`(vWarehouseFk INT, vItemFk INT, vPacking INT)
BEGIN
@@ -47080,6 +46234,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `catalog_calcFromItem` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -47087,8 +46243,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `catalog_calcFromItem`(
vLanded DATE,
@@ -47119,6 +46273,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `catalog_calculate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -47126,8 +46282,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `catalog_calculate`(vLanded DATE, vAddressFk INT, vAgencyModeFk INT)
BEGIN
@@ -47316,6 +46470,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `catalog_componentCalculate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -47323,8 +46479,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `catalog_componentCalculate`( vZoneFk INT,
vAddressFk INT,
@@ -47653,6 +46807,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `catalog_componentPrepare` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -47660,8 +46816,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `catalog_componentPrepare`()
BEGIN
@@ -47693,6 +46847,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `catalog_componentPurge` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -47700,8 +46856,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `catalog_componentPurge`()
BEGIN
@@ -47715,6 +46869,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `catalog_test` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -47722,8 +46878,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `catalog_test`()
proc: BEGIN
@@ -47879,6 +47033,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `clean` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -47886,8 +47042,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `clean`()
BEGIN
@@ -47897,14 +47051,14 @@ BEGIN
DECLARE v18Month DATE;
DECLARE v26Month DATE;
DECLARE v3Month DATE;
- DECLARE vTrashId varchar(15);
+ DECLARE vTrashId VARCHAR(15);
- SET vDateShort = TIMESTAMPADD(MONTH, -2, util.VN_CURDATE());
- SET vOneYearAgo = TIMESTAMPADD(YEAR,-1,util.VN_CURDATE());
- SET vFourYearsAgo = TIMESTAMPADD(YEAR,-4,util.VN_CURDATE());
- SET v18Month = TIMESTAMPADD(MONTH, -18,util.VN_CURDATE());
- SET v26Month = TIMESTAMPADD(MONTH, -26,util.VN_CURDATE());
- SET v3Month = TIMESTAMPADD(MONTH, -3, util.VN_CURDATE());
+ SET vDateShort = util.VN_CURDATE() - INTERVAL 2 MONTH;
+ SET vOneYearAgo = util.VN_CURDATE() - INTERVAL 1 YEAR;
+ SET vFourYearsAgo = util.VN_CURDATE() - INTERVAL 4 YEAR;
+ SET v18Month = util.VN_CURDATE() - INTERVAL 18 MONTH;
+ SET v26Month = util.VN_CURDATE() - INTERVAL 26 MONTH;
+ SET v3Month = util.VN_CURDATE() - INTERVAL 3 MONTH;
DELETE FROM ticketParking WHERE created < vDateShort;
DELETE FROM routesMonitor WHERE dated < vDateShort;
@@ -47919,6 +47073,7 @@ BEGIN
DELETE IGNORE FROM expedition WHERE created < v26Month;
DELETE FROM sms WHERE created < v18Month;
DELETE FROM saleTracking WHERE created < vOneYearAgo;
+ DELETE FROM ticketTracking WHERE created < v18Month;
DELETE tobs FROM ticketObservation tobs
JOIN ticket t ON tobs.ticketFk = t.id WHERE t.shipped < TIMESTAMPADD(YEAR,-2,util.VN_CURDATE());
DELETE sc.* FROM saleCloned sc JOIN sale s ON s.id = sc.saleClonedFk JOIN ticket t ON t.id = s.ticketFk WHERE t.shipped < vOneYearAgo;
@@ -47938,12 +47093,11 @@ BEGIN
JOIN entry e ON e.id = b.entryFk
JOIN travel t ON t.id = e.travelFk
WHERE t.landed <= vDateShort;
- DELETE FROM stowaway WHERE created < v3Month;
DELETE FROM vn.buy WHERE created < vDateShort AND entryFk = 9200;
DELETE FROM vn.itemShelvingLog WHERE created < vDateShort;
DELETE FROM vn.stockBuyed WHERE creationDate < vDateShort;
DELETE FROM vn.itemCleanLog WHERE created < util.VN_NOW() - INTERVAL 1 YEAR;
-
+ DELETE FROM printQueue WHERE statusCode = 'printed' AND created < vDateShort;
-- Equipos duplicados
DELETE w.*
@@ -47978,7 +47132,7 @@ BEGIN
JOIN vn.travelThermograph th ON th.travelFk = t.id
WHERE t.shipped < TIMESTAMPADD(MONTH, -3, util.VN_CURDATE()) AND e.travelFk IS NULL;
- SELECT dt.id into vTrashId
+ SELECT dt.id INTO vTrashId
FROM vn.dmsType dt
WHERE dt.code = 'trash';
@@ -48062,6 +47216,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `clean_logiflora` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -48069,8 +47225,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `clean_logiflora`()
BEGIN
@@ -48162,6 +47316,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `clearShelvingList` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -48169,8 +47325,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `clearShelvingList`(vShelvingFk VARCHAR(8))
BEGIN
@@ -48183,6 +47337,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `clientCreate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -48190,8 +47346,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `clientCreate`(
vFirstname VARCHAR(50),
@@ -48269,6 +47423,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `clientDebtSpray` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -48276,8 +47432,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `clientDebtSpray`(vClientFk INT)
BEGIN
@@ -48311,6 +47465,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `clientFreeze` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -48318,8 +47474,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `clientFreeze`()
BEGIN
@@ -48368,76 +47522,34 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `clientGetDebt` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb3 */ ;
-/*!50003 SET character_set_results = utf8mb3 */ ;
-/*!50003 SET collation_connection = utf8mb3_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `clientGetDebt`(vDate DATE)
BEGIN
/**
- * Calcula el riesgo para los clientes activos
+ * Call client_getDebt
*
* @table tmp.clientGetDebt(clientFk)
* @param vDate Fecha maxima de los registros
* @return tmp.risk
*/
- DECLARE vStarted DATETIME DEFAULT TIMESTAMPADD(DAY, -35, util.VN_CURDATE());
- DECLARE vEnded DATETIME;
-
- SET vEnded = TIMESTAMP(IFNULL(vDate, util.VN_CURDATE()), '23:59:59');
-
- DROP TEMPORARY TABLE IF EXISTS tClientRisk;
- CREATE TEMPORARY TABLE tClientRisk
- ENGINE = MEMORY
- SELECT cr.clientFk, SUM(cr.amount) amount
- FROM clientRisk cr
- JOIN tmp.clientGetDebt c ON c.clientFk = cr.clientFk
- GROUP BY cr.clientFk;
-
- INSERT INTO tClientRisk
- SELECT c.clientFk, SUM(r.amountPaid)
- FROM receipt r
- JOIN tmp.clientGetDebt c ON c.clientFk = r.clientFk
- WHERE r.payed > vEnded
- GROUP BY c.clientFk;
-
- INSERT INTO tClientRisk
- SELECT t.clientFk, CAST(-SUM(t.amount) / 100 AS DECIMAL(10,2))
- FROM hedera.tpvTransaction t
- JOIN tmp.clientGetDebt c ON c.clientFk = t.clientFk
- WHERE t.receiptFk IS NULL
- AND t.status = 'ok'
- GROUP BY t.clientFk;
-
- INSERT INTO tClientRisk
- SELECT t.clientFk, totalWithVat
- FROM ticket t
- JOIN tmp.clientGetDebt c ON c.clientFk = t.clientFk
- WHERE refFk IS NULL
- AND shipped BETWEEN vStarted AND vEnded;
-
- DROP TEMPORARY TABLE IF EXISTS tmp.risk;
- CREATE TEMPORARY TABLE tmp.risk
- (PRIMARY KEY (clientFk))
- ENGINE = MEMORY
- SELECT clientFk, SUM(amount) risk
- FROM client c
- JOIN tClientRisk cr ON cr.clientFk = c.id
- GROUP BY c.id;
-
- DROP TEMPORARY TABLE tClientRisk;
+ CALL vn.client_getDebt(vDate);
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `clientGetDebtDiary` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -48445,8 +47557,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `clientGetDebtDiary`(vClientFK INT, vCompanyFk INT)
BEGIN
@@ -48568,6 +47678,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `clientGreugeSpray` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -48575,8 +47687,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `clientGreugeSpray`(IN vClientFk INT, IN onlyForHisOwner BOOL, IN vWorkerCode VARCHAR(3), IN vWithMana BOOLEAN)
BEGIN
@@ -48654,6 +47764,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `clientPackagingOverstock` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -48661,8 +47773,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `clientPackagingOverstock`(vClientFk INT, vGraceDays INT )
BEGIN
@@ -48760,6 +47870,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `clientPackagingOverstockReturn` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -48767,8 +47879,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `clientPackagingOverstockReturn`(vClientFk INT, vGraceDays INT )
BEGIN
@@ -48817,6 +47927,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `clientRemoveWorker` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -48824,8 +47936,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `clientRemoveWorker`()
BEGIN
@@ -48870,6 +47980,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `clientRisk_update` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -48877,8 +47989,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `clientRisk_update`(vClientId INT, vCompanyId INT, vAmount DECIMAL(10,2))
BEGIN
@@ -48898,6 +48008,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `client_checkBalance` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -48905,33 +48017,60 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `client_checkBalance`(IN vDateTo DATETIME, IN vIsConciliated BOOL)
BEGIN
-
+/**
+ * Compara los datos de nuestros clientes con
+ * los que hay en la base de datos de sage
+ *
+ * @param vDateTo
+ * @param vIsConciliated
+ * @table tmp.ledgerComparative (id, date, account, debit, credit, companyFk)
+ */
DECLARE vDateFrom DATE;
+ DECLARE vMaxTolerance DECIMAL(10,2);
SET vDateTo = TIMESTAMP(vDateTo,'23:59:59');
SELECT util.firstDayOfYear(vDateTo) INTO vDateFrom;
+ SELECT maxTolerance INTO vMaxTolerance
+ FROM vn.ledgerConfig;
- SELECT s.nickname, c.id , c.accountingAccount , sub1.mysql , sub1.sage, sub1.mysql - sub1.sage diference, sub1.companyFk , c.name
+ SELECT s.nickname,
+ c.id,
+ c.accountingAccount,
+ sub1.mysql,
+ sub1.sage,
+ sub1.mysql - sub1.sage difference,
+ sub1.companyFk,
+ c.name
FROM client c
JOIN payMethod pm ON pm.id = c.payMethodFk
- JOIN( SELECT sub.companyFk, sub.clientFk, ROUND(SUM(sub.mysql),2) mysql, ROUND(SUM(sub.sage),2) sage
- FROM( SELECT io.companyFk, io.clientFk, -io.amount mysql, 0 sage
+ JOIN (SELECT sub.companyFk,
+ sub.clientFk,
+ CAST(ROUND(SUM(sub.mysql), 2) AS DECIMAL(10,2)) mysql,
+ CAST(ROUND(SUM(sub.sage), 2) AS DECIMAL(10,2)) sage
+ FROM(SELECT io.companyFk,
+ io.clientFk,
+ - io.amount mysql,
+ 0 sage
FROM invoiceOut io
WHERE issued BETWEEN vDateFrom AND vDateTo
UNION ALL
- SELECT r.companyFk, r.clientFk, r.amountPaid, 0 sage
- FROM receipt r
- WHERE payed BETWEEN vDateFrom AND vDateTo
- AND IF(vIsConciliated,r.isConciliate, TRUE) = TRUE
+ SELECT r.companyFk,
+ r.clientFk,
+ r.amountPaid,
+ 0
+ FROM receipt r
+ WHERE payed BETWEEN vDateFrom AND vDateTo
+ AND IF(vIsConciliated,r.isConciliate, TRUE) = TRUE
UNION ALL
- SELECT empresa_id, c.id, 0, ROUND(NZ(Eurohaber) - NZ(Eurodebe),2) sage
- FROM bi.XDiario_ALL xd
- JOIN client c ON c.accountingAccount = xd.SUBCTA
- WHERE xd.Fecha BETWEEN vDateFrom AND vDateTo
+ SELECT lc.companyFk,
+ c.id,
+ 0,
+ - (NZ(lc.credit) - NZ(lc.debit))
+ FROM tmp.ledgerComparative lc
+ JOIN client c ON c.accountingAccount = lc.account
+ WHERE lc.`date` BETWEEN vDateFrom AND vDateTo
)sub
GROUP BY companyFk, clientFk
) sub1 ON sub1.clientFk = c.id
@@ -48939,15 +48078,88 @@ BEGIN
JOIN company co ON co.id = sub1.companyFk
WHERE pm.outstandingDebt
AND co.code <> 'BLK'
- HAVING ABS(diference) > 0.05
- ORDER BY c.name;
-
+ HAVING ABS(difference) > vMaxTolerance
+ ORDER BY c.name;
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+/*!50003 DROP PROCEDURE IF EXISTS `client_getDebt` */;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+DELIMITER ;;
+CREATE DEFINER=`root`@`localhost` PROCEDURE `client_getDebt`(vDate DATE)
+BEGIN
+/**
+ * Calculates the risk for active clients
+ *
+ * @table tmp.clientGetDebt(clientFk)
+ * @param vDate maximum date of records
+ * @return tmp.risk
+ */
+
+ DECLARE vStarted DATETIME;
+ DECLARE vEnded DATETIME;
+
+ SELECT TIMESTAMPADD(MONTH, -riskScope, util.VN_CURDATE()) INTO vStarted FROM clientConfig;
+ SET vEnded = TIMESTAMP(IFNULL(vDate, util.VN_CURDATE()), '23:59:59');
+
+ DROP TEMPORARY TABLE IF EXISTS tClientRisk;
+ CREATE TEMPORARY TABLE tClientRisk
+ ENGINE = MEMORY
+ SELECT cr.clientFk, SUM(cr.amount) amount
+ FROM clientRisk cr
+ JOIN tmp.clientGetDebt c ON c.clientFk = cr.clientFk
+ GROUP BY cr.clientFk;
+
+ INSERT INTO tClientRisk
+ SELECT c.clientFk, SUM(r.amountPaid)
+ FROM receipt r
+ JOIN tmp.clientGetDebt c ON c.clientFk = r.clientFk
+ WHERE r.payed > vEnded
+ GROUP BY c.clientFk;
+
+ INSERT INTO tClientRisk
+ SELECT t.clientFk, CAST(-SUM(t.amount) / 100 AS DECIMAL(10,2))
+ FROM hedera.tpvTransaction t
+ JOIN tmp.clientGetDebt c ON c.clientFk = t.clientFk
+ WHERE t.receiptFk IS NULL
+ AND t.status = 'ok'
+ GROUP BY t.clientFk;
+
+ INSERT INTO tClientRisk
+ SELECT t.clientFk, totalWithVat
+ FROM ticket t
+ JOIN tmp.clientGetDebt c ON c.clientFk = t.clientFk
+ WHERE refFk IS NULL
+ AND shipped BETWEEN vStarted AND vEnded;
+
+ DROP TEMPORARY TABLE IF EXISTS tmp.risk;
+ CREATE TEMPORARY TABLE tmp.risk
+ (PRIMARY KEY (clientFk))
+ ENGINE = MEMORY
+ SELECT clientFk, SUM(amount) risk
+ FROM client c
+ JOIN tClientRisk cr ON cr.clientFk = c.id
+ GROUP BY c.id;
+
+ DROP TEMPORARY TABLE tClientRisk;
+END ;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `client_RandomList` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -48955,8 +48167,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `client_RandomList`(vNumber INT)
BEGIN
@@ -49020,6 +48230,58 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+/*!50003 DROP PROCEDURE IF EXISTS `cmrPallet_add` */;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+DELIMITER ;;
+CREATE DEFINER=`root`@`localhost` PROCEDURE `cmrPallet_add`(vExpeditionPalletFk INT, vCmrFk INT)
+BEGIN
+/**
+ * Añade registro a tabla cmrPallet.
+ *
+ * @param vExpeditionPalletFk Id de expeditionPallet
+ * @param vCmrFk Id de cmrPallet
+ */
+ DECLARE vIsACurrentExpeditionPallet BOOL;
+ DECLARE vIsACurrentCMR BOOL;
+ DECLARE vYesterday DATE;
+
+ SET vYesterday = util.yesterday();
+
+ SELECT COUNT(*) INTO vIsACurrentExpeditionPallet
+ FROM vn.expeditionPallet cp
+ WHERE cp.id = vExpeditionPalletFk
+ AND cp.built >= vYesterday;
+
+ IF !vIsACurrentExpeditionPallet THEN
+ CALL util.throw('expeditionPalletNotExist');
+ END IF;
+
+ SELECT COUNT(*) INTO vIsACurrentCMR
+ FROM vn.cmr c
+ WHERE c.id = vCmrFk
+ AND c.created >= vYesterday;
+
+ IF vIsACurrentCMR THEN
+ INSERT INTO cmrPallet (cmrFk, expeditionPalletFk)
+ VALUES(vCmrFk, vExpeditionPalletFk);
+ ELSE
+ Call util.throw('cmrNotExist');
+ END IF;
+END ;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `cmr_getByTicket` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -49027,8 +48289,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `cmr_getByTicket`(vTicketFk INT)
BEGIN
@@ -49070,6 +48330,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `cmr_sendOverview` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -49077,8 +48339,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `cmr_sendOverview`()
BEGIN
@@ -49141,6 +48401,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `collectionPlacement_get` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -49148,8 +48410,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `collectionPlacement_get`(vParamFk INT(11), vIsPicker bool)
BEGIN
@@ -49219,7 +48479,7 @@ BEGIN
ts.itemFk,
CAST(0 AS DECIMAL(10,0)) as saleOrder,
IF(ish.visible > 0 OR iss.id, 1, 100000) * p.pickingOrder as `order`,
- IF(iss.id, TO_SECONDS(TIMESTAMPADD(YEAR,-vCurrentYear,iss.created)), TO_SECONDS(TIMESTAMPADD(YEAR,- year(ish.created),ish.created)) /* + TO_SECONDS(TIMESTAMPADD(YEAR,-vCurrentYear,util.VN_NOW())) */ ) as priority,
+ IF(iss.id, TO_SECONDS(TIMESTAMPADD(YEAR,-vCurrentYear,iss.created)), TO_SECONDS(TIMESTAMPADD(YEAR,- year(ish.created),ish.created)) /* + TO_SECONDS(TIMESTAMPADD(YEAR,-vCurrentYear,util.VN_NOW())) */) as priority,
CONCAT(
IF( iss.id,
CONCAT('< ', IFNULL(wk.`code`, '---'),' > '),
@@ -49281,10 +48541,10 @@ BEGIN
UPDATE tmp.salePlacementList s1
JOIN tmp.salePlacementList_3 s3 ON s3.saleFk = s1.saleFk
SET s1.saleOrder = s3.saleOrder;
- /*
+
-- Anula el orden de antigüedad y ordena por ubicación
UPDATE tmp.salePlacementList
- SET saleOrder = `order`;*/
+ SET saleOrder = `order`;
SELECT spl.*
FROM tmp.salePlacementList spl
@@ -49311,6 +48571,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `collection_addItem` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -49318,8 +48580,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `collection_addItem`(vItemFk INT, vQuantity INT, vTicketFk INT)
BEGIN
@@ -49353,6 +48613,93 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+/*!50003 DROP PROCEDURE IF EXISTS `collection_assign` */;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+DELIMITER ;;
+CREATE DEFINER=`root`@`localhost` PROCEDURE `collection_assign`(vUserFk INT, OUT vCollectionFk INT)
+proc:BEGIN
+/* Comprueba si existen colecciones libres que se ajustan al perfil del usuario
+ * y le asigna la más antigua.
+ * Añade un registro al semillero de colecciones
+ */
+ DECLARE vHasTooMuchCollections BOOL;
+ DECLARE vLockTime INT DEFAULT 15;
+
+ -- Si hay colecciones sin terminar, sale del proceso
+ CALL vn.collection_get(vUserFk);
+
+ SELECT (pc.maxNotReadyCollections - COUNT(*)) <= 0
+ INTO vHasTooMuchCollections
+ FROM tCollection
+ JOIN vn.productionConfig pc ;
+
+ DROP TEMPORARY TABLE tCollection;
+
+ IF vHasTooMuchCollections THEN
+ CALL util.throw('Hay colecciones pendientes');
+ LEAVE proc;
+ END IF;
+
+ IF NOT GET_LOCK('collection_assign',vLockTime) THEN
+ LEAVE proc;
+ END IF;
+
+ -- Se eliminan las colecciones sin asignar que estan obsoletas
+ INSERT INTO vncontrol.inter(state_id, Id_Ticket)
+ SELECT s.id, tc.ticketFk
+ FROM vn.collection c
+ JOIN vn.ticketCollection tc ON tc.collectionFk = c.id
+ JOIN vn.state s ON s.code = 'PRINTED_AUTO'
+ JOIN vn.productionConfig pc
+ WHERE c.workerFk IS NULL
+ AND TIMEDIFF(util.VN_NOW(), c.created) > pc.maxNotAssignedCollectionLifeTime;
+
+ DELETE c.*
+ FROM vn.collection c
+ JOIN vn.productionConfig pc
+ WHERE c.workerFk IS NULL
+ AND TIMEDIFF(util.VN_NOW(), c.created) > pc.maxNotAssignedCollectionLifeTime;
+
+ -- Se a�ade registro al semillero
+ INSERT INTO vn.collectionHotbed(userFk)
+ VALUES(vUserFk);
+
+ -- Comprueba si hay colecciones disponibles que se ajustan a su configuracion
+ SELECT MIN(c.id)
+ INTO vCollectionFk
+ FROM vn.collection c
+ JOIN vn.operator o
+ ON (o.itemPackingTypeFk = c.itemPackingTypeFk OR c.itemPackingTypeFk IS NULL)
+ AND o.numberOfWagons = c.wagons
+ AND o.trainFk = c.trainFk
+ AND o.warehouseFk = c.warehouseFk
+ AND c.workerFk IS NULL
+ WHERE o.workerFk = vUserFk;
+
+ IF vCollectionFk IS NULL THEN
+ CALL vn.collection_new(vUserFk, vCollectionFk);
+ END IF;
+
+ UPDATE vn.collection
+ SET workerFk = vUserFk
+ WHERE id = vCollectionFk;
+
+ DO RELEASE_LOCK('collection_assign');
+END ;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `collection_get` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -49360,8 +48707,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `collection_get`(vWorkerFk INT)
BEGIN
@@ -49399,6 +48744,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `collection_getTickets` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -49406,8 +48753,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `collection_getTickets`(vParamFk INT)
BEGIN
@@ -49428,7 +48773,8 @@ BEGIN
am.name agencyName,
t.warehouseFk,
w.id salesPersonFk,
- IFNULL(tob.description,'') observaciones
+ IFNULL(tob.description,'') observaciones,
+ cc.rgb
FROM vn.ticket t
LEFT JOIN vn.ticketCollection tc ON t.id = tc.ticketFk
LEFT JOIN vn.collection c2 ON c2.id = tc.collectionFk -- PAK 23/12/21
@@ -49450,7 +48796,8 @@ BEGIN
am.name agencyName,
t.warehouseFk,
w.id salesPersonFk,
- IFNULL(tob.description, '') observaciones
+ IFNULL(tob.description, '') observaciones,
+ IF(!(vItemPackingTypeFk <=> 'V'), cc.rgb, NULL) `rgb`
FROM vn.ticket t
JOIN vn.ticketCollection tc ON t.id = tc.ticketFk
LEFT JOIN vn.collection c2 ON c2.id = tc.collectionFk -- PAK 23/12/21
@@ -49472,6 +48819,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `collection_kill` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -49479,8 +48828,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `collection_kill`(vSelf INT)
BEGIN
@@ -49504,6 +48851,89 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+/*!50003 DROP PROCEDURE IF EXISTS `collection_make` */;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+DELIMITER ;;
+CREATE DEFINER=`root`@`localhost` PROCEDURE `collection_make`()
+proc:BEGIN
+/**
+ * Genera colecciones de tickets sin asignar trabajador a partir de la tabla
+ * vn.collectionHotbed.
+ */
+ DECLARE vUserFk INT;
+ DECLARE vCounter INT;
+ DECLARE vMaxCollectionWithoutUser INT;
+ DECLARE vHasEnoughFreeCollections BOOL;
+ DECLARE vDone INT DEFAULT FALSE;
+
+ DECLARE cur1 CURSOR FOR
+ SELECT DISTINCT userFk
+ FROM vn.collectionHotbed;
+
+ DECLARE CONTINUE HANDLER FOR NOT FOUND SET vDone = TRUE;
+
+ SELECT maxCollectionWithoutUser
+ INTO vMaxCollectionWithoutUser
+ FROM vn.productionConfig pc;
+
+ SELECT (vMaxCollectionWithoutUser - COUNT(*)) <= 0
+ INTO vHasEnoughFreeCollections
+ FROM vn.collection c
+ JOIN vn.operator o
+ ON o.numberOfWagons = c.wagons
+ AND o.trainFk = c.trainFk
+ AND o.itemPackingTypeFk = c.itemPackingTypeFk
+ WHERE c.workerFk IS NULL
+ AND o.workerFk = vUserFk;
+
+ IF vHasEnoughFreeCollections THEN
+ LEAVE proc;
+ END IF;
+
+ OPEN cur1;
+
+ read_loop: LOOP
+
+ SET vDone = FALSE;
+
+ FETCH cur1 INTO vUserFk;
+
+ IF vDone THEN
+ LEAVE read_loop;
+ END IF;
+
+ SET vCounter = vMaxCollectionWithoutUser;
+
+ WHILE vCounter > 0 DO
+
+ SET vCounter = vCounter - 1;
+
+ CALL vn.collection_new(vUserFk, @vCollectionFk);
+
+ END WHILE;
+
+ DELETE
+ FROM vn.collectionHotbed
+ WHERE userFk = vUserFk;
+
+ END LOOP;
+
+ CLOSE cur1;
+END ;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `collection_missingTrash` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -49511,8 +48941,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `collection_missingTrash`(
vSaleFk BIGINT,
@@ -49631,6 +49059,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `collection_new` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -49638,22 +49068,17 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `collection_new`(vSectorFk INT, vWagons INT, vTrainFk INT, vUserFk INT, OUT vCollectionFk INT)
+CREATE DEFINER=`root`@`localhost` PROCEDURE `collection_new`(vUserFk INT, OUT vCollectionFk INT)
proc:BEGIN
-/* Genera colecciones de tickets y devuelve el primer vn.collection.id
+/**
+ * Genera colecciones de tickets sin asignar trabajador.
*
- * @param vSectorFk Identificador de vn.sector
- * @param vWagons Número de carros que lleva
- * @param vTrainFk Identificador de vn.train
* @param vUserFk Identificador de account.user
- *
- * @return vCollectionFk Número de colección
*/
-
DECLARE vWarehouseFk INT;
+ DECLARE vWagons INT;
+ DECLARE vTrainFk INT;
DECLARE vMaxTickets INT;
DECLARE vStateFk INT;
DECLARE vFirstTicketFk INT;
@@ -49664,8 +49089,6 @@ proc:BEGIN
DECLARE vTicketFk INT;
DECLARE vItemPackingTypeFk VARCHAR(1);
DECLARE vHasAssignedTickets BOOLEAN;
- DECLARE vMaxNotReadyCollections INT;
- DECLARE vNotReadyCollections INT;
DECLARE vHasUniqueCollectionTime BOOL;
DECLARE vDone INT DEFAULT FALSE;
DECLARE vLockName VARCHAR(215);
@@ -49689,41 +49112,29 @@ proc:BEGIN
DECLARE CONTINUE HANDLER FOR NOT FOUND SET vDone = TRUE;
SELECT
- pc.ticketTrolleyMax * vWagons,
- pc.maxNotReadyCollections,
+ pc.ticketTrolleyMax * o.numberOfWagons,
pc.hasUniqueCollectionTime,
w.code,
- s.warehouseFk,
- s.itemPackingTypeFk,
+ o.warehouseFk,
+ o.itemPackingTypeFk,
st.id,
- CONCAT('collection_new',vSectorFk)
+ CONCAT('collection_new', o.warehouseFk, ':',o.itemPackingTypeFk),
+ o.numberOfWagons,
+ o.trainFk
INTO
vMaxTickets,
- vMaxNotReadyCollections,
vHasUniqueCollectionTime,
vWorkerCode,
vWarehouseFk,
vItemPackingTypeFk,
vStateFk,
- vLockName
+ vLockName,
+ vWagons,
+ vTrainFk
FROM vn.productionConfig pc
JOIN vn.worker w ON w.id = vUserFk
- JOIN vn.sector s ON s.id = vSectorFk
- JOIN vn.state st ON st.`code` = 'ON_PREPARATION';
-
- -- Si hay colecciones sin terminar, sale del proceso
- CALL vn.collection_get(vUserFk);
-
- SELECT COUNT(*)
- INTO vNotReadyCollections
- FROM tCollection;
-
- DROP TEMPORARY TABLE tCollection;
-
- IF vMaxNotReadyCollections < vNotReadyCollections THEN
- CALL util.throw('Hay colecciones pendientes');
- LEAVE proc;
- END IF;
+ JOIN vn.state st ON st.`code` = 'ON_PREPARATION'
+ JOIN vn.operator o ON o.workerFk = vUserFk;
IF NOT GET_LOCK(vLockName,vLockTime) THEN
LEAVE proc;
@@ -49759,9 +49170,10 @@ proc:BEGIN
-- Se obtiene nº de colección.
INSERT INTO vn.collection
- SET workerFk = vUserFk,
- itemPackingTypeFk = vItemPackingTypeFk,
- trainFk = vTrainFk;
+ SET itemPackingTypeFk = vItemPackingTypeFk,
+ trainFk = vTrainFk,
+ wagons = vWagons,
+ warehouseFk = vWarehouseFk;
SELECT LAST_INSERT_ID() INTO vCollectionFk;
@@ -49824,7 +49236,7 @@ proc:BEGIN
ticketFk
LIMIT 1;
- -- Hay que excluir aquellos que no tengan la misma hora de preparación, si procede
+ -- Hay que excluir aquellos que no tengan la misma hora de preparacion, si procede
IF vHasUniqueCollectionTime THEN
DELETE
FROM tmp.productionBuffer
@@ -49886,6 +49298,15 @@ proc:BEGIN
UPDATE tTrain
SET ticketFk = vFirstTicketFk
WHERE wagon = vFreeWagonFk;
+
+ -- Se anulan el resto de carros libres para que sólo uno lleve un pedido excesivo
+ DELETE tt.*
+ FROM tTrain tt
+ LEFT JOIN (SELECT DISTINCT wagon
+ FROM tTrain
+ WHERE ticketFk IS NOT NULL
+ ) nn ON nn.wagon = tt.wagon
+ WHERE nn.wagon IS NULL;
END IF;
END IF;
@@ -49923,7 +49344,7 @@ proc:BEGIN
FROM vn.ticketCollection tc
WHERE tc.collectionFk = vCollectionFk;
- CALL vn.salesMerge_byCollection(vCollectionFk);
+ CALL vn.sales_mergeByCollection(vCollectionFk);
UPDATE vn.collection c
JOIN (SELECT count(*) saleTotalCount ,
@@ -49946,25 +49367,7 @@ proc:BEGIN
END IF;
DO RELEASE_LOCK(vLockName);
-/*
- SELECT
- pb.HH,
- pb.mm,
- pb.agency,
- tc.collectionFk,
- tc.ticketFk,
- tc.wagon,
- tc.`level`,
- tc.liters,
- tc.itemCount,
- pb.liters,
- pb.`lines`
- FROM vn.collection c
- JOIN vn.ticketCollection tc ON tc.collectionFk = c.id
- JOIN tmp.productionBuffer pb ON pb.ticketFk = tc.ticketFk
- WHERE c.created >= util.VN_CURDATE()
- ORDER BY tc.collectionFk DESC, tc.wagon, tc.`level`;
- */
+
DROP TEMPORARY TABLE
tTrain,
tmp.productionBuffer;
@@ -49974,6 +49377,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `collection_newSmartTag` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -49981,8 +49386,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `collection_newSmartTag`(vSectorFk INT)
proc:BEGIN
@@ -50036,6 +49439,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `collection_newWithWagon` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -50043,8 +49448,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `collection_newWithWagon`(vSectorFk INT, vWagons INT)
proc:BEGIN
@@ -50603,7 +50006,7 @@ proc:BEGIN
IF (SELECT count(*) FROM vn.ticketCollection WHERE collectionFk = vCollectionFk) THEN
- CALL vn.salesMerge_byCollection(vCollectionFk);
+ CALL vn.sales_mergeByCollection(vCollectionFk);
UPDATE vn.collection c
JOIN (SELECT count(*) saleTotalCount ,
@@ -50641,6 +50044,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `collection_printSticker` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -50648,46 +50053,39 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `collection_printSticker`(vSelf INT)
BEGIN
/**
- * Imprime una etiqueta amarilla a partir de una colección
+ * Prints a yellow label from a collection or a ticket
*
- * @param vSelf colección
- * @param vPrinterFk id de la impresora
+ * @param vSelf collection or ticket
*/
- DECLARE vReportFk INT;
DECLARE vPrinterFk INT;
- SELECT s.reportFk, w.labelerFk INTO vReportFk, vPrinterFk
- FROM worker w
- LEFT JOIN sector s ON s.id= w.sectorFk
- WHERE w.id = account.myUser_getId() ;
+ SELECT w.labelerFk INTO vPrinterFk FROM worker w WHERE w.id = account.myUser_getId();
- IF vReportFk AND vPrinterFk THEN
- INSERT INTO ticketTrolley(ticket, labelCount)
- SELECT ticketFk, 1
- FROM ticketCollection
- WHERE collectionFk = vSelf
- ON DUPLICATE KEY UPDATE labelCount = labelCount + 1;
+ CALL report_print(
+ 'LabelCollection',
+ vPrinterFk,
+ account.myUser_getId(),
+ JSON_OBJECT('collectionFk', vSelf),
+ 'high'
+ );
- INSERT INTO printQueue(priorityFk, reportFk, workerFk,printerFk)
- SELECT qp.id, vReportFk, account.myUser_getId(), vPrinterFk
- FROM queuePriority qp
- WHERE qp.`code`= 'high';
-
- INSERT INTO printQueueArgs (printQueueFk, `name`, `value` )
- SELECT LAST_INSERT_ID(), 'param', vSelf;
- END IF;
+ INSERT INTO ticketTrolley(ticket, labelCount)
+ SELECT ticketFk, 1
+ FROM ticketCollection
+ WHERE collectionFk = vSelf
+ ON DUPLICATE KEY UPDATE labelCount = labelCount + 1;
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `collection_setParking` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -50695,8 +50093,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `collection_setParking`(IN `vCollectionFk` VARCHAR(8), IN `vParkingFk` INT)
proc: BEGIN
@@ -50716,6 +50112,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `collection_updateSale` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -50723,8 +50121,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `collection_updateSale`(
vSaleFk INT,
@@ -50767,6 +50163,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `company_getFiscaldata` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -50774,8 +50172,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `company_getFiscaldata`(workerFk INT)
BEGIN
@@ -50805,6 +50201,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `conveyorExpedition_Add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -50812,8 +50210,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `conveyorExpedition_Add`(vStarted DATETIME, vEnded DATETIME)
BEGIN
@@ -50870,6 +50266,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `copyComponentsFromSaleList` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -50877,8 +50275,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `copyComponentsFromSaleList`(vTargetTicketFk INT)
BEGIN
@@ -50917,6 +50313,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `createPedidoInterno` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -50924,8 +50322,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `createPedidoInterno`(vItemFk INT,vQuantity INT)
BEGIN
@@ -50939,6 +50335,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `crypt` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -50946,8 +50344,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `crypt`(vText VARCHAR(255), vKey VARCHAR(255), OUT vResult VARCHAR(255) )
BEGIN
@@ -51009,6 +50405,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `cryptOff` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -51016,8 +50414,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `cryptOff`(vText VARCHAR(255), vKey VARCHAR(255), OUT vResult VARCHAR(255))
BEGIN
@@ -51076,6 +50472,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `department_calcTree` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -51083,8 +50481,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `department_calcTree`()
BEGIN
@@ -51120,6 +50516,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `department_calcTreeRec` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -51127,8 +50525,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `department_calcTreeRec`(
vSelf INT,
@@ -51202,6 +50598,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `department_doCalc` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -51209,8 +50607,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `department_doCalc`()
proc: BEGIN
@@ -51244,6 +50640,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `department_getHasMistake` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -51251,8 +50649,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `department_getHasMistake`()
BEGIN
@@ -51273,6 +50669,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `department_getLeaves` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -51280,8 +50678,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `department_getLeaves`(
vParentFk INT,
@@ -51364,6 +50760,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `deviceLog_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -51371,8 +50769,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `deviceLog_add`(vWorkerFk INT, vAppName VARCHAR(45), vAppVersion VARCHAR(45), vAndroid_id VARCHAR(100))
BEGIN
@@ -51393,6 +50789,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `deviceProductionUser_exists` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -51400,8 +50798,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `deviceProductionUser_exists`(vUserFk INT)
BEGIN
@@ -51417,6 +50813,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `deviceProductionUser_getWorker` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -51424,8 +50822,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `deviceProductionUser_getWorker`(vAndroid_id VARCHAR(50))
BEGIN
@@ -51435,18 +50831,18 @@ BEGIN
* @param vAndroid_id el número android_id del dispositivo
*
*/
- SELECT 103;
-/* SELECT account.user_getNameFromId(dpu.userFk)
+ SELECT account.user_getNameFromId(dpu.userFk)
FROM deviceProductionUser dpu
JOIN deviceProduction dp ON dpu.deviceProductionFk = dp.id
- WHERE dp.android_id = vAndroid_id;*/
-
+ WHERE dp.android_id = vAndroid_id;
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `deviceProduction_getnameDevice` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -51454,8 +50850,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `deviceProduction_getnameDevice`(vAndroid_id VARCHAR(50))
BEGIN
@@ -51476,6 +50870,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `device_checkLogin` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -51483,8 +50879,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `device_checkLogin`(vUserFk INT, vAndroidID VARCHAR(50))
BEGIN
@@ -51532,6 +50926,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `duaEntryValueUpdate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -51539,8 +50935,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `duaEntryValueUpdate`(vDuaFk INT)
BEGIN
@@ -51573,6 +50967,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `duaInvoiceInBooking` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -51580,8 +50976,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `duaInvoiceInBooking`(vDuaFk INT)
BEGIN
@@ -51656,6 +51050,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `duaParcialMake` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -51663,8 +51059,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `duaParcialMake`(vDuaFk INT)
BEGIN
@@ -51690,6 +51084,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `duaTaxBooking` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -51697,8 +51093,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `duaTaxBooking`(vDuaFk INT)
BEGIN
@@ -51838,6 +51232,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `duaTax_doRecalc` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -51845,8 +51241,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `duaTax_doRecalc`(vDuaFk INT)
BEGIN
@@ -51900,6 +51294,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ediTables_Update` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -51907,8 +51303,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ediTables_Update`()
BEGIN
@@ -51926,6 +51320,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ektEntryAssign_setEntry` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -51933,8 +51329,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ektEntryAssign_setEntry`()
BEGIN
@@ -52051,6 +51445,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `energyMeter_record` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -52058,8 +51454,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `energyMeter_record`(vInput INT, vActiveTime INT)
BEGIN
@@ -52084,6 +51478,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `entryDelivered` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -52091,8 +51487,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `entryDelivered`(vDated DATE, vEntryFk INT)
BEGIN
@@ -52128,6 +51522,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `entryToTicket` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -52135,8 +51531,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `entryToTicket`(vEntryFk INT, vTicketFk INT)
BEGIN
@@ -52155,6 +51549,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `entryWithItem` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -52162,8 +51558,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `entryWithItem`(vShipmentWarehouse INT, vLandingWarehouse INT,vSale INT, vVolume INT, netCost DECIMAL(10,2), vInOutDate DATE)
BEGIN
@@ -52222,51 +51616,49 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `entry_clone` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `entry_clone`(vSelf INT)
BEGIN
-
-/*
- * Clona una entrada
+/**
+ * Clona una entrada.
*
* @param vSelf Identificador de vn.entry
*/
-
DECLARE vNewEntryFk INT;
CALL vn.entry_cloneWithoutBuy(vSelf, vNewEntryFk);
- INSERT INTO vn.buy( entryFk,
- itemFk,
- quantity,
- buyingValue,
- freightValue,
- isIgnored,
- stickers,
- packing,
- `grouping`,
- groupingMode,
- containerFk,
- comissionValue,
- packageValue,
- packageFk,
- price1,
- price2,
- price3,
- minPrice,
- producer,
- workerFk,
- weight,
- itemOriginalFk)
+ INSERT INTO vn.buy(
+ entryFk,
+ itemFk,
+ quantity,
+ buyingValue,
+ freightValue,
+ isIgnored,
+ stickers,
+ packing,
+ `grouping`,
+ groupingMode,
+ containerFk,
+ comissionValue,
+ packageValue,
+ packageFk,
+ price1,
+ price2,
+ price3,
+ minPrice,
+ workerFk,
+ weight,
+ itemOriginalFk)
SELECT vNewEntryFk,
itemFk,
quantity,
@@ -52285,7 +51677,6 @@ BEGIN
price2,
price3,
minPrice,
- producer,
workerFk,
weight,
itemOriginalFk
@@ -52293,13 +51684,14 @@ BEGIN
WHERE b.entryFk = vSelf;
SELECT vNewEntryFk;
-
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `entry_cloneWithoutBuy` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -52307,8 +51699,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `entry_cloneWithoutBuy`(vSelf INT, OUT vNewEntryFk INT)
BEGIN
@@ -52356,6 +51746,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `entry_fixMisfit` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -52363,8 +51755,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `entry_fixMisfit`(vSelf INT)
BEGIN
@@ -52380,26 +51770,26 @@ BEGIN
WHERE i.description = 'MISFIT'
LIMIT 1;
- INSERT INTO vn.buy(entryFk,
- itemFk,
- quantity,
- buyingValue,
- freightValue,
- isIgnored,
- stickers,
- packing,
- `grouping`,
- groupingMode,
- containerFk,
- comissionValue,
- packageValue,
- location,
- packageFk,
- price1,
- price2,
- price3,
- minPrice,
- producer)
+ INSERT INTO vn.buy(
+ entryFk,
+ itemFk,
+ quantity,
+ buyingValue,
+ freightValue,
+ isIgnored,
+ stickers,
+ packing,
+ `grouping`,
+ groupingMode,
+ containerFk,
+ comissionValue,
+ packageValue,
+ location,
+ packageFk,
+ price1,
+ price2,
+ price3,
+ minPrice)
SELECT vSelf,
itemFk,
(printedStickers - stickers) * packing quantity,
@@ -52418,8 +51808,7 @@ BEGIN
price1,
price2,
price3,
- minPrice,
- producer
+ minPrice
FROM vn.buy b
WHERE b.entryFk = vSelf
AND b.printedStickers != b.stickers;
@@ -52429,6 +51818,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `entry_getRate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -52436,8 +51827,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `entry_getRate`(vEntry INT)
BEGIN
@@ -52479,6 +51868,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `entry_moveNotPrinted` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -52486,16 +51877,17 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `entry_moveNotPrinted`(vSelf INT, vDays INT, vChangeEntry BOOL, OUT vNewEntryFk INT)
+CREATE DEFINER=`root`@`localhost` PROCEDURE `entry_moveNotPrinted`(vSelf INT,
+ vDays INT,
+ vChangeEntry BOOL,
+ OUT vNewEntryFk INT)
BEGIN
/**
- * Crea una entrada a futuro y divide las lineas de vn.buy de la entrada original en función
- * de las etiquetas impresas
+ * Crea una entrada a futuro y divide las lineas de buy de
+ * la entrada original en función de las etiquetas impresas
*
- * @param vSelf Identificador de vn.entry
+ * @param vSelf Identificador de entry
* @param vDays Número de dias a futuro que se quiere la nueva entrada
*
* @return vNewEntryFk Identificador de la nueva entrada
@@ -52503,29 +51895,28 @@ BEGIN
DECLARE vNewTravelFk INT;
DECLARE vTravelFk INT;
DECLARE vInvoiceAmountOldEntryFk DECIMAL(10,2);
- DECLARE vInvoiceAmountNewEntry DECIMAL(10,2);
+ DECLARE vInvoiceAmountNewEntry DECIMAL(10,2);
SELECT travelFk INTO vTravelFk
- FROM vn.entry
- WHERE id = vSelf;
+ FROM entry
+ WHERE id = vSelf;
- CALL vn.travel_clone(vTravelFk, vDays, vNewTravelFk);
- CALL vn.entry_cloneWithoutBuy(vSelf, vNewEntryFk);
+ CALL travel_clone(vTravelFk, vDays, vNewTravelFk);
+ CALL entry_cloneWithoutBuy(vSelf, vNewEntryFk);
- UPDATE vn.entry e
+ UPDATE entry e
SET e.travelFk = vNewTravelFk,
e.evaNotes = CONCAT('No impresas de: ', vSelf, ' ', IFNULL(e.evaNotes,''))
WHERE e.id = vNewEntryFk;
IF vChangeEntry THEN
- UPDATE vn.buy b
+ UPDATE buy b
SET b.entryFk = vNewEntryFk
WHERE b.printedStickers = 0
AND b.entryFk = vSelf;
END IF;
- INSERT INTO vn.buy(
- entryFk,
+ INSERT INTO buy(entryFk,
itemFk,
quantity,
buyingValue,
@@ -52543,11 +51934,9 @@ BEGIN
price2,
price3,
minPrice,
- producer,
workerFk,
weight,
- itemOriginalFk
- )
+ itemOriginalFk)
SELECT vNewEntryFk,
itemFk,
((stickers - printedStickers) * packing) quantity,
@@ -52566,27 +51955,26 @@ BEGIN
price2,
price3,
minPrice,
- producer,
workerFk,
weight,
itemOriginalFk
- FROM vn.buy b
+ FROM buy b
WHERE b.entryFk = vSelf
AND b.printedStickers != b.stickers;
IF vChangeEntry THEN
- UPDATE vn.buy
+ UPDATE buy
SET stickers = printedStickers,
quantity = printedStickers * packing
WHERE entryFk = vSelf;
ELSE
- INSERT INTO vn.buy(entryFk, itemFk)
+ INSERT INTO buy(entryFk, itemFk)
SELECT vSelf, i.id
- FROM vn.item i
+ FROM item i
WHERE i.description = 'MISFIT'
LIMIT 1;
- INSERT INTO vn.buy(entryFk,
+ INSERT INTO buy(entryFk,
itemFk,
quantity,
buyingValue,
@@ -52604,8 +51992,7 @@ BEGIN
price1,
price2,
price3,
- minPrice,
- producer)
+ minPrice)
SELECT vSelf,
itemFk,
(printedStickers - stickers) * packing quantity,
@@ -52624,50 +52011,58 @@ BEGIN
price1,
price2,
price3,
- minPrice,
- producer
- FROM vn.buy
+ minPrice
+ FROM buy
WHERE entryFk = vSelf
AND printedStickers != stickers;
END IF;
SELECT SUM(IFNULL(b.buyingValue * b.quantity, 0)) INTO vInvoiceAmountOldEntryFk
- FROM vn.buy b
+ FROM buy b
WHERE b.entryFk = vSelf;
- UPDATE vn.entry e
- JOIN vn.buy b ON b.entryFk = e.id
+ UPDATE entry e
+ JOIN buy b ON b.entryFk = e.id
SET e.ref = CONCAT(e.ref,'(1)'),
e.invoiceAmount = vInvoiceAmountOldEntryFk
WHERE e.id = vSelf;
SELECT SUM(IFNULL(b.buyingValue * b.quantity, 0)) INTO vInvoiceAmountNewEntry
- FROM vn.buy b
+ FROM buy b
WHERE b.entryFk = vNewEntryFk;
- UPDATE vn.entry e
- JOIN vn.buy b ON b.entryFk = e.id
- SET e.ref = CONCAT(e.ref,'(2)'),
+ UPDATE entry e
+ JOIN buy b ON b.entryFk = e.id
+ SET e.`ref` = CONCAT(e.`ref`,'(2)'),
e.invoiceAmount = vInvoiceAmountNewEntry
WHERE e.id = vNewEntryFk;
INSERT INTO entryLog
- SET action = 'update',
+ SET `action` = 'update',
description = CONCAT('Se ha creado la entrada ', vNewEntryFk,' transferida desde la ', vSelf),
userFk = account.myUser_getId(),
originFk = vSelf;
INSERT INTO entryLog
- SET action = 'update',
+ SET `action` = 'update',
description = CONCAT('Se ha creado la entrada ', vNewEntryFk,' transferida desde la ', vSelf),
userFk = account.myUser_getId(),
originFk = vNewEntryFk;
+
+ UPDATE entry
+ SET gestDocFk = (SELECT gestDocFk FROM entry WHERE id = vSelf LIMIT 1)
+ WHERE id = vNewEntryFk;
+
+ INSERT INTO duaEntry (duaFk, entryFk)
+ SELECT duaFk, vNewEntryFk FROM duaEntry WHERE entryFk = vSelf LIMIT 1;
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `entry_notifyChanged` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -52675,8 +52070,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `entry_notifyChanged`(vSelf INT, vBuyFk INT, vOldValues VARCHAR(512), vNewValues VARCHAR(512))
BEGIN
@@ -52713,6 +52106,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `entry_recalc` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -52720,8 +52115,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `entry_recalc`()
BEGIN
@@ -52760,6 +52153,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `entry_splitByShelving` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -52767,8 +52162,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `entry_splitByShelving`(vShelvingFk VARCHAR(3), vFromEntryFk INT, vToEntryFk INT)
BEGIN
@@ -52856,7 +52249,6 @@ BEGIN
price2,
price3,
minPrice,
- producer,
printedStickers,
workerFk,
isChecked,
@@ -52885,7 +52277,6 @@ BEGIN
price2,
price3,
minPrice,
- producer,
ishStickers,
workerFk,
isChecked,
@@ -52907,6 +52298,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `entry_splitMisfit` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -52914,8 +52307,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `entry_splitMisfit`(vSelf INT)
BEGIN
@@ -52954,6 +52345,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `errorProduction_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -52961,8 +52354,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `errorProduction_add`(
vAction VARCHAR(25),
@@ -52978,13 +52369,6 @@ BEGIN
*/
DECLARE vDepartment VARCHAR(255);
- DROP TEMPORARY TABLE IF EXISTS tmp.timeControlCalculate;
- DROP TEMPORARY TABLE IF EXISTS tmp.total;
- DROP TEMPORARY TABLE IF EXISTS tmp.itemPickerErrors;
- DROP TEMPORARY TABLE IF EXISTS tmp.errorsByClaim;
- DROP TEMPORARY TABLE IF EXISTS tmp.volume;
- DROP TEMPORARY TABLE IF EXISTS tmp.errorsByChecker;
-
CASE
WHEN vAction = 'SACAR' THEN
SET vDepartment = 'Sacadores';
@@ -52995,7 +52379,7 @@ BEGIN
END CASE;
IF (vDepartment = 'Encajadores') THEN
- CREATE TEMPORARY TABLE tmp.total
+ CREATE OR REPLACE TEMPORARY TABLE total
ENGINE = MEMORY
SELECT e.workerFk,
COUNT(DISTINCT t.id) ticketCount,
@@ -53006,7 +52390,7 @@ BEGIN
WHERE t.shipped BETWEEN vDatedFrom AND vDatedTo
GROUP BY e.workerFk;
ELSE
- CREATE TEMPORARY TABLE tmp.total
+ CREATE OR REPLACE TEMPORARY TABLE total
ENGINE = MEMORY
SELECT st.workerFk,
COUNT(DISTINCT t.id) ticketCount,
@@ -53022,8 +52406,7 @@ BEGIN
CALL timeControl_calculateAll(vDatedFrom, vDatedTo);
-
- CREATE TEMPORARY TABLE tmp.errorsByClaim
+ CREATE OR REPLACE TEMPORARY TABLE errorsByClaim
ENGINE = MEMORY
SELECT COUNT(c.ticketFk) errors,
cd.workerFk
@@ -53035,7 +52418,7 @@ BEGIN
AND cr.description = vDepartment
GROUP BY cd.workerFk;
- CREATE TEMPORARY TABLE tmp.volume
+ CREATE OR REPLACE TEMPORARY TABLE volume
ENGINE = MEMORY
SELECT SUM(w.volume) volume,
w.workerFk
@@ -53043,7 +52426,7 @@ BEGIN
WHERE w.dated BETWEEN vDatedFrom AND vDatedTo
GROUP BY w.workerFk;
- CREATE TEMPORARY TABLE tmp.errorsByChecker
+ CREATE OR REPLACE TEMPORARY TABLE errorsByChecker
ENGINE = MEMORY
SELECT sub1.workerFk, COUNT(id) errors
FROM (
@@ -53060,6 +52443,16 @@ BEGIN
) sub1
GROUP BY sub1.workerFk;
+ CREATE OR REPLACE TEMPORARY TABLE expeditionErrors
+ ENGINE = MEMORY
+ SELECT COUNT(t.id) errors,
+ e.workerFk
+ FROM vn.expeditionMistake pm
+ JOIN vn.expedition e ON e.id = pm.expeditionFk
+ JOIN vn.ticket t ON t.id = e.ticketFk
+ WHERE t.shipped BETWEEN vDatedFrom AND vDatedTo
+ GROUP BY e.workerFk;
+
IF (vDepartment = 'Sacadores') THEN
INSERT INTO errorProduction(userFk,
@@ -53080,18 +52473,18 @@ BEGIN
vDepartment,
t.ticketCount totalTickets,
t.lineCount,
- IFNULL(ec.errors,0) + IFNULL(ec2.errors,0) errors,
+ IFNULL(ec.errors,0) + IFNULL(ec2.errors,0) errors,
IF(vDepartment = 'Revisadores', NULL, v.volume) volume,
SUBSTRING(tc.timed, 1, 5) hourStart,
SUBSTRING(tc.timed, LENGTH(tc.timed)-4, 5) hourEnd,
IFNULL(CAST(tc.timeWorkDecimal AS DECIMAL (10,2)) , 0) hourWorked,
vDatedFrom dated
- FROM tmp.total t
+ FROM total t
LEFT JOIN worker w ON w.id = t.workerFk
LEFT JOIN tmp.timeControlCalculate tc ON tc.userFk = t.workerFk
- LEFT JOIN tmp.errorsByClaim ec ON ec.workerFk = t.workerFk
- LEFT JOIN tmp.volume v ON v.workerFk = t.workerFk
- LEFT JOIN tmp.errorsByChecker ec2 ON ec2.workerFk = t.workerFk
+ LEFT JOIN errorsByClaim ec ON ec.workerFk = t.workerFk
+ LEFT JOIN volume v ON v.workerFk = t.workerFk
+ LEFT JOIN errorsByChecker ec2 ON ec2.workerFk = t.workerFk
JOIN (SELECT DISTINCT w.id -- Verificamos que son sacadores
FROM vn.collection c
JOIN vn.state s ON s.id = c.stateFk
@@ -53100,7 +52493,7 @@ BEGIN
WHERE c.created BETWEEN vDatedFrom AND vDatedTo) sub ON sub.id = w.id
GROUP BY w.id;
- CREATE TEMPORARY TABLE tmp.itemPickerErrors -- Errores de los sacadores, derivadores de los revisadores
+ CREATE OR REPLACE TEMPORARY TABLE itemPickerErrors -- Errores de los sacadores, derivadores de los revisadores
ENGINE = MEMORY
SELECT COUNT(c.ticketFk) errors,
tt.workerFk
@@ -53116,9 +52509,11 @@ BEGIN
GROUP BY workerFk;
UPDATE errorProduction ep
- JOIN tmp.itemPickerErrors ipe ON ipe.workerFk = ep.userFk
+ JOIN itemPickerErrors ipe ON ipe.workerFk = ep.userFk
SET ep.error = ep.error + ipe.errors
WHERE vDatedFrom = ep.dated AND ep.rol = 'Sacadores';
+
+ DROP TEMPORARY TABLE itemPickerErrors;
ELSE
INSERT INTO errorProduction(userFk,
firstname,
@@ -53138,33 +52533,35 @@ BEGIN
vDepartment,
t.ticketCount totalTickets,
t.lineCount,
- IFNULL(ec.errors,0) + IFNULL(ec2.errors,0) errors,
+ IFNULL(ec.errors,0) + IFNULL(ec2.errors,0) + IFNULL(pe.errors,0) errors,
IF(vDepartment = 'Revisadores', NULL, v.volume) volume,
SUBSTRING(tc.timed, 1, 5) hourStart,
SUBSTRING(tc.timed, LENGTH(tc.timed)-4, 5) hourEnd,
IFNULL(CAST(tc.timeWorkDecimal AS DECIMAL (10,2)) , 0) hourWorked,
vDatedFrom dated
- FROM tmp.total t
+ FROM total t
LEFT JOIN worker w ON w.id = t.workerFk
LEFT JOIN tmp.timeControlCalculate tc ON tc.userFk = t.workerFk
- LEFT JOIN tmp.errorsByClaim ec ON ec.workerFk = t.workerFk
- LEFT JOIN tmp.volume v ON v.workerFk = t.workerFk
- LEFT JOIN tmp.errorsByChecker ec2 ON ec2.workerFk = t.workerFk
+ LEFT JOIN errorsByClaim ec ON ec.workerFk = t.workerFk
+ LEFT JOIN volume v ON v.workerFk = t.workerFk
+ LEFT JOIN errorsByChecker ec2 ON ec2.workerFk = t.workerFk
+ LEFT JOIN expeditionErrors pe ON pe.workerFk = t.workerFk
GROUP BY w.id;
END IF;
- DROP TEMPORARY TABLE tmp.timeControlCalculate;
- DROP TEMPORARY TABLE tmp.total;
- DROP TEMPORARY TABLE IF EXISTS tmp.itemPickerErrors;
- DROP TEMPORARY TABLE tmp.errorsByClaim;
- DROP TEMPORARY TABLE tmp.volume;
- DROP TEMPORARY TABLE tmp.errorsByChecker;
+ DROP TEMPORARY TABLE total,
+ errorsByClaim,
+ volume,
+ errorsByChecker,
+ expeditionErrors;
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `errorProduction_addLauncher` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -53172,8 +52569,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `errorProduction_addLauncher`()
BEGIN
@@ -53191,6 +52586,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `expeditionGetFromRoute` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -53198,8 +52595,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `expeditionGetFromRoute`(
vExpeditionFk INT)
@@ -53229,13 +52624,15 @@ BEGIN
INNER JOIN vn.ticketState ts ON ts.ticketFk = exp.ticketFk
LEFT JOIN vn.address a ON t.addressFk = a.id
LEFT JOIN vn.warehouse w ON t.warehouseFk = w.id
- WHERE t.routeFk = vRouteFk AND exp.isBox > 0;
+ WHERE t.routeFk = vRouteFk AND exp.freightItemFk > 0;
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `expeditionPallet_Del` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -53243,8 +52640,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `expeditionPallet_Del`(vPalletFk INT)
BEGIN
@@ -53258,6 +52653,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `expeditionPallet_List` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -53265,8 +52662,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `expeditionPallet_List`(vTruckFk INT)
BEGIN
@@ -53287,6 +52682,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `expeditionPallet_printLabel` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -53294,50 +52691,36 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `expeditionPallet_printLabel`(vSelf INT)
BEGIN
/**
- * Inserta en la cola de impresión teniendo en cuenta el sector de trabajador
- * la expedición que se pasa como variable al procedimiento vSelf.
+ * Calls the report_print procedure and passes it
+ * the necessary parameters for printing.
*
- * @param vSelf identificador de expedition pallet
+ * @param vSelf expeditioPallet id.
*/
- DECLARE vReport INT;
DECLARE vPrinterFk INT;
- SET vReport = NULL;
+ SELECT w.labelerFk INTO vPrinterFk FROM worker w WHERE w.id = account.myUser_getId();
- SELECT s.reportFk, w.labelerFk INTO vReport, vPrinterFk
- FROM worker w
- JOIN sector s ON s.id = w.sectorFk
- JOIN report r ON r.id = s.reportFk
- WHERE w.id = account.myUser_getId()
- AND r.name = 'LabelPalletExpedition';
+ CALL vn.report_print(
+ 'LabelPalletExpedition',
+ vPrinterFk,
+ account.myUser_getId(),
+ JSON_OBJECT('palletFk',vSelf),
+ 'high'
+ );
- IF vReport IS NULL THEN
- CALL util.throw('Sector incorrecto');
- END IF;
-
- UPDATE vn.expeditionPallet
- SET isPrint = FALSE
- WHERE id = vSelf;
-
- INSERT INTO printQueue (printerFk, priorityFk, reportFk, workerFk)
- SELECT vPrinterFk, qp.id, vReport, account.myUser_getId()
- FROM queuePriority qp
- WHERE qp.`code`= 'high';
-
- INSERT INTO printQueueArgs (printQueueFk, `name`, `value` )
- SELECT LAST_INSERT_ID(), 'palletFk', vSelf;
+ UPDATE vn.expeditionPallet SET isPrint = TRUE WHERE id = vSelf;
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `expeditionPallet_View` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -53345,8 +52728,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection = utf8mb3_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `expeditionPallet_View`(vPalletFk INT)
BEGIN
@@ -53367,6 +52748,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `expeditionScan_Add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -53374,8 +52757,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `expeditionScan_Add`(vPalletFk INT, vTruckFk INT)
BEGIN
@@ -53407,6 +52788,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `expeditionScan_Del` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -53414,8 +52797,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `expeditionScan_Del`(vScanFk INT)
BEGIN
@@ -53429,6 +52810,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `expeditionScan_List` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -53436,8 +52819,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `expeditionScan_List`(vPalletFk INT)
BEGIN
@@ -53459,6 +52840,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `expeditionScan_Put` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -53466,8 +52849,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `expeditionScan_Put`(vPalletFk INT, vExpeditionFk INT)
BEGIN
@@ -53483,6 +52864,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `expeditionState_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -53490,8 +52873,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection = utf8mb3_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `expeditionState_add`(vParam INT, vStateCode VARCHAR(100))
BEGIN
@@ -53527,6 +52908,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `expeditionState_addByAdress` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -53534,8 +52917,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `expeditionState_addByAdress`(vAdressFk INT, vRouteFk INT, vStateCode VARCHAR(100))
BEGIN
@@ -53561,6 +52942,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `expeditionState_addByExpedition` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -53568,8 +52951,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection = utf8mb3_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `expeditionState_addByExpedition`(vExpeditionFk INT, vStateCode VARCHAR(100))
BEGIN
@@ -53592,6 +52973,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `expeditionState_addByPallet` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -53599,8 +52982,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `expeditionState_addByPallet`(vPalletFk INT, vStateCode VARCHAR(100))
BEGIN
@@ -53636,6 +53017,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `expeditionState_addByRoute` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -53643,8 +53026,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection = utf8mb3_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `expeditionState_addByRoute`(vRouteFk INT, vStateCode VARCHAR(100))
BEGIN
@@ -53669,6 +53050,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `expeditionTruck_Add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -53676,8 +53059,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `expeditionTruck_Add`(vHour VARCHAR(5), vDescription VARCHAR(45))
BEGIN
@@ -53691,6 +53072,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `expeditionTruck_List` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -53698,8 +53081,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `expeditionTruck_List`()
BEGIN
@@ -53716,6 +53097,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `expedition_getFromRoute` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -53723,8 +53106,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `expedition_getFromRoute`(vRouteFk INT)
BEGIN
@@ -53760,7 +53141,7 @@ BEGIN
GROUP BY sub.ticketFk
) sub2 ON sub2.ticketFk = t.id
LEFT JOIN expeditionStateType est ON est.id = e.stateTypeFk
- WHERE t.routeFk = vRouteFk AND e.isBox <> FALSE
+ WHERE t.routeFk = vRouteFk AND e.freightItemFk <> FALSE
ORDER BY r.created, t.priority DESC;
END ;;
DELIMITER ;
@@ -53768,6 +53149,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `expedition_getState` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -53775,8 +53158,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `expedition_getState`(vExpeditionFk INT)
BEGIN
@@ -53838,6 +53219,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `expedition_StateGet` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -53845,8 +53228,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `expedition_StateGet`(vExpeditionFk INT)
BEGIN
@@ -53925,6 +53306,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `faultsReview` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -53932,8 +53315,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `faultsReview`(vWarehouseFk INT)
BEGIN
@@ -53982,6 +53363,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `faultsReview_isChecked` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -53989,8 +53372,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `faultsReview_isChecked`(vItemFk INT, vWarehouseFk INT)
BEGIN
@@ -54010,6 +53391,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `freelance_getInfo` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -54017,8 +53400,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `freelance_getInfo`(workerFk INT)
BEGIN
@@ -54037,6 +53418,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `fustControl` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -54044,8 +53427,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `fustControl`(vFromDated DATE, vToDated DATE)
BEGIN
@@ -54129,6 +53510,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `fustControlDetail` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -54136,8 +53519,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `fustControlDetail`(vFromDated DATE, vToDated DATE)
BEGIN
@@ -54178,6 +53559,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `fv_pca` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -54185,8 +53568,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `fv_pca`()
BEGIN
@@ -54292,6 +53673,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `getDayExpeditions` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -54299,8 +53682,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `getDayExpeditions`()
BEGIN
@@ -54320,6 +53701,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `getInfoDelivery` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -54327,8 +53710,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `getInfoDelivery`(vRouteFk INT)
BEGIN
@@ -54343,6 +53724,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `getItemUbication` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -54350,8 +53733,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `getItemUbication`(vItemFk VARCHAR(22))
BEGIN
@@ -54369,6 +53750,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `getPedidosInternos` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -54376,8 +53759,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `getPedidosInternos`()
BEGIN
@@ -54390,6 +53771,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `greuge_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -54397,8 +53780,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `greuge_add`()
BEGIN
@@ -54425,6 +53806,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `inventoryFailureAdd` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -54432,8 +53815,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `inventoryFailureAdd`()
BEGIN
@@ -54486,6 +53867,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `inventoryMake` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -54493,8 +53876,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `inventoryMake`(vDate DATE, vWh INT)
proc: BEGIN
@@ -54668,6 +54049,8 @@ proc: BEGIN
UPDATE tmp.inventory inv
JOIN cache.last_buy lb ON lb.item_id = inv.itemFk AND lb.warehouse_id = vWh
JOIN buy b ON b.id = lb.buy_id
+ JOIN item i ON i.id = b.itemFk
+ LEFT JOIN producer p ON p.id = i.producerFk
SET
inv.buyingValue = b.buyingValue,
inv.freightValue = b.freightValue,
@@ -54681,8 +54064,7 @@ proc: BEGIN
inv.price2 = b.price2,
inv.price3 = b.price3,
inv.minPrice = b.minPrice,
- inv.producer = b.producer;
-
+ inv.producer = p.name;
INSERT INTO buy( itemFk,
quantity,
@@ -54698,7 +54080,6 @@ proc: BEGIN
price2,
price3,
minPrice,
- producer,
entryFk)
SELECT itemFk,
GREATEST(quantity,0),
@@ -54714,7 +54095,6 @@ proc: BEGIN
price2,
price3,
minPrice,
- producer,
vEntryFk
FROM tmp.inventory;
@@ -54759,6 +54139,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `inventoryMakeLauncher` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -54766,8 +54148,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `inventoryMakeLauncher`()
BEGIN
@@ -54783,6 +54163,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `inventory_repair` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -54790,8 +54172,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `inventory_repair`()
BEGIN
@@ -54907,6 +54287,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `invoiceExpenceMake` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -54914,8 +54296,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceExpenceMake`(IN vInvoice INT)
BEGIN
@@ -54950,6 +54330,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `invoiceFromAddress` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -54957,8 +54339,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceFromAddress`(vMaxTicketDate DATETIME,vAddress INT,vCompany INT)
BEGIN
@@ -54982,6 +54362,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `invoiceFromClient` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -54989,29 +54371,34 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceFromClient`(IN vMaxTicketDate datetime, IN vClientFk INT, IN vCompanyFk INT)
+CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceFromClient`(
+ IN vMaxTicketDate datetime,
+ IN vClientFk INT,
+ IN vCompanyFk INT)
BEGIN
- DECLARE vMinTicketDate DATE DEFAULT TIMESTAMPADD(YEAR, -3, util.VN_CURDATE());
- SET vMaxTicketDate = util.dayend(vMaxTicketDate);
+ DECLARE vMinTicketDate DATE;
+
+ SET vMinTicketDate = util.firstDayOfYear(vMaxTicketDate - INTERVAL 1 YEAR);
+ SET vMaxTicketDate = util.dayend(vMaxTicketDate);
DROP TEMPORARY TABLE IF EXISTS `ticketToInvoice`;
CREATE TEMPORARY TABLE `ticketToInvoice`
(PRIMARY KEY (`id`))
- ENGINE = MEMORY
- SELECT id FROM ticket t
- WHERE t.clientFk = vClientFk
- AND t.refFk IS NULL
- AND t.companyFk = vCompanyFk
- AND (t.shipped BETWEEN vMinTicketDate AND vMaxTicketDate);
+ ENGINE = MEMORY
+ SELECT id FROM ticket t
+ WHERE t.clientFk = vClientFk
+ AND t.refFk IS NULL
+ AND t.companyFk = vCompanyFk
+ AND t.shipped BETWEEN vMinTicketDate AND vMaxTicketDate;
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `invoiceFromTicket` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -55019,8 +54406,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceFromTicket`(IN vTicket INT)
BEGIN
@@ -55039,6 +54424,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `invoiceInBookingCommon` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -55046,8 +54433,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceInBookingCommon`(vInvoiceInId INT, OUT vSerialNumber INT)
BEGIN
@@ -55099,6 +54484,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `invoiceInBookingMain` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -55106,8 +54493,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceInBookingMain`(vInvoiceInId INT)
BEGIN
@@ -55357,6 +54742,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `invoiceInDueDay_calculate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -55364,8 +54751,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceInDueDay_calculate`(vInvoiceInFk INT)
BEGIN
@@ -55414,6 +54799,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `invoiceInDueDay_recalc` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -55421,8 +54808,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceInDueDay_recalc`(vInvoiceInFk INT)
BEGIN
@@ -55438,6 +54823,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `invoiceInTaxMakeByDua` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -55445,8 +54832,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceInTaxMakeByDua`(vDuaFk INT)
BEGIN
@@ -55483,6 +54868,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `invoiceInTax_getFromDua` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -55490,8 +54877,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceInTax_getFromDua`(vDuaFk INT)
BEGIN
@@ -55528,6 +54913,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `invoiceInTax_getFromEntries` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -55535,8 +54922,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceInTax_getFromEntries`(IN vId INT)
BEGIN
@@ -55586,6 +54971,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `invoiceOutAgain` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -55593,8 +54980,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceOutAgain`(IN vInvoiceRef VARCHAR(15), vTaxArea VARCHAR(25))
BEGIN
@@ -55656,6 +55041,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `invoiceOutBooking` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -55663,8 +55050,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceOutBooking`(IN vInvoice INT)
BEGIN
@@ -55864,6 +55249,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `invoiceOutBookingRange` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -55871,8 +55258,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceOutBookingRange`()
BEGIN
@@ -55924,6 +55309,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `invoiceOutDelete` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -55931,8 +55318,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceOutDelete`(vRef VARCHAR(15))
BEGIN
@@ -56003,6 +55388,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `invoiceOutListByCompany` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -56010,8 +55397,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceOutListByCompany`(vCompany INT, vStarted DATE, vEnded DATE)
BEGIN
@@ -56043,6 +55428,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `invoiceOutTaxAndExpence` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -56050,8 +55437,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceOutTaxAndExpence`()
BEGIN
@@ -56132,6 +55517,53 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+/*!50003 DROP PROCEDURE IF EXISTS `invoiceOut_exportationFromClient` */;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+DELIMITER ;;
+CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceOut_exportationFromClient`(
+ vMaxTicketDate DATETIME,
+ vClientFk INT,
+ vCompanyFk INT)
+BEGIN
+/**
+ * Genera tabla temporal ticketToInvoice necesaría para el proceso de facturación
+ * Los abonos quedan excluidos en las exportaciones
+ *
+ * @param vMaxTicketDate Fecha hasta la cual cogera tickets para facturar
+ * @param vClientFk Id del cliente a facturar
+ * @param vCompanyFk Id de la empresa desde la que se factura
+ */
+ DECLARE vMinTicketDate DATE;
+ SET vMinTicketDate = util.firstDayOfYear(vMaxTicketDate - INTERVAL 1 YEAR);
+ SET vMaxTicketDate = util.dayend(vMaxTicketDate);
+
+ DROP TEMPORARY TABLE IF EXISTS `ticketToInvoice`;
+ CREATE TEMPORARY TABLE `ticketToInvoice`
+ (PRIMARY KEY (`id`))
+ ENGINE = MEMORY
+ SELECT t.id
+ FROM ticket t
+ JOIN agencyMode am ON am.id = t.agencyModeFk
+ WHERE t.clientFk = vClientFk
+ AND t.refFk IS NULL
+ AND t.companyFk = vCompanyFk
+ AND (t.shipped BETWEEN vMinTicketDate AND vMaxTicketDate)
+ AND am.`code` <> 'refund';
+END ;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `invoiceOut_new` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -56139,8 +55571,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceOut_new`(
vSerial VARCHAR(255),
@@ -56186,11 +55616,16 @@ BEGIN
DELETE ti.*
FROM ticketToInvoice ti
JOIN ticket t ON t.id = ti.id
+ JOIN sale s ON s.ticketFk = t.id
+ JOIN item i ON i.id = s.itemFk
+ JOIN supplier su ON su.id = t.companyFk
JOIN client c ON c.id = t.clientFk
+ LEFT JOIN itemTaxCountry itc ON itc.itemFk = i.id AND itc.countryFk = su.countryFk
WHERE YEAR(t.shipped) < 2001
OR c.isTaxDataChecked = FALSE
OR t.isDeleted
- OR c.hasToInvoice = FALSE;
+ OR c.hasToInvoice = FALSE
+ OR itc.id IS NULL;
SELECT SUM(s.quantity * s.price * (100 - s.discount)/100), ts.id
INTO vIsAnySaleToInvoice, vIsAnyServiceToInvoice
@@ -56363,6 +55798,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `invoiceOut_newFromClient` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -56370,12 +55807,15 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceOut_newFromClient`(IN vClientFk int, IN vSerial char(2), IN vMaxShipped date,
- IN vCompanyFk int, IN vTaxArea varchar(25),
- IN vRef varchar(25), OUT vInvoiceId int)
+CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceOut_newFromClient`(
+ IN vClientFk INT,
+ IN vSerial CHAR(2),
+ IN vMaxShipped DATE,
+ IN vCompanyFk INT,
+ IN vTaxArea VARCHAR(25),
+ IN vRef VARCHAR(25),
+ OUT vInvoiceId INT)
BEGIN
/**
* Factura los tickets de un cliente hasta una fecha dada
@@ -56387,8 +55827,8 @@ BEGIN
* @param vRef Referencia de la factura en caso que se quiera forzar, NULL por defecto
* @return vInvoiceId factura
*/
-
DECLARE vIsRefEditable BOOLEAN;
+ DECLARE vIsExportation BOOLEAN;
IF vRef IS NOT NULL THEN
SELECT isRefEditable INTO vIsRefEditable
@@ -56400,7 +55840,17 @@ BEGIN
END IF;
END IF;
- CALL invoiceFromClient(vMaxShipped, vClientFk, vCompanyFk);
+ SELECT COUNT(*) INTO vIsExportation
+ FROM vn.invoiceOutSerial
+ WHERE taxAreaFk = 'WORLD'
+ AND `code` = vSerial;
+
+ IF vIsExportation THEN
+ CALL invoiceOut_exportationFromClient(vMaxShipped, vClientFk, vCompanyFk);
+ ELSE
+ CALL invoiceFromClient(vMaxShipped, vClientFk, vCompanyFk);
+ END IF;
+
CALL invoiceOut_new(vSerial, util.VN_CURDATE(), vTaxArea, vInvoiceId);
UPDATE invoiceOut
@@ -56408,15 +55858,17 @@ BEGIN
WHERE id = vInvoiceId
AND vRef IS NOT NULL;
- IF vSerial <> 'R' AND NOT ISNULL(vInvoiceId) AND vInvoiceId <> 0 THEN
+ IF vSerial <> 'R' AND NOT ISNULL(vInvoiceId) AND vInvoiceId <> 0 THEN
CALL invoiceOutBooking(vInvoiceId);
- END IF;
+ END IF;
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `invoiceOut_newFromTicket` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -56424,8 +55876,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceOut_newFromTicket`(IN vTicketFk int, IN vSerial char(2), IN vTaxArea varchar(25),
IN vRef varchar(25), OUT vInvoiceId int)
@@ -56464,6 +55914,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `invoiceTaxMake` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -56471,8 +55923,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `invoiceTaxMake`(vInvoice INT, vTaxArea VARCHAR(25))
BEGIN
@@ -56521,6 +55971,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemBarcode_update` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -56528,8 +55980,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemBarcode_update`(vItemFk INT,vCode VARCHAR(22), vDelete BOOL)
BEGIN
@@ -56545,6 +55995,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemFreight_Show` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -56552,8 +56004,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemFreight_Show`(vItemFk INT, vWarehouseFk INT)
BEGIN
@@ -56585,6 +56035,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemFuentesBalance` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -56592,8 +56044,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemFuentesBalance`(vDaysInFuture INT)
BEGIN
@@ -56678,6 +56128,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemPlacementFromTicket` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -56685,8 +56137,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemPlacementFromTicket`(vTicket INT)
BEGIN
@@ -56715,6 +56165,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemPlacementSupplyAiming` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -56722,8 +56174,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemPlacementSupplyAiming`(vShelvingFk VARCHAR(10), quantity INT, vItemFk INT)
BEGIN
@@ -56758,6 +56208,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemPlacementSupplyCloseOrder` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -56765,8 +56217,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemPlacementSupplyCloseOrder`(vId INT, vQuantity INT)
BEGIN
@@ -56781,6 +56231,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemPlacementSupplyGetOrder` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -56788,8 +56240,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemPlacementSupplyGetOrder`(vSector INT )
BEGIN
@@ -56831,6 +56281,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemPlacementSupplyStockGetTargetList` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -56838,49 +56290,46 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemPlacementSupplyStockGetTargetList`(vItemFk INT,vSectorFk INT)
BEGIN
+/**
+ * Devuelve la lista de ubicaciones para itemFk en ese sector. Se utiliza en la preparación previa.
+ * Este proc se llama a continuacion de ticketToPrePrepare
+ *
+ * @param vItemFk Identificador de vn.item
+ * @param vSectorFk Identificador de vn.sector
+ */
+ DECLARE vWarehouseAliasFk INT;
- /* Devuelve la lista de ubicaciones para itemFk en ese sector. Se utiliza en la preparación previa.
- * Este proc se llama a continuacion de ticketToPrePrepare
- *
- * @param vItemFk Identificador de vn.item
- * @param vSectorFk Identificador de vn.sector
- */
+ SELECT w.aliasFk INTO vWarehouseAliasFk
+ FROM vn.sector s
+ JOIN vn.warehouse w ON w.id = s.warehouseFk
+ WHERE s.id = vSectorFk;
- DECLARE vWarehouseAliasFk INT;
-
- SELECT w.aliasFk INTO vWarehouseAliasFk
- FROM vn.sector s
- JOIN vn.warehouse w ON w.id = s.warehouseFk
- WHERE s.id = vSectorFk;
-
- SELECT ish.shelvingFk shelving,
- p.code parking,
- sum(ish.visible) as stockTotal,
- ish.created,
- p.pickingOrder
- FROM vn.itemShelving ish
- JOIN vn.shelving sh ON sh.code = ish.shelvingFk
- JOIN vn.parking p ON p.id = sh.parkingFk
- JOIN vn.sector sc ON sc.id = p.sectorFk
- JOIN vn.warehouse w ON w.id = sc.warehouseFk
- WHERE w.aliasFk = vWarehouseAliasFk
- AND ish.visible > 0
- AND ish.itemFk = vItemFk
+ SELECT ish.shelvingFk shelving,
+ p.code parking,
+ sum(ish.visible) as stockTotal,
+ ish.created,
+ p.pickingOrder
+ FROM vn.itemShelving ish
+ JOIN vn.shelving sh ON sh.code = ish.shelvingFk
+ JOIN vn.parking p ON p.id = sh.parkingFk
+ JOIN vn.sector sc ON sc.id = p.sectorFk
+ JOIN vn.warehouse w ON w.id = sc.warehouseFk
+ WHERE w.aliasFk = vWarehouseAliasFk
+ AND ish.visible > 0
+ AND ish.itemFk = vItemFk
GROUP BY ish.id
- ORDER BY sh.priority DESC;
-
-
+ ORDER BY (sc.id = vSectorFk) DESC, sh.priority DESC;
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemProposal` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -56888,8 +56337,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemProposal`(vItemFk INT, vTicketFk INT,vShowType BOOL)
BEGIN
@@ -56981,6 +56428,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemProposal_Add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -56988,8 +56437,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemProposal_Add`(vSaleFk INT, vMateFk INT, vQuantity INT)
BEGIN
@@ -57053,6 +56500,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemProposal_beta` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -57060,8 +56509,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemProposal_beta`(vItemFk INT, vTicketFk INT)
BEGIN
@@ -57142,6 +56589,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemRefreshTags` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -57149,8 +56598,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemRefreshTags`(IN vItem INT)
BEGIN
@@ -57175,6 +56622,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemSale_byWeek` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -57182,8 +56631,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemSale_byWeek`(vWeek INT, IN vYear INT, vItemFk INT, vWarehouseFk INT)
BEGIN
@@ -57234,6 +56681,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemSaveMin` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -57241,8 +56690,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemSaveMin`(min INT,vBarcode VARCHAR(22))
BEGIN
@@ -57260,6 +56707,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemSearchShelving` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -57267,8 +56716,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemSearchShelving`(`vShelvingFk` VARCHAR(3))
BEGIN
@@ -57282,6 +56729,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemShelvingDelete` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -57289,8 +56738,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemShelvingDelete`(vId INT)
BEGIN
@@ -57303,6 +56750,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemShelvingLog_get` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -57310,8 +56759,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemShelvingLog_get`(vShelvingFk VARCHAR(10) )
BEGIN
@@ -57351,6 +56798,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemShelvingMakeFromDate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -57358,10 +56807,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `itemShelvingMakeFromDate`(IN `vShelvingFk` VARCHAR(8), IN `vBarcode` VARCHAR(22), IN `vShelve` VARCHAR(2), IN `vQuantity` INT, IN `vPackagingFk` VARCHAR(10), IN `vGrouping` INT, IN `vPacking` INT, IN `vWarehouseFk` INT, `vCreated` VARCHAR(22))
+CREATE DEFINER=`root`@`localhost` PROCEDURE `itemShelvingMakeFromDate`(IN `vShelvingFk` VARCHAR(8), IN `vBarcode` VARCHAR(22), IN `vQuantity` INT, IN `vPackagingFk` VARCHAR(10), IN `vGrouping` INT, IN `vPacking` INT, IN `vWarehouseFk` INT, `vCreated` VARCHAR(22))
BEGIN
DECLARE vItemFk INT;
@@ -57398,7 +56845,6 @@ BEGIN
CALL cache.last_buy_refresh(FALSE);
INSERT INTO itemShelving( itemFk,
shelvingFk,
- shelve,
visible,
created,
`grouping`,
@@ -57406,7 +56852,6 @@ BEGIN
packagingFk)
SELECT vItemFk,
vShelvingFk,
- vShelve,
vQuantity,
vCreated,
IF(vGrouping = 0, IFNULL(b.packing, vPacking), vGrouping) `grouping`,
@@ -57424,6 +56869,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemShelvingMatch` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -57431,8 +56878,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemShelvingMatch`(vEntryFk INT, vAllTravel BOOLEAN, vFromTimed DATETIME, vToTimed DATETIME)
BEGIN
@@ -57468,6 +56913,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemShelvingPlacementSupplyAdd` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -57475,8 +56922,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemShelvingPlacementSupplyAdd`(vItemShelvingFk INT, vItemPlacementSupplyFk INT, vQuantity INT)
BEGIN
@@ -57501,6 +56946,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemShelvingProblem` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -57508,8 +56955,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemShelvingProblem`(vSectorFk INT)
BEGIN
@@ -57563,6 +57008,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemShelvingRadar` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -57570,8 +57017,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemShelvingRadar`(vSectorFk INT)
proc:BEGIN
@@ -57783,6 +57228,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemShelvingRadar_Entry` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -57790,8 +57237,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemShelvingRadar_Entry`(vEntryFk INT)
BEGIN
@@ -57848,6 +57293,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemShelvingRadar_Entry_State_beta` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -57855,8 +57302,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemShelvingRadar_Entry_State_beta`(vEntryFk INT)
BEGIN
@@ -57899,6 +57344,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemShelvingRadar_Urgent` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -57906,8 +57353,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemShelvingRadar_Urgent`()
BEGIN
@@ -57995,6 +57440,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemShelvingSale_Add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -58002,8 +57449,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemShelvingSale_Add`(vItemShelvingFk INT, vSaleFk INT, vQuantity INT)
BEGIN
@@ -58037,6 +57482,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemShelvingTransfer` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -58044,24 +57491,57 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `itemShelvingTransfer`(vItemShelvingFk INT,shelvingFkD VARCHAR(22))
+CREATE DEFINER=`root`@`localhost` PROCEDURE `itemShelvingTransfer`(vItemShelvingFk INT, vShelvingFk VARCHAR(3))
BEGIN
+/**
+ * Transfiere producto de una ubicación a otra, fusionando si coincide el
+ * packing y la fecha.
+ *
+ * @param vItemShelvingFk Identificador de itemShelving
+ * @param vShelvingFk Identificador de shelving
+ */
+ DECLARE vNewItemShelvingFk INT DEFAULT 0;
- UPDATE vn.itemShelving
- SET shelvingFk = shelvingFkD
- WHERE id = vItemShelvingFk;
+ SELECT MAX(ish.id)
+ INTO vNewItemShelvingFk
+ FROM itemShelving ish
+ JOIN (
+ SELECT
+ itemFk,
+ packing,
+ created
+ FROM itemShelving
+ WHERE id = vItemShelvingFk
+ ) ish2
+ ON ish2.itemFk = ish.itemFk
+ AND ish2.packing = ish.packing
+ AND date(ish2.created) = date(ish.created)
+ WHERE ish.shelvingFk = vShelvingFk COLLATE utf8_unicode_ci;
+
+ IF vNewItemShelvingFk THEN
+ UPDATE itemShelving ish
+ JOIN itemShelving ish2 ON ish2.id = vItemShelvingFk
+ SET ish.visible = ish.visible + ish2.visible
+ WHERE ish.id = vNewItemShelvingFk;
+
+ DELETE FROM itemShelving
+ WHERE id = vItemShelvingFk;
+ ELSE
+ UPDATE itemShelving
+ SET shelvingFk = vShelvingFk
+ WHERE id = vItemShelvingFk;
+ END IF;
SELECT true;
-
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemShelving_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -58069,10 +57549,8 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `itemShelving_add`(IN vShelvingFk VARCHAR(8), IN vBarcode VARCHAR(22), IN vShelve VARCHAR(2), IN vQuantity INT, IN vPackagingFk VARCHAR(10), IN vGrouping INT, IN vPacking INT, IN vWarehouseFk INT)
+CREATE DEFINER=`root`@`localhost` PROCEDURE `itemShelving_add`(IN vShelvingFk VARCHAR(8), IN vBarcode VARCHAR(22), IN vQuantity INT, IN vPackagingFk VARCHAR(10), IN vGrouping INT, IN vPacking INT, IN vWarehouseFk INT)
BEGIN
@@ -58081,7 +57559,6 @@ BEGIN
*
* @param vShelvingFk matrícula del carro
* @param vBarcode el id del registro
- * @param vShelve de itemshleving
* @param vQuantity indica la cantidad del producto
* @param vPackagingFk el packaging del producto en itemShelving, NULL para coger el de la ultima compra
* @param vGrouping el grouping del producto en itemShelving, NULL para coger el de la ultima compra
@@ -58117,7 +57594,6 @@ BEGIN
CALL cache.last_buy_refresh(FALSE);
INSERT INTO itemShelving( itemFk,
shelvingFk,
- shelve,
visible,
grouping,
packing,
@@ -58125,7 +57601,6 @@ BEGIN
SELECT vItemFk,
vShelvingFk,
- vShelve,
vQuantity,
IFNULL(vGrouping, b.grouping),
IFNULL(vPacking, b.packing),
@@ -58141,6 +57616,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemShelving_addByClaim` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -58148,8 +57625,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemShelving_addByClaim`(vClaimFk INT, vShelvingFk VARCHAR(3))
BEGIN
@@ -58184,6 +57659,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemShelving_BuyerGet` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -58191,8 +57668,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemShelving_BuyerGet`( )
BEGIN
@@ -58205,45 +57680,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 DROP PROCEDURE IF EXISTS `itemShelving_BuyerTask` */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `itemShelving_BuyerTask`(vWorkerFk INT )
-BEGIN
-
- SELECT ish.id,
- ish.itemFk,
- i.longName,
- i.image,
- p.code as parking,
- ish.shelvingFk,
- ish.visible,
- ish.created,
- ish.stars
- FROM vn.itemShelving ish
- JOIN vn.item i ON i.id = ish.itemFk
- JOIN vn.itemType it ON it.id = i.typeFk
- JOIN vn.shelving sh ON sh.code = ish.shelvingFk
- JOIN vn.parking p ON p.id = sh.parkingFk
- JOIN vn.sector s ON s.id = p.sectorFk
- WHERE s.warehouseFk = 1
- AND it.workerFk = vWorkerFk
- AND ish.stars IS NULL
- ORDER BY p.pickingOrder;
-
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemShelving_filterBuyer` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -58251,8 +57689,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemShelving_filterBuyer`(vBuyerFk INT, vWarehouseFk INT)
proc:BEGIN
@@ -58346,6 +57782,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemShelving_get` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -58353,8 +57791,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemShelving_get`(IN vShelvingFk VARCHAR(8))
BEGIN
@@ -58388,6 +57824,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemShelving_getAlternatives` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -58395,8 +57833,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemShelving_getAlternatives`(vShelvingFk VARCHAR(10))
BEGIN
@@ -58423,6 +57859,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemShelving_getInfo` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -58430,8 +57868,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemShelving_getInfo`(vItemFk VARCHAR(22))
BEGIN
@@ -58460,6 +57896,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemShelving_getSaleDate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -58467,8 +57905,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemShelving_getSaleDate`(vShelvingFk VARCHAR(3))
BEGIN
@@ -58563,6 +57999,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemShelving_inventory` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -58570,8 +58008,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemShelving_inventory`(vParkingFromFk INT, vParkingToFk INT)
BEGIN
@@ -58620,29 +58056,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 DROP PROCEDURE IF EXISTS `itemShelving_StarsUpdate` */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `itemShelving_StarsUpdate`(vId INT, vStars INT)
-BEGIN
-
- UPDATE vn.itemShelving
- SET stars = vStars
- WHERE id = vId;
-
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemShelving_update` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -58650,8 +58065,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemShelving_update`(vVisible INT, vPacking INT, vShelf INT ,vGrouping INT )
BEGIN
@@ -58675,6 +58088,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemStock` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -58682,8 +58097,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemStock`(vWarehouseFk SMALLINT, vDated DATETIME, vItemFk INT)
BEGIN
@@ -58744,6 +58157,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemTagMake` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -58751,8 +58166,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemTagMake`(vItemFk INT)
BEGIN
@@ -58813,6 +58226,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemTagReorder` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -58820,8 +58235,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection = utf8mb3_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemTagReorder`(itemTypeFk INT)
BEGIN
@@ -58853,6 +58266,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemTagReorderByName` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -58860,8 +58275,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemTagReorderByName`(vName VARCHAR(255))
BEGIN
@@ -58893,6 +58306,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemTag_replace` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -58900,8 +58315,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemTag_replace`(vItemFromFk INT, vItemToFk INT, vPicture VARCHAR(100))
BEGIN
@@ -58941,6 +58354,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemTopSeller` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -58948,8 +58363,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemTopSeller`()
BEGIN
@@ -59017,6 +58430,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemTrash` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -59024,8 +58439,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemTrash`(
vItemFk INT,
@@ -59089,6 +58502,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `itemUpdateTag` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -59096,8 +58511,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `itemUpdateTag`(IN vItem BIGINT)
BEGIN
@@ -59143,6 +58556,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `item_clean` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -59150,8 +58565,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `item_clean`()
BEGIN
@@ -59276,8 +58689,10 @@ BEGIN
DELETE FROM vn.itemProposal
WHERE itemFk = vItemOld;
+ SET @isTriggerDisabled := TRUE;
DELETE FROM vn.itemTag
WHERE itemFk = vItemOld;
+ SET @isTriggerDisabled := FALSE;
DELETE FROM vn.itemBarcode
WHERE itemFk = vItemOld;
@@ -59362,6 +58777,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `item_deactivateUnused` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -59369,8 +58786,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `item_deactivateUnused`()
BEGIN
@@ -59406,6 +58821,70 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+/*!50003 DROP PROCEDURE IF EXISTS `item_getAtp` */;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+DELIMITER ;;
+CREATE DEFINER=`root`@`localhost` PROCEDURE `item_getAtp`(vDated DATE)
+BEGIN
+/**
+ * Calcula el valor mínimo acumulado para cada artículo ordenado por fecha y
+ * almacén.
+ *
+ * @param vDated Si no hay movimientos en la fecha indicada, debe devolver 0
+ * @table tmp.itemCalc(itemFk, wareHouseFk, dated, quantity)
+ * @return tmp.itemAtp(itemFk, warehouseFk, quantity)
+ */
+ DROP TEMPORARY TABLE IF EXISTS tItemOrdered;
+ CREATE TEMPORARY TABLE tItemOrdered
+ (UNIQUE(itemFk, warehouseFk, dated))
+ ENGINE = MEMORY
+ SELECT itemFk, warehouseFk, dated, SUM(quantity) quantity
+ FROM (
+ SELECT itemFk, warehouseFk, dated, quantity
+ FROM tmp.itemCalc
+ UNION ALL
+ SELECT itemFk, warehouseFk, vDated, 0
+ FROM (SELECT DISTINCT itemFk, warehouseFk FROM tmp.itemCalc) t2
+ ) t1
+ GROUP BY itemFk, warehouseFk, dated
+ ORDER BY itemFk, warehouseFk, dated;
+
+ SET @lastItemFk := 0;
+ SET @lastWareHouseFk := 0;
+ SET @lastQuantity := 0;
+
+ DROP TEMPORARY TABLE IF EXISTS tmp.itemAtp;
+ CREATE TEMPORARY TABLE tmp.itemAtp
+ SELECT itemFk, wareHouseFk, MIN(quantityAccumulated) quantity
+ FROM (
+ SELECT
+ itemFk,
+ IF(itemFk <> @lastItemFk OR wareHouseFk <> @lastWareHouseFk,
+ @lastQuantity := quantity,
+ @lastQuantity := @lastQuantity + quantity) quantityAccumulated,
+ wareHouseFk,
+ @lastItemFk := itemFk,
+ @lastWareHouseFk := wareHouseFk
+ FROM tItemOrdered
+ )sub
+ GROUP BY itemFk, wareHouseFk;
+
+ DROP TEMPORARY TABLE tItemOrdered;
+END ;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `item_getBalance` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -59413,8 +58892,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `item_getBalance`(IN vItemId int, IN vWarehouse int)
BEGIN
@@ -59452,7 +58929,7 @@ BEGIN
al.id AS alertLevel,
st.name AS stateName,
s.name AS name,
- e.ref AS reference,
+ e.invoiceNumber AS reference,
e.id AS origin,
s.id AS clientFk,
IF(al.id = 3, TRUE, FALSE) isPicked,
@@ -59485,7 +58962,7 @@ BEGIN
al.id,
st.name,
s.name,
- e.ref,
+ e.invoiceNumber,
e.id,
s.id,
IF(al.id = 3, TRUE, FALSE),
@@ -59557,6 +59034,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `item_getInfo` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -59564,8 +59043,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `item_getInfo`(IN `vBarcode` VARCHAR(22), IN `vWarehouseFk` INT)
BEGIN
@@ -59611,8 +59088,8 @@ BEGIN
v.visible,
b.`grouping`,
b.packing,
- CONCAT('https://verdnatura.es/vn-image-data/catalog/200x200/', i.image) urlImage200,
- CONCAT('https://verdnatura.es/vn-image-data/catalog/1600x900/', i.image) urlImage,
+ CONCAT('http:', ic.url, '/catalog/200x200/', i.image) urlImage200,
+ CONCAT('http:', ic.url, '/catalog/1600x900/', i.image) urlImage,
i.itemPackingTypeFk,
i.comment reference,
u.name buyer,
@@ -59632,6 +59109,7 @@ BEGIN
AND bu.warehouseFk = vWarehouseFk
JOIN itemType it ON it.id = i.typeFk
JOIN account.user u ON u.id = it.workerFk
+ JOIN hedera.imageConfig ic
WHERE i.id = vItemFk;
DROP TEMPORARY TABLE tmp.buyUltimate;
@@ -59641,6 +59119,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `item_getLack` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -59648,8 +59128,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `item_getLack`(IN vForce BOOLEAN, IN vDays INT)
BEGIN
@@ -59705,6 +59183,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `item_getMinacum` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -59712,13 +59192,12 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `item_getMinacum`(IN vWarehouseFk TINYINT, IN vDatedFrom DATETIME, IN vRange INT, IN vItemFk INT)
BEGIN
/**
- * Cálculo del mínimo acumulado, para un item si especificado, para todo el stock si es nulo
+ * Cálculo del mínimo acumulado, para un item/almacén especificado, en caso de
+ * NULL para todo.
*
* @param vWarehouseFk -> warehouseFk
* @param vDatedFrom -> fecha inicio
@@ -59726,73 +59205,78 @@ BEGIN
* @param vItemFk -> Identificador de item
* @return tmp.itemMinacum
*/
-
DECLARE vDatedTo DATETIME;
SET vDatedFrom = TIMESTAMP(DATE(vDatedFrom), '00:00:00');
SET vDatedTo = TIMESTAMP(TIMESTAMPADD(DAY, vRange, vDatedFrom), '23:59:59');
- DROP TEMPORARY TABLE IF EXISTS tmp.itemMinacum;
+ DROP TEMPORARY TABLE IF EXISTS tmp.itemCalc;
+ CREATE TEMPORARY TABLE tmp.itemCalc
+ (INDEX (itemFk, warehouseFk))
+ SELECT sub.itemFk,
+ sub.dated,
+ CAST(SUM(sub.quantity) AS SIGNED) quantity,
+ sub.warehouseFk
+ FROM (SELECT s.itemFk,
+ DATE(t.shipped) dated,
+ -s.quantity quantity,
+ t.warehouseFk
+ FROM sale s
+ JOIN ticket t ON t.id = s.ticketFk
+ WHERE t.shipped BETWEEN vDatedFrom AND vDatedTo
+ AND s.quantity != 0
+ AND (vItemFk IS NULL OR s.itemFk = vItemFk)
+ AND (vWarehouseFk IS NULL OR t.warehouseFk = vWarehouseFk)
+ UNION ALL
+ SELECT b.itemFk,
+ t.landed,
+ b.quantity,
+ t.warehouseInFk
+ FROM buy b
+ JOIN entry e ON e.id = b.entryFk
+ LEFT JOIN travel t ON t.id = e.travelFk
+ WHERE t.landed BETWEEN vDatedFrom AND vDatedTo
+ AND (vWarehouseFk IS NULL OR t.warehouseInFk = vWarehouseFk)
+ AND !e.isExcludedFromAvailable
+ AND b.quantity != 0
+ AND (vItemFk IS NULL OR b.itemFk = vItemFk)
+ UNION ALL
+ SELECT b.itemFk,
+ t.shipped,
+ -b.quantity,
+ t.warehouseOutFk
+ FROM buy b
+ JOIN entry e ON e.id = b.entryFk
+ LEFT JOIN travel t ON t.id = e.travelFk
+ WHERE t.shipped BETWEEN vDatedFrom AND vDatedTo
+ AND (vWarehouseFk IS NULL OR t.warehouseOutFk = vWarehouseFk)
+ AND !e.isExcludedFromAvailable
+ AND b.quantity != 0
+ AND (vItemFk IS NULL OR b.itemFk = vItemFk)
+ AND !e.isRaid
+ ) sub
+ GROUP BY sub.itemFk, sub.warehouseFk, sub.dated;
+ CALL item_getAtp(vDatedFrom);
+ DROP TEMPORARY TABLE tmp.itemCalc;
+
+ DROP TEMPORARY TABLE IF EXISTS tmp.itemMinacum;
CREATE TEMPORARY TABLE tmp.itemMinacum
(INDEX(itemFk))
ENGINE = MEMORY
- SELECT sub1.itemFk,
- sub1.warehouseFk,
- minacum(sub1.dated, amount, DATE(vDatedFrom)) amount
- FROM (SELECT sub.itemFk,
- sub.dated,
- SUM(sub.amount) amount,
- sub.warehouseFk
- FROM (SELECT s.itemFk,
- DATE(t.shipped) dated,
- -s.quantity amount,
- t.warehouseFk
- FROM sale s
- JOIN ticket t ON t.id = s.ticketFk
- WHERE t.shipped BETWEEN vDatedFrom AND vDatedTo
- AND s.quantity != 0
- AND (vItemFk IS NULL OR s.itemFk = vItemFk)
- AND (vWarehouseFk IS NULL OR t.warehouseFk = vWarehouseFk)
- UNION ALL
- SELECT b.itemFk,
- t.landed,
- b.quantity,
- t.warehouseInFk
- FROM buy b
- JOIN entry e ON e.id = b.entryFk
- LEFT JOIN travel t ON t.id = e.travelFk
- WHERE t.landed BETWEEN vDatedFrom AND vDatedTo
- AND (vWarehouseFk IS NULL OR t.warehouseInFk = vWarehouseFk)
- AND !e.isExcludedFromAvailable
- AND b.quantity != 0
- AND (vItemFk IS NULL OR b.itemFk = vItemFk)
- UNION ALL
- SELECT b.itemFk,
- t.shipped,
- -b.quantity,
- t.warehouseOutFk
- FROM buy b
- JOIN entry e ON e.id = b.entryFk
- LEFT JOIN travel t ON t.id = e.travelFk
- WHERE t.shipped BETWEEN vDatedFrom AND vDatedTo
- AND (vWarehouseFk IS NULL OR t.warehouseOutFk = vWarehouseFk)
- AND !e.isExcludedFromAvailable
- AND b.quantity != 0
- AND (vItemFk IS NULL OR b.itemFk = vItemFk)
- AND !e.isRaid
- ) sub
- GROUP BY sub.itemFk, sub.dated, sub.warehouseFk
- ) sub1
- GROUP BY sub1.itemFk, sub1.warehouseFk
+ SELECT i.itemFk,
+ i.warehouseFk,
+ i.quantity amount
+ FROM tmp.itemAtp i
HAVING amount != 0;
-
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `item_getMinETD` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -59800,8 +59284,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `item_getMinETD`()
BEGIN
@@ -59830,6 +59312,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `item_getSimilar` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -59837,8 +59321,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `item_getSimilar`(vItemFk INT, vWarehouseFk INT, vDate DATE, vIsShowedByType BOOL)
BEGIN
@@ -59927,6 +59409,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `item_GetVisible` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -59934,8 +59418,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `item_GetVisible`(vWarehouse SMALLINT, vItem INT)
BEGIN
@@ -59961,7 +59443,7 @@ BEGIN
UNION ALL
SELECT iei.itemFk, quantity
FROM itemEntryIn iei
- WHERE (iei.isReceived != FALSE /*OR ip.modificationDate > util.VN_CURDATE()*/ )
+ WHERE (iei.isReceived != FALSE /*OR ip.modificationDate > util.VN_CURDATE()*/)
AND iei.landed >= util.VN_CURDATE() AND iei.landed < vTomorrow
AND iei.warehouseInFk = vWarehouse
AND (vItem IS NULL OR iei.itemFk = vItem)
@@ -59983,6 +59465,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `item_refreshTags` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -59990,8 +59474,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `item_refreshTags`()
BEGIN
@@ -60136,6 +59618,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `item_refreshTags_beta` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -60143,8 +59627,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `item_refreshTags_beta`()
BEGIN
@@ -60187,7 +59669,7 @@ BEGIN
SET i.`name` = CONCAT_WS(' ',
IFNULL(ta1.abbreviation,it1.`value`),
IFNULL(ta2.abbreviation,it2.`value`),
- IF(i.id > 400000,'',IFNULL(ta3.abbreviation,it3.`value`)))
+ IF(i.isFloramondo,'',IFNULL(ta3.abbreviation,it3.`value`)))
WHERE i.id = vItemFk;
UPDATE item i
@@ -60279,6 +59761,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `item_saveReference` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -60286,8 +59770,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `item_saveReference`(vBarcode VARCHAR(22), vReference VARCHAR(150))
BEGIN
@@ -60311,6 +59793,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `item_setGeneric` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -60318,8 +59802,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `item_setGeneric`(vSelf INT)
BEGIN
@@ -60369,6 +59851,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `item_updatePackingShelve` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -60376,8 +59860,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection = utf8mb3_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `item_updatePackingShelve`(vSelf INT, vPacking INT)
BEGIN
@@ -60399,6 +59881,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `item_updatePackingType` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -60406,8 +59890,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `item_updatePackingType`(vItem INT, vItemPackingTypeFk VARCHAR(1))
BEGIN
@@ -60425,6 +59907,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `item_ValuateInventory` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -60432,8 +59916,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `item_ValuateInventory`(IN vDated DATE, IN vIsDetailed BOOLEAN)
BEGIN
@@ -60630,6 +60112,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ledger_doCompensation` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -60637,8 +60121,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ledger_doCompensation`(vDated DATE, vCompensationAccount VARCHAR(10) , vBankFk VARCHAR(10), vConcept VARCHAR(255), vAmount DECIMAL(10,2), vCompanyFk INT, vOriginalAccount VARCHAR(10))
BEGIN
@@ -60721,6 +60203,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ledger_next` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -60728,8 +60212,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ledger_next`(OUT vNewBookEntry INT)
BEGIN
@@ -60743,6 +60225,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `logAdd` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -60750,8 +60234,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `logAdd`(vOriginFk INT, vActionCode VARCHAR(45), vEntity VARCHAR(45), vDescription TEXT)
BEGIN
@@ -60771,6 +60253,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `logAddWithUser` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -60778,8 +60262,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `logAddWithUser`(vOriginFk INT, vUserId INT, vActionCode VARCHAR(45), vEntity VARCHAR(45), vDescription TEXT)
BEGIN
@@ -60812,6 +60294,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `logShow` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -60819,8 +60303,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `logShow`(vOriginFk INT, vEntity VARCHAR(45))
BEGIN
@@ -60848,6 +60330,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `lungSize_generator` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -60855,8 +60339,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `lungSize_generator`(vDate DATE)
BEGIN
@@ -60909,6 +60391,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `machineWorker_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -60916,8 +60400,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `machineWorker_add`(vPlate VARCHAR(10), vWorkerFk INT)
BEGIN
@@ -60944,6 +60426,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `machineWorker_getHistorical` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -60951,8 +60435,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `machineWorker_getHistorical`(vPlate VARCHAR(20), vWorkerFk INT)
BEGIN
@@ -60978,6 +60460,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `machineWorker_update` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -60985,8 +60469,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `machineWorker_update`(vPlate VARCHAR(10), vWorkerFk INT)
BEGIN
@@ -61029,6 +60511,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `machine_getWorkerPlate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -61036,8 +60520,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `machine_getWorkerPlate`(vWorkerFk INT)
BEGIN
@@ -61062,6 +60544,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `mail_insert` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -61069,8 +60553,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `mail_insert`(
vReceiver VARCHAR(255),
@@ -61113,6 +60595,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `makeNewItem` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -61120,8 +60604,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `makeNewItem`()
BEGIN
@@ -61142,6 +60624,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `makePCSGraf` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -61149,8 +60633,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `makePCSGraf`(vDated DATE)
BEGIN
@@ -61194,6 +60676,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `manaSpellersRequery` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -61201,8 +60685,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `manaSpellersRequery`(vWorkerFk INTEGER)
BEGIN
@@ -61279,107 +60761,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 DROP PROCEDURE IF EXISTS `mergeTicketWithArray` */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `mergeTicketWithArray`(IN vMainTicket INT(11), IN arrayTickets VARCHAR(50))
-BEGIN
-
- DECLARE isBilled BOOLEAN;
- DECLARE messageLog VARCHAR(50);
- DECLARE company INT;
- DECLARE messageForSplit VARCHAR(255);
- DECLARE vMainSplit INT;
- DECLARE worker INT(3);
-
- SELECT Factura IS NOT NULL INTO isBilled FROM vn2008.Tickets WHERE Id_Ticket = vMainTicket;
-
- IF NOT isBilled THEN
-
- SELECT Id_Trabajador INTO worker from vn2008.Trabajadores where user_id = account.myUser_getId();
-
- DROP TEMPORARY TABLE IF EXISTS vn2008.Tickets_to_fusion;
-
- -- He usado el util.exec porque da error la variable strId_Tickets puesta dentro del IN()
- CALL util.exec(sql_printf('
- CREATE TEMPORARY TABLE vn2008.Tickets_to_fusion
- SELECT Id_Ticket, Localizacion
- FROM vn2008.Tickets T
- WHERE Id_Ticket IN (%s);',arrayTickets));
-
- INSERT INTO vn2008.ticket_observation (Id_Ticket,observation_type_id,text)
- SELECT vMainTicket,observation_type_id,CONCAT(' Ticket ', Id_Ticket, ':' , tco.text, '. ')
- FROM vn2008.Tickets_to_fusion tf
- INNER JOIN vn2008.ticket_observation tco USING(Id_Ticket)
- ON DUPLICATE KEY UPDATE `text` = CONCAT(ticket_observation.`text`,CONCAT(' Ticket ', VALUES(Id_Ticket), ':' , VALUES(`text`), '. '));
-
- UPDATE vn2008.Movimientos M
- JOIN vn2008.Tickets_to_fusion USING(Id_Ticket)
- SET M.Id_Ticket = vMainTicket;
-
- UPDATE vn2008.expeditions M
- JOIN vn2008.Tickets_to_fusion t ON t.Id_Ticket = M.ticket_id
- SET M.ticket_id = vMainTicket;
-
- UPDATE vn.ticketPackaging tp
- JOIN vn2008.Tickets_to_fusion t ON t.Id_Ticket = tp.ticketFk
- SET tp.ticketFk = vMainTicket;
-
- UPDATE vn2008.Tickets
- SET Bultos = (SELECT COUNT(*) FROM vn2008.expeditions WHERE ticket_id = vMainTicket AND EsBulto)
- WHERE Id_Ticket = vMainTicket;
-
- UPDATE vn2008.Tickets
- JOIN vn2008.Tickets_to_fusion USING(Id_Ticket)
- SET Fecha = TIMESTAMPADD(YEAR,-1 * (YEAR(Fecha)-2000), Fecha), Id_Ruta = NULL;
-
- UPDATE vn.ticketLog tl
- JOIN vn2008.Tickets_to_fusion t ON t.Id_Ticket = tl.originFk
- SET tl.originFk = vMainTicket;
-
- UPDATE vn2008.Tickets
- SET Localizacion = CONCAT(Tickets.Localizacion,' ',IFNULL((SELECT GROUP_CONCAT(Localizacion SEPARATOR ' ') FROM vn2008.Tickets_to_fusion),''))
- WHERE Id_Ticket = vMainTicket;
-
- UPDATE vn2008.Splits s
- RIGHT JOIN vn2008.Tickets_to_fusion t USING(Id_Ticket)
- SET s.Id_Ticket = vMainTicket;
-
- UPDATE vn2008.Ordenes o
- RIGHT JOIN vn2008.Tickets_to_fusion t ON t.Id_Ticket = o.ticketFk
- SET o.ticketFk = vMainTicket;
-
- IF (SELECT COUNT(*) FROM vn2008.Splits WHERE Id_Ticket=vMainTicket) > 1 THEN
-
- SELECT Id_Split INTO vMainSplit FROM vn2008.Splits WHERE Id_Ticket = vMainTicket LIMIT 1;
-
- SELECT group_concat(Notas,',') INTO messageForSplit FROM vn2008.Splits WHERE Id_Ticket = vMainTicket;
- UPDATE vn2008.Splits SET Notas = messageForSplit WHERE Id_Split=vMainSplit;
- UPDATE vn2008.Split_lines sl JOIN vn2008.Splits s USING (Id_Split) SET sl.Id_Split=vMainSplit WHERE Id_Ticket=vMainTicket;
- DELETE FROM vn2008.Splits WHERE Id_Ticket=vMainTicket AND Id_Split<>vMainSplit;
- END IF;
-
- SELECT GROUP_CONCAT(Id_Ticket SEPARATOR ',') into messageLog FROM vn2008.Tickets_to_fusion;
- CALL vn2008.Ditacio(vMainTicket,'Fusion','T',worker,messageLog,NULL);
-
- DELETE ts FROM vn2008.Tickets_state ts JOIN vn2008.Tickets_to_fusion t USING(Id_Ticket);
-
- DROP TEMPORARY TABLE vn2008.Tickets_to_fusion;
- END IF;
-
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 DROP PROCEDURE IF EXISTS `mysqlConnectionsSorter_kill` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -61387,8 +60770,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `mysqlConnectionsSorter_kill`()
BEGIN
@@ -61430,6 +60811,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `mysqlPreparedCount_check` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -61437,8 +60820,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `mysqlPreparedCount_check`()
BEGIN
@@ -61464,6 +60845,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `nextShelvingCodeMake` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -61471,8 +60854,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `nextShelvingCodeMake`()
BEGIN
@@ -61518,6 +60899,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `observationAdd` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -61525,8 +60908,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `observationAdd`(vOriginFk INT, vTableCode VARCHAR(45), vDescription TEXT)
BEGIN
@@ -61559,6 +60940,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `orderCreate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -61566,8 +60949,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `orderCreate`(
vLanded DATE,
@@ -61599,6 +60980,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `orderDelete` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -61606,8 +60989,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `orderDelete`(IN vId INT)
BEGIN
@@ -61620,6 +61001,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `orderListCreate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -61627,8 +61010,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `orderListCreate`(
vLanded DATE,
@@ -61647,6 +61028,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `orderListVolume` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -61654,8 +61037,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `orderListVolume`(IN vOrderId INT)
BEGIN
@@ -61676,6 +61057,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `packageInvoicing` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -61683,8 +61066,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `packageInvoicing`(
IN vClient INT,
@@ -61810,6 +61191,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `packingListPrinted` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -61817,8 +61200,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `packingListPrinted`(ticketFk INT)
BEGIN
@@ -61836,6 +61217,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `packingListSwitch` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -61843,8 +61226,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `packingListSwitch`(saleFk INT)
BEGIN
@@ -61869,6 +61250,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `packingSite_startCollection` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -61876,8 +61259,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `packingSite_startCollection`(vSelf INT, vTicketFk INT)
BEGIN
@@ -61915,6 +61296,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `parking_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -61922,8 +61305,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `parking_add`(vFromColumn INT, vToColumn INT, vFromRow INT, vToRow INT, vSectorFk INT, vIsLetterMode BOOLEAN)
BEGIN
@@ -61969,6 +61350,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `parking_algemesi` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -61976,8 +61359,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `parking_algemesi`(vFromRow INT, vToRow INT, vSectorFk INT, vLetter VARCHAR(1), vPickingOrder INT, vTrolleysByLine INT)
BEGIN
@@ -62044,6 +61425,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `parking_new` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -62051,8 +61434,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `parking_new`(vStart INT, vEnd INT, vSectorFk INT)
BEGIN
@@ -62089,6 +61470,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `parking_setOrder` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -62096,8 +61479,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `parking_setOrder`(vWarehouseFk INT)
BEGIN
@@ -62129,173 +61510,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 DROP PROCEDURE IF EXISTS `placement_test` */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `placement_test`(vParamFk INT(11))
-BEGIN
- DECLARE vCalcFk INT;
- DECLARE vWarehouseFk INT;
- DECLARE vWarehouseAliasFk INT;
- DECLARE vCurrentYear INT DEFAULT YEAR(util.VN_NOW());
-
- DROP TEMPORARY TABLE IF EXISTS tmp.sale;
- CREATE TEMPORARY TABLE tmp.sale
- ENGINE = MEMORY
- SELECT 0000000 as ticketFk,
- 0000000 as saleFk,
- 0000000 as itemFk,
- FALSE as isStowaway,
- 0 as quantity;
-
- INSERT INTO tmp.sale(ticketFk, saleFk, itemFk, isStowaway)
- SELECT s.ticketFk, s.id, s.itemFk, FALSE
- FROM vn.ticketCollection tc
- JOIN vn.collection c ON c.id = tc.collectionFk
- JOIN vn.sale s ON s.ticketFk = tc.ticketFk
- JOIN vn.item i ON i.id = s.itemFk
- WHERE tc.collectionFk = vParamFk
- AND (i.itemPackingTypeFk = c.itemPackingTypeFk OR ISNULL(c.itemPackingTypeFk))
- UNION ALL
- SELECT s.ticketFk, s.id, s.itemFk, FALSE
- FROM vn.sale s
- WHERE s.ticketFk = vParamFk;
-
- SELECT t.warehouseFk, w.aliasFk
- INTO vWarehouseFk, vWarehouseAliasFk
- FROM vn.ticket t
- JOIN tmp.sale ts ON ts.ticketFk = t.id
- JOIN vn.warehouse w ON w.id = t.warehouseFk
- LIMIT 1;
-
- CALL cache.visible_refresh(vCalcFk,FALSE,vWarehouseFk);
-
- UPDATE tmp.sale ts
- JOIN ( SELECT itemFk, sum(visible) as visible
- FROM vn.itemShelvingStock iss
- JOIN vn.warehouse w ON w.id = iss.warehouseFk
- WHERE w.aliasFk = vWarehouseAliasFk
- GROUP BY iss.itemFk ) iss ON iss.itemFk = ts.itemFk
- SET ts.quantity = iss.visible;
-
- DROP TEMPORARY TABLE IF EXISTS tmp.sale2;
- CREATE TEMPORARY TABLE tmp.sale2
- ENGINE = MEMORY
- SELECT * FROM tmp.sale;
-
-
- DROP TEMPORARY TABLE IF EXISTS tmp.`grouping`;
- CREATE TEMPORARY TABLE tmp.`grouping`
- (PRIMARY KEY (itemFk))
- ENGINE = MEMORY
- SELECT b.itemFk,
- CASE b.groupingMode
- WHEN 0 THEN 1
- WHEN 2 THEN b.packing
- ELSE b.`grouping`
- END AS `grouping`
- FROM buy b
- JOIN cache.last_buy lb ON lb.buy_id = b.id
- WHERE lb.warehouse_id = vWarehouseFk
- ;
-
- DROP TEMPORARY TABLE IF EXISTS tmp.grouping2;
- CREATE TEMPORARY TABLE tmp.grouping2
- ENGINE = MEMORY
- SELECT * FROM tmp.`grouping`;
-
- DROP TEMPORARY TABLE IF EXISTS tmp.salePlacementList;
- CREATE TEMPORARY TABLE tmp.salePlacementList
- ENGINE = MEMORY
-
- SELECT ts.saleFk,
- ts.itemFk,
- CONCAT(
- IF( iss.id,
- CONCAT('< ', IFNULL(wk.`code`, '---'),' > '),
- ''),
- p.`code`) COLLATE utf8_general_ci as placement ,
- sh.code COLLATE utf8_general_ci as shelving,
- ish.created,
- ish.visible,
- IF(ts.isStowaway, - 100000, IF(ish.visible > 0 OR iss.id, 1, 100000)) * p.pickingOrder as `order`,
- IFNULL(IF(sc.isPreviousPreparedByPacking, ish.packing, g.`grouping`),1) as `grouping`,
- IF(iss.id, TO_SECONDS(TIMESTAMPADD(YEAR,-vCurrentYear,iss.created)), TO_SECONDS(TIMESTAMPADD(YEAR,- year(ish.created),ish.created)) + TO_SECONDS(TIMESTAMPADD(YEAR,-vCurrentYear,util.VN_NOW()))) as priority,
- 0 as saleOrder,
- sc.isPreviousPrepared,
- iss.id as itemShelvingSaleFk,
- ts.ticketFk
- ,iss.id
- , st.saleFk as salePreviousPrepared
- , iss.userFk
- FROM tmp.sale ts
- LEFT JOIN (SELECT DISTINCT saleFk
- FROM vn.saleTracking st
- JOIN vn.state s ON s.id = st.stateFk
- WHERE st.isChecked
- AND s.semaphore = 1) st ON st.saleFk = ts.saleFk
- JOIN vn.itemShelving ish ON ish.itemFk = ts.itemFk
- JOIN vn.shelving sh ON sh.code = ish.shelvingFk
- JOIN vn.parking p ON p.id = sh.parkingFk
- JOIN vn.sector sc ON sc.id = p.sectorFk
- JOIN vn.warehouse w ON w.id = sc.warehouseFk
- LEFT JOIN tmp.`grouping` g ON g.itemFk = ts.itemFk
- LEFT JOIN vn.itemShelvingSale iss ON iss.saleFk = ts.saleFk AND iss.itemShelvingFk = ish.id
- LEFT JOIN vn.worker wk ON wk.id = iss.userFk
- WHERE w.aliasFk = vWarehouseAliasFk
- HAVING (iss.id AND st.saleFk) OR salePreviousPrepared IS NULL
- ;
-
- DROP TEMPORARY TABLE IF EXISTS tmp.salePlacementList_2;
- CREATE TEMPORARY TABLE tmp.salePlacementList_2
- ENGINE MEMORY
- SELECT saleFk, priority as olderPriority
- FROM (SELECT saleFk, priority
- FROM tmp.salePlacementList
- ORDER BY IF(isPreviousPrepared,2,1), IF(visible > 0 OR itemShelvingSaleFk,1,2), priority
- LIMIT 10000000000000000000
- ) sub
- GROUP BY saleFk;
-
- DROP TEMPORARY TABLE IF EXISTS tmp.salePlacementList_3;
- CREATE TEMPORARY TABLE tmp.salePlacementList_3
- ENGINE MEMORY
- SELECT s1.saleFk, `order`as saleOrder
- FROM tmp.salePlacementList s1
- JOIN tmp.salePlacementList_2 s2 ON s2.saleFk = s1.saleFk AND s2.olderPriority = s1.priority;
-
- UPDATE tmp.salePlacementList s1
- JOIN tmp.salePlacementList_3 s3 ON s3.saleFk = s1.saleFk
- SET s1.saleOrder = s3.saleOrder;
- /*
- -- Anula el orden de antigüedad y ordena por ubicación */
- UPDATE tmp.salePlacementList
- SET saleOrder = `order`;
-
- SELECT *
- FROM tmp.salePlacementList
- ORDER BY visible <> 0 DESC,saleOrder, IF(isPreviousPrepared,2,1), IF(itemShelvingSaleFk,1,2),priority;
-
- DROP TEMPORARY TABLE
- tmp.sale,
- tmp.sale2,
- tmp.`grouping`,
- tmp.grouping2,
- tmp.salePlacementList_2,
- tmp.salePlacementList_3;
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 DROP PROCEDURE IF EXISTS `prepareClientList` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -62303,8 +61519,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `prepareClientList`()
BEGIN
@@ -62325,6 +61539,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `prepareTicketList` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -62332,8 +61548,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `prepareTicketList`(vStartingDate DATETIME, vEndingDate DATETIME)
BEGIN
@@ -62361,6 +61575,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `previousSticker_get` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -62368,15 +61584,14 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `previousSticker_get`(vSaleGroupFk INT)
BEGIN
/**
* Devuelve los campos a imprimir en una etiqueta de preparación previa.
- * Actualiza el valor de vn.saleGroup.parkingFk en el caso de que exista un saleGroup del mismo ticket
- * con parking, del mismo sector, para que todos se pongan juntos
+ * Actualiza el valor de vn.saleGroup.parkingFk en el caso de que exista un
+ * saleGroup del mismo ticket con parking, del mismo sector, para que todos se
+ * pongan juntos.
*
* @param vSaleGroupFk Identificador de vn.saleGroup
*/
@@ -62407,28 +61622,67 @@ BEGIN
WHERE sg.id = vSaleGroupFk
AND sg.sectorFk = vSectorFk;
- SELECT sgd.saleGroupFk,
- t.id ticketFk,
- p.code as location,
- t.observations,
- IF(HOUR(t.shipped), HOUR(t.shipped), HOUR(z.`hour`)) shippingHour,
- IF(MINUTE(t.shipped), MINUTE(t.shipped), MINUTE(z.`hour`)) shippingMinute ,
- IFNULL(MAX(i.itemPackingTypeFk),'H') itemPackingTypeFk ,
- count(*) items
- FROM vn.sale s
- JOIN vn.item i ON i.id = s.itemFk
- JOIN vn.saleGroupDetail sgd ON sgd.saleFk = s.id
- JOIN vn.saleGroup sg ON sg.id = sgd.saleGroupFk
- JOIN vn.ticket t ON t.id = s.ticketFk
- LEFT JOIN vn.parking p ON p.id = sg.parkingFk
- LEFT JOIN vn.`zone` z ON z.id = t.zoneFk
- WHERE sgd.saleGroupFk = vSaleGroupFk;
+ SELECT sgd.saleGroupFk,
+ t.id ticketFk,
+ p.code as location,
+ t.observations,
+ IF(HOUR(t.shipped), HOUR(t.shipped), HOUR(z.`hour`)) shippingHour,
+ IF(MINUTE(t.shipped), MINUTE(t.shipped), MINUTE(z.`hour`)) shippingMinute ,
+ IFNULL(MAX(i.itemPackingTypeFk),'H') itemPackingTypeFk ,
+ count(*) items,
+ sc.description sector
+ FROM vn.sale s
+ JOIN vn.item i ON i.id = s.itemFk
+ JOIN vn.saleGroupDetail sgd ON sgd.saleFk = s.id
+ JOIN vn.saleGroup sg ON sg.id = sgd.saleGroupFk
+ JOIN vn.sector sc ON sc.id = sg.sectorFk
+ JOIN vn.ticket t ON t.id = s.ticketFk
+ LEFT JOIN vn.parking p ON p.id = sg.parkingFk
+ LEFT JOIN vn.`zone` z ON z.id = t.zoneFk
+ WHERE sgd.saleGroupFk = vSaleGroupFk;
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+/*!50003 DROP PROCEDURE IF EXISTS `printer_checkSector` */;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+DELIMITER ;;
+CREATE DEFINER=`root`@`localhost` PROCEDURE `printer_checkSector`(vLabelerFk tinyint(3) unsigned, vSector INT(11))
+BEGIN
+/**
+ * Comprueba si la impresora pertenece al sector
+ *
+ * @param vLabelerFk id de la impresora
+ * @param vSector sector a comprobar
+ */
+ DECLARE isPrinterInNewSector BOOL;
+
+ IF vLabelerFk IS NOT NULL THEN
+ SELECT COUNT(sectorFK) INTO isPrinterInNewSector
+ FROM vn.printer p
+ WHERE id = vLabelerFk AND sectorFk = vSector;
+
+ IF !isPrinterInNewSector THEN
+ CALL util.throw("PrinterNotInSameSector");
+ END IF;
+ END IF;
+END ;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `productionControl` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -62436,26 +61690,23 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `productionControl`(vWarehouseFk INT, vScopeDays INT)
proc: BEGIN
/**
- * Devuelve un listado de tickets con parámetros relativos a la producción de los días en rango
+ * Devuelve un listado de tickets con parámetros relativos a la producción de los días en rango.
*
* @param vWarehouseFk Identificador de vn.warehouse
* @param vScopeDays Número de días desde hoy en adelante que entran en el cálculo.
*
* @return Table tmp.productionBuffer
*/
- DECLARE vEndingDate DATETIME DEFAULT TIMESTAMPADD(DAY, LEAST(1,vScopeDays), util.dayEnd(util.VN_CURDATE()));
+ DECLARE vEndingDate DATETIME;
DECLARE vIsTodayRelative BOOLEAN;
- # Se comenta el IF para poder depurar (redmine #4537)
- # IF vWarehouseFk <> 60 OR vScopeDays > 2 OR vScopeDays < 0 THEN
- CALL util.debugAdd('productionControl', CONCAT('wh: ', vWarehouseFk, ' sd: ', vScopeDays));
- # END IF;
+ SELECT TIMESTAMPADD(DAY, LEAST(vScopeDays, pc.maxProductionScopeDays), util.dayEnd(util.VN_CURDATE()))
+ INTO vEndingDate
+ FROM vn.productionConfig pc;
SELECT isTodayRelative INTO vIsTodayRelative
FROM vn.worker
@@ -62539,7 +61790,7 @@ proc: BEGIN
WHERE t.warehouseFk = vWarehouseFk
AND am.deliveryMethodFk IN (1,2,3);
- # Problemas por ticket
+ -- Problemas por ticket
ALTER TABLE tmp.productionBuffer
CHANGE COLUMN `problem` `problem` VARCHAR(255),
ADD COLUMN `collectionH` INT,
@@ -62559,7 +61810,7 @@ proc: BEGIN
IF(HOUR(util.VN_NOW()) < pb.HH AND tp.isTooLittle,' PEQUEÑO', '')
) AS char(255)));
- # Clientes Nuevos o Recuperados
+ -- Clientes Nuevos o Recuperados
UPDATE tmp.productionBuffer pb
LEFT JOIN bs.clientNewBorn cnb ON cnb.clientFk = pb.clientFk
JOIN vn.productionConfig pc
@@ -62567,7 +61818,7 @@ proc: BEGIN
WHERE (ISNULL(cnb.clientFk) OR cnb.isRookie)
AND pc.rookieDays;
- # Líneas y volumen por ticket
+ -- Líneas y volumen por ticket
UPDATE tmp.productionBuffer pb
JOIN (
SELECT tt.ticketFk,
@@ -62585,7 +61836,7 @@ proc: BEGIN
DELETE FROM tmp.productionBuffer
WHERE `lines`= 0;
- # Lineas por linea de encajado
+ -- Lineas por linea de encajado
UPDATE tmp.productionBuffer pb
JOIN ( SELECT ticketFk,
SUM(sub.H) H,
@@ -62606,14 +61857,14 @@ proc: BEGIN
pb.V = sub2.V,
pb.N = sub2.N;
- # Colecciones segun tipo de encajado
+ -- Colecciones segun tipo de encajado
UPDATE tmp.productionBuffer pb
JOIN vn.ticketCollection tc ON pb.ticketFk = tc.ticketFk
SET pb.collectionH = IF(pb.H,tc.collectionFk,NULL),
pb.collectionV = IF(pb.V,tc.collectionFk,NULL),
pb.collectionN = IF(pb.N,tc.collectionFk,NULL);
- # Previa pendiente
+ -- Previa pendiente
ALTER TABLE tmp.productionBuffer
ADD previousWithoutParking BOOL DEFAULT FALSE;
@@ -62623,8 +61874,8 @@ proc: BEGIN
salesInParkingCount INT DEFAULT 0)
ENGINE = MEMORY;
- # Insertamos todos los tickets que tienen productos parkineados
- # en sectores de previa, segun el sector
+ -- Insertamos todos los tickets que tienen productos parkineados
+ -- en sectores de previa, segun el sector
INSERT INTO tmp.ticketWithPrevia(ticketFk, salesCount)
SELECT pb.ticketFk, COUNT(DISTINCT s.id)
FROM tmp.productionBuffer pb
@@ -62638,7 +61889,7 @@ proc: BEGIN
OR sc.itemPackingTypeFk = i.itemPackingTypeFk )
GROUP BY pb.ticketFk;
- # Se calcula la cantidad de productos que estan ya preparados porque su saleGroup está aparcado
+ -- Se calcula la cantidad de productos que estan ya preparados porque su saleGroup está aparcado
UPDATE tmp.ticketWithPrevia twp
JOIN ( SELECT pb.ticketFk, COUNT(DISTINCT s.id) salesInParkingCount
FROM tmp.productionBuffer pb
@@ -62649,7 +61900,7 @@ proc: BEGIN
GROUP BY pb.ticketFk ) sub ON twp.ticketFk = sub.ticketFk
SET twp.salesInParkingCount = sub.salesInParkingCount;
- # Marcamos como pendientes aquellos que no coinciden las cantidades
+ -- Marcamos como pendientes aquellos que no coinciden las cantidades
UPDATE tmp.productionBuffer pb
JOIN tmp.ticketWithPrevia twp ON twp.ticketFk = pb.ticketFk
SET pb.previousWithoutParking = TRUE
@@ -62666,6 +61917,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `productionSectorList` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -62673,23 +61926,19 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `productionSectorList`(vSectorFk INT)
BEGIN
-
- /**
- * Devuelve el listado de vn.sale que se puede preparar en previa para ese sector
- *
- * @param vSectorFk Identificador de vn.sector
- */
-
+/**
+ * Devuelve el listado de vn.sale que se puede preparar en previa para ese sector
+ *
+ * @param vSectorFk Identificador de vn.sector
+ */
DECLARE vWarehouseFk INT;
SELECT warehouseFk INTO vWarehouseFk
- FROM vn.sector
- WHERE id = vSectorFk;
+ FROM vn.sector
+ WHERE id = vSectorFk;
DROP TEMPORARY TABLE IF EXISTS tmp.whiteTicket;
CREATE TEMPORARY TABLE tmp.whiteTicket
@@ -62722,76 +61971,75 @@ BEGIN
@sameTicket := IF(sub.ticketFk = @ticket, @sameTicket, IF(@sameTicket, 0 , 1)) as sameTicket,
sub.*,
@ticket := ticketFk AS lastTicket
- FROM
- (
- SELECT * FROM
- (
- SELECT isa.saleFk,
- isa.Modificado,
- isa.ticketFk,
- isa.isPicked,
- isa.itemFk,
- isa.quantity,
- isa.concept,
- i.itemPackingTypeFk,
- isa.`size`,
- isa.Estado,
- isa.sectorProdPriority,
- isa.available,
- isa.sectorFk,
- isa.matricula,
- isa.parking,
- isa.itemShelving,
- isa.Agency,
- isa.shipped,
- isa.`grouping`,
- isa.packing,
- isa.`hour`,
- isa.isPreviousPreparable,
- isa.physicalVolume,
- isa.warehouseFk ,
- sum(isa.available) as totalAvailable,
- IF (HOUR(isa.shipped),HOUR(isa.shipped), HOUR(isa.`hour`)) Hora,
- IF (MINUTE(isa.shipped),MINUTE(isa.shipped), MINUTE(isa.`hour`)) Minuto,
- i.subName,
- CAST(isa.physicalVolume * 1000 AS DECIMAL(10,0)) as Litros
- FROM vn.itemShelvingAvailable isa
- JOIN vn.item i ON i.id = isa.itemFk
- JOIN vn.sector s ON s.id = isa.sectorFk AND s.warehouseFk = isa.warehouseFk
- JOIN vn.ticket t ON t.id = isa.ticketFk
- LEFT JOIN tmp.whiteTicket wt ON wt.ticketFk = isa.ticketFk
- LEFT JOIN tmp.sectorTypeTicket stt ON stt.ticketFk = isa.ticketFk
- JOIN vn.client c ON c.id = t.clientFk
- JOIN tmp.productionBuffer pb ON pb.ticketFk = t.id
- JOIN vn.packagingConfig pc
- WHERE IF(s.isPreviousPreparedByPacking,
- i.`size` > pc.previousPreparationMinimumSize
- AND isa.packing > 1
- AND (MOD(TRUNCATE(isa.quantity,0), isa.packing)= 0 ),
- TRUE)
- AND isa.sectorFk = vSectorFk
- AND isa.quantity > 0
- AND pb.problem = ""
- AND (i.itemPackingTypeFk <=> s.itemPackingTypeFk
- OR ISNULL(s.itemPackingTypeFk)
- OR wt.ticketFk
- OR (stt.ticketFk AND ISNULL(i.itemPackingTypeFk)))
- GROUP BY saleFk
- HAVING isa.quantity <= totalAvailable
- ) sub2
- ORDER BY Hora, Minuto, ticketFk LIMIT 10000000000000000000
- ) sub
- ;
-
- DROP TEMPORARY TABLE tmp.whiteTicket;
- DROP TEMPORARY TABLE tmp.sectorTypeTicket;
-
+ FROM (
+ SELECT * FROM (
+ SELECT isa.saleFk,
+ isa.Modificado,
+ isa.ticketFk,
+ isa.isPicked,
+ isa.itemFk,
+ isa.quantity,
+ isa.concept,
+ i.itemPackingTypeFk,
+ isa.`size`,
+ isa.Estado,
+ isa.sectorProdPriority,
+ isa.available,
+ isa.sectorFk,
+ isa.matricula,
+ isa.parking,
+ isa.itemShelving,
+ isa.Agency,
+ isa.shipped,
+ isa.`grouping`,
+ isa.packing,
+ isa.`hour`,
+ isa.isPreviousPreparable,
+ isa.physicalVolume,
+ isa.warehouseFk ,
+ sum(isa.available) as totalAvailable,
+ IF (HOUR(isa.shipped),HOUR(isa.shipped), HOUR(isa.`hour`)) Hora,
+ IF (MINUTE(isa.shipped),MINUTE(isa.shipped), MINUTE(isa.`hour`)) Minuto,
+ i.subName,
+ CAST(isa.physicalVolume * 1000 AS DECIMAL(10,0)) as Litros
+ FROM vn.itemShelvingAvailable isa
+ JOIN vn.item i ON i.id = isa.itemFk
+ JOIN vn.sector s ON s.id = isa.sectorFk AND s.warehouseFk = isa.warehouseFk
+ JOIN vn.ticket t ON t.id = isa.ticketFk
+ LEFT JOIN tmp.whiteTicket wt ON wt.ticketFk = isa.ticketFk
+ LEFT JOIN tmp.sectorTypeTicket stt ON stt.ticketFk = isa.ticketFk
+ LEFT JOIN vn.saleGroupDetail sgd ON sgd.saleFk = isa.saleFk
+ JOIN vn.client c ON c.id = t.clientFk
+ JOIN tmp.productionBuffer pb ON pb.ticketFk = t.id
+ JOIN vn.packagingConfig pc
+ WHERE IF(s.isPreviousPreparedByPacking,
+ i.`size` > pc.previousPreparationMinimumSize
+ AND isa.packing > 1
+ AND (MOD(TRUNCATE(isa.quantity,0), isa.packing)= 0 ),
+ TRUE)
+ AND sgd.saleFk IS NULL
+ AND isa.sectorFk = vSectorFk
+ AND isa.quantity > 0
+ AND pb.problem = ""
+ AND (i.itemPackingTypeFk <=> s.itemPackingTypeFk
+ OR ISNULL(s.itemPackingTypeFk)
+ OR wt.ticketFk
+ OR (stt.ticketFk AND ISNULL(i.itemPackingTypeFk)))
+ GROUP BY saleFk
+ HAVING isa.quantity <= totalAvailable
+ ) sub2
+ ORDER BY Hora, Minuto, ticketFk LIMIT 10000000000000000000
+ ) sub;
+ DROP TEMPORARY TABLE tmp.whiteTicket;
+ DROP TEMPORARY TABLE tmp.sectorTypeTicket;
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `rangeDateInfo` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -62799,8 +62047,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `rangeDateInfo`(vStarted DATE, vEnded DATE)
BEGIN
@@ -62842,6 +62088,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `rankingTeamByQuarter` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -62849,8 +62097,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `rankingTeamByQuarter`(vYear INT, vQuarter INT)
BEGIN
@@ -62923,6 +62169,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `rate_getPrices` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -62930,8 +62178,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `rate_getPrices`(vDated DATE, vWarehouseFk INT)
BEGIN
@@ -62967,6 +62213,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `rate_getPrices2` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -62974,8 +62222,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `rate_getPrices2`(vLanded DATE, vWarehouseFk INT)
BEGIN
@@ -63006,6 +62252,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `recipe_Cook` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -63013,8 +62261,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `recipe_Cook`(vItemFk INT, vBunchesQuantity INT, vDate DATE)
BEGIN
@@ -63093,6 +62339,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `recipe_Plaster` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -63100,8 +62348,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `recipe_Plaster`(vItemFk INT, vTicketFk INT, vQuantity INT)
BEGIN
@@ -63190,6 +62436,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `refund` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -63197,8 +62445,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection = utf8mb3_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `refund`(IN vOriginTicket INT, OUT vNewTicket INT)
BEGIN
@@ -63290,6 +62536,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `replaceMovimientosMark` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -63297,8 +62545,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `replaceMovimientosMark`(
idMovimiento INT,
@@ -63329,6 +62575,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `reportLabelCollection_get` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -63336,8 +62584,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `reportLabelCollection_get`(vParam INT)
BEGIN
@@ -63393,6 +62639,89 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+/*!50003 DROP PROCEDURE IF EXISTS `report_print` */;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+DELIMITER ;;
+CREATE DEFINER=`root`@`localhost` PROCEDURE `report_print`(
+ vReportName VARCHAR(100),
+ vPrinterFk INT,
+ vUserFk INT,
+ vParams JSON,
+ vPriorityName VARCHAR(100)
+ )
+BEGIN
+/**
+ * Inserts in the print queue the report to be printed and the necessary parameters for this
+ * one taking into account the paper size of both the printer and the report.
+ *
+ * @param vReportName the report to be printed.
+ * @param vPrinterFk the printer selected.
+ * @param vUserFk user id.
+ * @param vParams Json with report parameters.
+ * @param vPriorityName the printing priority.
+ */
+ DECLARE vI INT DEFAULT 0;
+ DECLARE vKeys TEXT DEFAULT JSON_KEYS(vParams);
+ DECLARE vLength INT DEFAULT JSON_LENGTH(vKeys);
+ DECLARE vKey VARCHAR(255);
+ DECLARE vVal VARCHAR(255);
+ DECLARE vPrintQueueFk INT;
+ DECLARE vIsTheReportReal INT;
+ DECLARE vReportSize VARCHAR(255);
+ DECLARE vIsThePrinterReal INT;
+ DECLARE vPrinteSize VARCHAR(255);
+
+ SELECT id, paperSizeFk INTO vIsTheReportReal, vReportSize FROM report WHERE name = vReportName;
+ SELECT id, paperSizeFk INTO vIsThePrinterReal, vPrinteSize FROM printer WHERE id = vPrinterFk;
+
+ IF vIsThePrinterReal IS NULL THEN
+ CALL util.throw('printerNotExists');
+ END IF;
+
+ IF vIsTheReportReal IS NULL THEN
+ CALL util.throw('reportNotExists');
+ END IF;
+
+ IF vReportSize <> vPrinteSize THEN
+ CALL util.throw('incorrectSize');
+ END IF;
+
+ START TRANSACTION;
+ INSERT INTO printQueue
+ SET printerFk = vPrinterFk,
+ priorityFk = (SELECT qp.id FROM queuePriority qp WHERE qp.code = vPriorityName),
+ reportFk = (SELECT r.id FROM report r WHERE r.name = vReportName),
+ workerFk = vUserFk;
+
+ SET vPrintQueueFk = LAST_INSERT_ID();
+
+ WHILE vI < vLength DO
+ SET vKey = JSON_VALUE(vKeys, CONCAT('$[', vI ,']'));
+ SET vVal = JSON_VALUE(vParams, CONCAT('$.', vKey));
+
+ INSERT INTO printQueueArgs
+ SET printQueueFk = vPrintQueueFk,
+ name = vKey,
+ value = vVal;
+
+ SET vI = vI + 1;
+ END WHILE;
+ COMMIT;
+END ;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `riskAllClients` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -63400,8 +62729,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `riskAllClients`(maxRiskDate DATE)
BEGIN
@@ -63435,6 +62762,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `routeGuessPriority` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -63442,8 +62771,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `routeGuessPriority`(IN vRuta INT)
BEGIN
@@ -63468,6 +62795,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `routeInfo` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -63475,8 +62804,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `routeInfo`(vRouteFk INT)
BEGIN
@@ -63514,6 +62841,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `routeMonitor_calculate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -63521,8 +62850,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `routeMonitor_calculate`(vDate DATE)
BEGIN
@@ -63627,6 +62954,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `routeSetOk` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -63634,8 +62963,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `routeSetOk`(
vRouteFk INT)
@@ -63651,6 +62978,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `routeUpdateM3` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -63658,8 +62987,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `routeUpdateM3`(vRoute INT)
BEGIN
@@ -63673,6 +63000,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `route_calcCommission` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -63680,8 +63009,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `route_calcCommission`(vSelf INT)
proc: BEGIN
@@ -63708,10 +63035,21 @@ proc: BEGIN
WHERE r.id = vSelf;
IF vIsFreelance THEN
- INSERT INTO routeCommission (routeFk, workCenterFk, freelanceYearlyM3)
+ INSERT INTO routeCommission (
+ routeFk,
+ workCenterFk,
+ freelanceYearlyM3,
+ cat4m3,
+ cat5m3
+ )
SELECT vSelf,
- r.commissionWorkCenterFk,
- rc.freelanceM3 * IF(IFNULL(r.m3, 0) >= rc.freelanceMinM3, IFNULL(r.m3, 0), 0)
+ r.commissionWorkCenterFk,
+ rc.freelanceM3 * IF(
+ IFNULL(r.m3, 0) >= rc.freelanceMinM3,
+ IFNULL(r.m3, 0),
+ 0),
+ rc.distributionCat4M3 * IFNULL(r.m3, 0),
+ rc.distributionCat5M3 * IFNULL(r.m3, 0)
FROM route r
JOIN vehicle v ON v.id = r.vehicleFk
JOIN routeConfig rc
@@ -63719,15 +63057,26 @@ proc: BEGIN
AND r.workerFk
AND r.commissionWorkCenterFk;
ELSE
- INSERT INTO routeCommission (routeFk, workCenterFk, km, m3, yearlyKm, yearlyM3, cat4m3, cat5m3)
+ INSERT INTO routeCommission (
+ routeFk,
+ workCenterFk,
+ km,
+ m3,
+ yearlyKm,
+ yearlyM3,
+ cat4m3,
+ cat5m3
+ )
SELECT vSelf,
- r.commissionWorkCenterFk,
- FORMAT((r.kmEnd - r.kmStart) * IF(v.isKmTruckRate, rc.kmHeavy, rc.kmLight), 2),
- FORMAT(IFNULL(r.m3, 0) * IF(v.isKmTruckRate, rc.deliveryM3Cat5, rc.deliveryM3Cat4), 2),
- FORMAT((r.kmEnd - r.kmStart) * rc.kmYearly, 2),
- FORMAT(IFNULL(r.m3, 0) * rc.m3Yearly, 2),
- FORMAT(distributionCat4M3 * IFNULL(r.m3, 0), 2),
- FORMAT(rc.distributionCat5M3 * IFNULL(r.m3, 0), 2)
+ r.commissionWorkCenterFk,
+ (r.kmEnd - r.kmStart) *
+ IF(v.isKmTruckRate, rc.kmHeavy, rc.kmLight),
+ IFNULL(r.m3, 0) *
+ IF(v.isKmTruckRate, rc.deliveryM3Cat5, rc.deliveryM3Cat4),
+ (r.kmEnd - r.kmStart) * rc.kmYearly,
+ IFNULL(r.m3, 0) * rc.m3Yearly,
+ rc.distributionCat4M3 * IFNULL(r.m3, 0),
+ rc.distributionCat5M3 * IFNULL(r.m3, 0)
FROM route r
JOIN vehicle v ON v.id = r.vehicleFk
JOIN routeConfig rc
@@ -63744,6 +63093,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `route_doRecalc` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -63751,8 +63102,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `route_doRecalc`()
proc: BEGIN
@@ -63805,6 +63154,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `route_getTickets` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -63812,8 +63163,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `route_getTickets`(vRouteFk INT)
BEGIN
@@ -63844,8 +63193,7 @@ BEGIN
tl.latitude AS Latitude,
wm.mediaValue AS SalePersonPhone,
tob.Note AS Note,
- t.isSigned AS Signed,
- st.id AS Polizon
+ t.isSigned AS Signed
FROM ticket t
JOIN client c ON t.clientFk = c.id
JOIN address a ON t.addressFk = a.id
@@ -63859,7 +63207,6 @@ BEGIN
WHERE t.routeFk = vRouteFk
AND ot.code = 'delivery'
)tob ON tob.id = t.id
- LEFT JOIN stowaway st ON st.shipFk = t.id
LEFT JOIN
(SELECT sub.ticketFk,
CONCAT('(', GROUP_CONCAT(DISTINCT sub.itemPackingTypeFk ORDER BY sub.items DESC SEPARATOR ','), ') ') itemPackingTypeFk
@@ -63880,6 +63227,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `route_updateM3` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -63887,8 +63236,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `route_updateM3`(vRoute INT)
BEGIN
@@ -63907,6 +63254,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `rutasAnalyze` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -63914,22 +63263,21 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `rutasAnalyze`(vYear INT, vMonth INT)
BEGIN
-/* Analiza los costes de las rutas de reparto y lo almacena en la tabla Rutas_Master
-*
-* PAK 15/4/2019
-*/
+/**
+ * Analiza los costes de las rutas de reparto y lo almacena en la tabla Rutas_Master
+ *
+ * PAK 15/4/2019
+ */
DELETE FROM bi.rutasBoard
WHERE year = vYear AND month = vMonth;
- -- Rellenamos la tabla con los datos de las rutas VOLUMETRICAS, especialmente con los bultos "virtuales"
- INSERT INTO bi.rutasBoard(year,
+ -- Rellenamos la tabla con los datos de las rutas VOLUMETRICAS, especialmente con los bultos "virtuales"
+ INSERT INTO bi.rutasBoard(year,
month,
warehouse_id,
Id_Ruta,
@@ -63937,36 +63285,37 @@ BEGIN
km,
Dia,
Fecha,
- Bultos,
+ m3,
+ bultos,
Matricula,
Tipo,
- Terceros)
- SELECT YEAR(r.created),
+ Terceros)
+ SELECT YEAR(r.created),
MONTH(r.created),
- GREATEST(1,a.warehouseFk),
+ IFNULL(GREATEST(1,a.warehouseFk), 0),
r.id,
r.agencyModeFk,
- r.kmEnd - r.kmStart,
+ IFNULL(r.kmEnd, 0) - IFNULL(r.kmStart, 0),
DAYNAME(r.created),
r.created,
+ SUM(r.m3),
SUM(sv.volume / ebv.m3),
v.numberPlate,
IF(ISNULL(`r`.`cost`), 'P', 'A'),
- r.cost
- FROM vn.route r
- JOIN vn.ticket t ON t.routeFk = r.id
- LEFT JOIN vn.zone z ON z.id = t.zoneFk
- LEFT JOIN vn.agencyMode am ON am.id = r.agencyModeFk
- LEFT JOIN vn.agency a ON a.id = am.agencyFk
- LEFT JOIN vn.vehicle v ON v.id = r.vehicleFk
- JOIN vn.saleVolume sv ON sv.ticketFk = t.id
- JOIN vn.expeditionBoxVol ebv ON ebv.boxFk = 71
+ IFNULL(r.cost,0)
+ FROM route r
+ JOIN ticket t ON t.routeFk = r.id
+ LEFT JOIN zone z ON z.id = t.zoneFk
+ LEFT JOIN agencyMode am ON am.id = r.agencyModeFk
+ LEFT JOIN agency a ON a.id = am.agencyFk
+ LEFT JOIN vehicle v ON v.id = r.vehicleFk
+ JOIN saleVolume sv ON sv.ticketFk = t.id
+ JOIN expeditionBoxVol ebv ON ebv.boxFk = 71
WHERE YEAR(r.created) = vYear AND MONTH(r.created) = vMonth
AND z.isVolumetric
GROUP BY r.id;
-
- -- Rellenamos la tabla con los datos de las rutas NO VOLUMETRICAS, especialmente con los bultos "virtuales"
- INSERT INTO bi.rutasBoard(year,
+ -- Rellenamos la tabla con los datos de las rutas NO VOLUMETRICAS, especialmente con los bultos "virtuales"
+ INSERT INTO bi.rutasBoard(year,
month,
warehouse_id,
Id_Ruta,
@@ -63974,34 +63323,36 @@ BEGIN
km,
Dia,
Fecha,
+ m3,
Bultos,
Matricula,
Tipo,
- Terceros)
- SELECT YEAR(r.created),
+ Terceros)
+ SELECT YEAR(r.created),
MONTH(r.created),
- GREATEST(1,a.warehouseFk),
+ IFNULL(GREATEST(1,a.warehouseFk), 0),
r.id,
r.agencyModeFk,
- r.kmEnd - r.kmStart,
+ IFNULL(r.kmEnd, 0) - IFNULL(r.kmStart,0),
DAYNAME(r.created),
r.created,
+ SUM(r.m3),
SUM(t.packages),
v.numberPlate,
IF(ISNULL(`r`.`cost`), 'P', 'A'),
- r.cost
- FROM vn.route r
- JOIN vn.ticket t ON t.routeFk = r.id
- LEFT JOIN vn.zone z ON z.id = t.zoneFk
- LEFT JOIN vn.agencyMode am ON am.id = r.agencyModeFk
- LEFT JOIN vn.agency a ON a.id = am.agencyFk
- LEFT JOIN vn.vehicle v ON v.id = r.vehicleFk
+ IFnULL(r.cost,0)
+ FROM route r
+ JOIN ticket t ON t.routeFk = r.id
+ LEFT JOIN zone z ON z.id = t.zoneFk
+ LEFT JOIN agencyMode am ON am.id = r.agencyModeFk
+ LEFT JOIN agency a ON a.id = am.agencyFk
+ LEFT JOIN vehicle v ON v.id = r.vehicleFk
WHERE YEAR(r.created) = vYear AND MONTH(r.created) = vMonth
AND z.isVolumetric = FALSE
GROUP BY r.id
ON DUPLICATE KEY UPDATE Bultos = Bultos + VALUES(Bultos);
- -- Coste REAL de cada bulto "virtual", de acuerdo con el valor apuntado a mano en la ruta
+ -- Coste REAL de cada bulto "virtual", de acuerdo con el valor apuntado a mano en la ruta
UPDATE bi.rutasBoard r
INNER JOIN vn2008.Rutas_Master rm ON rm.año = r.year AND rm.mes = r.month AND rm.warehouse_id = r.warehouse_id
SET r.coste_bulto = IF(r.Tipo ='A', r.Terceros, r.km * rm.coste_km ) / r.Bultos
@@ -64013,78 +63364,79 @@ BEGIN
UPDATE bi.rutasBoard r
JOIN (
SELECT t.routeFk, sum(s.quantity * sc.value) practicoTotal
- FROM vn.route r
- JOIN vn.time tm ON tm.dated = r.created
- JOIN vn.ticket t ON t.routeFk = r.id
- JOIN vn.sale s ON s.ticketFk = t.id
- JOIN vn.saleComponent sc ON sc.saleFk = s.id
- JOIN vn.`component` c ON c.id = sc.componentFk
- JOIN vn.componentType ct ON ct.id = c.typeFk
+ FROM route r
+ JOIN time tm ON tm.dated = r.created
+ JOIN ticket t ON t.routeFk = r.id
+ JOIN sale s ON s.ticketFk = t.id
+ JOIN saleComponent sc ON sc.saleFk = s.id
+ JOIN component c ON c.id = sc.componentFk
+ JOIN componentType ct ON ct.id = c.typeFk
WHERE ct.type = 'agencia'
AND tm.year = vYear
AND tm.month = vMonth
GROUP BY r.id
) sub ON sub.routeFk = r.Id_Ruta
- SET r.practico = sub.practicoTotal / r.Bultos;
+ SET r.practico = IFNULL(sub.practicoTotal / r.Bultos, 0);
-- Coste TEORICO de una caja "virtual" para cada ruta, teniendo en cuenta que hay carros, pallets, etc
UPDATE bi.rutasBoard r
JOIN (
SELECT t.routeFk,
SUM(t.zonePrice/ ebv.ratio)/ count(*) AS BultoTeoricoMedio
- FROM vn.ticket t
- JOIN vn.route r ON r.id = t.routeFk
- JOIN vn.time tm ON tm.dated = r.created
- JOIN vn.expedition e ON e.ticketFk = t.id
- JOIN vn.expeditionBoxVol ebv ON ebv.boxFk = e.isBox
- JOIN vn.address ad ON ad.id = t.addressFk
- JOIN vn.client c ON c.id = ad.clientFk
- LEFT JOIN vn.zone z ON z.id = t.zoneFk
+ FROM ticket t
+ JOIN route r ON r.id = t.routeFk
+ JOIN time tm ON tm.dated = r.created
+ JOIN expedition e ON e.ticketFk = t.id
+ JOIN expeditionBoxVol ebv ON ebv.boxFk = e.freightItemFk
+ JOIN address ad ON ad.id = t.addressFk
+ JOIN client c ON c.id = ad.clientFk
+ LEFT JOIN zone z ON z.id = t.zoneFk
WHERE tm.year = vYear
AND tm.month = vMonth
- AND z.isVolumetric = FALSE
+ AND z.isVolumetric = FALSE
GROUP BY t.routeFk) sub ON r.Id_Ruta = sub.routeFk
- SET r.teorico = sub.BultoTeoricoMedio;
+ SET r.teorico = IFNULL(sub.BultoTeoricoMedio, 0);
- -- Coste VOLUMETRICO TEORICO de una caja "virtual" para cada ruta
+ -- Coste VOLUMETRICO TEORICO de una caja "virtual" para cada ruta
UPDATE bi.rutasBoard r
JOIN (
- SELECT t.routeFk,
+ SELECT t.routeFk,
SUM(freight) AS BultoTeoricoMedio
- FROM vn.ticket t
- JOIN vn.route r ON r.id = t.routeFk
- JOIN vn.time tm ON tm.dated = r.created
- JOIN vn.saleVolume sf ON sf.ticketFk = t.id
- JOIN vn.client c ON c.id = t.clientFk
- JOIN vn.zone z ON z.id = t.zoneFk
+ FROM ticket t
+ JOIN route r ON r.id = t.routeFk
+ JOIN time tm ON tm.dated = r.created
+ JOIN saleVolume sf ON sf.ticketFk = t.id
+ JOIN client c ON c.id = t.clientFk
+ JOIN zone z ON z.id = t.zoneFk
WHERE tm.year = vYear
AND tm.month = vMonth
- AND z.isVolumetric != FALSE
+ AND z.isVolumetric != FALSE
GROUP BY t.routeFk) sub ON r.Id_Ruta = sub.routeFk
- SET r.teorico = sub.BultoTeoricoMedio / r.Bultos;
+ SET r.teorico = IFNULL(sub.BultoTeoricoMedio / r.Bultos, 0);
- -- La diferencia entre el teorico y el practico se deberia de cobrar en greuges, cada noche
- UPDATE bi.rutasBoard r
+ -- La diferencia entre el teorico y el practico se deberia de cobrar en greuges, cada noche
+ UPDATE bi.rutasBoard r
JOIN (
- SELECT t.routeFk,
+ SELECT t.routeFk,
Sum(g.amount) AS greuge
- FROM vn.ticket t
- JOIN vn.route r ON r.id = t.routeFk
- JOIN vn.time tm ON tm.dated = r.created
- JOIN vn.greuge g ON g.ticketFk = t.id
- JOIN vn.greugeType gt ON gt.id = g.greugeTypeFk
+ FROM ticket t
+ JOIN route r ON r.id = t.routeFk
+ JOIN time tm ON tm.dated = r.created
+ JOIN greuge g ON g.ticketFk = t.id
+ JOIN greugeType gt ON gt.id = g.greugeTypeFk
WHERE tm.year = vYear
AND tm.month = vMonth
- AND gt.name = 'Diferencia portes'
+ AND gt.name = 'Diferencia portes'
GROUP BY t.routeFk) sub ON r.Id_Ruta = sub.routeFk
SET r.greuge = sub.greuge / r.Bultos;
-
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `saleBuy_Add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -64092,8 +63444,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `saleBuy_Add`(vSaleFk INT, vBuyFk INT)
BEGIN
@@ -64124,6 +63474,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `saleGroup_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -64131,8 +63483,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `saleGroup_add`(vSectorFk INT)
BEGIN
@@ -64151,6 +63501,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `saleGroup_setParking` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -64158,8 +63510,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `saleGroup_setParking`(IN `vSaleGroupFk` VARCHAR(8), IN `vParkingFk` INT)
proc: BEGIN
@@ -64181,6 +63531,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `saleMistake_Add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -64188,8 +63540,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `saleMistake_Add`(vSaleFk INT, vUserFk INT, vTypeFk INT)
BEGIN
@@ -64203,6 +63553,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `saleMove` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -64210,8 +63562,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `saleMove`(IN vSaleFk BIGINT, IN vQuantity BIGINT)
BEGIN
@@ -64294,6 +63644,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `salePreparingList` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -64301,12 +63653,14 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `salePreparingList`(IN ticketFk BIGINT)
+CREATE DEFINER=`root`@`localhost` PROCEDURE `salePreparingList`(IN vTicketFk BIGINT)
BEGIN
-
+/**
+ * Devuelve un listado con las lineas de vn.sale y los distintos estados de prepacion
+ *
+ * @param vTicketFk Identificador de vn.ticket
+ */
CALL cache.last_buy_refresh(FALSE);
SELECT t.clientFk,
@@ -64328,7 +63682,8 @@ BEGIN
stPrevious.isChecked as isPrevious,
stPrepared.isChecked as isPrepared,
stControled.isChecked as isControled,
- ib.code as barcode
+ ib.code as barcode,
+ (MAX(sgd.id) IS NOT NULL) AS hasSaleGroupDetail
FROM vn.ticket t
JOIN vn.address a ON a.id = t.addressFk
JOIN vn.sale s ON s.ticketFk = t.id
@@ -64339,7 +63694,8 @@ BEGIN
LEFT JOIN vn.saleTracking stPrepared ON stPrepared.saleFk = s.id AND stPrepared.stateFk = 14
LEFT JOIN vn.saleTracking stControled ON stControled.saleFk = s.id AND stControled.stateFk = 8
LEFT JOIN vn.itemBarcode ib ON ib.itemFk = i.id
- WHERE t.id = ticketFk
+ LEFT JOIN vn.saleGroupDetail sgd ON sgd.saleFk = s.id
+ WHERE t.id = vTicketFk
GROUP BY s.id;
END ;;
DELIMITER ;
@@ -64347,96 +63703,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 DROP PROCEDURE IF EXISTS `salesMerge` */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `salesMerge`(vTicketFk INT)
-BEGIN
-
- DROP TEMPORARY TABLE IF EXISTS tmp.salesToPreserve;
-
- CREATE TEMPORARY TABLE tmp.salesToPreserve
- SELECT id, itemFk, sum(quantity) as newQuantity
- FROM vn.sale s
- WHERE s.ticketFk = vTicketFk
- AND s.itemFk NOT IN (95,98,100)
- GROUP by itemFk, price, discount;
-
- UPDATE vn.sale s
- JOIN tmp.salesToPreserve stp ON stp.id = s.id
- SET quantity = newQuantity
- WHERE s.ticketFk = vTicketFk;
-
- DELETE s.*
- FROM vn.sale s
- LEFT JOIN tmp.salesToPreserve stp ON stp.id = s.id
- WHERE s.ticketFk = vTicketFk
- AND stp.id IS NULL
- AND s.itemFk NOT IN (95,98,100);
-
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 DROP PROCEDURE IF EXISTS `salesMerge_byCollection` */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `salesMerge_byCollection`(vCollectionFk INT)
-BEGIN
-
- DECLARE vDone BOOL;
- -- Fetch variables
- DECLARE vTicketFk INT;
-
- DECLARE cCur CURSOR FOR
- SELECT ticketFk
- FROM vn.ticketCollection
- WHERE collectionFk = vCollectionFk;
-
- DECLARE CONTINUE HANDLER FOR NOT FOUND
- SET vDone = TRUE;
-
- OPEN cCur;
-
- myLoop: LOOP
-
- SET vDone = FALSE;
-
- FETCH cCur INTO vTicketFk;
-
- IF vDone THEN
- LEAVE myLoop;
- END IF;
-
- CALL vn.salesMerge(vTicketFk);
-
- END LOOP;
-
- CLOSE cCur;
-
-
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 DROP PROCEDURE IF EXISTS `saleSplit` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -64444,8 +63712,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `saleSplit`(vSaleFk INT, vQuantity INT)
BEGIN
@@ -64493,6 +63759,100 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+/*!50003 DROP PROCEDURE IF EXISTS `sales_merge` */;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+DELIMITER ;;
+CREATE DEFINER=`root`@`localhost` PROCEDURE `sales_merge`(vTicketFk INT)
+BEGIN
+ DROP TEMPORARY TABLE IF EXISTS salesToPreserve;
+ CREATE TEMPORARY TABLE salesToPreserve
+ SELECT s.id, s.itemFk, sum(s.quantity) as newQuantity
+ FROM vn.sale s
+ JOIN item i ON i.id = s.itemFk
+ JOIN itemType it ON it.id = i.typeFk
+ WHERE s.ticketFk = vTicketFk
+ AND it.isMergeable
+ GROUP BY s.itemFk, s.price, s.discount;
+
+ UPDATE vn.sale s
+ JOIN salesToPreserve stp ON stp.id = s.id
+ SET quantity = newQuantity
+ WHERE s.ticketFk = vTicketFk;
+
+ DELETE s.*
+ FROM vn.sale s
+ LEFT JOIN salesToPreserve stp ON stp.id = s.id
+ JOIN item i ON i.id = s.itemFk
+ JOIN itemType it ON it.id = i.typeFk
+ WHERE s.ticketFk = vTicketFk
+ AND stp.id IS NULL
+ AND it.isMergeable;
+
+ DROP TEMPORARY TABLE salesToPreserve;
+END ;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+/*!50003 DROP PROCEDURE IF EXISTS `sales_mergeByCollection` */;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+DELIMITER ;;
+CREATE DEFINER=`root`@`localhost` PROCEDURE `sales_mergeByCollection`(vCollectionFk INT)
+BEGIN
+
+ DECLARE vDone BOOL;
+ -- Fetch variables
+ DECLARE vTicketFk INT;
+
+ DECLARE cCur CURSOR FOR
+ SELECT ticketFk
+ FROM vn.ticketCollection
+ WHERE collectionFk = vCollectionFk;
+
+ DECLARE CONTINUE HANDLER FOR NOT FOUND
+ SET vDone = TRUE;
+
+ OPEN cCur;
+
+ myLoop: LOOP
+
+ SET vDone = FALSE;
+
+ FETCH cCur INTO vTicketFk;
+
+ IF vDone THEN
+ LEAVE myLoop;
+ END IF;
+
+ CALL vn.sales_merge(vTicketFk);
+
+ END LOOP;
+
+ CLOSE cCur;
+
+END ;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `saleTracking_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -64500,8 +63860,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection = utf8mb3_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `saleTracking_add`(vSaleGroupFk INT)
BEGIN
@@ -64532,6 +63890,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `saleTracking_addPreparedSaleGroup` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -64539,8 +63899,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection = utf8mb3_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `saleTracking_addPreparedSaleGroup`(vSaleGroupFk INT)
BEGIN
@@ -64564,6 +63922,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `saleTracking_addPrevOK` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -64571,8 +63931,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection = utf8mb3_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `saleTracking_addPrevOK`(vSectorCollectionFk INT)
BEGIN
@@ -64606,6 +63964,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `saleTracking_del` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -64613,8 +63973,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `saleTracking_del`(vSaleFk INT, vState VARCHAR(50))
BEGIN
@@ -64634,6 +63992,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `saleTracking_new` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -64641,8 +64001,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `saleTracking_new`( vSaleFK INT,
vIsChecked BOOLEAN,
@@ -64675,6 +64033,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `saleTracking_Replace` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -64682,8 +64042,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `saleTracking_Replace`(vSaleFk INT, vIsChecked INT, vOriginalQuantity INT, vStateFk INT)
BEGIN
@@ -64695,6 +64053,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `saleTracking_updateIsChecked` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -64702,8 +64062,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `saleTracking_updateIsChecked`(vSaleFk INT, vIsChecked BOOL)
BEGIN
@@ -64735,6 +64093,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `sale_calculateComponent` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -64742,8 +64102,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `sale_calculateComponent`(vSale INT, vOption INT)
proc: BEGIN
@@ -64768,6 +64126,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `sale_checkNoComponents` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -64775,8 +64135,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `sale_checkNoComponents`(vCreatedFrom DATETIME, vCreatedTo DATETIME)
BEGIN
@@ -64840,7 +64198,6 @@ BEGIN
FROM sale
WHERE id = vSaleFk;
- CALL util.debugAdd(vTicketFk, vConcept);
CALL sale_calculateComponent(vSaleFk, 1);
END LOOP;
@@ -64852,6 +64209,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `sale_getFromTicketOrCollection` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -64859,8 +64218,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `sale_getFromTicketOrCollection`(vParam INT)
BEGIN
@@ -64978,6 +64335,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `sale_getProblems` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -64985,8 +64344,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `sale_getProblems`(IN vIsTodayRelative tinyint(1))
BEGIN
@@ -65027,7 +64384,6 @@ BEGIN
risk DECIMAL(10,2) DEFAULT 0,
hasHighRisk TINYINT(1) DEFAULT 0,
hasTicketRequest INTEGER(1) DEFAULT 0,
- isAvailable INTEGER(1) DEFAULT 1,
itemShortage VARCHAR(255),
isTaxDataChecked INTEGER(1) DEFAULT 1,
itemDelay VARCHAR(255),
@@ -65070,16 +64426,20 @@ BEGIN
-- Faltan componentes
INSERT INTO tmp.sale_problems(ticketFk, hasComponentLack, saleFk)
- SELECT tl.ticketFk, (COUNT(DISTINCT s.id) * vComponentCount > COUNT(c.id)), s.id
- FROM tmp.ticket_list tl
- JOIN vn.sale s ON s.ticketFk = tl.ticketFk
- LEFT JOIN vn.saleComponent sc ON sc.saleFk = s.id
- LEFT JOIN vn.component c ON c.id = sc.componentFk AND c.isRequired
- JOIN vn.ticket t ON t.id = tl.ticketFk
- JOIN vn.agencyMode am ON am.id = t.agencyModeFk
- JOIN vn.deliveryMethod dm ON dm.id = am.deliveryMethodFk
- WHERE dm.code IN('AGENCY','DELIVERY','PICKUP')
- GROUP BY tl.ticketFk, s.id;
+ SELECT sub.ticketFk, sub.hasComponentLack, sub.saleFk
+ FROM(
+ SELECT tl.ticketFk, (COUNT(DISTINCT s.id) * vComponentCount > COUNT(c.id)) hasComponentLack, s.id saleFk
+ FROM tmp.ticket_list tl
+ JOIN vn.sale s ON s.ticketFk = tl.ticketFk
+ LEFT JOIN vn.saleComponent sc ON sc.saleFk = s.id
+ LEFT JOIN vn.component c ON c.id = sc.componentFk AND c.isRequired
+ JOIN vn.ticket t ON t.id = tl.ticketFk
+ JOIN vn.agencyMode am ON am.id = t.agencyModeFk
+ JOIN vn.deliveryMethod dm ON dm.id = am.deliveryMethodFk
+ WHERE dm.code IN('AGENCY','DELIVERY','PICKUP')
+ GROUP BY s.id
+ LIMIT 10000000000000000) sub
+ WHERE sub.hasComponentLack;
-- Cliente congelado
INSERT INTO tmp.sale_problems(ticketFk, isFreezed)
@@ -65130,24 +64490,6 @@ BEGIN
-- Disponible: no va a haber suficiente producto para preparar todos los pedidos
CALL cache.available_refresh(vAvailableCache, FALSE, vWarehouseFk, vDate);
- INSERT INTO tmp.sale_problems(ticketFk, isAvailable, saleFk)
- SELECT tl.ticketFk, FALSE, s.id
- FROM tmp.ticket_list tl
- JOIN vn.ticket t ON t.id = tl.ticketFk
- JOIN vn.sale s ON s.ticketFk = t.id
- JOIN vn.item i ON i.id = s.itemFk
- JOIN vn.itemType it on it.id = i.typeFk
- JOIN vn.itemCategory ic ON ic.id = it.categoryFk
- LEFT JOIN cache.available av ON av.item_id = i.id AND av.calc_id = vAvailableCache
- WHERE date(t.shipped) = vDate
- AND ic.merchandise = TRUE
- AND IFNULL(av.available, 0) < 0
- AND s.isPicked = FALSE
- AND NOT i.generic
- AND vWarehouseFk = t.warehouseFk
- GROUP BY tl.ticketFk
- ON DUPLICATE KEY UPDATE isAvailable = FALSE, saleFk = VALUES(saleFk);
-
-- Faltas: visible, disponible y ubicado son menores que la cantidad vendida
CALL cache.visible_refresh(vVisibleCache, FALSE, vWarehouseFk);
@@ -65252,6 +64594,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `sale_getProblemsByTicket` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -65259,8 +64603,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `sale_getProblemsByTicket`(IN vTicketFk INT, IN vIsTodayRelative TINYINT(1))
BEGIN
@@ -65291,6 +64633,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `sale_PriceFix` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -65298,8 +64642,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `sale_PriceFix`(vTicketFk INT)
BEGIN
@@ -65326,6 +64668,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `sale_recalcComponent` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -65333,8 +64677,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `sale_recalcComponent`(vOption INT)
proc: BEGIN
@@ -65455,6 +64797,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `sale_setQuantity` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -65462,8 +64806,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `sale_setQuantity`(vSaleFk INT, vQuantity INT)
BEGIN
@@ -65497,6 +64839,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `sale_updateOriginalQuantity` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -65504,8 +64848,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `sale_updateOriginalQuantity`(vSale INT, vQuantity INT)
proc: BEGIN
@@ -65521,29 +64863,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 DROP PROCEDURE IF EXISTS `saveLoadWorker` */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `saveLoadWorker`(routeFk INT, workerFk INT)
-BEGIN
-
-
-REPLACE INTO vn.routeLoadWorker(routeFk, workerFk)
-VALUES(routeFk,workerFk);
-
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `sectorCollectionSaleGroup_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -65551,8 +64872,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `sectorCollectionSaleGroup_add`(vSaleGroupFk INT, vSectorCollectionFk INT)
BEGIN
@@ -65603,6 +64922,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `sectorCollection_get` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -65610,8 +64931,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `sectorCollection_get`(vSectorFk INT)
BEGIN
@@ -65641,6 +64960,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `sectorCollection_getSale` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -65648,8 +64969,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `sectorCollection_getSale`(vSelf INT)
BEGIN
@@ -65685,6 +65004,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `sectorCollection_new` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -65692,8 +65013,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `sectorCollection_new`(vSectorFk INT)
BEGIN
@@ -65726,6 +65045,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `sectorProductivity_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -65733,8 +65054,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `sectorProductivity_add`()
BEGIN
@@ -65813,6 +65132,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `sector_get` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -65820,8 +65141,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `sector_get`()
BEGIN
@@ -65839,6 +65158,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `sector_getWarehouse` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -65846,8 +65167,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `sector_getWarehouse`(vSectorFk INT)
BEGIN
@@ -65862,6 +65181,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `setParking` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -65869,8 +65190,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `setParking`(IN `vParam` VARCHAR(8), IN `vParkingCode` VARCHAR(8))
proc: BEGIN
@@ -65936,6 +65255,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `shelvingChange` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -65943,8 +65264,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `shelvingChange`(IN `vShelvingO` VARCHAR(8), IN `vShelvingD` VARCHAR(8))
BEGIN
@@ -65960,6 +65279,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `shelvingLog_get` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -65967,8 +65288,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `shelvingLog_get`(shelvingFk VARCHAR(10))
BEGIN
@@ -65981,7 +65300,7 @@ BEGIN
SELECT originFk, name, creationDate, description
FROM shelvingLog sl
- JOIN user u ON u.id = sl.userFk
+ JOIN account.user u ON u.id = sl.userFk
WHERE sl.originFk = shelvingFk COLLATE utf8_general_ci
ORDER BY creationDate DESC;
@@ -65991,146 +65310,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 DROP PROCEDURE IF EXISTS `shelvingPark` */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `shelvingPark`(IN `vParam` VARCHAR(8), IN `vParkingCode` VARCHAR(8))
-proc: BEGIN
-
-/*
- * Aparca una colección, un ticket, un saleGroup o un shelving en un parking
- *
- * @param vParam id del ticket, colección, saleGroup o shelving
- * @param vParkingCode código del parking
- *
- */
-
- DECLARE vParkingFk INT;
- DECLARE vColumn VARCHAR(3);
- DECLARE vRow VARCHAR(2);
- DECLARE vReturn VARCHAR(50);
- DECLARE vIsSaleGroup BOOL;
- DECLARE vIsTicket BOOL;
- DECLARE vIsCollection BOOL;
- DECLARE vCollection INT DEFAULT NULL;
- DECLARE vDone INT DEFAULT FALSE;
- DECLARE vTicketFk INT;
- DECLARE vCursor CURSOR FOR
- SELECT IFNULL(tc2.ticketFk, t.id)
- FROM ticket t
- LEFT JOIN ticketCollection tc1 ON tc1.ticketFk = t.id
- LEFT JOIN ticketCollection tc2 ON tc2.collectionFk = tc1.collectionFk
- WHERE t.id = vParam;
-
-
- DECLARE CONTINUE HANDLER FOR NOT FOUND SET vDone = TRUE;
-
- SET vParkingCode = replace(vParkingCode,' ','') ;
-
- SELECT id INTO vParkingFk
- FROM vn.parking
- WHERE code = vParkingCode COLLATE utf8_unicode_ci;
-
- IF vParkingFk IS NULL THEN
-
- LEAVE proc;
-
- END IF;
-
- -- Se comprueba si es una preparación previa
- SELECT COUNT(*) INTO vIsSaleGroup
- FROM vn.saleGroup sg
- WHERE sg.id = vParam;
-
- IF vIsSaleGroup THEN
-
- UPDATE vn.saleGroup sg
- SET sg.parkingFk = vParkingFk
- WHERE sg.id = vParam
- AND sg.created >= TIMESTAMPADD(WEEK,-1,util.VN_CURDATE());
-
- CALL vn.ticket_setNextState(vn.ticket_get(vParam));
-
- LEAVE proc;
-
- END IF;
-
- -- Se comprueba si es un ticket
- SELECT COUNT(*) INTO vIsTicket
- FROM vn.ticket t
- WHERE t.id = vParam
- AND t.shipped >= TIMESTAMPADD(WEEK,-1,util.VN_CURDATE());
-
- IF vIsTicket THEN
-
- INSERT INTO vn.ticketParking(ticketFk, parkingFk)
- SELECT IFNULL(tc2.ticketFk, t.id), vParkingFk
- FROM ticket t
- LEFT JOIN ticketCollection tc1 ON tc1.ticketFk = t.id
- LEFT JOIN ticketCollection tc2 ON tc2.collectionFk = tc1.collectionFk
- WHERE t.id = vParam
- ON DUPLICATE KEY UPDATE parkingFk = vParkingFk;
-
- OPEN vCursor;
- l: LOOP
-
- FETCH vCursor INTO vTicketFk;
-
- IF vDone THEN
- LEAVE l;
- END IF;
-
- CALL vn.ticket_setNextState(vTicketFk);
-
- END LOOP;
-
- CLOSE vCursor;
-
- LEAVE proc;
-
- END IF;
-
- -- Se comprueba si es una coleccion de tickets
- SELECT COUNT(*) INTO vIsCollection
- FROM vn.collection c
- WHERE c.id = vParam
- AND c.created >= TIMESTAMPADD(WEEK,-1,util.VN_CURDATE());
-
- IF vIsCollection THEN
-
- REPLACE vn.ticketParking(ticketFk,parkingFk)
- SELECT tc.ticketFk, vParkingFk
- FROM vn.ticketCollection tc
- WHERE tc.collectionFk = vParam;
-
- LEAVE proc;
-
- END IF;
-
- -- Por descarte, se considera una matrícula
- INSERT INTO vn.shelvingLog (originFk, userFk, action , description)
- SELECT vParam, account.myUser_getId(), 'update', CONCAT("Cambio parking ",vParam," de ", p.code," a ", vParkingCode)
- FROM parking p
- JOIN shelving s ON s.parkingFk = p.id
- WHERE s.code = vParam COLLATE utf8_unicode_ci;
-
- UPDATE vn.shelving
- SET parkingFk = vParkingFk, parked = util.VN_NOW(), isPrinted = TRUE
- WHERE `code` = vParam COLLATE utf8_unicode_ci;
-
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 DROP PROCEDURE IF EXISTS `shelvingParking_get` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -66138,8 +65319,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `shelvingParking_get`(vShelvingFk VARCHAR(10), vWarehouseFk INT, vDayRange INT)
BEGIN
@@ -66167,6 +65346,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `shelvingPriority_update` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -66174,8 +65355,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `shelvingPriority_update`(priority INT,vShelvingFk VARCHAR(10))
BEGIN
@@ -66188,6 +65367,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `shelving_clean` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -66195,8 +65376,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection = utf8mb3_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `shelving_clean`()
BEGIN
@@ -66232,6 +65411,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `shelving_getSpam` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -66239,8 +65420,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `shelving_getSpam`(vDated DATE, vWarehouseFk INT)
BEGIN
@@ -66331,6 +65510,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `shelving_setParking` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -66338,8 +65519,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `shelving_setParking`(IN `vShelvingCode` VARCHAR(8), IN `vParkingFk` INT)
proc: BEGIN
@@ -66350,9 +65529,10 @@ proc: BEGIN
* @param vParkingFk id del parking
*/
INSERT INTO vn.shelvingLog (originFk, userFk, action , description)
- SELECT vShelvingCode, account.myUser_getId(), 'update', CONCAT("Cambio parking ",vShelvingCode," de ", p.code," a ", vParkingFk)
+ SELECT s.id, account.myUser_getId(), 'update', CONCAT("Cambio parking ",vShelvingCode," de ", p.code," a ", pNew.code)
FROM parking p
JOIN shelving s ON s.parkingFk = p.id
+ JOIN parking pNew ON pNew.id = vParkingFk
WHERE s.code = vShelvingCode COLLATE utf8_unicode_ci;
UPDATE vn.shelving
@@ -66364,6 +65544,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `sleep_X_min` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -66371,8 +65553,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `sleep_X_min`()
BEGIN
@@ -66386,6 +65566,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `solunionRiskRequest` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -66393,8 +65575,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `solunionRiskRequest`()
BEGIN
@@ -66430,44 +65610,53 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `stockBuyedByWorker` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `stockBuyedByWorker`(vDate DATE, vWorker INT)
BEGIN
+ DECLARE vVolume DECIMAL(10,2);
+ DECLARE vWarehouse INT DEFAULT 7;
- DECLARE vVolume DECIMAL(10,2);
- DECLARE vWarehouse INT DEFAULT 7;
- CALL stockTraslation(vDate);
+ CALL stockTraslation(vDate);
- SELECT Volumen INTO vVolume FROM vn2008.Cubos WHERE Id_Cubo = 'cc' LIMIT 1;
+ SELECT volume INTO vVolume FROM vn.packaging WHERE id = 'cc' LIMIT 1;
- SELECT c.Id_Entrada, a.Id_Article, a.Article, i.amount Cantidad, (0.6 * ( i.amount / c.packing ) * vn.buy_getVolume(Id_Compra))/vVolume buyed
- FROM tmp_item i
- JOIN vn2008.Articles a ON a.Id_Article = i.item_id
- JOIN vn2008.Tipos t ON a.tipo_id = t.tipo_id
- JOIN vn2008.reinos r ON r.id = t.reino_id
- JOIN vn2008.Trabajadores tr ON tr.Id_Trabajador = t.Id_Trabajador
- JOIN tmp.buyUltimate bu ON bu.itemFk = a.Id_Article AND bu.warehouseFk = vWarehouse
- JOIN vn2008.Compres c ON c.Id_compra = bu.buyFk
- WHERE r.display <> 0 AND tr.user_id = vWorker;
+ SELECT
+ b.entryFk Id_Entrada,
+ i.id Id_Article,
+ i.name Article,
+ ti.amount Cantidad,
+ (0.6 * ( ti.amount / b.packing ) * vn.buy_getVolume(b.id))/vVolume buyed,
+ b.packageFk id_cubo,
+ b.packing
+ FROM tmp_item ti
+ JOIN item i ON i.id = ti.item_id
+ JOIN itemType it ON i.typeFk = it.id
+ JOIN itemCategory ic ON ic.id = it.categoryFk
+ JOIN worker w ON w.id = it.workerFk
+ JOIN tmp.buyUltimate bu ON bu.itemFk = i.id AND bu.warehouseFk = vWarehouse
+ JOIN buy b ON b.id = bu.buyFk
+ WHERE ic.display <> 0 AND w.id = vWorker;
- DROP TEMPORARY TABLE
- tmp.buyUltimate,
- tmp_item;
+ DROP TEMPORARY TABLE
+ tmp.buyUltimate,
+ tmp_item;
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `stockBuyed_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -66475,8 +65664,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `stockBuyed_add`(vDated DATE)
BEGIN
@@ -66531,6 +65718,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `stockTraslation` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -66538,8 +65727,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `stockTraslation`(vDate DATE)
BEGIN
@@ -66582,6 +65769,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `subordinateGetList` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -66589,8 +65778,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `subordinateGetList`(vBossFk INT)
BEGIN
@@ -66645,6 +65832,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `supplierExpenses` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -66652,8 +65841,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `supplierExpenses`(vEnded DATE)
BEGIN
@@ -66737,6 +65924,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `supplierPackaging_ReportSource` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -66744,8 +65933,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `supplierPackaging_ReportSource`(vFromDated DATE, vSupplierFk INT)
BEGIN
@@ -66899,6 +66086,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `supplier_checkBalance` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -66906,47 +66095,77 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `supplier_checkBalance`(IN vDateTo DATETIME, IN vIsConciliated BOOL)
BEGIN
-
+/**
+ * Compara los datos de nuestros proveedores con
+ * los que hay en la base de datos de sage
+ *
+ * @param vDateTo
+ * @param vIsConciliated
+ * @table tmp.ledgerComparative (id, date, account, debit, credit, companyFk)
+ */
DECLARE vDateFrom DATE;
+ DECLARE vMaxTolerance DECIMAL(10,2);
SET vDateTo = TIMESTAMP(vDateTo,'23:59:59');
SELECT util.firstDayOfYear(vDateTo) INTO vDateFrom;
+ SELECT maxTolerance INTO vMaxTolerance
+ FROM vn.ledgerConfig;
- SELECT c.code, s.id , s.account, mysql, sage, mysql - sage difference, sub1.companyFk, s.name
+ SELECT c.code,
+ s.id supplierFk,
+ s.account,
+ sub1.mysql,
+ sub1.sage,
+ sub1.mysql - sub1.sage difference,
+ sub1.companyFk,
+ s.name
FROM supplier s
- JOIN ( SELECT companyFk, supplierFk, ROUND(SUM(mysql),2) mysql, ROUND(SUM(sage),2) sage
- FROM ( SELECT companyFk, supplierFk, -SUM(iid.amount) as mysql, 0 sage
+ JOIN (SELECT companyFk,
+ supplierFk,
+ CAST(ROUND(SUM(mysql),2) AS DECIMAL(10,2)) mysql,
+ CAST(ROUND(SUM(sage),2) AS DECIMAL(10,2)) sage
+ FROM (SELECT companyFk,
+ supplierFk,
+ - SUM(iid.amount) mysql,
+ 0 sage
FROM invoiceInDueDay iid
JOIN invoiceIn ii ON ii.id = iid.invoiceInFk
WHERE IFNULL(ii.bookEntried, ii.issued) BETWEEN vDateFrom AND vDateTo
AND ii.isBooked
GROUP BY ii.id
UNION ALL
- SELECT p.companyFk, p.supplierFk, p.amount, 0
- FROM payment p
- JOIN payMethod pm ON pm.id = p.payMethodFk
- WHERE p.received BETWEEN vDateFrom AND vDateTo
- AND IF(vIsConciliated, p.isConciliated, TRUE) = TRUE
- AND NOT pm.code <=>'previousBalance'
+ SELECT p.companyFk,
+ p.supplierFk,
+ p.amount,
+ 0
+ FROM payment p
+ JOIN payMethod pm ON pm.id = p.payMethodFk
+ WHERE p.received BETWEEN vDateFrom AND vDateTo
+ AND IF(vIsConciliated, p.isConciliated, TRUE) = TRUE
+ AND NOT pm.code <=>'previousBalance'
UNION ALL
- SELECT se.companyFk, se.supplierFk, - se.amount, 0
- FROM supplierExpense se
- WHERE se.dated BETWEEN vDateFrom AND vDateTo
- AND IF(vIsConciliated, se.isConciliated, TRUE) = TRUE
+ SELECT se.companyFk,
+ se.supplierFk,
+ - se.amount,
+ 0
+ FROM supplierExpense se
+ WHERE se.dated BETWEEN vDateFrom AND vDateTo
+ AND IF(vIsConciliated, se.isConciliated, TRUE) = TRUE
UNION ALL
- SELECT xd.empresa_id, s.id, 0, ROUND(NZ(Eurodebe)-NZ(Eurohaber),2)
- FROM bi.XDiario_ALL xd
- JOIN supplier s ON s.account = xd.SUBCTA
- WHERE xd.Fecha BETWEEN vDateFrom AND vDateTo
+ SELECT lc.companyFk,
+ s.id,
+ 0,
+ - (NZ(lc.debit) - NZ(lc.credit))
+ FROM tmp.ledgerComparative lc
+ JOIN supplier s ON s.account = lc.account
+ WHERE lc.`date` BETWEEN vDateFrom AND vDateTo
) sub
GROUP BY companyFk, supplierFk
) sub1 ON sub1.supplierFk = s.id
JOIN company c ON c.id = sub1.companyFk
- HAVING ABS(difference) > 0.05
+ HAVING ABS(difference) > vMaxTolerance
ORDER BY s.name;
END ;;
DELIMITER ;
@@ -66954,6 +66173,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `supplier_checkIsActive` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -66961,8 +66182,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `supplier_checkIsActive`(vSelf INT)
BEGIN
@@ -66984,6 +66203,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `supplier_disablePayMethodChecked` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -66991,8 +66212,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `supplier_disablePayMethodChecked`()
BEGIN
@@ -67020,6 +66239,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `test` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -67027,8 +66248,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `test`()
BEGIN
@@ -67039,6 +66258,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketBoxesView` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -67046,8 +66267,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketBoxesView`(IN vTicketFk INT)
BEGIN
@@ -67077,6 +66296,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketBuiltTime` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -67084,8 +66305,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketBuiltTime`(vDate DATE)
BEGIN
@@ -67128,6 +66347,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketCalculateClon` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -67135,8 +66356,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketCalculateClon`(IN vTicketNew INT, vTicketOld INT)
BEGIN
@@ -67228,6 +66447,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketCalculateFromType` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -67235,8 +66456,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketCalculateFromType`( vLanded DATE,
vAddressFk INT,
@@ -67259,6 +66478,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketCalculatePurge` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -67266,8 +66487,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketCalculatePurge`()
BEGIN
@@ -67283,6 +66502,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketClon` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -67290,8 +66511,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketClon`(vTicketFk INT, vNewShipped DATE)
BEGIN
@@ -67351,6 +66570,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketClon_OneYear` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -67358,8 +66579,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketClon_OneYear`(vTicketFk INT)
BEGIN
@@ -67386,6 +66605,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketCollection_get` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -67393,8 +66614,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketCollection_get`(vTicketFk INT)
BEGIN
@@ -67409,6 +66628,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketCollection_setUsedShelves` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -67416,8 +66637,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketCollection_setUsedShelves`(vTicketFk INT, vUsedShelves INT)
BEGIN
@@ -67439,6 +66658,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketComponentUpdate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -67446,8 +66667,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketComponentUpdate`(
vTicketFk INT,
@@ -67517,6 +66736,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketComponentUpdateSale` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -67524,8 +66745,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketComponentUpdateSale`(vOption INT)
BEGIN
@@ -67714,6 +66933,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketCreate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -67721,8 +66942,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketCreate`(
vClientId INT
@@ -67742,6 +66961,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketCreateWithUser` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -67749,8 +66970,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketCreateWithUser`(
vClientId INT
@@ -67783,6 +67002,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketDown_PrintableSelection` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -67790,8 +67011,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketDown_PrintableSelection`(vSectorFk INT)
BEGIN
@@ -67818,6 +67037,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketGetTaxAdd` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -67825,8 +67046,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketGetTaxAdd`(vTicketFk INT)
BEGIN
@@ -67862,6 +67081,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketGetTax_new` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -67869,8 +67090,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketGetTax_new`()
READS SQL DATA
@@ -67941,6 +67160,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketGetTotal` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -67948,8 +67169,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketGetTotal`()
BEGIN
@@ -67980,6 +67199,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketGetVisibleAvailable` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -67987,8 +67208,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketGetVisibleAvailable`(
vTicket INT)
@@ -68026,6 +67245,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketManaToPromo` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -68033,8 +67254,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketManaToPromo`(vTicketFk INT)
BEGIN
@@ -68062,6 +67281,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketMissed_List` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -68069,8 +67290,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketMissed_List`(vTicketFk INT)
BEGIN
@@ -68124,6 +67343,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketNotInvoicedByClient` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -68131,8 +67352,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketNotInvoicedByClient`(vClientFk INT)
BEGIN
@@ -68167,6 +67386,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketObservation_addNewBorn` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -68174,8 +67395,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketObservation_addNewBorn`(vTicketFk INT)
BEGIN
@@ -68200,6 +67419,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketParking_findSkipped` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -68207,8 +67428,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketParking_findSkipped`(vTicketFk INT, vItemPackingTypeFk VARCHAR(1))
BEGIN
@@ -68277,6 +67496,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketRefund_beforeUpsert` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -68284,8 +67505,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketRefund_beforeUpsert`(vRefundTicketFk INT, vOriginalTicketFk INT)
BEGIN
@@ -68308,6 +67527,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketRequest_Add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -68315,8 +67536,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketRequest_Add`(vDescription VARCHAR(255), vQuantity INT, vPrice DOUBLE, vTicketFk INT, vBuyerCode VARCHAR(3))
BEGIN
@@ -68340,6 +67559,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketStateToday_setState` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -68347,8 +67568,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketStateToday_setState`(vTicketFk INT, vStateCode VARCHAR(45))
BEGIN
@@ -68380,6 +67599,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketStateUpdate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -68387,8 +67608,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketStateUpdate`(vTicketFk INT, vStateCode VARCHAR(45))
BEGIN
@@ -68419,6 +67638,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketToInvoiceByAddress` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -68426,8 +67647,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketToInvoiceByAddress`(
vStarted DATE,
@@ -68455,6 +67674,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketToInvoiceByDate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -68462,8 +67683,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketToInvoiceByDate`(
vStarted DATE,
@@ -68491,6 +67710,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketToInvoiceByRef` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -68498,8 +67719,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketToInvoiceByRef`(IN vInvoiceRef VARCHAR(15))
BEGIN
@@ -68551,6 +67770,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticketTrackingAdd` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -68558,8 +67779,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticketTrackingAdd`(vTicketFk INT, vState VARCHAR(25) CHARSET UTF8, vWorkerFk INT)
BEGIN
@@ -68577,6 +67796,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -68584,8 +67805,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_add`(
vClientId INT
@@ -68700,6 +67919,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_administrativeCopy` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -68707,8 +67928,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_administrativeCopy`(vOriginalTicket INT, OUT vNewTicket INT)
BEGIN
@@ -68732,6 +67951,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_canAdvance` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -68739,8 +67960,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_canAdvance`(vDated DATE, vWarehouseFk INT)
BEGIN
@@ -68825,6 +68044,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_canMerge` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -68832,8 +68053,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_canMerge`(vDated DATE, vScopeDays INT, vLitersMax INT, vLinesMax INT, vWarehouseFk INT)
BEGIN
@@ -68846,10 +68065,10 @@ BEGIN
* @param vLinesMax Número máximo de lineas de los tickets a catapultar
* @param vWarehouseFk Identificador de vn.warehouse
*/
- SELECT sv.ticketFk ,
+ SELECT sv.ticketFk,
GROUP_CONCAT(DISTINCT i.itemPackingTypeFk ORDER BY i.itemPackingTypeFk) ipt,
- CAST(sum(litros) AS DECIMAL(10,0)) liters,
- CAST(count(*) AS DECIMAL(10,0)) `lines`,
+ CAST(SUM(litros) AS DECIMAL(10,0)) liters,
+ CAST(COUNT(*) AS DECIMAL(10,0)) `lines`,
st.name state,
sub2.id ticketFuture,
sub2.shipped,
@@ -68869,20 +68088,22 @@ BEGIN
LEFT JOIN (
SELECT *
FROM (
- SELECT
- t.addressFk ,
- t.id,
- t.shipped,
- st.name state,
- GROUP_CONCAT(DISTINCT i.itemPackingTypeFk ORDER BY i.itemPackingTypeFk) iptd
+ SELECT t.addressFk,
+ t.id,
+ t.shipped,
+ st.name state,
+ GROUP_CONCAT(DISTINCT i.itemPackingTypeFk
+ ORDER BY i.itemPackingTypeFk) iptd
FROM vn.ticket t
JOIN vn.ticketState ts ON ts.ticketFk = t.id
JOIN vn.state st ON st.id = ts.stateFk
JOIN vn.sale s ON s.ticketFk = t.id
+ JOIN vn.alertLevel al ON al.id = st.alertLevel
JOIN vn.item i ON i.id = s.itemFk
WHERE t.shipped BETWEEN TIMESTAMPADD(DAY, vScopeDays,vDated)
- AND util.dayend(TIMESTAMPADD(DAY, vScopeDays,vDated))
+ AND util.dayend(TIMESTAMPADD(DAY, vScopeDays,vDated))
AND t.warehouseFk = vWarehouseFk
+ AND al.code = 'FREE'
GROUP BY t.id
) sub
GROUP BY sub.addressFk
@@ -68892,13 +68113,17 @@ BEGIN
AND al.code = 'FREE'
AND tp.ticketFk IS NULL
GROUP BY sv.ticketFk
- HAVING liters <= vLitersMax AND `lines` <= vLinesMax AND ticketFuture;
+ HAVING liters <= vLitersMax
+ AND `lines` <= vLinesMax
+ AND ticketFuture;
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_changeClient` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -68906,12 +68131,9 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_changeClient`(vNewClient INT, vUserFk INT)
BEGIN
-
/**
* Dado un conjunto de tickets
* cambia el cliente al nuevo cliente dado
@@ -68921,31 +68143,24 @@ BEGIN
*
* table @tmp.ticket(ticketFk) conjunto de tickets
*/
+ INSERT INTO ticketLog (originFk, userFk, `action`, changedModel, oldInstance, newInstance)
+ SELECT t.id, vUserFk, 'update', 'Ticket', CONCAT('{"clientFk":',t.clientFk,'}'), CONCAT('{"clientFk":',vNewClient,'}')
+ FROM ticket t
+ JOIN tmp.ticket tt
+ ON t.id = tt.ticketFk;
- INSERT INTO ticketLog (originFk, userFk, `action`, changedModel, oldInstance, newInstance)
- SELECT t.id, vUserFk, 'update', 'Ticket', CONCAT('{"clientFk":',t.clientFk,'}'), CONCAT('{"clientFk":',vNewClient,'}')
- FROM ticket t
- JOIN tmp.ticket tt
- ON t.id = tt.ticketFk;
-
- UPDATE ticket t
- JOIN tmp.ticket tt
- ON t.id = tt.ticketFk
- SET t.clientFk = vNewClient;
-
- UPDATE ticket t
- JOIN tmp.ticket tt
- ON t.id = tt.ticketFk
- JOIN stowaway s
- ON s.shipFk = tt.ticketFk
- SET t.clientFk = vNewClient;
-
+ UPDATE ticket t
+ JOIN tmp.ticket tt
+ ON t.id = tt.ticketFk
+ SET t.clientFk = vNewClient;
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_checkFullyControlled` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -68953,8 +68168,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_checkFullyControlled`(vWorkerFk INT, vTicketFk INT )
BEGIN
@@ -68974,16 +68187,17 @@ BEGIN
JOIN ticketCollection tc ON tc.ticketFk = ts.ticketFk
LEFT JOIN (SELECT tc.collectionFk
FROM ticketCollection tc
- WHERE ticketFk = vTicketFk
- AND tc.created >= util.VN_CURDATE()
+ WHERE ticketFk = vTicketFk
+ AND tc.created >= util.VN_CURDATE()
)sub ON sub.collectionFk = tc.collectionFk
- WHERE ts.workerFk = vWorkerFk
- AND sub.collectionFk IS NULL
- AND tc.created >= util.VN_CURDATE()
+ WHERE ts.workerFk = vWorkerFk
+ AND sub.collectionFk IS NULL
+ AND tc.created >= util.VN_CURDATE()
GROUP BY tc.collectionFk
)sub ON sub.collectionFk = tc.collectionFk
JOIN ticketState ts ON ts.ticketFk = t.id
- WHERE ts.code IN ('ON_PREPARATION', 'PREPARED', 'PREVIOUS_PREPARATION', 'OK PREVIOUS')
+ JOIN state s2 ON s2.id = ts.stateFk
+ WHERE s2.code IN ('ON_PREPARATION', 'PREPARED', 'PREVIOUS_PREPARATION', 'OK PREVIOUS')
AND t.shipped >= util.VN_CURDATE()
AND s.quantity <>0
LIMIT 1;
@@ -68994,6 +68208,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_checkNoComponents` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -69001,8 +68217,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_checkNoComponents`(vShippedFrom DATETIME, vShippedTo DATETIME)
BEGIN
@@ -69072,6 +68286,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_Clone` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -69079,8 +68295,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_Clone`(vOriginalTicket INT, OUT vNewTicket INT)
BEGIN
@@ -69153,6 +68367,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_cloneWeekly` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -69160,8 +68376,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_cloneWeekly`(IN vWeek INT)
BEGIN
@@ -69303,6 +68517,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_close` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -69310,8 +68526,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_close`()
BEGIN
@@ -69377,20 +68591,20 @@ BEGIN
INSERT INTO ticketPackaging (ticketFk, packagingFk, quantity)
(SELECT vCurTicketFk, p.id, COUNT(*)
FROM expedition e
- JOIN packaging p ON p.itemFk = e.itemFk
+ JOIN packaging p ON p.itemFk = e.freightItemFk
WHERE e.ticketFk = vCurTicketFk AND p.isPackageReturnable
AND vWithPackage
GROUP BY p.itemFk);
-- No retornables o no catalogados
INSERT INTO sale (itemFk, ticketFk, concept, quantity, price, isPriceFixed)
- (SELECT e.itemFk, vCurTicketFk, i.name, COUNT(*) AS amount, getSpecialPrice(e.itemFk, vClientFk), 1
+ (SELECT e.freightItemFk, vCurTicketFk, i.name, COUNT(*) AS amount, getSpecialPrice(e.freightItemFk, vClientFk), 1
FROM expedition e
- JOIN item i ON i.id = e.itemFk
+ JOIN item i ON i.id = e.freightItemFk
LEFT JOIN packaging p ON p.itemFk = i.id
WHERE e.ticketFk = vCurTicketFk AND IFNULL(p.isPackageReturnable, 0) = 0
- AND getSpecialPrice(e.itemFk, vClientFk) > 0
- GROUP BY e.itemFk);
+ AND getSpecialPrice(e.freightItemFk, vClientFk) > 0
+ GROUP BY e.freightItemFk);
IF(vHasDailyInvoice) AND vHasToInvoice THEN
@@ -69419,6 +68633,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_closeByTicket` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -69426,42 +68642,39 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_closeByTicket`(IN vTicketFk int)
BEGIN
-
/**
* Inserta el ticket en la tabla temporal
* para ser cerrado.
*
* @param vTicketFk Id del ticket
*/
-
DROP TEMPORARY TABLE IF EXISTS tmp.ticket_close;
CREATE TEMPORARY TABLE tmp.ticket_close ENGINE = MEMORY (
SELECT
t.id AS ticketFk
- FROM expedition e
- INNER JOIN ticket t ON t.id = e.ticketFk
+ FROM ticket t
+ JOIN agencyMode am ON am.id = t.agencyModeFk
LEFT JOIN ticketState ts ON ts.ticketFk = t.id
- JOIN alertLevel al ON al.id = ts.alertLevel
- WHERE
- al.code = 'PACKED'
- AND t.id = vTicketFk
+ JOIN alertLevel al ON al.id = ts.alertLevel
+ WHERE al.code = 'PACKED' OR (am.code = 'refund' AND al.code != 'delivered')
+ AND t.id = vTicketFk
AND t.refFk IS NULL
- GROUP BY e.ticketFk);
+ GROUP BY t.id);
CALL ticket_close();
- DROP TEMPORARY TABLE tmp.ticket_close;
+ DROP TEMPORARY TABLE tmp.ticket_close;
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_componentMakeUpdate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -69469,8 +68682,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_componentMakeUpdate`(IN vTicketFk INT, IN vClientFk INT,
IN vNickname VARCHAR(50), IN vAgencyModeFk INT,
@@ -69566,6 +68777,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_componentPreview` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -69573,8 +68786,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_componentPreview`(
vTicketFk INT,
@@ -69680,6 +68891,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_DelayTruck` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -69687,8 +68900,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_DelayTruck`(vWarehouserFk INT, vHour INT, vMinute INT)
BEGIN
@@ -69732,6 +68943,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_DelayTruckSplit` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -69739,8 +68952,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_DelayTruckSplit`(vTicketFk INT)
BEGIN
@@ -69798,6 +69009,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_doRecalc` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -69805,8 +69018,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_doRecalc`()
proc: BEGIN
@@ -69829,15 +69040,6 @@ proc: BEGIN
ROLLBACK;
GET DIAGNOSTICS CONDITION 2 @errno = MYSQL_ERRNO, @text = MESSAGE_TEXT;
SET vError = IFNULL(@errno, 0);
- IF NOT(vError = 1105 OR vError = 1751) THEN
- CALL `vn`.`mail_insert`('cau@verdnatura.es',
- NULL,
- 'Problema al recalcular el total de ticket',
- CONCAT('Se ha detectado un problema en ticket_doRecalc al calcular el total del ticket : ',
- vTicketFk,' el error es el: ',
- CONCAT('ERROR ', IFNULL(@errno, 0), ': ', ifnull(@text, '')))
- );
- END IF;
RESIGNAL;
END;
@@ -69876,6 +69078,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_doRefund` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -69883,8 +69087,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_doRefund`(OUT vNewTicket INT)
BEGIN
@@ -70010,6 +69212,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_getFromFloramondo` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -70017,8 +69221,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_getFromFloramondo`(vDateFrom DATE, vDateTo DATE)
BEGIN
@@ -70150,6 +69352,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_getMovable` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -70157,8 +69361,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_getMovable`(vTicketFk INT, vDatedNew DATETIME, vWarehouseFk INT)
BEGIN
@@ -70207,6 +69409,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_getProblems` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -70214,8 +69418,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_getProblems`(IN vIsTodayRelative tinyint(1))
BEGIN
@@ -70238,7 +69440,6 @@ BEGIN
MAX(p.risk) AS risk,
MAX(p.hasHighRisk) AS hasHighRisk,
MAX(p.hasTicketRequest) AS hasTicketRequest,
- MIN(p.isAvailable) AS isAvailable,
MAX(p.itemShortage) AS itemShortage,
MIN(p.isTaxDataChecked) AS isTaxDataChecked,
MAX(p.hasComponentLack) AS hasComponentLack,
@@ -70255,7 +69456,6 @@ BEGIN
(tp.isFreezed) +
IF(tp.risk, TRUE, FALSE) +
(tp.hasTicketRequest) +
- (tp.isAvailable = 0) +
(tp.isTaxDataChecked = 0) +
(tp.hasComponentLack) +
(tp.itemDelay) +
@@ -70272,26 +69472,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 DROP PROCEDURE IF EXISTS `ticket_getShip` */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_getShip`(vTicketFk INT)
-BEGIN
- SELECT s.shipFk FROM vn.stowaway s
- WHERE s.id = vTicketFk;
-END ;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_getSplitList` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -70299,8 +69481,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_getSplitList`(vDated DATE, vHour TIME, vWarehouseFk INT)
BEGIN
@@ -70442,6 +69622,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_getTax` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -70449,8 +69631,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_getTax`(IN vTaxArea VARCHAR(25))
BEGIN
@@ -70558,6 +69738,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_insertZone` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -70565,8 +69747,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_insertZone`()
BEGIN
@@ -70601,6 +69781,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_merge` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -70608,8 +69790,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_merge`(vSelf INT, vTicketTargetFk INT)
BEGIN
@@ -70636,6 +69816,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_priceDifference` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -70643,8 +69825,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_priceDifference`(
vTicketFk INT,
@@ -70693,6 +69873,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_recalc` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -70700,8 +69882,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_recalc`(vTicketId INT)
BEGIN
@@ -70732,6 +69912,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_recalcComponents` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -70739,8 +69921,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_recalcComponents`(IN vTicketFk BIGINT, vIsTicketEditable BOOLEAN)
proc: BEGIN
@@ -70834,6 +70014,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_requestRecalc` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -70841,8 +70023,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_requestRecalc`(vSelf INT)
proc: BEGIN
@@ -70862,6 +70042,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_setNextState` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -70869,8 +70051,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_setNextState`(vSelf INT)
BEGIN
@@ -70898,6 +70078,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_setParking` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -70905,8 +70087,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_setParking`(IN `vTicketFk` VARCHAR(8), IN `vParkingFk` INT)
proc: BEGIN
@@ -70953,6 +70133,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_setPreviousState` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -70960,8 +70142,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_setPreviousState`(vTicketFk INT)
BEGIN
@@ -70998,6 +70178,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_setState` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -71005,8 +70187,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_setState`(vSelf INT, vStateCode VARCHAR(255))
BEGIN
@@ -71049,6 +70229,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_split` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -71056,8 +70238,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_split`(vTicketFk INT, vTicketFutureFk INT, vDated DATE)
proc:BEGIN
@@ -71139,6 +70319,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_splitItemPackingType` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -71146,8 +70328,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_splitItemPackingType`(vTicketFk INT, vOriginalItemPackingTypeFk VARCHAR(1))
proc:BEGIN
@@ -71159,7 +70339,7 @@ proc:BEGIN
* @param vOriginalItemPackingTypeFk Tipo para el que se reserva el número de ticket original
* @return table tmp.ticketIPT(ticketFk, itemPackingTypeFk)
*/
- DECLARE vItemPackingTypeFk VARCHAR(1);
+ DECLARE vItemPackingTypeFk VARCHAR(1) DEFAULT 'H';
DECLARE vNewTicketFk INT;
DECLARE vPackingTypesToSplit INT;
DECLARE vDone INT DEFAULT FALSE;
@@ -71172,16 +70352,18 @@ proc:BEGIN
DECLARE CONTINUE HANDLER FOR NOT FOUND SET vDone = TRUE;
+ DELETE FROM vn.sale
+ WHERE quantity = 0
+ AND ticketFk = vTicketFk;
+
DROP TEMPORARY TABLE IF EXISTS tmp.sale;
CREATE TEMPORARY TABLE tmp.sale
(PRIMARY KEY (id))
- SELECT s.id, i.itemPackingTypeFk , sv.litros
+ SELECT s.id, i.itemPackingTypeFk , IFNULL(sv.litros, 0) litros
FROM vn.sale s
JOIN vn.item i ON i.id = s.itemFk
- JOIN vn.saleVolume sv ON sv.saleFk = s.id
- LEFT JOIN vn.saleTracking st ON st.saleFk = s.id
- WHERE s.ticketFk = vTicketFk
- AND ISNULL(st.id);
+ LEFT JOIN vn.saleVolume sv ON sv.saleFk = s.id
+ WHERE s.ticketFk = vTicketFk;
DROP TEMPORARY TABLE IF EXISTS tmp.saleGroup;
CREATE TEMPORARY TABLE tmp.saleGroup
@@ -71201,7 +70383,7 @@ proc:BEGIN
CASE vPackingTypesToSplit
WHEN 0 THEN
INSERT INTO tmp.ticketIPT(ticketFk, itemPackingTypeFk)
- VALUES(vTicketFk, 'H');
+ VALUES(vTicketFk, vItemPackingTypeFk);
WHEN 1 THEN
INSERT INTO tmp.ticketIPT(ticketFk, itemPackingTypeFk)
SELECT vTicketFk, itemPackingTypeFk
@@ -71256,6 +70438,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_splitPackingComplete` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -71263,8 +70447,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_splitPackingComplete`(vTicketFk INT, vSectorFk INT)
BEGIN
@@ -71311,6 +70493,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `ticket_WeightDeclaration` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -71318,8 +70502,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ticket_WeightDeclaration`(vClientFk INT, vDated DATE)
BEGIN
@@ -71374,6 +70556,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `timeBusiness_calculate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -71381,8 +70565,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `timeBusiness_calculate`(vDatedFrom DATETIME, vDatedTo DATETIME)
BEGIN
@@ -71472,6 +70654,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `timeBusiness_calculateAll` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -71479,8 +70663,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `timeBusiness_calculateAll`(vDatedFrom DATETIME, vDatedTo DATETIME)
BEGIN
@@ -71495,7 +70677,7 @@ BEGIN
CREATE TEMPORARY TABLE IF NOT EXISTS tmp.`user`
SELECT userFk
FROM vn.worker w
- JOIN vn.`user` u ON u.id = w.userFk
+ JOIN account.`user` u ON u.id = w.userFk
WHERE userFk IS NOT NULL;
CALL vn.timeBusiness_calculate(vDatedFrom, vDatedTo);
@@ -71508,6 +70690,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `timeBusiness_calculateByDepartment` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -71515,8 +70699,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `timeBusiness_calculateByDepartment`(vDepartmentFk INT, vDatedFrom DATETIME, vDatedTo DATETIME)
BEGIN
@@ -71546,6 +70728,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `timeBusiness_calculateByUser` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -71553,8 +70737,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `timeBusiness_calculateByUser`(vUserFk INT, vDatedFrom DATETIME, vDatedTo DATETIME)
BEGIN
@@ -71569,7 +70751,7 @@ BEGIN
CREATE TEMPORARY TABLE tmp.`user`
SELECT id userFk
- FROM user
+ FROM account.user
WHERE id = vUserFk;
CALL vn.timeBusiness_calculate(vDatedFrom, vDatedTo);
@@ -71581,6 +70763,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `timeBusiness_calculateByWorker` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -71588,8 +70772,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `timeBusiness_calculateByWorker`(vWorkerFk INT, vDatedFrom DATETIME, vDatedTo DATETIME)
BEGIN
@@ -71604,7 +70786,7 @@ BEGIN
CREATE TEMPORARY TABLE tmp.`user`
SELECT u.id userFk
- FROM vn.user u
+ FROM account.user u
JOIN vn.worker w ON w.userFk = u.id
WHERE w.id = vWorkerFk;
@@ -71618,6 +70800,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `timeControl_calculate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -71625,8 +70809,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `timeControl_calculate`(vDatedFrom DATETIME, vDatedTo DATETIME)
BEGIN
@@ -71777,7 +70959,7 @@ BEGIN
ORDER BY userFk, timed, id;
DROP TEMPORARY TABLE IF EXISTS tmp.timeControlCalculate;
- CREATE TEMPORARY TABLE tmp.timeControlCalculate
+ CREATE OR REPLACE TEMPORARY TABLE tmp.timeControlCalculate
(INDEX (userFk, dated))
ENGINE = MEMORY
SELECT sub.userFk,
@@ -71811,6 +70993,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `timeControl_calculateAll` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -71818,8 +71002,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `timeControl_calculateAll`(vDatedFrom DATETIME, vDatedTo DATETIME)
BEGIN
@@ -71834,7 +71016,7 @@ BEGIN
CREATE TEMPORARY TABLE IF NOT EXISTS tmp.`user`
SELECT userFk
FROM vn.worker w
- JOIN vn.`user` u ON u.id = w.userFk
+ JOIN account.`user` u ON u.id = w.userFk
WHERE userFk IS NOT NULL;
CALL vn.timeControl_calculate(vDatedFrom, vDatedTo);
@@ -71847,6 +71029,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `timeControl_calculateByDepartment` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -71854,8 +71038,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `timeControl_calculateByDepartment`(vDepartmentFk INT, vDatedFrom DATETIME, vDatedTo DATETIME)
BEGIN
@@ -71885,6 +71067,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `timeControl_calculateByUser` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -71892,8 +71076,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `timeControl_calculateByUser`(vUserFk INT, vDatedFrom DATETIME, vDatedTo DATETIME)
BEGIN
@@ -71908,7 +71090,7 @@ BEGIN
CREATE TEMPORARY TABLE tmp.`user`
SELECT id userFk
- FROM user
+ FROM account.user
WHERE id = vUserFk;
CALL vn.timeControl_calculate(vDatedFrom, vDatedTo);
@@ -71920,6 +71102,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `timeControl_calculateByWorker` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -71927,8 +71111,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `timeControl_calculateByWorker`(vWorkerFk INT, vDatedFrom DATETIME, vDatedTo DATETIME)
BEGIN
@@ -71943,7 +71125,7 @@ BEGIN
CREATE TEMPORARY TABLE tmp.`user`
SELECT u.id userFk
- FROM vn.user u
+ FROM account.user u
JOIN vn.worker w ON w.userFk = u.id
WHERE w.id = vWorkerFk;
@@ -71957,6 +71139,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `timeControl_getError` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -71964,8 +71148,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `timeControl_getError`(vDatedFrom DATETIME, vDatedTo DATETIME)
BEGIN
@@ -72040,6 +71222,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `timeWorkerControl_check` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -72047,8 +71231,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `timeWorkerControl_check`(vUserFk INT, vDated DATE,vTabletFk VARCHAR(100))
proc: BEGIN
@@ -72063,6 +71245,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `tpvTransaction_checkStatus` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -72070,8 +71254,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `tpvTransaction_checkStatus`()
BEGIN
@@ -72101,6 +71283,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `travelVolume` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -72108,8 +71292,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `travelVolume`(vTravelFk INT)
BEGIN
@@ -72121,7 +71303,7 @@ BEGIN
a.name Agencia,
s.name Proveedor,
e.id Id_Entrada,
- e.REF Referencia,
+ e.invoiceNumber Referencia,
CAST(ROUND(SUM(GREATEST(b.stickers ,b.quantity /b.packing ) *
vn.item_getVolume(b.itemFk ,b.packageFk)) / vc.trolleyM3 / 1000000 ,1) AS DECIMAL(10,2)) AS CC,
CAST(ROUND(SUM(GREATEST(b.stickers ,b.quantity /b.packing ) *
@@ -72144,6 +71326,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `travelVolume_get` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -72151,8 +71335,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `travelVolume_get`(vFromDated DATE, vToDated DATE, vWarehouseFk INT)
BEGIN
@@ -72174,6 +71356,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `travel_checkDates` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -72181,8 +71365,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `travel_checkDates`(vShipped DATE, vLanded DATE)
BEGIN
@@ -72204,6 +71386,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `travel_clone` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -72211,8 +71395,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `travel_clone`(vSelf INT, vDays INT, OUT vNewTravelFk INT)
BEGIN
@@ -72263,6 +71445,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `travel_cloneWithEntries` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -72270,8 +71454,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `travel_cloneWithEntries`(
IN vTravelFk INT,
@@ -72329,7 +71511,7 @@ BEGIN
WHILE NOT vDone DO
INSERT INTO entry (
supplierFk,
- ref,
+ invoiceNumber,
isExcludedFromAvailable,
isConfirmed,
isOrdered,
@@ -72343,7 +71525,7 @@ BEGIN
gestDocFk,
invoiceInFk)
SELECT supplierFk,
- ref,
+ invoiceNumber,
isExcludedFromAvailable,
isConfirmed,
isOrdered,
@@ -72380,10 +71562,10 @@ BEGIN
price2,
price3,
minPrice,
- producer,
printedStickers,
isChecked,
- weight)
+ weight,
+ itemOriginalFk)
SELECT vEntryNew,
itemFk,
quantity,
@@ -72401,10 +71583,10 @@ BEGIN
price2,
price3,
minPrice,
- producer,
printedStickers,
isChecked,
- weight
+ weight,
+ itemOriginalFk
FROM buy
WHERE entryFk = vAuxEntryFk;
@@ -72419,6 +71601,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `travel_doRecalc` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -72426,8 +71610,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `travel_doRecalc`()
BEGIN
@@ -72472,6 +71654,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `travel_moveRaids` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -72479,8 +71663,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `travel_moveRaids`()
BEGIN
@@ -72561,6 +71743,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `travel_requestRecalc` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -72568,8 +71752,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `travel_requestRecalc`(vSelf INT)
proc: BEGIN
@@ -72589,6 +71771,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `travel_weeklyClone` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -72596,8 +71780,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `travel_weeklyClone`(vSinceWeek INT, vToWeek INT)
BEGIN
@@ -72665,6 +71847,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `typeTagMake` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -72672,8 +71856,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `typeTagMake`(vTypeFk INT)
BEGIN
@@ -72736,6 +71918,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `updatePedidosInternos` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -72743,8 +71927,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `updatePedidosInternos`(vItemFk INT)
BEGIN
@@ -72758,6 +71940,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `visible_getMisfit` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -72765,8 +71949,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `visible_getMisfit`(vSectorFk INT)
BEGIN
@@ -72817,6 +71999,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `warehouseFitting` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -72824,8 +72008,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `warehouseFitting`(IN vWhOrigin INT , IN vWhDestiny INT)
BEGIN
@@ -72855,6 +72037,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `warehouseFitting_byTravel` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -72862,8 +72046,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `warehouseFitting_byTravel`(IN vTravelFk INT)
BEGIN
@@ -72883,6 +72065,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerCalculateBoss` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -72890,8 +72074,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerCalculateBoss`(vWorker INT)
BEGIN
@@ -72924,6 +72106,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerCalendar_calculateBusiness` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -72931,8 +72115,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerCalendar_calculateBusiness`(vYear INT, vBusinessFk INT)
BEGIN
@@ -72996,6 +72178,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerCalendar_calculateYear` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -73003,8 +72187,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerCalendar_calculateYear`(vYear INT, vWorkerFk INT)
BEGIN
@@ -73068,6 +72250,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerCreate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -73075,8 +72259,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerCreate`(
vFirstname VARCHAR(50),
@@ -73100,6 +72282,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerCreateExternal` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -73107,8 +72291,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerCreateExternal`(
vFirstName VARCHAR(50),
@@ -73143,6 +72325,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerDepartmentByDate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -73150,8 +72334,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerDepartmentByDate`(vDate DATE)
BEGIN
@@ -73180,6 +72362,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerDisable` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -73187,8 +72371,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection = utf8mb3_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerDisable`(vUserId int)
mainLabel:BEGIN
@@ -73220,6 +72402,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerDisableAll` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -73227,8 +72411,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerDisableAll`()
BEGIN
@@ -73236,27 +72418,18 @@ BEGIN
DECLARE vUserFk INT;
DECLARE rs CURSOR FOR
- SELECT DISTINCT a.id
- FROM vn.business b
- LEFT JOIN(SELECT DISTINCT workerFk
- FROM business b
- WHERE ended IS NULL
- OR ended >= util.VN_CURDATE()
- )sub ON sub.workerFk = b.workerFk
+ SELECT b.workerFk
+ FROM business b
+ JOIN vn.worker w ON w.id = b.workerFk
JOIN account.account a ON a.id = b.workerFk
+ LEFT JOIN (SELECT b.workerFk
+ FROM business b
+ WHERE (ended IS NULL OR ended >=util.VN_CURDATE())
+ )sub ON sub.workerFk = a.id
+ LEFT JOIN vn.workerDisableExcluded wd ON wd.workerFk = b.workerFk
WHERE sub.workerFk IS NULL
- AND b.ended BETWEEN TIMESTAMPADD(DAY, -70, util.VN_CURDATE()) AND util.VN_CURDATE();
-
-/* SELECT DISTINCT b.workerFk
- FROM business b
- JOIN account.account a ON a.id = b.workerFk
- LEFT JOIN (
- SELECT DISTINCT workerFk
- FROM business
- WHERE IFNULL(ended, util.VN_CURDATE())>=util.VN_CURDATE()
- )sub ON sub.workerFk = a.id
- WHERE sub.workerFk IS NULL
-*/
+ AND wd.workerFk IS NULL
+ GROUP BY w.id;
DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE;
@@ -73278,6 +72451,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerForAllCalculateBoss` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -73285,8 +72460,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerForAllCalculateBoss`()
BEGIN
@@ -73324,6 +72497,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerJourney_replace` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -73331,8 +72506,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerJourney_replace`(
vDatedFrom DATE,
@@ -73647,6 +72820,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerMistakeType_get` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -73654,8 +72829,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerMistakeType_get`()
BEGIN
@@ -73674,6 +72847,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerMistake_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -73681,8 +72856,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerMistake_add`(vWorkerFk INT, vWorkerMistakeTypeFk VARCHAR(10), vUserFk INT )
BEGIN
@@ -73712,6 +72885,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerShelving_Add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -73719,8 +72894,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerShelving_Add`(vWorkerFk INT, vBarcode VARCHAR(12))
BEGIN
@@ -73751,6 +72924,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerShelving_delete` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -73758,8 +72933,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerShelving_delete`(vWorkerFk INT, vBarcode VARCHAR(12))
BEGIN
@@ -73794,6 +72967,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerTimeControlAdd` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -73801,8 +72976,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerTimeControlAdd`(IN vUserFk INT, IN vWarehouseFk INT, IN vDated DATETIME)
BEGIN
@@ -73821,6 +72994,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerTimeControlPinGenerate` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -73828,8 +73003,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerTimeControlPinGenerate`(
vWorkerFk INT)
@@ -73847,6 +73020,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerTimeControlSetOrder` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -73854,8 +73029,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerTimeControlSetOrder`()
BEGIN
@@ -73876,6 +73049,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerTimeControlSetOrder_by_User_and_dateRange` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -73883,8 +73058,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerTimeControlSetOrder_by_User_and_dateRange`(vUserFk INT, vStarted DATE, vFinished DATE)
BEGIN
@@ -73904,6 +73077,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerTimeControlSOWP` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -73911,8 +73086,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerTimeControlSOWP`(IN vUserFk INT, IN vDated DATE)
BEGIN
@@ -73930,6 +73103,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerTimeControl_add` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -73937,8 +73112,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerTimeControl_add`(IN vUserFk INT, IN vWarehouseFk INT, IN vTimed DATETIME, IN vIsManual BOOL)
BEGIN
@@ -73951,6 +73124,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerTimeControl_calculateOddDays` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -73958,8 +73133,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerTimeControl_calculateOddDays`()
BEGIN
@@ -73999,6 +73172,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerTimeControl_check` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -74006,8 +73181,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerTimeControl_check`(vUserFk INT, vDated DATE,vTabletFk VARCHAR(100))
proc: BEGIN
@@ -74180,6 +73353,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerTimeControl_checkBreak` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -74187,8 +73362,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerTimeControl_checkBreak`(vStarted DATE)
BEGIN
@@ -74347,6 +73520,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerTimeControl_clockIn` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -74354,8 +73529,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerTimeControl_clockIn`(
vWorker INT,
@@ -74691,6 +73864,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerTimeControl_direction` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -74698,8 +73873,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_general_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerTimeControl_direction`(vWorkerFk VARCHAR(10), vTimed DATETIME)
BEGIN
@@ -74765,6 +73938,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerTimeControl_getClockIn` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -74772,8 +73947,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerTimeControl_getClockIn`(
vUserFk INT,
@@ -74856,6 +74029,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerTimeControl_login` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -74863,8 +74038,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerTimeControl_login`(vWorkerFk VARCHAR(10))
BEGIN
@@ -74895,6 +74068,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerTimeControl_remove` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -74902,8 +74077,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerTimeControl_remove`(IN vUserFk INT, IN vTimed DATETIME)
BEGIN
@@ -74957,6 +74130,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerTimeControl_repair` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -74964,8 +74139,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerTimeControl_repair`()
proc: BEGIN
@@ -75009,6 +74182,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerTimeControl_sendMail` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -75016,8 +74191,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerTimeControl_sendMail`(vWeek INT, vYear INT, vWorkerFk INT)
BEGIN
@@ -75069,12 +74242,12 @@ BEGIN
tb.permissionRate,
d.isTeleworking
FROM tmp.timeBusinessCalculate tb
- JOIN user u ON u.id = tb.userFk
+ JOIN account.user u ON u.id = tb.userFk
JOIN department d ON d.id = tb.departmentFk
JOIN business b ON b.id = tb.businessFk
LEFT JOIN tmp.timeControlCalculate tc ON tc.userFk = tb.userFk AND tc.dated = tb.dated
LEFT JOIN worker w ON w.id = u.id
- LEFT JOIN `user` u2 ON u2.id = w.bossFk
+ LEFT JOIN account.`user` u2 ON u2.id = w.bossFk
JOIN (SELECT tb.userFk,
SUM(IF(tb.type IS NULL,
IF(tc.timeWorkDecimal > 0, FALSE, IF(tb.timeWorkDecimal > 0, TRUE, FALSE)),
@@ -75314,7 +74487,7 @@ proc: LOOP
CONCAT('No se ha podido enviar el registro de horas al empleado/s: ', GROUP_CONCAT(DISTINCT CONCAT(' ', w.id, ' ', w.firstName, ' ', w.lastName)))
FROM tmp.error e
JOIN worker w ON w.id = e.workerFk
- JOIN user u ON u.id = w.bossFk
+ JOIN account.user u ON u.id = w.bossFk
GROUP BY w.bossFk;
DROP TABLE tmp.timeControlCalculate;
@@ -75328,6 +74501,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerTimeControl_sendMailByDepartment` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -75335,8 +74510,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerTimeControl_sendMailByDepartment`(IN vDatedFrom DATETIME, IN vDatedTo DATETIME, IN vWorkerFk INT)
BEGIN
@@ -75470,6 +74643,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerTimeControl_sendMailByDepartmentLauncher` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -75477,8 +74652,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerTimeControl_sendMailByDepartmentLauncher`()
BEGIN
@@ -75495,6 +74668,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerTimeControl_setOrder` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -75502,8 +74677,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerTimeControl_setOrder`(vUserFk INT, vStarted DATE, vFinished DATE)
BEGIN
@@ -75523,6 +74696,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerTimeControl_weekCheckBreak` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -75530,8 +74705,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerTimeControl_weekCheckBreak`(vStarted DATE, vEnded DATE)
BEGIN
@@ -75572,6 +74745,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerWeekControl` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -75579,8 +74754,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerWeekControl`(vUserFk INT, vDated DATE, vTabletFk VARCHAR(100))
BEGIN
@@ -75718,6 +74891,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workerWeekTiming` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -75725,8 +74900,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workerWeekTiming`(vUserFk INT, vDated DATE)
BEGIN
@@ -75822,6 +74995,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `worker_calculateCommission` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -75829,8 +75004,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `worker_calculateCommission`(vYear INT, vQuarter INT)
BEGIN
@@ -75961,6 +75134,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `worker_getFromHasMistake` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -75968,8 +75143,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `worker_getFromHasMistake`(vDepartmentFk INT)
BEGIN
@@ -75993,6 +75166,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `worker_getHierarchy` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -76000,8 +75175,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `worker_getHierarchy`(vBoss INT)
BEGIN
@@ -76049,6 +75222,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `worker_getSector` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -76056,8 +75231,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `worker_getSector`()
BEGIN
@@ -76077,6 +75250,34 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+/*!50003 DROP PROCEDURE IF EXISTS `worker_updateBalance` */;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+DELIMITER ;;
+CREATE DEFINER=`root`@`localhost` PROCEDURE `worker_updateBalance`(vSelfFk INT(11), vCredit DECIMAL(10,2), vDebit DECIMAL(10,2))
+BEGIN
+/**
+ * Actualiza la columna balance de worker.
+ *
+ * @param selfFk, credit, debit
+ */
+ UPDATE worker
+ SET balance = balance + (IFNULL(vCredit, 0) - IFNULL(vDebit, 0))
+ WHERE id = vSelfFk;
+END ;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `worker_updateBusiness` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -76084,8 +75285,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `worker_updateBusiness`(vSelf INT)
BEGIN
@@ -76105,6 +75304,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `worker_updateChangedBusiness` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -76112,8 +75313,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `worker_updateChangedBusiness`()
BEGIN
@@ -76158,6 +75357,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `worker_updateSector` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -76165,28 +75366,28 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `worker_updateSector`(vSectorFk INT)
BEGIN
/**
- * ACtualiza el sector del usuario conectado
+ * Actualiza el sector del usuario conectado y borra la impresora asociada al usuario
*
* @param vSectorFk id del sector
*/
UPDATE worker
- SET sectorFk = vSectorFk
+ SET sectorFk = vSectorFk,
+ labelerFk = NULL
WHERE id = account.myUser_getId();
-
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workingHours` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -76194,8 +75395,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workingHours`(username varchar(255), logon boolean)
BEGIN
@@ -76216,6 +75415,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workingHoursTimeIn` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -76223,8 +75424,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workingHoursTimeIn`(vUserId INT(11))
BEGIN
@@ -76236,6 +75435,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `workingHoursTimeOut` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -76243,8 +75444,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `workingHoursTimeOut`(vUserId INT(11))
BEGIN
@@ -76258,6 +75457,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `wrongEqualizatedClient` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -76265,8 +75466,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `wrongEqualizatedClient`()
BEGIN
@@ -76298,6 +75497,45 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
+/*!50003 DROP PROCEDURE IF EXISTS `XDiario_checkDate` */;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb4 */ ;
+/*!50003 SET character_set_results = utf8mb4 */ ;
+/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
+DELIMITER ;;
+CREATE DEFINER=`root`@`localhost` PROCEDURE `XDiario_checkDate`(vDate DATE)
+proc: BEGIN
+/**
+ * Comprueba si la fecha pasada esta en el rango
+ * de fecha de contabilidad
+ *
+ * @param vDate Fecha para comparar
+ */
+ DECLARE vIsInvalid BOOL;
+
+ IF vDate IS NULL THEN
+ LEAVE proc;
+ END IF;
+
+ SELECT COUNT(*) = 0 INTO vIsInvalid
+ FROM accountingConfig
+ WHERE vDate BETWEEN minDate AND maxDate;
+
+ IF vIsInvalid THEN
+ CALL util.throw ('Fecha fuera de rango');
+ END IF;
+END ;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `zoneClosure_recalc` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -76305,8 +75543,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `zoneClosure_recalc`()
proc: BEGIN
@@ -76358,6 +75594,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `zoneGeo_calcTree` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -76365,8 +75603,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `zoneGeo_calcTree`()
BEGIN
@@ -76402,6 +75638,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `zoneGeo_calcTreeRec` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -76409,8 +75647,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `zoneGeo_calcTreeRec`(
vSelf INT,
@@ -76484,6 +75720,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `zoneGeo_checkName` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -76491,8 +75729,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `zoneGeo_checkName`(vName VARCHAR(255))
BEGIN
@@ -76506,6 +75742,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `zoneGeo_delete` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -76513,8 +75751,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `zoneGeo_delete`(vSelf INT)
BEGIN
@@ -76532,6 +75768,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `zoneGeo_doCalc` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -76539,8 +75777,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `zoneGeo_doCalc`()
proc: BEGIN
@@ -76574,6 +75810,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `zoneGeo_setParent` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -76581,8 +75819,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `zoneGeo_setParent`(vSelf INT, vParentFk INT)
BEGIN
@@ -76603,6 +75839,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `zoneGeo_throwNotEditable` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -76610,8 +75848,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `zoneGeo_throwNotEditable`()
BEGIN
@@ -76623,6 +75859,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `zone_excludeFromGeo` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -76630,8 +75868,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `zone_excludeFromGeo`(vZoneGeo INT)
BEGIN
@@ -76656,6 +75892,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `zone_getAgency` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -76663,8 +75901,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `zone_getAgency`(vAddress INT, vLanded DATE)
BEGIN
@@ -76678,6 +75914,7 @@ BEGIN
*/
CALL zone_getFromGeo(address_getGeo(vAddress));
CALL zone_getOptionsForLanding(vLanded, FALSE);
+ CALL vn.zone_excludeFromGeo(address_getGeo(vAddress));
DROP TEMPORARY TABLE IF EXISTS tmp.zoneGetAgency;
CREATE TEMPORARY TABLE tmp.zoneGetAgency
@@ -76704,6 +75941,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `zone_getAvailable` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -76711,8 +75950,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `zone_getAvailable`(vAddress INT, vLanded DATE)
BEGIN
@@ -76730,6 +75967,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `zone_getClosed` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -76737,8 +75976,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `zone_getClosed`()
proc:BEGIN
@@ -76777,6 +76014,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `zone_getCollisions` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -76784,8 +76023,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `zone_getCollisions`()
BEGIN
@@ -76915,6 +76152,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `zone_getEvents` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -76922,8 +76161,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `zone_getEvents`(
vGeoFk INT,
@@ -76992,6 +76229,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `zone_getFromGeo` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -76999,8 +76238,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `zone_getFromGeo`(vGeoFk INT)
BEGIN
@@ -77061,6 +76298,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `zone_getLanded` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -77068,8 +76307,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `zone_getLanded`(vShipped DATE, vAddressFk INT, vAgencyModeFk INT, vWarehouseFk INT, vShowExpiredZones BOOLEAN)
BEGIN
@@ -77107,7 +76344,9 @@ BEGIN
AND zo.shipped = util.VN_CURDATE()
WHERE z.agencyModeFk = vAgencyModeFk
AND zw.warehouseFk = vWarehouseFk
- AND (ISNULL(cz.zoneFk) OR vShowExpiredZones);
+ AND (ISNULL(cz.zoneFk) OR vShowExpiredZones)
+ ORDER BY z.price DESC, zo.zoneFk
+ LIMIT 1;
DROP TEMPORARY TABLE
tmp.`zone`,
@@ -77119,6 +76358,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `zone_getLeaves` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -77126,8 +76367,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `zone_getLeaves`(vSelf INT, vParentFk INT, vSearch VARCHAR(255))
BEGIN
@@ -77228,6 +76467,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `zone_getLeaves2` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -77235,8 +76476,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `zone_getLeaves2`(vSelf INT, vParentFk INT, vSearch VARCHAR(255))
BEGIN
@@ -77345,6 +76584,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `zone_getOptionsForLanding` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -77352,8 +76593,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `zone_getOptionsForLanding`(vLanded DATE, vShowExpiredZones BOOLEAN)
BEGIN
@@ -77422,6 +76661,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `zone_getOptionsForShipment` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -77429,8 +76670,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `zone_getOptionsForShipment`(vShipped DATE, vShowExpiredZones BOOLEAN)
BEGIN
@@ -77510,6 +76749,72 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
+/*!50003 DROP PROCEDURE IF EXISTS `zone_getPostalCode` */;
+/*!50003 SET @saved_cs_client = @@character_set_client */ ;
+/*!50003 SET @saved_cs_results = @@character_set_results */ ;
+/*!50003 SET @saved_col_connection = @@collation_connection */ ;
+/*!50003 SET character_set_client = utf8mb3 */ ;
+/*!50003 SET character_set_results = utf8mb3 */ ;
+/*!50003 SET collation_connection = utf8mb3_general_ci */ ;
+DELIMITER ;;
+CREATE DEFINER=`root`@`localhost` PROCEDURE `zone_getPostalCode`(vSelf INT)
+BEGIN
+/**
+ * Devuelve los códigos postales incluidos en una zona
+ */
+ DECLARE vGeoFk INT DEFAULT NULL;
+
+ DROP TEMPORARY TABLE IF EXISTS tmp.zoneNodes;
+ CREATE TEMPORARY TABLE tmp.zoneNodes (
+ geoFk INT,
+ name VARCHAR(100),
+ parentFk INT,
+ sons INT,
+ isChecked BOOL DEFAULT 0,
+ zoneFk INT,
+ PRIMARY KEY zoneNodesPk (zoneFk, geoFk),
+ INDEX(geoFk))
+ ENGINE = MEMORY;
+
+ CALL zone_getLeaves2(vSelf, NULL , NULL);
+
+ UPDATE tmp.zoneNodes zn
+ SET isChecked = 0
+ WHERE parentFk IS NULL;
+
+ myLoop: LOOP
+ SET vGeoFk = NULL;
+ SELECT geoFk INTO vGeoFk
+ FROM tmp.zoneNodes zn
+ WHERE NOT isChecked
+ LIMIT 1;
+
+ CALL zone_getLeaves2(vSelf, vGeoFk, NULL);
+ UPDATE tmp.zoneNodes
+ SET isChecked = TRUE
+ WHERE geoFk = vGeoFk;
+
+ IF vGeoFk IS NULL THEN
+ LEAVE myLoop;
+ END IF;
+ END LOOP;
+
+ DELETE FROM tmp.zoneNodes
+ WHERE sons > 0;
+
+ SELECT zn.geoFk, zn.name
+ FROM tmp.zoneNodes zn
+ JOIN zone z ON z.id = zn.zoneFk;
+END ;;
+DELIMITER ;
+/*!50003 SET sql_mode = @saved_sql_mode */ ;
+/*!50003 SET character_set_client = @saved_cs_client */ ;
+/*!50003 SET character_set_results = @saved_cs_results */ ;
+/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `zone_getShipped` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -77517,8 +76822,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `zone_getShipped`(vLanded DATE, vAddressFk INT, vAgencyModeFk INT, vShowExpiredZones BOOLEAN)
BEGIN
@@ -77574,6 +76877,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `zone_getState` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -77581,8 +76886,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `zone_getState`(vDated DATE)
BEGIN
@@ -77629,6 +76932,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `zone_getWarehouse` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -77636,8 +76941,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `zone_getWarehouse`(vAddress INT, vLanded DATE, vWarehouse INT)
BEGIN
@@ -77679,6 +76982,8 @@ DELIMITER ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `zone_upcomingDeliveries` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -77686,8 +76991,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `zone_upcomingDeliveries`()
BEGIN
@@ -77765,6 +77068,9 @@ BEGIN
DROP TEMPORARY TABLE tmp.time, tLandings;
END ;;
DELIMITER ;
+
+
+
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
@@ -77779,18 +77085,17 @@ CREATE DATABASE /*!32312 IF NOT EXISTS*/ `vncontrol` /*!40100 DEFAULT CHARACTER
USE `vncontrol`;
--
--- Table structure for table `accion`
+-- Temporary table structure for view `accion`
--
DROP TABLE IF EXISTS `accion`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `accion` (
- `accion_id` int(11) NOT NULL AUTO_INCREMENT,
- `accion` varchar(15) COLLATE utf8mb3_unicode_ci NOT NULL,
- PRIMARY KEY (`accion_id`)
-) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
+/*!50001 DROP VIEW IF EXISTS `accion`*/;
+SET @saved_cs_client = @@character_set_client;
+SET character_set_client = utf8;
+/*!50001 CREATE VIEW `accion` AS SELECT
+ 1 AS `accion_id`,
+ 1 AS `accion` */;
+SET character_set_client = @saved_cs_client;
--
-- Table structure for table `fallo__`
@@ -77805,186 +77110,28 @@ CREATE TABLE `fallo__` (
PRIMARY KEY (`queja_id`,`accion_id`),
KEY `accion` (`accion_id`,`queja_id`),
KEY `fallo` (`queja_id`),
- CONSTRAINT `accion` FOREIGN KEY (`accion_id`) REFERENCES `accion` (`accion_id`) ON UPDATE CASCADE
+ CONSTRAINT `accion` FOREIGN KEY (`accion_id`) REFERENCES `vn`.`ticketTrackingState` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
--- Table structure for table `inter`
+-- Temporary table structure for view `inter`
--
DROP TABLE IF EXISTS `inter`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `inter` (
- `inter_id` int(11) NOT NULL AUTO_INCREMENT,
- `state_id` tinyint(3) unsigned NOT NULL,
- `fallo_id` int(10) unsigned NOT NULL DEFAULT 21,
- `nota` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
- `odbc_date` timestamp NULL DEFAULT current_timestamp(),
- `Id_Ticket` int(11) DEFAULT NULL,
- `Id_Trabajador` int(11) DEFAULT NULL,
- `Id_Supervisor` int(10) unsigned DEFAULT NULL,
- PRIMARY KEY (`inter_id`),
- KEY `currante` (`Id_Trabajador`),
- KEY `responsable` (`Id_Supervisor`),
- KEY `ticket` (`Id_Ticket`),
- KEY `inter_state` (`state_id`),
- KEY `inter_id` (`Id_Ticket`,`inter_id`) USING BTREE,
- CONSTRAINT `inter_ibfk_1` FOREIGN KEY (`Id_Ticket`) REFERENCES `vn`.`ticket` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT `inter_state` FOREIGN KEY (`state_id`) REFERENCES `vn`.`state` (`id`) ON UPDATE CASCADE,
- CONSTRAINT `responsable` FOREIGN KEY (`Id_Supervisor`) REFERENCES `vn`.`worker` (`id`) ON UPDATE CASCADE
-) ENGINE=InnoDBDEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
-/*!40101 SET character_set_client = @saved_cs_client */;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `vncontrol`.`ticketTracking_beforeInsert`
- BEFORE INSERT ON `inter`
- FOR EACH ROW
-BEGIN
- DECLARE vState VARCHAR(15);
- DECLARE vZoneFk INT;
- DECLARE vHasStowAway BOOLEAN;
- DECLARE vBoardingStateFk INT;
-
- SELECT s.code INTO vState
- FROM vn.state s
- WHERE s.id = NEW.state_id;
-
- SELECT t.zonefk INTO vZoneFk
- FROM vn.ticket t
- WHERE t.id = NEW.Id_Ticket;
-
- IF vState = 'OK' AND vZoneFk IS NULL THEN
- CALL util.throw("ASSIGN_ZONE_FIRST");
- END IF;
-
-END */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `vncontrol`.`ticketTracking_afterInsert`
- AFTER INSERT ON `inter`
- FOR EACH ROW
-BEGIN
-
- DECLARE vNumTicketsPrepared INT;
-
- REPLACE vn.ticketLastState(ticketFk, ticketTrackingFk, name)
- SELECT NEW.Id_Ticket, NEW.inter_id, `name`
- FROM vn.state
- WHERE id = NEW.state_id;
-
-
-END */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `vncontrol`.`ticketTracking_afterUpdate`
- AFTER UPDATE ON `inter`
- FOR EACH ROW
-BEGIN
- DECLARE vTicketFk INT;
- DECLARE vTicketTrackingFk INT;
- DECLARE vStateName VARCHAR(15);
-
- IF NEW.state_id <> OLD.state_id THEN
- REPLACE vn.ticketLastState(ticketFk, ticketTrackingFk, name)
- SELECT NEW.Id_Ticket, NEW.inter_id, `name`
- FROM vn.state
- WHERE id = NEW.state_id;
- END IF;
-
- IF NEW.Id_Ticket <> OLD.Id_Ticket THEN
- SELECT i.Id_Ticket, i.inter_id, s.`name`
- INTO vTicketFk, vTicketTrackingFk, vStateName
- FROM vncontrol.inter i
- JOIN vn.state s ON i.state_id = s.id
- WHERE Id_Ticket = NEW.Id_Ticket
- ORDER BY odbc_date DESC
- LIMIT 1;
-
- IF vTicketFk > 0 THEN
- REPLACE INTO vn.ticketLastState(ticketFk, ticketTrackingFk,name)
- VALUES(vTicketFk, vTicketTrackingFk, vStateName);
- END IF;
- END IF;
-END */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
-/*!50003 SET @saved_cs_client = @@character_set_client */ ;
-/*!50003 SET @saved_cs_results = @@character_set_results */ ;
-/*!50003 SET @saved_col_connection = @@collation_connection */ ;
-/*!50003 SET character_set_client = utf8mb4 */ ;
-/*!50003 SET character_set_results = utf8mb4 */ ;
-/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
-DELIMITER ;;
-/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `vncontrol`.`ticketTracking_afterDelete`
- AFTER DELETE ON `inter`
- FOR EACH ROW
-BEGIN
- DECLARE vTicketFk INT;
- DECLARE vTicketTrackingFk INT;
- DECLARE vStateName VARCHAR(15);
-
- DECLARE CONTINUE HANDLER FOR SQLSTATE '23000'
- BEGIN
- DELETE FROM vn.ticketLastState
- WHERE ticketFk = OLD.Id_Ticket;
- END;
-
- SELECT i.Id_Ticket, i.inter_id, s.`name`
- INTO vTicketFk, vTicketTrackingFk, vStateName
- FROM vncontrol.inter i
- JOIN vn.state s ON i.state_id = s.id
- WHERE Id_Ticket = OLD.Id_Ticket
- ORDER BY odbc_date DESC
- LIMIT 1;
-
- IF vTicketFk > 0 THEN
- REPLACE INTO vn.ticketLastState(ticketFk, ticketTrackingFk,name)
- VALUES(vTicketFk, vTicketTrackingFk, vStateName);
- END IF;
-END */;;
-DELIMITER ;
-/*!50003 SET sql_mode = @saved_sql_mode */ ;
-/*!50003 SET character_set_client = @saved_cs_client */ ;
-/*!50003 SET character_set_results = @saved_cs_results */ ;
-/*!50003 SET collation_connection = @saved_col_connection */ ;
+/*!50001 DROP VIEW IF EXISTS `inter`*/;
+SET @saved_cs_client = @@character_set_client;
+SET character_set_client = utf8;
+/*!50001 CREATE VIEW `inter` AS SELECT
+ 1 AS `inter_id`,
+ 1 AS `state_id`,
+ 1 AS `fallo_id`,
+ 1 AS `nota`,
+ 1 AS `odbc_date`,
+ 1 AS `Id_Ticket`,
+ 1 AS `Id_Trabajador`,
+ 1 AS `Id_Supervisor` */;
+SET character_set_client = @saved_cs_client;
--
-- Dumping events for database 'vncontrol'
@@ -77993,6 +77140,8 @@ DELIMITER ;
--
-- Dumping routines for database 'vncontrol'
--
+/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
+/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
/*!50003 DROP PROCEDURE IF EXISTS `clean` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
@@ -78000,8 +77149,6 @@ DELIMITER ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_unicode_ci */ ;
-/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
-/*!50003 SET sql_mode = 'IGNORE_SPACE,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `clean`()
BEGIN
@@ -78018,6 +77165,14 @@ DELIMITER ;
--
-- Current Database: `account`
--
+-- Fix strucuture
+
+DROP TABLE IF EXISTS `vn`.`zipConfig`;
+CREATE TABLE `vn`.`zipConfig` (
+ `id` double(10,2) NOT NULL,
+ `maxSize` int(11) DEFAULT NULL COMMENT 'in MegaBytes',
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
USE `account`;
@@ -78025,7 +77180,6 @@ USE `account`;
-- Final view structure for view `accountDovecot`
--
-/*!50001 DROP TABLE IF EXISTS `accountDovecot`*/;
/*!50001 DROP VIEW IF EXISTS `accountDovecot`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78035,7 +77189,7 @@ USE `account`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `accountDovecot` AS select `u`.`name` AS `name`,`u`.`password` AS `password` from (`user` `u` join `account` `a` on(`a`.`id` = `u`.`id`)) where `u`.`active` <> 0 */;
+/*!50001 VIEW `accountDovecot` AS select `u`.`name` AS `name`,`u`.`bcryptPassword` AS `password` from (`user` `u` join `account` `a` on(`a`.`id` = `u`.`id`)) where `u`.`active` <> 0 */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -78044,7 +77198,6 @@ USE `account`;
-- Final view structure for view `emailUser`
--
-/*!50001 DROP TABLE IF EXISTS `emailUser`*/;
/*!50001 DROP VIEW IF EXISTS `emailUser`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78063,7 +77216,6 @@ USE `account`;
-- Final view structure for view `myRole`
--
-/*!50001 DROP TABLE IF EXISTS `myRole`*/;
/*!50001 DROP VIEW IF EXISTS `myRole`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78082,7 +77234,6 @@ USE `account`;
-- Final view structure for view `myUser`
--
-/*!50001 DROP TABLE IF EXISTS `myUser`*/;
/*!50001 DROP VIEW IF EXISTS `myUser`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78108,7 +77259,6 @@ USE `bs`;
-- Final view structure for view `bajasLaborales`
--
-/*!50001 DROP TABLE IF EXISTS `bajasLaborales`*/;
/*!50001 DROP VIEW IF EXISTS `bajasLaborales`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78118,7 +77268,7 @@ USE `bs`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `bajasLaborales` AS select `w`.`firstName` AS `firstname`,`w`.`lastName` AS `name`,`b`.`id` AS `businessFk`,max(`ce`.`date`) AS `lastDate`,max(ifnull(`b`.`ended`,util.VN_CURDATE())) AS `endContract`,`at`.`name` AS `type`,cast(count(0) as decimal(10,0)) AS `dias`,`w`.`id` AS `userFk` from (((`postgresql`.`calendar_employee` `ce` join `vn`.`business` `b` on(`b`.`id` = `ce`.`businessFk`)) join `vn`.`worker` `w` on(`w`.`id` = `b`.`workerFk`)) join `vn`.`absenceType` `at` on(`at`.`id` = `ce`.`calendar_state_id`)) where `ce`.`date` >= util.VN_CURDATE() + interval -1 year and `at`.`name` not in ('Vacaciones','Vacaciones 1/2 día','Compensar','Festivo') group by `w`.`firstName`,`w`.`lastName`,`at`.`name` having `endContract` >= util.VN_CURDATE() */;
+/*!50001 VIEW `bajasLaborales` AS select `w`.`firstName` AS `firstname`,`w`.`lastName` AS `name`,`b`.`id` AS `businessFk`,max(`ce`.`date`) AS `lastDate`,max(ifnull(`b`.`ended`,util.VN_CURDATE())) AS `endContract`,`at`.`name` AS `type`,cast(count(0) as decimal(10,0)) AS `dias`,`w`.`id` AS `userFk` from (((`postgresql`.`calendar_employee` `ce` join `vn`.`business` `b` on(`b`.`id` = `ce`.`businessFk`)) join `vn`.`worker` `w` on(`w`.`id` = `b`.`workerFk`)) join `vn`.`absenceType` `at` on(`at`.`id` = `ce`.`calendar_state_id`)) where `ce`.`date` >= util.VN_CURDATE() + interval -1 year and `at`.`name` not in ('Vacaciones','Vacaciones 1/2 día','Compensar','Festivo') group by `w`.`id`,`at`.`id` having `endContract` >= util.VN_CURDATE() */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -78127,7 +77277,6 @@ USE `bs`;
-- Final view structure for view `lastIndicators`
--
-/*!50001 DROP TABLE IF EXISTS `lastIndicators`*/;
/*!50001 DROP VIEW IF EXISTS `lastIndicators`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78137,7 +77286,7 @@ USE `bs`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `lastIndicators` AS select `i`.`updated` AS `updated`,`i`.`lastYearSales` AS `lastYearSales`,`i`.`lastYearSales` - `yi`.`lastYearSales` AS `incLastYearSales`,`i`.`totalGreuge` AS `totalGreuge`,`i`.`totalGreuge` - `yi`.`totalGreuge` AS `incTotalGreuge`,`i`.`latePaymentRate` AS `latePaymentRate`,`i`.`latePaymentRate` - `yi`.`latePaymentRate` AS `incLatePaymentRate`,`i`.`countEmployee` AS `countEmployee`,`i`.`countEmployee` - `yi`.`countEmployee` AS `incCountEmployee`,`i`.`averageMana` AS `averageMana`,`i`.`averageMana` - `yi`.`averageMana` AS `incAverageMana`,`i`.`bankingPool` AS `bankingPool`,`i`.`bankingPool` - `yi`.`bankingPool` AS `incbankingPool`,`i`.`lastMonthActiveClients` AS `lastMonthActiveClients`,`i`.`lastMonthActiveClients` - `yi`.`lastMonthActiveClients` AS `incLastMonthActiveClients`,`i`.`lastMonthLostClients` AS `lastMonthLostClients`,`i`.`lastMonthLostClients` - `yi`.`lastMonthLostClients` AS `incLastMonthLostClients`,`i`.`lastMonthNewClients` AS `lastMonthNewClients`,`i`.`lastMonthNewClients` - `yi`.`lastMonthNewClients` AS `incLastMonthNewClients`,`i`.`lastMonthWebBuyingRate` AS `lastMonthWebBuyingRate`,`i`.`lastMonthWebBuyingRate` - `yi`.`lastMonthWebBuyingRate` AS `incLastMonthWebBuyingRate`,`i`.`productionHours__` AS `productionHours__`,`i`.`dailyWorkersCost__` AS `dailyWorkersCost__`,`i`.`volumeM3__` AS `volumeM3__`,`i`.`salesValue__` AS `salesValue__`,`i`.`valueM3__` AS `valueM3__`,`i`.`hoursM3__` AS `hoursM3__`,`i`.`workerCostM3__` AS `workerCostM3__`,`i`.`salesWorkersCostRate__` AS `salesWorkersCostRate__`,`i`.`thisWeekSales` AS `thisWeekSales`,`i`.`lastYearWeekSales` AS `lastYearWeekSales` from (`indicators` `i` join `indicators` `yi` on(`yi`.`updated` = (select max(`indicators`.`updated`) + interval -1 day from `indicators`))) where `i`.`updated` = (select max(`indicators`.`updated`) from `indicators`) */;
+/*!50001 VIEW `lastIndicators` AS select `i`.`updated` AS `updated`,`i`.`lastYearSales` AS `lastYearSales`,`i`.`lastYearSales` - `yi`.`lastYearSales` AS `incLastYearSales`,`i`.`totalGreuge` AS `totalGreuge`,`i`.`totalGreuge` - `yi`.`totalGreuge` AS `incTotalGreuge`,`i`.`latePaymentRate` AS `latePaymentRate`,`i`.`latePaymentRate` - `yi`.`latePaymentRate` AS `incLatePaymentRate`,`i`.`countEmployee` AS `countEmployee`,`i`.`countEmployee` - `yi`.`countEmployee` AS `incCountEmployee`,`i`.`averageMana` AS `averageMana`,`i`.`averageMana` - `yi`.`averageMana` AS `incAverageMana`,`i`.`bankingPool` AS `bankingPool`,`i`.`bankingPool` - `yi`.`bankingPool` AS `incbankingPool`,`i`.`lastMonthActiveClients` AS `lastMonthActiveClients`,`i`.`lastMonthActiveClients` - `yi`.`lastMonthActiveClients` AS `incLastMonthActiveClients`,`i`.`lastMonthLostClients` AS `lastMonthLostClients`,`i`.`lastMonthLostClients` - `yi`.`lastMonthLostClients` AS `incLastMonthLostClients`,`i`.`lastMonthNewClients` AS `lastMonthNewClients`,`i`.`lastMonthNewClients` - `yi`.`lastMonthNewClients` AS `incLastMonthNewClients`,`i`.`lastMonthWebBuyingRate` AS `lastMonthWebBuyingRate`,`i`.`lastMonthWebBuyingRate` - `yi`.`lastMonthWebBuyingRate` AS `incLastMonthWebBuyingRate`,`i`.`thisWeekSales` AS `thisWeekSales`,`i`.`lastYearWeekSales` AS `lastYearWeekSales` from (`indicators` `i` join `indicators` `yi` on(`yi`.`updated` = (select max(`indicators`.`updated`) + interval -1 day from `indicators`))) where `i`.`updated` = (select max(`indicators`.`updated`) from `indicators`) */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -78146,7 +77295,6 @@ USE `bs`;
-- Final view structure for view `packingSpeed`
--
-/*!50001 DROP TABLE IF EXISTS `packingSpeed`*/;
/*!50001 DROP VIEW IF EXISTS `packingSpeed`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78156,7 +77304,7 @@ USE `bs`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `packingSpeed` AS select hour(`e`.`created`) AS `hora`,minute(`e`.`created`) AS `minuto`,ifnull(`p`.`volume`,`p`.`width` * `p`.`height` * `p`.`depth`) AS `cm3`,`t`.`warehouseFk` AS `warehouse_id`,`e`.`created` AS `odbc_date` from ((`vn`.`expedition` `e` join `vn`.`packaging` `p` on(`p`.`id` = `e`.`packagingFk`)) join `vn`.`ticket` `t` on(`t`.`id` = `e`.`ticketFk`)) where `e`.`created` between `util`.`VN_CURDATE`() and `util`.`dayend`(`util`.`VN_CURDATE`()) */;
+/*!50001 VIEW `packingSpeed` AS select hour(`e`.`created`) AS `hora`,minute(`e`.`created`) AS `minuto`,ifnull(`p`.`volume`,`p`.`width` * `p`.`height` * `p`.`depth`) AS `cm3`,`t`.`warehouseFk` AS `warehouse_id`,`e`.`created` AS `odbc_date` from ((`vn`.`expedition` `e` join `vn`.`packaging` `p` on(`p`.`id` = `e`.`packagingFk`)) join `vn`.`ticket` `t` on(`t`.`id` = `e`.`ticketFk`)) where `e`.`created` between util.VN_CURDATE() and `util`.`dayend`(util.VN_CURDATE()) */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -78165,7 +77313,6 @@ USE `bs`;
-- Final view structure for view `s1_ticketDetail`
--
-/*!50001 DROP TABLE IF EXISTS `s1_ticketDetail`*/;
/*!50001 DROP VIEW IF EXISTS `s1_ticketDetail`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78184,7 +77331,6 @@ USE `bs`;
-- Final view structure for view `s21_saleDetail`
--
-/*!50001 DROP TABLE IF EXISTS `s21_saleDetail`*/;
/*!50001 DROP VIEW IF EXISTS `s21_saleDetail`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78203,7 +77349,6 @@ USE `bs`;
-- Final view structure for view `vendedores`
--
-/*!50001 DROP TABLE IF EXISTS `vendedores`*/;
/*!50001 DROP VIEW IF EXISTS `vendedores`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78222,7 +77367,6 @@ USE `bs`;
-- Final view structure for view `ventas`
--
-/*!50001 DROP TABLE IF EXISTS `ventas`*/;
/*!50001 DROP VIEW IF EXISTS `ventas`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78253,7 +77397,6 @@ USE `edi`;
-- Final view structure for view `ektRecent`
--
-/*!50001 DROP TABLE IF EXISTS `ektRecent`*/;
/*!50001 DROP VIEW IF EXISTS `ektRecent`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78263,7 +77406,7 @@ USE `edi`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `ektRecent` AS select `e`.`id` AS `id`,`e`.`barcode` AS `barcode`,`e`.`entryYear` AS `entryYear`,`e`.`batchNumber` AS `batchNumber`,`e`.`deliveryNumber` AS `deliveryNumber`,`e`.`vendorOrderNumber` AS `vendorOrderNumber`,`e`.`fec` AS `fec`,`e`.`hor` AS `hor`,`e`.`util.VN_NOW` AS `util.VN_NOW`,`e`.`ptj` AS `ptj`,`e`.`ref` AS `ref`,`e`.`item` AS `item`,`e`.`pac` AS `pac`,`e`.`qty` AS `qty`,`e`.`ori` AS `ori`,`e`.`cat` AS `cat`,`e`.`agj` AS `agj`,`e`.`kop` AS `kop`,`e`.`ptd` AS `ptd`,`e`.`sub` AS `sub`,`e`.`pro` AS `pro`,`e`.`pri` AS `pri`,`e`.`package` AS `package`,`e`.`auction` AS `auction`,`e`.`klo` AS `klo`,`e`.`k1` AS `k1`,`e`.`k2` AS `k2`,`e`.`k3` AS `k3`,`e`.`k4` AS `k4`,`e`.`s1` AS `s1`,`e`.`s2` AS `s2`,`e`.`s3` AS `s3`,`e`.`s4` AS `s4`,`e`.`s5` AS `s5`,`e`.`s6` AS `s6`,`e`.`ok` AS `ok`,`e`.`trolleyFk` AS `trolleyFk`,`e`.`putOrderFk` AS `putOrderFk`,`e`.`scanned` AS `scanned`,`e`.`cps` AS `cps`,`e`.`dp` AS `dp`,`e`.`sender` AS `sender`,`ec`.`usefulAuctionLeftSegmentLength` AS `usefulAuctionLeftSegmentLength`,`ec`.`standardBarcodeLength` AS `standardBarcodeLength`,`ec`.`floridayBarcodeLength` AS `floridayBarcodeLength`,`ec`.`floramondoBarcodeLength` AS `floramondoBarcodeLength`,`ec`.`defaultKlo` AS `defaultKlo`,`ec`.`ektRecentScopeDays` AS `ektRecentScopeDays` from (`ekt` `e` join `ektConfig` `ec`) where `e`.`entryYear` = year(`util`.`VN_CURDATE`()) and `e`.`fec` >= `util`.`VN_CURDATE`() + interval -`ec`.`ektRecentScopeDays` day */;
+/*!50001 VIEW `ektRecent` AS select `e`.`id` AS `id`,`e`.`barcode` AS `barcode`,`e`.`entryYear` AS `entryYear`,`e`.`batchNumber` AS `batchNumber`,`e`.`deliveryNumber` AS `deliveryNumber`,`e`.`vendorOrderNumber` AS `vendorOrderNumber`,`e`.`fec` AS `fec`,`e`.`hor` AS `hor`,`e`.`util.VN_NOW` AS `util.VN_NOW`,`e`.`ptj` AS `ptj`,`e`.`ref` AS `ref`,`e`.`item` AS `item`,`e`.`pac` AS `pac`,`e`.`qty` AS `qty`,`e`.`ori` AS `ori`,`e`.`cat` AS `cat`,`e`.`agj` AS `agj`,`e`.`kop` AS `kop`,`e`.`ptd` AS `ptd`,`e`.`sub` AS `sub`,`e`.`pro` AS `pro`,`e`.`pri` AS `pri`,`e`.`package` AS `package`,`e`.`auction` AS `auction`,`e`.`klo` AS `klo`,`e`.`k1` AS `k1`,`e`.`k2` AS `k2`,`e`.`k3` AS `k3`,`e`.`k4` AS `k4`,`e`.`s1` AS `s1`,`e`.`s2` AS `s2`,`e`.`s3` AS `s3`,`e`.`s4` AS `s4`,`e`.`s5` AS `s5`,`e`.`s6` AS `s6`,`e`.`ok` AS `ok`,`e`.`trolleyFk` AS `trolleyFk`,`e`.`putOrderFk` AS `putOrderFk`,`e`.`scanned` AS `scanned`,`e`.`cps` AS `cps`,`e`.`dp` AS `dp`,`e`.`sender` AS `sender`,`ec`.`usefulAuctionLeftSegmentLength` AS `usefulAuctionLeftSegmentLength`,`ec`.`standardBarcodeLength` AS `standardBarcodeLength`,`ec`.`floridayBarcodeLength` AS `floridayBarcodeLength`,`ec`.`floramondoBarcodeLength` AS `floramondoBarcodeLength`,`ec`.`defaultKlo` AS `defaultKlo`,`ec`.`ektRecentScopeDays` AS `ektRecentScopeDays` from (`ekt` `e` join `ektConfig` `ec`) where `e`.`entryYear` = year(util.VN_CURDATE()) and `e`.`fec` >= util.VN_CURDATE() + interval -`ec`.`ektRecentScopeDays` day */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -78272,7 +77415,6 @@ USE `edi`;
-- Final view structure for view `errorList`
--
-/*!50001 DROP TABLE IF EXISTS `errorList`*/;
/*!50001 DROP VIEW IF EXISTS `errorList`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78282,7 +77424,7 @@ USE `edi`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `errorList` AS select `po`.`id` AS `id`,`c`.`name` AS `name`,`i`.`longName` AS `longName`,`po`.`quantity` AS `quantity`,left(`po`.`error`,4) AS `stock`,`po`.`error` AS `error`,`po`.`deliveryInformationID` AS `deliveryInformationID`,`po`.`supplyResponseID` AS `supplyResponseID`,`po`.`OrderTradeLineDateTime` AS `OrderTradeLineDateTime`,`po`.`EndUserPartyGLN` AS `EndUserPartyGLN` from ((`edi`.`putOrder` `po` left join `vn`.`client` `c` on(`c`.`id` = `po`.`EndUserPartyGLN`)) left join `vn`.`item` `i` on(`i`.`supplyResponseFk` = `po`.`supplyResponseID`)) where `po`.`OrderTradeLineDateTime` > `util`.`VN_CURDATE`() + interval -12 hour and `po`.`OrderStatus` = 3 and left(`po`.`error`,4) <> '(0) ' */;
+/*!50001 VIEW `errorList` AS select `po`.`id` AS `id`,`c`.`name` AS `name`,`i`.`longName` AS `longName`,`po`.`quantity` AS `quantity`,left(`po`.`error`,4) AS `stock`,`po`.`error` AS `error`,`po`.`deliveryInformationID` AS `deliveryInformationID`,`po`.`supplyResponseID` AS `supplyResponseID`,`po`.`OrderTradeLineDateTime` AS `OrderTradeLineDateTime`,`po`.`EndUserPartyGLN` AS `EndUserPartyGLN` from ((`edi`.`putOrder` `po` left join `vn`.`client` `c` on(`c`.`id` = `po`.`EndUserPartyGLN`)) left join `vn`.`item` `i` on(`i`.`supplyResponseFk` = `po`.`supplyResponseID`)) where `po`.`OrderTradeLineDateTime` > util.VN_CURDATE() + interval -12 hour and `po`.`OrderStatus` = 3 and left(`po`.`error`,4) <> '(0) ' */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -78291,7 +77433,6 @@ USE `edi`;
-- Final view structure for view `supplyOffer`
--
-/*!50001 DROP TABLE IF EXISTS `supplyOffer`*/;
/*!50001 DROP VIEW IF EXISTS `supplyOffer`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78316,7 +77457,6 @@ USE `hedera`;
-- Final view structure for view `mainAccountBank`
--
-/*!50001 DROP TABLE IF EXISTS `mainAccountBank`*/;
/*!50001 DROP VIEW IF EXISTS `mainAccountBank`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78335,7 +77475,6 @@ USE `hedera`;
-- Final view structure for view `myAddress`
--
-/*!50001 DROP TABLE IF EXISTS `myAddress`*/;
/*!50001 DROP VIEW IF EXISTS `myAddress`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78355,7 +77494,6 @@ USE `hedera`;
-- Final view structure for view `myBasket`
--
-/*!50001 DROP TABLE IF EXISTS `myBasket`*/;
/*!50001 DROP VIEW IF EXISTS `myBasket`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78375,7 +77513,6 @@ USE `hedera`;
-- Final view structure for view `myBasketDefaults`
--
-/*!50001 DROP TABLE IF EXISTS `myBasketDefaults`*/;
/*!50001 DROP VIEW IF EXISTS `myBasketDefaults`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78394,7 +77531,6 @@ USE `hedera`;
-- Final view structure for view `myBasketItem`
--
-/*!50001 DROP TABLE IF EXISTS `myBasketItem`*/;
/*!50001 DROP VIEW IF EXISTS `myBasketItem`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78414,7 +77550,6 @@ USE `hedera`;
-- Final view structure for view `myClient`
--
-/*!50001 DROP TABLE IF EXISTS `myClient`*/;
/*!50001 DROP VIEW IF EXISTS `myClient`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78434,7 +77569,6 @@ USE `hedera`;
-- Final view structure for view `myInvoice`
--
-/*!50001 DROP TABLE IF EXISTS `myInvoice`*/;
/*!50001 DROP VIEW IF EXISTS `myInvoice`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78453,7 +77587,6 @@ USE `hedera`;
-- Final view structure for view `myMenu`
--
-/*!50001 DROP TABLE IF EXISTS `myMenu`*/;
/*!50001 DROP VIEW IF EXISTS `myMenu`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78472,7 +77605,6 @@ USE `hedera`;
-- Final view structure for view `myOrder`
--
-/*!50001 DROP TABLE IF EXISTS `myOrder`*/;
/*!50001 DROP VIEW IF EXISTS `myOrder`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78491,7 +77623,6 @@ USE `hedera`;
-- Final view structure for view `myOrderRow`
--
-/*!50001 DROP TABLE IF EXISTS `myOrderRow`*/;
/*!50001 DROP VIEW IF EXISTS `myOrderRow`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78511,7 +77642,6 @@ USE `hedera`;
-- Final view structure for view `myOrderTicket`
--
-/*!50001 DROP TABLE IF EXISTS `myOrderTicket`*/;
/*!50001 DROP VIEW IF EXISTS `myOrderTicket`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78530,7 +77660,6 @@ USE `hedera`;
-- Final view structure for view `myTicket`
--
-/*!50001 DROP TABLE IF EXISTS `myTicket`*/;
/*!50001 DROP VIEW IF EXISTS `myTicket`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78549,7 +77678,6 @@ USE `hedera`;
-- Final view structure for view `myTicketRow`
--
-/*!50001 DROP TABLE IF EXISTS `myTicketRow`*/;
/*!50001 DROP VIEW IF EXISTS `myTicketRow`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78569,7 +77697,6 @@ USE `hedera`;
-- Final view structure for view `myTicketService`
--
-/*!50001 DROP TABLE IF EXISTS `myTicketService`*/;
/*!50001 DROP VIEW IF EXISTS `myTicketService`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78589,7 +77716,6 @@ USE `hedera`;
-- Final view structure for view `myTicketState`
--
-/*!50001 DROP TABLE IF EXISTS `myTicketState`*/;
/*!50001 DROP VIEW IF EXISTS `myTicketState`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78608,7 +77734,6 @@ USE `hedera`;
-- Final view structure for view `myTpvTransaction`
--
-/*!50001 DROP TABLE IF EXISTS `myTpvTransaction`*/;
/*!50001 DROP VIEW IF EXISTS `myTpvTransaction`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78623,11 +77748,11 @@ USE `hedera`;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
+
--
-- Final view structure for view `orderTicket`
--
-/*!50001 DROP TABLE IF EXISTS `orderTicket`*/;
/*!50001 DROP VIEW IF EXISTS `orderTicket`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78646,7 +77771,6 @@ USE `hedera`;
-- Final view structure for view `order_component`
--
-/*!50001 DROP TABLE IF EXISTS `order_component`*/;
/*!50001 DROP VIEW IF EXISTS `order_component`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78665,7 +77789,6 @@ USE `hedera`;
-- Final view structure for view `order_row`
--
-/*!50001 DROP TABLE IF EXISTS `order_row`*/;
/*!50001 DROP VIEW IF EXISTS `order_row`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78680,12 +77803,6 @@ USE `hedera`;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
---
--- Current Database: `nst`
---
-
-USE `nst`;
-
--
-- Current Database: `pbx`
--
@@ -78696,7 +77813,6 @@ USE `pbx`;
-- Final view structure for view `cdrConf`
--
-/*!50001 DROP TABLE IF EXISTS `cdrConf`*/;
/*!50001 DROP VIEW IF EXISTS `cdrConf`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78715,7 +77831,6 @@ USE `pbx`;
-- Final view structure for view `followmeConf`
--
-/*!50001 DROP TABLE IF EXISTS `followmeConf`*/;
/*!50001 DROP VIEW IF EXISTS `followmeConf`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78734,7 +77849,6 @@ USE `pbx`;
-- Final view structure for view `followmeNumberConf`
--
-/*!50001 DROP TABLE IF EXISTS `followmeNumberConf`*/;
/*!50001 DROP VIEW IF EXISTS `followmeNumberConf`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78753,7 +77867,6 @@ USE `pbx`;
-- Final view structure for view `queueConf`
--
-/*!50001 DROP TABLE IF EXISTS `queueConf`*/;
/*!50001 DROP VIEW IF EXISTS `queueConf`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78772,7 +77885,6 @@ USE `pbx`;
-- Final view structure for view `queueMemberConf`
--
-/*!50001 DROP TABLE IF EXISTS `queueMemberConf`*/;
/*!50001 DROP VIEW IF EXISTS `queueMemberConf`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78791,7 +77903,6 @@ USE `pbx`;
-- Final view structure for view `sipConf`
--
-/*!50001 DROP TABLE IF EXISTS `sipConf`*/;
/*!50001 DROP VIEW IF EXISTS `sipConf`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78816,14 +77927,13 @@ USE `postgresql`;
-- Final view structure for view `calendar_employee`
--
-/*!50001 DROP TABLE IF EXISTS `calendar_employee`*/;
/*!50001 DROP VIEW IF EXISTS `calendar_employee`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
/*!50001 SET @saved_col_connection = @@collation_connection */;
/*!50001 SET character_set_client = utf8mb4 */;
/*!50001 SET character_set_results = utf8mb4 */;
-/*!50001 SET collation_connection = utf8mb4_general_ci */;
+/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `calendar_employee` AS select `ce`.`id` AS `id`,`ce`.`businessFk` AS `businessFk`,`ce`.`dayOffTypeFk` AS `calendar_state_id`,`ce`.`dated` AS `date` from `vn`.`calendar` `ce` */;
@@ -78841,7 +77951,6 @@ USE `sage`;
-- Final view structure for view `clientLastTwoMonths`
--
-/*!50001 DROP TABLE IF EXISTS `clientLastTwoMonths`*/;
/*!50001 DROP VIEW IF EXISTS `clientLastTwoMonths`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78851,7 +77960,7 @@ USE `sage`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `clientLastTwoMonths` AS select `vn`.`invoiceOut`.`clientFk` AS `clientFk`,`vn`.`invoiceOut`.`companyFk` AS `companyFk` from `vn`.`invoiceOut` where `vn`.`invoiceOut`.`issued` > `util`.`VN_CURDATE`() - interval 2 month union select `vn`.`receipt`.`clientFk` AS `clientFk`,`vn`.`receipt`.`companyFk` AS `companyFk` from `vn`.`receipt` where `vn`.`receipt`.`payed` > `util`.`VN_CURDATE`() - interval 2 month */;
+/*!50001 VIEW `clientLastTwoMonths` AS select `vn`.`invoiceOut`.`clientFk` AS `clientFk`,`vn`.`invoiceOut`.`companyFk` AS `companyFk` from `vn`.`invoiceOut` where `vn`.`invoiceOut`.`issued` > util.VN_CURDATE() - interval 2 month union select `vn`.`receipt`.`clientFk` AS `clientFk`,`vn`.`receipt`.`companyFk` AS `companyFk` from `vn`.`receipt` where `vn`.`receipt`.`payed` > util.VN_CURDATE() - interval 2 month */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -78860,7 +77969,6 @@ USE `sage`;
-- Final view structure for view `invoiceInList`
--
-/*!50001 DROP TABLE IF EXISTS `invoiceInList`*/;
/*!50001 DROP VIEW IF EXISTS `invoiceInList`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78870,7 +77978,7 @@ USE `sage`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `invoiceInList` AS select `vn`.`invoiceIn`.`id` AS `id`,`vn`.`invoiceIn`.`supplierRef` AS `supplierRef`,`vn`.`invoiceIn`.`serial` AS `serial`,`vn`.`invoiceIn`.`supplierFk` AS `supplierFk`,`vn`.`invoiceIn`.`issued` AS `issued`,if(`vn`.`invoiceIn`.`expenceFkDeductible` > 0,1,0) AS `isVatDeductible`,`vn`.`invoiceIn`.`serialNumber` AS `serialNumber` from `vn`.`invoiceIn` where `vn`.`invoiceIn`.`issued` >= date_format(`util`.`VN_CURDATE`(),'%Y-01-01') + interval -1 year union all select `vn`.`dua`.`id` AS `id`,`vn`.`dua`.`code` AS `code`,'D' AS `D`,`c`.`id` AS `supplierFk`,`vn`.`dua`.`issued` AS `issued`,0 AS `FALSE`,`vn`.`dua`.`id` AS `serialNumber` from (`vn`.`dua` join `vn`.`company` `c` on(`c`.`code` = 'VNL')) */;
+/*!50001 VIEW `invoiceInList` AS select `vn`.`invoiceIn`.`id` AS `id`,`vn`.`invoiceIn`.`supplierRef` AS `supplierRef`,`vn`.`invoiceIn`.`serial` AS `serial`,`vn`.`invoiceIn`.`supplierFk` AS `supplierFk`,`vn`.`invoiceIn`.`issued` AS `issued`,if(`vn`.`invoiceIn`.`expenceFkDeductible` > 0,1,0) AS `isVatDeductible`,`vn`.`invoiceIn`.`serialNumber` AS `serialNumber` from `vn`.`invoiceIn` where `vn`.`invoiceIn`.`issued` >= date_format(util.VN_CURDATE(),'%Y-01-01') + interval -1 year union all select `vn`.`dua`.`id` AS `id`,`vn`.`dua`.`code` AS `code`,'D' AS `D`,`c`.`id` AS `supplierFk`,`vn`.`dua`.`issued` AS `issued`,0 AS `FALSE`,`vn`.`dua`.`id` AS `serialNumber` from (`vn`.`dua` join `vn`.`company` `c` on(`c`.`code` = 'VNL')) */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -78879,7 +77987,6 @@ USE `sage`;
-- Final view structure for view `supplierLastThreeMonths`
--
-/*!50001 DROP TABLE IF EXISTS `supplierLastThreeMonths`*/;
/*!50001 DROP VIEW IF EXISTS `supplierLastThreeMonths`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78889,7 +77996,7 @@ USE `sage`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `supplierLastThreeMonths` AS select `vn`.`invoiceIn`.`supplierFk` AS `supplierFk`,`vn`.`invoiceIn`.`companyFk` AS `companyFk` from `vn`.`invoiceIn` where `vn`.`invoiceIn`.`issued` > `util`.`VN_CURDATE`() - interval 3 month union select `vn`.`payment`.`supplierFk` AS `supplierFk`,`vn`.`payment`.`companyFk` AS `companyFk` from `vn`.`payment` where `vn`.`payment`.`received` > `util`.`VN_CURDATE`() + interval -3 month */;
+/*!50001 VIEW `supplierLastThreeMonths` AS select `vn`.`invoiceIn`.`supplierFk` AS `supplierFk`,`vn`.`invoiceIn`.`companyFk` AS `companyFk` from `vn`.`invoiceIn` where `vn`.`invoiceIn`.`issued` > util.VN_CURDATE() - interval 3 month union select `vn`.`payment`.`supplierFk` AS `supplierFk`,`vn`.`payment`.`companyFk` AS `companyFk` from `vn`.`payment` where `vn`.`payment`.`received` > util.VN_CURDATE() + interval -3 month */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -78904,7 +78011,6 @@ USE `salix`;
-- Final view structure for view `Account`
--
-/*!50001 DROP TABLE IF EXISTS `Account`*/;
/*!50001 DROP VIEW IF EXISTS `Account`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78923,7 +78029,6 @@ USE `salix`;
-- Final view structure for view `Role`
--
-/*!50001 DROP TABLE IF EXISTS `Role`*/;
/*!50001 DROP VIEW IF EXISTS `Role`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78942,7 +78047,6 @@ USE `salix`;
-- Final view structure for view `RoleMapping`
--
-/*!50001 DROP TABLE IF EXISTS `RoleMapping`*/;
/*!50001 DROP VIEW IF EXISTS `RoleMapping`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78961,7 +78065,6 @@ USE `salix`;
-- Final view structure for view `User`
--
-/*!50001 DROP TABLE IF EXISTS `User`*/;
/*!50001 DROP VIEW IF EXISTS `User`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -78992,7 +78095,6 @@ USE `util`;
-- Final view structure for view `eventLogGrouped`
--
-/*!50001 DROP TABLE IF EXISTS `eventLogGrouped`*/;
/*!50001 DROP VIEW IF EXISTS `eventLogGrouped`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79017,7 +78119,6 @@ USE `vn`;
-- Final view structure for view `NewView`
--
-/*!50001 DROP TABLE IF EXISTS `NewView`*/;
/*!50001 DROP VIEW IF EXISTS `NewView`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79027,7 +78128,25 @@ USE `vn`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `NewView` AS select `c`.`id` AS `clientFk`,max(`t`.`shipped`) AS `lastShipped`,`pc`.`notBuyingMonths` AS `notBuyingMonths` from ((`client` `c` join `productionConfig` `pc`) left join `ticket` `t` on(`c`.`id` = `t`.`clientFk` and `t`.`shipped` < `util`.`VN_CURDATE`() + interval -`pc`.`rookieDays` day)) group by `c`.`id` having `lastShipped` is null or `lastShipped` < `util`.`VN_CURDATE`() + interval -`notBuyingMonths` month */;
+/*!50001 VIEW `NewView` AS select `c`.`id` AS `clientFk`,max(`t`.`shipped`) AS `lastShipped`,`pc`.`notBuyingMonths` AS `notBuyingMonths` from ((`client` `c` join `productionConfig` `pc`) left join `ticket` `t` on(`c`.`id` = `t`.`clientFk` and `t`.`shipped` < util.VN_CURDATE() + interval -`pc`.`rookieDays` day)) group by `c`.`id` having `lastShipped` is null or `lastShipped` < util.VN_CURDATE() + interval -`notBuyingMonths` month */;
+/*!50001 SET character_set_client = @saved_cs_client */;
+/*!50001 SET character_set_results = @saved_cs_results */;
+/*!50001 SET collation_connection = @saved_col_connection */;
+
+--
+-- Final view structure for view `__coolerPathDetail`
+--
+
+/*!50001 DROP VIEW IF EXISTS `__coolerPathDetail`*/;
+/*!50001 SET @saved_cs_client = @@character_set_client */;
+/*!50001 SET @saved_cs_results = @@character_set_results */;
+/*!50001 SET @saved_col_connection = @@collation_connection */;
+/*!50001 SET character_set_client = utf8mb4 */;
+/*!50001 SET character_set_results = utf8mb4 */;
+/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
+/*!50001 CREATE ALGORITHM=UNDEFINED */
+/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
+/*!50001 VIEW `__coolerPathDetail` AS select `c`.`cooler_path_detail_id` AS `id`,`c`.`cooler_path_id` AS `coolerPathFk`,`c`.`pasillo` AS `hallway` from `vn2008`.`cooler_path_detail` `c` */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -79036,7 +78155,6 @@ USE `vn`;
-- Final view structure for view `agencyTerm`
--
-/*!50001 DROP TABLE IF EXISTS `agencyTerm`*/;
/*!50001 DROP VIEW IF EXISTS `agencyTerm`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79055,7 +78173,6 @@ USE `vn`;
-- Final view structure for view `annualAverageInvoiced`
--
-/*!50001 DROP TABLE IF EXISTS `annualAverageInvoiced`*/;
/*!50001 DROP VIEW IF EXISTS `annualAverageInvoiced`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79074,7 +78191,6 @@ USE `vn`;
-- Final view structure for view `awbVolume`
--
-/*!50001 DROP TABLE IF EXISTS `awbVolume`*/;
/*!50001 DROP VIEW IF EXISTS `awbVolume`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79084,7 +78200,7 @@ USE `vn`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `awbVolume` AS select `d`.`awbFk` AS `awbFk`,`b`.`stickers` * `i`.`density` * if(`p`.`volume` > 0,`p`.`volume`,`p`.`width` * `p`.`depth` * if(`p`.`height` = 0,`i`.`size` + 10,`p`.`height`)) / (`vc`.`aerealVolumetricDensity` * 1000) AS `volume`,`b`.`id` AS `buyFk` from ((((((((`buy` `b` join `item` `i` on(`b`.`itemFk` = `i`.`id`)) join `itemType` `it` on(`i`.`typeFk` = `it`.`id`)) join `packaging` `p` on(`p`.`id` = `b`.`packageFk`)) join `entry` `e` on(`b`.`entryFk` = `e`.`id`)) join `travel` `t` on(`t`.`id` = `e`.`travelFk`)) join `duaEntry` `de` on(`de`.`entryFk` = `e`.`id`)) join `dua` `d` on(`d`.`id` = `de`.`duaFk`)) join `volumeConfig` `vc`) where `t`.`shipped` > makedate(year(`util`.`VN_CURDATE`()) - 1,1) */;
+/*!50001 VIEW `awbVolume` AS select `d`.`awbFk` AS `awbFk`,`b`.`stickers` * `i`.`density` * if(`p`.`volume` > 0,`p`.`volume`,`p`.`width` * `p`.`depth` * if(`p`.`height` = 0,`i`.`size` + 10,`p`.`height`)) / (`vc`.`aerealVolumetricDensity` * 1000) AS `volume`,`b`.`id` AS `buyFk` from ((((((((`buy` `b` join `item` `i` on(`b`.`itemFk` = `i`.`id`)) join `itemType` `it` on(`i`.`typeFk` = `it`.`id`)) join `packaging` `p` on(`p`.`id` = `b`.`packageFk`)) join `entry` `e` on(`b`.`entryFk` = `e`.`id`)) join `travel` `t` on(`t`.`id` = `e`.`travelFk`)) join `duaEntry` `de` on(`de`.`entryFk` = `e`.`id`)) join `dua` `d` on(`d`.`id` = `de`.`duaFk`)) join `volumeConfig` `vc`) where `t`.`shipped` > makedate(year(util.VN_CURDATE()) - 1,1) */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -79093,7 +78209,6 @@ USE `vn`;
-- Final view structure for view `bank`
--
-/*!50001 DROP TABLE IF EXISTS `bank`*/;
/*!50001 DROP VIEW IF EXISTS `bank`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79108,11 +78223,28 @@ USE `vn`;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
+--
+-- Final view structure for view `bankPolicy`
+--
+
+/*!50001 DROP VIEW IF EXISTS `bankPolicy`*/;
+/*!50001 SET @saved_cs_client = @@character_set_client */;
+/*!50001 SET @saved_cs_results = @@character_set_results */;
+/*!50001 SET @saved_col_connection = @@collation_connection */;
+/*!50001 SET character_set_client = utf8mb4 */;
+/*!50001 SET character_set_results = utf8mb4 */;
+/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
+/*!50001 CREATE ALGORITHM=UNDEFINED */
+/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
+/*!50001 VIEW `bankPolicy` AS select `bp`.`poliza_id` AS `id`,`bp`.`referencia` AS `ref`,`bp`.`importe` AS `amount`,`bp`.`com_dispuesto` AS `balanceInterestDrawn`,`bp`.`com_no_dispuesto` AS `commissionAvailableBalances`,`bp`.`com_anual` AS `openingCommission`,`bp`.`apertura` AS `started`,`bp`.`cierre` AS `ended`,`bp`.`Id_Banco` AS `bankFk`,`bp`.`empresa_id` AS `companyFk`,`bp`.`supplierFk` AS `supplierFk`,`bp`.`description` AS `description`,`bp`.`hasGuarantee` AS `hasGuarantee`,`bp`.`dmsFk` AS `dmsFk`,`bp`.`notaryFk` AS `notaryFk`,`bp`.`currencyFk` AS `currencyFk`,`bp`.`amortizationTypeFk` AS `amortizationTypeFk`,`bp`.`periodicityTypeFk` AS `periodicityTypeFk`,`bp`.`insuranceExpired` AS `insuranceExpired` from `vn2008`.`Bancos_poliza` `bp` order by `bp`.`poliza_id` desc */;
+/*!50001 SET character_set_client = @saved_cs_client */;
+/*!50001 SET character_set_results = @saved_cs_results */;
+/*!50001 SET collation_connection = @saved_col_connection */;
+
--
-- Final view structure for view `businessCalendar`
--
-/*!50001 DROP TABLE IF EXISTS `businessCalendar`*/;
/*!50001 DROP VIEW IF EXISTS `businessCalendar`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79131,7 +78263,6 @@ USE `vn`;
-- Final view structure for view `buyer`
--
-/*!50001 DROP TABLE IF EXISTS `buyer`*/;
/*!50001 DROP VIEW IF EXISTS `buyer`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79150,7 +78281,6 @@ USE `vn`;
-- Final view structure for view `buyerSales`
--
-/*!50001 DROP TABLE IF EXISTS `buyerSales`*/;
/*!50001 DROP VIEW IF EXISTS `buyerSales`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79169,7 +78299,6 @@ USE `vn`;
-- Final view structure for view `clientLost`
--
-/*!50001 DROP TABLE IF EXISTS `clientLost`*/;
/*!50001 DROP VIEW IF EXISTS `clientLost`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79179,7 +78308,7 @@ USE `vn`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `clientLost` AS select `c`.`id` AS `clientFk`,max(`t`.`shipped`) AS `lastShipped`,`pc`.`notBuyingMonths` AS `notBuyingMonths` from ((`client` `c` join `productionConfig` `pc`) left join `ticket` `t` on(`c`.`id` = `t`.`clientFk` and `t`.`shipped` < `util`.`VN_CURDATE`() + interval -`pc`.`rookieDays` day)) group by `c`.`id` having `lastShipped` is null or `lastShipped` < `util`.`VN_CURDATE`() + interval -`notBuyingMonths` month */;
+/*!50001 VIEW `clientLost` AS select `c`.`id` AS `clientFk`,max(`t`.`shipped`) AS `lastShipped`,`pc`.`notBuyingMonths` AS `notBuyingMonths` from ((`client` `c` join `productionConfig` `pc`) left join `ticket` `t` on(`c`.`id` = `t`.`clientFk` and `t`.`shipped` < util.VN_CURDATE() + interval -`pc`.`rookieDays` day)) group by `c`.`id` having `lastShipped` is null or `lastShipped` < util.VN_CURDATE() + interval -`notBuyingMonths` month */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -79188,7 +78317,6 @@ USE `vn`;
-- Final view structure for view `clientPhoneBook`
--
-/*!50001 DROP TABLE IF EXISTS `clientPhoneBook`*/;
/*!50001 DROP VIEW IF EXISTS `clientPhoneBook`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79207,7 +78335,6 @@ USE `vn`;
-- Final view structure for view `cmr_list`
--
-/*!50001 DROP TABLE IF EXISTS `cmr_list`*/;
/*!50001 DROP VIEW IF EXISTS `cmr_list`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79226,7 +78353,6 @@ USE `vn`;
-- Final view structure for view `defaulter`
--
-/*!50001 DROP TABLE IF EXISTS `defaulter`*/;
/*!50001 DROP VIEW IF EXISTS `defaulter`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79245,7 +78371,6 @@ USE `vn`;
-- Final view structure for view `departmentTree`
--
-/*!50001 DROP TABLE IF EXISTS `departmentTree`*/;
/*!50001 DROP VIEW IF EXISTS `departmentTree`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79264,7 +78389,6 @@ USE `vn`;
-- Final view structure for view `ediGenus`
--
-/*!50001 DROP TABLE IF EXISTS `ediGenus`*/;
/*!50001 DROP VIEW IF EXISTS `ediGenus`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79283,7 +78407,6 @@ USE `vn`;
-- Final view structure for view `ediSpecie`
--
-/*!50001 DROP TABLE IF EXISTS `ediSpecie`*/;
/*!50001 DROP VIEW IF EXISTS `ediSpecie`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79302,7 +78425,6 @@ USE `vn`;
-- Final view structure for view `ektSubAddress`
--
-/*!50001 DROP TABLE IF EXISTS `ektSubAddress`*/;
/*!50001 DROP VIEW IF EXISTS `ektSubAddress`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79321,7 +78443,6 @@ USE `vn`;
-- Final view structure for view `exchangeInsuranceEntry`
--
-/*!50001 DROP TABLE IF EXISTS `exchangeInsuranceEntry`*/;
/*!50001 DROP VIEW IF EXISTS `exchangeInsuranceEntry`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79331,7 +78452,25 @@ USE `vn`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `exchangeInsuranceEntry` AS select max(`tr`.`landed`) AS `dated`,cast(sum((`b`.`buyingValue` + `b`.`freightValue`) * `b`.`quantity`) as decimal(10,2)) AS `Dolares`,cast(sum((`b`.`buyingValue` + `b`.`freightValue`) * `b`.`quantity`) / sum((100 + `e`.`commission`) / 100 * (`b`.`buyingValue` + `b`.`freightValue`) * `b`.`quantity`) as decimal(10,4)) AS `rate` from ((`entry` `e` join `buy` `b` on(`e`.`id` = `b`.`entryFk`)) join `travel` `tr` on(`tr`.`id` = `e`.`travelFk`)) where `tr`.`landed` between '2016-01-31' and `util`.`VN_CURDATE`() and `e`.`commission` < 0 and `e`.`currencyFk` = 2 group by month(`tr`.`landed`),year(`tr`.`landed`) */;
+/*!50001 VIEW `exchangeInsuranceEntry` AS select max(`tr`.`landed`) AS `dated`,cast(sum((`b`.`buyingValue` + `b`.`freightValue`) * `b`.`quantity`) as decimal(10,2)) AS `Dolares`,cast(sum((`b`.`buyingValue` + `b`.`freightValue`) * `b`.`quantity`) / sum((100 + `e`.`commission`) / 100 * (`b`.`buyingValue` + `b`.`freightValue`) * `b`.`quantity`) as decimal(10,4)) AS `rate` from ((`entry` `e` join `buy` `b` on(`e`.`id` = `b`.`entryFk`)) join `travel` `tr` on(`tr`.`id` = `e`.`travelFk`)) where `tr`.`landed` between '2016-01-31' and util.VN_CURDATE() and `e`.`commission` < 0 and `e`.`currencyFk` = 2 group by month(`tr`.`landed`),year(`tr`.`landed`) */;
+/*!50001 SET character_set_client = @saved_cs_client */;
+/*!50001 SET character_set_results = @saved_cs_results */;
+/*!50001 SET collation_connection = @saved_col_connection */;
+
+--
+-- Final view structure for view `exchangeInsuranceIn`
+--
+
+/*!50001 DROP VIEW IF EXISTS `exchangeInsuranceIn`*/;
+/*!50001 SET @saved_cs_client = @@character_set_client */;
+/*!50001 SET @saved_cs_results = @@character_set_results */;
+/*!50001 SET @saved_col_connection = @@collation_connection */;
+/*!50001 SET character_set_client = utf8mb4 */;
+/*!50001 SET character_set_results = utf8mb4 */;
+/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
+/*!50001 CREATE ALGORITHM=UNDEFINED */
+/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
+/*!50001 VIEW `exchangeInsuranceIn` AS select `exchangeInsuranceInPrevious`.`dated` AS `dated`,sum(`exchangeInsuranceInPrevious`.`amount`) AS `amount`,cast(sum(`exchangeInsuranceInPrevious`.`amount` * `exchangeInsuranceInPrevious`.`rate`) / sum(`exchangeInsuranceInPrevious`.`amount`) as decimal(10,4)) AS `rate` from `vn`.`exchangeInsuranceInPrevious` group by `exchangeInsuranceInPrevious`.`dated` */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -79340,7 +78479,6 @@ USE `vn`;
-- Final view structure for view `exchangeInsuranceOut`
--
-/*!50001 DROP TABLE IF EXISTS `exchangeInsuranceOut`*/;
/*!50001 DROP VIEW IF EXISTS `exchangeInsuranceOut`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79355,11 +78493,28 @@ USE `vn`;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
+--
+-- Final view structure for view `exchangeReportSourcePrevious`
+--
+
+/*!50001 DROP VIEW IF EXISTS `exchangeReportSourcePrevious`*/;
+/*!50001 SET @saved_cs_client = @@character_set_client */;
+/*!50001 SET @saved_cs_results = @@character_set_results */;
+/*!50001 SET @saved_col_connection = @@collation_connection */;
+/*!50001 SET character_set_client = utf8mb4 */;
+/*!50001 SET character_set_results = utf8mb4 */;
+/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
+/*!50001 CREATE ALGORITHM=UNDEFINED */
+/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
+/*!50001 VIEW `exchangeReportSourcePrevious` AS select `exchangeInsuranceIn`.`dated` AS `dated`,`exchangeInsuranceIn`.`amount` AS `amountIn`,`exchangeInsuranceIn`.`rate` AS `rateIn`,0.00 AS `amountOut`,0.00 AS `rateOut`,0.00 AS `amountEntry`,0.00 AS `rateEntry` from `vn`.`exchangeInsuranceIn` union all select `exchangeInsuranceOut`.`received` AS `received`,0.00 AS `amountIn`,0.00 AS `ratedIn`,`exchangeInsuranceOut`.`divisa` AS `amountOut`,`exchangeInsuranceOut`.`rate` AS `ratedOut`,0.00 AS `amountEntry`,0.00 AS `rateEntry` from `vn`.`exchangeInsuranceOut` union all select `exchangeInsuranceEntry`.`dated` AS `dated`,0.00 AS `amountIn`,0.00 AS `ratedIn`,0.00 AS `amountOut`,0.00 AS `ratedOut`,`exchangeInsuranceEntry`.`Dolares` AS `amountEntry`,`exchangeInsuranceEntry`.`rate` AS `rateEntry` from `vn`.`exchangeInsuranceEntry` */;
+/*!50001 SET character_set_client = @saved_cs_client */;
+/*!50001 SET character_set_results = @saved_cs_results */;
+/*!50001 SET collation_connection = @saved_col_connection */;
+
--
-- Final view structure for view `expeditionCommon`
--
-/*!50001 DROP TABLE IF EXISTS `expeditionCommon`*/;
/*!50001 DROP VIEW IF EXISTS `expeditionCommon`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79369,7 +78524,25 @@ USE `vn`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `expeditionCommon` AS select `et`.`id` AS `truckFk`,`et`.`ETD` AS `etd`,ifnull(ucase(`et`.`description`),'SIN ESCANEAR') AS `description`,`es`.`palletFk` AS `palletFk`,`t`.`routeFk` AS `routeFk`,`es`.`id` AS `scanFk`,`e`.`id` AS `expeditionFk`,`r`.`expeditionTruckFk` AS `expeditionTruckFk`,`t`.`warehouseFk` AS `warehouseFk`,`e`.`created` AS `lastPacked`,`t`.`id` AS `ticketFk` from (((((`expeditionTruck` `et` left join `routesMonitor` `r` on(`et`.`id` = `r`.`expeditionTruckFk`)) left join `ticket` `t` on(`r`.`routeFk` = `t`.`routeFk`)) left join `expedition` `e` on(`t`.`id` = `e`.`ticketFk`)) left join `expeditionScan` `es` on(`e`.`id` = `es`.`expeditionFk`)) left join `expeditionPallet` `ep` on(`es`.`palletFk` = `ep`.`id`)) where `et`.`ETD` >= `util`.`VN_CURDATE`() */;
+/*!50001 VIEW `expeditionCommon` AS select `et`.`id` AS `truckFk`,`et`.`ETD` AS `etd`,ifnull(ucase(`et`.`description`),'SIN ESCANEAR') AS `description`,`es`.`palletFk` AS `palletFk`,`t`.`routeFk` AS `routeFk`,`es`.`id` AS `scanFk`,`e`.`id` AS `expeditionFk`,`r`.`expeditionTruckFk` AS `expeditionTruckFk`,`t`.`warehouseFk` AS `warehouseFk`,`e`.`created` AS `lastPacked`,`t`.`id` AS `ticketFk` from (((((`expeditionTruck` `et` left join `routesMonitor` `r` on(`et`.`id` = `r`.`expeditionTruckFk`)) left join `ticket` `t` on(`r`.`routeFk` = `t`.`routeFk`)) left join `expedition` `e` on(`t`.`id` = `e`.`ticketFk`)) left join `expeditionScan` `es` on(`e`.`id` = `es`.`expeditionFk`)) left join `expeditionPallet` `ep` on(`es`.`palletFk` = `ep`.`id`)) where `et`.`ETD` >= util.VN_CURDATE() */;
+/*!50001 SET character_set_client = @saved_cs_client */;
+/*!50001 SET character_set_results = @saved_cs_results */;
+/*!50001 SET collation_connection = @saved_col_connection */;
+
+--
+-- Final view structure for view `expeditionPallet_Print`
+--
+
+/*!50001 DROP VIEW IF EXISTS `expeditionPallet_Print`*/;
+/*!50001 SET @saved_cs_client = @@character_set_client */;
+/*!50001 SET @saved_cs_results = @@character_set_results */;
+/*!50001 SET @saved_col_connection = @@collation_connection */;
+/*!50001 SET character_set_client = utf8mb4 */;
+/*!50001 SET character_set_results = utf8mb4 */;
+/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
+/*!50001 CREATE ALGORITHM=UNDEFINED */
+/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
+/*!50001 VIEW `expeditionPallet_Print` AS select `et2`.`description` AS `truck`,`t`.`routeFk` AS `routeFk`,`r`.`description` AS `zone`,count(`es`.`id`) AS `eti`,`ep`.`id` AS `palletFk`,`et`.`id` <=> `rm`.`expeditionTruckFk` AS `isMatch`,`t`.`warehouseFk` AS `warehouseFk`,if(`r`.`created` > util.VN_CURDATE() + interval 1 day,ucase(dayname(`r`.`created`)),NULL) AS `nombreDia` from (((((((`vn`.`expeditionTruck` `et` join `vn`.`expeditionPallet` `ep` on(`ep`.`truckFk` = `et`.`id`)) join `vn`.`expeditionScan` `es` on(`es`.`palletFk` = `ep`.`id`)) join `vn`.`expedition` `e` on(`e`.`id` = `es`.`expeditionFk`)) join `vn`.`ticket` `t` on(`t`.`id` = `e`.`ticketFk`)) join `vn`.`route` `r` on(`r`.`id` = `t`.`routeFk`)) left join `vn2008`.`Rutas_monitor` `rm` on(`rm`.`Id_Ruta` = `r`.`id`)) left join `vn`.`expeditionTruck` `et2` on(`et2`.`id` = `rm`.`expeditionTruckFk`)) group by `ep`.`id`,`t`.`routeFk` */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -79378,7 +78551,6 @@ USE `vn`;
-- Final view structure for view `expeditionRoute_Monitor`
--
-/*!50001 DROP TABLE IF EXISTS `expeditionRoute_Monitor`*/;
/*!50001 DROP VIEW IF EXISTS `expeditionRoute_Monitor`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79388,7 +78560,7 @@ USE `vn`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `expeditionRoute_Monitor` AS select `r`.`id` AS `routeFk`,count(distinct if(`e`.`id` is null,`t`.`id`,NULL)) AS `tickets`,count(distinct `e`.`id`) AS `expeditions`,count(distinct `es`.`id`) AS `scanned`,max(`e`.`created`) AS `lastPacked`,`r`.`created` AS `created` from ((((((`route` `r` left join `routesMonitor` `rm` on(`r`.`id` = `rm`.`routeFk`)) left join `expeditionTruck` `et` on(`et`.`id` = `rm`.`expeditionTruckFk`)) join `ticket` `t` on(`t`.`routeFk` = `r`.`id`)) left join `expedition` `e` on(`e`.`ticketFk` = `t`.`id`)) left join `expeditionScan` `es` on(`es`.`expeditionFk` = `e`.`id`)) left join `stowaway` `st` on(`st`.`id` = `t`.`id`)) where `r`.`created` >= `util`.`yesterday`() and `st`.`id` is null group by `r`.`id` */;
+/*!50001 VIEW `expeditionRoute_Monitor` AS select `r`.`id` AS `routeFk`,count(distinct if(`e`.`id` is null,`t`.`id`,NULL)) AS `tickets`,count(distinct `e`.`id`) AS `expeditions`,count(distinct `es`.`id`) AS `scanned`,max(`e`.`created`) AS `lastPacked`,`r`.`created` AS `created` from (((((`route` `r` left join `routesMonitor` `rm` on(`r`.`id` = `rm`.`routeFk`)) left join `expeditionTruck` `et` on(`et`.`id` = `rm`.`expeditionTruckFk`)) join `ticket` `t` on(`t`.`routeFk` = `r`.`id`)) left join `expedition` `e` on(`e`.`ticketFk` = `t`.`id`)) left join `expeditionScan` `es` on(`es`.`expeditionFk` = `e`.`id`)) where `r`.`created` >= `util`.`yesterday`() group by `r`.`id` */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -79397,7 +78569,6 @@ USE `vn`;
-- Final view structure for view `expeditionRoute_freeTickets`
--
-/*!50001 DROP TABLE IF EXISTS `expeditionRoute_freeTickets`*/;
/*!50001 DROP VIEW IF EXISTS `expeditionRoute_freeTickets`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79407,7 +78578,7 @@ USE `vn`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `expeditionRoute_freeTickets` AS select `t`.`routeFk` AS `routeFk`,`tss`.`ticket` AS `ticket`,`s`.`name` AS `code`,`w`.`name` AS `almacen`,`tss`.`updated` AS `updated`,`p`.`code` AS `parkingCode` from ((((((`vn`.`ticketState` `tss` join `vn`.`ticket` `t` on(`t`.`id` = `tss`.`ticket`)) join `vn`.`warehouse` `w` on(`w`.`id` = `t`.`warehouseFk`)) join `vn`.`state` `s` on(`s`.`id` = `tss`.`state`)) left join `vn`.`stowaway` `st` on(`st`.`id` = `t`.`id`)) left join `vn`.`ticketParking` `tp` on(`tp`.`ticketFk` = `t`.`id`)) left join `vn`.`parking` `p` on(`p`.`id` = `tp`.`parkingFk`)) where ifnull(`t`.`packages`,0) = 0 and `st`.`id` is null */;
+/*!50001 VIEW `expeditionRoute_freeTickets` AS select `t`.`routeFk` AS `routeFk`,`tss`.`ticket` AS `ticket`,`s`.`name` AS `code`,`w`.`name` AS `almacen`,`tss`.`updated` AS `updated`,`p`.`code` AS `parkingCode` from (((((`vn`.`ticketState` `tss` join `vn`.`ticket` `t` on(`t`.`id` = `tss`.`ticket`)) join `vn`.`warehouse` `w` on(`w`.`id` = `t`.`warehouseFk`)) join `vn`.`state` `s` on(`s`.`id` = `tss`.`state`)) left join `vn`.`ticketParking` `tp` on(`tp`.`ticketFk` = `t`.`id`)) left join `vn`.`parking` `p` on(`p`.`id` = `tp`.`parkingFk`)) where ifnull(`t`.`packages`,0) = 0 */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -79416,7 +78587,6 @@ USE `vn`;
-- Final view structure for view `expeditionScan_Monitor`
--
-/*!50001 DROP TABLE IF EXISTS `expeditionScan_Monitor`*/;
/*!50001 DROP VIEW IF EXISTS `expeditionScan_Monitor`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79435,7 +78605,6 @@ USE `vn`;
-- Final view structure for view `expeditionSticker`
--
-/*!50001 DROP TABLE IF EXISTS `expeditionSticker`*/;
/*!50001 DROP VIEW IF EXISTS `expeditionSticker`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79454,7 +78623,6 @@ USE `vn`;
-- Final view structure for view `expeditionTicket_NoBoxes`
--
-/*!50001 DROP TABLE IF EXISTS `expeditionTicket_NoBoxes`*/;
/*!50001 DROP VIEW IF EXISTS `expeditionTicket_NoBoxes`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79464,7 +78632,7 @@ USE `vn`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `expeditionTicket_NoBoxes` AS select `t`.`id` AS `ticketFk`,`t`.`warehouseFk` AS `warehouseFk`,`t`.`routeFk` AS `routeFk`,`et`.`description` AS `description` from (((`ticket` `t` left join `expedition` `e` on(`e`.`ticketFk` = `t`.`id`)) join `routesMonitor` `rm` on(`rm`.`routeFk` = `t`.`routeFk`)) join `expeditionTruck` `et` on(`et`.`id` = `rm`.`expeditionTruckFk`)) where `e`.`id` is null and `et`.`ETD` > `util`.`VN_CURDATE`() */;
+/*!50001 VIEW `expeditionTicket_NoBoxes` AS select `t`.`id` AS `ticketFk`,`t`.`warehouseFk` AS `warehouseFk`,`t`.`routeFk` AS `routeFk`,`et`.`description` AS `description` from (((`ticket` `t` left join `expedition` `e` on(`e`.`ticketFk` = `t`.`id`)) join `routesMonitor` `rm` on(`rm`.`routeFk` = `t`.`routeFk`)) join `expeditionTruck` `et` on(`et`.`id` = `rm`.`expeditionTruckFk`)) where `e`.`id` is null and `et`.`ETD` > util.VN_CURDATE() */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -79473,7 +78641,6 @@ USE `vn`;
-- Final view structure for view `expeditionTimeExpended`
--
-/*!50001 DROP TABLE IF EXISTS `expeditionTimeExpended`*/;
/*!50001 DROP VIEW IF EXISTS `expeditionTimeExpended`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79483,7 +78650,7 @@ USE `vn`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `expeditionTimeExpended` AS select `e`.`ticketFk` AS `ticketFk`,min(`e`.`created`) AS `started`,max(`e`.`created`) AS `finished`,max(`e`.`counter`) AS `cajas`,`w`.`code` AS `code`,`t`.`warehouseFk` AS `warehouseFk` from ((`expedition` `e` join `worker` `w` on(`w`.`id` = `e`.`workerFk`)) join `ticket` `t` on(`t`.`id` = `e`.`ticketFk`)) where `e`.`created` > `util`.`VN_CURDATE`() group by `e`.`ticketFk` */;
+/*!50001 VIEW `expeditionTimeExpended` AS select `e`.`ticketFk` AS `ticketFk`,min(`e`.`created`) AS `started`,max(`e`.`created`) AS `finished`,max(`e`.`counter`) AS `cajas`,`w`.`code` AS `code`,`t`.`warehouseFk` AS `warehouseFk` from ((`expedition` `e` join `worker` `w` on(`w`.`id` = `e`.`workerFk`)) join `ticket` `t` on(`t`.`id` = `e`.`ticketFk`)) where `e`.`created` > util.VN_CURDATE() group by `e`.`ticketFk` */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -79492,7 +78659,6 @@ USE `vn`;
-- Final view structure for view `expeditionTruck_Control`
--
-/*!50001 DROP TABLE IF EXISTS `expeditionTruck_Control`*/;
/*!50001 DROP VIEW IF EXISTS `expeditionTruck_Control`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79511,7 +78677,6 @@ USE `vn`;
-- Final view structure for view `expeditionTruck_Control_Detail`
--
-/*!50001 DROP TABLE IF EXISTS `expeditionTruck_Control_Detail`*/;
/*!50001 DROP VIEW IF EXISTS `expeditionTruck_Control_Detail`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79530,7 +78695,6 @@ USE `vn`;
-- Final view structure for view `expeditionTruck_Control_Detail_Pallet`
--
-/*!50001 DROP TABLE IF EXISTS `expeditionTruck_Control_Detail_Pallet`*/;
/*!50001 DROP VIEW IF EXISTS `expeditionTruck_Control_Detail_Pallet`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79549,7 +78713,6 @@ USE `vn`;
-- Final view structure for view `firstTicketShipped`
--
-/*!50001 DROP TABLE IF EXISTS `firstTicketShipped`*/;
/*!50001 DROP VIEW IF EXISTS `firstTicketShipped`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79568,7 +78731,6 @@ USE `vn`;
-- Final view structure for view `floraHollandBuyedItems`
--
-/*!50001 DROP TABLE IF EXISTS `floraHollandBuyedItems`*/;
/*!50001 DROP VIEW IF EXISTS `floraHollandBuyedItems`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79587,7 +78749,6 @@ USE `vn`;
-- Final view structure for view `inkL10n`
--
-/*!50001 DROP TABLE IF EXISTS `inkL10n`*/;
/*!50001 DROP VIEW IF EXISTS `inkL10n`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79606,7 +78767,6 @@ USE `vn`;
-- Final view structure for view `invoiceCorrectionDataSource`
--
-/*!50001 DROP TABLE IF EXISTS `invoiceCorrectionDataSource`*/;
/*!50001 DROP VIEW IF EXISTS `invoiceCorrectionDataSource`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79616,7 +78776,7 @@ USE `vn`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `invoiceCorrectionDataSource` AS select `s`.`itemFk` AS `itemFk`,`s`.`quantity` AS `quantity`,`s`.`concept` AS `concept`,`s`.`price` AS `price`,`s`.`discount` AS `discount`,`t`.`refFk` AS `refFk`,`s`.`id` AS `saleFk`,`t`.`shipped` AS `shipped` from (`sale` `s` join `ticket` `t` on(`t`.`id` = `s`.`ticketFk`)) where `t`.`shipped` > `util`.`VN_CURDATE`() + interval -3 year */;
+/*!50001 VIEW `invoiceCorrectionDataSource` AS select `s`.`itemFk` AS `itemFk`,`s`.`quantity` AS `quantity`,`s`.`concept` AS `concept`,`s`.`price` AS `price`,`s`.`discount` AS `discount`,`t`.`refFk` AS `refFk`,`s`.`id` AS `saleFk`,`t`.`shipped` AS `shipped` from (`sale` `s` join `ticket` `t` on(`t`.`id` = `s`.`ticketFk`)) where `t`.`shipped` > util.VN_CURDATE() + interval -3 year */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -79625,7 +78785,6 @@ USE `vn`;
-- Final view structure for view `itemBotanicalWithGenus`
--
-/*!50001 DROP TABLE IF EXISTS `itemBotanicalWithGenus`*/;
/*!50001 DROP VIEW IF EXISTS `itemBotanicalWithGenus`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79644,7 +78803,6 @@ USE `vn`;
-- Final view structure for view `itemCategoryL10n`
--
-/*!50001 DROP TABLE IF EXISTS `itemCategoryL10n`*/;
/*!50001 DROP VIEW IF EXISTS `itemCategoryL10n`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79663,7 +78821,6 @@ USE `vn`;
-- Final view structure for view `itemColor`
--
-/*!50001 DROP TABLE IF EXISTS `itemColor`*/;
/*!50001 DROP VIEW IF EXISTS `itemColor`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79682,7 +78839,6 @@ USE `vn`;
-- Final view structure for view `itemEntryIn`
--
-/*!50001 DROP TABLE IF EXISTS `itemEntryIn`*/;
/*!50001 DROP VIEW IF EXISTS `itemEntryIn`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79701,7 +78857,6 @@ USE `vn`;
-- Final view structure for view `itemEntryOut`
--
-/*!50001 DROP TABLE IF EXISTS `itemEntryOut`*/;
/*!50001 DROP VIEW IF EXISTS `itemEntryOut`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79720,7 +78875,6 @@ USE `vn`;
-- Final view structure for view `itemInk`
--
-/*!50001 DROP TABLE IF EXISTS `itemInk`*/;
/*!50001 DROP VIEW IF EXISTS `itemInk`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79739,7 +78893,6 @@ USE `vn`;
-- Final view structure for view `itemPlacementSupplyList`
--
-/*!50001 DROP TABLE IF EXISTS `itemPlacementSupplyList`*/;
/*!50001 DROP VIEW IF EXISTS `itemPlacementSupplyList`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79749,7 +78902,7 @@ USE `vn`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `itemPlacementSupplyList` AS select `ips`.`id` AS `id`,`ips`.`itemFk` AS `itemFk`,`ips`.`quantity` AS `quantity`,`ips`.`priority` AS `priority`,ifnull(`isps`.`created`,`ips`.`created`) AS `created`,`ips`.`userFk` AS `userFk`,`ips`.`repoUserFk` AS `repoUserFk`,`ips`.`quantity` - sum(ifnull(`isps`.`quantity`,0)) AS `saldo`,concat(`i`.`longName`,' ',`i`.`size`) AS `longName`,`i`.`subName` AS `subName`,`i`.`size` AS `size`,`w`.`code` AS `workerCode`,`rw`.`code` AS `repoCode`,`ips`.`sectorFk` AS `sectorFk` from ((((`itemPlacementSupply` `ips` join `item` `i` on(`i`.`id` = `ips`.`itemFk`)) left join `worker` `w` on(`w`.`userFk` = `ips`.`userFk`)) left join `worker` `rw` on(`rw`.`userFk` = `ips`.`repoUserFk`)) left join `itemShelvingPlacementSupply` `isps` on(`isps`.`itemPlacementSupplyFk` = `ips`.`id`)) where `ips`.`created` >= `util`.`VN_CURDATE`() group by `ips`.`priority`,`ips`.`id`,`ips`.`sectorFk` */;
+/*!50001 VIEW `itemPlacementSupplyList` AS select `ips`.`id` AS `id`,`ips`.`itemFk` AS `itemFk`,`ips`.`quantity` AS `quantity`,`ips`.`priority` AS `priority`,ifnull(`isps`.`created`,`ips`.`created`) AS `created`,`ips`.`userFk` AS `userFk`,`ips`.`repoUserFk` AS `repoUserFk`,`ips`.`quantity` - sum(ifnull(`isps`.`quantity`,0)) AS `saldo`,concat(`i`.`longName`,' ',`i`.`size`) AS `longName`,`i`.`subName` AS `subName`,`i`.`size` AS `size`,`w`.`code` AS `workerCode`,`rw`.`code` AS `repoCode`,`ips`.`sectorFk` AS `sectorFk` from ((((`itemPlacementSupply` `ips` join `item` `i` on(`i`.`id` = `ips`.`itemFk`)) left join `worker` `w` on(`w`.`userFk` = `ips`.`userFk`)) left join `worker` `rw` on(`rw`.`userFk` = `ips`.`repoUserFk`)) left join `itemShelvingPlacementSupply` `isps` on(`isps`.`itemPlacementSupplyFk` = `ips`.`id`)) where `ips`.`created` >= util.VN_CURDATE() group by `ips`.`priority`,`ips`.`id`,`ips`.`sectorFk` */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -79758,7 +78911,6 @@ USE `vn`;
-- Final view structure for view `itemProductor`
--
-/*!50001 DROP TABLE IF EXISTS `itemProductor`*/;
/*!50001 DROP VIEW IF EXISTS `itemProductor`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79777,7 +78929,6 @@ USE `vn`;
-- Final view structure for view `itemSearch`
--
-/*!50001 DROP TABLE IF EXISTS `itemSearch`*/;
/*!50001 DROP VIEW IF EXISTS `itemSearch`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79796,7 +78947,6 @@ USE `vn`;
-- Final view structure for view `itemShelvingAvailable`
--
-/*!50001 DROP TABLE IF EXISTS `itemShelvingAvailable`*/;
/*!50001 DROP VIEW IF EXISTS `itemShelvingAvailable`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79806,7 +78956,7 @@ USE `vn`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `itemShelvingAvailable` AS select `s`.`id` AS `saleFk`,`tst`.`updated` AS `Modificado`,`s`.`ticketFk` AS `ticketFk`,0 AS `isPicked`,`s`.`itemFk` AS `itemFk`,`s`.`quantity` AS `quantity`,`s`.`concept` AS `concept`,`i`.`size` AS `size`,`st`.`name` AS `Estado`,`st`.`sectorProdPriority` AS `sectorProdPriority`,`stock`.`visible` AS `available`,`stock`.`sectorFk` AS `sectorFk`,`stock`.`shelvingFk` AS `matricula`,`stock`.`parkingFk` AS `parking`,`stock`.`itemShelvingFk` AS `itemShelving`,`am`.`name` AS `Agency`,`t`.`shipped` AS `shipped`,`stock`.`grouping` AS `grouping`,`stock`.`packing` AS `packing`,`z`.`hour` AS `hour`,`st`.`isPreviousPreparable` AS `isPreviousPreparable`,`sv`.`physicalVolume` AS `physicalVolume`,`t`.`warehouseFk` AS `warehouseFk` from (((((((((`vn`.`sale` `s` join `vn`.`ticket` `t` on(`t`.`id` = `s`.`ticketFk`)) join `vn`.`agencyMode` `am` on(`am`.`id` = `t`.`agencyModeFk`)) join `vn`.`ticketStateToday` `tst` on(`tst`.`ticket` = `t`.`id`)) join `vn`.`state` `st` on(`st`.`id` = `tst`.`state`)) join `vn`.`item` `i` on(`i`.`id` = `s`.`itemFk`)) join `vn`.`itemShelvingStock` `stock` on(`stock`.`itemFk` = `i`.`id`)) left join `vn`.`saleTracking` `stk` on(`stk`.`saleFk` = `s`.`id`)) left join `vn`.`zone` `z` on(`z`.`id` = `t`.`zoneFk`)) left join `vn`.`saleVolume` `sv` on(`sv`.`saleFk` = `s`.`id`)) where `t`.`shipped` between `util`.`yesterday`() and `util`.`dayend`(`util`.`VN_CURDATE`()) and `stk`.`id` is null and `stock`.`visible` > 0 and `stk`.`saleFk` is null and `st`.`isPreviousPreparable` <> 0 */;
+/*!50001 VIEW `itemShelvingAvailable` AS select `s`.`id` AS `saleFk`,`tst`.`updated` AS `Modificado`,`s`.`ticketFk` AS `ticketFk`,0 AS `isPicked`,`s`.`itemFk` AS `itemFk`,`s`.`quantity` AS `quantity`,`s`.`concept` AS `concept`,`i`.`size` AS `size`,`st`.`name` AS `Estado`,`st`.`sectorProdPriority` AS `sectorProdPriority`,`stock`.`visible` AS `available`,`stock`.`sectorFk` AS `sectorFk`,`stock`.`shelvingFk` AS `matricula`,`stock`.`parkingFk` AS `parking`,`stock`.`itemShelvingFk` AS `itemShelving`,`am`.`name` AS `Agency`,`t`.`shipped` AS `shipped`,`stock`.`grouping` AS `grouping`,`stock`.`packing` AS `packing`,`z`.`hour` AS `hour`,`st`.`isPreviousPreparable` AS `isPreviousPreparable`,`sv`.`physicalVolume` AS `physicalVolume`,`t`.`warehouseFk` AS `warehouseFk` from (((((((((`vn`.`sale` `s` join `vn`.`ticket` `t` on(`t`.`id` = `s`.`ticketFk`)) join `vn`.`agencyMode` `am` on(`am`.`id` = `t`.`agencyModeFk`)) join `vn`.`ticketStateToday` `tst` on(`tst`.`ticket` = `t`.`id`)) join `vn`.`state` `st` on(`st`.`id` = `tst`.`state`)) join `vn`.`item` `i` on(`i`.`id` = `s`.`itemFk`)) join `vn`.`itemShelvingStock` `stock` on(`stock`.`itemFk` = `i`.`id`)) left join `vn`.`saleTracking` `stk` on(`stk`.`saleFk` = `s`.`id`)) left join `vn`.`zone` `z` on(`z`.`id` = `t`.`zoneFk`)) left join `vn`.`saleVolume` `sv` on(`sv`.`saleFk` = `s`.`id`)) where `t`.`shipped` between `util`.`yesterday`() and `util`.`dayend`(util.VN_CURDATE()) and `stk`.`id` is null and `stock`.`visible` > 0 and `stk`.`saleFk` is null and `st`.`isPreviousPreparable` <> 0 */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -79815,7 +78965,6 @@ USE `vn`;
-- Final view structure for view `itemShelvingList`
--
-/*!50001 DROP TABLE IF EXISTS `itemShelvingList`*/;
/*!50001 DROP VIEW IF EXISTS `itemShelvingList`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79834,7 +78983,6 @@ USE `vn`;
-- Final view structure for view `itemShelvingPlacementSupplyStock`
--
-/*!50001 DROP TABLE IF EXISTS `itemShelvingPlacementSupplyStock`*/;
/*!50001 DROP VIEW IF EXISTS `itemShelvingPlacementSupplyStock`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79853,7 +79001,6 @@ USE `vn`;
-- Final view structure for view `itemShelvingSaleSum`
--
-/*!50001 DROP TABLE IF EXISTS `itemShelvingSaleSum`*/;
/*!50001 DROP VIEW IF EXISTS `itemShelvingSaleSum`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79872,7 +79019,6 @@ USE `vn`;
-- Final view structure for view `itemShelvingStock`
--
-/*!50001 DROP TABLE IF EXISTS `itemShelvingStock`*/;
/*!50001 DROP VIEW IF EXISTS `itemShelvingStock`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79891,7 +79037,6 @@ USE `vn`;
-- Final view structure for view `itemShelvingStockFull`
--
-/*!50001 DROP TABLE IF EXISTS `itemShelvingStockFull`*/;
/*!50001 DROP VIEW IF EXISTS `itemShelvingStockFull`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79910,7 +79055,6 @@ USE `vn`;
-- Final view structure for view `itemShelvingStockRemoved`
--
-/*!50001 DROP TABLE IF EXISTS `itemShelvingStockRemoved`*/;
/*!50001 DROP VIEW IF EXISTS `itemShelvingStockRemoved`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79929,7 +79073,6 @@ USE `vn`;
-- Final view structure for view `itemShelvingStock_byWarehouse`
--
-/*!50001 DROP TABLE IF EXISTS `itemShelvingStock_byWarehouse`*/;
/*!50001 DROP VIEW IF EXISTS `itemShelvingStock_byWarehouse`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79948,7 +79091,6 @@ USE `vn`;
-- Final view structure for view `itemTagged`
--
-/*!50001 DROP TABLE IF EXISTS `itemTagged`*/;
/*!50001 DROP VIEW IF EXISTS `itemTagged`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79967,7 +79109,6 @@ USE `vn`;
-- Final view structure for view `itemTicketOut`
--
-/*!50001 DROP TABLE IF EXISTS `itemTicketOut`*/;
/*!50001 DROP VIEW IF EXISTS `itemTicketOut`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -79986,7 +79127,6 @@ USE `vn`;
-- Final view structure for view `itemTypeL10n`
--
-/*!50001 DROP TABLE IF EXISTS `itemTypeL10n`*/;
/*!50001 DROP VIEW IF EXISTS `itemTypeL10n`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80005,7 +79145,6 @@ USE `vn`;
-- Final view structure for view `item_Free_Id`
--
-/*!50001 DROP TABLE IF EXISTS `item_Free_Id`*/;
/*!50001 DROP VIEW IF EXISTS `item_Free_Id`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80015,7 +79154,7 @@ USE `vn`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `item_Free_Id` AS select `i1`.`id` + 1 AS `newId` from (`item` `i1` left join `item` `i2` on(`i1`.`id` + 1 = `i2`.`id`)) where `i2`.`id` is null and `i1`.`id` > 400000 */;
+/*!50001 VIEW `item_Free_Id` AS select `i1`.`id` + 1 AS `newId` from (`item` `i1` left join `item` `i2` on(`i1`.`id` + 1 = `i2`.`id`)) where `i2`.`id` is null and `i1`.`isFloramondo` <> 0 */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -80024,7 +79163,6 @@ USE `vn`;
-- Final view structure for view `labelInfo`
--
-/*!50001 DROP TABLE IF EXISTS `labelInfo`*/;
/*!50001 DROP VIEW IF EXISTS `labelInfo`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80043,7 +79181,6 @@ USE `vn`;
-- Final view structure for view `lastHourProduction`
--
-/*!50001 DROP TABLE IF EXISTS `lastHourProduction`*/;
/*!50001 DROP VIEW IF EXISTS `lastHourProduction`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80062,7 +79199,6 @@ USE `vn`;
-- Final view structure for view `lastPurchases`
--
-/*!50001 DROP TABLE IF EXISTS `lastPurchases`*/;
/*!50001 DROP VIEW IF EXISTS `lastPurchases`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80081,7 +79217,6 @@ USE `vn`;
-- Final view structure for view `lastTopClaims`
--
-/*!50001 DROP TABLE IF EXISTS `lastTopClaims`*/;
/*!50001 DROP VIEW IF EXISTS `lastTopClaims`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80091,7 +79226,7 @@ USE `vn`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `lastTopClaims` AS select `s`.`itemFk` AS `itemFk`,`i`.`longName` AS `itemName`,`it`.`name` AS `itemTypeName`,count(0) AS `claimsNumber`,round(sum(`cb`.`quantity` * `s`.`price` * (1 - (`c`.`responsibility` - 1) / 4) * (100 - `s`.`discount`) / 100),2) AS `claimedAmount`,round(sum(`cb`.`quantity` * `s`.`price` * (100 - `s`.`discount`) / 100),2) AS `totalAmount` from ((((`claim` `c` join `claimBeginning` `cb` on(`cb`.`claimFk` = `c`.`id`)) join `sale` `s` on(`s`.`id` = `cb`.`saleFk`)) join `item` `i` on(`i`.`id` = `s`.`itemFk`)) join `itemType` `it` on(`it`.`id` = `i`.`typeFk`)) where `c`.`created` >= `util`.`VN_CURDATE`() + interval -1 week group by `s`.`itemFk` having `claimedAmount` > 100 and `claimsNumber` > 2 or `claimsNumber` > 4 order by count(0) desc */;
+/*!50001 VIEW `lastTopClaims` AS select `s`.`itemFk` AS `itemFk`,`i`.`longName` AS `itemName`,`it`.`name` AS `itemTypeName`,count(0) AS `claimsNumber`,round(sum(`cb`.`quantity` * `s`.`price` * (1 - (`c`.`responsibility` - 1) / 4) * (100 - `s`.`discount`) / 100),2) AS `claimedAmount`,round(sum(`cb`.`quantity` * `s`.`price` * (100 - `s`.`discount`) / 100),2) AS `totalAmount` from ((((`claim` `c` join `claimBeginning` `cb` on(`cb`.`claimFk` = `c`.`id`)) join `sale` `s` on(`s`.`id` = `cb`.`saleFk`)) join `item` `i` on(`i`.`id` = `s`.`itemFk`)) join `itemType` `it` on(`it`.`id` = `i`.`typeFk`)) where `c`.`created` >= util.VN_CURDATE() + interval -1 week group by `s`.`itemFk` having `claimedAmount` > 100 and `claimsNumber` > 2 or `claimsNumber` > 4 order by count(0) desc */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -80100,7 +79235,6 @@ USE `vn`;
-- Final view structure for view `mistake`
--
-/*!50001 DROP TABLE IF EXISTS `mistake`*/;
/*!50001 DROP VIEW IF EXISTS `mistake`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80119,7 +79253,6 @@ USE `vn`;
-- Final view structure for view `mistakeRatio`
--
-/*!50001 DROP TABLE IF EXISTS `mistakeRatio`*/;
/*!50001 DROP VIEW IF EXISTS `mistakeRatio`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80138,7 +79271,6 @@ USE `vn`;
-- Final view structure for view `newBornSales`
--
-/*!50001 DROP TABLE IF EXISTS `newBornSales`*/;
/*!50001 DROP VIEW IF EXISTS `newBornSales`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80157,7 +79289,6 @@ USE `vn`;
-- Final view structure for view `operatorWorkerCode`
--
-/*!50001 DROP TABLE IF EXISTS `operatorWorkerCode`*/;
/*!50001 DROP VIEW IF EXISTS `operatorWorkerCode`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80176,7 +79307,6 @@ USE `vn`;
-- Final view structure for view `originL10n`
--
-/*!50001 DROP TABLE IF EXISTS `originL10n`*/;
/*!50001 DROP VIEW IF EXISTS `originL10n`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80195,7 +79325,6 @@ USE `vn`;
-- Final view structure for view `packageEquivalentItem`
--
-/*!50001 DROP TABLE IF EXISTS `packageEquivalentItem`*/;
/*!50001 DROP VIEW IF EXISTS `packageEquivalentItem`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80214,7 +79343,6 @@ USE `vn`;
-- Final view structure for view `personMedia`
--
-/*!50001 DROP TABLE IF EXISTS `personMedia`*/;
/*!50001 DROP VIEW IF EXISTS `personMedia`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80233,7 +79361,6 @@ USE `vn`;
-- Final view structure for view `phoneBook`
--
-/*!50001 DROP TABLE IF EXISTS `phoneBook`*/;
/*!50001 DROP VIEW IF EXISTS `phoneBook`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80252,7 +79379,6 @@ USE `vn`;
-- Final view structure for view `productionVolume`
--
-/*!50001 DROP TABLE IF EXISTS `productionVolume`*/;
/*!50001 DROP VIEW IF EXISTS `productionVolume`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80262,7 +79388,7 @@ USE `vn`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `productionVolume` AS select hour(`e`.`created`) AS `hora`,minute(`e`.`created`) AS `minuto`,ifnull(`p`.`volume`,ifnull(`p`.`width` * `p`.`height` * `p`.`depth`,94500)) AS `cm3`,`t`.`warehouseFk` AS `warehouseFk`,`e`.`created` AS `created` from (((`expedition` `e` left join `packaging` `p` on(`p`.`id` = `e`.`packagingFk`)) join `ticket` `t` on(`t`.`id` = `e`.`ticketFk`)) join `client` `c` on(`c`.`id` = `t`.`clientFk`)) where `e`.`created` between `util`.`VN_CURDATE`() and `util`.`dayend`(`util`.`VN_CURDATE`()) and `c`.`isRelevant` <> 0 */;
+/*!50001 VIEW `productionVolume` AS select hour(`e`.`created`) AS `hora`,minute(`e`.`created`) AS `minuto`,ifnull(`p`.`volume`,ifnull(`p`.`width` * `p`.`height` * `p`.`depth`,94500)) AS `cm3`,`t`.`warehouseFk` AS `warehouseFk`,`e`.`created` AS `created` from (((`expedition` `e` left join `packaging` `p` on(`p`.`id` = `e`.`packagingFk`)) join `ticket` `t` on(`t`.`id` = `e`.`ticketFk`)) join `client` `c` on(`c`.`id` = `t`.`clientFk`)) where `e`.`created` between util.VN_CURDATE() and `util`.`dayend`(util.VN_CURDATE()) and `c`.`isRelevant` <> 0 */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -80271,7 +79397,6 @@ USE `vn`;
-- Final view structure for view `productionVolume_LastHour`
--
-/*!50001 DROP TABLE IF EXISTS `productionVolume_LastHour`*/;
/*!50001 DROP VIEW IF EXISTS `productionVolume_LastHour`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80290,7 +79415,6 @@ USE `vn`;
-- Final view structure for view `role`
--
-/*!50001 DROP TABLE IF EXISTS `role`*/;
/*!50001 DROP VIEW IF EXISTS `role`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80309,7 +79433,6 @@ USE `vn`;
-- Final view structure for view `routesReduced`
--
-/*!50001 DROP TABLE IF EXISTS `routesReduced`*/;
/*!50001 DROP VIEW IF EXISTS `routesReduced`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80328,7 +79451,6 @@ USE `vn`;
-- Final view structure for view `saleCost`
--
-/*!50001 DROP TABLE IF EXISTS `saleCost`*/;
/*!50001 DROP VIEW IF EXISTS `saleCost`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80343,11 +79465,28 @@ USE `vn`;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
+--
+-- Final view structure for view `saleLabel`
+--
+
+/*!50001 DROP VIEW IF EXISTS `saleLabel`*/;
+/*!50001 SET @saved_cs_client = @@character_set_client */;
+/*!50001 SET @saved_cs_results = @@character_set_results */;
+/*!50001 SET @saved_col_connection = @@collation_connection */;
+/*!50001 SET character_set_client = utf8mb4 */;
+/*!50001 SET character_set_results = utf8mb4 */;
+/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
+/*!50001 CREATE ALGORITHM=UNDEFINED */
+/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
+/*!50001 VIEW `saleLabel` AS select `ml`.`Id_movimiento` AS `saleFk`,`ml`.`label` AS `label`,`ml`.`stem` AS `stem`,`ml`.`created` AS `created` from `vn2008`.`movement_label` `ml` */;
+/*!50001 SET character_set_client = @saved_cs_client */;
+/*!50001 SET character_set_results = @saved_cs_results */;
+/*!50001 SET collation_connection = @saved_col_connection */;
+
--
-- Final view structure for view `saleMistakeList`
--
-/*!50001 DROP TABLE IF EXISTS `saleMistakeList`*/;
/*!50001 DROP VIEW IF EXISTS `saleMistakeList`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80366,7 +79505,6 @@ USE `vn`;
-- Final view structure for view `saleMistake_list__2`
--
-/*!50001 DROP TABLE IF EXISTS `saleMistake_list__2`*/;
/*!50001 DROP VIEW IF EXISTS `saleMistake_list__2`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80385,7 +79523,6 @@ USE `vn`;
-- Final view structure for view `saleSaleTracking`
--
-/*!50001 DROP TABLE IF EXISTS `saleSaleTracking`*/;
/*!50001 DROP VIEW IF EXISTS `saleSaleTracking`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80395,7 +79532,7 @@ USE `vn`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `saleSaleTracking` AS select distinct `st`.`saleFk` AS `saleFk` from `saleTracking` `st` where `st`.`created` >= `util`.`VN_CURDATE`() + interval -1 day */;
+/*!50001 VIEW `saleSaleTracking` AS select distinct `st`.`saleFk` AS `saleFk` from `saleTracking` `st` where `st`.`created` >= util.VN_CURDATE() + interval -1 day */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -80404,7 +79541,6 @@ USE `vn`;
-- Final view structure for view `saleValue`
--
-/*!50001 DROP TABLE IF EXISTS `saleValue`*/;
/*!50001 DROP VIEW IF EXISTS `saleValue`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80423,7 +79559,6 @@ USE `vn`;
-- Final view structure for view `saleVolume`
--
-/*!50001 DROP TABLE IF EXISTS `saleVolume`*/;
/*!50001 DROP VIEW IF EXISTS `saleVolume`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80442,7 +79577,6 @@ USE `vn`;
-- Final view structure for view `saleVolume_Today_VNH`
--
-/*!50001 DROP TABLE IF EXISTS `saleVolume_Today_VNH`*/;
/*!50001 DROP VIEW IF EXISTS `saleVolume_Today_VNH`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80452,7 +79586,7 @@ USE `vn`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `saleVolume_Today_VNH` AS select `t`.`nickname` AS `Cliente`,`p`.`name` AS `Provincia`,`c`.`country` AS `Pais`,cast(sum(`sv`.`volume`) as decimal(5,1)) AS `volume` from (((((`saleVolume` `sv` join `ticket` `t` on(`t`.`id` = `sv`.`ticketFk`)) join `address` `a` on(`a`.`id` = `t`.`addressFk`)) join `province` `p` on(`p`.`id` = `a`.`provinceFk`)) join `country` `c` on(`c`.`id` = `p`.`countryFk`)) join `warehouse` `w` on(`w`.`id` = `t`.`warehouseFk`)) where `w`.`name` = 'VNH' and `t`.`shipped` between `util`.`VN_CURDATE`() and `util`.`dayend`(`util`.`VN_CURDATE`()) group by `t`.`nickname`,`p`.`name` */;
+/*!50001 VIEW `saleVolume_Today_VNH` AS select `t`.`nickname` AS `Cliente`,`p`.`name` AS `Provincia`,`c`.`country` AS `Pais`,cast(sum(`sv`.`volume`) as decimal(5,1)) AS `volume` from (((((`saleVolume` `sv` join `ticket` `t` on(`t`.`id` = `sv`.`ticketFk`)) join `address` `a` on(`a`.`id` = `t`.`addressFk`)) join `province` `p` on(`p`.`id` = `a`.`provinceFk`)) join `country` `c` on(`c`.`id` = `p`.`countryFk`)) join `warehouse` `w` on(`w`.`id` = `t`.`warehouseFk`)) where `w`.`name` = 'VNH' and `t`.`shipped` between util.VN_CURDATE() and `util`.`dayend`(util.VN_CURDATE()) group by `t`.`nickname`,`p`.`name` */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -80461,7 +79595,6 @@ USE `vn`;
-- Final view structure for view `sale_freightComponent`
--
-/*!50001 DROP TABLE IF EXISTS `sale_freightComponent`*/;
/*!50001 DROP VIEW IF EXISTS `sale_freightComponent`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80480,7 +79613,6 @@ USE `vn`;
-- Final view structure for view `salesPersonSince`
--
-/*!50001 DROP TABLE IF EXISTS `salesPersonSince`*/;
/*!50001 DROP VIEW IF EXISTS `salesPersonSince`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80499,7 +79631,6 @@ USE `vn`;
-- Final view structure for view `salesPreparedLastHour`
--
-/*!50001 DROP TABLE IF EXISTS `salesPreparedLastHour`*/;
/*!50001 DROP VIEW IF EXISTS `salesPreparedLastHour`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80518,7 +79649,6 @@ USE `vn`;
-- Final view structure for view `salesPreviousPreparated`
--
-/*!50001 DROP TABLE IF EXISTS `salesPreviousPreparated`*/;
/*!50001 DROP VIEW IF EXISTS `salesPreviousPreparated`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80528,7 +79658,7 @@ USE `vn`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `salesPreviousPreparated` AS select `st`.`saleFk` AS `saleFk` from (`saleTracking` `st` join `state` `e` on(`e`.`id` = `st`.`stateFk`)) where `st`.`created` > `util`.`VN_CURDATE`() and `e`.`code` like 'PREVIOUS_PREPARATION' */;
+/*!50001 VIEW `salesPreviousPreparated` AS select `st`.`saleFk` AS `saleFk` from (`saleTracking` `st` join `state` `e` on(`e`.`id` = `st`.`stateFk`)) where `st`.`created` > util.VN_CURDATE() and `e`.`code` like 'PREVIOUS_PREPARATION' */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -80537,7 +79667,6 @@ USE `vn`;
-- Final view structure for view `supplierPackaging`
--
-/*!50001 DROP TABLE IF EXISTS `supplierPackaging`*/;
/*!50001 DROP VIEW IF EXISTS `supplierPackaging`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80556,7 +79685,6 @@ USE `vn`;
-- Final view structure for view `tagL10n`
--
-/*!50001 DROP TABLE IF EXISTS `tagL10n`*/;
/*!50001 DROP VIEW IF EXISTS `tagL10n`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80575,7 +79703,6 @@ USE `vn`;
-- Final view structure for view `ticketLastUpdated`
--
-/*!50001 DROP TABLE IF EXISTS `ticketLastUpdated`*/;
/*!50001 DROP VIEW IF EXISTS `ticketLastUpdated`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80594,7 +79721,6 @@ USE `vn`;
-- Final view structure for view `ticketLastUpdatedList`
--
-/*!50001 DROP TABLE IF EXISTS `ticketLastUpdatedList`*/;
/*!50001 DROP VIEW IF EXISTS `ticketLastUpdatedList`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80604,7 +79730,43 @@ USE `vn`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `ticketLastUpdatedList` AS select `s`.`ticketFk` AS `ticketFk`,`st`.`created` AS `created` from (`vn`.`saleTracking` `st` join `vn`.`sale` `s` on(`s`.`id` = `st`.`saleFk`)) where `st`.`created` > `util`.`VN_CURDATE`() union all select `i`.`Id_Ticket` AS `Id_Ticket`,`i`.`odbc_date` AS `odbc_date` from `vncontrol`.`inter` `i` where `i`.`odbc_date` > `util`.`VN_CURDATE`() union all select `s`.`ticketFk` AS `ticketFk`,`iss`.`created` AS `created` from (`vn`.`itemShelvingSale` `iss` join `vn`.`sale` `s` on(`s`.`id` = `iss`.`saleFk`)) where `iss`.`created` > `util`.`VN_CURDATE`() */;
+/*!50001 VIEW `ticketLastUpdatedList` AS select `s`.`ticketFk` AS `ticketFk`,`st`.`created` AS `created` from (`vn`.`saleTracking` `st` join `vn`.`sale` `s` on(`s`.`id` = `st`.`saleFk`)) where `st`.`created` > util.VN_CURDATE() union all select `i`.`Id_Ticket` AS `Id_Ticket`,`i`.`odbc_date` AS `odbc_date` from `vncontrol`.`inter` `i` where `i`.`odbc_date` > util.VN_CURDATE() union all select `s`.`ticketFk` AS `ticketFk`,`iss`.`created` AS `created` from (`vn`.`itemShelvingSale` `iss` join `vn`.`sale` `s` on(`s`.`id` = `iss`.`saleFk`)) where `iss`.`created` > util.VN_CURDATE() */;
+/*!50001 SET character_set_client = @saved_cs_client */;
+/*!50001 SET character_set_results = @saved_cs_results */;
+/*!50001 SET collation_connection = @saved_col_connection */;
+
+--
+-- Final view structure for view `ticketLocation`
+--
+
+/*!50001 DROP VIEW IF EXISTS `ticketLocation`*/;
+/*!50001 SET @saved_cs_client = @@character_set_client */;
+/*!50001 SET @saved_cs_results = @@character_set_results */;
+/*!50001 SET @saved_col_connection = @@collation_connection */;
+/*!50001 SET character_set_client = utf8mb4 */;
+/*!50001 SET character_set_results = utf8mb4 */;
+/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
+/*!50001 CREATE ALGORITHM=UNDEFINED */
+/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
+/*!50001 VIEW `ticketLocation` AS select `tl`.`Id_Ticket` AS `ticketFk`,`tl`.`longitude` AS `longitude`,`tl`.`latitude` AS `latitude` from `vn2008`.`ticket_location` `tl` */;
+/*!50001 SET character_set_client = @saved_cs_client */;
+/*!50001 SET character_set_results = @saved_cs_results */;
+/*!50001 SET collation_connection = @saved_col_connection */;
+
+--
+-- Final view structure for view `ticketMRW`
+--
+
+/*!50001 DROP VIEW IF EXISTS `ticketMRW`*/;
+/*!50001 SET @saved_cs_client = @@character_set_client */;
+/*!50001 SET @saved_cs_results = @@character_set_results */;
+/*!50001 SET @saved_col_connection = @@collation_connection */;
+/*!50001 SET character_set_client = utf8mb4 */;
+/*!50001 SET character_set_results = utf8mb4 */;
+/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
+/*!50001 CREATE ALGORITHM=UNDEFINED */
+/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
+/*!50001 VIEW `ticketMRW` AS select `Tickets`.`Id_Agencia` AS `id_Agencia`,`Tickets`.`empresa_id` AS `empresa_id`,`Consignatarios`.`consignatario` AS `Consignatario`,`Consignatarios`.`domicilio` AS `DOMICILIO`,`Consignatarios`.`poblacion` AS `POBLACION`,`Consignatarios`.`codPostal` AS `CODPOSTAL`,`Consignatarios`.`telefono` AS `telefono`,ifnull(ifnull(ifnull(ifnull(`Consignatarios`.`movil`,`Clientes`.`movil`),`Consignatarios`.`telefono`),`Clientes`.`telefono`),0) AS `movil`,`Clientes`.`if` AS `IF`,`Tickets`.`Id_Ticket` AS `Id_Ticket`,`Tickets`.`warehouse_id` AS `warehouse_id`,`Consignatarios`.`id_consigna` AS `Id_Consigna`,`Paises`.`Codigo` AS `CodigoPais`,`Tickets`.`Fecha` AS `Fecha`,`province`.`province_id` AS `province_id`,`Tickets`.`landing` AS `landing` from ((((`vn2008`.`Clientes` join `vn2008`.`Consignatarios` on(`Clientes`.`id_cliente` = `Consignatarios`.`Id_cliente`)) join `vn2008`.`Tickets` on(`Consignatarios`.`id_consigna` = `Tickets`.`Id_Consigna`)) join `vn2008`.`province` on(`Consignatarios`.`province_id` = `province`.`province_id`)) join `vn2008`.`Paises` on(`province`.`Paises_Id` = `Paises`.`Id`)) */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -80613,7 +79775,6 @@ USE `vn`;
-- Final view structure for view `ticketNotInvoiced`
--
-/*!50001 DROP TABLE IF EXISTS `ticketNotInvoiced`*/;
/*!50001 DROP VIEW IF EXISTS `ticketNotInvoiced`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80632,7 +79793,6 @@ USE `vn`;
-- Final view structure for view `ticketPackingList`
--
-/*!50001 DROP TABLE IF EXISTS `ticketPackingList`*/;
/*!50001 DROP VIEW IF EXISTS `ticketPackingList`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80651,7 +79811,6 @@ USE `vn`;
-- Final view structure for view `ticketPreviousPreparingList`
--
-/*!50001 DROP TABLE IF EXISTS `ticketPreviousPreparingList`*/;
/*!50001 DROP VIEW IF EXISTS `ticketPreviousPreparingList`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80661,7 +79820,7 @@ USE `vn`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `ticketPreviousPreparingList` AS select `s`.`ticketFk` AS `ticketFk`,`w`.`code` AS `code`,count(`s`.`id`) AS `saleLines`,sum(`s`.`isPicked` <> 0) AS `alreadyMadeSaleLines`,sum(`s`.`isPicked` <> 0) / count(`s`.`id`) AS `madeRate`,`sg`.`created` AS `created`,`p`.`code` AS `parking`,`iss`.`sectorFk` AS `sectorFk`,`al`.`code` AS `alertCode` from (((((((`vn`.`saleGroup` `sg` join `vn`.`saleGroupDetail` `sgd` on(`sgd`.`saleGroupFk` = `sg`.`id`)) join `vn`.`sale` `s` on(`s`.`id` = `sgd`.`saleFk`)) join `vn`.`ticketState` `tls` on(`tls`.`ticketFk` = `s`.`ticketFk`)) join `vn`.`alertLevel` `al` on(`al`.`id` = `tls`.`alertLevel`)) join `vn`.`worker` `w` on(`w`.`id` = `sg`.`userFk`)) left join `vn`.`parking` `p` on(`p`.`id` = `sg`.`parkingFk`)) join `vn`.`itemShelvingStock` `iss` on(`iss`.`itemFk` = `s`.`itemFk`)) where `sg`.`created` >= `util`.`VN_CURDATE`() + interval 0.1 day group by `sg`.`id` */;
+/*!50001 VIEW `ticketPreviousPreparingList` AS select `s`.`ticketFk` AS `ticketFk`,`w`.`code` AS `code`,count(`s`.`id`) AS `saleLines`,sum(`s`.`isPicked` <> 0) AS `alreadyMadeSaleLines`,sum(`s`.`isPicked` <> 0) / count(`s`.`id`) AS `madeRate`,`sg`.`created` AS `created`,`p`.`code` AS `parking`,`iss`.`sectorFk` AS `sectorFk`,`al`.`code` AS `alertCode` from (((((((`vn`.`saleGroup` `sg` join `vn`.`saleGroupDetail` `sgd` on(`sgd`.`saleGroupFk` = `sg`.`id`)) join `vn`.`sale` `s` on(`s`.`id` = `sgd`.`saleFk`)) join `vn`.`ticketState` `tls` on(`tls`.`ticketFk` = `s`.`ticketFk`)) join `vn`.`alertLevel` `al` on(`al`.`id` = `tls`.`alertLevel`)) join `vn`.`worker` `w` on(`w`.`id` = `sg`.`userFk`)) left join `vn`.`parking` `p` on(`p`.`id` = `sg`.`parkingFk`)) join `vn`.`itemShelvingStock` `iss` on(`iss`.`itemFk` = `s`.`itemFk`)) where `sg`.`created` >= util.VN_CURDATE() + interval 0.1 day group by `sg`.`id` */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -80670,7 +79829,6 @@ USE `vn`;
-- Final view structure for view `ticketState`
--
-/*!50001 DROP TABLE IF EXISTS `ticketState`*/;
/*!50001 DROP VIEW IF EXISTS `ticketState`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80689,7 +79847,6 @@ USE `vn`;
-- Final view structure for view `ticketStateToday`
--
-/*!50001 DROP TABLE IF EXISTS `ticketStateToday`*/;
/*!50001 DROP VIEW IF EXISTS `ticketStateToday`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80699,17 +79856,16 @@ USE `vn`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `ticketStateToday` AS select `ts`.`ticket` AS `ticket`,`ts`.`state` AS `state`,`ts`.`productionOrder` AS `productionOrder`,`ts`.`alertLevel` AS `alertLevel`,`ts`.`worker` AS `worker`,`ts`.`code` AS `code`,`ts`.`updated` AS `updated`,`ts`.`isPicked` AS `isPicked` from (`vn`.`ticketState` `ts` join `vn`.`ticket` `t` on(`t`.`id` = `ts`.`ticket`)) where `t`.`shipped` between `util`.`VN_CURDATE`() and `MIDNIGHT`(`util`.`VN_CURDATE`()) */;
+/*!50001 VIEW `ticketStateToday` AS select `ts`.`ticket` AS `ticket`,`ts`.`state` AS `state`,`ts`.`productionOrder` AS `productionOrder`,`ts`.`alertLevel` AS `alertLevel`,`ts`.`worker` AS `worker`,`ts`.`code` AS `code`,`ts`.`updated` AS `updated`,`ts`.`isPicked` AS `isPicked` from (`vn`.`ticketState` `ts` join `vn`.`ticket` `t` on(`t`.`id` = `ts`.`ticket`)) where `t`.`shipped` between util.VN_CURDATE() and `MIDNIGHT`(util.VN_CURDATE()) */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
--
--- Final view structure for view `ticketTracking`
+-- Final view structure for view `ticketTracking__`
--
-/*!50001 DROP TABLE IF EXISTS `ticketTracking`*/;
-/*!50001 DROP VIEW IF EXISTS `ticketTracking`*/;
+/*!50001 DROP VIEW IF EXISTS `ticketTracking__`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
/*!50001 SET @saved_col_connection = @@collation_connection */;
@@ -80718,7 +79874,7 @@ USE `vn`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `ticketTracking` AS select `i`.`inter_id` AS `id`,`i`.`state_id` AS `stateFk`,`i`.`odbc_date` AS `created`,`i`.`Id_Ticket` AS `ticketFk`,`i`.`Id_Trabajador` AS `workerFk` from `vncontrol`.`inter` `i` */;
+/*!50001 VIEW `ticketTracking__` AS select `i`.`inter_id` AS `id`,`i`.`state_id` AS `stateFk`,`i`.`odbc_date` AS `created`,`i`.`Id_Ticket` AS `ticketFk`,`i`.`Id_Trabajador` AS `workerFk` from `vncontrol`.`inter` `i` */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -80727,7 +79883,6 @@ USE `vn`;
-- Final view structure for view `tr2`
--
-/*!50001 DROP TABLE IF EXISTS `tr2`*/;
/*!50001 DROP VIEW IF EXISTS `tr2`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80746,7 +79901,6 @@ USE `vn`;
-- Final view structure for view `traceabilityBuy`
--
-/*!50001 DROP TABLE IF EXISTS `traceabilityBuy`*/;
/*!50001 DROP VIEW IF EXISTS `traceabilityBuy`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80765,7 +79919,6 @@ USE `vn`;
-- Final view structure for view `traceabilitySale`
--
-/*!50001 DROP TABLE IF EXISTS `traceabilitySale`*/;
/*!50001 DROP VIEW IF EXISTS `traceabilitySale`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80780,30 +79933,10 @@ USE `vn`;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
---
--- Final view structure for view `user`
---
-
-/*!50001 DROP TABLE IF EXISTS `user`*/;
-/*!50001 DROP VIEW IF EXISTS `user`*/;
-/*!50001 SET @saved_cs_client = @@character_set_client */;
-/*!50001 SET @saved_cs_results = @@character_set_results */;
-/*!50001 SET @saved_col_connection = @@collation_connection */;
-/*!50001 SET character_set_client = utf8mb4 */;
-/*!50001 SET character_set_results = utf8mb4 */;
-/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
-/*!50001 CREATE ALGORITHM=UNDEFINED */
-/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `user` AS select `account`.`user`.`id` AS `id`,`account`.`user`.`name` AS `name`,`account`.`user`.`password` AS `password`,`account`.`user`.`role` AS `role`,`account`.`user`.`active` AS `active`,`account`.`user`.`recoverPass` AS `recoverPass`,`account`.`user`.`lastPassChange` AS `lastPassChange` from `account`.`user` */;
-/*!50001 SET character_set_client = @saved_cs_client */;
-/*!50001 SET character_set_results = @saved_cs_results */;
-/*!50001 SET collation_connection = @saved_col_connection */;
-
--
-- Final view structure for view `workerBusinessDated`
--
-/*!50001 DROP TABLE IF EXISTS `workerBusinessDated`*/;
/*!50001 DROP VIEW IF EXISTS `workerBusinessDated`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80822,7 +79955,6 @@ USE `vn`;
-- Final view structure for view `workerCalendar`
--
-/*!50001 DROP TABLE IF EXISTS `workerCalendar`*/;
/*!50001 DROP VIEW IF EXISTS `workerCalendar`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80841,7 +79973,6 @@ USE `vn`;
-- Final view structure for view `workerDepartment`
--
-/*!50001 DROP TABLE IF EXISTS `workerDepartment`*/;
/*!50001 DROP VIEW IF EXISTS `workerDepartment`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80851,7 +79982,7 @@ USE `vn`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `workerDepartment` AS select `b`.`workerFk` AS `workerFk`,`b`.`departmentFk` AS `departmentFk` from `business` `b` where `b`.`ended` is null and `b`.`started` <= util.VN_CURDATE() or `b`.`ended` >= util.VN_CURDATE() and `b`.`started` <= util.VN_CURDATE() */;
+/*!50001 VIEW `workerDepartment` AS select `b`.`workerFk` AS `workerFk`,`b`.`departmentFk` AS `departmentFk` from (`business` `b` join `worker` `w` on(`w`.`businessFk` = `b`.`id`)) */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -80860,7 +79991,6 @@ USE `vn`;
-- Final view structure for view `workerLabour`
--
-/*!50001 DROP TABLE IF EXISTS `workerLabour`*/;
/*!50001 DROP VIEW IF EXISTS `workerLabour`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80879,7 +80009,6 @@ USE `vn`;
-- Final view structure for view `workerMedia`
--
-/*!50001 DROP TABLE IF EXISTS `workerMedia`*/;
/*!50001 DROP VIEW IF EXISTS `workerMedia`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80898,7 +80027,6 @@ USE `vn`;
-- Final view structure for view `workerSpeedExpedition`
--
-/*!50001 DROP TABLE IF EXISTS `workerSpeedExpedition`*/;
/*!50001 DROP VIEW IF EXISTS `workerSpeedExpedition`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80917,7 +80045,6 @@ USE `vn`;
-- Final view structure for view `workerSpeedSaleTracking`
--
-/*!50001 DROP TABLE IF EXISTS `workerSpeedSaleTracking`*/;
/*!50001 DROP VIEW IF EXISTS `workerSpeedSaleTracking`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80936,7 +80063,6 @@ USE `vn`;
-- Final view structure for view `workerTeamCollegues`
--
-/*!50001 DROP TABLE IF EXISTS `workerTeamCollegues`*/;
/*!50001 DROP VIEW IF EXISTS `workerTeamCollegues`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80955,7 +80081,6 @@ USE `vn`;
-- Final view structure for view `workerTimeControlUserInfo`
--
-/*!50001 DROP TABLE IF EXISTS `workerTimeControlUserInfo`*/;
/*!50001 DROP VIEW IF EXISTS `workerTimeControlUserInfo`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80974,7 +80099,6 @@ USE `vn`;
-- Final view structure for view `workerTimeJourneyNG`
--
-/*!50001 DROP TABLE IF EXISTS `workerTimeJourneyNG`*/;
/*!50001 DROP VIEW IF EXISTS `workerTimeJourneyNG`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -80993,7 +80117,6 @@ USE `vn`;
-- Final view structure for view `workerWithoutTractor`
--
-/*!50001 DROP TABLE IF EXISTS `workerWithoutTractor`*/;
/*!50001 DROP VIEW IF EXISTS `workerWithoutTractor`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -81003,7 +80126,7 @@ USE `vn`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `workerWithoutTractor` AS select `c`.`workerFk` AS `workerFk`,`cl`.`name` AS `Trabajador`,count(distinct `c`.`id`) AS `Colecciones`,max(`c`.`created`) AS `created` from ((`collection` `c` join `client` `cl` on(`cl`.`id` = `c`.`workerFk`)) left join `machineWorker` `mw` on(`mw`.`workerFk` = `c`.`workerFk` and `mw`.`inTimed` > `util`.`VN_CURDATE`())) where `c`.`created` > `util`.`VN_CURDATE`() and `mw`.`workerFk` is null group by `c`.`workerFk` */;
+/*!50001 VIEW `workerWithoutTractor` AS select `c`.`workerFk` AS `workerFk`,`cl`.`name` AS `Trabajador`,count(distinct `c`.`id`) AS `Colecciones`,max(`c`.`created`) AS `created` from ((`collection` `c` join `client` `cl` on(`cl`.`id` = `c`.`workerFk`)) left join `machineWorker` `mw` on(`mw`.`workerFk` = `c`.`workerFk` and `mw`.`inTimed` > util.VN_CURDATE())) where `c`.`created` > util.VN_CURDATE() and `mw`.`workerFk` is null group by `c`.`workerFk` */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -81012,7 +80135,6 @@ USE `vn`;
-- Final view structure for view `zoneEstimatedDelivery`
--
-/*!50001 DROP TABLE IF EXISTS `zoneEstimatedDelivery`*/;
/*!50001 DROP VIEW IF EXISTS `zoneEstimatedDelivery`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
@@ -81022,7 +80144,7 @@ USE `vn`;
/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
-/*!50001 VIEW `zoneEstimatedDelivery` AS select `t`.`zoneFk` AS `zoneFk`,cast(`util`.`VN_CURDATE`() + interval hour(ifnull(`zc`.`hour`,`z`.`hour`)) * 60 + minute(ifnull(`zc`.`hour`,`z`.`hour`)) minute as time) AS `hourTheoretical`,cast(sum(`sv`.`volume`) as decimal(5,1)) AS `totalVolume`,cast(sum(if(`s`.`alertLevel` < 2,`sv`.`volume`,0)) as decimal(5,1)) AS `remainingVolume`,greatest(ifnull(`lhp`.`m3`,0),ifnull(`dl`.`minSpeed`,0)) AS `speed`,cast(`zc`.`hour` + interval -sum(if(`s`.`alertLevel` < 2,`sv`.`volume`,0)) * 60 / greatest(ifnull(`lhp`.`m3`,0),ifnull(`dl`.`minSpeed`,0)) minute as time) AS `hourEffective`,floor(-sum(if(`s`.`alertLevel` < 2,`sv`.`volume`,0)) * 60 / greatest(ifnull(`lhp`.`m3`,0),ifnull(`dl`.`minSpeed`,0))) AS `minutesLess`,cast(`zc`.`hour` + interval -sum(if(`s`.`alertLevel` < 2,`sv`.`volume`,0)) * 60 / greatest(ifnull(`lhp`.`m3`,0),ifnull(`dl`.`minSpeed`,0)) minute as time) AS `etc` from (((((((((`vn`.`ticket` `t` join `vn`.`ticketStateToday` `tst` on(`tst`.`ticket` = `t`.`id`)) join `vn`.`state` `s` on(`s`.`id` = `tst`.`state`)) join `vn`.`saleVolume` `sv` on(`sv`.`ticketFk` = `t`.`id`)) left join `vn`.`lastHourProduction` `lhp` on(`lhp`.`warehouseFk` = `t`.`warehouseFk`)) join `vn`.`warehouse` `w` on(`w`.`id` = `t`.`warehouseFk`)) join `vn`.`warehouseAlias` `wa` on(`wa`.`id` = `w`.`aliasFk`)) join `vn`.`zone` `z` on(`z`.`id` = `t`.`zoneFk`)) left join `vn`.`zoneClosure` `zc` on(`zc`.`zoneFk` = `t`.`zoneFk` and `zc`.`dated` = `util`.`VN_CURDATE`())) left join `cache`.`departure_limit` `dl` on(`dl`.`warehouse_id` = `t`.`warehouseFk` and `dl`.`fecha` = `util`.`VN_CURDATE`())) where `w`.`hasProduction` <> 0 and cast(`t`.`shipped` as date) = `util`.`VN_CURDATE`() group by `t`.`zoneFk` */;
+/*!50001 VIEW `zoneEstimatedDelivery` AS select `t`.`zoneFk` AS `zoneFk`,cast(util.VN_CURDATE() + interval hour(ifnull(`zc`.`hour`,`z`.`hour`)) * 60 + minute(ifnull(`zc`.`hour`,`z`.`hour`)) minute as time) AS `hourTheoretical`,cast(sum(`sv`.`volume`) as decimal(5,1)) AS `totalVolume`,cast(sum(if(`s`.`alertLevel` < 2,`sv`.`volume`,0)) as decimal(5,1)) AS `remainingVolume`,greatest(ifnull(`lhp`.`m3`,0),ifnull(`dl`.`minSpeed`,0)) AS `speed`,cast(`zc`.`hour` + interval -sum(if(`s`.`alertLevel` < 2,`sv`.`volume`,0)) * 60 / greatest(ifnull(`lhp`.`m3`,0),ifnull(`dl`.`minSpeed`,0)) minute as time) AS `hourEffective`,floor(-sum(if(`s`.`alertLevel` < 2,`sv`.`volume`,0)) * 60 / greatest(ifnull(`lhp`.`m3`,0),ifnull(`dl`.`minSpeed`,0))) AS `minutesLess`,cast(`zc`.`hour` + interval -sum(if(`s`.`alertLevel` < 2,`sv`.`volume`,0)) * 60 / greatest(ifnull(`lhp`.`m3`,0),ifnull(`dl`.`minSpeed`,0)) minute as time) AS `etc` from (((((((((`vn`.`ticket` `t` join `vn`.`ticketStateToday` `tst` on(`tst`.`ticket` = `t`.`id`)) join `vn`.`state` `s` on(`s`.`id` = `tst`.`state`)) join `vn`.`saleVolume` `sv` on(`sv`.`ticketFk` = `t`.`id`)) left join `vn`.`lastHourProduction` `lhp` on(`lhp`.`warehouseFk` = `t`.`warehouseFk`)) join `vn`.`warehouse` `w` on(`w`.`id` = `t`.`warehouseFk`)) join `vn`.`warehouseAlias` `wa` on(`wa`.`id` = `w`.`aliasFk`)) join `vn`.`zone` `z` on(`z`.`id` = `t`.`zoneFk`)) left join `vn`.`zoneClosure` `zc` on(`zc`.`zoneFk` = `t`.`zoneFk` and `zc`.`dated` = util.VN_CURDATE())) left join `cache`.`departure_limit` `dl` on(`dl`.`warehouse_id` = `t`.`warehouseFk` and `dl`.`fecha` = util.VN_CURDATE())) where `w`.`hasProduction` <> 0 and cast(`t`.`shipped` as date) = util.VN_CURDATE() group by `t`.`zoneFk` */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
@@ -81032,6 +80154,42 @@ USE `vn`;
--
USE `vncontrol`;
+
+--
+-- Final view structure for view `accion`
+--
+
+/*!50001 DROP VIEW IF EXISTS `accion`*/;
+/*!50001 SET @saved_cs_client = @@character_set_client */;
+/*!50001 SET @saved_cs_results = @@character_set_results */;
+/*!50001 SET @saved_col_connection = @@collation_connection */;
+/*!50001 SET character_set_client = utf8mb4 */;
+/*!50001 SET character_set_results = utf8mb4 */;
+/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
+/*!50001 CREATE ALGORITHM=UNDEFINED */
+/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
+/*!50001 VIEW `accion` AS select `tts`.`id` AS `accion_id`,`tts`.`action` AS `accion` from `vn`.`ticketTrackingState` `tts` */;
+/*!50001 SET character_set_client = @saved_cs_client */;
+/*!50001 SET character_set_results = @saved_cs_results */;
+/*!50001 SET collation_connection = @saved_col_connection */;
+
+--
+-- Final view structure for view `inter`
+--
+
+/*!50001 DROP VIEW IF EXISTS `inter`*/;
+/*!50001 SET @saved_cs_client = @@character_set_client */;
+/*!50001 SET @saved_cs_results = @@character_set_results */;
+/*!50001 SET @saved_col_connection = @@collation_connection */;
+/*!50001 SET character_set_client = utf8mb4 */;
+/*!50001 SET character_set_results = utf8mb4 */;
+/*!50001 SET collation_connection = utf8mb4_unicode_ci */;
+/*!50001 CREATE ALGORITHM=UNDEFINED */
+/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
+/*!50001 VIEW `inter` AS select `tt`.`id` AS `inter_id`,`tt`.`stateFk` AS `state_id`,`tt`.`failFk` AS `fallo_id`,`tt`.`notes` AS `nota`,`tt`.`created` AS `odbc_date`,`tt`.`ticketFk` AS `Id_Ticket`,`tt`.`workerFk` AS `Id_Trabajador`,`tt`.`supervisorFk` AS `Id_Supervisor` from `vn`.`ticketTracking` `tt` */;
+/*!50001 SET character_set_client = @saved_cs_client */;
+/*!50001 SET character_set_results = @saved_cs_results */;
+/*!50001 SET collation_connection = @saved_col_connection */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
@@ -81042,5 +80200,5 @@ USE `vncontrol`;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
--- Dump completed on 2022-09-16 10:44:31
+-- Dump completed on 2022-11-21 7:57:28
diff --git a/db/export-data.sh b/db/export-data.sh
index bbbeb7152..8bff538a7 100755
--- a/db/export-data.sh
+++ b/db/export-data.sh
@@ -41,6 +41,7 @@ dump_tables ${TABLES[@]}
TABLES=(
vn
+ agencyTermConfig
alertLevel
bookingPlanner
businessType
diff --git a/db/export-structure.sh b/db/export-structure.sh
index 88508f098..a4fd4a8c6 100755
--- a/db/export-structure.sh
+++ b/db/export-structure.sh
@@ -6,7 +6,6 @@ SCHEMAS=(
cache
edi
hedera
- nst
pbx
postgresql
sage
@@ -85,7 +84,6 @@ IGNORETABLES=(
--ignore-table=vn.warehouseJoined
--ignore-table=vn.workerTeam__
--ignore-table=vn.XDiario__
- --ignore-table=sage.movConta
--ignore-table=sage.movContaCopia
)
mysqldump \
@@ -104,4 +102,4 @@ mysqldump \
| sed 's/\bLOCALTIME\b/util.VN_NOW/ig' \
| sed 's/\bLOCALTIMESTAMP\b/util.VN_NOW/ig' \
| sed 's/ AUTO_INCREMENT=[0-9]* //g' \
- > dump/structure.sql
\ No newline at end of file
+ > dump/structure.sql
diff --git a/db/import-changes.sh b/db/import-changes.sh
index 2b80654d3..5461f003b 100755
--- a/db/import-changes.sh
+++ b/db/import-changes.sh
@@ -81,9 +81,9 @@ N_CHANGES=0
for DIR_PATH in "$DIR/changes/"*; do
DIR_NAME=$(basename $DIR_PATH)
- DIR_VERSION=${DIR_NAME:0:5}
+ DIR_VERSION=${DIR_NAME:0:6}
- if [[ ! "$DIR_NAME" =~ ^[0-9]{5}(-[a-zA-Z0-9]+)?$ ]]; then
+ if [[ ! "$DIR_NAME" =~ ^[0-9]{6}$ ]]; then
echo "[WARN] Ignoring wrong directory name: $DIR_NAME"
continue
fi
diff --git a/db/tests/vn/orderConfirmWithUser.spec.js b/db/tests/vn/orderConfirmWithUser.spec.js
deleted file mode 100644
index f2a3d0c4e..000000000
--- a/db/tests/vn/orderConfirmWithUser.spec.js
+++ /dev/null
@@ -1,37 +0,0 @@
-const app = require('vn-loopback/server/server');
-const ParameterizedSQL = require('loopback-connector').ParameterizedSQL;
-
-// #1885
-xdescribe('order_confirmWithUser()', () => {
- it('should confirm an order', async() => {
- let stmts = [];
- let stmt;
-
- stmts.push('START TRANSACTION');
-
- let params = {
- orderFk: 10,
- userId: 9
- };
- // problema: la funcion order_confirmWithUser tiene una transacción, por tanto esta nunca hace rollback
- stmt = new ParameterizedSQL('CALL hedera.order_confirmWithUser(?, ?)', [
- params.orderFk,
- params.userId
- ]);
- stmts.push(stmt);
-
- stmt = new ParameterizedSQL('SELECT confirmed FROM hedera.order WHERE id = ?', [
- params.orderFk
- ]);
- let orderIndex = stmts.push(stmt) - 1;
-
- stmts.push('ROLLBACK');
-
- let sql = ParameterizedSQL.join(stmts, ';');
- let result = await app.models.Ticket.rawStmt(sql);
-
- savedDescription = result[orderIndex][0].confirmed;
-
- expect(savedDescription).toBeTruthy();
- });
-});
diff --git a/e2e/helpers/selectors.js b/e2e/helpers/selectors.js
index 237fdad0c..052d8a480 100644
--- a/e2e/helpers/selectors.js
+++ b/e2e/helpers/selectors.js
@@ -29,6 +29,11 @@ export default {
firstModulePinIcon: 'vn-home a:nth-child(1) vn-icon[icon="push_pin"]',
firstModuleRemovePinIcon: 'vn-home a:nth-child(1) vn-icon[icon="remove_circle"]'
},
+ recoverPassword: {
+ recoverPasswordButton: 'vn-login a[ui-sref="recover-password"]',
+ email: 'vn-recover-password vn-textfield[ng-model="$ctrl.email"]',
+ sendEmailButton: 'vn-recover-password vn-submit',
+ },
accountIndex: {
addAccount: 'vn-user-index button vn-icon[icon="add"]',
newName: 'vn-user-create vn-textfield[ng-model="$ctrl.user.name"]',
@@ -51,14 +56,12 @@ export default {
accountDescriptor: {
menuButton: 'vn-user-descriptor vn-icon-button[icon="more_vert"]',
deleteAccount: '.vn-menu [name="deleteUser"]',
- changeRole: '.vn-menu [name="changeRole"]',
setPassword: '.vn-menu [name="setPassword"]',
activateAccount: '.vn-menu [name="enableAccount"]',
activateUser: '.vn-menu [name="activateUser"]',
deactivateUser: '.vn-menu [name="deactivateUser"]',
newPassword: 'vn-textfield[ng-model="$ctrl.newPassword"]',
repeatPassword: 'vn-textfield[ng-model="$ctrl.repeatPassword"]',
- newRole: 'vn-autocomplete[ng-model="$ctrl.newRole"]',
activeAccountIcon: 'vn-icon[icon="contact_mail"]',
activeUserIcon: 'vn-icon[icon="icon-disabled"]',
acceptButton: 'button[response="accept"]',
@@ -143,6 +146,11 @@ export default {
verifyCert: 'vn-account-samba vn-check[ng-model="$ctrl.config.verifyCert"]',
save: 'vn-account-samba vn-submit'
},
+ accountPrivileges: {
+ checkHasGrant: 'vn-user-privileges vn-check[ng-model="$ctrl.user.hasGrant"]',
+ role: 'vn-user-privileges vn-autocomplete[ng-model="$ctrl.user.roleFk"]',
+ save: 'vn-user-privileges vn-submit'
+ },
clientsIndex: {
createClientButton: `vn-float-button`
},
@@ -303,10 +311,12 @@ export default {
firstMandateText: 'vn-client-mandate vn-card vn-table vn-tbody > vn-tr'
},
clientLog: {
- lastModificationPreviousValue: 'vn-client-log vn-table vn-td.before',
- lastModificationCurrentValue: 'vn-client-log vn-table vn-td.after',
- penultimateModificationPreviousValue: 'vn-client-log vn-table vn-tr:nth-child(2) vn-td.before',
- penultimateModificationCurrentValue: 'vn-client-log vn-table vn-tr:nth-child(2) vn-td.after'
+ lastModificationPreviousValue: 'vn-client-log vn-tr table tr td.before',
+ lastModificationCurrentValue: 'vn-client-log vn-tr table tr td.after',
+ namePreviousValue: 'vn-client-log vn-tr table tr:nth-child(1) td.before',
+ nameCurrentValue: 'vn-client-log vn-tr table tr:nth-child(1) td.after',
+ activePreviousValue: 'vn-client-log vn-tr:nth-child(2) table tr:nth-child(2) td.before',
+ activeCurrentValue: 'vn-client-log vn-tr:nth-child(2) table tr:nth-child(2) td.after'
},
clientBalance: {
@@ -321,7 +331,8 @@ export default {
anyBalanceLine: 'vn-client-balance-index vn-tbody > vn-tr',
firstLineBalance: 'vn-client-balance-index vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(8)',
firstLineReference: 'vn-client-balance-index vn-tbody > vn-tr:nth-child(1) > vn-td-editable',
- firstLineReferenceInput: 'vn-client-balance-index vn-tbody > vn-tr:nth-child(1) > vn-td-editable > div > field > vn-textfield'
+ firstLineReferenceInput: 'vn-client-balance-index vn-tbody > vn-tr:nth-child(1) > vn-td-editable > div > field > vn-textfield',
+ compensationButton: 'vn-client-balance-index vn-icon-button[vn-dialog="send_compensation"]'
},
webPayment: {
confirmFirstPaymentButton: 'vn-client-web-payment vn-tr:nth-child(1) vn-icon-button[icon="done_all"]',
@@ -391,11 +402,18 @@ export default {
intrastadCheckbox: '.vn-popover.shown vn-horizontal:nth-child(3) > vn-check[label="Intrastat"]',
originCheckbox: '.vn-popover.shown vn-horizontal:nth-child(3) > vn-check[label="Origin"]',
buyerCheckbox: '.vn-popover.shown vn-horizontal:nth-child(3) > vn-check[label="Buyer"]',
+ densityCheckbox: '.vn-popover.shown vn-horizontal:nth-child(3) > vn-check[label="Density"]',
+ openAdvancedSearchButton: 'vn-searchbar .append vn-icon[icon="arrow_drop_down"]',
+ advancedSearchItemType: 'vn-item-search-panel vn-autocomplete[ng-model="filter.typeFk"]',
+ advancedSearchButton: 'vn-item-search-panel button[type=submit]',
+ advancedSmartTableButton: 'vn-item-index vn-button[icon="search"]',
+ advancedSmartTableGrouping: 'vn-item-index vn-textfield[name=grouping]',
weightByPieceCheckbox: '.vn-popover.shown vn-horizontal:nth-child(3) > vn-check[label="Weight/Piece"]',
saveFieldsButton: '.vn-popover.shown vn-button[label="Save"] > button'
},
itemFixedPrice: {
add: 'vn-fixed-price vn-icon-button[icon="add_circle"]',
+ firstItemID: 'vn-fixed-price tr:nth-child(2) vn-autocomplete[ng-model="price.itemFk"]',
fourthFixedPrice: 'vn-fixed-price tr:nth-child(5)',
fourthItemID: 'vn-fixed-price tr:nth-child(5) vn-autocomplete[ng-model="price.itemFk"]',
fourthWarehouse: 'vn-fixed-price tr:nth-child(5) vn-autocomplete[ng-model="price.warehouseFk"]',
@@ -405,7 +423,8 @@ export default {
fourthMinPrice: 'vn-fixed-price tr:nth-child(5) > td:nth-child(6) > vn-input-number[ng-model="price.minPrice"]',
fourthStarted: 'vn-fixed-price tr:nth-child(5) vn-date-picker[ng-model="price.started"]',
fourthEnded: 'vn-fixed-price tr:nth-child(5) vn-date-picker[ng-model="price.ended"]',
- fourthDeleteIcon: 'vn-fixed-price tr:nth-child(5) > td:nth-child(9) > vn-icon-button[icon="delete"]'
+ fourthDeleteIcon: 'vn-fixed-price tr:nth-child(5) > td:nth-child(9) > vn-icon-button[icon="delete"]',
+ orderColumnId: 'vn-fixed-price th[field="itemFk"]'
},
itemCreateView: {
temporalName: 'vn-item-create vn-textfield[ng-model="$ctrl.item.provisionalName"]',
@@ -444,6 +463,7 @@ export default {
generic: 'vn-autocomplete[ng-model="$ctrl.item.genericFk"]',
isFragile: 'vn-check[ng-model="$ctrl.item.isFragile"]',
longName: 'vn-textfield[ng-model="$ctrl.item.longName"]',
+ packingOut: 'vn-input-number[ng-model="$ctrl.item.packingOut"]',
isActiveCheckbox: 'vn-check[label="Active"]',
priceInKgCheckbox: 'vn-check[label="Price in kg"]',
newIntrastatButton: 'vn-item-basic-data vn-icon-button[vn-tooltip="New intrastat"] > button',
@@ -501,7 +521,7 @@ export default {
},
itemLog: {
anyLineCreated: 'vn-item-log > vn-log vn-tbody > vn-tr',
- fifthLineCreatedProperty: 'vn-item-log > vn-log vn-tbody > vn-tr:nth-child(5) > vn-td > vn-one:nth-child(3) > div span:nth-child(2)',
+ fifthLineCreatedProperty: 'vn-item-log > vn-log vn-tbody > vn-tr:nth-child(5) table tr:nth-child(3) td.after',
},
ticketSummary: {
header: 'vn-ticket-summary > vn-card > h5',
@@ -593,7 +613,14 @@ export default {
submitNotesButton: 'button[type=submit]'
},
ticketExpedition: {
- thirdExpeditionRemoveButton: 'vn-ticket-expedition vn-table div > vn-tbody > vn-tr:nth-child(3) > vn-td:nth-child(1) > vn-icon-button[icon="delete"]',
+ firstSaleCheckbox: 'vn-ticket-expedition vn-tr:nth-child(1) vn-check[ng-model="expedition.checked"]',
+ thirdSaleCheckbox: 'vn-ticket-expedition vn-tr:nth-child(3) vn-check[ng-model="expedition.checked"]',
+ deleteExpeditionButton: 'vn-ticket-expedition vn-tool-bar > vn-button[icon="delete"]',
+ moveExpeditionButton: 'vn-ticket-expedition vn-tool-bar > vn-button[icon="keyboard_arrow_down"]',
+ moreMenuWithoutRoute: 'vn-item[name="withoutRoute"]',
+ moreMenuWithRoute: 'vn-item[name="withRoute"]',
+ newRouteId: '.vn-dialog.shown vn-textfield[ng-model="$ctrl.newRoute"]',
+ saveButton: '.vn-dialog.shown [response="accept"]',
expeditionRow: 'vn-ticket-expedition vn-table vn-tbody > vn-tr'
},
ticketPackages: {
@@ -687,9 +714,10 @@ export default {
ticketLog: {
firstTD: 'vn-ticket-log vn-table vn-td:nth-child(1)',
logButton: 'vn-left-menu a[ui-sref="ticket.card.log"]',
- firstLogEntry: 'vn-ticket-log vn-data-viewer vn-tbody vn-tr',
- changes: 'vn-ticket-log vn-data-viewer vn-tbody > vn-tr > vn-td:nth-child(7)',
- id: 'vn-ticket-log vn-tr:nth-child(1) vn-one:nth-child(1) span'
+ user: 'vn-ticket-log vn-tbody vn-tr vn-td:nth-child(2)',
+ action: 'vn-ticket-log vn-tbody vn-tr vn-td:nth-child(4)',
+ changes: 'vn-ticket-log vn-data-viewer vn-tbody vn-tr table tr:nth-child(2) td.after',
+ id: 'vn-ticket-log vn-tr:nth-child(1) table tr:nth-child(1) td.before'
},
ticketService: {
addServiceButton: 'vn-ticket-service vn-icon-button[vn-tooltip="Add service"] > button',
@@ -709,6 +737,57 @@ export default {
saveImport: 'button[response="accept"]',
anyDocument: 'vn-ticket-dms-index > vn-data-viewer vn-tbody vn-tr'
},
+ ticketFuture: {
+ openAdvancedSearchButton: 'vn-searchbar .append vn-icon[icon="arrow_drop_down"]',
+ originDated: 'vn-date-picker[label="Origin date"]',
+ futureDated: 'vn-date-picker[label="Destination date"]',
+ linesMax: 'vn-textfield[label="Max Lines"]',
+ litersMax: 'vn-textfield[label="Max Liters"]',
+ ipt: 'vn-autocomplete[label="Origin IPT"]',
+ futureIpt: 'vn-autocomplete[label="Destination IPT"]',
+ tableIpt: 'vn-autocomplete[name="ipt"]',
+ tableFutureIpt: 'vn-autocomplete[name="futureIpt"]',
+ state: 'vn-autocomplete[label="Origin Grouped State"]',
+ futureState: 'vn-autocomplete[label="Destination Grouped State"]',
+ warehouseFk: 'vn-autocomplete[label="Warehouse"]',
+ problems: 'vn-check[label="With problems"]',
+ tableButtonSearch: 'vn-button[vn-tooltip="Search"]',
+ moveButton: 'vn-button[vn-tooltip="Future tickets"]',
+ acceptButton: '.vn-confirm.shown button[response="accept"]',
+ firstCheck: 'tbody > tr:nth-child(1) > td > vn-check',
+ multiCheck: 'vn-multi-check',
+ tableId: 'vn-textfield[name="id"]',
+ tableFutureId: 'vn-textfield[name="futureId"]',
+ tableLiters: 'vn-textfield[name="liters"]',
+ tableLines: 'vn-textfield[name="lines"]',
+ submit: 'vn-submit[label="Search"]',
+ table: 'tbody > tr:not(.empty-rows)'
+ },
+ ticketAdvance: {
+ openAdvancedSearchButton: 'vn-searchbar .append vn-icon[icon="arrow_drop_down"]',
+ dateFuture: 'vn-date-picker[label="Origin date"]',
+ dateToAdvance: 'vn-date-picker[label="Destination date"]',
+ linesMax: 'vn-textfield[label="Max Lines"]',
+ litersMax: 'vn-textfield[label="Max Liters"]',
+ futureIpt: 'vn-autocomplete[label="Origin IPT"]',
+ ipt: 'vn-autocomplete[label="Destination IPT"]',
+ tableIpt: 'vn-autocomplete[name="ipt"]',
+ tableFutureIpt: 'vn-autocomplete[name="futureIpt"]',
+ futureState: 'vn-autocomplete[label="Origin Grouped State"]',
+ state: 'vn-autocomplete[label="Destination Grouped State"]',
+ warehouseFk: 'vn-autocomplete[label="Warehouse"]',
+ tableButtonSearch: 'vn-button[vn-tooltip="Search"]',
+ moveButton: 'vn-button[vn-tooltip="Advance tickets"]',
+ acceptButton: '.vn-confirm.shown button[response="accept"]',
+ multiCheck: 'vn-multi-check',
+ tableId: 'vn-textfield[name="id"]',
+ tableFutureId: 'vn-textfield[name="futureId"]',
+ tableLiters: 'vn-textfield[name="liters"]',
+ tableLines: 'vn-textfield[name="lines"]',
+ tableStock: 'vn-textfield[name="hasStock"]',
+ submit: 'vn-submit[label="Search"]',
+ table: 'tbody > tr:not(.empty-rows)'
+ },
createStateView: {
state: 'vn-autocomplete[ng-model="$ctrl.stateFk"]',
worker: 'vn-autocomplete[ng-model="$ctrl.workerFk"]',
@@ -835,14 +914,16 @@ export default {
confirmButton: '.vn-confirm.shown button[response="accept"]',
},
routeIndex: {
- anyResult: 'vn-table a',
- firstRouteCheckbox: 'a:nth-child(1) vn-td:nth-child(1) > vn-check',
+ anyResult: 'vn-route-index tbody > tr',
+ firstRouteCheckbox: 'vn-route-index tbody > tr:nth-child(1) > td:nth-child(1) > vn-check',
addNewRouteButton: 'vn-route-index a[ui-sref="route.create"]',
cloneButton: 'vn-route-index button > vn-icon[icon="icon-clone"]',
submitClonationButton: 'tpl-buttons > button[response="accept"]',
openAdvancedSearchButton: 'vn-searchbar .append vn-icon[icon="arrow_drop_down"]',
searchAgencyAutocomlete: 'vn-route-search-panel vn-autocomplete[ng-model="filter.agencyModeFk"]',
advancedSearchButton: 'vn-route-search-panel button[type=submit]',
+ previewButton: 'vn-route-index tbody > tr:nth-child(7) > td:nth-child(11) > vn-icon-button[icon="preview"]',
+
},
createRouteView: {
worker: 'vn-route-create vn-autocomplete[ng-model="$ctrl.route.workerFk"]',
@@ -862,6 +943,8 @@ export default {
firstTicketDescriptor: '.vn-popover.shown vn-ticket-descriptor',
firstAlias: 'vn-route-summary vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(3) > span',
firstClientDescriptor: '.vn-popover.shown vn-client-descriptor',
+ goToRouteSummaryButton: 'vn-route-summary > vn-card > h5 > a',
+
},
routeBasicData: {
worker: 'vn-route-basic-data vn-autocomplete[ng-model="$ctrl.route.workerFk"]',
@@ -947,6 +1030,7 @@ export default {
manualInvoiceTaxArea: 'vn-autocomplete[ng-model="$ctrl.invoice.taxArea"]',
saveInvoice: 'button[response="accept"]',
globalInvoiceForm: '.vn-invoice-out-global-invoicing',
+ globalInvoiceClientsRange: 'vn-radio[val="clientsRange"]',
globalInvoiceDate: '[ng-model="$ctrl.invoice.invoiceDate"]',
globalInvoiceFromClient: '[ng-model="$ctrl.invoice.fromClientId"]',
globalInvoiceToClient: '[ng-model="$ctrl.invoice.toClientId"]',
@@ -987,6 +1071,17 @@ export default {
booked: 'vn-invoice-in-basic-data vn-date-picker[ng-model="$ctrl.invoiceIn.booked"]',
currency: 'vn-invoice-in-basic-data vn-autocomplete[ng-model="$ctrl.invoiceIn.currencyFk"]',
company: 'vn-invoice-in-basic-data vn-autocomplete[ng-model="$ctrl.invoiceIn.companyFk"]',
+ dms: 'vn-invoice-in-basic-data vn-textfield[ng-model="$ctrl.invoiceIn.dmsFk"]',
+ download: 'vn-invoice-in-basic-data vn-textfield[ng-model="$ctrl.invoiceIn.dmsFk"] > div.container > div.prepend > prepend > vn-icon-button',
+ edit: 'vn-invoice-in-basic-data vn-textfield[ng-model="$ctrl.invoiceIn.dmsFk"] > div.container > div.append > append > vn-icon-button[icon="edit"]',
+ create: 'vn-invoice-in-basic-data vn-textfield[ng-model="$ctrl.invoiceIn.dmsFk"] > div.container > div.append > append > vn-icon-button[icon="add_circle"]',
+ reference: 'vn-textfield[ng-model="$ctrl.dms.reference"]',
+ companyId: 'vn-autocomplete[ng-model="$ctrl.dms.companyId"]',
+ warehouseId: 'vn-autocomplete[ng-model="$ctrl.dms.warehouseId"]',
+ dmsTypeId: 'vn-autocomplete[ng-model="$ctrl.dms.dmsTypeId"]',
+ description: 'vn-textarea[ng-model="$ctrl.dms.description"]',
+ inputFile: 'vn-input-file[ng-model="$ctrl.dms.files"]',
+ confirm: 'button[response="accept"]',
save: 'vn-invoice-in-basic-data button[type=submit]'
},
invoiceInTax: {
@@ -1015,8 +1110,8 @@ export default {
},
travelExtraCommunity: {
anySearchResult: 'vn-travel-extra-community > vn-card div > tbody > tr[ng-attr-id="{{::travel.id}}"]',
- firstTravelReference: 'vn-travel-extra-community tbody:nth-child(2) vn-textfield[ng-model="travel.ref"]',
- firstTravelLockedKg: 'vn-travel-extra-community tbody:nth-child(2) vn-input-number[ng-model="travel.kg"]',
+ firstTravelReference: 'vn-travel-extra-community tbody:nth-child(2) vn-td-editable[name="reference"]',
+ firstTravelLockedKg: 'vn-travel-extra-community tbody:nth-child(2) vn-td-editable[name="lockedKg"]',
removeContinentFilter: 'vn-searchbar > form > vn-textfield > div.container > div.prepend > prepend > div > span:nth-child(3) > vn-icon > i'
},
travelBasicData: {
@@ -1032,7 +1127,7 @@ export default {
undoChanges: 'vn-travel-basic-data vn-button[label="Undo changes"]'
},
travelLog: {
- firstLogFirstTD: 'vn-travel-log vn-tbody > vn-tr > vn-td:nth-child(1) > div'
+ firstLogFirstTD: 'vn-travel-log vn-tbody > vn-tr > vn-td:nth-child(5)'
},
travelThermograph: {
add: 'vn-travel-thermograph-index vn-float-button[icon="add"]',
@@ -1093,7 +1188,8 @@ export default {
anyBuyLine: 'vn-entry-summary tr.dark-row'
},
entryBasicData: {
- reference: 'vn-entry-basic-data vn-textfield[ng-model="$ctrl.entry.ref"]',
+ reference: 'vn-entry-basic-data vn-textfield[ng-model="$ctrl.entry.reference"]',
+ invoiceNumber: 'vn-entry-basic-data vn-textfield[ng-model="$ctrl.entry.invoiceNumber"]',
notes: 'vn-entry-basic-data vn-textfield[ng-model="$ctrl.entry.notes"]',
observations: 'vn-entry-basic-data vn-textarea[ng-model="$ctrl.entry.observation"]',
supplier: 'vn-entry-basic-data vn-autocomplete[ng-model="$ctrl.entry.supplierFk"]',
diff --git a/e2e/paths/01-salix/03_smartTable_searchBar_integrations.spec.js b/e2e/paths/01-salix/03_smartTable_searchBar_integrations.spec.js
new file mode 100644
index 000000000..4fc280209
--- /dev/null
+++ b/e2e/paths/01-salix/03_smartTable_searchBar_integrations.spec.js
@@ -0,0 +1,77 @@
+import selectors from '../../helpers/selectors.js';
+import getBrowser from '../../helpers/puppeteer';
+
+describe('SmartTable SearchBar integration', () => {
+ let browser;
+ let page;
+ beforeAll(async() => {
+ browser = await getBrowser();
+ page = browser.page;
+ await page.loginAndModule('salesPerson', 'item');
+ await page.waitToClick(selectors.globalItems.searchButton);
+ });
+
+ afterAll(async() => {
+ await browser.close();
+ });
+
+ describe('as filters', () => {
+ it('should search by type in searchBar', async() => {
+ await page.waitToClick(selectors.itemsIndex.openAdvancedSearchButton);
+ await page.autocompleteSearch(selectors.itemsIndex.advancedSearchItemType, 'Anthurium');
+ await page.waitToClick(selectors.itemsIndex.advancedSearchButton);
+ await page.waitForNumberOfElements(selectors.itemsIndex.searchResult, 3);
+ });
+
+ it('should reload page and have same results', async() => {
+ await page.reload({
+ waitUntil: 'networkidle2'
+ });
+
+ await page.waitForNumberOfElements(selectors.itemsIndex.searchResult, 3);
+ });
+
+ it('should search by grouping in smartTable', async() => {
+ await page.waitToClick(selectors.itemsIndex.advancedSmartTableButton);
+ await page.write(selectors.itemsIndex.advancedSmartTableGrouping, '1');
+ await page.keyboard.press('Enter');
+ await page.waitForNumberOfElements(selectors.itemsIndex.searchResult, 2);
+ });
+
+ it('should now reload page and have same results', async() => {
+ await page.reload({
+ waitUntil: 'networkidle2'
+ });
+
+ await page.waitForNumberOfElements(selectors.itemsIndex.searchResult, 2);
+ });
+ });
+
+ describe('as orders', () => {
+ it('should order by first id', async() => {
+ await page.loginAndModule('developer', 'item');
+ await page.accessToSection('item.fixedPrice');
+ await page.doSearch();
+
+ const result = await page.waitToGetProperty(selectors.itemFixedPrice.firstItemID, 'value');
+
+ expect(result).toEqual('1');
+ });
+
+ it('should order by last id', async() => {
+ await page.waitToClick(selectors.itemFixedPrice.orderColumnId);
+ const result = await page.waitToGetProperty(selectors.itemFixedPrice.firstItemID, 'value');
+
+ expect(result).toEqual('13');
+ });
+
+ it('should reload page and have same order', async() => {
+ await page.reload({
+ waitUntil: 'networkidle2'
+ });
+ const result = await page.waitToGetProperty(selectors.itemFixedPrice.firstItemID, 'value');
+
+ expect(result).toEqual('13');
+ });
+ });
+});
diff --git a/e2e/paths/01-salix/04_recoverPassword.spec.js b/e2e/paths/01-salix/04_recoverPassword.spec.js
new file mode 100644
index 000000000..e6cb02ab1
--- /dev/null
+++ b/e2e/paths/01-salix/04_recoverPassword.spec.js
@@ -0,0 +1,40 @@
+import selectors from '../../helpers/selectors';
+import getBrowser from '../../helpers/puppeteer';
+
+describe('RecoverPassword path', async() => {
+ let browser;
+ let page;
+
+ beforeAll(async() => {
+ browser = await getBrowser();
+ page = browser.page;
+
+ await page.waitToClick(selectors.recoverPassword.recoverPasswordButton);
+ await page.waitForState('recover-password');
+ });
+
+ afterAll(async() => {
+ await browser.close();
+ });
+
+ it('should not throw error if not exist user', async() => {
+ await page.write(selectors.recoverPassword.email, 'fakeEmail@mydomain.com');
+ await page.waitToClick(selectors.recoverPassword.sendEmailButton);
+
+ const message = await page.waitForSnackbar();
+
+ expect(message.text).toContain('Notification sent!');
+ });
+
+ it('should send email', async() => {
+ await page.waitForState('login');
+ await page.waitToClick(selectors.recoverPassword.recoverPasswordButton);
+
+ await page.write(selectors.recoverPassword.email, 'BruceWayne@mydomain.com');
+ await page.waitToClick(selectors.recoverPassword.sendEmailButton);
+ const message = await page.waitForSnackbar();
+ await page.waitForState('login');
+
+ expect(message.text).toContain('Notification sent!');
+ });
+});
diff --git a/e2e/paths/02-client/07_edit_web_access.spec.js b/e2e/paths/02-client/07_edit_web_access.spec.js
index 8d8036373..29b39f788 100644
--- a/e2e/paths/02-client/07_edit_web_access.spec.js
+++ b/e2e/paths/02-client/07_edit_web_access.spec.js
@@ -8,7 +8,7 @@ describe('Client Edit web access path', () => {
beforeAll(async() => {
browser = await getBrowser();
page = browser.page;
- await page.loginAndModule('employee', 'client');
+ await page.loginAndModule('salesPerson', 'client');
await page.accessToSearchResult('max');
await page.accessToSection('client.card.webAccess');
});
@@ -67,22 +67,22 @@ describe('Client Edit web access path', () => {
});
it(`should confirm the last log shows the updated client name and no modifications on active checkbox`, async() => {
- let lastModificationPreviousValue = await page
- .waitToGetProperty(selectors.clientLog.lastModificationPreviousValue, 'innerText');
- let lastModificationCurrentValue = await page
- .waitToGetProperty(selectors.clientLog.lastModificationCurrentValue, 'innerText');
+ let namePreviousValue = await page
+ .waitToGetProperty(selectors.clientLog.namePreviousValue, 'innerText');
+ let nameCurrentValue = await page
+ .waitToGetProperty(selectors.clientLog.nameCurrentValue, 'innerText');
- expect(lastModificationPreviousValue).toEqual('name MaxEisenhardt active false');
- expect(lastModificationCurrentValue).toEqual('name Legion active false');
+ expect(namePreviousValue).toEqual('MaxEisenhardt');
+ expect(nameCurrentValue).toEqual('Legion');
});
it(`should confirm the penultimate log shows the updated active and no modifications on client name`, async() => {
- let penultimateModificationPreviousValue = await page
- .waitToGetProperty(selectors.clientLog.penultimateModificationPreviousValue, 'innerText');
- let penultimateModificationCurrentValue = await page
- .waitToGetProperty(selectors.clientLog.penultimateModificationCurrentValue, 'innerText');
+ let activePreviousValue = await page
+ .waitToGetProperty(selectors.clientLog.activePreviousValue, 'innerText');
+ let activeCurrentValue = await page
+ .waitToGetProperty(selectors.clientLog.activeCurrentValue, 'innerText');
- expect(penultimateModificationPreviousValue).toEqual('name MaxEisenhardt active true');
- expect(penultimateModificationCurrentValue).toEqual('name MaxEisenhardt active false');
+ expect(activePreviousValue).toEqual('✓');
+ expect(activeCurrentValue).toEqual('✗');
});
});
diff --git a/e2e/paths/02-client/13_log.spec.js b/e2e/paths/02-client/13_log.spec.js
index 9b047a47c..8f186d842 100644
--- a/e2e/paths/02-client/13_log.spec.js
+++ b/e2e/paths/02-client/13_log.spec.js
@@ -43,7 +43,7 @@ describe('Client log path', () => {
let lastModificationCurrentValue = await page.
waitToGetProperty(selectors.clientLog.lastModificationCurrentValue, 'innerText');
- expect(lastModificationPreviousValue).toEqual('name DavidCharlesHaller');
- expect(lastModificationCurrentValue).toEqual('name this is a test');
+ expect(lastModificationPreviousValue).toEqual('DavidCharlesHaller');
+ expect(lastModificationCurrentValue).toEqual('this is a test');
});
});
diff --git a/e2e/paths/02-client/23_send_compensation.spec.js b/e2e/paths/02-client/23_send_compensation.spec.js
new file mode 100644
index 000000000..6ec8936a8
--- /dev/null
+++ b/e2e/paths/02-client/23_send_compensation.spec.js
@@ -0,0 +1,27 @@
+import selectors from '../../helpers/selectors';
+import getBrowser from '../../helpers/puppeteer';
+
+describe('Client Send balance compensation', () => {
+ let browser;
+ let page;
+ beforeAll(async() => {
+ browser = await getBrowser();
+ page = browser.page;
+ await page.loginAndModule('employee', 'client');
+ await page.accessToSearchResult('Clark Kent');
+ await page.accessToSection('client.card.balance.index');
+ });
+
+ afterAll(async() => {
+ await browser.close();
+ });
+
+ it(`should click on send compensation button`, async() => {
+ await page.autocompleteSearch(selectors.clientBalance.company, 'VNL');
+ await page.waitToClick(selectors.clientBalance.compensationButton);
+ await page.waitToClick(selectors.clientBalance.saveButton);
+ const message = await page.waitForSnackbar();
+
+ expect(message.text).toContain('Notification sent!');
+ });
+});
diff --git a/e2e/paths/03-worker/04_time_control.spec.js b/e2e/paths/03-worker/04_time_control.spec.js
index be8df3cf0..4236ae0e4 100644
--- a/e2e/paths/03-worker/04_time_control.spec.js
+++ b/e2e/paths/03-worker/04_time_control.spec.js
@@ -58,6 +58,7 @@ describe('Worker time control path', () => {
});
it(`should return error when insert 'out' of first entry`, async() => {
+ pending('https://redmine.verdnatura.es/issues/4707');
await page.waitToClick(selectors.workerTimeControl.mondayAddTimeButton);
await page.pickTime(selectors.workerTimeControl.dialogTimeInput, eightAm);
await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'out');
@@ -68,6 +69,7 @@ describe('Worker time control path', () => {
});
it(`should insert 'in' monday`, async() => {
+ pending('https://redmine.verdnatura.es/issues/4707');
await page.waitToClick(selectors.workerTimeControl.mondayAddTimeButton);
await page.pickTime(selectors.workerTimeControl.dialogTimeInput, eightAm);
await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'in');
@@ -78,6 +80,7 @@ describe('Worker time control path', () => {
});
it(`should insert 'out' monday`, async() => {
+ pending('https://redmine.verdnatura.es/issues/4707');
await page.waitToClick(selectors.workerTimeControl.mondayAddTimeButton);
await page.pickTime(selectors.workerTimeControl.dialogTimeInput, fourPm);
await page.autocompleteSearch(selectors.workerTimeControl.dialogTimeDirection, 'out');
@@ -88,11 +91,13 @@ describe('Worker time control path', () => {
});
it(`should check Hank Pym worked 8:20 hours`, async() => {
+ pending('https://redmine.verdnatura.es/issues/4707');
await page.waitForTextInElement(selectors.workerTimeControl.mondayWorkedHours, '08:20 h.');
await page.waitForTextInElement(selectors.workerTimeControl.weekWorkedHours, '08:20 h.');
});
it('should remove first entry of monday', async() => {
+ pending('https://redmine.verdnatura.es/issues/4707');
await page.waitForTextInElement(selectors.workerTimeControl.firstEntryOfMonday, eightAm);
await page.waitForTextInElement(selectors.workerTimeControl.secondEntryOfMonday, fourPm);
await page.waitToClick(selectors.workerTimeControl.firstEntryOfMondayDelete);
@@ -103,6 +108,7 @@ describe('Worker time control path', () => {
});
it(`should be the 'out' the first entry of monday`, async() => {
+ pending('https://redmine.verdnatura.es/issues/4707');
const result = await page.waitToGetProperty(selectors.workerTimeControl.firstEntryOfMonday, 'innerText');
expect(result).toEqual(fourPm);
diff --git a/e2e/paths/04-item/02_basic_data.spec.js b/e2e/paths/04-item/02_basic_data.spec.js
index a663ea3bb..3cf142816 100644
--- a/e2e/paths/04-item/02_basic_data.spec.js
+++ b/e2e/paths/04-item/02_basic_data.spec.js
@@ -35,6 +35,7 @@ describe('Item Edit basic data path', () => {
await page.waitToClick(selectors.itemBasicData.isActiveCheckbox);
await page.waitToClick(selectors.itemBasicData.priceInKgCheckbox);
await page.waitToClick(selectors.itemBasicData.isFragile);
+ await page.write(selectors.itemBasicData.packingOut, '5');
await page.waitToClick(selectors.itemBasicData.submitBasicDataButton);
const message = await page.waitForSnackbar();
@@ -128,4 +129,11 @@ describe('Item Edit basic data path', () => {
expect(result).toBe('checked');
});
+
+ it(`should confirm the item packingOut was edited`, async() => {
+ const result = await page
+ .waitToGetProperty(selectors.itemBasicData.packingOut, 'value');
+
+ expect(result).toEqual('5');
+ });
});
diff --git a/e2e/paths/04-item/08_regularize.spec.js b/e2e/paths/04-item/08_regularize.spec.js
index 400df666f..9b3074776 100644
--- a/e2e/paths/04-item/08_regularize.spec.js
+++ b/e2e/paths/04-item/08_regularize.spec.js
@@ -127,8 +127,8 @@ describe('Item regularize path', () => {
await page.waitForState('ticket.index');
});
- it('should search for the ticket with id 28 once again', async() => {
- await page.accessToSearchResult('28');
+ it('should search for the ticket missing once again', async() => {
+ await page.accessToSearchResult('Missing');
await page.waitForState('ticket.card.summary');
});
diff --git a/e2e/paths/05-ticket/01-sale/02_edit_sale.spec.js b/e2e/paths/05-ticket/01-sale/02_edit_sale.spec.js
index d776f417d..67dfd83bf 100644
--- a/e2e/paths/05-ticket/01-sale/02_edit_sale.spec.js
+++ b/e2e/paths/05-ticket/01-sale/02_edit_sale.spec.js
@@ -291,7 +291,7 @@ describe('Ticket Edit sale path', () => {
it('should confirm the transfered quantity is the correct one', async() => {
const result = await page.waitToGetProperty(selectors.ticketSales.secondSaleQuantityCell, 'innerText');
- expect(result).toContain('10');
+ expect(result).toContain('20');
});
it('should go back to the original ticket sales section', async() => {
diff --git a/e2e/paths/05-ticket/02_expeditions_and_log.spec.js b/e2e/paths/05-ticket/02_expeditions_and_log.spec.js
index dd2525f43..ae5e2fb0c 100644
--- a/e2e/paths/05-ticket/02_expeditions_and_log.spec.js
+++ b/e2e/paths/05-ticket/02_expeditions_and_log.spec.js
@@ -18,7 +18,8 @@ describe('Ticket expeditions and log path', () => {
});
it(`should delete a former expedition and confirm the remaining expedition are the expected ones`, async() => {
- await page.waitToClick(selectors.ticketExpedition.thirdExpeditionRemoveButton);
+ await page.waitToClick(selectors.ticketExpedition.thirdSaleCheckbox);
+ await page.waitToClick(selectors.ticketExpedition.deleteExpeditionButton);
await page.waitToClick(selectors.globalItems.acceptButton);
await page.reloadSection('ticket.card.expedition');
@@ -31,14 +32,17 @@ describe('Ticket expeditions and log path', () => {
it(`should confirm the expedition deleted is shown now in the ticket log`, async() => {
await page.accessToSection('ticket.card.log');
- const firstLogEntry = await page
- .waitToGetProperty(selectors.ticketLog.firstLogEntry, 'innerText');
+ const user = await page
+ .waitToGetProperty(selectors.ticketLog.user, 'innerText');
+
+ const action = await page
+ .waitToGetProperty(selectors.ticketLog.action, 'innerText');
const id = await page
.waitToGetProperty(selectors.ticketLog.id, 'innerText');
- expect(firstLogEntry).toContain('production');
- expect(firstLogEntry).toContain('Deletes');
+ expect(user).toContain('production');
+ expect(action).toContain('Deletes');
expect(id).toEqual('2');
});
});
diff --git a/e2e/paths/05-ticket/06_basic_data_steps.spec.js b/e2e/paths/05-ticket/06_basic_data_steps.spec.js
index 46cbf29b8..fa901e325 100644
--- a/e2e/paths/05-ticket/06_basic_data_steps.spec.js
+++ b/e2e/paths/05-ticket/06_basic_data_steps.spec.js
@@ -104,7 +104,6 @@ describe('Ticket Edit basic data path', () => {
await page.waitToClick(selectors.ticketBasicData.nextStepButton);
- await page.waitToClick(selectors.ticketBasicData.withoutNegatives);
await page.waitToClick(selectors.ticketBasicData.finalizeButton);
await page.waitForState('ticket.card.summary');
diff --git a/e2e/paths/05-ticket/09_weekly.spec.js b/e2e/paths/05-ticket/09_weekly.spec.js
index d04138ee5..0ba57aa9d 100644
--- a/e2e/paths/05-ticket/09_weekly.spec.js
+++ b/e2e/paths/05-ticket/09_weekly.spec.js
@@ -19,7 +19,7 @@ describe('Ticket descriptor path', () => {
it('should count the amount of tickets in the turns section', async() => {
const result = await page.countElement(selectors.ticketsIndex.weeklyTicket);
- expect(result).toEqual(5);
+ expect(result).toEqual(6);
});
it('should go back to the ticket index then search and access a ticket summary', async() => {
@@ -104,7 +104,7 @@ describe('Ticket descriptor path', () => {
await page.doSearch();
const nResults = await page.countElement(selectors.ticketsIndex.searchWeeklyResult);
- expect(nResults).toEqual(5);
+ expect(nResults).toEqual(6);
});
it('should update the agency then remove it afterwards', async() => {
diff --git a/e2e/paths/05-ticket/17_log.spec.js b/e2e/paths/05-ticket/17_log.spec.js
index 399eb647b..32829ee74 100644
--- a/e2e/paths/05-ticket/17_log.spec.js
+++ b/e2e/paths/05-ticket/17_log.spec.js
@@ -55,6 +55,6 @@ describe('Ticket log path', () => {
const result = await page.waitToGetProperty(selectors.ticketLog.firstTD, 'innerText');
- expect(result.length).toBeGreaterThan('20');
+ expect(result.length).toBeGreaterThan('15');
});
});
diff --git a/e2e/paths/05-ticket/20_moveExpedition.spec.js b/e2e/paths/05-ticket/20_moveExpedition.spec.js
new file mode 100644
index 000000000..cf1c5ded3
--- /dev/null
+++ b/e2e/paths/05-ticket/20_moveExpedition.spec.js
@@ -0,0 +1,50 @@
+import selectors from '../../helpers/selectors.js';
+import getBrowser from '../../helpers/puppeteer';
+
+describe('Ticket expeditions', () => {
+ let browser;
+ let page;
+
+ beforeAll(async() => {
+ browser = await getBrowser();
+ page = browser.page;
+ await page.loginAndModule('production', 'ticket');
+ await page.accessToSearchResult('1');
+ await page.accessToSection('ticket.card.expedition');
+ });
+
+ afterAll(async() => {
+ await browser.close();
+ });
+
+ it(`should move one expedition to new ticket withoute route`, async() => {
+ await page.waitToClick(selectors.ticketExpedition.thirdSaleCheckbox);
+ await page.waitToClick(selectors.ticketExpedition.moveExpeditionButton);
+ await page.waitToClick(selectors.ticketExpedition.moreMenuWithoutRoute);
+ await page.waitToClick(selectors.ticketExpedition.saveButton);
+ await page.waitForState('ticket.card.summary');
+ await page.accessToSection('ticket.card.expedition');
+
+ await page.waitForSelector(selectors.ticketExpedition.expeditionRow, {});
+ const result = await page
+ .countElement(selectors.ticketExpedition.expeditionRow);
+
+ expect(result).toEqual(1);
+ });
+
+ it(`should move one expedition to new ticket with route`, async() => {
+ await page.waitToClick(selectors.ticketExpedition.firstSaleCheckbox);
+ await page.waitToClick(selectors.ticketExpedition.moveExpeditionButton);
+ await page.waitToClick(selectors.ticketExpedition.moreMenuWithRoute);
+ await page.write(selectors.ticketExpedition.newRouteId, '1');
+ await page.waitToClick(selectors.ticketExpedition.saveButton);
+ await page.waitForState('ticket.card.summary');
+ await page.accessToSection('ticket.card.expedition');
+
+ await page.waitForSelector(selectors.ticketExpedition.expeditionRow, {});
+ const result = await page
+ .countElement(selectors.ticketExpedition.expeditionRow);
+
+ expect(result).toEqual(1);
+ });
+});
diff --git a/e2e/paths/05-ticket/21_future.spec.js b/e2e/paths/05-ticket/21_future.spec.js
new file mode 100644
index 000000000..45c39de86
--- /dev/null
+++ b/e2e/paths/05-ticket/21_future.spec.js
@@ -0,0 +1,208 @@
+import selectors from '../../helpers/selectors.js';
+import getBrowser from '../../helpers/puppeteer';
+
+describe('Ticket Future path', () => {
+ let browser;
+ let page;
+
+ beforeAll(async() => {
+ browser = await getBrowser();
+ page = browser.page;
+ await page.loginAndModule('employee', 'ticket');
+ await page.accessToSection('ticket.future');
+ });
+
+ afterAll(async() => {
+ await browser.close();
+ });
+
+ it('should show errors snackbar because of the required data', async() => {
+ await page.waitToClick(selectors.ticketFuture.openAdvancedSearchButton);
+ await page.clearInput(selectors.ticketFuture.warehouseFk);
+ await page.waitToClick(selectors.ticketFuture.submit);
+ let message = await page.waitForSnackbar();
+
+ expect(message.text).toContain('warehouseFk is a required argument');
+
+ await page.waitToClick(selectors.ticketFuture.openAdvancedSearchButton);
+ await page.clearInput(selectors.ticketFuture.futureDated);
+ await page.waitToClick(selectors.ticketFuture.submit);
+ message = await page.waitForSnackbar();
+
+ expect(message.text).toContain('futureDated is a required argument');
+
+ await page.waitToClick(selectors.ticketFuture.openAdvancedSearchButton);
+ await page.clearInput(selectors.ticketFuture.originDated);
+ await page.waitToClick(selectors.ticketFuture.submit);
+ message = await page.waitForSnackbar();
+
+ expect(message.text).toContain('originDated is a required argument');
+ });
+
+ it('should search with the required data', async() => {
+ await page.waitToClick(selectors.ticketFuture.openAdvancedSearchButton);
+ await page.waitToClick(selectors.ticketFuture.submit);
+ await page.waitForNumberOfElements(selectors.ticketFuture.table, 4);
+ });
+
+ it('should search with the origin IPT', async() => {
+ await page.waitToClick(selectors.ticketFuture.openAdvancedSearchButton);
+
+ await page.clearInput(selectors.ticketFuture.ipt);
+ await page.clearInput(selectors.ticketFuture.futureIpt);
+ await page.clearInput(selectors.ticketFuture.state);
+ await page.clearInput(selectors.ticketFuture.futureState);
+
+ await page.autocompleteSearch(selectors.ticketFuture.ipt, 'Horizontal');
+ await page.waitToClick(selectors.ticketFuture.submit);
+ await page.waitForNumberOfElements(selectors.ticketFuture.table, 0);
+ });
+
+ it('should search with the destination IPT', async() => {
+ await page.waitToClick(selectors.ticketFuture.openAdvancedSearchButton);
+
+ await page.clearInput(selectors.ticketFuture.ipt);
+ await page.clearInput(selectors.ticketFuture.futureIpt);
+ await page.clearInput(selectors.ticketFuture.state);
+ await page.clearInput(selectors.ticketFuture.futureState);
+
+ await page.autocompleteSearch(selectors.ticketFuture.futureIpt, 'Horizontal');
+ await page.waitToClick(selectors.ticketFuture.submit);
+ await page.waitForNumberOfElements(selectors.ticketFuture.table, 0);
+ });
+
+ it('should search with the origin grouped state', async() => {
+ await page.waitToClick(selectors.ticketFuture.openAdvancedSearchButton);
+
+ await page.clearInput(selectors.ticketFuture.ipt);
+ await page.clearInput(selectors.ticketFuture.futureIpt);
+ await page.clearInput(selectors.ticketFuture.state);
+ await page.clearInput(selectors.ticketFuture.futureState);
+
+ await page.autocompleteSearch(selectors.ticketFuture.state, 'Free');
+ await page.waitToClick(selectors.ticketFuture.submit);
+ await page.waitForNumberOfElements(selectors.ticketFuture.table, 3);
+ });
+
+ it('should search with the destination grouped state', async() => {
+ await page.waitToClick(selectors.ticketFuture.openAdvancedSearchButton);
+
+ await page.clearInput(selectors.ticketFuture.ipt);
+ await page.clearInput(selectors.ticketFuture.futureIpt);
+ await page.clearInput(selectors.ticketFuture.state);
+ await page.clearInput(selectors.ticketFuture.futureState);
+
+ await page.autocompleteSearch(selectors.ticketFuture.futureState, 'Free');
+ await page.waitToClick(selectors.ticketFuture.submit);
+ await page.waitForNumberOfElements(selectors.ticketFuture.table, 0);
+
+ await page.waitToClick(selectors.ticketFuture.openAdvancedSearchButton);
+ await page.clearInput(selectors.ticketFuture.ipt);
+ await page.clearInput(selectors.ticketFuture.futureIpt);
+ await page.clearInput(selectors.ticketFuture.state);
+ await page.clearInput(selectors.ticketFuture.futureState);
+
+ await page.waitToClick(selectors.ticketFuture.submit);
+ await page.waitForNumberOfElements(selectors.ticketFuture.table, 4);
+ });
+
+ it('should search in smart-table with an ID Origin', async() => {
+ await page.waitToClick(selectors.ticketFuture.tableButtonSearch);
+ await page.write(selectors.ticketFuture.tableId, '13');
+ await page.keyboard.press('Enter');
+ await page.waitForNumberOfElements(selectors.ticketFuture.table, 2);
+
+ await page.waitToClick(selectors.ticketFuture.tableButtonSearch);
+ await page.waitToClick(selectors.ticketFuture.openAdvancedSearchButton);
+ await page.waitToClick(selectors.ticketFuture.submit);
+ await page.waitForNumberOfElements(selectors.ticketFuture.table, 4);
+ });
+
+ it('should search in smart-table with an ID Destination', async() => {
+ await page.waitToClick(selectors.ticketFuture.tableButtonSearch);
+ await page.write(selectors.ticketFuture.tableFutureId, '12');
+ await page.keyboard.press('Enter');
+ await page.waitForNumberOfElements(selectors.ticketFuture.table, 5);
+
+ await page.waitToClick(selectors.ticketFuture.tableButtonSearch);
+ await page.waitToClick(selectors.ticketFuture.openAdvancedSearchButton);
+ await page.waitToClick(selectors.ticketFuture.submit);
+ await page.waitForNumberOfElements(selectors.ticketFuture.table, 4);
+ });
+
+ it('should search in smart-table with an IPT Origin', async() => {
+ await page.waitToClick(selectors.ticketFuture.tableButtonSearch);
+ await page.autocompleteSearch(selectors.ticketFuture.tableIpt, 'Vertical');
+ await page.waitForNumberOfElements(selectors.ticketFuture.table, 1);
+
+ await page.waitToClick(selectors.ticketFuture.tableButtonSearch);
+ await page.waitToClick(selectors.ticketFuture.openAdvancedSearchButton);
+ await page.waitToClick(selectors.ticketFuture.submit);
+ await page.waitForNumberOfElements(selectors.ticketFuture.table, 4);
+ });
+
+ it('should search in smart-table with an IPT Destination', async() => {
+ await page.waitToClick(selectors.ticketFuture.tableButtonSearch);
+ await page.autocompleteSearch(selectors.ticketFuture.tableFutureIpt, 'Vertical');
+ await page.waitForNumberOfElements(selectors.ticketFuture.table, 1);
+
+ await page.waitToClick(selectors.ticketFuture.tableButtonSearch);
+ await page.waitToClick(selectors.ticketFuture.openAdvancedSearchButton);
+ await page.waitToClick(selectors.ticketFuture.submit);
+ await page.waitForNumberOfElements(selectors.ticketFuture.table, 4);
+ });
+
+ it('should search in smart-table with especified Lines', async() => {
+ await page.waitToClick(selectors.ticketFuture.tableButtonSearch);
+ await page.write(selectors.ticketFuture.tableLines, '0');
+ await page.keyboard.press('Enter');
+ await page.waitForNumberOfElements(selectors.ticketFuture.table, 1);
+
+ await page.waitToClick(selectors.ticketFuture.tableButtonSearch);
+ await page.waitToClick(selectors.ticketFuture.openAdvancedSearchButton);
+ await page.waitToClick(selectors.ticketFuture.submit);
+ await page.waitForNumberOfElements(selectors.ticketFuture.table, 4);
+
+ await page.waitToClick(selectors.ticketFuture.tableButtonSearch);
+ await page.write(selectors.ticketFuture.tableLines, '1');
+ await page.keyboard.press('Enter');
+ await page.waitForNumberOfElements(selectors.ticketFuture.table, 5);
+
+ await page.waitToClick(selectors.ticketFuture.tableButtonSearch);
+ await page.waitToClick(selectors.ticketFuture.openAdvancedSearchButton);
+ await page.waitToClick(selectors.ticketFuture.submit);
+ await page.waitForNumberOfElements(selectors.ticketFuture.table, 4);
+ });
+
+ it('should search in smart-table with especified Liters', async() => {
+ await page.waitToClick(selectors.ticketFuture.tableButtonSearch);
+ await page.write(selectors.ticketFuture.tableLiters, '0');
+ await page.keyboard.press('Enter');
+ await page.waitForNumberOfElements(selectors.ticketFuture.table, 1);
+
+ await page.waitToClick(selectors.ticketFuture.tableButtonSearch);
+ await page.waitToClick(selectors.ticketFuture.openAdvancedSearchButton);
+ await page.waitToClick(selectors.ticketFuture.submit);
+ await page.waitForNumberOfElements(selectors.ticketFuture.table, 4);
+
+ await page.waitToClick(selectors.ticketFuture.tableButtonSearch);
+ await page.write(selectors.ticketFuture.tableLiters, '28');
+ await page.keyboard.press('Enter');
+ await page.waitForNumberOfElements(selectors.ticketFuture.table, 5);
+
+ await page.waitToClick(selectors.ticketFuture.tableButtonSearch);
+ await page.waitToClick(selectors.ticketFuture.openAdvancedSearchButton);
+ await page.waitToClick(selectors.ticketFuture.submit);
+ await page.waitForNumberOfElements(selectors.ticketFuture.table, 4);
+ });
+
+ it('should check the three last tickets and move to the future', async() => {
+ await page.waitToClick(selectors.ticketFuture.multiCheck);
+ await page.waitToClick(selectors.ticketFuture.firstCheck);
+ await page.waitToClick(selectors.ticketFuture.moveButton);
+ await page.waitToClick(selectors.ticketFuture.acceptButton);
+ const message = await page.waitForSnackbar();
+
+ expect(message.text).toContain('Tickets moved successfully!');
+ });
+});
diff --git a/e2e/paths/05-ticket/22_advance.spec.js b/e2e/paths/05-ticket/22_advance.spec.js
new file mode 100644
index 000000000..6aaa81591
--- /dev/null
+++ b/e2e/paths/05-ticket/22_advance.spec.js
@@ -0,0 +1,162 @@
+import selectors from '../../helpers/selectors.js';
+import getBrowser from '../../helpers/puppeteer';
+
+describe('Ticket Advance path', () => {
+ let browser;
+ let page;
+
+ beforeAll(async() => {
+ browser = await getBrowser();
+ page = browser.page;
+ await page.loginAndModule('employee', 'ticket');
+ await page.accessToSection('ticket.advance');
+ });
+
+ afterAll(async() => {
+ await browser.close();
+ });
+
+ it('should show errors snackbar because of the required data', async() => {
+ await page.waitToClick(selectors.ticketAdvance.openAdvancedSearchButton);
+ await page.clearInput(selectors.ticketAdvance.warehouseFk);
+
+ await page.waitToClick(selectors.ticketAdvance.submit);
+ let message = await page.waitForSnackbar();
+
+ expect(message.text).toContain('warehouseFk is a required argument');
+
+ await page.waitToClick(selectors.ticketAdvance.openAdvancedSearchButton);
+ await page.clearInput(selectors.ticketAdvance.dateToAdvance);
+ await page.waitToClick(selectors.ticketAdvance.submit);
+ message = await page.waitForSnackbar();
+
+ expect(message.text).toContain('dateToAdvance is a required argument');
+
+ await page.waitToClick(selectors.ticketAdvance.openAdvancedSearchButton);
+ await page.clearInput(selectors.ticketAdvance.dateFuture);
+ await page.waitToClick(selectors.ticketAdvance.submit);
+ message = await page.waitForSnackbar();
+
+ expect(message.text).toContain('dateFuture is a required argument');
+ });
+
+ it('should search with the required data', async() => {
+ await page.waitToClick(selectors.ticketAdvance.openAdvancedSearchButton);
+ await page.waitToClick(selectors.ticketAdvance.submit);
+ await page.waitForNumberOfElements(selectors.ticketAdvance.table, 1);
+ });
+
+ it('should search with the origin IPT', async() => {
+ await page.waitToClick(selectors.ticketAdvance.openAdvancedSearchButton);
+ await page.autocompleteSearch(selectors.ticketAdvance.ipt, 'Horizontal');
+ await page.waitToClick(selectors.ticketAdvance.submit);
+ await page.waitForNumberOfElements(selectors.ticketAdvance.table, 0);
+
+ await page.waitToClick(selectors.ticketAdvance.openAdvancedSearchButton);
+ await page.clearInput(selectors.ticketAdvance.ipt);
+ await page.waitToClick(selectors.ticketAdvance.submit);
+ await page.waitForNumberOfElements(selectors.ticketAdvance.table, 1);
+ });
+
+ it('should search with the destination IPT', async() => {
+ await page.waitToClick(selectors.ticketAdvance.openAdvancedSearchButton);
+ await page.autocompleteSearch(selectors.ticketAdvance.futureIpt, 'Horizontal');
+ await page.waitToClick(selectors.ticketAdvance.submit);
+ await page.waitForNumberOfElements(selectors.ticketAdvance.table, 0);
+
+ await page.waitToClick(selectors.ticketAdvance.openAdvancedSearchButton);
+ await page.clearInput(selectors.ticketAdvance.futureIpt);
+ await page.waitToClick(selectors.ticketAdvance.submit);
+ await page.waitForNumberOfElements(selectors.ticketAdvance.table, 1);
+ });
+
+ it('should search with the origin grouped state', async() => {
+ await page.waitToClick(selectors.ticketAdvance.openAdvancedSearchButton);
+ await page.autocompleteSearch(selectors.ticketAdvance.futureState, 'Free');
+ await page.waitToClick(selectors.ticketAdvance.submit);
+ await page.waitForNumberOfElements(selectors.ticketAdvance.table, 1);
+
+ await page.waitToClick(selectors.ticketAdvance.openAdvancedSearchButton);
+ await page.clearInput(selectors.ticketAdvance.futureState);
+ await page.waitToClick(selectors.ticketAdvance.submit);
+ await page.waitForNumberOfElements(selectors.ticketAdvance.table, 1);
+ });
+
+ it('should search with the destination grouped state', async() => {
+ await page.waitToClick(selectors.ticketAdvance.openAdvancedSearchButton);
+ await page.autocompleteSearch(selectors.ticketAdvance.state, 'Free');
+ await page.waitToClick(selectors.ticketAdvance.submit);
+ await page.waitForNumberOfElements(selectors.ticketAdvance.table, 0);
+
+ await page.waitToClick(selectors.ticketAdvance.openAdvancedSearchButton);
+ await page.clearInput(selectors.ticketAdvance.state);
+ await page.waitToClick(selectors.ticketAdvance.submit);
+ await page.waitForNumberOfElements(selectors.ticketAdvance.table, 1);
+ });
+
+ it('should search in smart-table with an IPT Origin', async() => {
+ await page.waitToClick(selectors.ticketAdvance.tableButtonSearch);
+ await page.autocompleteSearch(selectors.ticketAdvance.tableFutureIpt, 'Vertical');
+ await page.waitForNumberOfElements(selectors.ticketAdvance.table, 1);
+
+ await page.waitToClick(selectors.ticketAdvance.tableButtonSearch);
+ await page.waitToClick(selectors.ticketAdvance.openAdvancedSearchButton);
+ await page.waitToClick(selectors.ticketAdvance.submit);
+ await page.waitForNumberOfElements(selectors.ticketAdvance.table, 1);
+ });
+
+ it('should search in smart-table with an IPT Destination', async() => {
+ await page.waitToClick(selectors.ticketAdvance.tableButtonSearch);
+ await page.autocompleteSearch(selectors.ticketAdvance.tableIpt, 'Vertical');
+ await page.waitForNumberOfElements(selectors.ticketAdvance.table, 1);
+
+ await page.waitToClick(selectors.ticketAdvance.tableButtonSearch);
+ await page.waitToClick(selectors.ticketAdvance.openAdvancedSearchButton);
+ await page.waitToClick(selectors.ticketAdvance.submit);
+ await page.waitForNumberOfElements(selectors.ticketAdvance.table, 1);
+ });
+
+ it('should search in smart-table with stock', async() => {
+ await page.waitToClick(selectors.ticketAdvance.tableButtonSearch);
+ await page.write(selectors.ticketAdvance.tableStock, '5');
+ await page.waitForNumberOfElements(selectors.ticketAdvance.table, 2);
+
+ await page.waitToClick(selectors.ticketAdvance.tableButtonSearch);
+ await page.waitToClick(selectors.ticketAdvance.openAdvancedSearchButton);
+ await page.waitToClick(selectors.ticketAdvance.submit);
+ await page.waitForNumberOfElements(selectors.ticketAdvance.table, 1);
+ });
+
+ it('should search in smart-table with especified Lines', async() => {
+ await page.waitToClick(selectors.ticketAdvance.tableButtonSearch);
+ await page.write(selectors.ticketAdvance.tableLines, '0');
+ await page.keyboard.press('Enter');
+ await page.waitForNumberOfElements(selectors.ticketAdvance.table, 1);
+
+ await page.waitToClick(selectors.ticketAdvance.tableButtonSearch);
+ await page.waitToClick(selectors.ticketAdvance.openAdvancedSearchButton);
+ await page.waitToClick(selectors.ticketAdvance.submit);
+ await page.waitForNumberOfElements(selectors.ticketAdvance.table, 1);
+ });
+
+ it('should search in smart-table with especified Liters', async() => {
+ await page.waitToClick(selectors.ticketAdvance.tableButtonSearch);
+ await page.write(selectors.ticketAdvance.tableLiters, '0');
+ await page.keyboard.press('Enter');
+ await page.waitForNumberOfElements(selectors.ticketAdvance.table, 1);
+
+ await page.waitToClick(selectors.ticketAdvance.tableButtonSearch);
+ await page.waitToClick(selectors.ticketAdvance.openAdvancedSearchButton);
+ await page.waitToClick(selectors.ticketAdvance.submit);
+ await page.waitForNumberOfElements(selectors.ticketAdvance.table, 1);
+ });
+
+ it('should check the three last tickets and move to the future', async() => {
+ await page.waitToClick(selectors.ticketAdvance.multiCheck);
+ await page.waitToClick(selectors.ticketAdvance.moveButton);
+ await page.waitToClick(selectors.ticketAdvance.acceptButton);
+ const message = await page.waitForSnackbar();
+
+ expect(message.text).toContain('Tickets moved successfully!');
+ });
+});
diff --git a/e2e/paths/08-route/01_summary.spec.js b/e2e/paths/08-route/01_summary.spec.js
index b6052dff6..44f66ba2d 100644
--- a/e2e/paths/08-route/01_summary.spec.js
+++ b/e2e/paths/08-route/01_summary.spec.js
@@ -9,7 +9,8 @@ describe('Route summary path', () => {
browser = await getBrowser();
page = browser.page;
await page.loginAndModule('employee', 'route');
- await page.waitToClick('vn-route-index vn-tbody > a:nth-child(7)');
+ await page.waitToClick(selectors.routeIndex.previewButton);
+ await page.waitToClick(selectors.routeSummary.goToRouteSummaryButton);
});
afterAll(async() => {
@@ -34,6 +35,8 @@ describe('Route summary path', () => {
});
it('should click on the first ticket ID making the descriptor popover visible', async() => {
+ await page.waitForState('route.card.summary');
+ await page.waitForTimeout(250);
await page.waitToClick(selectors.routeSummary.firstTicketID);
await page.waitForSelector(selectors.routeSummary.firstTicketDescriptor);
const visible = await page.isVisible(selectors.routeSummary.firstTicketDescriptor);
diff --git a/e2e/paths/09-invoice-in/03_basic_data.spec.js b/e2e/paths/09-invoice-in/03_basic_data.spec.js
index 0c3f914e4..0a28ed191 100644
--- a/e2e/paths/09-invoice-in/03_basic_data.spec.js
+++ b/e2e/paths/09-invoice-in/03_basic_data.spec.js
@@ -4,6 +4,7 @@ import getBrowser from '../../helpers/puppeteer';
describe('InvoiceIn basic data path', () => {
let browser;
let page;
+ let newDms;
beforeAll(async() => {
browser = await getBrowser();
@@ -24,6 +25,8 @@ describe('InvoiceIn basic data path', () => {
await page.autocompleteSearch(selectors.invoiceInBasicData.supplier, 'Verdnatura');
await page.clearInput(selectors.invoiceInBasicData.supplierRef);
await page.write(selectors.invoiceInBasicData.supplierRef, '9999');
+ await page.clearInput(selectors.invoiceInBasicData.dms);
+ await page.write(selectors.invoiceInBasicData.dms, '2');
await page.pickDate(selectors.invoiceInBasicData.bookEntried, now);
await page.pickDate(selectors.invoiceInBasicData.booked, now);
await page.autocompleteSearch(selectors.invoiceInBasicData.currency, 'USD');
@@ -61,4 +64,141 @@ describe('InvoiceIn basic data path', () => {
expect(result).toEqual('ORN');
});
+
+ it(`should confirm the invoiceIn dms was edited`, async() => {
+ const result = await page
+ .waitToGetProperty(selectors.invoiceInBasicData.dms, 'value');
+
+ expect(result).toEqual('2');
+ });
+
+ it(`should create a new invoiceIn dms and save the changes`, async() => {
+ await page.clearInput(selectors.invoiceInBasicData.dms);
+ await page.waitToClick(selectors.invoiceInBasicData.create);
+
+ await page.clearInput(selectors.invoiceInBasicData.reference);
+ await page.write(selectors.invoiceInBasicData.reference, 'New Dms');
+
+ await page.waitToClick(selectors.invoiceInBasicData.confirm);
+ let message = await page.waitForSnackbar();
+
+ expect(message.text).toContain('The company can\'t be empty');
+
+ await page.clearInput(selectors.invoiceInBasicData.companyId);
+ await page.autocompleteSearch(selectors.invoiceInBasicData.companyId, 'VNL');
+
+ await page.waitToClick(selectors.invoiceInBasicData.confirm);
+ message = await page.waitForSnackbar();
+
+ expect(message.text).toContain('The warehouse can\'t be empty');
+
+ await page.clearInput(selectors.invoiceInBasicData.warehouseId);
+ await page.autocompleteSearch(selectors.invoiceInBasicData.warehouseId, 'Warehouse One');
+
+ await page.waitToClick(selectors.invoiceInBasicData.confirm);
+ message = await page.waitForSnackbar();
+
+ expect(message.text).toContain('The DMS Type can\'t be empty');
+
+ await page.clearInput(selectors.invoiceInBasicData.dmsTypeId);
+ await page.autocompleteSearch(selectors.invoiceInBasicData.dmsTypeId, 'Ticket');
+
+ await page.waitToClick(selectors.invoiceInBasicData.confirm);
+ message = await page.waitForSnackbar();
+
+ expect(message.text).toContain('The description can\'t be empty');
+
+ await page.waitToClick(selectors.invoiceInBasicData.description);
+ await page.write(selectors.invoiceInBasicData.description, 'Dms without edition.');
+
+ await page.waitToClick(selectors.invoiceInBasicData.confirm);
+ message = await page.waitForSnackbar();
+
+ expect(message.text).toContain('The files can\'t be empty');
+
+ let currentDir = process.cwd();
+ let filePath = `${currentDir}/e2e/assets/thermograph.jpeg`;
+
+ const [fileChooser] = await Promise.all([
+ page.waitForFileChooser(),
+ page.waitToClick(selectors.invoiceInBasicData.inputFile)
+ ]);
+ await fileChooser.accept([filePath]);
+
+ await page.waitToClick(selectors.invoiceInBasicData.confirm);
+ message = await page.waitForSnackbar();
+
+ expect(message.text).toContain('Data saved!');
+
+ newDms = await page
+ .waitToGetProperty(selectors.invoiceInBasicData.dms, 'value');
+ });
+
+ it(`should confirm the invoiceIn was edited with the new dms`, async() => {
+ await page.reloadSection('invoiceIn.card.basicData');
+ const result = await page
+ .waitToGetProperty(selectors.invoiceInBasicData.dms, 'value');
+
+ expect(result).toEqual(newDms);
+ });
+
+ it(`should edit the invoiceIn`, async() => {
+ await page.waitToClick(selectors.invoiceInBasicData.edit);
+
+ await page.clearInput(selectors.invoiceInBasicData.reference);
+ await page.write(selectors.invoiceInBasicData.reference, 'Dms Edited');
+ await page.clearInput(selectors.invoiceInBasicData.companyId);
+ await page.autocompleteSearch(selectors.invoiceInBasicData.companyId, 'CCs');
+ await page.clearInput(selectors.invoiceInBasicData.warehouseId);
+ await page.autocompleteSearch(selectors.invoiceInBasicData.warehouseId, 'Algemesi');
+ await page.clearInput(selectors.invoiceInBasicData.dmsTypeId);
+ await page.autocompleteSearch(selectors.invoiceInBasicData.dmsTypeId, 'Basura');
+ await page.waitToClick(selectors.invoiceInBasicData.description);
+ await page.write(selectors.invoiceInBasicData.description, ' Nevermind, now is edited.');
+
+ await page.waitToClick(selectors.invoiceInBasicData.confirm);
+ let message = await page.waitForSnackbar();
+
+ expect(message.text).toContain('Data saved!');
+ });
+
+ it(`should confirm the new dms has been edited`, async() => {
+ await page.reloadSection('invoiceIn.card.basicData');
+ await page.waitToClick(selectors.invoiceInBasicData.edit);
+
+ const reference = await page
+ .waitToGetProperty(selectors.invoiceInBasicData.reference, 'value');
+ const companyId = await page
+ .waitToGetProperty(selectors.invoiceInBasicData.companyId, 'value');
+ const warehouseId = await page
+ .waitToGetProperty(selectors.invoiceInBasicData.warehouseId, 'value');
+ const dmsTypeId = await page
+ .waitToGetProperty(selectors.invoiceInBasicData.dmsTypeId, 'value');
+ const description = await page
+ .waitToGetProperty(selectors.invoiceInBasicData.description, 'value');
+
+ expect(reference).toEqual('Dms Edited');
+ expect(companyId).toEqual('CCs');
+ expect(warehouseId).toEqual('Algemesi');
+ expect(dmsTypeId).toEqual('Basura');
+ expect(description).toEqual('Dms without edition. Nevermind, now is edited.');
+
+ await page.waitToClick(selectors.invoiceInBasicData.confirm);
+ });
+
+ it(`should disable edit and download if dms doesn't exists, and set back the original dms`, async() => {
+ await page.clearInput(selectors.invoiceInBasicData.dms);
+ await page.write(selectors.invoiceInBasicData.dms, '9999');
+
+ await page.waitForSelector(`${selectors.invoiceInBasicData.download}.disabled`);
+ await page.waitForSelector(`${selectors.invoiceInBasicData.edit}.disabled`);
+
+ await page.clearInput(selectors.invoiceInBasicData.dms);
+ await page.write(selectors.invoiceInBasicData.dms, '1');
+
+ await page.waitToClick(selectors.invoiceInBasicData.save);
+ const message = await page.waitForSnackbar();
+
+ expect(message.text).toContain('Data saved!');
+ });
});
diff --git a/e2e/paths/09-invoice-out/04_globalInvoice.spec.js b/e2e/paths/09-invoice-out/04_globalInvoice.spec.js
index b62c889db..74efafd2d 100644
--- a/e2e/paths/09-invoice-out/04_globalInvoice.spec.js
+++ b/e2e/paths/09-invoice-out/04_globalInvoice.spec.js
@@ -33,6 +33,7 @@ describe('InvoiceOut global invoice path', () => {
it('should create a global invoice for charles xavier today', async() => {
await page.pickDate(selectors.invoiceOutIndex.globalInvoiceDate);
+ await page.waitToClick(selectors.invoiceOutIndex.globalInvoiceClientsRange);
await page.autocompleteSearch(selectors.invoiceOutIndex.globalInvoiceFromClient, 'Petter Parker');
await page.autocompleteSearch(selectors.invoiceOutIndex.globalInvoiceToClient, 'Petter Parker');
await page.waitToClick(selectors.invoiceOutIndex.saveInvoice);
@@ -48,4 +49,15 @@ describe('InvoiceOut global invoice path', () => {
expect(currentInvoices).toBeGreaterThan(invoicesBefore);
});
+
+ it('should create a global invoice for all clients today', async() => {
+ await page.waitToClick(selectors.invoiceOutIndex.createInvoice);
+ await page.waitToClick(selectors.invoiceOutIndex.createGlobalInvoice);
+ await page.waitForSelector(selectors.invoiceOutIndex.globalInvoiceForm);
+ await page.pickDate(selectors.invoiceOutIndex.globalInvoiceDate);
+ await page.waitToClick(selectors.invoiceOutIndex.saveInvoice);
+ const message = await page.waitForSnackbar();
+
+ expect(message.text).toContain('Data saved!');
+ });
});
diff --git a/e2e/paths/10-travel/04_extra_community.spec.js b/e2e/paths/10-travel/04_extra_community.spec.js
index a1cad6a7d..c5975c958 100644
--- a/e2e/paths/10-travel/04_extra_community.spec.js
+++ b/e2e/paths/10-travel/04_extra_community.spec.js
@@ -19,10 +19,10 @@ describe('Travel extra community path', () => {
it('should edit the travel reference and the locked kilograms', async() => {
await page.waitToClick(selectors.travelExtraCommunity.removeContinentFilter);
await page.waitForSpinnerLoad();
- await page.clearInput(selectors.travelExtraCommunity.firstTravelReference);
- await page.write(selectors.travelExtraCommunity.firstTravelReference, 'edited reference');
- await page.clearInput(selectors.travelExtraCommunity.firstTravelLockedKg);
- await page.write(selectors.travelExtraCommunity.firstTravelLockedKg, '1500');
+ await page.writeOnEditableTD(selectors.travelExtraCommunity.firstTravelReference, 'edited reference');
+ await page.waitForSpinnerLoad();
+ await page.writeOnEditableTD(selectors.travelExtraCommunity.firstTravelLockedKg, '1500');
+
const message = await page.waitForSnackbar();
expect(message.text).toContain('Data saved!');
@@ -32,9 +32,9 @@ describe('Travel extra community path', () => {
await page.accessToSection('travel.index');
await page.accessToSection('travel.extraCommunity');
await page.waitToClick(selectors.travelExtraCommunity.removeContinentFilter);
-
- const reference = await page.waitToGetProperty(selectors.travelExtraCommunity.firstTravelReference, 'value');
- const lockedKg = await page.waitToGetProperty(selectors.travelExtraCommunity.firstTravelLockedKg, 'value');
+ await page.waitForTextInElement(selectors.travelExtraCommunity.firstTravelReference, 'edited reference');
+ const reference = await page.getProperty(selectors.travelExtraCommunity.firstTravelReference, 'innerText');
+ const lockedKg = await page.getProperty(selectors.travelExtraCommunity.firstTravelLockedKg, 'innerText');
expect(reference).toContain('edited reference');
expect(lockedKg).toContain(1500);
diff --git a/e2e/paths/12-entry/05_basicData.spec.js b/e2e/paths/12-entry/05_basicData.spec.js
index c1aa14019..3b5f40c35 100644
--- a/e2e/paths/12-entry/05_basicData.spec.js
+++ b/e2e/paths/12-entry/05_basicData.spec.js
@@ -19,6 +19,7 @@ describe('Entry basic data path', () => {
it('should edit the basic data', async() => {
await page.write(selectors.entryBasicData.reference, 'new movement 8');
+ await page.write(selectors.entryBasicData.invoiceNumber, 'new movement 8');
await page.write(selectors.entryBasicData.notes, 'new notes');
await page.write(selectors.entryBasicData.observations, ' edited');
await page.autocompleteSearch(selectors.entryBasicData.supplier, 'Plants nick');
@@ -45,6 +46,13 @@ describe('Entry basic data path', () => {
expect(result).toEqual('new movement 8');
});
+ it('should confirm the invoiceNumber was edited', async() => {
+ await page.reloadSection('entry.card.basicData');
+ const result = await page.waitToGetProperty(selectors.entryBasicData.invoiceNumber, 'value');
+
+ expect(result).toEqual('new movement 8');
+ });
+
it('should confirm the note was edited', async() => {
const result = await page.waitToGetProperty(selectors.entryBasicData.notes, 'value');
diff --git a/e2e/paths/13-supplier/02_basic_data.spec.js b/e2e/paths/13-supplier/02_basic_data.spec.js
index 4f3c49512..9d86e11d4 100644
--- a/e2e/paths/13-supplier/02_basic_data.spec.js
+++ b/e2e/paths/13-supplier/02_basic_data.spec.js
@@ -70,8 +70,8 @@ describe('Supplier basic data path', () => {
});
it('should check the changes have been recorded', async() => {
- const result = await page.waitToGetProperty('#newInstance:nth-child(3)', 'innerText');
+ const result = await page.waitToGetProperty('vn-tr table tr:nth-child(3) td.after', 'innerText');
- expect(result).toEqual('note Some notes');
+ expect(result).toEqual('Some notes');
});
});
diff --git a/e2e/paths/13-supplier/03_fiscal_data.spec.js b/e2e/paths/13-supplier/03_fiscal_data.spec.js
index 0238c8704..4f9581e32 100644
--- a/e2e/paths/13-supplier/03_fiscal_data.spec.js
+++ b/e2e/paths/13-supplier/03_fiscal_data.spec.js
@@ -31,7 +31,7 @@ describe('Supplier fiscal data path', () => {
await page.clearInput(selectors.supplierFiscalData.taxNumber);
await page.write(selectors.supplierFiscalData.taxNumber, 'Wrong tax number');
await page.clearInput(selectors.supplierFiscalData.account);
- await page.write(selectors.supplierFiscalData.account, 'edited account number');
+ await page.write(selectors.supplierFiscalData.account, '0123456789');
await page.autocompleteSearch(selectors.supplierFiscalData.sageWihholding, 'retencion estimacion objetiva');
await page.autocompleteSearch(selectors.supplierFiscalData.sageTaxType, 'operaciones no sujetas');
@@ -70,7 +70,7 @@ describe('Supplier fiscal data path', () => {
it('should check the account was edited', async() => {
const result = await page.waitToGetProperty(selectors.supplierFiscalData.account, 'value');
- expect(result).toEqual('edited account number');
+ expect(result).toEqual('0123456789');
});
it('should check the sageWihholding was edited', async() => {
diff --git a/e2e/paths/14-account/01_create_and_basic_data.spec.js b/e2e/paths/14-account/01_create_and_basic_data.spec.js
index 0400fb99e..54e4d1f12 100644
--- a/e2e/paths/14-account/01_create_and_basic_data.spec.js
+++ b/e2e/paths/14-account/01_create_and_basic_data.spec.js
@@ -62,27 +62,6 @@ describe('Account create and basic data path', () => {
});
describe('Descriptor option', () => {
- describe('Edit role', () => {
- it('should edit the role using the descriptor menu', async() => {
- await page.waitToClick(selectors.accountDescriptor.menuButton);
- await page.waitToClick(selectors.accountDescriptor.changeRole);
- await page.autocompleteSearch(selectors.accountDescriptor.newRole, 'adminBoss');
- await page.waitToClick(selectors.accountDescriptor.acceptButton);
- const message = await page.waitForSnackbar();
-
- expect(message.text).toContain('Role changed succesfully!');
- });
-
- it('should reload the roles section to see now there are more roles', async() => {
- // when role updates db takes time to return changes, without this timeout the result would have been 3
- await page.waitForTimeout(1000);
- await page.reloadSection('account.card.roles');
- const rolesCount = await page.countElement(selectors.accountRoles.anyResult);
-
- expect(rolesCount).toEqual(61);
- });
- });
-
describe('activate account', () => {
it(`should check the active account icon isn't present in the descriptor`, async() => {
await page.waitForNumberOfElements(selectors.accountDescriptor.activeAccountIcon, 0);
diff --git a/e2e/paths/14-account/07_ldap.spec.js b/e2e/paths/14-account/07_ldap.spec.js
index a3b8137d3..eb22f695c 100644
--- a/e2e/paths/14-account/07_ldap.spec.js
+++ b/e2e/paths/14-account/07_ldap.spec.js
@@ -29,4 +29,13 @@ describe('Account LDAP path', () => {
expect(message.text).toContain('Data saved!');
});
+
+ it('should reset data', async() => {
+ await page.waitToClick(selectors.accountLdap.checkEnable);
+ await page.waitToClick(selectors.accountLdap.save);
+
+ const message = await page.waitForSnackbar();
+
+ expect(message.text).toContain('Data saved!');
+ });
});
diff --git a/e2e/paths/14-account/08_samba.spec.js b/e2e/paths/14-account/08_samba.spec.js
index c3db026dc..6e7ef9bbf 100644
--- a/e2e/paths/14-account/08_samba.spec.js
+++ b/e2e/paths/14-account/08_samba.spec.js
@@ -29,4 +29,13 @@ describe('Account Samba path', () => {
expect(message.text).toContain('Data saved!');
});
+
+ it('should reset data', async() => {
+ await page.waitToClick(selectors.accountSamba.checkEnable);
+ await page.waitToClick(selectors.accountSamba.save);
+
+ const message = await page.waitForSnackbar();
+
+ expect(message.text).toContain('Data saved!');
+ });
});
diff --git a/e2e/paths/14-account/09_privileges.spec.js b/e2e/paths/14-account/09_privileges.spec.js
new file mode 100644
index 000000000..e4b8fb24c
--- /dev/null
+++ b/e2e/paths/14-account/09_privileges.spec.js
@@ -0,0 +1,112 @@
+import selectors from '../../helpers/selectors.js';
+import getBrowser from '../../helpers/puppeteer';
+
+describe('Account privileges path', () => {
+ let browser;
+ let page;
+
+ beforeAll(async() => {
+ browser = await getBrowser();
+ page = browser.page;
+ await page.loginAndModule('developer', 'account');
+ await page.accessToSearchResult('1101');
+ await page.accessToSection('account.card.privileges');
+ });
+
+ afterAll(async() => {
+ await browser.close();
+ });
+
+ describe('as developer', () => {
+ it('should throw error when give privileges', async() => {
+ await page.waitToClick(selectors.accountPrivileges.checkHasGrant);
+ await page.waitToClick(selectors.accountPrivileges.save);
+
+ const message = await page.waitForSnackbar();
+
+ expect(message.text).toContain(`You don't have grant privilege`);
+ });
+
+ it('should throw error when change role', async() => {
+ await page.autocompleteSearch(selectors.accountPrivileges.role, 'employee');
+ await page.waitToClick(selectors.accountPrivileges.save);
+
+ const message = await page.waitForSnackbar();
+
+ expect(message.text).toContain(`You don't have grant privilege`);
+ });
+ });
+
+ describe('as sysadmin', () => {
+ beforeAll(async() => {
+ await page.loginAndModule('sysadmin', 'account');
+ await page.accessToSearchResult('9');
+ await page.accessToSection('account.card.privileges');
+ });
+
+ it('should give privileges', async() => {
+ await page.waitToClick(selectors.accountPrivileges.checkHasGrant);
+ await page.waitToClick(selectors.accountPrivileges.save);
+ const message = await page.waitForSnackbar();
+
+ await page.reloadSection('account.card.privileges');
+ const result = await page.checkboxState(selectors.accountPrivileges.checkHasGrant);
+
+ expect(message.text).toContain(`Data saved!`);
+ expect(result).toBe('checked');
+ });
+
+ it('should throw error when change role and not own role', async() => {
+ await page.autocompleteSearch(selectors.accountPrivileges.role, 'itBoss');
+ await page.waitToClick(selectors.accountPrivileges.save);
+
+ const message = await page.waitForSnackbar();
+
+ expect(message.text).toContain(`You don't own the role and you can't assign it to another user`);
+ });
+
+ it('should change role to employee', async() => {
+ await page.autocompleteSearch(selectors.accountPrivileges.role, 'employee');
+ await page.waitToClick(selectors.accountPrivileges.save);
+ const message = await page.waitForSnackbar();
+
+ await page.reloadSection('account.card.privileges');
+ const result = await page.waitToGetProperty(selectors.accountPrivileges.role, 'value');
+
+ expect(message.text).toContain(`Data saved!`);
+ expect(result).toContain('employee');
+ });
+
+ it('should return role to developer', async() => {
+ await page.autocompleteSearch(selectors.accountPrivileges.role, 'developer');
+ await page.waitToClick(selectors.accountPrivileges.save);
+ const message = await page.waitForSnackbar();
+
+ await page.reloadSection('account.card.privileges');
+ const result = await page.waitToGetProperty(selectors.accountPrivileges.role, 'value');
+
+ expect(message.text).toContain(`Data saved!`);
+ expect(result).toContain('developer');
+ });
+ });
+
+ describe('as developer again', () => {
+ it('should remove privileges', async() => {
+ await page.accessToSearchResult('9');
+ await page.accessToSection('account.card.privileges');
+
+ await page.waitToClick(selectors.accountPrivileges.checkHasGrant);
+ await page.waitToClick(selectors.accountPrivileges.save);
+ const message = await page.waitForSnackbar();
+
+ expect(message.text).toContain(`Data saved!`);
+ });
+
+ it('should logIn in developer', async() => {
+ await page.reloadSection('account.card.privileges');
+ const result = await page.checkboxState(selectors.accountPrivileges.checkHasGrant);
+
+ expect(result).toBe('unchecked');
+ });
+ });
+});
diff --git a/front/core/components/crud-model/crud-model.js b/front/core/components/crud-model/crud-model.js
index 4994e1547..16b837d6a 100644
--- a/front/core/components/crud-model/crud-model.js
+++ b/front/core/components/crud-model/crud-model.js
@@ -14,6 +14,7 @@ export default class CrudModel extends ModelProxy {
this.$q = $q;
this.primaryKey = 'id';
this.autoLoad = false;
+ this.page = 1;
}
$onInit() {
@@ -99,6 +100,18 @@ export default class CrudModel extends ModelProxy {
return this.refresh();
}
+ /**
+ * Applies a new filter to the model.
+ *
+ * @param {Object} params Custom parameters
+ * @return {Promise} The request promise
+ */
+
+ applyParams(params) {
+ this.userParams = params;
+ return this.refresh();
+ }
+
removeFilter() {
return this.applyFilter(null, null);
}
@@ -113,13 +126,20 @@ export default class CrudModel extends ModelProxy {
}
}
- loadMore() {
+ loadMore(append) {
if (!this.moreRows)
return this.$q.resolve();
- let filter = Object.assign({}, this.currentFilter);
- filter.skip = this.orgData ? this.orgData.length : 0;
- return this.sendRequest(filter, true);
+ const filter = Object.assign({}, this.currentFilter);
+ if (append)
+ filter.skip = this.orgData ? this.orgData.length : 0;
+
+ if (!append) {
+ this.page += 1;
+ filter.limit = this.page * this.limit;
+ }
+
+ return this.sendRequest(filter, append);
}
clear() {
diff --git a/front/core/components/crud-model/index.spec.js b/front/core/components/crud-model/index.spec.js
index 8673e947f..7eab80405 100644
--- a/front/core/components/crud-model/index.spec.js
+++ b/front/core/components/crud-model/index.spec.js
@@ -148,7 +148,7 @@ describe('Component vnCrudModel', () => {
controller.moreRows = true;
- controller.loadMore();
+ controller.loadMore(true);
expect(controller.sendRequest).toHaveBeenCalledWith({'skip': 2}, true);
});
diff --git a/front/core/components/drop-down/index.js b/front/core/components/drop-down/index.js
index 08d0da6d0..302c1c6b5 100644
--- a/front/core/components/drop-down/index.js
+++ b/front/core/components/drop-down/index.js
@@ -212,12 +212,12 @@ export default class DropDown extends Popover {
&& !this.model.isLoading;
if (shouldLoad)
- this.model.loadMore();
+ this.model.loadMore(true);
}
onLoadMoreClick(event) {
if (event.defaultPrevented) return;
- this.model.loadMore();
+ this.model.loadMore(true);
}
onContainerClick(event) {
diff --git a/front/core/components/icon/icon.js b/front/core/components/icon/icon.js
index 38aea0056..8fb79d294 100644
--- a/front/core/components/icon/icon.js
+++ b/front/core/components/icon/icon.js
@@ -26,7 +26,7 @@ class Icon {
Icon.$inject = ['$attrs'];
ngModule.vnComponent('vnIcon', {
- template: '{{::$ctrl.iconContent}} ',
+ template: '{{::$ctrl.iconContent}} ',
controller: Icon,
bindings: {
icon: '@'
diff --git a/front/core/components/input-file/index.html b/front/core/components/input-file/index.html
index 5ec7e1da4..14d138cfe 100644
--- a/front/core/components/input-file/index.html
+++ b/front/core/components/input-file/index.html
@@ -3,7 +3,7 @@
ng-transclude="prepend"
class="prepend">
-
+
diff --git a/front/core/components/input-file/style.scss b/front/core/components/input-file/style.scss
index 44d11f774..72470c4fe 100644
--- a/front/core/components/input-file/style.scss
+++ b/front/core/components/input-file/style.scss
@@ -4,4 +4,13 @@
.value {
cursor: pointer;
}
+ .control {
+ & > input[type=file] {
+ opacity: 0;
+ }
+ & > section {
+ position: absolute;
+ bottom: 0;
+ }
+ }
}
\ No newline at end of file
diff --git a/front/core/components/model-proxy/model-proxy.js b/front/core/components/model-proxy/model-proxy.js
index 26c28c803..0b8d7ebf9 100644
--- a/front/core/components/model-proxy/model-proxy.js
+++ b/front/core/components/model-proxy/model-proxy.js
@@ -374,9 +374,10 @@ export class Paginable {
/**
* When limit is enabled, loads the next set of rows.
*
+ * @param {Boolean} append - Whether should append new data
* @return {Promise} The request promise
*/
- loadMore() {
- return Promise.resolve();
+ loadMore(append) {
+ return Promise.resolve(append);
}
}
diff --git a/front/core/components/pagination/pagination.js b/front/core/components/pagination/pagination.js
index 9979be368..e7127734c 100644
--- a/front/core/components/pagination/pagination.js
+++ b/front/core/components/pagination/pagination.js
@@ -73,7 +73,7 @@ class Pagination extends Component {
if (shouldLoad) {
this.nLoads++;
- this.model.loadMore();
+ this.model.loadMore(false);
this.$.$apply();
}
}
@@ -82,7 +82,7 @@ class Pagination extends Component {
if (this.maxLoads > 0 && this.nLoads == this.maxLoads)
this.nLoads = 0;
- this.model.loadMore();
+ this.model.loadMore(false);
}
$onDestroy() {
diff --git a/front/core/components/searchbar/searchbar.js b/front/core/components/searchbar/searchbar.js
index 89b5d7df6..f2855d711 100644
--- a/front/core/components/searchbar/searchbar.js
+++ b/front/core/components/searchbar/searchbar.js
@@ -26,6 +26,7 @@ export default class Searchbar extends Component {
this.autoState = true;
this.separateIndex = true;
this.entityState = 'card.summary';
+ this.isIndex = false;
this.deregisterCallback = this.$transitions.onSuccess(
{}, transition => this.onStateChange(transition));
@@ -102,6 +103,9 @@ export default class Searchbar extends Component {
filter = {};
}
+ let stateParts = this.$state.current.name.split('.');
+ this.isIndex = stateParts[1] == 'index';
+
this.doSearch(filter, 'state');
}
@@ -139,8 +143,12 @@ export default class Searchbar extends Component {
}
removeParam(index) {
+ const field = this.params[index].key;
+ this.filterSanitizer(field);
+
this.params.splice(index, 1);
- this.doSearch(this.fromBar(), 'bar');
+ this.toRemove = field;
+ this.doSearch(this.fromBar(), 'removeBar');
}
fromBar() {
@@ -163,7 +171,7 @@ export default class Searchbar extends Component {
let keys = Object.keys(filter);
keys.forEach(key => {
- if (key == 'search') return;
+ if (key == 'search' || key == 'tableQ' || key == 'tableOrder') return;
let value = filter[key];
let chip;
@@ -194,10 +202,11 @@ export default class Searchbar extends Component {
}
doSearch(filter, source) {
- if (filter === this.filter && source != 'state') return;
+ if (filter === this.filter && !this.isIndex) return;
let promise = this.onSearch({$params: filter});
promise = promise || this.$q.resolve();
promise.then(data => this.onFilter(filter, source, data));
+ this.toBar(filter);
}
onFilter(filter, source, data) {
@@ -238,8 +247,11 @@ export default class Searchbar extends Component {
} else {
state = this.searchState;
- if (filter)
+ if (filter) {
+ if (this.tableQ)
+ filter.tableQ = this.tableQ;
params = {q: JSON.stringify(filter)};
+ }
if (this.$state.is(state))
opts = {location: 'replace'};
}
@@ -247,6 +259,12 @@ export default class Searchbar extends Component {
this.filter = filter;
+ if (source == 'removeBar') {
+ delete params[this.toRemove];
+ delete this.model.userParams[this.toRemove];
+ this.model.refresh();
+ }
+
if (!filter && this.model)
this.model.clear();
if (source != 'state')
@@ -269,9 +287,14 @@ export default class Searchbar extends Component {
this.model.clear();
return;
}
+ if (Object.keys(filter).length === 0) {
+ this.filterSanitizer('search');
+ if (this.model.userParams)
+ delete this.model.userParams['search'];
+ }
let where = null;
- let params = null;
+ let params = {};
if (this.exprBuilder) {
where = buildFilter(filter,
@@ -283,9 +306,89 @@ export default class Searchbar extends Component {
params = this.fetchParams({$params: params});
}
+ this.tableQ = null;
+
+ const hasParams = this.$params.q && Object.keys(JSON.parse(this.$params.q)).length;
+ if (hasParams) {
+ const stateFilter = JSON.parse(this.$params.q);
+ for (let param in stateFilter) {
+ if (param != 'tableQ' && param != 'orderQ')
+ this.filterSanitizer(param);
+ }
+
+ for (let param in this.suggestedFilter) {
+ this.filterSanitizer(param);
+ delete stateFilter[param];
+ }
+
+ this.tableQ = stateFilter.tableQ;
+ for (let param in stateFilter.tableQ)
+ params[param] = stateFilter.tableQ[param];
+
+ Object.assign(stateFilter, params);
+ return this.model.applyParams(params)
+ .then(() => this.model.data);
+ }
+
return this.model.applyFilter(where ? {where} : null, params)
.then(() => this.model.data);
}
+
+ filterSanitizer(field) {
+ if (!field) return;
+ const userFilter = this.model.userFilter;
+ const userParams = this.model.userParams;
+ const where = userFilter && userFilter.where;
+
+ if (this.model.userParams)
+ delete this.model.userParams[field];
+
+ if (this.exprBuilder) {
+ const param = this.exprBuilder({
+ param: field,
+ value: null
+ });
+ if (param) [field] = Object.keys(param);
+ }
+
+ if (!where) return;
+
+ const whereKeys = Object.keys(where);
+ for (let key of whereKeys) {
+ removeProp(where, field, key);
+
+ if (Object.keys(where).length == 0)
+ delete userFilter.where;
+ }
+
+ function removeProp(obj, targetProp, prop) {
+ if (prop == targetProp)
+ delete obj[prop];
+
+ if (prop === 'and' || prop === 'or' && obj[prop]) {
+ const arrayCopy = obj[prop].slice();
+ for (let param of arrayCopy) {
+ const [key] = Object.keys(param);
+ const index = obj[prop].findIndex(param => {
+ return Object.keys(param)[0] == key;
+ });
+ if (key == targetProp)
+ obj[prop].splice(index, 1);
+
+ if (param[key] instanceof Array)
+ removeProp(param, field, key);
+
+ if (Object.keys(param).length == 0)
+ obj[prop].splice(index, 1);
+ }
+
+ if (obj[prop].length == 0)
+ delete obj[prop];
+ }
+ }
+
+ return {userFilter, userParams};
+ }
}
ngModule.vnComponent('vnSearchbar', {
diff --git a/front/core/components/searchbar/searchbar.spec.js b/front/core/components/searchbar/searchbar.spec.js
index e4f58d294..ed8fd9d07 100644
--- a/front/core/components/searchbar/searchbar.spec.js
+++ b/front/core/components/searchbar/searchbar.spec.js
@@ -6,7 +6,7 @@ describe('Component vnSearchbar', () => {
let $state;
let $params;
let $scope;
- let filter = {id: 1, search: 'needle'};
+ const filter = {id: 1, search: 'needle'};
beforeEach(ngModule('vnCore', $stateProvider => {
$stateProvider
@@ -70,8 +70,8 @@ describe('Component vnSearchbar', () => {
describe('filter() setter', () => {
it(`should update the bar params and search`, () => {
- let withoutHours = new Date(2000, 1, 1);
- let withHours = new Date(withoutHours.getTime());
+ const withoutHours = new Date(2000, 1, 1);
+ const withHours = new Date(withoutHours.getTime());
withHours.setHours(12, 30, 15, 10);
controller.filter = {
@@ -83,8 +83,8 @@ describe('Component vnSearchbar', () => {
myObjectProp: {myProp: 1}
};
- let chips = {};
- for (let param of controller.params || [])
+ const chips = {};
+ for (const param of controller.params || [])
chips[param.key] = param.chip;
expect(controller.searchString).toBe('needle');
@@ -172,13 +172,22 @@ describe('Component vnSearchbar', () => {
describe('removeParam()', () => {
it(`should remove the parameter from the filter`, () => {
jest.spyOn(controller, 'doSearch');
+ controller.model = {
+ refresh: jest.fn(),
+ userParams: {
+ id: 1
+ }
+ };
+
+ controller.model.applyParams = jest.fn().mockReturnValue(Promise.resolve());
+ jest.spyOn(controller.model, 'applyParams');
controller.filter = filter;
controller.removeParam(0);
expect(controller.doSearch).toHaveBeenCalledWith({
search: 'needle'
- }, 'bar');
+ }, 'removeBar');
});
});
@@ -199,7 +208,7 @@ describe('Component vnSearchbar', () => {
it(`should go to the summary state when one result`, () => {
jest.spyOn($state, 'go');
- let data = [{id: 1}];
+ const data = [{id: 1}];
controller.baseState = 'foo';
controller.onFilter(filter, 'any', data);
@@ -214,7 +223,7 @@ describe('Component vnSearchbar', () => {
$scope.$apply();
jest.spyOn($state, 'go');
- let data = [{id: 1}];
+ const data = [{id: 1}];
controller.baseState = 'foo';
controller.onFilter(filter, 'any', data);
@@ -229,7 +238,7 @@ describe('Component vnSearchbar', () => {
$scope.$apply();
jest.spyOn($state, 'go');
- let data = [{id: 1}];
+ const data = [{id: 1}];
controller.baseState = 'foo';
controller.onFilter(filter, 'any', data);
@@ -247,7 +256,7 @@ describe('Component vnSearchbar', () => {
controller.onFilter(filter, 'any');
$scope.$apply();
- let queryParams = {q: JSON.stringify(filter)};
+ const queryParams = {q: JSON.stringify(filter)};
expect($state.go).toHaveBeenCalledWith('search.state', queryParams, undefined);
expect(controller.filter).toEqual(filter);
diff --git a/front/core/components/smart-table/index.html b/front/core/components/smart-table/index.html
index f26a6b4a2..752019313 100644
--- a/front/core/components/smart-table/index.html
+++ b/front/core/components/smart-table/index.html
@@ -103,3 +103,4 @@
+
diff --git a/front/core/components/smart-table/index.js b/front/core/components/smart-table/index.js
index 9e6e7009c..770dcdf32 100644
--- a/front/core/components/smart-table/index.js
+++ b/front/core/components/smart-table/index.js
@@ -15,9 +15,17 @@ export default class SmartTable extends Component {
this.$inputsScope;
this.columns = [];
this.autoSave = false;
+ this.autoState = true;
this.transclude();
}
+ $onChanges() {
+ if (this.model) {
+ this.defaultFilter();
+ this.defaultOrder();
+ }
+ }
+
$onDestroy() {
const styleElement = document.querySelector('style[id="smart-table"]');
if (this.$.css && styleElement)
@@ -47,10 +55,8 @@ export default class SmartTable extends Component {
set model(value) {
this._model = value;
- if (value) {
+ if (value)
this.$.model = value;
- this.defaultOrder();
- }
}
getDefaultViewConfig() {
@@ -141,7 +147,7 @@ export default class SmartTable extends Component {
for (const column of this.columns) {
if (viewConfig.configuration[column.field] == false) {
const baseSelector = `smart-table[view-config-id="${this.viewConfigId}"] table`;
- selectors.push(`${baseSelector} thead > tr > th:nth-child(${column.index + 1})`);
+ selectors.push(`${baseSelector} thead > tr:not([second-header]) > th:nth-child(${column.index + 1})`);
selectors.push(`${baseSelector} tbody > tr > td:nth-child(${column.index + 1})`);
}
}
@@ -160,8 +166,36 @@ export default class SmartTable extends Component {
}
}
+ defaultFilter() {
+ if (this.disabledTableFilter || !this.$params.q) return;
+
+ const stateFilter = JSON.parse(this.$params.q).tableQ;
+ if (!stateFilter || !this.exprBuilder) return;
+
+ const columns = this.columns.map(column => column.field);
+
+ this.displaySearch();
+ if (!this.$inputsScope.searchProps)
+ this.$inputsScope.searchProps = {};
+
+ for (let param in stateFilter) {
+ if (columns.includes(param)) {
+ const whereParams = {[param]: stateFilter[param]};
+ Object.assign(this.$inputsScope.searchProps, whereParams);
+ this.addFilter(param, stateFilter[param]);
+ }
+ }
+ }
+
defaultOrder() {
- const order = this.model.order;
+ if (this.disabledTableOrder) return;
+
+ let stateOrder;
+ if (this.$params.q)
+ stateOrder = JSON.parse(this.$params.q).tableOrder;
+
+ const order = stateOrder ? stateOrder : this.model.order;
+
if (!order) return;
const orderFields = order.split(', ');
@@ -195,10 +229,13 @@ export default class SmartTable extends Component {
this.setPriority(column.element, priority);
}
}
+
+ this.model.order = order;
+ this.refresh();
}
registerColumns() {
- const header = this.element.querySelector('thead > tr');
+ const header = this.element.querySelector('thead > tr:not([second-header])');
if (!header) return;
const columns = header.querySelectorAll('th');
@@ -217,7 +254,7 @@ export default class SmartTable extends Component {
}
emptyDataRows() {
- const header = this.element.querySelector('thead > tr');
+ const header = this.element.querySelector('thead > tr:not([second-header])');
const columns = header.querySelectorAll('th');
const tbody = this.element.querySelector('tbody');
if (tbody) {
@@ -296,7 +333,7 @@ export default class SmartTable extends Component {
}
displaySearch() {
- const header = this.element.querySelector('thead > tr');
+ const header = this.element.querySelector('thead > tr:not([second-header])');
if (!header) return;
const tbody = this.element.querySelector('tbody');
@@ -395,28 +432,54 @@ export default class SmartTable extends Component {
}
searchByColumn(field) {
- const searchCriteria = this.$inputsScope.searchProps[field];
- const emptySearch = searchCriteria === '' || searchCriteria == null;
-
const filters = this.filterSanitizer(field);
if (filters && filters.userFilter)
this.model.userFilter = filters.userFilter;
- if (!emptySearch)
- this.addFilter(field, this.$inputsScope.searchProps[field]);
- else this.model.refresh();
+ this.addFilter(field, this.$inputsScope.searchProps[field]);
+ }
+
+ searchPropsSanitizer() {
+ if (!this.$inputsScope || !this.$inputsScope.searchProps) return null;
+ let searchProps = this.$inputsScope.searchProps;
+ const searchPropsArray = Object.entries(searchProps);
+ searchProps = searchPropsArray.filter(
+ ([key, value]) => value && value != ''
+ );
+
+ return Object.fromEntries(searchProps);
}
addFilter(field, value) {
- let where = {[field]: value};
+ if (value == '') value = null;
- if (this.exprBuilder) {
- where = buildFilter(where, (param, value) =>
- this.exprBuilder({param, value})
- );
+ let stateFilter = {tableQ: {}};
+ if (this.$params.q) {
+ stateFilter = JSON.parse(this.$params.q);
+ if (!stateFilter.tableQ)
+ stateFilter.tableQ = {};
+ delete stateFilter.tableQ[field];
}
- this.model.addFilter({where});
+ const whereParams = {[field]: value};
+ if (value) {
+ let where = {[field]: value};
+ if (this.exprBuilder) {
+ where = buildFilter(whereParams, (param, value) =>
+ this.exprBuilder({param, value})
+ );
+ }
+ this.model.addFilter({where});
+ }
+
+ const searchProps = this.searchPropsSanitizer();
+
+ Object.assign(stateFilter.tableQ, searchProps);
+
+ const params = {q: JSON.stringify(stateFilter)};
+
+ this.$state.go(this.$state.current.name, params, {location: 'replace'});
+ this.refresh();
}
applySort() {
@@ -426,7 +489,18 @@ export default class SmartTable extends Component {
if (order)
this.model.order = order;
- this.model.refresh();
+ let stateFilter = {tableOrder: {}};
+ if (this.$params.q) {
+ stateFilter = JSON.parse(this.$params.q);
+ if (!stateFilter.tableOrder)
+ stateFilter.tableOrder = {};
+ }
+
+ stateFilter.tableOrder = order;
+
+ const params = {q: JSON.stringify(stateFilter)};
+ this.$state.go(this.$state.current.name, params, {location: 'replace'});
+ this.refresh();
}
filterSanitizer(field) {
@@ -535,6 +609,8 @@ ngModule.vnComponent('smartTable', {
autoSave: '',
exprBuilder: '&?',
defaultNewData: '&?',
- options: ''
+ options: '',
+ disabledTableFilter: '',
+ disabledTableOrder: '',
}
});
diff --git a/front/core/components/smart-table/index.spec.js b/front/core/components/smart-table/index.spec.js
index 720e24c7e..5fd4c33b7 100644
--- a/front/core/components/smart-table/index.spec.js
+++ b/front/core/components/smart-table/index.spec.js
@@ -9,6 +9,11 @@ describe('Component smartTable', () => {
$httpBackend = _$httpBackend_;
$element = $compile(`
`)($rootScope);
controller = $element.controller('smartTable');
+ controller.model = {
+ refresh: jest.fn().mockReturnValue(new Promise(resolve => resolve())),
+ addFilter: jest.fn(),
+ userParams: {}
+ };
}));
afterEach(() => {
@@ -83,7 +88,7 @@ describe('Component smartTable', () => {
describe('defaultOrder', () => {
it('should insert a new object to the controller sortCriteria with a sortType value of "ASC"', () => {
const element = document.createElement('div');
- controller.model = {order: 'id'};
+ controller.model.order = 'id';
controller.columns = [
{field: 'id', element: element},
{field: 'test1', element: element},
@@ -101,7 +106,8 @@ describe('Component smartTable', () => {
it('should add new entries to the controller sortCriteria with a sortType values of "ASC" and "DESC"', () => {
const element = document.createElement('div');
- controller.model = {order: 'test1, id DESC'};
+ controller.model.order = 'test1, id DESC';
+
controller.columns = [
{field: 'id', element: element},
{field: 'test1', element: element},
@@ -125,8 +131,6 @@ describe('Component smartTable', () => {
describe('addFilter()', () => {
it('should call the model addFilter() with a basic where filter if exprBuilder() was not received', () => {
- controller.model = {addFilter: jest.fn()};
-
controller.addFilter('myField', 'myValue');
const expectedFilter = {
@@ -140,7 +144,6 @@ describe('Component smartTable', () => {
it('should call the model addFilter() with a built where filter resultant of exprBuilder()', () => {
controller.exprBuilder = jest.fn().mockReturnValue({builtField: 'builtValue'});
- controller.model = {addFilter: jest.fn()};
controller.addFilter('myField', 'myValue');
@@ -155,35 +158,48 @@ describe('Component smartTable', () => {
});
describe('applySort()', () => {
- it('should call the model refresh() without making changes on the model order', () => {
- controller.model = {refresh: jest.fn()};
+ it('should call the $state go and model refresh without making changes on the model order', () => {
+ controller.$state = {
+ go: jest.fn(),
+ current: {
+ name: 'section'
+ }
+ };
+ jest.spyOn(controller, 'refresh');
controller.applySort();
expect(controller.model.order).toBeUndefined();
- expect(controller.model.refresh).toHaveBeenCalled();
+ expect(controller.$state.go).toHaveBeenCalled();
+ expect(controller.refresh).toHaveBeenCalled();
});
- it('should call the model.refresh() after setting model order according to the controller sortCriteria', () => {
- controller.model = {refresh: jest.fn()};
+ it('should call the $state go and model refresh after setting model order according to the controller sortCriteria', () => {
const orderBy = {field: 'myField', sortType: 'ASC'};
+ controller.$state = {
+ go: jest.fn(),
+ current: {
+ name: 'section'
+ }
+ };
+ jest.spyOn(controller, 'refresh');
+
controller.sortCriteria = [orderBy];
controller.applySort();
expect(controller.model.order).toEqual(`${orderBy.field} ${orderBy.sortType}`);
- expect(controller.model.refresh).toHaveBeenCalled();
+ expect(controller.$state.go).toHaveBeenCalled();
+ expect(controller.refresh).toHaveBeenCalled();
});
});
describe('filterSanitizer()', () => {
it('should remove the where filter after leaving no fields in it', () => {
- controller.model = {
- userFilter: {
- where: {fieldToRemove: 'valueToRemove'}
- },
- userParams: {}
+ controller.model.userFilter = {
+ where: {fieldToRemove: 'valueToRemove'}
};
+ controller.model.userParams = {};
const result = controller.filterSanitizer('fieldToRemove');
@@ -193,23 +209,21 @@ describe('Component smartTable', () => {
});
it('should remove the where filter after leaving no fields and "empty ands/ors" in it', () => {
- controller.model = {
- userFilter: {
- where: {
- and: [
- {aFieldToRemove: 'aValueToRemove'},
- {aFieldToRemove: 'aValueToRemove'},
- {
- or: [
- {aFieldToRemove: 'aValueToRemove'},
- {aFieldToRemove: 'aValueToRemove'},
- ]
- }
- ]
- }
- },
- userParams: {}
- };
+ controller.model.userFilter = {
+ where: {
+ and: [
+ {aFieldToRemove: 'aValueToRemove'},
+ {aFieldToRemove: 'aValueToRemove'},
+ {
+ or: [
+ {aFieldToRemove: 'aValueToRemove'},
+ {aFieldToRemove: 'aValueToRemove'},
+ ]
+ }
+ ]
+ }
+ },
+ controller.model.userParams = {};
const result = controller.filterSanitizer('aFieldToRemove');
@@ -219,24 +233,22 @@ describe('Component smartTable', () => {
});
it('should not remove the where filter after leaving no empty "ands/ors" in it', () => {
- controller.model = {
- userFilter: {
- where: {
- and: [
- {aFieldToRemove: 'aValueToRemove'},
- {aFieldToRemove: 'aValueToRemove'},
- {
- or: [
- {aFieldToRemove: 'aValueToRemove'},
- {aFieldToRemove: 'aValueToRemove'},
- ]
- }
- ],
- or: [{dontKillMe: 'thanks'}]
- }
- },
- userParams: {}
+ controller.model.userFilter = {
+ where: {
+ and: [
+ {aFieldToRemove: 'aValueToRemove'},
+ {aFieldToRemove: 'aValueToRemove'},
+ {
+ or: [
+ {aFieldToRemove: 'aValueToRemove'},
+ {aFieldToRemove: 'aValueToRemove'},
+ ]
+ }
+ ],
+ or: [{dontKillMe: 'thanks'}]
+ }
};
+ controller.model.userParams = {};
const result = controller.filterSanitizer('aFieldToRemove');
@@ -249,7 +261,7 @@ describe('Component smartTable', () => {
describe('saveAll()', () => {
it('should throw an error if there are no changes to save in the model', () => {
jest.spyOn(controller.vnApp, 'showError');
- controller.model = {isChanged: false};
+ controller.model.isChanged = false;
controller.saveAll();
expect(controller.vnApp.showError).toHaveBeenCalledWith('No changes to save');
@@ -258,10 +270,8 @@ describe('Component smartTable', () => {
it('should call the showSuccess() if there are changes to save in the model', done => {
jest.spyOn(controller.vnApp, 'showSuccess');
- controller.model = {
- save: jest.fn().mockReturnValue(Promise.resolve()),
- isChanged: true
- };
+ controller.model.save = jest.fn().mockReturnValue(Promise.resolve());
+ controller.model.isChanged = true;
controller.saveAll().then(() => {
expect(controller.vnApp.showSuccess).toHaveBeenCalledWith('Data saved!');
@@ -269,4 +279,43 @@ describe('Component smartTable', () => {
}).catch(done.fail);
});
});
+
+ describe('defaultFilter()', () => {
+ it('should call model refresh and model addFilter with filter', () => {
+ controller.exprBuilder = jest.fn().mockReturnValue({builtField: 'builtValue'});
+
+ controller.$params = {
+ q: '{"tableQ": {"fieldName":"value"}}'
+ };
+ controller.columns = [
+ {field: 'fieldName'}
+ ];
+ controller.$inputsScope = {
+ searchProps: {}
+ };
+ jest.spyOn(controller, 'refresh');
+
+ controller.defaultFilter();
+
+ expect(controller.model.addFilter).toHaveBeenCalled();
+ expect(controller.refresh).toHaveBeenCalled();
+ });
+ });
+
+ describe('searchPropsSanitizer()', () => {
+ it('should searchProps sanitize', () => {
+ controller.$inputsScope = {
+ searchProps: {
+ filterOne: '1',
+ filterTwo: ''
+ }
+ };
+ const searchPropsExpected = {
+ filterOne: '1'
+ };
+ const newSearchProps = controller.searchPropsSanitizer();
+
+ expect(newSearchProps).toEqual(searchPropsExpected);
+ });
+ });
});
diff --git a/front/core/components/smart-table/table.scss b/front/core/components/smart-table/table.scss
index c38c149ca..996c41a74 100644
--- a/front/core/components/smart-table/table.scss
+++ b/front/core/components/smart-table/table.scss
@@ -8,6 +8,16 @@ smart-table table {
& > thead {
border-bottom: $border;
+ & > tr[second-header] {
+ & > th
+ {
+ text-align: center;
+ border-bottom-style: groove;
+ font-weight: bold;
+ text-transform: uppercase;
+ }
+ }
+
& > * > th {
font-weight: normal;
}
@@ -60,6 +70,9 @@ smart-table table {
vertical-align: middle;
}
}
+ &[separator]{
+ border-left-style: groove;
+ }
vn-icon.bright, i.bright {
color: #f7931e;
}
@@ -108,4 +121,4 @@ smart-table table {
font-size: 1.375rem;
text-align: center;
}
-}
\ No newline at end of file
+}
diff --git a/front/core/components/textfield/textfield.js b/front/core/components/textfield/textfield.js
index f166dae1c..14567d255 100644
--- a/front/core/components/textfield/textfield.js
+++ b/front/core/components/textfield/textfield.js
@@ -6,8 +6,98 @@ export default class Textfield extends Field {
super($element, $scope, $compile);
this.buildInput('text');
}
+
+ set maxLength(value) {
+ this.input.maxLength = value;
+ }
+
+ get maxLength() {
+ return this.input.maxLength;
+ }
+
+ set insertable(value) {
+ if (this._insertable === value)
+ return;
+
+ if (this._insertable)
+ this.input.removeEventListener('keypress', this.keyPressListener);
+
+ if (value) {
+ this.keyPressListener = async e => await this.onKeyPress(e);
+ this.input.addEventListener('keypress', this.keyPressListener);
+ }
+
+ this._insertable = value;
+ }
+
+ get insertable() {
+ return this._insertable;
+ }
+
+ async onKeyPress(e) {
+ if (e.key == 'Enter')
+ return; // If the enter key is pressed dismiss it
+
+ let maxLength = this.maxLength;
+
+ // Call the function that obtains the current cursor position
+ let pointerPosition = getCaretPosition(e.target);
+
+ // If the cursor position is on the last allowed character,
+ // prevent any keystroke from doing anything
+ if (pointerPosition >= maxLength) {
+ e.preventDefault();
+ e.stopPropagation();
+ return;
+ }
+
+ // In case by any ways the input is longer than the max especified size, cut it to it.
+ let currentArrValue = e.target.value.slice(0, maxLength);
+
+ // Transform said input to a array with each character on one position
+ currentArrValue = currentArrValue.split('');
+
+ // Cut the array in 2 parts, one with everything right of the caret,
+ // and one with everything left to it
+ let rightToTheCaret = currentArrValue.slice(pointerPosition);
+
+ let leftToTheCaret = currentArrValue.slice(0, pointerPosition);
+
+ // Remove the first number on the array that was right of the caret
+ rightToTheCaret.shift();
+
+ // The part that was left to the caret is not modified in any way and is put back into the textField
+ e.target.value = leftToTheCaret.join('');
+
+ // Add one millisecond of delay to give the UI time to update,
+ // so that it detects the changes on the textField
+ await new Promise(r => setTimeout(r, 1));
+
+ // Add the values that should be right to the Caret back in the textField
+ e.target.value = e.target.value + rightToTheCaret.join('');
+
+ // Update the current pointer position so that it moves 1 position to the right
+ pointerPosition++;
+ e.target.setSelectionRange(pointerPosition, pointerPosition);
+
+ return false;
+ }
+}
+
+function getCaretPosition(targetElement) {
+ let caretPosition = 0;
+
+ if (targetElement.selectionStart || targetElement.selectionStart == 0) // Firefox Support
+ caretPosition = targetElement.selectionStart;
+
+ return caretPosition;
}
ngModule.vnComponent('vnTextfield', {
- controller: Textfield
+ controller: Textfield,
+ bindings: {
+ maxLength: '',
+ insertable: ''
+ }
});
+
diff --git a/front/core/lib/component.js b/front/core/lib/component.js
index f17db68a2..5695d9449 100644
--- a/front/core/lib/component.js
+++ b/front/core/lib/component.js
@@ -12,9 +12,10 @@ export default class Component extends EventEmitter {
* @param {HTMLElement} $element The main component element
* @param {$rootScope.Scope} $scope The element scope
* @param {Function} $transclude The transclusion function
+ * @param {Function} $location The location function
*/
- constructor($element, $scope, $transclude) {
- super();
+ constructor($element, $scope, $transclude, $location) {
+ super($element, $scope, $transclude, $location);
this.$ = $scope;
if (!$element) return;
@@ -164,7 +165,7 @@ export default class Component extends EventEmitter {
$transclude.$$boundTransclude.$$slots[slot];
}
}
-Component.$inject = ['$element', '$scope'];
+Component.$inject = ['$element', '$scope', '$location', '$state'];
/*
* Automatically adds the most used services to the prototype, so they are
diff --git a/front/core/services/app.js b/front/core/services/app.js
index 889b24d01..fb0a08777 100644
--- a/front/core/services/app.js
+++ b/front/core/services/app.js
@@ -54,6 +54,21 @@ export default class App {
localStorage.setItem('salix-version', newVersion);
}
}
+
+ getUrl(route, appName = 'lilium') {
+ const env = process.env.NODE_ENV;
+ const filter = {
+ where: {and: [
+ {appName: appName},
+ {environment: env}
+ ]}
+ };
+
+ return this.logger.$http.get('Urls/findOne', {filter})
+ .then(res => {
+ return res.data.url + route;
+ });
+ }
}
ngModule.service('vnApp', App);
diff --git a/front/core/services/auth.js b/front/core/services/auth.js
index a1dcfa395..c15a34d94 100644
--- a/front/core/services/auth.js
+++ b/front/core/services/auth.js
@@ -23,7 +23,10 @@ export default class Auth {
initialize() {
let criteria = {
- to: state => state.name != 'login'
+ to: state => {
+ const outLayout = ['login', 'recover-password', 'reset-password'];
+ return !outLayout.some(ol => ol == state.name);
+ }
};
this.$transitions.onStart(criteria, transition => {
if (this.loggedIn)
diff --git a/front/core/services/modules.js b/front/core/services/modules.js
index 4b0d93b76..0b9f8409f 100644
--- a/front/core/services/modules.js
+++ b/front/core/services/modules.js
@@ -29,6 +29,7 @@ export default class Modules {
const module = {
name: mod.name || mod.module,
+ code: mod.module,
icon: mod.icon || null,
route,
keyBind
diff --git a/front/core/styles/fonts/MaterialIcons-Regular.woff2 b/front/core/styles/fonts/MaterialIcons-Regular.woff2
index 9d1dfcc70..2eb4fb499 100644
Binary files a/front/core/styles/fonts/MaterialIcons-Regular.woff2 and b/front/core/styles/fonts/MaterialIcons-Regular.woff2 differ
diff --git a/front/package-lock.json b/front/package-lock.json
index a2f192f01..d0fe4de2d 100644
--- a/front/package-lock.json
+++ b/front/package-lock.json
@@ -1,78 +1,215 @@
{
"name": "salix-front",
"version": "1.0.0",
- "lockfileVersion": 1,
+ "lockfileVersion": 2,
"requires": true,
+ "packages": {
+ "": {
+ "name": "salix-front",
+ "version": "1.0.0",
+ "license": "GPL-3.0",
+ "dependencies": {
+ "@uirouter/angularjs": "^1.0.20",
+ "angular": "^1.7.5",
+ "angular-animate": "^1.7.8",
+ "angular-moment": "^1.3.0",
+ "angular-translate": "^2.18.1",
+ "angular-translate-loader-partial": "^2.18.1",
+ "croppie": "^2.6.5",
+ "js-yaml": "^3.13.1",
+ "mg-crud": "^1.1.2",
+ "oclazyload": "^0.6.3",
+ "require-yaml": "0.0.1",
+ "validator": "^6.3.0"
+ }
+ },
+ "node_modules/@uirouter/angularjs": {
+ "version": "1.0.30",
+ "license": "MIT",
+ "dependencies": {
+ "@uirouter/core": "6.0.8"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ },
+ "peerDependencies": {
+ "angular": ">=1.2.0"
+ }
+ },
+ "node_modules/@uirouter/core": {
+ "version": "6.0.8",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/angular": {
+ "version": "1.8.3",
+ "license": "MIT"
+ },
+ "node_modules/angular-animate": {
+ "version": "1.8.2",
+ "license": "MIT"
+ },
+ "node_modules/angular-moment": {
+ "version": "1.3.0",
+ "license": "MIT",
+ "dependencies": {
+ "moment": ">=2.8.0 <3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/angular-translate": {
+ "version": "2.19.0",
+ "license": "MIT",
+ "dependencies": {
+ "angular": "^1.8.0"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/angular-translate-loader-partial": {
+ "version": "2.19.0",
+ "license": "MIT",
+ "dependencies": {
+ "angular-translate": "~2.19.0"
+ }
+ },
+ "node_modules/argparse": {
+ "version": "1.0.10",
+ "license": "MIT",
+ "dependencies": {
+ "sprintf-js": "~1.0.2"
+ }
+ },
+ "node_modules/croppie": {
+ "version": "2.6.5",
+ "license": "MIT"
+ },
+ "node_modules/esprima": {
+ "version": "4.0.1",
+ "license": "BSD-2-Clause",
+ "bin": {
+ "esparse": "bin/esparse.js",
+ "esvalidate": "bin/esvalidate.js"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/js-yaml": {
+ "version": "3.14.1",
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/mg-crud": {
+ "version": "1.1.2",
+ "license": "MIT",
+ "dependencies": {
+ "angular": "^1.6.1"
+ }
+ },
+ "node_modules/moment": {
+ "version": "2.29.4",
+ "license": "MIT",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/oclazyload": {
+ "version": "0.6.3",
+ "license": "MIT"
+ },
+ "node_modules/require-yaml": {
+ "version": "0.0.1",
+ "license": "BSD",
+ "dependencies": {
+ "js-yaml": ""
+ }
+ },
+ "node_modules/require-yaml/node_modules/argparse": {
+ "version": "2.0.1",
+ "license": "Python-2.0"
+ },
+ "node_modules/require-yaml/node_modules/js-yaml": {
+ "version": "4.1.0",
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^2.0.1"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/sprintf-js": {
+ "version": "1.0.3",
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/validator": {
+ "version": "6.3.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ }
+ },
"dependencies": {
"@uirouter/angularjs": {
- "version": "1.0.29",
- "resolved": "https://registry.npmjs.org/@uirouter/angularjs/-/angularjs-1.0.29.tgz",
- "integrity": "sha512-RImWnBarNixkMto0o8stEaGwZmvhv5cnuOLXyMU2pY8MP2rgEF74ZNJTLeJCW14LR7XDUxVH8Mk8bPI6lxedmQ==",
+ "version": "1.0.30",
"requires": {
- "@uirouter/core": "6.0.7"
+ "@uirouter/core": "6.0.8"
}
},
"@uirouter/core": {
- "version": "6.0.7",
- "resolved": "https://registry.npmjs.org/@uirouter/core/-/core-6.0.7.tgz",
- "integrity": "sha512-KUTJxL+6q0PiBnFx4/Z+Hsyg0pSGiaW5yZQeJmUxknecjpTbnXkLU8H2EqRn9N2B+qDRa7Jg8RcgeNDPY72O1w=="
+ "version": "6.0.8"
},
"angular": {
- "version": "1.8.2",
- "resolved": "https://registry.npmjs.org/angular/-/angular-1.8.2.tgz",
- "integrity": "sha512-IauMOej2xEe7/7Ennahkbb5qd/HFADiNuLSESz9Q27inmi32zB0lnAsFeLEWcox3Gd1F6YhNd1CP7/9IukJ0Gw=="
+ "version": "1.8.3"
},
"angular-animate": {
- "version": "1.8.2",
- "resolved": "https://registry.npmjs.org/angular-animate/-/angular-animate-1.8.2.tgz",
- "integrity": "sha512-Jbr9+grNMs9Kj57xuBU3Ju3NOPAjS1+g2UAwwDv7su1lt0/PLDy+9zEwDiu8C8xJceoTbmBNKiWGPJGBdCQLlA=="
+ "version": "1.8.2"
},
"angular-moment": {
"version": "1.3.0",
- "resolved": "https://registry.npmjs.org/angular-moment/-/angular-moment-1.3.0.tgz",
- "integrity": "sha512-KG8rvO9MoaBLwtGnxTeUveSyNtrL+RNgGl1zqWN36+HDCCVGk2DGWOzqKWB6o+eTTbO3Opn4hupWKIElc8XETA==",
"requires": {
"moment": ">=2.8.0 <3.0.0"
}
},
"angular-translate": {
- "version": "2.18.4",
- "resolved": "https://registry.npmjs.org/angular-translate/-/angular-translate-2.18.4.tgz",
- "integrity": "sha512-KohNrkH6J9PK+VW0L/nsRTcg5Fw70Ajwwe3Jbfm54Pf9u9Fd+wuingoKv+h45mKf38eT+Ouu51FPua8VmZNoCw==",
+ "version": "2.19.0",
"requires": {
"angular": "^1.8.0"
}
},
"angular-translate-loader-partial": {
- "version": "2.18.4",
- "resolved": "https://registry.npmjs.org/angular-translate-loader-partial/-/angular-translate-loader-partial-2.18.4.tgz",
- "integrity": "sha512-bsjR+FbB0sdA2528E/ugwKdlPPQhA1looxLxI3otayBTFXBpED33besfSZhYAISLgNMSL038vSssfRUen9qD8w==",
+ "version": "2.19.0",
"requires": {
- "angular-translate": "~2.18.4"
+ "angular-translate": "~2.19.0"
}
},
"argparse": {
"version": "1.0.10",
- "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
- "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
"requires": {
"sprintf-js": "~1.0.2"
}
},
"croppie": {
- "version": "2.6.5",
- "resolved": "https://registry.npmjs.org/croppie/-/croppie-2.6.5.tgz",
- "integrity": "sha512-IlChnVUGG5T3w2gRZIaQgBtlvyuYnlUWs2YZIXXR3H9KrlO1PtBT3j+ykxvy9eZIWhk+V5SpBmhCQz5UXKrEKQ=="
+ "version": "2.6.5"
},
"esprima": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
- "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A=="
+ "version": "4.0.1"
},
"js-yaml": {
"version": "3.14.1",
- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz",
- "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==",
"requires": {
"argparse": "^1.0.7",
"esprima": "^4.0.0"
@@ -80,39 +217,27 @@
},
"mg-crud": {
"version": "1.1.2",
- "resolved": "https://registry.npmjs.org/mg-crud/-/mg-crud-1.1.2.tgz",
- "integrity": "sha1-p6AWGzWSPK7/8ZpIBpS2V1vDggw=",
"requires": {
"angular": "^1.6.1"
}
},
"moment": {
- "version": "2.29.1",
- "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.1.tgz",
- "integrity": "sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ=="
+ "version": "2.29.4"
},
"oclazyload": {
- "version": "0.6.3",
- "resolved": "https://registry.npmjs.org/oclazyload/-/oclazyload-0.6.3.tgz",
- "integrity": "sha1-Kjirv/QJDAihEBZxkZRbWfLoJ5w="
+ "version": "0.6.3"
},
"require-yaml": {
"version": "0.0.1",
- "resolved": "https://registry.npmjs.org/require-yaml/-/require-yaml-0.0.1.tgz",
- "integrity": "sha1-LhsY2RPDuqcqWk03O28Tjd0sMr0=",
"requires": {
- "js-yaml": "^4.1.0"
+ "js-yaml": ""
},
"dependencies": {
"argparse": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
- "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q=="
+ "version": "2.0.1"
},
"js-yaml": {
"version": "4.1.0",
- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
- "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
"requires": {
"argparse": "^2.0.1"
}
@@ -120,14 +245,10 @@
}
},
"sprintf-js": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
- "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw="
+ "version": "1.0.3"
},
"validator": {
- "version": "6.3.0",
- "resolved": "https://registry.npmjs.org/validator/-/validator-6.3.0.tgz",
- "integrity": "sha1-R84j7Y1Ord+p1LjvAHG2zxB418g="
+ "version": "6.3.0"
}
}
}
diff --git a/front/salix/components/app/app.html b/front/salix/components/app/app.html
index d32c9f68b..d6169308a 100644
--- a/front/salix/components/app/app.html
+++ b/front/salix/components/app/app.html
@@ -1,9 +1,3 @@
-
-
-
-
+
diff --git a/front/salix/components/app/app.js b/front/salix/components/app/app.js
index 1f8cdb46e..97384d1e1 100644
--- a/front/salix/components/app/app.js
+++ b/front/salix/components/app/app.js
@@ -9,13 +9,14 @@ import Component from 'core/lib/component';
* @property {SideMenu} rightMenu The left menu, if it's present
*/
export default class App extends Component {
- $postLink() {
- this.vnApp.logger = this;
+ constructor($element, $, $location, $state) {
+ super($element, $, $location, $state);
+ this.$location = $location;
+ this.$state = $state;
}
- get showLayout() {
- let state = this.$state.current.name;
- return state && state != 'login';
+ $postLink() {
+ this.vnApp.logger = this;
}
$onDestroy() {
diff --git a/front/salix/components/home/home.js b/front/salix/components/home/home.js
index 7a36e1d42..144a1c6d0 100644
--- a/front/salix/components/home/home.js
+++ b/front/salix/components/home/home.js
@@ -33,7 +33,9 @@ export default class Controller extends Component {
if (!res.data.length) return;
for (let starredModule of res.data) {
- const module = this.modules.find(mod => mod.name === starredModule.moduleFk);
+ let moduleName = starredModule.moduleFk;
+ if (moduleName === 'customer') moduleName = 'client';
+ const module = this.modules.find(mod => mod.code === moduleName);
if (module) {
module.starred = true;
module.position = starredModule.position;
@@ -47,8 +49,10 @@ export default class Controller extends Component {
if (event.defaultPrevented) return;
event.preventDefault();
event.stopPropagation();
+ let moduleName = module.code;
+ if (moduleName === 'client') moduleName = 'customer';
- const params = {moduleName: module.name};
+ const params = {moduleName};
const query = `starredModules/toggleStarredModule`;
this.$http.post(query, params).then(res => {
if (res.data) {
@@ -84,13 +88,16 @@ export default class Controller extends Component {
event.preventDefault();
event.stopPropagation();
- const params = {moduleName: module.name, direction: direction};
+ let moduleName = module.code;
+ if (moduleName === 'client') moduleName = 'customer';
+
+ const params = {moduleName: moduleName, direction: direction};
const query = `starredModules/setPosition`;
this.$http.post(query, params).then(res => {
if (res.data) {
module.position = res.data.movingModule.position;
this.modules.forEach(mod => {
- if (mod.name == res.data.pushedModule.moduleFk)
+ if (mod.code == res.data.pushedModule.moduleFk)
mod.position = res.data.pushedModule.position;
});
this.vnApp.showSuccess(this.$t('Data saved!'));
diff --git a/front/salix/components/home/home.spec.js b/front/salix/components/home/home.spec.js
index 4a8a58a55..5559ca1d4 100644
--- a/front/salix/components/home/home.spec.js
+++ b/front/salix/components/home/home.spec.js
@@ -19,7 +19,7 @@ describe('Salix Component vnHome', () => {
describe('getStarredModules()', () => {
it('should not set any of the modules as starred if there are no starred modules for the user', () => {
const expectedResponse = [];
- controller._modules = [{module: 'client', name: 'Clients'}];
+ controller._modules = [{code: 'client', name: 'Clients'}];
$httpBackend.whenRoute('GET', 'starredModules/getStarredModules').respond(expectedResponse);
$httpBackend.expectGET('starredModules/getStarredModules').respond(expectedResponse);
@@ -31,8 +31,8 @@ describe('Salix Component vnHome', () => {
});
it('should set the example module as starred since its the starred module for the user', () => {
- const expectedResponse = [{id: 1, moduleFk: 'Clients', workerFk: 9}];
- controller._modules = [{module: 'client', name: 'Clients'}];
+ const expectedResponse = [{id: 1, moduleFk: 'customer', workerFk: 9}];
+ controller._modules = [{code: 'client', name: 'Clients'}];
$httpBackend.whenRoute('GET', 'starredModules/getStarredModules').respond(expectedResponse);
$httpBackend.expectGET('starredModules/getStarredModules').respond(expectedResponse);
@@ -48,7 +48,7 @@ describe('Salix Component vnHome', () => {
it(`should set the received module as starred if it wasn't starred`, () => {
const expectedResponse = [{id: 1, moduleFk: 'Clients', workerFk: 9}];
const event = new Event('target');
- controller._modules = [{module: 'client', name: 'Clients'}];
+ controller._modules = [{code: 'client', name: 'Clients'}];
$httpBackend.whenRoute('GET', 'starredModules/getStarredModules').respond(expectedResponse);
$httpBackend.expectPOST('starredModules/toggleStarredModule').respond(expectedResponse);
@@ -61,7 +61,7 @@ describe('Salix Component vnHome', () => {
it('should set the received module as regular if it was starred', () => {
const event = new Event('target');
- controller._modules = [{module: 'client', name: 'Clients', starred: true}];
+ controller._modules = [{code: 'client', name: 'Clients', starred: true}];
$httpBackend.whenRoute('GET', 'starredModules/getStarredModules').respond([]);
$httpBackend.expectPOST('starredModules/toggleStarredModule').respond(undefined);
@@ -76,18 +76,18 @@ describe('Salix Component vnHome', () => {
describe('moveModule()', () => {
it('should perform a query to setPosition and the apply the position to the moved and pushed modules', () => {
const starredModules = [
- {id: 1, moduleFk: 'Clients', workerFk: 9},
- {id: 2, moduleFk: 'Orders', workerFk: 9}
+ {id: 1, moduleFk: 'customer', workerFk: 9},
+ {id: 2, moduleFk: 'order', workerFk: 9}
];
const movedModules = {
- movingModule: {position: 2, moduleFk: 'Clients'},
- pushedModule: {position: 1, moduleFk: 'Orders'}
+ movingModule: {position: 2, moduleFk: 'customer'},
+ pushedModule: {position: 1, moduleFk: 'order'}
};
const event = new Event('target');
controller._modules = [
- {module: 'client', name: 'Clients', position: 1},
- {module: 'orders', name: 'Orders', position: 2}
+ {code: 'client', name: 'Clients', position: 1},
+ {code: 'order', name: 'Orders', position: 2}
];
$httpBackend.whenRoute('GET', 'starredModules/getStarredModules').respond(starredModules);
diff --git a/front/salix/components/index.js b/front/salix/components/index.js
index ce4ad585a..f6727fadf 100644
--- a/front/salix/components/index.js
+++ b/front/salix/components/index.js
@@ -5,7 +5,10 @@ import './descriptor-popover';
import './home/home';
import './layout';
import './left-menu/left-menu';
-import './login/login';
+import './login';
+import './outLayout';
+import './recover-password';
+import './reset-password';
import './module-card';
import './module-main';
import './side-menu/side-menu';
@@ -16,3 +19,4 @@ import './user-popover';
import './upload-photo';
import './bank-entity';
import './log';
+import './sendSms';
diff --git a/front/salix/components/log/index.html b/front/salix/components/log/index.html
index 0a0449038..79dfcef8c 100644
--- a/front/salix/components/log/index.html
+++ b/front/salix/components/log/index.html
@@ -1,10 +1,12 @@
-
@@ -13,81 +15,53 @@
Date
- Author
- Model
- Action
- Name
- Before
- After
+ User
+ Model
+ Action
+ Name
+ Changes
{{::log.creationDate | date:'dd/MM/yyyy HH:mm'}}
-
-
- Changed by :
- {{::log.user.name || 'System' | translate}}
-
-
-
- Model :
- {{::log.changedModel | dashIfEmpty}}
-
-
- Action :
- {{::$ctrl.actionsText[log.action] | dashIfEmpty}}
-
-
- Name :
- {{::log.changedModelValue | dashIfEmpty}}
-
-
-
+
{{::log.user.name || 'System' | translate}}
-
+
{{::log.changedModel}}
-
+
{{::$ctrl.actionsText[log.action]}}
-
+
{{::log.changedModelValue}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{::log.description}}
-
-
+
+
+
+
+ Field
+ Before
+ After
+
+
+
+
+ {{prop.name}}
+ {{prop.old}}
+ {{prop.new}}
+
+
+
+
+ {{::log.description}}
+
@@ -96,4 +70,4 @@
-
\ No newline at end of file
+
diff --git a/front/salix/components/log/index.js b/front/salix/components/log/index.js
index c5a4febcc..1c54aa9b8 100644
--- a/front/salix/components/log/index.js
+++ b/front/salix/components/log/index.js
@@ -2,15 +2,17 @@ import ngModule from '../../module';
import Section from '../section';
import './style.scss';
+const validDate = /^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(.[0-9]+)?(Z)?$/;
+
export default class Controller extends Section {
constructor($element, $) {
super($element, $);
this.actionsText = {
- 'insert': 'Creates',
- 'update': 'Updates',
- 'delete': 'Deletes',
- 'select': 'Views'
- }; ``;
+ insert: 'Creates',
+ update: 'Updates',
+ delete: 'Deletes',
+ select: 'Views'
+ };
this.filter = {
include: [{
relation: 'user',
@@ -33,29 +35,57 @@ export default class Controller extends Section {
set logs(value) {
this._logs = value;
+ if (!this.logs) return;
+ const empty = {};
+ const validations = window.validations;
+ for (const log of value) {
+ const oldValues = log.oldInstance || empty;
+ const newValues = log.newInstance || empty;
+ const locale = validations[log.changedModel]?.locale || empty;
- if (this.logs) {
- this.logs.forEach(log => {
- log.oldProperties = this.getInstance(log.oldInstance);
- log.newProperties = this.getInstance(log.newInstance);
- });
+ let props = Object.keys(oldValues).concat(Object.keys(newValues));
+ props = [...new Set(props)];
+
+ log.props = [];
+ for (const prop of props) {
+ log.props.push({
+ name: locale[prop] || prop,
+ old: this.formatValue(oldValues[prop]),
+ new: this.formatValue(newValues[prop])
+ });
+ }
}
}
- getInstance(instance) {
- const properties = [];
- let validDate = /^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(.[0-9]+)?(Z)?$/;
+ get showModelName() {
+ return !(this.changedModel && this.changedModelId);
+ }
- if (typeof instance == 'object' && instance != null) {
- Object.keys(instance).forEach(property => {
- if (validDate.test(instance[property]))
- instance[property] = new Date(instance[property]).toLocaleString('es-ES');
+ formatValue(value) {
+ let type = typeof value;
- properties.push({key: property, value: instance[property]});
- });
- return properties;
+ if (type === 'string' && validDate.test(value)) {
+ value = new Date(value);
+ type = typeof value;
+ }
+
+ switch (type) {
+ case 'boolean':
+ return value ? '✓' : '✗';
+ case 'object':
+ if (value instanceof Date) {
+ const hasZeroTime =
+ value.getHours() === 0 &&
+ value.getMinutes() === 0 &&
+ value.getSeconds() === 0;
+ const format = hasZeroTime ? 'dd/MM/yyyy' : 'dd/MM/yyyy HH:mm:ss';
+ return this.$filter('date')(value, format);
+ }
+ else
+ return value;
+ default:
+ return value;
}
- return null;
}
showWorkerDescriptor(event, workerId) {
@@ -70,6 +100,8 @@ ngModule.vnComponent('vnLog', {
bindings: {
model: '<',
originId: '<',
+ changedModel: '',
+ changedModelId: '',
url: '@'
}
});
diff --git a/front/salix/components/log/locale/es.yml b/front/salix/components/log/locale/es.yml
index f483bea5e..d341095d8 100644
--- a/front/salix/components/log/locale/es.yml
+++ b/front/salix/components/log/locale/es.yml
@@ -11,4 +11,5 @@ Updates: Actualiza
Deletes: Elimina
Views: Visualiza
System: Sistema
-note: nota
\ No newline at end of file
+note: nota
+Changes: Cambios
diff --git a/front/salix/components/log/style.scss b/front/salix/components/log/style.scss
index ca1de113a..bc943996d 100644
--- a/front/salix/components/log/style.scss
+++ b/front/salix/components/log/style.scss
@@ -23,6 +23,28 @@ vn-log {
display: block;
}
}
+ .attributes {
+ width: 100%;
+
+ tr {
+ height: 10px;
+
+ & > td {
+ padding: 2px;
+ }
+ & > td.field,
+ & > th.field {
+ width: 20%;
+ color: gray;
+ }
+ & > td.before,
+ & > th.before,
+ & > td.after,
+ & > th.after {
+ width: 40%;
+ }
+ }
+ }
}
.ellipsis {
white-space: nowrap;
@@ -40,4 +62,4 @@ vn-log {
.alignSpan {
overflow: hidden;
display: inline-block;
-}
\ No newline at end of file
+}
diff --git a/front/salix/components/login/index.html b/front/salix/components/login/index.html
new file mode 100644
index 000000000..963c23061
--- /dev/null
+++ b/front/salix/components/login/index.html
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
diff --git a/front/salix/components/login/login.js b/front/salix/components/login/index.js
similarity index 96%
rename from front/salix/components/login/login.js
rename to front/salix/components/login/index.js
index b5f8c1e7d..150e896a1 100644
--- a/front/salix/components/login/login.js
+++ b/front/salix/components/login/index.js
@@ -38,6 +38,6 @@ export default class Controller {
Controller.$inject = ['$scope', '$element', 'vnAuth'];
ngModule.vnComponent('vnLogin', {
- template: require('./login.html'),
+ template: require('./index.html'),
controller: Controller
});
diff --git a/front/salix/components/login/locale/en.yml b/front/salix/components/login/locale/en.yml
deleted file mode 100644
index c59a6dd8e..000000000
--- a/front/salix/components/login/locale/en.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-User: User
-Password: Password
-Do not close session: Do not close session
-Enter: Enter
\ No newline at end of file
diff --git a/front/salix/components/login/locale/es.yml b/front/salix/components/login/locale/es.yml
index 9c9ba5905..c34861bfb 100644
--- a/front/salix/components/login/locale/es.yml
+++ b/front/salix/components/login/locale/es.yml
@@ -1,4 +1,5 @@
User: Usuario
Password: Contraseña
Do not close session: No cerrar sesión
-Enter: Entrar
\ No newline at end of file
+Enter: Entrar
+I do not remember my password: No recuerdo mi contraseña
diff --git a/front/salix/components/login/login.html b/front/salix/components/login/login.html
deleted file mode 100644
index b15714a23..000000000
--- a/front/salix/components/login/login.html
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
diff --git a/front/salix/components/login/style.scss b/front/salix/components/login/style.scss
index 8ebf2a68c..f13c9cf86 100644
--- a/front/salix/components/login/style.scss
+++ b/front/salix/components/login/style.scss
@@ -1,74 +1,24 @@
@import "variables";
-vn-login {
- position: absolute;
- height: 100%;
- width: 100%;
- margin: 0;
- padding: 0;
- color: $color-font;
- font-size: 1.1rem;
- font-weight: normal;
- background-color: $color-bg-dark;
- display: flex;
- justify-content: center;
- align-items: center;
- overflow: auto;
+vn-login{
+ .footer {
+ margin-top: 32px;
+ text-align: center;
+ position: relative;
+ & > .vn-submit {
+ display: block;
- & > .box {
- box-sizing: border-box;
- position: absolute;
- max-width: 304px;
- min-width: 240px;
- padding: 48px;
- background-color: $color-bg-panel;
- box-shadow: 0 0 16px 0 rgba(0, 0, 0, .6);
- border-radius: 8px;
-
- & > img {
- width: 100%;
- padding-bottom: 16px;
- }
- & > form {
- & > .vn-textfield {
- width: 100%;
- }
- & > .vn-check {
- display: block;
- .md-label {
- white-space: inherit;
- }
- }
- & > .footer {
- margin-top: 32px;
- text-align: center;
- position: relative;
-
- & > vn-submit {
- display: block;
-
- & > input {
- display: block;
- width: 100%;
- }
- }
- & > .spinner-wrapper {
- position: absolute;
- width: 0;
- top: 3px;
- right: -8px;
- overflow: visible;
- }
- }
- }
- }
-
- @media screen and (max-width: 600px) {
- background-color: $color-bg-panel;
-
- & > .box {
- padding: 16px;
- box-shadow: none;
- }
- }
+ & > input {
+ display: block;
+ width: 100%;
+ }
+ }
+ & > .spinner-wrapper {
+ position: absolute;
+ width: 0;
+ top: 3px;
+ right: -8px;
+ overflow: visible;
+ }
+ }
}
diff --git a/front/salix/components/outLayout/index.html b/front/salix/components/outLayout/index.html
new file mode 100644
index 000000000..186979f8c
--- /dev/null
+++ b/front/salix/components/outLayout/index.html
@@ -0,0 +1,6 @@
+
+
+
+
diff --git a/front/salix/components/outLayout/index.js b/front/salix/components/outLayout/index.js
new file mode 100644
index 000000000..f0e21fa29
--- /dev/null
+++ b/front/salix/components/outLayout/index.js
@@ -0,0 +1,16 @@
+import ngModule from '../../module';
+import Component from 'core/lib/component';
+import './style.scss';
+
+export default class OutLayout extends Component {
+ constructor($element, $scope) {
+ super($element, $scope);
+ }
+}
+
+OutLayout.$inject = ['$element', '$scope'];
+
+ngModule.vnComponent('vnOutLayout', {
+ template: require('./index.html'),
+ controller: OutLayout
+});
diff --git a/front/salix/components/login/logo.svg b/front/salix/components/outLayout/logo.svg
similarity index 100%
rename from front/salix/components/login/logo.svg
rename to front/salix/components/outLayout/logo.svg
diff --git a/front/salix/components/outLayout/style.scss b/front/salix/components/outLayout/style.scss
new file mode 100644
index 000000000..aa94fefb3
--- /dev/null
+++ b/front/salix/components/outLayout/style.scss
@@ -0,0 +1,67 @@
+@import "variables";
+
+vn-out-layout{
+ position: absolute;
+ height: 100%;
+ width: 100%;
+ margin: 0;
+ padding: 0;
+ color: $color-font;
+ font-size: 1.1rem;
+ font-weight: normal;
+ background-color: $color-bg-dark;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ overflow: auto;
+
+ & > .box {
+ box-sizing: border-box;
+ position: absolute;
+ max-width: 304px;
+ min-width: 240px;
+ padding: 48px;
+ background-color: $color-bg-panel;
+ box-shadow: 0 0 16px 0 rgba(0, 0, 0, .6);
+ border-radius: 8px;
+
+ & > img {
+ width: 100%;
+ padding-bottom: 16px;
+ }
+ & > form {
+ & > .vn-textfield {
+ width: 100%;
+ }
+ & > .vn-check {
+ display: block;
+ .md-label {
+ white-space: inherit;
+ }
+ }
+ }
+
+ h5{
+ color: $color-primary;
+ }
+
+ .text-secondary{
+ text-align: center;
+ padding-bottom: 16px;
+ }
+
+ }
+
+ @media screen and (max-width: 600px) {
+ background-color: $color-bg-panel;
+
+ & > .box {
+ padding: 16px;
+ box-shadow: none;
+ }
+ }
+
+ a{
+ color: $color-primary;
+ }
+}
diff --git a/front/salix/components/recover-password/index.html b/front/salix/components/recover-password/index.html
new file mode 100644
index 000000000..73f5401d9
--- /dev/null
+++ b/front/salix/components/recover-password/index.html
@@ -0,0 +1,17 @@
+
Recover password
+
+
+
+ We will sent you an email to recover your password
+
+
diff --git a/front/salix/components/recover-password/index.js b/front/salix/components/recover-password/index.js
new file mode 100644
index 000000000..3de7f3266
--- /dev/null
+++ b/front/salix/components/recover-password/index.js
@@ -0,0 +1,37 @@
+import ngModule from '../../module';
+import './style.scss';
+
+export default class Controller {
+ constructor($scope, $element, $http, vnApp, $translate, $state) {
+ Object.assign(this, {
+ $scope,
+ $element,
+ $http,
+ vnApp,
+ $translate,
+ $state
+ });
+ }
+
+ goToLogin() {
+ this.vnApp.showSuccess(this.$translate.instant('Notification sent!'));
+ this.$state.go('login');
+ }
+
+ submit() {
+ const params = {
+ email: this.email
+ };
+
+ this.$http.post('Accounts/recoverPassword', params)
+ .then(() => {
+ this.goToLogin();
+ });
+ }
+}
+Controller.$inject = ['$scope', '$element', '$http', 'vnApp', '$translate', '$state'];
+
+ngModule.vnComponent('vnRecoverPassword', {
+ template: require('./index.html'),
+ controller: Controller
+});
diff --git a/front/salix/components/recover-password/locale/es.yml b/front/salix/components/recover-password/locale/es.yml
new file mode 100644
index 000000000..b71c71415
--- /dev/null
+++ b/front/salix/components/recover-password/locale/es.yml
@@ -0,0 +1,3 @@
+Recover password: Recuperar contraseña
+We will sent you an email to recover your password: Te enviaremos un correo para restablecer tu contraseña
+Notification sent!: ¡Notificación enviada!
diff --git a/front/salix/components/recover-password/style.scss b/front/salix/components/recover-password/style.scss
new file mode 100644
index 000000000..d3c6f594e
--- /dev/null
+++ b/front/salix/components/recover-password/style.scss
@@ -0,0 +1,24 @@
+@import "variables";
+
+vn-recover-password{
+ .footer {
+ margin-top: 32px;
+ text-align: center;
+ position: relative;
+ & > .vn-submit {
+ display: block;
+
+ & > input {
+ display: block;
+ width: 100%;
+ }
+ }
+ & > .spinner-wrapper {
+ position: absolute;
+ width: 0;
+ top: 3px;
+ right: -8px;
+ overflow: visible;
+ }
+ }
+}
diff --git a/front/salix/components/reset-password/index.html b/front/salix/components/reset-password/index.html
new file mode 100644
index 000000000..bdbdc113e
--- /dev/null
+++ b/front/salix/components/reset-password/index.html
@@ -0,0 +1,19 @@
+
Reset password
+
+
+
+
+
diff --git a/front/salix/components/reset-password/index.js b/front/salix/components/reset-password/index.js
new file mode 100644
index 000000000..20c6c34fe
--- /dev/null
+++ b/front/salix/components/reset-password/index.js
@@ -0,0 +1,48 @@
+import ngModule from '../../module';
+import './style.scss';
+
+export default class Controller {
+ constructor($scope, $element, $http, vnApp, $translate, $state, $location) {
+ Object.assign(this, {
+ $scope,
+ $element,
+ $http,
+ vnApp,
+ $translate,
+ $state,
+ $location
+ });
+ }
+
+ $onInit() {
+ this.$http.get('UserPasswords/findOne')
+ .then(res => {
+ this.passRequirements = res.data;
+ });
+ }
+
+ submit() {
+ if (!this.newPassword)
+ throw new UserError(`You must enter a new password`);
+ if (this.newPassword != this.repeatPassword)
+ throw new UserError(`Passwords don't match`);
+
+ const headers = {
+ Authorization: this.$location.$$search.access_token
+ };
+
+ const newPassword = this.newPassword;
+
+ this.$http.post('users/reset-password', {newPassword}, {headers})
+ .then(() => {
+ this.vnApp.showSuccess(this.$translate.instant('Password changed!'));
+ this.$state.go('login');
+ });
+ }
+}
+Controller.$inject = ['$scope', '$element', '$http', 'vnApp', '$translate', '$state', '$location'];
+
+ngModule.vnComponent('vnResetPassword', {
+ template: require('./index.html'),
+ controller: Controller
+});
diff --git a/front/salix/components/reset-password/locale/en.yml b/front/salix/components/reset-password/locale/en.yml
new file mode 100644
index 000000000..e5419e1c8
--- /dev/null
+++ b/front/salix/components/reset-password/locale/en.yml
@@ -0,0 +1,4 @@
+Password requirements: >
+ The password must have at least {{ length }} length characters,
+ {{nAlpha}} alphabetic characters, {{nUpper}} capital letters, {{nDigits}}
+ digits and {{nPunct}} symbols (Ex: $%&.)
diff --git a/front/salix/components/reset-password/locale/es.yml b/front/salix/components/reset-password/locale/es.yml
new file mode 100644
index 000000000..0771d5dc3
--- /dev/null
+++ b/front/salix/components/reset-password/locale/es.yml
@@ -0,0 +1,8 @@
+Reset password: Restrablecer contraseña
+New password: Nueva contraseña
+Repeat password: Repetir contraseñaç
+Password changed!: ¡Contraseña cambiada!
+Password requirements: >
+ La contraseña debe tener al menos {{ length }} caracteres de longitud,
+ {{nAlpha}} caracteres alfabéticos, {{nUpper}} letras mayúsculas, {{nDigits}}
+ dígitos y {{nPunct}} símbolos (Ej: $%&.)
diff --git a/front/salix/components/reset-password/style.scss b/front/salix/components/reset-password/style.scss
new file mode 100644
index 000000000..87e4adc8c
--- /dev/null
+++ b/front/salix/components/reset-password/style.scss
@@ -0,0 +1,24 @@
+@import "variables";
+
+vn-reset-password{
+ .footer {
+ margin-top: 32px;
+ text-align: center;
+ position: relative;
+ & > .vn-submit {
+ display: block;
+
+ & > input {
+ display: block;
+ width: 100%;
+ }
+ }
+ & > .spinner-wrapper {
+ position: absolute;
+ width: 0;
+ top: 3px;
+ right: -8px;
+ overflow: visible;
+ }
+ }
+}
diff --git a/modules/client/front/sms/index.html b/front/salix/components/sendSms/index.html
similarity index 100%
rename from modules/client/front/sms/index.html
rename to front/salix/components/sendSms/index.html
diff --git a/front/salix/components/sendSms/index.js b/front/salix/components/sendSms/index.js
new file mode 100644
index 000000000..0947550b0
--- /dev/null
+++ b/front/salix/components/sendSms/index.js
@@ -0,0 +1,50 @@
+import ngModule from '../../module';
+import './style.scss';
+import Dialog from '../../../core/components/dialog';
+
+export default class sendSmsDialog extends Dialog {
+ constructor($element, $scope, $http, $translate, vnApp) {
+ super($element, $scope, $http, $translate, vnApp);
+
+ new CustomEvent('openSmsDialog', {
+ detail: {
+ this: this
+ }
+ });
+ }
+
+ open() {
+ this.$.SMSDialog.show();
+ }
+
+ charactersRemaining() {
+ const element = this.sms.message;
+ const maxLength = 160;
+ return maxLength - element.length;
+ }
+
+ onResponse() {
+ try {
+ if (!this.sms.destination)
+ throw new Error(`The destination can't be empty`);
+ if (!this.sms.message)
+ throw new Error(`The message can't be empty`);
+ if (this.charactersRemaining() < 0)
+ throw new Error(`The message it's too long`);
+
+ return this.onSend({$sms: this.sms});
+ } catch (e) {
+ this.vnApp.showError(this.$t(e.message));
+ return false;
+ }
+ }
+}
+
+ngModule.vnComponent('vnSmsDialog', {
+ template: require('./index.html'),
+ controller: sendSmsDialog,
+ bindings: {
+ sms: '<',
+ onSend: '&',
+ }
+});
diff --git a/modules/client/front/sms/locale/es.yml b/front/salix/components/sendSms/locale/es.yml
similarity index 100%
rename from modules/client/front/sms/locale/es.yml
rename to front/salix/components/sendSms/locale/es.yml
diff --git a/modules/client/front/sms/style.scss b/front/salix/components/sendSms/style.scss
similarity index 100%
rename from modules/client/front/sms/style.scss
rename to front/salix/components/sendSms/style.scss
diff --git a/front/salix/locale/es.yml b/front/salix/locale/es.yml
index e5dc82b16..d92c32b33 100644
--- a/front/salix/locale/es.yml
+++ b/front/salix/locale/es.yml
@@ -51,6 +51,7 @@ Entries: Entradas
Users: Usuarios
Suppliers: Proveedores
Monitors: Monitores
+Shelvings: Carros
# Common
diff --git a/front/salix/module.js b/front/salix/module.js
index a8de61ae0..01df01a67 100644
--- a/front/salix/module.js
+++ b/front/salix/module.js
@@ -112,7 +112,7 @@ function $exceptionHandler(vnApp, $window, $state, $injector) {
switch (exception.status) {
case 401:
- if ($state.current.name != 'login') {
+ if (!$state.current.name.includes('login')) {
messageT = 'Session has expired';
let params = {continue: $window.location.hash};
$state.go('login', params);
diff --git a/front/salix/routes.js b/front/salix/routes.js
index 600907ff1..f32c143ef 100644
--- a/front/salix/routes.js
+++ b/front/salix/routes.js
@@ -3,17 +3,38 @@ import getMainRoute from 'core/lib/get-main-route';
config.$inject = ['$stateProvider', '$urlRouterProvider'];
function config($stateProvider, $urlRouterProvider) {
- $urlRouterProvider.otherwise('/');
+ $urlRouterProvider
+ .otherwise('/');
$stateProvider
+ .state('layout', {
+ abstract: true,
+ template: '
',
+ })
+ .state('outLayout', {
+ abstract: true,
+ template: '
',
+ })
.state('login', {
+ parent: 'outLayout',
url: '/login?continue',
description: 'Login',
- views: {
- login: {template: '
'}
- }
+ template: '
'
+ })
+ .state('recover-password', {
+ parent: 'outLayout',
+ url: '/recover-password',
+ description: 'Recover password',
+ template: '
'
+ })
+ .state('reset-password', {
+ parent: 'outLayout',
+ url: '/reset-password',
+ description: 'Reset password',
+ template: '
'
})
.state('home', {
+ parent: 'layout',
url: '/',
description: 'Home',
template: '
'
@@ -44,6 +65,10 @@ function config($stateProvider, $urlRouterProvider) {
};
if (route.abstract)
configRoute.abstract = true;
+
+ if (!route.state.includes('.'))
+ configRoute.parent = 'layout';
+
if (route.routeParams)
configRoute.params = route.routeParams;
diff --git a/loopback/common/methods/schema/model-info.js b/loopback/common/methods/schema/model-info.js
index a95b60627..6a4db033d 100644
--- a/loopback/common/methods/schema/model-info.js
+++ b/loopback/common/methods/schema/model-info.js
@@ -1,3 +1,5 @@
+const path = require('path');
+const fs = require('fs');
module.exports = Self => {
Self.remoteMethod('modelInfo', {
@@ -19,6 +21,42 @@ module.exports = Self => {
}
});
+ const modelsLocale = new Map();
+ const modulesDir = path.resolve(`${__dirname}/../../../../modules`);
+ const modules = fs.readdirSync(modulesDir);
+
+ for (const mod of modules) {
+ const modelsDir = path.join(modulesDir, mod, `back/locale`);
+ if (!fs.existsSync(modelsDir)) continue;
+ const models = fs.readdirSync(modelsDir);
+
+ for (const model of models) {
+ const localeDir = path.join(modelsDir, model);
+ const localeFiles = fs.readdirSync(localeDir);
+
+ let modelName = model.charAt(0).toUpperCase() + model.substring(1);
+ modelName = modelName.replace(/-\w/g, match => {
+ return match.charAt(1).toUpperCase();
+ });
+
+ const modelLocale = new Map();
+ modelsLocale.set(modelName, modelLocale);
+
+ for (const localeFile of localeFiles) {
+ const localePath = path.join(localeDir, localeFile);
+
+ const match = localeFile.match(/^([a-z]+)\.yml$/);
+ if (!match) {
+ console.warn(`Skipping wrong model locale file: ${localeFile}`);
+ continue;
+ }
+
+ const translations = require(localePath);
+ modelLocale.set(match[1], translations);
+ }
+ }
+ }
+
Self.modelInfo = async function(ctx) {
let json = {};
let models = Self.app.models;
@@ -49,9 +87,14 @@ module.exports = Self => {
jsonValidations[fieldName] = jsonField;
}
+ const modelLocale = modelsLocale.get(modelName);
+ const lang = ctx.req.getLocale();
+ const locale = modelLocale && modelLocale.get(lang);
+
json[modelName] = {
properties: model.definition.rawProperties,
- validations: jsonValidations
+ validations: jsonValidations,
+ locale
};
}
diff --git a/loopback/locale/en.json b/loopback/locale/en.json
index fdea4ad4f..a406b55a5 100644
--- a/loopback/locale/en.json
+++ b/loopback/locale/en.json
@@ -66,7 +66,8 @@
"MESSAGE_INSURANCE_CHANGE": "I have changed the insurence credit of client [{{clientName}} ({{clientId}})]({{{url}}}) to *{{credit}} €*",
"Changed client paymethod": "I have changed the pay method for client [{{clientName}} ({{clientId}})]({{{url}}})",
"Sent units from ticket": "I sent *{{quantity}}* units of [{{concept}} ({{itemId}})]({{{itemUrl}}}) to *\"{{nickname}}\"* coming from ticket id [{{ticketId}}]({{{ticketUrl}}})",
- "Claim will be picked": "The product from the claim [({{claimId}})]({{{claimUrl}}}) from the client *{{clientName}}* will be picked",
+ "Change quantity": "{{concept}} change of {{oldQuantity}} to {{newQuantity}}",
+ "Claim will be picked": "The product from the claim [({{claimId}})]({{{claimUrl}}}) from the client *{{clientName}}* will be picked",
"Claim state has changed to incomplete": "The state of the claim [({{claimId}})]({{{claimUrl}}}) from client *{{clientName}}* has changed to *incomplete*",
"Claim state has changed to canceled": "The state of the claim [({{claimId}})]({{{claimUrl}}}) from client *{{clientName}}* has changed to *canceled*",
"Customs agent is required for a non UEE member": "Customs agent is required for a non UEE member",
@@ -131,5 +132,20 @@
"Fichadas impares": "Odd signs",
"Descanso diario 9h.": "Daily rest 9h.",
"Descanso semanal 36h. / 72h.": "Weekly rest 36h. / 72h.",
- "Password does not meet requirements": "Password does not meet requirements"
-}
\ No newline at end of file
+ "Verify email": "Verify email",
+ "Click on the following link to verify this email. If you haven't requested this email, just ignore it": "Click on the following link to verify this email. If you haven't requested this email, just ignore it",
+ "Password does not meet requirements": "Password does not meet requirements",
+ "You don't have privileges to change the zone": "You don't have privileges to change the zone or for these parameters there are more than one shipping options, talk to agencies",
+ "Not enough privileges to edit a client": "Not enough privileges to edit a client",
+ "Claim pickup order sent": "Claim pickup order sent [{{claimId}}]({{{claimUrl}}}) to client *{{clientName}}*",
+ "You don't have grant privilege": "You don't have grant privilege",
+ "You don't own the role and you can't assign it to another user": "You don't own the role and you can't assign it to another user",
+ "Email verify": "Email verify",
+ "Ticket merged": "Ticket [{{originId}}]({{{originFullPath}}}) ({{{originDated}}}) merged with [{{destinationId}}]({{{destinationFullPath}}}) ({{{destinationDated}}})",
+ "Sale(s) blocked, please contact production": "Sale(s) blocked, please contact production",
+ "App locked": "App locked by user {{userId}}",
+ "The sales of the receiver ticket can't be modified": "The sales of the receiver ticket can't be modified",
+ "Receipt's bank was not found": "Receipt's bank was not found",
+ "This receipt was not compensated": "This receipt was not compensated",
+ "Client's email was not found": "Client's email was not found"
+}
diff --git a/loopback/locale/es.json b/loopback/locale/es.json
index 327568685..ea83b36c4 100644
--- a/loopback/locale/es.json
+++ b/loopback/locale/es.json
@@ -96,7 +96,7 @@
"This postcode already exists": "Este código postal ya existe",
"Concept cannot be blank": "El concepto no puede quedar en blanco",
"File doesn't exists": "El archivo no existe",
- "You don't have privileges to change the zone or for these parameters there are more than one shipping options, talk to agencies": "No tienes permisos para cambiar la zona o para esos parámetros hay más de una opción de envío, hable con las agencias",
+ "You don't have privileges to change the zone": "No tienes permisos para cambiar la zona o para esos parámetros hay más de una opción de envío, hable con las agencias",
"This ticket is already on weekly tickets": "Este ticket ya está en tickets programados",
"Ticket id cannot be blank": "El id de ticket no puede quedar en blanco",
"Weekday cannot be blank": "El día de la semana no puede quedar en blanco",
@@ -134,7 +134,8 @@
"MESSAGE_INSURANCE_CHANGE": "He cambiado el crédito asegurado del cliente [{{clientName}} ({{clientId}})]({{{url}}}) a *{{credit}} €*",
"Changed client paymethod": "He cambiado la forma de pago del cliente [{{clientName}} ({{clientId}})]({{{url}}})",
"Sent units from ticket": "Envio *{{quantity}}* unidades de [{{concept}} ({{itemId}})]({{{itemUrl}}}) a *\"{{nickname}}\"* provenientes del ticket id [{{ticketId}}]({{{ticketUrl}}})",
- "Claim will be picked": "Se recogerá el género de la reclamación [({{claimId}})]({{{claimUrl}}}) del cliente *{{clientName}}*",
+ "Change quantity": "{{concept}} cambia de {{oldQuantity}} a {{newQuantity}}",
+ "Claim will be picked": "Se recogerá el género de la reclamación [({{claimId}})]({{{claimUrl}}}) del cliente *{{clientName}}*",
"Claim state has changed to incomplete": "Se ha cambiado el estado de la reclamación [({{claimId}})]({{{claimUrl}}}) del cliente *{{clientName}}* a *incompleta*",
"Claim state has changed to canceled": "Se ha cambiado el estado de la reclamación [({{claimId}})]({{{claimUrl}}}) del cliente *{{clientName}}* a *anulado*",
"Client checked as validated despite of duplication": "Cliente comprobado a pesar de que existe el cliente id {{clientId}}",
@@ -153,6 +154,7 @@
"Email already exists": "Email already exists",
"User already exists": "User already exists",
"Absence change notification on the labour calendar": "Notificacion de cambio de ausencia en el calendario laboral",
+ "Record of hours week": "Registro de horas semana {{week}} año {{year}} ",
"Created absence": "El empleado
{{author}} ha añadido una ausencia de tipo '{{absenceType}}' a
{{employee}} para el día {{dated}}.",
"Deleted absence": "El empleado
{{author}} ha eliminado una ausencia de tipo '{{absenceType}}' a
{{employee}} del día {{dated}}.",
"I have deleted the ticket id": "He eliminado el ticket id [{{id}}]({{{url}}})",
@@ -232,5 +234,23 @@
"Fichadas impares": "Fichadas impares",
"Descanso diario 12h.": "Descanso diario 12h.",
"Descanso semanal 36h. / 72h.": "Descanso semanal 36h. / 72h.",
- "Dirección incorrecta": "Dirección incorrecta"
-}
+ "Dirección incorrecta": "Dirección incorrecta",
+ "Modifiable user details only by an administrator": "Detalles de usuario modificables solo por un administrador",
+ "Modifiable password only via recovery or by an administrator": "Contraseña modificable solo a través de la recuperación o por un administrador",
+ "Not enough privileges to edit a client": "No tienes suficientes privilegios para editar un cliente",
+ "This route does not exists": "Esta ruta no existe",
+ "Claim pickup order sent": "Reclamación Orden de recogida enviada [{{claimId}}]({{{claimUrl}}}) al cliente *{{clientName}}*",
+ "You don't have grant privilege": "No tienes privilegios para dar privilegios",
+ "You don't own the role and you can't assign it to another user": "No eres el propietario del rol y no puedes asignarlo a otro usuario",
+ "Ticket merged": "Ticket [{{originId}}]({{{originFullPath}}}) ({{{originDated}}}) fusionado con [{{destinationId}}]({{{destinationFullPath}}}) ({{{destinationDated}}})",
+ "Already has this status": "Ya tiene este estado",
+ "There aren't records for this week": "No existen registros para esta semana",
+ "Empty data source": "Origen de datos vacio",
+ "App locked": "Aplicación bloqueada por el usuario {{userId}}",
+ "Email verify": "Correo de verificación",
+ "Landing cannot be lesser than shipment": "Landing cannot be lesser than shipment",
+ "Receipt's bank was not found": "No se encontró el banco del recibo",
+ "This receipt was not compensated": "Este recibo no ha sido compensado",
+ "Client's email was not found": "No se encontró el email del cliente",
+ "Aplicación bloqueada por el usuario 9": "Aplicación bloqueada por el usuario 9"
+}
\ No newline at end of file
diff --git a/loopback/server/boot/acl.js b/loopback/server/boot/acl.js
new file mode 100644
index 000000000..f9375e0c1
--- /dev/null
+++ b/loopback/server/boot/acl.js
@@ -0,0 +1,22 @@
+
+module.exports = function(app) {
+ app.models.ACL.checkAccessAcl = async(ctx, modelId, property, accessType = '*') => {
+ const models = app.models;
+ const context = {
+ accessToken: ctx.req.accessToken,
+ model: models[modelId],
+ property: property,
+ modelId: modelId,
+ accessType: accessType,
+ sharedMethod: {
+ name: property,
+ aliases: [],
+ sharedClass: true
+ }
+ };
+
+ const acl = await models.ACL.checkAccessForContext(context);
+
+ return acl.permission == 'ALLOW';
+ };
+};
diff --git a/loopback/server/datasources.json b/loopback/server/datasources.json
index 5dade9c2e..f5f277ffc 100644
--- a/loopback/server/datasources.json
+++ b/loopback/server/datasources.json
@@ -15,7 +15,7 @@
"legacyUtcDateProcessing": false,
"timezone": "local",
"connectTimeout": 40000,
- "acquireTimeout": 20000,
+ "acquireTimeout": 60000,
"waitForConnections": true
},
"osticket": {
@@ -40,6 +40,7 @@
"image/png",
"image/jpeg",
"image/jpg",
+ "image/webp",
"video/mp4"
]
},
@@ -60,7 +61,8 @@
"multipart/x-zip",
"image/png",
"image/jpeg",
- "image/jpg"
+ "image/jpg",
+ "image/webp"
]
},
"imageStorage": {
@@ -72,7 +74,8 @@
"allowedContentTypes": [
"image/png",
"image/jpeg",
- "image/jpg"
+ "image/jpg",
+ "image/webp"
]
},
"invoiceStorage": {
@@ -96,6 +99,7 @@
"image/png",
"image/jpeg",
"image/jpg",
+ "image/webp",
"video/mp4"
]
},
@@ -109,4 +113,4 @@
"application/x-7z-compressed"
]
}
-}
\ No newline at end of file
+}
diff --git a/modules/account/back/models/ldap-config.js b/modules/account/back/models/ldap-config.js
index 819659066..a2a2684a9 100644
--- a/modules/account/back/models/ldap-config.js
+++ b/modules/account/back/models/ldap-config.js
@@ -5,6 +5,8 @@ const crypto = require('crypto');
const nthash = require('smbhash').nthash;
module.exports = Self => {
+ const shouldSync = process.env.NODE_ENV !== 'test';
+
Self.getSynchronizer = async function() {
return await Self.findOne({
fields: [
@@ -30,6 +32,7 @@ module.exports = Self => {
},
async syncUser(userName, info, password) {
+
let {
client,
accountConfig
@@ -130,13 +133,14 @@ module.exports = Self => {
}));
}
- if (changes.length)
+ if (shouldSync && changes.length)
await client.modify(dn, changes);
- } else
+ } else if (shouldSync)
await client.add(dn, newEntry);
} else {
try {
- await client.del(dn);
+ if (shouldSync)
+ await client.del(dn);
console.log(` -> User '${userName}' removed from LDAP`);
} catch (e) {
if (e.name !== 'NoSuchObjectError') throw e;
@@ -196,17 +200,19 @@ module.exports = Self => {
for (let group of groups) {
try {
let dn = `cn=${group},${groupDn}`;
- await client.modify(dn, new ldap.Change({
- operation,
- modification: {memberUid: userName}
- }));
+ if (shouldSync) {
+ await client.modify(dn, new ldap.Change({
+ operation,
+ modification: {memberUid: userName}
+ }));
+ }
} catch (err) {
if (err.name !== 'NoSuchObjectError')
throw err;
}
}
}
-
+
await applyOperations(deleteGroups, 'delete');
await applyOperations(addGroups, 'add');
},
@@ -266,8 +272,10 @@ module.exports = Self => {
filter: 'objectClass=posixGroup'
};
let reqs = [];
- await client.searchForeach(this.groupDn, opts,
- o => reqs.push(client.del(o.dn)));
+ await client.searchForeach(this.groupDn, opts, object => {
+ if (shouldSync)
+ reqs.push(client.del(object.dn));
+ });
await Promise.all(reqs);
// Recreate roles
@@ -291,7 +299,8 @@ module.exports = Self => {
}
let dn = `cn=${role.name},${this.groupDn}`;
- reqs.push(client.add(dn, newEntry));
+ if (shouldSync)
+ reqs.push(client.add(dn, newEntry));
}
await Promise.all(reqs);
}
diff --git a/modules/account/back/models/samba-config.js b/modules/account/back/models/samba-config.js
index 5fd62a68b..168b5ffb4 100644
--- a/modules/account/back/models/samba-config.js
+++ b/modules/account/back/models/samba-config.js
@@ -60,16 +60,19 @@ module.exports = Self => {
return `cn=Users,${dnBase}`;
},
- async syncUser(userName, info, password) {
+ async syncUser(userName, info, password) {
let {sshClient} = this;
-
+
let sambaUser = await this.adClient.searchOne(this.usersDn(), {
scope: 'sub',
attributes: ['userAccountControl'],
filter: `(&(objectClass=user)(sAMAccountName=${userName}))`
});
let isEnabled = sambaUser
- && !(sambaUser.userAccountControl & UserAccountControlFlags.ACCOUNTDISABLE);
+ && !(sambaUser.userAccountControl & UserAccountControlFlags.ACCOUNTDISABLE);
+
+ if (process.env.NODE_ENV === 'test')
+ return;
if (info.hasAccount) {
if (!sambaUser) {
diff --git a/modules/account/back/models/user-password.json b/modules/account/back/models/user-password.json
index 1b7e49edd..53909ad1f 100644
--- a/modules/account/back/models/user-password.json
+++ b/modules/account/back/models/user-password.json
@@ -30,5 +30,13 @@
"type": "number",
"required": true
}
- }
+ },
+ "acls": [
+ {
+ "accessType": "READ",
+ "principalType": "ROLE",
+ "principalId": "$everyone",
+ "permission": "ALLOW"
+ }
+ ]
}
diff --git a/modules/account/front/basic-data/index.js b/modules/account/front/basic-data/index.js
index 342297e45..77d3eab26 100644
--- a/modules/account/front/basic-data/index.js
+++ b/modules/account/front/basic-data/index.js
@@ -2,6 +2,11 @@ import ngModule from '../module';
import Section from 'salix/components/section';
export default class Controller extends Section {
+ $onInit() {
+ if (this.$params.emailConfirmed)
+ this.vnApp.showSuccess(this.$t('Email verified successfully!'));
+ }
+
onSubmit() {
this.$.watcher.submit()
.then(() => this.card.reload());
diff --git a/modules/account/front/basic-data/locale/es.yml b/modules/account/front/basic-data/locale/es.yml
new file mode 100644
index 000000000..2ca7bf698
--- /dev/null
+++ b/modules/account/front/basic-data/locale/es.yml
@@ -0,0 +1 @@
+Email verified successfully!: Correo verificado correctamente!
diff --git a/modules/account/front/descriptor/index.html b/modules/account/front/descriptor/index.html
index c709c1ec0..7a7ba43f3 100644
--- a/modules/account/front/descriptor/index.html
+++ b/modules/account/front/descriptor/index.html
@@ -11,14 +11,6 @@
translate>
Delete
-
- Change role
-
-
@@ -128,22 +120,6 @@
question="Are you sure you want to continue?"
message="User will be deactivated">
-
-
-
-
-
-
-
- Accept
-
-
-
\ No newline at end of file
+
diff --git a/modules/account/front/descriptor/index.js b/modules/account/front/descriptor/index.js
index 3f27b1f76..b802b2349 100644
--- a/modules/account/front/descriptor/index.js
+++ b/modules/account/front/descriptor/index.js
@@ -30,20 +30,6 @@ class Controller extends Descriptor {
.then(() => this.vnApp.showSuccess(this.$t('User removed')));
}
- onChangeRole() {
- this.newRole = this.user.role.id;
- this.$.changeRole.show();
- }
-
- onChangeRoleAccept() {
- const params = {roleFk: this.newRole};
- return this.$http.patch(`Accounts/${this.id}`, params)
- .then(() => {
- this.emit('change');
- this.vnApp.showSuccess(this.$t('Role changed succesfully!'));
- });
- }
-
onChangePassClick(askOldPass) {
this.$http.get('UserPasswords/findOne')
.then(res => {
diff --git a/modules/account/front/descriptor/index.spec.js b/modules/account/front/descriptor/index.spec.js
index 8ee67a304..f5e7aa7d4 100644
--- a/modules/account/front/descriptor/index.spec.js
+++ b/modules/account/front/descriptor/index.spec.js
@@ -30,17 +30,6 @@ describe('component vnUserDescriptor', () => {
});
});
- describe('onChangeRoleAccept()', () => {
- it('should call backend method to change role', () => {
- $httpBackend.expectPATCH('Accounts/1').respond();
- controller.onChangeRoleAccept();
- $httpBackend.flush();
-
- expect(controller.vnApp.showSuccess).toHaveBeenCalled();
- expect(controller.emit).toHaveBeenCalledWith('change');
- });
- });
-
describe('onPassChange()', () => {
it('should throw an error when password is empty', () => {
expect(() => {
diff --git a/modules/account/front/index.js b/modules/account/front/index.js
index 50e04c9fa..0cd0c4955 100644
--- a/modules/account/front/index.js
+++ b/modules/account/front/index.js
@@ -18,3 +18,4 @@ import './roles';
import './ldap';
import './samba';
import './accounts';
+import './privileges';
diff --git a/modules/account/front/privileges/index.html b/modules/account/front/privileges/index.html
new file mode 100644
index 000000000..e3e44898a
--- /dev/null
+++ b/modules/account/front/privileges/index.html
@@ -0,0 +1,42 @@
+
+
+
+
diff --git a/modules/account/front/privileges/index.js b/modules/account/front/privileges/index.js
new file mode 100644
index 000000000..00ba772df
--- /dev/null
+++ b/modules/account/front/privileges/index.js
@@ -0,0 +1,9 @@
+import ngModule from '../module';
+import Section from 'salix/components/section';
+
+export default class Controller extends Section {}
+
+ngModule.component('vnUserPrivileges', {
+ template: require('./index.html'),
+ controller: Controller
+});
diff --git a/modules/account/front/privileges/locale/es.yml b/modules/account/front/privileges/locale/es.yml
new file mode 100644
index 000000000..d66a7a6cf
--- /dev/null
+++ b/modules/account/front/privileges/locale/es.yml
@@ -0,0 +1,2 @@
+Privileges: Privilegios
+Has grant: Puede delegar privilegios
diff --git a/modules/account/front/routes.json b/modules/account/front/routes.json
index 66b26f427..a6f2f5d3f 100644
--- a/modules/account/front/routes.json
+++ b/modules/account/front/routes.json
@@ -19,7 +19,8 @@
{"state": "account.card.basicData", "icon": "settings"},
{"state": "account.card.roles", "icon": "group"},
{"state": "account.card.mailForwarding", "icon": "forward"},
- {"state": "account.card.aliases", "icon": "email"}
+ {"state": "account.card.aliases", "icon": "email"},
+ {"state": "account.card.privileges", "icon": "badge"}
],
"role": [
{"state": "account.role.card.basicData", "icon": "settings"},
@@ -73,7 +74,7 @@
}
},
{
- "url": "/basic-data",
+ "url": "/basic-data?emailConfirmed",
"state": "account.card.basicData",
"component": "vn-user-basic-data",
"description": "Basic data",
@@ -99,6 +100,13 @@
"description": "Mail aliases",
"acl": ["marketing", "hr"]
},
+ {
+ "url": "/privileges",
+ "state": "account.card.privileges",
+ "component": "vn-user-privileges",
+ "description": "Privileges",
+ "acl": ["hr"]
+ },
{
"url": "/role?q",
"state": "account.role",
@@ -249,4 +257,4 @@
"acl": ["developer"]
}
]
-}
\ No newline at end of file
+}
diff --git a/modules/claim/back/methods/claim/claimPickupEmail.js b/modules/claim/back/methods/claim/claimPickupEmail.js
index b946353d6..c688d6ded 100644
--- a/modules/claim/back/methods/claim/claimPickupEmail.js
+++ b/modules/claim/back/methods/claim/claimPickupEmail.js
@@ -1,14 +1,15 @@
-const {Report, Email, smtp} = require('vn-print');
+const {Email} = require('vn-print');
module.exports = Self => {
Self.remoteMethodCtx('claimPickupEmail', {
description: 'Sends the the claim pickup order email with an attached PDF',
+ accessType: 'WRITE',
accepts: [
{
arg: 'id',
type: 'number',
required: true,
- description: 'The client id',
+ description: 'The claim id',
http: {source: 'path'}
},
{
@@ -40,7 +41,12 @@ module.exports = Self => {
}
});
- Self.claimPickupEmail = async(ctx, id) => {
+ Self.claimPickupEmail = async ctx => {
+ const models = Self.app.models;
+ const userId = ctx.req.accessToken.userId;
+ const $t = ctx.req.__; // $translate
+ const origin = ctx.req.headers.origin;
+
const args = Object.assign({}, ctx.args);
const params = {
recipient: args.recipient,
@@ -51,6 +57,34 @@ module.exports = Self => {
for (const param in args)
params[param] = args[param];
+ const claim = await models.Claim.findById(args.id, {
+ fields: ['id', 'clientFk'],
+ include: {
+ relation: 'client',
+ scope: {
+ fields: ['name', 'salesPersonFk']
+ }
+ }
+ });
+
+ const message = $t('Claim pickup order sent', {
+ claimId: args.id,
+ clientName: claim.client().name,
+ claimUrl: `${origin}/#!/claim/${args.id}/summary`,
+ });
+
+ const salesPersonId = claim.client().salesPersonFk;
+ if (salesPersonId)
+ await models.Chat.sendCheckingPresence(ctx, salesPersonId, message);
+
+ await models.ClaimLog.create({
+ originFk: args.id,
+ userFk: userId,
+ action: 'insert',
+ description: 'Claim-pickup-order sent',
+ changedModel: 'Mail'
+ });
+
const email = new Email('claim-pickup-order', params);
return email.send();
diff --git a/modules/claim/back/methods/claim/getSummary.js b/modules/claim/back/methods/claim/getSummary.js
index 8ab39eb45..ca376f853 100644
--- a/modules/claim/back/methods/claim/getSummary.js
+++ b/modules/claim/back/methods/claim/getSummary.js
@@ -47,7 +47,7 @@ module.exports = Self => {
{
relation: 'claimState',
scope: {
- fields: ['id', 'description']
+ fields: ['id', 'code', 'description']
}
},
{
diff --git a/modules/claim/back/model-config.json b/modules/claim/back/model-config.json
index e99a455ac..83d88039c 100644
--- a/modules/claim/back/model-config.json
+++ b/modules/claim/back/model-config.json
@@ -2,6 +2,9 @@
"Claim": {
"dataSource": "vn"
},
+ "ClaimContainer": {
+ "dataSource": "claimStorage"
+ },
"ClaimBeginning": {
"dataSource": "vn"
},
@@ -41,7 +44,7 @@
"ClaimObservation": {
"dataSource": "vn"
},
- "ClaimContainer": {
- "dataSource": "claimStorage"
- }
+ "ClaimRma": {
+ "dataSource": "vn"
+ }
}
diff --git a/modules/claim/back/models/claim-rma.js b/modules/claim/back/models/claim-rma.js
new file mode 100644
index 000000000..6a93613bd
--- /dev/null
+++ b/modules/claim/back/models/claim-rma.js
@@ -0,0 +1,9 @@
+const LoopBackContext = require('loopback-context');
+
+module.exports = Self => {
+ Self.observe('before save', async function(ctx) {
+ const changes = ctx.data || ctx.instance;
+ const loopBackContext = LoopBackContext.getCurrentContext();
+ changes.workerFk = loopBackContext.active.accessToken.userId;
+ });
+};
diff --git a/modules/claim/back/models/claim-rma.json b/modules/claim/back/models/claim-rma.json
new file mode 100644
index 000000000..27c3c9729
--- /dev/null
+++ b/modules/claim/back/models/claim-rma.json
@@ -0,0 +1,30 @@
+{
+ "name": "ClaimRma",
+ "base": "VnModel",
+ "options": {
+ "mysql": {
+ "table": "claimRma"
+ }
+ },
+ "properties": {
+ "id": {
+ "id": true,
+ "type": "number",
+ "description": "Identifier"
+ },
+ "code": {
+ "type": "string",
+ "required": true
+ },
+ "created": {
+ "type": "date"
+ }
+ },
+ "relations": {
+ "worker": {
+ "type": "belongsTo",
+ "model": "Worker",
+ "foreignKey": "workerFk"
+ }
+ }
+}
diff --git a/modules/claim/back/models/claim.json b/modules/claim/back/models/claim.json
index a3490ccf4..14c4f3452 100644
--- a/modules/claim/back/models/claim.json
+++ b/modules/claim/back/models/claim.json
@@ -46,6 +46,9 @@
},
"packages": {
"type": "number"
+ },
+ "rma": {
+ "type": "string"
}
},
"relations": {
@@ -54,6 +57,12 @@
"model": "ClaimState",
"foreignKey": "claimStateFk"
},
+ "rmas": {
+ "type": "hasMany",
+ "model": "ClaimRma",
+ "foreignKey": "code",
+ "primaryKey": "rma"
+ },
"client": {
"type": "belongsTo",
"model": "Client",
diff --git a/modules/claim/front/basic-data/index.html b/modules/claim/front/basic-data/index.html
index 7a91e180a..16e134c60 100644
--- a/modules/claim/front/basic-data/index.html
+++ b/modules/claim/front/basic-data/index.html
@@ -19,7 +19,7 @@
readonly="true">
@@ -56,7 +56,7 @@
label="Pick up"
ng-model="$ctrl.claim.hasToPickUp"
vn-acl="claimManager"
- info="When checked will notify to the salesPerson">
+ title="{{'When checked will notify to the salesPerson' | translate}}">
diff --git a/modules/claim/front/basic-data/locale/es.yml b/modules/claim/front/basic-data/locale/es.yml
index c51afee3f..5250d266c 100644
--- a/modules/claim/front/basic-data/locale/es.yml
+++ b/modules/claim/front/basic-data/locale/es.yml
@@ -5,5 +5,5 @@ Responsability: Responsabilidad
Company: Empresa
Sales/Client: Comercial/Cliente
Pick up: Recoger
-When checked will notify a pickup to the salesPerson: Cuando se marque enviará una notificación de recogida al comercial
-Packages received: Bultos recibidos
\ No newline at end of file
+When checked will notify to the salesPerson: Cuando se marque enviará una notificación de recogida al comercial
+Packages received: Bultos recibidos
diff --git a/modules/claim/front/routes.json b/modules/claim/front/routes.json
index d02ea6f6c..a8b958c5f 100644
--- a/modules/claim/front/routes.json
+++ b/modules/claim/front/routes.json
@@ -73,7 +73,7 @@
{
"url": "/note",
"state": "claim.card.note",
- "component": "ui-view",
+ "component": "ui-view",
"abstract": true,
"acl": ["salesPerson"]
},
@@ -105,7 +105,7 @@
"acl": ["claimManager"]
},
{
- "url": "/action",
+ "url": "/action?q",
"state": "claim.card.action",
"component": "vn-claim-action",
"description": "Action",
@@ -131,4 +131,4 @@
"acl": ["claimManager"]
}
]
-}
\ No newline at end of file
+}
diff --git a/modules/claim/front/summary/index.html b/modules/claim/front/summary/index.html
index 0c12aa2e6..6adbfd684 100644
--- a/modules/claim/front/summary/index.html
+++ b/modules/claim/front/summary/index.html
@@ -25,16 +25,23 @@
-
-
-
-
-
-
+
+
+
+
+
+
@@ -42,16 +49,23 @@
label="Attended by"
value="{{$ctrl.summary.claim.worker.user.nickname}}">
-
+
+
+
-
Observations
@@ -70,13 +84,13 @@
-
Detail
@@ -98,7 +112,7 @@
-
{{::saleClaimed.sale.itemFk | zeroFill:6}}
@@ -111,7 +125,7 @@
{{::saleClaimed.sale.price | currency: 'EUR':2}}
{{::saleClaimed.sale.discount}} %
- {{saleClaimed.sale.quantity * saleClaimed.sale.price *
+ {{saleClaimed.sale.quantity * saleClaimed.sale.price *
((100 - saleClaimed.sale.discount) / 100) | currency: 'EUR':2}}
@@ -123,7 +137,7 @@
Photos
-
Development
@@ -165,8 +179,8 @@
{{::development.claimResult.description}}
{{::development.claimResponsible.description}}
-
{{::development.worker.user.nickname}}
@@ -179,21 +193,21 @@
Action
-
{{::action.sale.itemFk | zeroFill:6}}
-
{{::action.sale.ticket.id}}
@@ -258,9 +272,9 @@
vn-id="item-descriptor"
warehouse-fk="$ctrl.vnConfig.warehouseFk">
-
-
-
\ No newline at end of file
+
diff --git a/modules/client/back/methods/client/checkDuplicated.js b/modules/client/back/methods/client/checkDuplicated.js
index acaffbf42..522cd088f 100644
--- a/modules/client/back/methods/client/checkDuplicated.js
+++ b/modules/client/back/methods/client/checkDuplicated.js
@@ -25,10 +25,9 @@ module.exports = Self => {
const client = await Self.app.models.Client.findById(id, myOptions);
- const emails = client.email ? client.email.split(',') : null;
-
const findParams = [];
- if (emails.length) {
+ if (client.email) {
+ const emails = client.email.split(',');
for (let email of emails)
findParams.push({email: email});
}
diff --git a/modules/client/back/methods/client/consumptionSendQueued.js b/modules/client/back/methods/client/consumptionSendQueued.js
index 3f551d3d2..77e0e34f2 100644
--- a/modules/client/back/methods/client/consumptionSendQueued.js
+++ b/modules/client/back/methods/client/consumptionSendQueued.js
@@ -18,46 +18,46 @@ module.exports = Self => {
Self.consumptionSendQueued = async() => {
const queues = await Self.rawSql(`
SELECT
- ccq.id,
- c.id AS clientFk,
- c.email AS clientEmail,
- eu.email salesPersonEmail,
- REPLACE(json_extract(params, '$.from'), '"', '') AS fromDate,
- REPLACE(json_extract(params, '$.to'), '"', '') AS toDate
- FROM clientConsumptionQueue ccq
- JOIN client c ON (
- JSON_SEARCH(
- JSON_ARRAY(
- json_extract(params, '$.clients')
- )
- , 'all', c.id) IS NOT NULL)
- JOIN account.emailUser eu ON eu.userFk = c.salesPersonFk
- JOIN ticket t ON t.clientFk = c.id
- JOIN sale s ON s.ticketFk = t.id
- JOIN item i ON i.id = s.itemFk
- JOIN itemType it ON it.id = i.typeFk
- WHERE status = ''
- AND it.isPackaging = FALSE
- AND DATE(t.shipped) BETWEEN
- REPLACE(json_extract(params, '$.from'), '"', '') AND
- REPLACE(json_extract(params, '$.to'), '"', '')
- GROUP BY c.id`);
+ id,
+ params
+ FROM clientConsumptionQueue
+ WHERE status = ''`);
for (const queue of queues) {
try {
- const args = {
- id: queue.clientFk,
- recipient: queue.clientEmail,
- replyTo: queue.salesPersonEmail,
- from: queue.fromDate,
- to: queue.toDate
- };
+ const params = JSON.parse(queue.params);
- const email = new Email('campaign-metrics', args);
- await email.send();
+ const clients = await Self.rawSql(`
+ SELECT
+ c.id AS clientFk,
+ c.email AS clientEmail,
+ eu.email salesPersonEmail
+ FROM client c
+ JOIN account.emailUser eu ON eu.userFk = c.salesPersonFk
+ JOIN ticket t ON t.clientFk = c.id
+ JOIN sale s ON s.ticketFk = t.id
+ JOIN item i ON i.id = s.itemFk
+ JOIN itemType it ON it.id = i.typeFk
+ WHERE c.id IN(?)
+ AND it.isPackaging = FALSE
+ AND DATE(t.shipped) BETWEEN ? AND ?
+ GROUP BY c.id`, [params.clients, params.from, params.to]);
+
+ for (const client of clients) {
+ const args = {
+ id: client.clientFk,
+ recipient: client.clientEmail,
+ replyTo: client.salesPersonEmail,
+ from: params.from,
+ to: params.to
+ };
+
+ const email = new Email('campaign-metrics', args);
+ await email.send();
+ }
await Self.rawSql(`
- UPDATE clientConsumptionQueue
+ UPDATE clientConsumptionQueue
SET status = 'printed',
printed = ?
WHERE id = ?`,
@@ -69,7 +69,7 @@ module.exports = Self => {
WHERE id = ?`,
[error.message, queue.id]);
- throw e;
+ throw error;
}
}
diff --git a/modules/client/back/methods/client/filter.js b/modules/client/back/methods/client/filter.js
new file mode 100644
index 000000000..1ae569fd3
--- /dev/null
+++ b/modules/client/back/methods/client/filter.js
@@ -0,0 +1,155 @@
+
+const ParameterizedSQL = require('loopback-connector').ParameterizedSQL;
+const buildFilter = require('vn-loopback/util/filter').buildFilter;
+const mergeFilters = require('vn-loopback/util/filter').mergeFilters;
+
+module.exports = Self => {
+ Self.remoteMethodCtx('filter', {
+ description: 'Find all clients matched by the filter',
+ accessType: 'READ',
+ accepts: [
+ {
+ arg: 'filter',
+ type: 'object',
+ },
+ {
+ arg: 'search',
+ type: 'string',
+ description: `If it's and integer searchs by id, otherwise it searchs by name`,
+ },
+ {
+ arg: 'name',
+ type: 'string',
+ description: 'The client name',
+ },
+ {
+ arg: 'salesPersonFk',
+ type: 'number',
+ },
+ {
+ arg: 'fi',
+ type: 'string',
+ description: 'The client fiscal id',
+ },
+ {
+ arg: 'socialName',
+ type: 'string',
+ },
+ {
+ arg: 'city',
+ type: 'string',
+ },
+ {
+ arg: 'postcode',
+ type: 'string',
+ },
+ {
+ arg: 'provinceFk',
+ type: 'number',
+ },
+ {
+ arg: 'email',
+ type: 'string',
+ },
+ {
+ arg: 'phone',
+ type: 'string',
+ },
+ {
+ arg: 'zoneFk',
+ type: 'number',
+ },
+ ],
+ returns: {
+ type: ['object'],
+ root: true
+ },
+ http: {
+ path: `/filter`,
+ verb: 'GET'
+ }
+ });
+
+ Self.filter = async(ctx, filter, options) => {
+ const conn = Self.dataSource.connector;
+ const myOptions = {};
+ const postalCode = [];
+ const args = ctx.args;
+
+ if (typeof options == 'object')
+ Object.assign(myOptions, options);
+
+ if (args.zoneFk) {
+ query = `CALL vn.zone_getPostalCode(?)`;
+ const [geos] = await Self.rawSql(query, [args.zoneFk]);
+ for (let geo of geos)
+ postalCode.push(geo.name);
+ }
+
+ const where = buildFilter(ctx.args, (param, value) => {
+ switch (param) {
+ case 'search':
+ return /^\d+$/.test(value)
+ ? {'c.id': {inq: value}}
+ : {or: [
+ {'c.name': {like: `%${value}%`}},
+ {'c.socialName': {like: `%${value}%`}},
+ ]};
+ case 'phone':
+ return {or: [
+ {'c.phone': {like: `%${value}%`}},
+ {'c.mobile': {like: `%${value}%`}},
+ ]};
+ case 'zoneFk':
+ param = 'a.postalCode';
+ return {[param]: {inq: postalCode}};
+ case 'name':
+ case 'salesPersonFk':
+ case 'fi':
+ case 'socialName':
+ case 'city':
+ case 'postcode':
+ case 'provinceFk':
+ case 'email':
+ param = `c.${param}`;
+ return {[param]: {like: `%${value}%`}};
+ }
+ });
+
+ filter = mergeFilters(filter, {where});
+
+ const stmts = [];
+ const stmt = new ParameterizedSQL(
+ `SELECT
+ DISTINCT c.id,
+ c.name,
+ c.fi,
+ c.socialName,
+ c.phone,
+ c.mobile,
+ c.city,
+ c.postcode,
+ c.email,
+ c.isActive,
+ c.isFreezed,
+ p.id AS provinceFk,
+ p.name AS province,
+ u.id AS salesPersonFk,
+ u.name AS salesPerson
+ FROM client c
+ LEFT JOIN account.user u ON u.id = c.salesPersonFk
+ LEFT JOIN province p ON p.id = c.provinceFk
+ JOIN vn.address a ON a.clientFk = c.id
+ `
+ );
+
+ stmt.merge(conn.makeWhere(filter.where));
+ stmt.merge(conn.makePagination(filter));
+
+ const clientsIndex = stmts.push(stmt) - 1;
+ const sql = ParameterizedSQL.join(stmts, ';');
+ const result = await conn.executeStmt(sql, myOptions);
+
+ return clientsIndex === 0 ? result : result[clientsIndex];
+ };
+};
diff --git a/modules/client/back/methods/client/setPassword.js b/modules/client/back/methods/client/setPassword.js
index 19675d0e8..e3fc9bbf8 100644
--- a/modules/client/back/methods/client/setPassword.js
+++ b/modules/client/back/methods/client/setPassword.js
@@ -1,5 +1,6 @@
+const UserError = require('vn-loopback/util/user-error');
module.exports = Self => {
- Self.remoteMethod('setPassword', {
+ Self.remoteMethodCtx('setPassword', {
description: 'Sets the password of a non-worker client',
accepts: [
{
@@ -20,13 +21,15 @@ module.exports = Self => {
}
});
- Self.setPassword = async function(id, newPassword) {
+ Self.setPassword = async function(ctx, id, newPassword) {
const models = Self.app.models;
- const isWorker = await models.Worker.findById(id);
- if (isWorker)
- throw new Error(`Can't change the password of another worker`);
+ const isClient = await models.Client.findById(id, null);
+ const isUserAccount = await models.UserAccount.findById(id, null);
- await models.Account.setPassword(id, newPassword);
+ if (isClient && !isUserAccount)
+ await models.Account.setPassword(id, newPassword);
+ else
+ throw new UserError(`Modifiable password only via recovery or by an administrator`);
};
};
diff --git a/modules/client/back/methods/client/specs/filter.spec.js b/modules/client/back/methods/client/specs/filter.spec.js
new file mode 100644
index 000000000..679585050
--- /dev/null
+++ b/modules/client/back/methods/client/specs/filter.spec.js
@@ -0,0 +1,199 @@
+const {models} = require('vn-loopback/server/server');
+
+describe('client filter()', () => {
+ it('should return the clients matching the filter with a limit of 20 rows', async() => {
+ const tx = await models.Client.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const ctx = {req: {accessToken: {userId: 1}}, args: {}};
+ const filter = {limit: '8'};
+ const result = await models.Client.filter(ctx, filter, options);
+
+ expect(result.length).toEqual(8);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return the client "Bruce Wayne" matching the search argument with his name', async() => {
+ const tx = await models.Client.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const ctx = {req: {accessToken: {userId: 1}}, args: {search: 'Bruce Wayne'}};
+ const filter = {};
+ const result = await models.Client.filter(ctx, filter, options);
+
+ const firstResult = result[0];
+
+ expect(result.length).toEqual(1);
+ expect(firstResult.name).toEqual('Bruce Wayne');
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return the client "Bruce Wayne" matching the search argument with his id', async() => {
+ const tx = await models.Client.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const ctx = {req: {accessToken: {userId: 1}}, args: {search: '1101'}};
+ const filter = {};
+ const result = await models.Client.filter(ctx, filter, options);
+
+ const firstResult = result[0];
+
+ expect(result.length).toEqual(1);
+ expect(firstResult.name).toEqual('Bruce Wayne');
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return the client "Bruce Wayne" matching the name argument', async() => {
+ const tx = await models.Client.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const ctx = {req: {accessToken: {userId: 1}}, args: {name: 'Bruce Wayne'}};
+ const filter = {};
+ const result = await models.Client.filter(ctx, filter, options);
+
+ const firstResult = result[0];
+
+ expect(result.length).toEqual(1);
+ expect(firstResult.name).toEqual('Bruce Wayne');
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return the clients matching the "salesPersonFk" argument', async() => {
+ const tx = await models.Client.beginTransaction({});
+ const salesPersonId = 18;
+
+ try {
+ const options = {transaction: tx};
+
+ const ctx = {req: {accessToken: {userId: 1}}, args: {salesPersonFk: salesPersonId}};
+ const filter = {};
+ const result = await models.Client.filter(ctx, filter, options);
+
+ const randomIndex = Math.floor(Math.random() * result.length);
+ const randomResultClient = result[randomIndex];
+
+ expect(result.length).toBeGreaterThanOrEqual(5);
+ expect(randomResultClient.salesPersonFk).toEqual(salesPersonId);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return the clients matching the "fi" argument', async() => {
+ const tx = await models.Client.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const ctx = {req: {accessToken: {userId: 1}}, args: {fi: '251628698'}};
+ const filter = {};
+ const result = await models.Client.filter(ctx, filter, options);
+
+ const firstClient = result[0];
+
+ expect(result.length).toEqual(1);
+ expect(firstClient.name).toEqual('Max Eisenhardt');
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return the clients matching the "city" argument', async() => {
+ const tx = await models.Client.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const ctx = {req: {accessToken: {userId: 1}}, args: {city: 'Gotham'}};
+ const filter = {};
+ const result = await models.Client.filter(ctx, filter, options);
+
+ const randomIndex = Math.floor(Math.random() * result.length);
+ const randomResultClient = result[randomIndex];
+
+ expect(result.length).toBeGreaterThanOrEqual(20);
+ expect(randomResultClient.city.toLowerCase()).toEqual('gotham');
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return the clients matching the "postcode" argument', async() => {
+ const tx = await models.Client.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const ctx = {req: {accessToken: {userId: 1}}, args: {postcode: '46460'}};
+ const filter = {};
+ const result = await models.Client.filter(ctx, filter, options);
+
+ const randomIndex = Math.floor(Math.random() * result.length);
+ const randomResultClient = result[randomIndex];
+
+ expect(result.length).toBeGreaterThanOrEqual(20);
+ expect(randomResultClient.postcode).toEqual('46460');
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return the clients matching the "zoneFk" argument', async() => {
+ const tx = await models.Client.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const ctx = {req: {accessToken: {userId: 1}}, args: {zoneFk: 9}};
+ const filter = {};
+ const result = await models.Client.filter(ctx, filter, options);
+
+ expect(result.length).toBe(1);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+});
diff --git a/modules/client/back/methods/client/specs/setPassword.spec.js b/modules/client/back/methods/client/specs/setPassword.spec.js
index e0de20249..03334918b 100644
--- a/modules/client/back/methods/client/specs/setPassword.spec.js
+++ b/modules/client/back/methods/client/specs/setPassword.spec.js
@@ -1,23 +1,28 @@
const models = require('vn-loopback/server/server').models;
describe('Client setPassword', () => {
+ const salesPersonId = 19;
+ const ctx = {
+ req: {accessToken: {userId: salesPersonId}}
+ };
+
it('should throw an error the setPassword target is not just a client but a worker', async() => {
let error;
try {
- await models.Client.setPassword(1106, 'newPass?');
+ await models.Client.setPassword(ctx, 1, 't0pl3v3l.p455w0rd!');
} catch (e) {
error = e;
}
- expect(error.message).toEqual(`Can't change the password of another worker`);
+ expect(error.message).toEqual(`Modifiable password only via recovery or by an administrator`);
});
it('should change the password of the client', async() => {
let error;
try {
- await models.Client.setPassword(1101, 't0pl3v3l.p455w0rd!');
+ await models.Client.setPassword(ctx, 1101, 't0pl3v3l.p455w0rd!');
} catch (e) {
error = e;
}
diff --git a/modules/client/back/methods/client/specs/updatePortfolio.spec.js b/modules/client/back/methods/client/specs/updatePortfolio.spec.js
deleted file mode 100644
index bf681eb2e..000000000
--- a/modules/client/back/methods/client/specs/updatePortfolio.spec.js
+++ /dev/null
@@ -1,75 +0,0 @@
-const models = require('vn-loopback/server/server').models;
-const LoopBackContext = require('loopback-context');
-
-describe('Client updatePortfolio', () => {
- const activeCtx = {
- accessToken: {userId: 9},
- http: {
- req: {
- headers: {origin: 'http://localhost'},
- [`__`]: value => {
- return value;
- }
- }
- }
- };
-
- beforeAll(() => {
- spyOn(LoopBackContext, 'getCurrentContext').and.returnValue({
- active: activeCtx
- });
- });
-
- it('should update the portfolioWeight when the salesPerson of a client changes', async() => {
- const clientId = 1108;
- const salesPersonId = 18;
-
- const tx = await models.Client.beginTransaction({});
-
- try {
- const options = {transaction: tx};
- const expectedResult = 841.63;
-
- const client = await models.Client.findById(clientId, null, options);
- await client.updateAttribute('salesPersonFk', salesPersonId, options);
-
- await models.Client.updatePortfolio(options);
-
- const portfolioQuery = `SELECT portfolioWeight FROM bs.salesPerson WHERE workerFk = ${salesPersonId}; `;
- const [salesPerson] = await models.Client.rawSql(portfolioQuery, null, options);
-
- expect(salesPerson.portfolioWeight).toEqual(expectedResult);
-
- await tx.rollback();
- } catch (e) {
- await tx.rollback();
- throw e;
- }
- });
-
- it('should keep the same portfolioWeight when a salesperson is unassigned of a client', async() => {
- const clientId = 1107;
- const salesPersonId = 19;
- const tx = await models.Client.beginTransaction({});
-
- try {
- const options = {transaction: tx};
- const expectedResult = 34.40;
-
- const client = await models.Client.findById(clientId, null, options);
- await client.updateAttribute('salesPersonFk', null, options);
-
- await models.Client.updatePortfolio();
-
- const portfolioQuery = `SELECT portfolioWeight FROM bs.salesPerson WHERE workerFk = ${salesPersonId}; `;
- const [salesPerson] = await models.Client.rawSql(portfolioQuery);
-
- expect(salesPerson.portfolioWeight).toEqual(expectedResult);
-
- await tx.rollback();
- } catch (e) {
- await tx.rollback();
- throw e;
- }
- });
-});
diff --git a/modules/client/back/methods/client/specs/updateUser.spec.js b/modules/client/back/methods/client/specs/updateUser.spec.js
index 4dc969906..2d7f7dce0 100644
--- a/modules/client/back/methods/client/specs/updateUser.spec.js
+++ b/modules/client/back/methods/client/specs/updateUser.spec.js
@@ -10,8 +10,9 @@ describe('Client updateUser', () => {
}
}
};
+ const salesPersonId = 19;
const ctx = {
- req: {accessToken: {userId: employeeId}},
+ req: {accessToken: {userId: salesPersonId}},
args: {name: 'test', active: true}
};
@@ -21,8 +22,13 @@ describe('Client updateUser', () => {
});
});
- it('should throw an error the target user is not just a client but a worker', async() => {
+ it(`should throw an error if you don't have enough permissions`, async() => {
let error;
+ const employeeId = 1;
+ const ctx = {
+ req: {accessToken: {userId: employeeId}},
+ args: {name: 'test', active: true}
+ };
try {
const clientID = 1106;
await models.Client.updateUser(ctx, clientID);
@@ -30,7 +36,19 @@ describe('Client updateUser', () => {
error = e;
}
- expect(error.message).toEqual(`Can't update the user details of another worker`);
+ expect(error.message).toEqual(`Not enough privileges to edit a client`);
+ });
+
+ it('should throw an error the target user is not just a client but a worker', async() => {
+ let error;
+ try {
+ const clientID = 1;
+ await models.Client.updateUser(ctx, clientID);
+ } catch (e) {
+ error = e;
+ }
+
+ expect(error.message).toEqual(`Modifiable user details only by an administrator`);
});
it('should update the user data', async() => {
diff --git a/modules/client/back/methods/client/updateFiscalData.js b/modules/client/back/methods/client/updateFiscalData.js
index 9bb572fb3..fdd8c4c15 100644
--- a/modules/client/back/methods/client/updateFiscalData.js
+++ b/modules/client/back/methods/client/updateFiscalData.js
@@ -99,6 +99,10 @@ module.exports = Self => {
{
arg: 'hasIncoterms',
type: 'boolean'
+ },
+ {
+ arg: 'hasElectronicInvoice',
+ type: 'boolean'
}
],
returns: {
@@ -122,19 +126,15 @@ module.exports = Self => {
if (typeof options == 'object')
Object.assign(myOptions, options);
-
if (!myOptions.transaction) {
tx = await Self.beginTransaction({});
myOptions.transaction = tx;
}
-
try {
const isSalesAssistant = await models.Account.hasRole(userId, 'salesAssistant', myOptions);
const client = await models.Client.findById(clientId, null, myOptions);
-
if (!isSalesAssistant && client.isTaxDataChecked)
throw new UserError(`Not enough privileges to edit a client with verified data`);
-
// Sage data validation
const taxDataChecked = args.isTaxDataChecked;
const sageTaxChecked = client.sageTaxTypeFk || args.sageTaxTypeFk;
@@ -143,7 +143,6 @@ module.exports = Self => {
if (taxDataChecked && !hasSageData)
throw new UserError(`You need to fill sage information before you check verified data`);
-
if (args.despiteOfClient) {
const logRecord = {
originFk: clientId,
@@ -158,7 +157,6 @@ module.exports = Self => {
await models.ClientLog.create(logRecord, myOptions);
}
-
// Remove unwanted properties
delete args.ctx;
delete args.id;
diff --git a/modules/client/back/methods/client/updatePortfolio.js b/modules/client/back/methods/client/updatePortfolio.js
deleted file mode 100644
index 809a84636..000000000
--- a/modules/client/back/methods/client/updatePortfolio.js
+++ /dev/null
@@ -1,25 +0,0 @@
-module.exports = function(Self) {
- Self.remoteMethodCtx('updatePortfolio', {
- description: 'Update salesPeson potfolio weight',
- accessType: 'READ',
- accepts: [],
- returns: {
- type: 'Object',
- root: true
- },
- http: {
- path: `/updatePortfolio`,
- verb: 'GET'
- }
- });
-
- Self.updatePortfolio = async options => {
- const myOptions = {};
-
- if (typeof options == 'object')
- Object.assign(myOptions, options);
-
- query = `CALL bs.salesPerson_updatePortfolio()`;
- return Self.rawSql(query, null, myOptions);
- };
-};
diff --git a/modules/client/back/methods/client/updateUser.js b/modules/client/back/methods/client/updateUser.js
index ef23b92fd..1db8cd6b6 100644
--- a/modules/client/back/methods/client/updateUser.js
+++ b/modules/client/back/methods/client/updateUser.js
@@ -1,3 +1,4 @@
+const UserError = require('vn-loopback/util/user-error');
module.exports = Self => {
Self.remoteMethodCtx('updateUser', {
description: 'Updates the user information',
@@ -5,8 +6,7 @@ module.exports = Self => {
{
arg: 'id',
type: 'number',
- description: 'The user id',
- http: {source: 'path'}
+ description: 'The user id'
},
{
arg: 'name',
@@ -15,7 +15,7 @@ module.exports = Self => {
},
{
arg: 'email',
- type: 'string',
+ type: 'any',
description: 'the user email'
},
{
@@ -32,6 +32,7 @@ module.exports = Self => {
Self.updateUser = async function(ctx, id, options) {
const models = Self.app.models;
+ const userId = ctx.req.accessToken.userId;
let tx;
const myOptions = {};
@@ -44,13 +45,19 @@ module.exports = Self => {
}
try {
- const isWorker = await models.Worker.findById(id, null, myOptions);
- if (isWorker)
- throw new Error(`Can't update the user details of another worker`);
+ const isSalesPerson = await models.Account.hasRole(userId, 'salesPerson', myOptions);
- const user = await models.Account.findById(id, null, myOptions);
+ if (!isSalesPerson)
+ throw new UserError(`Not enough privileges to edit a client`);
- await user.updateAttributes(ctx.args, myOptions);
+ const isClient = await models.Client.findById(id, null, myOptions);
+ const isUserAccount = await models.UserAccount.findById(id, null, myOptions);
+
+ if (isClient && !isUserAccount) {
+ const user = await models.Account.findById(id, null, myOptions);
+ await user.updateAttributes(ctx.args, myOptions);
+ } else
+ throw new UserError(`Modifiable user details only by an administrator`);
if (tx) await tx.commit();
} catch (e) {
diff --git a/modules/client/back/methods/receipt/balanceCompensationEmail.js b/modules/client/back/methods/receipt/balanceCompensationEmail.js
new file mode 100644
index 000000000..afae5dabc
--- /dev/null
+++ b/modules/client/back/methods/receipt/balanceCompensationEmail.js
@@ -0,0 +1,52 @@
+const {Email} = require('vn-print');
+const UserError = require('vn-loopback/util/user-error');
+
+module.exports = Self => {
+ Self.remoteMethodCtx('balanceCompensationEmail', {
+ description: 'Sends the debit balances compensation email with an attached PDF',
+ accessType: 'WRITE',
+ accepts: [
+ {
+ arg: 'id',
+ type: 'Number',
+ required: true,
+ description: 'The receipt id',
+ http: {source: 'path'}
+ }
+ ],
+ returns: {
+ type: ['object'],
+ root: true
+ },
+ http: {
+ path: '/:id/balance-compensation-email',
+ verb: 'POST'
+ }
+ });
+
+ Self.balanceCompensationEmail = async(ctx, id) => {
+ const models = Self.app.models;
+ const receipt = await models.Receipt.findById(id, {fields: ['clientFk', 'bankFk']});
+
+ const bank = await models.Bank.findById(receipt.bankFk);
+ if (!bank)
+ throw new UserError(`Receipt's bank was not found`);
+
+ const accountingType = await models.AccountingType.findById(bank.accountingTypeFk);
+ if (!(accountingType && accountingType.code == 'compensation'))
+ throw new UserError(`This receipt was not compensated`);
+
+ const client = await models.Client.findById(receipt.clientFk, {fields: ['email']});
+
+ if (!client.email)
+ throw new UserError(`Client's email was not found`);
+ else {
+ const email = new Email('balance-compensation', {
+ lang: ctx.req.getLocale(),
+ recipient: client.email + ',administracion@verdnatura.es',
+ id
+ });
+ return email.send();
+ }
+ };
+};
diff --git a/modules/client/back/methods/receipt/balanceCompensationPdf.js b/modules/client/back/methods/receipt/balanceCompensationPdf.js
new file mode 100644
index 000000000..ff8713253
--- /dev/null
+++ b/modules/client/back/methods/receipt/balanceCompensationPdf.js
@@ -0,0 +1,50 @@
+const { Report } = require('vn-print');
+
+module.exports = Self => {
+ Self.remoteMethodCtx('balanceCompensationPdf', {
+ description: 'Returns the the debit balances compensation pdf',
+ accessType: 'READ',
+ accepts: [
+ {
+ arg: 'id',
+ type: 'number',
+ required: true,
+ description: 'The receipt id',
+ http: { source: 'path' }
+ }
+ ],
+ returns: [
+ {
+ arg: 'body',
+ type: 'file',
+ root: true
+ }, {
+ arg: 'Content-Type',
+ type: 'String',
+ http: {target: 'header'}
+ }, {
+ arg: 'Content-Disposition',
+ type: 'String',
+ http: {target: 'header'}
+ }
+ ],
+ http: {
+ path: '/:id/balance-compensation-pdf',
+ verb: 'GET'
+ }
+ });
+
+ Self.balanceCompensationPdf = async(ctx, id) => {
+ const args = Object.assign({}, ctx.args);
+ const params = {lang: ctx.req.getLocale()};
+
+ delete args.ctx;
+ for (const param in args)
+ params[param] = args[param];
+
+ const report = new Report('balance-compensation', params);
+ const stream = await report.toPdfStream();
+
+ return [stream, 'application/pdf', `filename="doc-${id}.pdf"`];
+ };
+};
diff --git a/modules/client/back/methods/receipt/filter.js b/modules/client/back/methods/receipt/filter.js
index e29ccf8f2..6df5e73f8 100644
--- a/modules/client/back/methods/receipt/filter.js
+++ b/modules/client/back/methods/receipt/filter.js
@@ -42,7 +42,7 @@ module.exports = Self => {
const stmt = new ParameterizedSQL(
`SELECT * FROM (
- SELECT
+ SELECT
r.id,
r.isConciliate,
r.payed,
@@ -56,13 +56,18 @@ module.exports = Self => {
u.name userName,
r.clientFk,
FALSE hasPdf,
- FALSE isInvoice
+ FALSE isInvoice,
+ at2.id IS NOT NULL as isCompensation
FROM vn.receipt r
LEFT JOIN vn.worker w ON w.id = r.workerFk
LEFT JOIN account.user u ON u.id = w.userFk
JOIN vn.company c ON c.id = r.companyFk
- WHERE r.clientFk = ? AND r.companyFk = ?
- UNION ALL
+ LEFT JOIN vn.accounting a ON a.id = r.bankFk
+ LEFT JOIN vn.accountingType at2 ON at2.id = a.accountingTypeFk AND at2.code = 'compensation'
+ WHERE
+ r.clientFk = ?
+ AND r.companyFk = ?
+ UNION ALL
SELECT
i.id,
TRUE,
@@ -77,11 +82,11 @@ module.exports = Self => {
NULL,
i.clientFk,
i.hasPdf,
- TRUE isInvoice
+ TRUE isInvoice,
+ NULL
FROM vn.invoiceOut i
JOIN vn.company c ON c.id = i.companyFk
WHERE i.clientFk = ? AND i.companyFk = ?
- ORDER BY payed DESC, created DESC
) t ORDER BY payed DESC, created DESC`,
[
clientId,
diff --git a/modules/client/back/methods/receipt/receiptPdf.js b/modules/client/back/methods/receipt/receiptPdf.js
new file mode 100644
index 000000000..f55e05040
--- /dev/null
+++ b/modules/client/back/methods/receipt/receiptPdf.js
@@ -0,0 +1,55 @@
+const {Report} = require('vn-print');
+
+module.exports = Self => {
+ Self.remoteMethodCtx('receiptPdf', {
+ description: 'Returns the receipt pdf',
+ accepts: [
+ {
+ arg: 'id',
+ type: 'number',
+ required: true,
+ description: 'The claim id',
+ http: {source: 'path'}
+ },
+ {
+ arg: 'recipientId',
+ type: 'number',
+ description: 'The recipient id',
+ required: false
+ }
+ ],
+ returns: [
+ {
+ arg: 'body',
+ type: 'file',
+ root: true
+ }, {
+ arg: 'Content-Type',
+ type: 'String',
+ http: {target: 'header'}
+ }, {
+ arg: 'Content-Disposition',
+ type: 'String',
+ http: {target: 'header'}
+ }
+ ],
+ http: {
+ path: '/:id/receipt-pdf',
+ verb: 'GET'
+ }
+ });
+
+ Self.receiptPdf = async(ctx, id) => {
+ const args = Object.assign({}, ctx.args);
+ const params = {lang: ctx.req.getLocale()};
+
+ delete args.ctx;
+ for (const param in args)
+ params[param] = args[param];
+
+ const report = new Report('receipt', params);
+ const stream = await report.toPdfStream();
+
+ return [stream, 'application/pdf', `filename="doc-${id}.pdf"`];
+ };
+};
diff --git a/modules/client/back/model-config.json b/modules/client/back/model-config.json
index b2e600610..b466aa5a1 100644
--- a/modules/client/back/model-config.json
+++ b/modules/client/back/model-config.json
@@ -8,6 +8,9 @@
"BankEntity": {
"dataSource": "vn"
},
+ "Business": {
+ "dataSource": "vn"
+ },
"BusinessType": {
"dataSource": "vn"
},
@@ -101,6 +104,9 @@
"SageTransactionType": {
"dataSource": "vn"
},
+ "TicketSms": {
+ "dataSource": "vn"
+ },
"TpvError": {
"dataSource": "vn"
},
diff --git a/modules/client/back/models/business.json b/modules/client/back/models/business.json
new file mode 100644
index 000000000..7ad2d307f
--- /dev/null
+++ b/modules/client/back/models/business.json
@@ -0,0 +1,27 @@
+{
+ "name": "Business",
+ "base": "VnModel",
+ "options": {
+ "mysql": {
+ "table": "business"
+ }
+ },
+ "properties": {
+ "id": {
+ "type": "number",
+ "id": true
+ }
+ },
+ "relations": {
+ "worker": {
+ "type": "belongsTo",
+ "model": "Worker",
+ "foreignKey": "workerFk"
+ },
+ "department": {
+ "type": "belongsTo",
+ "model": "Department",
+ "foreignKey": "departmentFk"
+ }
+ }
+}
\ No newline at end of file
diff --git a/modules/client/back/models/client-methods.js b/modules/client/back/models/client-methods.js
index 04d10413a..4b20a822c 100644
--- a/modules/client/back/models/client-methods.js
+++ b/modules/client/back/models/client-methods.js
@@ -22,7 +22,6 @@ module.exports = Self => {
require('../methods/client/summary')(Self);
require('../methods/client/updateAddress')(Self);
require('../methods/client/updateFiscalData')(Self);
- require('../methods/client/updatePortfolio')(Self);
require('../methods/client/updateUser')(Self);
require('../methods/client/uploadFile')(Self);
require('../methods/client/campaignMetricsPdf')(Self);
@@ -47,4 +46,5 @@ module.exports = Self => {
require('../methods/client/incotermsAuthorizationHtml')(Self);
require('../methods/client/incotermsAuthorizationEmail')(Self);
require('../methods/client/consumptionSendQueued')(Self);
+ require('../methods/client/filter')(Self);
};
diff --git a/modules/client/back/models/client.js b/modules/client/back/models/client.js
index 3bd89eff1..e07993f79 100644
--- a/modules/client/back/models/client.js
+++ b/modules/client/back/models/client.js
@@ -27,7 +27,7 @@ module.exports = Self => {
message: 'Invalid email',
allowNull: true,
allowBlank: true,
- with: /^[\w|.|-]+@[\w|-]+(\.[\w|-]+)*(,[\w|.|-]+@[\w|-]+(\.[\w|-]+)*)*$/
+ with: /^[\W]*([\w+\-.%]+@[\w\-.]+\.[A-Za-z]{1,61}[\W]*,{1}[\W]*)*([\w+\-.%]+@[\w\-.]+\.[A-Za-z]{1,61})[\W]*$/
});
Self.validatesLengthOf('postcode', {
@@ -425,14 +425,19 @@ module.exports = Self => {
account.observe('before save', async ctx => {
if (ctx.isNewInstance) return;
- ctx.hookState.oldInstance = JSON.parse(JSON.stringify(ctx.currentInstance));
+ if (ctx.currentInstance)
+ ctx.hookState.oldInstance = JSON.parse(JSON.stringify(ctx.currentInstance));
});
account.observe('after save', async ctx => {
const changes = ctx.data || ctx.instance;
if (!ctx.isNewInstance && changes) {
const oldData = ctx.hookState.oldInstance;
- const hasChanges = oldData.name != changes.name || oldData.active != changes.active;
+ let hasChanges;
+
+ if (oldData)
+ hasChanges = oldData.name != changes.name || oldData.active != changes.active;
+
if (!hasChanges) return;
const isClient = await Self.app.models.Client.count({id: oldData.id});
diff --git a/modules/client/back/models/client.json b/modules/client/back/models/client.json
index d383ae907..c66072f4d 100644
--- a/modules/client/back/models/client.json
+++ b/modules/client/back/models/client.json
@@ -142,7 +142,11 @@
},
"salesPersonFk": {
"type": "number"
+ },
+ "hasElectronicInvoice": {
+ "type": "boolean"
}
+
},
"relations": {
"account": {
diff --git a/modules/client/back/models/greuge.js b/modules/client/back/models/greuge.js
index bd5f2865d..42820fd60 100644
--- a/modules/client/back/models/greuge.js
+++ b/modules/client/back/models/greuge.js
@@ -1,6 +1,21 @@
+const LoopBackContext = require('loopback-context');
+
module.exports = function(Self) {
require('../methods/greuge/sumAmount')(Self);
+ Self.observe('before save', function(ctx, next) {
+ const loopBackContext = LoopBackContext.getCurrentContext();
+
+ let userFk = loopBackContext.active.accessToken.userId;
+
+ if (ctx.instance)
+ ctx.instance.userFk = userFk;
+ else
+ ctx.data.userFk = userFk;
+
+ next();
+ });
+
Self.validatesLengthOf('description', {
max: 45,
message: 'Description should have maximum of 45 characters'
diff --git a/modules/client/back/models/greuge.json b/modules/client/back/models/greuge.json
index 918ff0ca5..625bf4e28 100644
--- a/modules/client/back/models/greuge.json
+++ b/modules/client/back/models/greuge.json
@@ -2,9 +2,9 @@
"name": "Greuge",
"base": "Loggable",
"log": {
- "model": "ClientLog",
- "relation": "client",
- "showField": "description"
+ "model": "ClientLog",
+ "relation": "client",
+ "showField": "description"
},
"options": {
"mysql": {
@@ -35,7 +35,6 @@
"type": "number",
"required": true
}
-
},
"relations": {
"client": {
@@ -52,6 +51,11 @@
"type": "belongsTo",
"model": "GreugeType",
"foreignKey": "greugeTypeFk"
+ },
+ "user": {
+ "type": "belongsTo",
+ "model": "Account",
+ "foreignKey": "userFk"
}
}
}
\ No newline at end of file
diff --git a/modules/client/back/models/receipt.js b/modules/client/back/models/receipt.js
index 36a4a8952..3118cc239 100644
--- a/modules/client/back/models/receipt.js
+++ b/modules/client/back/models/receipt.js
@@ -2,6 +2,9 @@ const LoopBackContext = require('loopback-context');
module.exports = function(Self) {
require('../methods/receipt/filter')(Self);
+ require('../methods/receipt/balanceCompensationEmail')(Self);
+ require('../methods/receipt/balanceCompensationPdf')(Self);
+ require('../methods/receipt/receiptPdf')(Self);
Self.validateBinded('amountPaid', isNotZero, {
message: 'Amount cannot be zero',
diff --git a/modules/client/back/models/ticket-sms.json b/modules/client/back/models/ticket-sms.json
new file mode 100644
index 000000000..03f592f51
--- /dev/null
+++ b/modules/client/back/models/ticket-sms.json
@@ -0,0 +1,28 @@
+{
+ "name": "TicketSms",
+ "base": "VnModel",
+ "options": {
+ "mysql": {
+ "table": "ticketSms"
+ }
+ },
+ "properties": {
+ "smsFk": {
+ "type": "number",
+ "id": true,
+ "description": "Identifier"
+ }
+ },
+ "relations": {
+ "ticket": {
+ "type": "belongsTo",
+ "model": "Ticket",
+ "foreignKey": "ticketFk"
+ },
+ "sms": {
+ "type": "belongsTo",
+ "model": "Sms",
+ "foreignKey": "smsFk"
+ }
+ }
+}
diff --git a/modules/client/front/balance/create/index.js b/modules/client/front/balance/create/index.js
index c6a6e7ff9..35b2e0b38 100644
--- a/modules/client/front/balance/create/index.js
+++ b/modules/client/front/balance/create/index.js
@@ -4,7 +4,7 @@ import Dialog from 'core/components/dialog';
class Controller extends Dialog {
constructor($element, $, $transclude, vnReport) {
super($element, $, $transclude);
-
+ this.viewReceipt = true;
this.vnReport = vnReport;
this.receipt = {};
}
@@ -144,12 +144,8 @@ class Controller extends Dialog {
})
.then(() => this.vnApp.showSuccess(this.$t('Data saved!')))
.then(() => {
- if (this.viewReceipt) {
- this.vnReport.show('receipt', {
- receiptId: receiptId,
- companyId: this.companyFk
- });
- }
+ if (this.viewReceipt)
+ this.vnReport.show(`Receipts/${receiptId}/receipt-pdf`);
});
}
diff --git a/modules/client/front/balance/create/index.spec.js b/modules/client/front/balance/create/index.spec.js
index 77fe32e0f..2c4ed1940 100644
--- a/modules/client/front/balance/create/index.spec.js
+++ b/modules/client/front/balance/create/index.spec.js
@@ -75,6 +75,7 @@ describe('Client', () => {
jest.spyOn(controller.vnReport, 'show');
controller.$params = {id: 1101};
+ controller.viewReceipt = false;
$httpBackend.expect('POST', `Clients/1101/createReceipt`).respond({id: 1});
controller.responseHandler('accept');
@@ -85,6 +86,8 @@ describe('Client', () => {
});
it('should make an http POST query and then call to the report show() method', () => {
+ const receiptId = 1;
+
jest.spyOn(controller.vnApp, 'showSuccess');
jest.spyOn(controller.vnReport, 'show');
window.open = jest.fn();
@@ -92,14 +95,12 @@ describe('Client', () => {
controller.$params = {id: 1101};
controller.viewReceipt = true;
- $httpBackend.expect('POST', `Clients/1101/createReceipt`).respond({id: 1});
+ $httpBackend.expect('POST', `Clients/1101/createReceipt`).respond({id: receiptId});
controller.responseHandler('accept');
$httpBackend.flush();
- const expectedParams = {receiptId: 1, companyId: 442};
-
expect(controller.vnApp.showSuccess).toHaveBeenCalled();
- expect(controller.vnReport.show).toHaveBeenCalledWith('receipt', expectedParams);
+ expect(controller.vnReport.show).toHaveBeenCalledWith(`Receipts/${receiptId}/receipt-pdf`);
});
});
diff --git a/modules/client/front/balance/index/index.html b/modules/client/front/balance/index/index.html
index 3c61d8543..faf772c2d 100644
--- a/modules/client/front/balance/index/index.html
+++ b/modules/client/front/balance/index/index.html
@@ -121,9 +121,22 @@
-
-
-
+
+
+
+
+
+
+
+
+
@@ -131,7 +144,7 @@
vn-acl="salesAssistant"
vn-acl-action="remove"
icon="add"
- vn-tooltip="New payment"
+ vn-tooltip="New payment"
vn-bind="+"
fixed-bottom-right
ng-click="balanceCreate.show()">
@@ -142,9 +155,9 @@
company-fk="$ctrl.companyId"
client-fk="$ctrl.$params.id">
-
-
-
\ No newline at end of file
+
diff --git a/modules/client/front/balance/index/index.js b/modules/client/front/balance/index/index.js
index 7e09e018c..47cefab7d 100644
--- a/modules/client/front/balance/index/index.js
+++ b/modules/client/front/balance/index/index.js
@@ -2,8 +2,9 @@ import ngModule from '../../module';
import Section from 'salix/components/section';
class Controller extends Section {
- constructor($element, $) {
+ constructor($element, $, vnEmail) {
super($element, $);
+ this.vnEmail = vnEmail;
this.filter = {
include: {
relation: 'company',
@@ -90,9 +91,13 @@ class Controller extends Section {
this.$http.patch(endpoint, params)
.then(() => this.vnApp.showSuccess(this.$t('Data saved!')));
}
+
+ sendEmail(balance) {
+ return this.vnEmail.send(`Receipts/${balance.id}/balance-compensation-email`);
+ }
}
-Controller.$inject = ['$element', '$scope'];
+Controller.$inject = ['$element', '$scope', 'vnEmail'];
ngModule.vnComponent('vnClientBalanceIndex', {
template: require('./index.html'),
diff --git a/modules/client/front/balance/index/index.spec.js b/modules/client/front/balance/index/index.spec.js
index e130ac655..ea28cb55d 100644
--- a/modules/client/front/balance/index/index.spec.js
+++ b/modules/client/front/balance/index/index.spec.js
@@ -151,5 +151,19 @@ describe('Client', () => {
$httpBackend.flush();
});
});
+
+ describe('sendEmail()', () => {
+ it('should send an email', () => {
+ jest.spyOn(controller.vnEmail, 'send');
+
+ const $data = {id: 1103};
+
+ controller.sendEmail($data);
+
+ const expectedPath = `Receipts/${$data.id}/balance-compensation-email`;
+
+ expect(controller.vnEmail.send).toHaveBeenCalledWith(expectedPath);
+ });
+ });
});
});
diff --git a/modules/client/front/balance/index/locale/en.yml b/modules/client/front/balance/index/locale/en.yml
index 53cb1313e..0b37c1a1d 100644
--- a/modules/client/front/balance/index/locale/en.yml
+++ b/modules/client/front/balance/index/locale/en.yml
@@ -1 +1,3 @@
-BILL: N/INV {{ref}}
\ No newline at end of file
+BILL: N/INV {{ref}}
+Notify compensation: Do you want to report compensation to the client by mail?
+Send compensation: Send compensation
diff --git a/modules/client/front/balance/index/locale/es.yml b/modules/client/front/balance/index/locale/es.yml
index 05ef7070a..de710869e 100644
--- a/modules/client/front/balance/index/locale/es.yml
+++ b/modules/client/front/balance/index/locale/es.yml
@@ -8,4 +8,6 @@ Havings: Haber
Balance: Balance
Total by company: Total por empresa
Download PDF: Descargar PDF
-BILL: N/FRA {{ref}}
\ No newline at end of file
+Send compensation: Enviar compensación
+BILL: N/FRA {{ref}}
+Notify compensation: ¿Desea informar de la compensación al cliente por correo?
\ No newline at end of file
diff --git a/modules/client/front/basic-data/index.js b/modules/client/front/basic-data/index.js
index 418663952..b08d642d1 100644
--- a/modules/client/front/basic-data/index.js
+++ b/modules/client/front/basic-data/index.js
@@ -10,8 +10,6 @@ export default class Controller extends Section {
onSubmit() {
return this.$.watcher.submit().then(() => {
- const query = `Clients/updatePortfolio`;
- this.$http.get(query);
this.$http.get(`Clients/${this.$params.id}/checkDuplicatedData`);
});
}
diff --git a/modules/client/front/descriptor/index.html b/modules/client/front/descriptor/index.html
index cad226416..ef5c2997f 100644
--- a/modules/client/front/descriptor/index.html
+++ b/modules/client/front/descriptor/index.html
@@ -113,10 +113,11 @@
-
-
+
diff --git a/modules/client/front/descriptor/index.js b/modules/client/front/descriptor/index.js
index 4a0d1cd2a..4d8d70edf 100644
--- a/modules/client/front/descriptor/index.js
+++ b/modules/client/front/descriptor/index.js
@@ -39,6 +39,11 @@ class Controller extends Descriptor {
};
this.$.sms.open();
}
+
+ onSmsSend(sms) {
+ return this.$http.post(`Clients/${this.id}/sendSms`, sms)
+ .then(() => this.vnApp.showSuccess(this.$t('SMS sent')));
+ }
}
ngModule.vnComponent('vnClientDescriptor', {
diff --git a/modules/client/front/fiscal-data/index.html b/modules/client/front/fiscal-data/index.html
index bc5898635..88586cff7 100644
--- a/modules/client/front/fiscal-data/index.html
+++ b/modules/client/front/fiscal-data/index.html
@@ -1,112 +1,52 @@
-
+
-
+
-
+
-
+
-
+
-
-
+
\ No newline at end of file
diff --git a/modules/client/front/fiscal-data/locale/es.yml b/modules/client/front/fiscal-data/locale/es.yml
index f0c9929d2..7624c86bd 100644
--- a/modules/client/front/fiscal-data/locale/es.yml
+++ b/modules/client/front/fiscal-data/locale/es.yml
@@ -10,4 +10,5 @@ Sage tax type: Tipo de impuesto Sage
Sage transaction type: Tipo de transacción Sage
Previous client: Cliente anterior
In case of a company succession, specify the grantor company: En el caso de que haya habido una sucesión de empresa, indicar la empresa cedente
-Incoterms authorization: Autorización incoterms
\ No newline at end of file
+Incoterms authorization: Autorización incoterms
+Electronic invoice: Factura electrónica
diff --git a/modules/client/front/greuge/index/index.html b/modules/client/front/greuge/index/index.html
index b48fe9466..459d92fc7 100644
--- a/modules/client/front/greuge/index/index.html
+++ b/modules/client/front/greuge/index/index.html
@@ -29,6 +29,7 @@
Date
+ Created by
Comment
Type
Amount
@@ -37,6 +38,8 @@
{{::greuge.shipped | date:'dd/MM/yyyy HH:mm' }}
+ {{::greuge.user.name}}
{{::greuge.description}}
@@ -57,3 +60,4 @@
vn-bind="+"
fixed-bottom-right>
+
\ No newline at end of file
diff --git a/modules/client/front/greuge/index/index.js b/modules/client/front/greuge/index/index.js
index 2451167a4..7a5ccc531 100644
--- a/modules/client/front/greuge/index/index.js
+++ b/modules/client/front/greuge/index/index.js
@@ -8,6 +8,12 @@ class Controller extends Section {
include: [
{
relation: 'greugeType',
+ scope: {
+ fields: ['id', 'name']
+ },
+ },
+ {
+ relation: 'user',
scope: {
fields: ['id', 'name']
}
diff --git a/modules/client/front/greuge/index/locale/es.yml b/modules/client/front/greuge/index/locale/es.yml
index 513e6ff7b..d1f202862 100644
--- a/modules/client/front/greuge/index/locale/es.yml
+++ b/modules/client/front/greuge/index/locale/es.yml
@@ -1,4 +1,5 @@
Date: Fecha
Comment: Comentario
Amount: Importe
-Type: Tipo
\ No newline at end of file
+Type: Tipo
+Created by: Creado por
\ No newline at end of file
diff --git a/modules/client/front/index.js b/modules/client/front/index.js
index a5782c789..ff767bc9e 100644
--- a/modules/client/front/index.js
+++ b/modules/client/front/index.js
@@ -35,7 +35,6 @@ import './sample/index';
import './sample/create';
import './web-payment';
import './log';
-import './sms';
import './postcode';
import './postcode/province';
import './postcode/city';
diff --git a/modules/client/front/main/index.html b/modules/client/front/main/index.html
index e8bc4b988..0787858ae 100644
--- a/modules/client/front/main/index.html
+++ b/modules/client/front/main/index.html
@@ -1,6 +1,6 @@
@@ -10,8 +10,7 @@
vn-focus
panel="vn-client-search-panel"
info="Search client by id or name"
- model="model"
- expr-builder="$ctrl.exprBuilder(param, value)">
+ model="model">
diff --git a/modules/client/front/main/index.js b/modules/client/front/main/index.js
index 1069d3487..346880f4c 100644
--- a/modules/client/front/main/index.js
+++ b/modules/client/front/main/index.js
@@ -2,32 +2,6 @@ import ngModule from '../module';
import ModuleMain from 'salix/components/module-main';
export default class Client extends ModuleMain {
- exprBuilder(param, value) {
- switch (param) {
- case 'search':
- return /^\d+$/.test(value)
- ? {id: value}
- : {or: [{name: {like: `%${value}%`}}, {socialName: {like: `%${value}%`}}]};
- case 'phone':
- return {
- or: [
- {phone: value},
- {mobile: value}
- ]
- };
- case 'name':
- case 'socialName':
- case 'city':
- case 'email':
- return {[param]: {like: `%${value}%`}};
- case 'id':
- case 'fi':
- case 'postcode':
- case 'provinceFk':
- case 'salesPersonFk':
- return {[param]: value};
- }
- }
}
ngModule.vnComponent('vnClient', {
diff --git a/modules/client/front/notification/index.js b/modules/client/front/notification/index.js
index e70af12b2..faa062b25 100644
--- a/modules/client/front/notification/index.js
+++ b/modules/client/front/notification/index.js
@@ -77,15 +77,16 @@ export default class Controller extends Section {
onSendClientConsumption() {
const clientIds = this.checked.map(client => client.id);
- const params = {
+ const data = {
clients: clientIds,
from: this.campaign.from,
to: this.campaign.to
};
+ const params = JSON.stringify(data);
this.$http.post('ClientConsumptionQueues', {params})
.then(() => this.$.filters.hide())
- .then(() => this.vnApp.showSuccess(this.$t('Notifications sent!')));
+ .then(() => this.vnApp.showSuccess(this.$t('Notification sent!')));
}
exprBuilder(param, value) {
diff --git a/modules/client/front/notification/index.spec.js b/modules/client/front/notification/index.spec.js
index ea082c403..4e754f6ad 100644
--- a/modules/client/front/notification/index.spec.js
+++ b/modules/client/front/notification/index.spec.js
@@ -69,15 +69,16 @@ describe('Client notification', () => {
data[0].$checked = true;
data[1].$checked = true;
- const params = Object.assign({
+ const args = Object.assign({
clients: [1101, 1102]
}, controller.campaign);
+ const params = JSON.stringify(args);
$httpBackend.expect('POST', `ClientConsumptionQueues`, {params}).respond(200, params);
controller.onSendClientConsumption();
$httpBackend.flush();
- expect(controller.vnApp.showSuccess).toHaveBeenCalledWith('Notifications sent!');
+ expect(controller.vnApp.showSuccess).toHaveBeenCalledWith('Notification sent!');
});
});
diff --git a/modules/client/front/routes.json b/modules/client/front/routes.json
index c7462e46c..406ca07d7 100644
--- a/modules/client/front/routes.json
+++ b/modules/client/front/routes.json
@@ -20,7 +20,7 @@
{"state": "client.card.credit.index", "icon": "credit_card"},
{"state": "client.card.greuge.index", "icon": "work"},
{"state": "client.card.balance.index", "icon": "icon-invoice"},
- {"state": "client.card.recovery.index", "icon": "icon-recovery"},
+ {"state": "client.card.recovery.index", "icon": "icon-recovery"},
{"state": "client.card.webAccess", "icon": "cloud"},
{"state": "client.card.log", "icon": "history"},
{
@@ -37,7 +37,7 @@
{"state": "client.card.unpaid", "icon": "icon-defaulter"}
]
}
- ]
+ ]
},
"keybindings": [
{"key": "c", "state": "client.index"}
@@ -147,7 +147,7 @@
{
"url": "/note",
"state": "client.card.note",
- "component": "ui-view",
+ "component": "ui-view",
"abstract": true
},
{
@@ -236,7 +236,7 @@
"client": "$ctrl.client"
}
},
- {
+ {
"url": "/create?payed&companyFk&bankFk&payedAmount",
"state": "client.card.balance.create",
"component": "vn-client-balance-create",
@@ -406,13 +406,13 @@
}
},
{
- "url": "/defaulter",
+ "url": "/defaulter?q",
"state": "client.defaulter",
"component": "vn-client-defaulter",
"description": "Defaulter"
},
{
- "url" : "/notification",
+ "url" : "/notification?q",
"state": "client.notification",
"component": "vn-client-notification",
"description": "Notifications"
@@ -424,7 +424,7 @@
"description": "Unpaid"
},
{
- "url": "/extended-list",
+ "url": "/extended-list?q",
"state": "client.extendedList",
"component": "vn-client-extended-list",
"description": "Extended list"
diff --git a/modules/client/front/search-panel/index.html b/modules/client/front/search-panel/index.html
index 234cb6f53..a02f93882 100644
--- a/modules/client/front/search-panel/index.html
+++ b/modules/client/front/search-panel/index.html
@@ -58,6 +58,13 @@
value-field="id"
label="Province">
+
+
{
- this.vnApp.showMessage(this.$t('SMS sent!'));
-
- if (res.data) this.emit('send', {response: res.data});
- });
- } catch (e) {
- this.vnApp.showError(this.$t(e.message));
- return false;
- }
- return true;
- }
-}
-
-Controller.$inject = ['$element', '$scope', '$http', '$translate', 'vnApp'];
-
-ngModule.vnComponent('vnClientSms', {
- template: require('./index.html'),
- controller: Controller,
- bindings: {
- sms: '<',
- }
-});
diff --git a/modules/client/front/sms/index.spec.js b/modules/client/front/sms/index.spec.js
deleted file mode 100644
index 793c80d6e..000000000
--- a/modules/client/front/sms/index.spec.js
+++ /dev/null
@@ -1,74 +0,0 @@
-import './index';
-
-describe('Client', () => {
- describe('Component vnClientSms', () => {
- let controller;
- let $httpBackend;
- let $element;
-
- beforeEach(ngModule('client'));
-
- beforeEach(inject(($componentController, $rootScope, _$httpBackend_) => {
- $httpBackend = _$httpBackend_;
- let $scope = $rootScope.$new();
- $element = angular.element(' ');
- controller = $componentController('vnClientSms', {$element, $scope});
- controller.client = {id: 1101};
- controller.$params = {id: 1101};
- controller.$.message = {
- input: {
- value: 'My SMS'
- }
- };
- }));
-
- describe('onResponse()', () => {
- it('should perform a POST query and show a success snackbar', () => {
- let params = {destinationFk: 1101, destination: 111111111, message: 'My SMS'};
- controller.sms = {destinationFk: 1101, destination: 111111111, message: 'My SMS'};
-
- jest.spyOn(controller.vnApp, 'showMessage');
- $httpBackend.expect('POST', `Clients/1101/sendSms`, params).respond(200, params);
-
- controller.onResponse();
- $httpBackend.flush();
-
- expect(controller.vnApp.showMessage).toHaveBeenCalledWith('SMS sent!');
- });
-
- it('should call onResponse without the destination and show an error snackbar', () => {
- controller.sms = {destinationFk: 1101, message: 'My SMS'};
-
- jest.spyOn(controller.vnApp, 'showError');
-
- controller.onResponse('accept');
-
- expect(controller.vnApp.showError).toHaveBeenCalledWith(`The destination can't be empty`);
- });
-
- it('should call onResponse without the message and show an error snackbar', () => {
- controller.sms = {destinationFk: 1101, destination: 222222222};
-
- jest.spyOn(controller.vnApp, 'showError');
-
- controller.onResponse('accept');
-
- expect(controller.vnApp.showError).toHaveBeenCalledWith(`The message can't be empty`);
- });
- });
-
- describe('charactersRemaining()', () => {
- it('should return the characters remaining in a element', () => {
- controller.$.message = {
- input: {
- value: 'My message 0€'
- }
- };
-
- let result = controller.charactersRemaining();
-
- expect(result).toEqual(145);
- });
- });
- });
-});
diff --git a/modules/entry/back/methods/entry/filter.js b/modules/entry/back/methods/entry/filter.js
index 1ba4166dc..e90043074 100644
--- a/modules/entry/back/methods/entry/filter.js
+++ b/modules/entry/back/methods/entry/filter.js
@@ -154,7 +154,8 @@ module.exports = Self => {
e.id,
e.supplierFk,
e.dated,
- e.ref,
+ e.reference,
+ e.invoiceNumber,
e.isBooked,
e.isExcludedFromAvailable,
e.notes,
diff --git a/modules/entry/back/methods/entry/importBuys.js b/modules/entry/back/methods/entry/importBuys.js
index fb2f5f452..fdc6b058e 100644
--- a/modules/entry/back/methods/entry/importBuys.js
+++ b/modules/entry/back/methods/entry/importBuys.js
@@ -12,10 +12,15 @@ module.exports = Self => {
http: {source: 'path'}
},
{
- arg: 'ref',
+ arg: 'reference',
type: 'string',
description: 'The buyed boxes ids',
},
+ {
+ arg: 'invoiceNumber',
+ type: 'string',
+ description: 'The registered invoice number',
+ },
{
arg: 'observation',
type: 'string',
@@ -63,7 +68,8 @@ module.exports = Self => {
await entry.updateAttributes({
observation: args.observation,
- ref: args.ref
+ reference: args.reference,
+ invoiceNumber: args.invoiceNumber
}, myOptions);
const travel = entry.travel();
diff --git a/modules/entry/back/methods/entry/specs/importBuys.spec.js b/modules/entry/back/methods/entry/specs/importBuys.spec.js
index 9cf6f4300..4f9204c6a 100644
--- a/modules/entry/back/methods/entry/specs/importBuys.spec.js
+++ b/modules/entry/back/methods/entry/specs/importBuys.spec.js
@@ -15,13 +15,15 @@ describe('entry import()', () => {
});
it('should import the buy rows', async() => {
- const expectedRef = '1, 2';
+ const expectedReference = '1, 2';
+ const expectedInvoiceNumber = '1, 2';
const expectedObservation = '123456';
const ctx = {
req: activeCtx,
args: {
observation: expectedObservation,
- ref: expectedRef,
+ reference: expectedReference,
+ invoiceNumber: expectedInvoiceNumber,
buys: [
{
itemFk: 1,
@@ -58,7 +60,8 @@ describe('entry import()', () => {
}, options);
expect(updatedEntry.observation).toEqual(expectedObservation);
- expect(updatedEntry.ref).toEqual(expectedRef);
+ expect(updatedEntry.reference).toEqual(expectedReference);
+ expect(updatedEntry.invoiceNumber).toEqual(expectedInvoiceNumber);
expect(entryBuys.length).toEqual(4);
await tx.rollback();
diff --git a/modules/entry/back/models/entry.json b/modules/entry/back/models/entry.json
index c456859a5..d9b7c52df 100644
--- a/modules/entry/back/models/entry.json
+++ b/modules/entry/back/models/entry.json
@@ -18,7 +18,10 @@
"dated": {
"type": "date"
},
- "ref": {
+ "reference": {
+ "type": "string"
+ },
+ "invoiceNumber": {
"type": "string"
},
"isBooked": {
diff --git a/modules/entry/front/basic-data/index.html b/modules/entry/front/basic-data/index.html
index 423e9d70d..68a65e890 100644
--- a/modules/entry/front/basic-data/index.html
+++ b/modules/entry/front/basic-data/index.html
@@ -48,7 +48,7 @@
@@ -61,17 +61,25 @@
-
-
+ label="Invoice number"
+ ng-model="$ctrl.entry.invoiceNumber"
+ rule
+ vn-focus>
+
+
+
-
-
+
+
+
+
diff --git a/modules/entry/front/buy/index/index.js b/modules/entry/front/buy/index/index.js
index 6d9ee5760..322b81d4e 100644
--- a/modules/entry/front/buy/index/index.js
+++ b/modules/entry/front/buy/index/index.js
@@ -73,6 +73,12 @@ export default class Controller extends Section {
this.vnApp.showSuccess(this.$t('Data saved!'));
});
}
+
+ itemSearchFunc($search) {
+ return /^\d+$/.test($search)
+ ? {id: $search}
+ : {name: {like: '%' + $search + '%'}};
+ }
}
ngModule.vnComponent('vnEntryBuyIndex', {
diff --git a/modules/entry/front/index/index.html b/modules/entry/front/index/index.html
index 3e27a6a55..42177be21 100644
--- a/modules/entry/front/index/index.html
+++ b/modules/entry/front/index/index.html
@@ -12,6 +12,7 @@
Id
Landed
Reference
+ Invoice number
Supplier
Booked
Confirmed
@@ -45,7 +46,8 @@
{{::entry.landed | date:'dd/MM/yyyy'}}
- {{::entry.ref}}
+ {{::entry.reference}}
+ {{::entry.invoiceNumber}}
{{::entry.supplierName}}
diff --git a/modules/entry/front/index/locale/es.yml b/modules/entry/front/index/locale/es.yml
index 519f8e39a..4f12fc7bb 100644
--- a/modules/entry/front/index/locale/es.yml
+++ b/modules/entry/front/index/locale/es.yml
@@ -14,4 +14,5 @@ Booked: Contabilizada
Is inventory: Inventario
Notes: Notas
Status: Estado
-Selection: Selección
\ No newline at end of file
+Selection: Selección
+Invoice number: Núm. factura
\ No newline at end of file
diff --git a/modules/entry/front/search-panel/index.html b/modules/entry/front/search-panel/index.html
index 38acdf77d..adcb9d6d4 100644
--- a/modules/entry/front/search-panel/index.html
+++ b/modules/entry/front/search-panel/index.html
@@ -13,9 +13,16 @@
+ ng-model="filter.reference">
+
+
+
+
diff --git a/modules/entry/front/search-panel/locale/es.yml b/modules/entry/front/search-panel/locale/es.yml
index 88f164145..05b71da99 100644
--- a/modules/entry/front/search-panel/locale/es.yml
+++ b/modules/entry/front/search-panel/locale/es.yml
@@ -5,4 +5,5 @@ From: Desde
To: Hasta
Agency: Agencia
Warehouse: Almacén
-Search entry by id or a suppliers by name or alias: Buscar entrada por id o proveedores por nombre y alias
\ No newline at end of file
+Search entry by id or a suppliers by name or alias: Buscar entrada por id o proveedores por nombre y alias
+Invoice number: Núm. factura
\ No newline at end of file
diff --git a/modules/entry/front/summary/index.html b/modules/entry/front/summary/index.html
index ffd8aafab..04844ab99 100644
--- a/modules/entry/front/summary/index.html
+++ b/modules/entry/front/summary/index.html
@@ -27,7 +27,10 @@
value="{{$ctrl.entryData.company.code}}">
+ value="{{$ctrl.entryData.reference}}">
+
+
diff --git a/modules/entry/front/summary/locale/es.yml b/modules/entry/front/summary/locale/es.yml
index a141ce56c..1761561ed 100644
--- a/modules/entry/front/summary/locale/es.yml
+++ b/modules/entry/front/summary/locale/es.yml
@@ -8,4 +8,4 @@ Minimum price: Precio mínimo
Buys: Compras
Travel: Envio
Go to the entry: Ir a la entrada
-
+Invoice number: Núm. factura
diff --git a/modules/invoiceIn/back/methods/invoice-in/invoiceInEmail.js b/modules/invoiceIn/back/methods/invoice-in/invoiceInEmail.js
new file mode 100644
index 000000000..0768541a8
--- /dev/null
+++ b/modules/invoiceIn/back/methods/invoice-in/invoiceInEmail.js
@@ -0,0 +1,53 @@
+const {Email} = require('vn-print');
+
+module.exports = Self => {
+ Self.remoteMethodCtx('invoiceInEmail', {
+ description: 'Sends the invoice in email with an attached PDF',
+ accessType: 'WRITE',
+ accepts: [
+ {
+ arg: 'id',
+ type: 'number',
+ required: true,
+ description: 'The invoice id',
+ http: {source: 'path'}
+ },
+ {
+ arg: 'recipient',
+ type: 'string',
+ description: 'The recipient email',
+ required: true,
+ },
+ {
+ arg: 'recipientId',
+ type: 'number',
+ description: 'The recipient id to send to the recipient preferred language',
+ required: false
+ }
+ ],
+ returns: {
+ type: ['object'],
+ root: true
+ },
+ http: {
+ path: '/:id/invoice-in-email',
+ verb: 'POST'
+ }
+ });
+
+ Self.invoiceInEmail = async ctx => {
+ const args = Object.assign({}, ctx.args);
+ const params = {
+ recipient: args.recipient,
+ lang: ctx.req.getLocale()
+ };
+
+ delete args.ctx;
+ for (const param in args)
+ params[param] = args[param];
+
+ const email = new Email('invoiceIn', params);
+
+ return email.send();
+ };
+};
diff --git a/modules/invoiceIn/back/methods/invoice-in/invoiceInPdf.js b/modules/invoiceIn/back/methods/invoice-in/invoiceInPdf.js
new file mode 100644
index 000000000..e7962c93f
--- /dev/null
+++ b/modules/invoiceIn/back/methods/invoice-in/invoiceInPdf.js
@@ -0,0 +1,50 @@
+const {Report} = require('vn-print');
+
+module.exports = Self => {
+ Self.remoteMethodCtx('invoiceInPdf', {
+ description: 'Returns the invoiceIn pdf',
+ accessType: 'READ',
+ accepts: [
+ {
+ arg: 'id',
+ type: 'number',
+ required: true,
+ description: 'The invoiceIn id',
+ http: {source: 'path'}
+ }
+ ],
+ returns: [
+ {
+ arg: 'body',
+ type: 'file',
+ root: true
+ }, {
+ arg: 'Content-Type',
+ type: 'String',
+ http: {target: 'header'}
+ }, {
+ arg: 'Content-Disposition',
+ type: 'String',
+ http: {target: 'header'}
+ }
+ ],
+ http: {
+ path: '/:id/invoice-in-pdf',
+ verb: 'GET'
+ }
+ });
+
+ Self.invoiceInPdf = async(ctx, id) => {
+ const args = Object.assign({}, ctx.args);
+ const params = {lang: ctx.req.getLocale()};
+ delete args.ctx;
+
+ for (const param in args)
+ params[param] = args[param];
+
+ const report = new Report('invoiceIn', params);
+ const stream = await report.toPdfStream();
+
+ return [stream, 'application/pdf', `filename="doc-${id}.pdf"`];
+ };
+};
diff --git a/modules/invoiceIn/back/model-config.json b/modules/invoiceIn/back/model-config.json
index 6765ae81c..bd37b3bf1 100644
--- a/modules/invoiceIn/back/model-config.json
+++ b/modules/invoiceIn/back/model-config.json
@@ -2,7 +2,7 @@
"InvoiceIn": {
"dataSource": "vn"
},
- "InvoiceInTax": {
+ "InvoiceInConfig": {
"dataSource": "vn"
},
"InvoiceInDueDay": {
@@ -13,5 +13,8 @@
},
"InvoiceInLog": {
"dataSource": "vn"
+ },
+ "InvoiceInTax": {
+ "dataSource": "vn"
}
}
diff --git a/modules/invoiceIn/back/models/invoice-in-config.json b/modules/invoiceIn/back/models/invoice-in-config.json
new file mode 100644
index 000000000..5cf0ed64c
--- /dev/null
+++ b/modules/invoiceIn/back/models/invoice-in-config.json
@@ -0,0 +1,35 @@
+{
+ "name": "InvoiceInConfig",
+ "base": "VnModel",
+ "options": {
+ "mysql": {
+ "table": "invoiceInConfig"
+ }
+ },
+ "properties": {
+ "id": {
+ "id": true,
+ "type": "number",
+ "description": "Identifier"
+ },
+ "retentionRate": {
+ "type": "number"
+ },
+ "retentionName": {
+ "type": "string"
+ }
+ },
+ "relations": {
+ "sageWithholding": {
+ "type": "belongsTo",
+ "model": "SageWithholding",
+ "foreignKey": "sageWithholdingFk"
+ }
+ },
+ "acls": [{
+ "accessType": "READ",
+ "principalType": "ROLE",
+ "principalId": "$everyone",
+ "permission": "ALLOW"
+ }]
+}
diff --git a/modules/invoiceIn/back/models/invoice-in.js b/modules/invoiceIn/back/models/invoice-in.js
index 3b5aa65d9..95ccc7b20 100644
--- a/modules/invoiceIn/back/models/invoice-in.js
+++ b/modules/invoiceIn/back/models/invoice-in.js
@@ -4,4 +4,6 @@ module.exports = Self => {
require('../methods/invoice-in/clone')(Self);
require('../methods/invoice-in/toBook')(Self);
require('../methods/invoice-in/getTotals')(Self);
+ require('../methods/invoice-in/invoiceInPdf')(Self);
+ require('../methods/invoice-in/invoiceInEmail')(Self);
};
diff --git a/modules/invoiceIn/back/models/invoice-in.json b/modules/invoiceIn/back/models/invoice-in.json
index c6a736b06..fa8a1d8f8 100644
--- a/modules/invoiceIn/back/models/invoice-in.json
+++ b/modules/invoiceIn/back/models/invoice-in.json
@@ -94,6 +94,11 @@
"model": "Supplier",
"foreignKey": "supplierFk"
},
+ "supplierContact": {
+ "type": "hasMany",
+ "model": "SupplierContact",
+ "foreignKey": "supplierFk"
+ },
"currency": {
"type": "belongsTo",
"model": "Currency",
diff --git a/modules/invoiceIn/front/basic-data/index.html b/modules/invoiceIn/front/basic-data/index.html
index be89e502c..a22abbb33 100644
--- a/modules/invoiceIn/front/basic-data/index.html
+++ b/modules/invoiceIn/front/basic-data/index.html
@@ -5,6 +5,24 @@
form="form"
save="patch">
+
+
+
+
+
+
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Save
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Create
+
+
diff --git a/modules/invoiceIn/front/basic-data/index.js b/modules/invoiceIn/front/basic-data/index.js
index 6a39f35cd..8747fc4f2 100644
--- a/modules/invoiceIn/front/basic-data/index.js
+++ b/modules/invoiceIn/front/basic-data/index.js
@@ -1,9 +1,181 @@
import ngModule from '../module';
import Section from 'salix/components/section';
+import UserError from 'core/lib/user-error';
+
+class Controller extends Section {
+ constructor($element, $, vnFile) {
+ super($element, $, vnFile);
+ this.dms = {
+ files: [],
+ hasFile: false,
+ hasFileAttached: false
+ };
+ this.vnFile = vnFile;
+ this.getAllowedContentTypes();
+ this._editDownloadDisabled = false;
+ }
+
+ get contentTypesInfo() {
+ return this.$t('ContentTypesInfo', {
+ allowedContentTypes: this.allowedContentTypes
+ });
+ }
+
+ get editDownloadDisabled() {
+ return this._editDownloadDisabled;
+ }
+
+ async checkFileExists(dmsId) {
+ if (!dmsId) return;
+ let filter = {
+ fields: ['id']
+ };
+ await this.$http.get(`Dms/${dmsId}`, {filter})
+ .then(() => this._editDownloadDisabled = false)
+ .catch(() => this._editDownloadDisabled = true);
+ }
+
+ async getFile(dmsId) {
+ const path = `Dms/${dmsId}`;
+ await this.$http.get(path).then(res => {
+ const dms = res.data && res.data;
+ this.dms = {
+ dmsId: dms.id,
+ reference: dms.reference,
+ warehouseId: dms.warehouseFk,
+ companyId: dms.companyFk,
+ dmsTypeId: dms.dmsTypeFk,
+ description: dms.description,
+ hasFile: dms.hasFile,
+ hasFileAttached: false,
+ files: []
+ };
+ });
+ }
+
+ getAllowedContentTypes() {
+ this.$http.get('DmsContainers/allowedContentTypes').then(res => {
+ if (res.data.length > 0) {
+ const contentTypes = res.data.join(', ');
+ this.allowedContentTypes = contentTypes;
+ }
+ });
+ }
+
+ openEditDialog(dmsId) {
+ this.getFile(dmsId).then(() => this.$.dmsEditDialog.show());
+ }
+
+ openCreateDialog() {
+ this.dms = {
+ reference: null,
+ warehouseId: null,
+ companyId: null,
+ dmsTypeId: null,
+ description: null,
+ hasFile: true,
+ hasFileAttached: true,
+ files: null
+ };
+ this.$.dmsCreateDialog.show();
+ }
+
+ downloadFile(dmsId) {
+ this.vnFile.download(`api/dms/${dmsId}/downloadFile`);
+ }
+
+ onFileChange(files) {
+ let hasFileAttached = false;
+ if (files.length > 0)
+ hasFileAttached = true;
+
+ this.$.$applyAsync(() => {
+ this.dms.hasFileAttached = hasFileAttached;
+ });
+ }
+
+ onEdit() {
+ if (!this.dms.companyId)
+ throw new UserError(`The company can't be empty`);
+ if (!this.dms.warehouseId)
+ throw new UserError(`The warehouse can't be empty`);
+ if (!this.dms.dmsTypeId)
+ throw new UserError(`The DMS Type can't be empty`);
+ if (!this.dms.description)
+ throw new UserError(`The description can't be empty`);
+
+ const query = `dms/${this.dms.dmsId}/updateFile`;
+ const options = {
+ method: 'POST',
+ url: query,
+ params: this.dms,
+ headers: {
+ 'Content-Type': undefined
+ },
+ transformRequest: files => {
+ const formData = new FormData();
+
+ for (let i = 0; i < files.length; i++)
+ formData.append(files[i].name, files[i]);
+
+ return formData;
+ },
+ data: this.dms.files
+ };
+
+ this.$http(options).then(res => {
+ if (res) {
+ this.vnApp.showSuccess(this.$t('Data saved!'));
+ if (res.data.length > 0) this.invoiceIn.dmsFk = res.data[0].id;
+ }
+ });
+ }
+
+ onCreate() {
+ if (!this.dms.companyId)
+ throw new UserError(`The company can't be empty`);
+ if (!this.dms.warehouseId)
+ throw new UserError(`The warehouse can't be empty`);
+ if (!this.dms.dmsTypeId)
+ throw new UserError(`The DMS Type can't be empty`);
+ if (!this.dms.description)
+ throw new UserError(`The description can't be empty`);
+ if (!this.dms.files)
+ throw new UserError(`The files can't be empty`);
+
+ const query = `Dms/uploadFile`;
+ const options = {
+ method: 'POST',
+ url: query,
+ params: this.dms,
+ headers: {
+ 'Content-Type': undefined
+ },
+ transformRequest: files => {
+ const formData = new FormData();
+
+ for (let i = 0; i < files.length; i++)
+ formData.append(files[i].name, files[i]);
+
+ return formData;
+ },
+ data: this.dms.files
+ };
+
+ this.$http(options).then(res => {
+ if (res) {
+ this.vnApp.showSuccess(this.$t('Data saved!'));
+ if (res.data.length > 0) this.invoiceIn.dmsFk = res.data[0].id;
+ }
+ });
+ }
+}
+
+Controller.$inject = ['$element', '$scope', 'vnFile'];
ngModule.vnComponent('vnInvoiceInBasicData', {
template: require('./index.html'),
- controller: Section,
+ controller: Controller,
bindings: {
invoiceIn: '<'
}
diff --git a/modules/invoiceIn/front/basic-data/index.spec.js b/modules/invoiceIn/front/basic-data/index.spec.js
new file mode 100644
index 000000000..09aa08293
--- /dev/null
+++ b/modules/invoiceIn/front/basic-data/index.spec.js
@@ -0,0 +1,102 @@
+import './index.js';
+import watcher from 'core/mocks/watcher';
+
+describe('InvoiceIn', () => {
+ describe('Component vnInvoiceInBasicData', () => {
+ let controller;
+ let $scope;
+ let $httpBackend;
+ let $httpParamSerializer;
+
+ beforeEach(ngModule('invoiceIn'));
+
+ beforeEach(inject(($componentController, $rootScope, _$httpBackend_, _$httpParamSerializer_) => {
+ $scope = $rootScope.$new();
+ $httpBackend = _$httpBackend_;
+ $httpParamSerializer = _$httpParamSerializer_;
+ const $element = angular.element(' ');
+ controller = $componentController('vnInvoiceInBasicData', {$element, $scope});
+ controller.$.watcher = watcher;
+ $httpBackend.expect('GET', `DmsContainers/allowedContentTypes`).respond({});
+ }));
+
+ describe('onFileChange()', () => {
+ it('should set dms hasFileAttached property to true if has any files', () => {
+ const files = [{id: 1, name: 'MyFile'}];
+ controller.onFileChange(files);
+
+ $scope.$apply();
+
+ expect(controller.dms.hasFileAttached).toBeTruthy();
+ });
+ });
+
+ describe('checkFileExists()', () => {
+ it(`should return false if a file exists`, () => {
+ const fileIdExists = 1;
+ controller.checkFileExists(fileIdExists);
+
+ expect(controller.editDownloadDisabled).toBe(false);
+ });
+ });
+
+ describe('onEdit()', () => {
+ it(`should perform a POST query to edit the dms properties`, () => {
+ jest.spyOn(controller.vnApp, 'showSuccess');
+
+ const dms = {
+ dmsId: 1,
+ reference: 'Ref1',
+ warehouseId: 1,
+ companyId: 442,
+ dmsTypeId: 20,
+ description: 'This is a description',
+ files: []
+ };
+
+ controller.dms = dms;
+ const serializedParams = $httpParamSerializer(controller.dms);
+ const query = `dms/${controller.dms.dmsId}/updateFile?${serializedParams}`;
+
+ $httpBackend.expectPOST(query).respond({});
+ controller.onEdit();
+ $httpBackend.flush();
+
+ expect(controller.vnApp.showSuccess).toHaveBeenCalled();
+ });
+ });
+
+ describe('onCreate()', () => {
+ it(`should perform a POST query to create a new dms`, () => {
+ jest.spyOn(controller.vnApp, 'showSuccess');
+
+ const dms = {
+ reference: 'Ref1',
+ warehouseId: 1,
+ companyId: 442,
+ dmsTypeId: 20,
+ description: 'This is a description',
+ files: [{
+ lastModified: 1668673957761,
+ lastModifiedDate: new Date(),
+ name: 'file-example.png',
+ size: 19653,
+ type: 'image/png',
+ webkitRelativePath: ''
+ }]
+ };
+
+ controller.dms = dms;
+ const serializedParams = $httpParamSerializer(controller.dms);
+ const query = `Dms/uploadFile?${serializedParams}`;
+
+ $httpBackend.expectPOST(query).respond({});
+ controller.onCreate();
+ $httpBackend.flush();
+
+ expect(controller.vnApp.showSuccess).toHaveBeenCalled();
+ });
+ });
+ });
+});
+
diff --git a/modules/invoiceIn/front/basic-data/locale/en.yml b/modules/invoiceIn/front/basic-data/locale/en.yml
new file mode 100644
index 000000000..19f4dc8c2
--- /dev/null
+++ b/modules/invoiceIn/front/basic-data/locale/en.yml
@@ -0,0 +1 @@
+ContentTypesInfo: Allowed file types {{allowedContentTypes}}
diff --git a/modules/invoiceIn/front/basic-data/locale/es.yml b/modules/invoiceIn/front/basic-data/locale/es.yml
new file mode 100644
index 000000000..e2e494fa5
--- /dev/null
+++ b/modules/invoiceIn/front/basic-data/locale/es.yml
@@ -0,0 +1,15 @@
+Upload file: Subir fichero
+Edit file: Editar fichero
+Upload: Subir
+Document: Documento
+ContentTypesInfo: "Tipos de archivo permitidos: {{allowedContentTypes}}"
+Generate identifier for original file: Generar identificador para archivo original
+File management: Gestión documental
+Hard copy: Copia
+This file will be deleted: Este fichero va a ser borrado
+Are you sure?: Estas seguro?
+File deleted: Fichero eliminado
+Remove file: Eliminar fichero
+Download file: Descargar fichero
+Edit document: Editar documento
+Create document: Crear documento
diff --git a/modules/invoiceIn/front/card/index.js b/modules/invoiceIn/front/card/index.js
index 582c2abb8..c7ac08cc7 100644
--- a/modules/invoiceIn/front/card/index.js
+++ b/modules/invoiceIn/front/card/index.js
@@ -8,6 +8,14 @@ class Controller extends ModuleCard {
{
relation: 'supplier'
},
+ {
+ relation: 'supplierContact',
+ scope: {
+ where: {
+ email: {neq: null}
+ }
+ }
+ },
{
relation: 'invoiceInDueDay'
},
diff --git a/modules/invoiceIn/front/descriptor/index.html b/modules/invoiceIn/front/descriptor/index.html
index 33f9ee8c6..40f7dec18 100644
--- a/modules/invoiceIn/front/descriptor/index.html
+++ b/modules/invoiceIn/front/descriptor/index.html
@@ -1,5 +1,12 @@
-
+
+
@@ -10,7 +17,6 @@
translate>
To book
-
Clone Invoice
+
+ Show agricultural invoice as PDF
+
+
+ Send agricultural invoice as PDF
+
@@ -37,7 +55,7 @@
- {{$ctrl.invoiceIn.supplier.nickname}}
+ {{$ctrl.invoiceIn.supplier.nickname}}
@@ -57,9 +75,9 @@
icon="icon-invoice-in">
-
+
-
+
-
-
\ No newline at end of file
+
+
+
+
+
+ Are you sure you want to send it?
+
+
+
+
+
+ Confirm
+
+
diff --git a/modules/invoiceIn/front/descriptor/index.js b/modules/invoiceIn/front/descriptor/index.js
index cde324296..4dc89a459 100644
--- a/modules/invoiceIn/front/descriptor/index.js
+++ b/modules/invoiceIn/front/descriptor/index.js
@@ -96,6 +96,24 @@ class Controller extends Descriptor {
.then(() => this.$state.reload())
.then(() => this.vnApp.showSuccess(this.$t('InvoiceIn booked')));
}
+
+ showPdfInvoice() {
+ this.vnReport.show(`InvoiceIns/${this.id}/invoice-in-pdf`);
+ }
+
+ sendPdfInvoice($data) {
+ if (!$data.email)
+ return this.vnApp.showError(this.$t(`The email can't be empty`));
+
+ return this.vnEmail.send(`InvoiceIns/${this.entity.id}/invoice-in-email`, {
+ recipient: $data.email,
+ recipientId: this.entity.supplier.id
+ });
+ }
+
+ isAgricultural() {
+ return this.invoiceIn.supplier.sageWithholdingFk == this.config[0].sageWithholdingFk;
+ }
}
ngModule.vnComponent('vnInvoiceInDescriptor', {
diff --git a/modules/invoiceIn/front/locale/es.yml b/modules/invoiceIn/front/locale/es.yml
index 4f36b33fa..d8400dd67 100644
--- a/modules/invoiceIn/front/locale/es.yml
+++ b/modules/invoiceIn/front/locale/es.yml
@@ -19,3 +19,6 @@ To book: Contabilizar
Total amount: Total importe
Total net: Total neto
Total stems: Total tallos
+Show agricultural invoice as PDF: Ver factura agrícola como PDF
+Send agricultural invoice as PDF: Enviar factura agrícola como PDF
+New InvoiceIn: Nueva Factura
\ No newline at end of file
diff --git a/modules/invoiceOut/back/methods/invoiceOut/globalInvoicing.js b/modules/invoiceOut/back/methods/invoiceOut/clientsToInvoice.js
similarity index 50%
rename from modules/invoiceOut/back/methods/invoiceOut/globalInvoicing.js
rename to modules/invoiceOut/back/methods/invoiceOut/clientsToInvoice.js
index 2aa277b6f..d42184ae5 100644
--- a/modules/invoiceOut/back/methods/invoiceOut/globalInvoicing.js
+++ b/modules/invoiceOut/back/methods/invoiceOut/clientsToInvoice.js
@@ -1,6 +1,6 @@
module.exports = Self => {
- Self.remoteMethodCtx('globalInvoicing', {
- description: 'Make a global invoice',
+ Self.remoteMethodCtx('clientsToInvoice', {
+ description: 'Get the clients to make global invoicing',
accessType: 'WRITE',
accepts: [
{
@@ -29,19 +29,22 @@ module.exports = Self => {
description: 'The company id to invoice'
}
],
- returns: {
- type: 'object',
- root: true
+ returns: [{
+ arg: 'clientsAndAddresses',
+ type: ['object']
},
+ {
+ arg: 'invoice',
+ type: 'object'
+ }],
http: {
- path: '/globalInvoicing',
+ path: '/clientsToInvoice',
verb: 'POST'
}
});
- Self.globalInvoicing = async(ctx, options) => {
+ Self.clientsToInvoice = async(ctx, options) => {
const args = ctx.args;
-
let tx;
const myOptions = {};
@@ -53,8 +56,6 @@ module.exports = Self => {
myOptions.transaction = tx;
}
- const invoicesIds = [];
- const failedClients = [];
let query;
try {
query = `
@@ -78,6 +79,9 @@ module.exports = Self => {
const minShipped = new Date();
minShipped.setFullYear(minShipped.getFullYear() - 1);
+ minShipped.setMonth(1);
+ minShipped.setDate(1);
+ minShipped.setHours(0, 0, 0, 0);
// Packaging liquidation
const vIsAllInvoiceable = false;
@@ -93,110 +97,51 @@ module.exports = Self => {
const invoiceableClients = await getInvoiceableClients(ctx, myOptions);
- if (!invoiceableClients.length) return;
+ if (!invoiceableClients) return;
- for (let client of invoiceableClients) {
- try {
- if (client.hasToInvoiceByAddress) {
- await Self.rawSql('CALL ticketToInvoiceByAddress(?, ?, ?, ?)', [
- minShipped,
- args.maxShipped,
- client.addressFk,
- args.companyFk
- ], myOptions);
- } else {
- await Self.rawSql('CALL invoiceFromClient(?, ?, ?)', [
- args.maxShipped,
- client.id,
- args.companyFk
- ], myOptions);
- }
+ const clientsAndAddresses = invoiceableClients.map(invoiceableClient => {
+ return {
+ clientId: invoiceableClient.id,
+ addressId: invoiceableClient.addressFk
- // Make invoice
- const isSpanishCompany = await getIsSpanishCompany(args.companyFk, myOptions);
-
- // Validates ticket nagative base
- const hasAnyNegativeBase = await getNegativeBase(myOptions);
- if (hasAnyNegativeBase && isSpanishCompany)
- continue;
-
- query = `SELECT invoiceSerial(?, ?, ?) AS serial`;
- const [invoiceSerial] = await Self.rawSql(query, [
- client.id,
- args.companyFk,
- 'G'
- ], myOptions);
- const serialLetter = invoiceSerial.serial;
-
- query = `CALL invoiceOut_new(?, ?, NULL, @invoiceId)`;
- await Self.rawSql(query, [
- serialLetter,
- args.invoiceDate
- ], myOptions);
-
- const [newInvoice] = await Self.rawSql(`SELECT @invoiceId id`, null, myOptions);
- if (newInvoice.id) {
- await Self.rawSql('CALL invoiceOutBooking(?)', [newInvoice.id], myOptions);
-
- query = `INSERT IGNORE INTO invoiceOutQueue(invoiceFk) VALUES(?)`;
- await Self.rawSql(query, [newInvoice.id], myOptions);
-
- invoicesIds.push(newInvoice.id);
- }
- } catch (e) {
- failedClients.push({
- id: client.id,
- stacktrace: e
- });
- continue;
- }
+ };
}
-
- if (failedClients.length > 0)
- await notifyFailures(ctx, failedClients, myOptions);
+ );
if (tx) await tx.commit();
+
+ return [
+ clientsAndAddresses,
+ {
+ invoiceDate: args.invoiceDate,
+ maxShipped: args.maxShipped,
+ fromClientId: args.fromClientId,
+ toClientId: args.toClientId,
+ companyFk: args.companyFk,
+ minShipped: minShipped
+ }
+ ];
} catch (e) {
if (tx) await tx.rollback();
throw e;
}
-
- return invoicesIds;
};
- async function getNegativeBase(options) {
- const models = Self.app.models;
- const query = 'SELECT hasAnyNegativeBase() AS base';
- const [result] = await models.InvoiceOut.rawSql(query, null, options);
-
- return result && result.base;
- }
-
- async function getIsSpanishCompany(companyId, options) {
- const models = Self.app.models;
- const query = `SELECT COUNT(*) AS total
- FROM supplier s
- JOIN country c ON c.id = s.countryFk
- AND c.code = 'ES'
- WHERE s.id = ?`;
- const [supplierCompany] = await models.InvoiceOut.rawSql(query, [
- companyId
- ], options);
-
- return supplierCompany && supplierCompany.total;
- }
-
async function getClientsWithPackaging(ctx, options) {
const models = Self.app.models;
const args = ctx.args;
const query = `SELECT DISTINCT clientFk AS id
FROM ticket t
JOIN ticketPackaging tp ON t.id = tp.ticketFk
+ JOIN client c ON c.id = t.clientFk
WHERE t.shipped BETWEEN '2017-11-21' AND ?
- AND t.clientFk BETWEEN ? AND ?`;
+ AND t.clientFk >= ?
+ AND (t.clientFk <= ? OR ? IS NULL)
+ AND c.isActive`;
return models.InvoiceOut.rawSql(query, [
args.maxShipped,
args.fromClientId,
+ args.toClientId,
args.toClientId
], options);
}
@@ -225,42 +170,20 @@ module.exports = Self => {
LEFT JOIN ticketService ts ON ts.ticketFk = t.id
JOIN address a ON a.id = t.addressFk
JOIN client c ON c.id = t.clientFk
- WHERE ISNULL(t.refFk) AND c.id BETWEEN ? AND ?
+ WHERE ISNULL(t.refFk) AND c.id >= ?
+ AND (t.clientFk <= ? OR ? IS NULL)
AND t.shipped BETWEEN ? AND util.dayEnd(?)
AND t.companyFk = ? AND c.hasToInvoice
- AND c.isTaxDataChecked
+ AND c.isTaxDataChecked AND c.isActive
GROUP BY c.id, IF(c.hasToInvoiceByAddress,a.id,TRUE) HAVING sumAmount > 0`;
return models.InvoiceOut.rawSql(query, [
args.fromClientId,
args.toClientId,
+ args.toClientId,
minShipped,
args.maxShipped,
args.companyFk
], options);
}
-
- async function notifyFailures(ctx, failedClients, options) {
- const models = Self.app.models;
- const userId = ctx.req.accessToken.userId;
- const $t = ctx.req.__; // $translate
-
- const worker = await models.EmailUser.findById(userId, null, options);
- const subject = $t('Global invoicing failed');
- let body = $t(`Wasn't able to invoice the following clients`) + ': ';
-
- for (client of failedClients) {
- body += `ID: ${client.id}
- ${client.stacktrace} `;
- }
-
- await Self.rawSql(`
- INSERT INTO vn.mail (sender, replyTo, sent, subject, body)
- VALUES (?, ?, FALSE, ?, ?)`, [
- worker.email,
- worker.email,
- subject,
- body
- ], options);
- }
};
diff --git a/modules/invoiceOut/back/methods/invoiceOut/createPdf.js b/modules/invoiceOut/back/methods/invoiceOut/createPdf.js
index 3ab5f526c..e56516237 100644
--- a/modules/invoiceOut/back/methods/invoiceOut/createPdf.js
+++ b/modules/invoiceOut/back/methods/invoiceOut/createPdf.js
@@ -1,5 +1,5 @@
const UserError = require('vn-loopback/util/user-error');
-const {Report, storage} = require('vn-print');
+const print = require('vn-print');
module.exports = Self => {
Self.remoteMethodCtx('createPdf', {
@@ -52,7 +52,7 @@ module.exports = Self => {
hasPdf: true
}, myOptions);
- const invoiceReport = new Report('invoice', {
+ const invoiceReport = new print.Report('invoice', {
reference: invoiceOut.ref,
recipientId: invoiceOut.clientFk
});
@@ -66,7 +66,7 @@ module.exports = Self => {
const fileName = `${year}${invoiceOut.ref}.pdf`;
// Store invoice
- storage.write(stream, {
+ print.storage.write(stream, {
type: 'invoice',
path: `${year}/${month}/${day}`,
fileName: fileName
diff --git a/modules/invoiceOut/back/methods/invoiceOut/download.js b/modules/invoiceOut/back/methods/invoiceOut/download.js
index 19dea5b1a..74f5c95fe 100644
--- a/modules/invoiceOut/back/methods/invoiceOut/download.js
+++ b/modules/invoiceOut/back/methods/invoiceOut/download.js
@@ -62,8 +62,14 @@ module.exports = Self => {
name: fileName
};
- await fs.access(file.path);
- let stream = fs.createReadStream(file.path);
+ try {
+ await fs.access(file.path);
+ } catch (error) {
+ await Self.createPdf(ctx, id);
+ }
+
+ const stream = fs.createReadStream(file.path);
+
return [stream, file.contentType, `filename="${file.name}"`];
} catch (error) {
if (error.code === 'ENOENT')
diff --git a/modules/invoiceOut/back/methods/invoiceOut/downloadZip.js b/modules/invoiceOut/back/methods/invoiceOut/downloadZip.js
new file mode 100644
index 000000000..fe005f1ab
--- /dev/null
+++ b/modules/invoiceOut/back/methods/invoiceOut/downloadZip.js
@@ -0,0 +1,69 @@
+const JSZip = require('jszip');
+const fs = require('fs-extra');
+const UserError = require('vn-loopback/util/user-error');
+
+module.exports = Self => {
+ Self.remoteMethodCtx('downloadZip', {
+ description: 'Download a zip file with multiple invoices pdfs',
+ accessType: 'READ',
+ accepts: [
+ {
+ arg: 'ids',
+ type: 'string',
+ description: 'The invoices ids',
+ }
+ ],
+ returns: [
+ {
+ arg: 'body',
+ type: 'file',
+ root: true
+ }, {
+ arg: 'Content-Type',
+ type: 'string',
+ http: {target: 'header'}
+ }, {
+ arg: 'Content-Disposition',
+ type: 'string',
+ http: {target: 'header'}
+ }
+ ],
+ http: {
+ path: '/downloadZip',
+ verb: 'GET'
+ }
+ });
+
+ Self.downloadZip = async function(ctx, ids, options) {
+ const models = Self.app.models;
+ const myOptions = {};
+ const zip = new JSZip();
+
+ if (typeof options == 'object')
+ Object.assign(myOptions, options);
+
+ const zipConfig = await models.ZipConfig.findOne(null, myOptions);
+ let totalSize = 0;
+ ids = ids.split(',');
+
+ for (let id of ids) {
+ if (zipConfig && totalSize > zipConfig.maxSize) throw new UserError('Files are too large');
+ const invoiceOutPdf = await models.InvoiceOut.download(ctx, id, myOptions);
+ const fileName = extractFileName(invoiceOutPdf[2]);
+ const body = invoiceOutPdf[0];
+ const sizeInBytes = (await fs.promises.stat(body.path)).size;
+ const sizeInMegabytes = sizeInBytes / (1024 * 1024);
+ totalSize += sizeInMegabytes;
+ zip.file(fileName, body);
+ }
+
+ const stream = zip.generateNodeStream({streamFiles: true});
+
+ return [stream, 'application/zip', `filename="download.zip"`];
+ };
+
+ function extractFileName(str) {
+ const matches = str.match(/"(.*?)"/);
+ return matches ? matches[1] : str;
+ }
+};
diff --git a/modules/invoiceOut/back/methods/invoiceOut/invoiceClient.js b/modules/invoiceOut/back/methods/invoiceOut/invoiceClient.js
new file mode 100644
index 000000000..95c51a96d
--- /dev/null
+++ b/modules/invoiceOut/back/methods/invoiceOut/invoiceClient.js
@@ -0,0 +1,190 @@
+module.exports = Self => {
+ Self.remoteMethodCtx('invoiceClient', {
+ description: 'Make a invoice of a client',
+ accessType: 'WRITE',
+ accepts: [{
+ arg: 'clientId',
+ type: 'number',
+ description: 'The client id to invoice',
+ required: true
+ },
+ {
+ arg: 'addressId',
+ type: 'number',
+ description: 'The address id to invoice',
+ required: true
+ },
+ {
+ arg: 'invoiceDate',
+ type: 'date',
+ description: 'The invoice date',
+ required: true
+ },
+ {
+ arg: 'maxShipped',
+ type: 'date',
+ description: 'The maximum shipped date',
+ required: true
+ },
+ {
+ arg: 'companyFk',
+ type: 'number',
+ description: 'The company id to invoice',
+ required: true
+ },
+ {
+ arg: 'minShipped',
+ type: 'date',
+ description: 'The minium shupped date',
+ required: true
+ }],
+ returns: {
+ type: 'object',
+ root: true
+ },
+ http: {
+ path: '/invoiceClient',
+ verb: 'POST'
+ }
+ });
+
+ Self.invoiceClient = async(ctx, options) => {
+ const args = ctx.args;
+ const models = Self.app.models;
+ const myOptions = {};
+ let tx;
+
+ if (typeof options == 'object')
+ Object.assign(myOptions, options);
+
+ if (!myOptions.transaction) {
+ tx = await Self.beginTransaction({});
+ myOptions.transaction = tx;
+ }
+
+ let invoiceId;
+ let invoiceOut;
+ try {
+ const client = await models.Client.findById(args.clientId, {
+ fields: ['id', 'hasToInvoiceByAddress']
+ }, myOptions);
+ try {
+ if (client.hasToInvoiceByAddress) {
+ await Self.rawSql('CALL ticketToInvoiceByAddress(?, ?, ?, ?)', [
+ args.minShipped,
+ args.maxShipped,
+ args.addressId,
+ args.companyFk
+ ], myOptions);
+ } else {
+ await Self.rawSql('CALL invoiceFromClient(?, ?, ?)', [
+ args.maxShipped,
+ client.id,
+ args.companyFk
+ ], myOptions);
+ }
+
+ // Make invoice
+ const isSpanishCompany = await getIsSpanishCompany(args.companyFk, myOptions);
+
+ // Validates ticket nagative base
+ const hasAnyNegativeBase = await getNegativeBase(myOptions);
+ if (hasAnyNegativeBase && isSpanishCompany)
+ return tx.rollback();
+
+ query = `SELECT invoiceSerial(?, ?, ?) AS serial`;
+ const [invoiceSerial] = await Self.rawSql(query, [
+ client.id,
+ args.companyFk,
+ 'G'
+ ], myOptions);
+ const serialLetter = invoiceSerial.serial;
+
+ query = `CALL invoiceOut_new(?, ?, NULL, @invoiceId)`;
+ await Self.rawSql(query, [
+ serialLetter,
+ args.invoiceDate
+ ], myOptions);
+
+ const [newInvoice] = await Self.rawSql(`SELECT @invoiceId id`, null, myOptions);
+ if (newInvoice.id) {
+ await Self.rawSql('CALL invoiceOutBooking(?)', [newInvoice.id], myOptions);
+
+ invoiceId = newInvoice.id;
+ }
+ } catch (e) {
+ const failedClient = {
+ id: client.id,
+ stacktrace: e
+ };
+ await notifyFailures(ctx, failedClient, myOptions);
+ }
+
+ invoiceOut = await models.InvoiceOut.findById(invoiceId, {
+ include: {
+ relation: 'client'
+ }
+ }, myOptions);
+
+ if (tx) await tx.commit();
+ } catch (e) {
+ if (tx) await tx.rollback();
+ throw e;
+ }
+
+ ctx.args = {
+ reference: invoiceOut.ref,
+ recipientId: invoiceOut.clientFk,
+ recipient: invoiceOut.client().email
+ };
+ try {
+ await models.InvoiceOut.invoiceEmail(ctx, invoiceOut.ref);
+ } catch (err) {}
+
+ return invoiceId;
+ };
+
+ async function getNegativeBase(options) {
+ const models = Self.app.models;
+ const query = 'SELECT hasAnyNegativeBase() AS base';
+ const [result] = await models.InvoiceOut.rawSql(query, null, options);
+
+ return result && result.base;
+ }
+
+ async function getIsSpanishCompany(companyId, options) {
+ const models = Self.app.models;
+ const query = `SELECT COUNT(*) AS total
+ FROM supplier s
+ JOIN country c ON c.id = s.countryFk
+ AND c.code = 'ES'
+ WHERE s.id = ?`;
+ const [supplierCompany] = await models.InvoiceOut.rawSql(query, [
+ companyId
+ ], options);
+
+ return supplierCompany && supplierCompany.total;
+ }
+
+ async function notifyFailures(ctx, failedClient, options) {
+ const models = Self.app.models;
+ const userId = ctx.req.accessToken.userId;
+ const $t = ctx.req.__; // $translate
+
+ const worker = await models.EmailUser.findById(userId, null, options);
+ const subject = $t('Global invoicing failed');
+ let body = $t(`Wasn't able to invoice the following clients`) + ': ';
+
+ body += `ID: ${failedClient.id}
+ ${failedClient.stacktrace} `;
+
+ await Self.rawSql(`
+ INSERT INTO vn.mail (sender, replyTo, sent, subject, body)
+ VALUES (?, ?, FALSE, ?, ?)`, [
+ worker.email,
+ worker.email,
+ subject,
+ body
+ ], options);
+ }
+};
diff --git a/modules/invoiceOut/back/methods/invoiceOut/invoiceEmail.js b/modules/invoiceOut/back/methods/invoiceOut/invoiceEmail.js
index 83564e3ab..83cb84881 100644
--- a/modules/invoiceOut/back/methods/invoiceOut/invoiceEmail.js
+++ b/modules/invoiceOut/back/methods/invoiceOut/invoiceEmail.js
@@ -40,19 +40,40 @@ module.exports = Self => {
}
});
- Self.invoiceEmail = async ctx => {
+ Self.invoiceEmail = async(ctx, reference) => {
const args = Object.assign({}, ctx.args);
+ const {InvoiceOut} = Self.app.models;
const params = {
recipient: args.recipient,
lang: ctx.req.getLocale()
};
+ const invoiceOut = await InvoiceOut.findOne({
+ where: {
+ ref: reference
+ }
+ });
+
delete args.ctx;
for (const param in args)
params[param] = args[param];
const email = new Email('invoice', params);
- return email.send();
+ const [stream, ...headers] = await Self.download(ctx, invoiceOut.id);
+ const name = headers[1];
+ const fileName = name.replace(/filename="(.*)"/gm, '$1');
+
+ const mailOptions = {
+ overrideAttachments: true,
+ attachments: [
+ {
+ filename: fileName,
+ content: stream
+ }
+ ]
+ };
+
+ return email.send(mailOptions);
};
};
diff --git a/modules/invoiceOut/back/methods/invoiceOut/sendQueued.js b/modules/invoiceOut/back/methods/invoiceOut/sendQueued.js
deleted file mode 100644
index a1730ac81..000000000
--- a/modules/invoiceOut/back/methods/invoiceOut/sendQueued.js
+++ /dev/null
@@ -1,133 +0,0 @@
-const {Email, Report, storage} = require('vn-print');
-
-module.exports = Self => {
- Self.remoteMethod('sendQueued', {
- description: 'Send all queued invoices',
- accessType: 'WRITE',
- accepts: [],
- returns: {
- type: 'object',
- root: true
- },
- http: {
- path: '/send-queued',
- verb: 'POST'
- }
- });
-
- Self.sendQueued = async() => {
- const invoices = await Self.rawSql(`
- SELECT
- io.id,
- io.clientFk,
- io.issued,
- io.ref,
- c.email recipient,
- c.salesPersonFk,
- c.isToBeMailed,
- c.hasToInvoice,
- co.hasDailyInvoice,
- eu.email salesPersonEmail
- FROM invoiceOutQueue ioq
- JOIN invoiceOut io ON io.id = ioq.invoiceFk
- JOIN client c ON c.id = io.clientFk
- JOIN province p ON p.id = c.provinceFk
- JOIN country co ON co.id = p.countryFk
- LEFT JOIN account.emailUser eu ON eu.userFk = c.salesPersonFk
- WHERE status = ''`);
-
- let invoiceId;
- for (const invoiceOut of invoices) {
- try {
- const tx = await Self.beginTransaction({});
- const myOptions = {transaction: tx};
-
- invoiceId = invoiceOut.id;
-
- const args = {
- reference: invoiceOut.ref,
- recipientId: invoiceOut.clientFk,
- recipient: invoiceOut.recipient,
- replyTo: invoiceOut.salesPersonEmail
- };
-
- const invoiceReport = new Report('invoice', args);
- const stream = await invoiceReport.toPdfStream();
-
- const issued = invoiceOut.issued;
- const year = issued.getFullYear().toString();
- const month = (issued.getMonth() + 1).toString();
- const day = issued.getDate().toString();
-
- const fileName = `${year}${invoiceOut.ref}.pdf`;
-
- // Store invoice
- storage.write(stream, {
- type: 'invoice',
- path: `${year}/${month}/${day}`,
- fileName: fileName
- });
-
- await Self.rawSql(`
- UPDATE invoiceOut
- SET hasPdf = true
- WHERE id = ?`,
- [invoiceOut.id], myOptions);
-
- const isToBeMailed = invoiceOut.recipient && invoiceOut.salesPersonFk && invoiceOut.isToBeMailed;
-
- if (isToBeMailed) {
- const mailOptions = {
- overrideAttachments: true,
- attachments: []
- };
-
- const invoiceAttachment = {
- filename: fileName,
- content: stream
- };
-
- if (invoiceOut.serial == 'E' && invoiceOut.companyCode == 'VNL') {
- const exportation = new Report('exportation', args);
- const stream = await exportation.toPdfStream();
- const fileName = `CITES-${invoiceOut.ref}.pdf`;
-
- mailOptions.attachments.push({
- filename: fileName,
- content: stream
- });
- }
-
- mailOptions.attachments.push(invoiceAttachment);
-
- const email = new Email('invoice', args);
- await email.send(mailOptions);
- }
- // Update queue status
- const date = new Date();
- await Self.rawSql(`
- UPDATE invoiceOutQueue
- SET status = "printed",
- printed = ?
- WHERE invoiceFk = ?`,
- [date, invoiceOut.id], myOptions);
-
- await tx.commit();
- } catch (error) {
- await tx.rollback();
-
- await Self.rawSql(`
- UPDATE invoiceOutQueue
- SET status = ?
- WHERE invoiceFk = ?`,
- [error.message, invoiceId]);
-
- throw e;
- }
- }
-
- return {
- message: 'Success'
- };
- };
-};
diff --git a/modules/invoiceOut/back/methods/invoiceOut/specs/createPdf.spec.js b/modules/invoiceOut/back/methods/invoiceOut/specs/createPdf.spec.js
index 7600f065f..ee3310368 100644
--- a/modules/invoiceOut/back/methods/invoiceOut/specs/createPdf.spec.js
+++ b/modules/invoiceOut/back/methods/invoiceOut/specs/createPdf.spec.js
@@ -1,7 +1,6 @@
const models = require('vn-loopback/server/server').models;
const LoopBackContext = require('loopback-context');
-const fs = require('fs-extra');
-const axios = require('axios');
+const print = require('vn-print');
describe('InvoiceOut createPdf()', () => {
const userId = 1;
@@ -12,26 +11,20 @@ describe('InvoiceOut createPdf()', () => {
const ctx = {req: activeCtx};
it('should create a new PDF file and set true the hasPdf property', async() => {
+ pending('https://redmine.verdnatura.es/issues/4875');
const invoiceId = 1;
spyOn(LoopBackContext, 'getCurrentContext').and.returnValue({
active: activeCtx
});
- const response = {
- data: {
- pipe: () => {},
- on: () => {},
+
+ spyOn(print, 'Report').and.returnValue({
+ toPdfStream: () => {
+ return '';
}
- };
- spyOn(axios, 'get').and.returnValue(new Promise(resolve => resolve(response)));
- spyOn(models.InvoiceContainer, 'container').and.returnValue({
- client: {root: '/path'}
- });
- spyOn(fs, 'mkdir').and.returnValue(true);
- spyOn(fs, 'createWriteStream').and.returnValue({
- on: (event, cb) => cb(),
- end: () => {}
});
+ spyOn(print.storage, 'write').and.returnValue(true);
+
const tx = await models.InvoiceOut.beginTransaction({});
const options = {transaction: tx};
diff --git a/modules/invoiceOut/back/methods/invoiceOut/specs/downloadZip.spec.js b/modules/invoiceOut/back/methods/invoiceOut/specs/downloadZip.spec.js
new file mode 100644
index 000000000..4d1833635
--- /dev/null
+++ b/modules/invoiceOut/back/methods/invoiceOut/specs/downloadZip.spec.js
@@ -0,0 +1,54 @@
+const models = require('vn-loopback/server/server').models;
+const UserError = require('vn-loopback/util/user-error');
+
+describe('InvoiceOut downloadZip()', () => {
+ const userId = 9;
+ const invoiceIds = '1,2';
+ const ctx = {
+ req: {
+
+ accessToken: {userId: userId},
+ headers: {origin: 'http://localhost:5000'},
+ }
+ };
+
+ it('should return part of link to dowloand the zip', async() => {
+ pending('https://redmine.verdnatura.es/issues/4875');
+ const tx = await models.InvoiceOut.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const result = await models.InvoiceOut.downloadZip(ctx, invoiceIds, options);
+
+ expect(result).toBeDefined();
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return an error if the size of the files is too large', async() => {
+ const tx = await models.InvoiceOut.beginTransaction({});
+
+ let error;
+ try {
+ const options = {transaction: tx};
+ const zipConfig = {
+ maxSize: 0
+ };
+ await models.ZipConfig.create(zipConfig, options);
+
+ await models.InvoiceOut.downloadZip(ctx, invoiceIds, options);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ error = e;
+ }
+
+ expect(error).toEqual(new UserError(`Files are too large`));
+ });
+});
diff --git a/modules/invoiceOut/back/methods/invoiceOut/specs/filter.spec.js b/modules/invoiceOut/back/methods/invoiceOut/specs/filter.spec.js
index ededc5679..7b5886236 100644
--- a/modules/invoiceOut/back/methods/invoiceOut/specs/filter.spec.js
+++ b/modules/invoiceOut/back/methods/invoiceOut/specs/filter.spec.js
@@ -51,6 +51,7 @@ describe('InvoiceOut filter()', () => {
});
it('should return the invoice out matching hasPdf', async() => {
+ pending('https://redmine.verdnatura.es/issues/4875');
const tx = await models.InvoiceOut.beginTransaction({});
const options = {transaction: tx};
@@ -64,7 +65,7 @@ describe('InvoiceOut filter()', () => {
const invoiceOut = await models.InvoiceOut.findById(1, null, options);
await invoiceOut.updateAttribute('hasPdf', true, options);
- const result = await models.InvoiceOut.filter(ctx, {}, options);
+ const result = await models.InvoiceOut.filter(ctx, {id: invoiceOut.id}, options);
expect(result.length).toEqual(1);
diff --git a/modules/invoiceOut/back/methods/invoiceOut/specs/globalInvoicing.spec.js b/modules/invoiceOut/back/methods/invoiceOut/specs/globalInvoicing.spec.js
deleted file mode 100644
index f7546b72e..000000000
--- a/modules/invoiceOut/back/methods/invoiceOut/specs/globalInvoicing.spec.js
+++ /dev/null
@@ -1,43 +0,0 @@
-const models = require('vn-loopback/server/server').models;
-
-describe('InvoiceOut globalInvoicing()', () => {
- const userId = 1;
- const companyFk = 442;
- const clientId = 1101;
- const invoicedTicketId = 8;
- const invoiceSerial = 'A';
- const activeCtx = {
- accessToken: {userId: userId},
- __: value => {
- return value;
- }
- };
- const ctx = {req: activeCtx};
-
- it('should make a global invoicing', async() => {
- spyOn(models.InvoiceOut, 'createPdf').and.returnValue(new Promise(resolve => resolve(true)));
-
- const tx = await models.InvoiceOut.beginTransaction({});
- const options = {transaction: tx};
-
- try {
- ctx.args = {
- invoiceDate: new Date(),
- maxShipped: new Date(),
- fromClientId: clientId,
- toClientId: 1106,
- companyFk: companyFk
- };
- const result = await models.InvoiceOut.globalInvoicing(ctx, options);
- const ticket = await models.Ticket.findById(invoicedTicketId, null, options);
-
- expect(result.length).toBeGreaterThan(0);
- expect(ticket.refFk).toContain(invoiceSerial);
-
- await tx.rollback();
- } catch (e) {
- await tx.rollback();
- throw e;
- }
- });
-});
diff --git a/modules/invoiceOut/back/methods/invoiceOut/specs/invoiceClient.spec.js b/modules/invoiceOut/back/methods/invoiceOut/specs/invoiceClient.spec.js
new file mode 100644
index 000000000..5f890de26
--- /dev/null
+++ b/modules/invoiceOut/back/methods/invoiceOut/specs/invoiceClient.spec.js
@@ -0,0 +1,56 @@
+const models = require('vn-loopback/server/server').models;
+
+describe('InvoiceOut invoiceClient()', () => {
+ const userId = 1;
+ const clientId = 1101;
+ const addressId = 121;
+ const companyFk = 442;
+ const minShipped = new Date();
+ minShipped.setFullYear(minShipped.getFullYear() - 1);
+ minShipped.setMonth(1);
+ minShipped.setDate(1);
+ minShipped.setHours(0, 0, 0, 0);
+ const invoiceSerial = 'A';
+ const activeCtx = {
+ getLocale: () => {
+ return 'en';
+ },
+ accessToken: {userId: userId},
+ __: value => {
+ return value;
+ }
+ };
+ const ctx = {req: activeCtx};
+
+ it('should make a global invoicing', async() => {
+ spyOn(models.InvoiceOut, 'createPdf').and.returnValue(new Promise(resolve => resolve(true)));
+ spyOn(models.InvoiceOut, 'invoiceEmail');
+
+ const tx = await models.InvoiceOut.beginTransaction({});
+ const options = {transaction: tx};
+
+ try {
+ ctx.args = {
+ clientId: clientId,
+ addressId: addressId,
+ invoiceDate: new Date(),
+ maxShipped: new Date(),
+ companyFk: companyFk,
+ minShipped: minShipped
+ };
+ const invoiceOutId = await models.InvoiceOut.invoiceClient(ctx, options);
+ const invoiceOut = await models.InvoiceOut.findById(invoiceOutId, null, options);
+ const [firstTicket] = await models.Ticket.find({
+ where: {refFk: invoiceOut.ref}
+ }, options);
+
+ expect(invoiceOutId).toBeGreaterThan(0);
+ expect(firstTicket.refFk).toContain(invoiceSerial);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+});
diff --git a/modules/invoiceOut/back/model-config.json b/modules/invoiceOut/back/model-config.json
index d52f79477..04933c4f0 100644
--- a/modules/invoiceOut/back/model-config.json
+++ b/modules/invoiceOut/back/model-config.json
@@ -22,5 +22,8 @@
},
"TaxType": {
"dataSource": "vn"
+ },
+ "ZipConfig": {
+ "dataSource": "vn"
}
}
diff --git a/modules/invoiceOut/back/models/invoice-out.js b/modules/invoiceOut/back/models/invoice-out.js
index 5af64de2b..88adae2ef 100644
--- a/modules/invoiceOut/back/models/invoice-out.js
+++ b/modules/invoiceOut/back/models/invoice-out.js
@@ -3,15 +3,16 @@ module.exports = Self => {
require('../methods/invoiceOut/summary')(Self);
require('../methods/invoiceOut/getTickets')(Self);
require('../methods/invoiceOut/download')(Self);
+ require('../methods/invoiceOut/downloadZip')(Self);
require('../methods/invoiceOut/delete')(Self);
require('../methods/invoiceOut/book')(Self);
require('../methods/invoiceOut/createPdf')(Self);
require('../methods/invoiceOut/createManualInvoice')(Self);
- require('../methods/invoiceOut/globalInvoicing')(Self);
+ require('../methods/invoiceOut/clientsToInvoice')(Self);
+ require('../methods/invoiceOut/invoiceClient')(Self);
require('../methods/invoiceOut/refund')(Self);
require('../methods/invoiceOut/invoiceEmail')(Self);
require('../methods/invoiceOut/exportationPdf')(Self);
- require('../methods/invoiceOut/sendQueued')(Self);
require('../methods/invoiceOut/invoiceCsv')(Self);
require('../methods/invoiceOut/invoiceCsvEmail')(Self);
};
diff --git a/modules/invoiceOut/back/models/zip-config.json b/modules/invoiceOut/back/models/zip-config.json
new file mode 100644
index 000000000..17fe8a1fa
--- /dev/null
+++ b/modules/invoiceOut/back/models/zip-config.json
@@ -0,0 +1,25 @@
+{
+ "name": "ZipConfig",
+ "base": "VnModel",
+ "options": {
+ "mysql": {
+ "table": "zipConfig"
+ }
+ },
+ "properties": {
+ "id": {
+ "type": "number",
+ "id": true,
+ "description": "Identifier"
+ },
+ "maxSize": {
+ "type": "number"
+ }
+ },
+ "acls": [{
+ "accessType": "READ",
+ "principalType": "ROLE",
+ "principalId": "$everyone",
+ "permission": "ALLOW"
+ }]
+}
\ No newline at end of file
diff --git a/modules/invoiceOut/front/descriptor-menu/index.html b/modules/invoiceOut/front/descriptor-menu/index.html
index 1c0919288..389fcf81b 100644
--- a/modules/invoiceOut/front/descriptor-menu/index.html
+++ b/modules/invoiceOut/front/descriptor-menu/index.html
@@ -17,12 +17,12 @@
target="_blank"
name="showInvoicePdf"
translate>
- Show as PDF
+ as PDF
- Show as CSV
+ as CSV
diff --git a/modules/invoiceOut/front/descriptor-menu/locale/es.yml b/modules/invoiceOut/front/descriptor-menu/locale/es.yml
index 488c1a3f8..df0ba57cf 100644
--- a/modules/invoiceOut/front/descriptor-menu/locale/es.yml
+++ b/modules/invoiceOut/front/descriptor-menu/locale/es.yml
@@ -2,6 +2,8 @@ Show invoice...: Ver factura...
Send invoice...: Enviar factura...
Send PDF invoice: Enviar factura en PDF
Send CSV invoice: Enviar factura en CSV
+as PDF: como PDF
+as CSV: como CSV
Delete Invoice: Eliminar factura
Clone Invoice: Clonar factura
Book invoice: Asentar factura
diff --git a/modules/invoiceOut/front/index/global-invoicing/index.html b/modules/invoiceOut/front/index/global-invoicing/index.html
index 3d245b8d8..c2d1c4304 100644
--- a/modules/invoiceOut/front/index/global-invoicing/index.html
+++ b/modules/invoiceOut/front/index/global-invoicing/index.html
@@ -13,13 +13,24 @@
url="Companies"
data="companies"
order="code">
-
+
+ ng-if="$ctrl.packageInvoicing">
-
- Adding invoices to queue...
+
+ {{'Calculating packages to invoice...' | translate}}
+
+
+
+
+
+
+ {{'Id Client' | translate}}: {{$ctrl.currentClientId}}
+ {{'of' | translate}} {{::$ctrl.lastClientId}}
+
@@ -35,10 +46,24 @@
+
+
+
+
+
+
@@ -48,6 +73,7 @@
url="Clients"
label="To client"
search-function="{or: [{id: $search}, {name: {like: '%'+$search+'%'}}]}"
+ order="id"
show-field="name"
value-field="id"
ng-model="$ctrl.invoice.toClientId">
@@ -66,5 +92,5 @@
- Invoice
+ Invoice {{$ctrl.isInvoicing}}
\ No newline at end of file
diff --git a/modules/invoiceOut/front/index/global-invoicing/index.js b/modules/invoiceOut/front/index/global-invoicing/index.js
index 5e522f23d..f772a4936 100644
--- a/modules/invoiceOut/front/index/global-invoicing/index.js
+++ b/modules/invoiceOut/front/index/global-invoicing/index.js
@@ -5,11 +5,10 @@ import './style.scss';
class Controller extends Dialog {
constructor($element, $, $transclude) {
super($element, $, $transclude);
-
- this.isInvoicing = false;
this.invoice = {
maxShipped: new Date()
};
+ this.clientsNumber = 'allClients';
}
$onInit() {
@@ -46,6 +45,39 @@ class Controller extends Dialog {
this.invoice.companyFk = value;
}
+ restartValues() {
+ this.lastClientId = null;
+ this.$.invoiceButton.disabled = false;
+ }
+
+ cancelRequest() {
+ this.canceler = this.$q.defer();
+ return {timeout: this.canceler.promise};
+ }
+
+ invoiceOut(invoice, clientsAndAddresses) {
+ const [clientAndAddress] = clientsAndAddresses;
+ if (!clientAndAddress) return;
+ this.currentClientId = clientAndAddress.clientId;
+ const params = {
+ clientId: clientAndAddress.clientId,
+ addressId: clientAndAddress.addressId,
+ invoiceDate: invoice.invoiceDate,
+ maxShipped: invoice.maxShipped,
+ companyFk: invoice.companyFk,
+ minShipped: invoice.minShipped,
+
+ };
+
+ const options = this.cancelRequest();
+
+ return this.$http.post(`InvoiceOuts/invoiceClient`, params, options)
+ .then(() => {
+ clientsAndAddresses.shift();
+ return this.invoiceOut(invoice, clientsAndAddresses);
+ });
+ }
+
responseHandler(response) {
try {
if (response !== 'accept')
@@ -57,14 +89,30 @@ class Controller extends Dialog {
if (!this.invoice.fromClientId || !this.invoice.toClientId)
throw new Error('Choose a valid clients range');
- this.isInvoicing = true;
- return this.$http.post(`InvoiceOuts/globalInvoicing`, this.invoice)
+ this.on('close', () => {
+ if (this.canceler) this.canceler.resolve();
+ this.vnApp.showSuccess(this.$t('Data saved!'));
+ });
+
+ this.$.invoiceButton.disabled = true;
+ this.packageInvoicing = true;
+ const options = this.cancelRequest();
+
+ this.$http.post(`InvoiceOuts/clientsToInvoice`, this.invoice, options)
+ .then(res => {
+ this.packageInvoicing = false;
+ const invoice = res.data.invoice;
+ const clientsAndAddresses = res.data.clientsAndAddresses;
+ if (!clientsAndAddresses.length) return super.responseHandler(response);
+ this.lastClientId = clientsAndAddresses[clientsAndAddresses.length - 1].clientId;
+ return this.invoiceOut(invoice, clientsAndAddresses);
+ })
.then(() => super.responseHandler(response))
.then(() => this.vnApp.showSuccess(this.$t('Data saved!')))
- .finally(() => this.isInvoicing = false);
+ .finally(() => this.restartValues());
} catch (e) {
this.vnApp.showError(this.$t(e.message));
- this.isInvoicing = false;
+ this.restartValues();
return false;
}
}
diff --git a/modules/invoiceOut/front/index/global-invoicing/index.spec.js b/modules/invoiceOut/front/index/global-invoicing/index.spec.js
index 916364007..e88b0b1d4 100644
--- a/modules/invoiceOut/front/index/global-invoicing/index.spec.js
+++ b/modules/invoiceOut/front/index/global-invoicing/index.spec.js
@@ -19,6 +19,7 @@ describe('InvoiceOut', () => {
}
};
controller = $componentController('vnInvoiceOutGlobalInvoicing', {$element, $scope, $transclude});
+ controller.$.invoiceButton = {disabled: false};
}));
describe('getMinClientId()', () => {
@@ -87,14 +88,26 @@ describe('InvoiceOut', () => {
it('should make an http POST query and then call to the showSuccess() method', () => {
jest.spyOn(controller.vnApp, 'showSuccess');
+ const minShipped = new Date();
+ minShipped.setFullYear(minShipped.getFullYear() - 1);
+ minShipped.setMonth(1);
+ minShipped.setDate(1);
+ minShipped.setHours(0, 0, 0, 0);
controller.invoice = {
invoiceDate: new Date(),
maxShipped: new Date(),
fromClientId: 1101,
- toClientId: 1101
+ toClientId: 1101,
+ companyFk: 442,
+ minShipped: minShipped
+ };
+ const response = {
+ clientsAndAddresses: [{clientId: 1101, addressId: 121}],
+ invoice: controller.invoice
};
- $httpBackend.expect('POST', `InvoiceOuts/globalInvoicing`).respond({id: 1});
+ $httpBackend.expect('POST', `InvoiceOuts/clientsToInvoice`).respond(response);
+ $httpBackend.expect('POST', `InvoiceOuts/invoiceClient`).respond({id: 1});
controller.responseHandler('accept');
$httpBackend.flush();
diff --git a/modules/invoiceOut/front/index/global-invoicing/locale/es.yml b/modules/invoiceOut/front/index/global-invoicing/locale/es.yml
index 1a6e15656..af151684f 100644
--- a/modules/invoiceOut/front/index/global-invoicing/locale/es.yml
+++ b/modules/invoiceOut/front/index/global-invoicing/locale/es.yml
@@ -6,4 +6,9 @@ Invoice date: Fecha de factura
From client: Desde el cliente
To client: Hasta el cliente
Invoice date and the max date should be filled: La fecha de factura y la fecha límite deben rellenarse
-Choose a valid clients range: Selecciona un rango válido de clientes
\ No newline at end of file
+Choose a valid clients range: Selecciona un rango válido de clientes
+of: de
+Id Client: Id Cliente
+All clients: Todos los clientes
+Clients range: Rango de clientes
+Calculating packages to invoice...: Calculando paquetes a factura...
\ No newline at end of file
diff --git a/modules/invoiceOut/front/index/index.html b/modules/invoiceOut/front/index/index.html
index d970bd15a..e2cf2120a 100644
--- a/modules/invoiceOut/front/index/index.html
+++ b/modules/invoiceOut/front/index/index.html
@@ -4,10 +4,24 @@
+
+
+
+
+
+
+
+
Reference
Issued
Amount
@@ -16,13 +30,18 @@
Company
Due date
-
+
+
+
+
{{::invoiceOut.ref | dashIfEmpty}}
{{::invoiceOut.issued | date:'dd/MM/yyyy' | dashIfEmpty}}
{{::invoiceOut.amount | currency: 'EUR': 2 | dashIfEmpty}}
@@ -36,15 +55,6 @@
{{::invoiceOut.created | date:'dd/MM/yyyy' | dashIfEmpty}}
{{::invoiceOut.companyCode | dashIfEmpty}}
{{::invoiceOut.dued | date:'dd/MM/yyyy' | dashIfEmpty}}
-
-
-
-
{{ticket.shipped | date: 'dd/MM/yyyy' | dashIfEmpty}}
- {{ticket.totalWithVat | currency: 'EUR': 2}}
+ {{ticket.totalWithVat | currency: 'EUR': 2}}
diff --git a/modules/item/back/methods/item-shelving/deleteItemShelvings.js b/modules/item/back/methods/item-shelving/deleteItemShelvings.js
new file mode 100644
index 000000000..f534b4e9a
--- /dev/null
+++ b/modules/item/back/methods/item-shelving/deleteItemShelvings.js
@@ -0,0 +1,51 @@
+module.exports = Self => {
+ Self.remoteMethod('deleteItemShelvings', {
+ description: 'Deletes the selected item shelvings',
+ accessType: 'WRITE',
+ accepts: [{
+ arg: 'itemShelvingIds',
+ type: ['number'],
+ required: true,
+ description: 'The itemShelving ids to delete'
+ }],
+ returns: {
+ type: ['object'],
+ root: true
+ },
+ http: {
+ path: `/deleteItemShelvings`,
+ verb: 'POST'
+ }
+ });
+
+ Self.deleteItemShelvings = async(itemShelvingIds, options) => {
+ const models = Self.app.models;
+ const myOptions = {};
+ let tx;
+
+ if (typeof options == 'object')
+ Object.assign(myOptions, options);
+
+ if (!myOptions.transaction) {
+ tx = await Self.beginTransaction({});
+ myOptions.transaction = tx;
+ }
+
+ try {
+ const promises = [];
+ for (let itemShelvingId of itemShelvingIds) {
+ const itemShelvingToDelete = models.ItemShelving.destroyById(itemShelvingId, myOptions);
+ promises.push(itemShelvingToDelete);
+ }
+
+ const deletedItemShelvings = await Promise.all(promises);
+
+ if (tx) await tx.commit();
+
+ return deletedItemShelvings;
+ } catch (e) {
+ if (tx) await tx.rollback();
+ throw e;
+ }
+ };
+};
diff --git a/modules/item/back/methods/item-shelving/specs/deleteItemShelvings.spec.js b/modules/item/back/methods/item-shelving/specs/deleteItemShelvings.spec.js
new file mode 100644
index 000000000..b4113d7cf
--- /dev/null
+++ b/modules/item/back/methods/item-shelving/specs/deleteItemShelvings.spec.js
@@ -0,0 +1,21 @@
+const models = require('vn-loopback/server/server').models;
+
+describe('ItemShelving deleteItemShelvings()', () => {
+ it('should return the deleted itemShelvings', async() => {
+ const tx = await models.Order.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const itemShelvingIds = [1, 2];
+ const result = await models.ItemShelving.deleteItemShelvings(itemShelvingIds, options);
+
+ expect(result.length).toEqual(2);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+});
diff --git a/modules/item/back/methods/item/new.js b/modules/item/back/methods/item/new.js
index 0771b6b14..fae37836f 100644
--- a/modules/item/back/methods/item/new.js
+++ b/modules/item/back/methods/item/new.js
@@ -49,6 +49,10 @@ module.exports = Self => {
const provisionalName = params.provisionalName;
delete params.provisionalName;
+ const itemType = await models.ItemType.findById(params.typeFk, myOptions);
+
+ params.isLaid = itemType.isLaid;
+
const item = await models.Item.create(params, myOptions);
const typeTags = await models.ItemTypeTag.find({
diff --git a/modules/item/back/methods/item/specs/new.spec.js b/modules/item/back/methods/item/specs/new.spec.js
index 049ad0ff2..7364faa7d 100644
--- a/modules/item/back/methods/item/specs/new.spec.js
+++ b/modules/item/back/methods/item/specs/new.spec.js
@@ -15,6 +15,11 @@ describe('item new()', () => {
};
let item = await models.Item.new(itemParams, options);
+
+ let itemType = await models.ItemType.findById(item.typeFk, options);
+
+ item.isLaid = itemType.isLaid;
+
const temporalNameTag = await models.Tag.findOne({where: {name: 'Nombre temporal'}}, options);
const temporalName = await models.ItemTag.findOne({
@@ -26,9 +31,14 @@ describe('item new()', () => {
item = await models.Item.findById(item.id, null, options);
+ itemType = await models.ItemType.findById(item.typeFk, options);
+
+ item.isLaid = itemType.isLaid;
+
expect(item.intrastatFk).toEqual(5080000);
expect(item.originFk).toEqual(1);
expect(item.typeFk).toEqual(2);
+ expect(item.isLaid).toBeFalse();
expect(item.name).toEqual('planta');
expect(temporalName.value).toEqual('planta');
diff --git a/modules/item/back/model-config.json b/modules/item/back/model-config.json
index 9737d26fc..40d73f1a6 100644
--- a/modules/item/back/model-config.json
+++ b/modules/item/back/model-config.json
@@ -53,6 +53,9 @@
"ItemShelvingSale": {
"dataSource": "vn"
},
+ "ItemShelvingPlacementSupplyStock": {
+ "dataSource": "vn"
+ },
"ItemImageQueue": {
"dataSource": "vn"
},
diff --git a/modules/item/back/models/item-shelving-placement-supply.json b/modules/item/back/models/item-shelving-placement-supply.json
new file mode 100644
index 000000000..a54013e05
--- /dev/null
+++ b/modules/item/back/models/item-shelving-placement-supply.json
@@ -0,0 +1,36 @@
+{
+ "name": "ItemShelvingPlacementSupplyStock",
+ "base": "VnModel",
+ "options": {
+ "mysql": {
+ "table": "itemShelvingPlacementSupplyStock"
+ }
+ },
+ "properties": {
+ "itemShelvingFk": {
+ "type": "number",
+ "id": true
+ },
+ "created": {
+ "type": "date"
+ },
+ "itemFk": {
+ "type": "number"
+ },
+ "longName": {
+ "type": "string"
+ },
+ "parking": {
+ "type": "string"
+ },
+ "shelving": {
+ "type": "string"
+ },
+ "packing": {
+ "type": "number"
+ },
+ "stock": {
+ "type": "number"
+ }
+ }
+}
\ No newline at end of file
diff --git a/modules/item/back/models/item-shelving.js b/modules/item/back/models/item-shelving.js
new file mode 100644
index 000000000..5f372a3be
--- /dev/null
+++ b/modules/item/back/models/item-shelving.js
@@ -0,0 +1,3 @@
+module.exports = Self => {
+ require('../methods/item-shelving/deleteItemShelvings')(Self);
+};
diff --git a/modules/item/back/models/item-type.json b/modules/item/back/models/item-type.json
index 74cdf3fc8..c5c920b2f 100644
--- a/modules/item/back/models/item-type.json
+++ b/modules/item/back/models/item-type.json
@@ -26,6 +26,9 @@
},
"isUnconventionalSize": {
"type": "number"
+ },
+ "isLaid": {
+ "type": "boolean"
}
},
"relations": {
diff --git a/modules/item/back/models/item.json b/modules/item/back/models/item.json
index f9be2b6b1..2f58c30a9 100644
--- a/modules/item/back/models/item.json
+++ b/modules/item/back/models/item.json
@@ -144,8 +144,8 @@
"packingShelve": {
"type": "number"
},
- "weightByPiece": {
- "type": "number"
+ "isLaid": {
+ "type": "boolean"
}
},
"relations": {
diff --git a/modules/item/front/basic-data/index.html b/modules/item/front/basic-data/index.html
index 8d1afe4e1..fd21ab240 100644
--- a/modules/item/front/basic-data/index.html
+++ b/modules/item/front/basic-data/index.html
@@ -1,6 +1,6 @@
-
-
@@ -95,7 +95,7 @@
@@ -108,15 +108,15 @@
@@ -124,10 +124,17 @@
+
+
-
@@ -225,12 +232,12 @@
-
\ No newline at end of file
+
diff --git a/modules/item/front/diary/index.js b/modules/item/front/diary/index.js
index 6d912ebe8..c997ea491 100644
--- a/modules/item/front/diary/index.js
+++ b/modules/item/front/diary/index.js
@@ -27,7 +27,7 @@ class Controller extends Section {
if (this.$params.warehouseFk)
this.warehouseFk = this.$params.warehouseFk;
else if (value)
- this.warehouseFk = value.itemType.warehouseFk;
+ this.warehouseFk = this.vnConfig.warehouseFk;
if (this.$params.lineFk)
this.lineFk = this.$params.lineFk;
diff --git a/modules/item/front/diary/index.spec.js b/modules/item/front/diary/index.spec.js
index 78dae0883..a80fbfc69 100644
--- a/modules/item/front/diary/index.spec.js
+++ b/modules/item/front/diary/index.spec.js
@@ -19,7 +19,8 @@ describe('Item', () => {
describe('set item()', () => {
it('should set warehouseFk property based on itemType warehouseFk', () => {
jest.spyOn(controller.$, '$applyAsync');
- controller.item = {id: 1, itemType: {warehouseFk: 1}};
+ controller.vnConfig = {warehouseFk: 1};
+ controller.item = {id: 1};
expect(controller.$.$applyAsync).toHaveBeenCalledWith(jasmine.any(Function));
$scope.$apply();
diff --git a/modules/item/front/fixed-price/index.html b/modules/item/front/fixed-price/index.html
index 8127a76dc..9498bf96f 100644
--- a/modules/item/front/fixed-price/index.html
+++ b/modules/item/front/fixed-price/index.html
@@ -23,9 +23,9 @@
-
@@ -34,18 +34,18 @@
Item ID
-
+
Description
Warehouse
-
P.P.U.
-
P.P.P.
@@ -170,7 +170,7 @@
-
+
-
\ No newline at end of file
+
diff --git a/modules/item/front/fixed-price/index.js b/modules/item/front/fixed-price/index.js
index b84c2cc2d..89ce0b172 100644
--- a/modules/item/front/fixed-price/index.js
+++ b/modules/item/front/fixed-price/index.js
@@ -12,14 +12,6 @@ export default class Controller extends Section {
},
defaultSearch: true,
columns: [
- {
- field: 'itemName',
- autocomplete: {
- url: 'Items',
- showField: 'name',
- valueField: 'id'
- }
- },
{
field: 'warehouseFk',
autocomplete: {
@@ -105,8 +97,8 @@ export default class Controller extends Section {
exprBuilder(param, value) {
switch (param) {
- case 'itemName':
- return {'i.id': value};
+ case 'name':
+ return {'i.name': {like: `%${value}%`}};
case 'itemFk':
case 'warehouseFk':
case 'rate2':
diff --git a/modules/item/front/index.js b/modules/item/front/index.js
index 6a8d1b3b7..d2ffcc8fb 100644
--- a/modules/item/front/index.js
+++ b/modules/item/front/index.js
@@ -24,3 +24,5 @@ import './waste/detail';
import './fixed-price';
import './fixed-price-search-panel';
import './item-type';
+import './item-shelving';
+
diff --git a/modules/item/front/item-shelving/index.html b/modules/item/front/item-shelving/index.html
new file mode 100644
index 000000000..fa7a70544
--- /dev/null
+++ b/modules/item/front/item-shelving/index.html
@@ -0,0 +1,118 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Created
+
+
+ Item
+
+
+ Concept
+
+
+ Parking
+
+
+ Shelving
+
+
+ Etiqueta
+
+
+ Packing
+
+
+
+
+
+
+
+
+
+ {{::itemShelvingPlacementSupplyStock.created | date: 'dd/MM/yyyy'}}
+
+ {{::itemShelvingPlacementSupplyStock.itemFk}}
+
+
+
+ {{itemShelvingPlacementSupplyStock.longName}}
+
+
+
+ {{::itemShelvingPlacementSupplyStock.parking}}
+
+
+ {{::itemShelvingPlacementSupplyStock.shelving}}
+
+
+ {{(itemShelvingPlacementSupplyStock.stock / itemShelvingPlacementSupplyStock.packing).toFixed(2)}}
+
+
+ {{::itemShelvingPlacementSupplyStock.packing}}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/modules/item/front/item-shelving/index.js b/modules/item/front/item-shelving/index.js
new file mode 100644
index 000000000..b8584039b
--- /dev/null
+++ b/modules/item/front/item-shelving/index.js
@@ -0,0 +1,89 @@
+import ngModule from '../module';
+import Section from 'salix/components/section';
+
+export default class Controller extends Section {
+ constructor($element, $) {
+ super($element, $);
+
+ this.smartTableOptions = {
+ activeButtons: {
+ search: true
+ },
+ columns: [
+ {
+ field: 'parking',
+ autocomplete: {
+ url: 'Parkings',
+ showField: 'code',
+ valueField: 'code'
+ }
+ },
+ {
+ field: 'shelving',
+ autocomplete: {
+ url: 'Shelvings',
+ showField: 'code',
+ valueField: 'code'
+ }
+ },
+ {
+ field: 'created',
+ searchable: false
+ },
+ {
+ field: 'itemFk',
+ searchable: false
+ },
+ {
+ field: 'longName',
+ searchable: false
+ }
+ ]
+ };
+ }
+
+ get checked() {
+ const itemShelvings = this.$.model.data || [];
+ const checkedLines = [];
+ for (let itemShelving of itemShelvings) {
+ if (itemShelving.checked)
+ checkedLines.push(itemShelving.itemShelvingFk);
+ }
+
+ return checkedLines;
+ }
+
+ calculateTotals() {
+ this.labelTotal = 0;
+ const itemShelvings = this.$.model.data || [];
+ itemShelvings.forEach(itemShelving => {
+ const label = itemShelving.stock / itemShelving.packing;
+ this.labelTotal += label;
+ });
+ }
+
+ onRemove() {
+ const params = {itemShelvingIds: this.checked};
+ const query = `ItemShelvings/deleteItemShelvings`;
+ this.$http.post(query, params)
+ .then(() => {
+ this.vnApp.showSuccess(this.$t('ItemShelvings removed'));
+ this.$.model.refresh();
+ });
+ }
+
+ exprBuilder(param, value) {
+ switch (param) {
+ case 'parking':
+ case 'shelving':
+ case 'label':
+ case 'packing':
+ return {[param]: value};
+ }
+ }
+}
+
+ngModule.vnComponent('vnItemShelving', {
+ template: require('./index.html'),
+ controller: Controller
+});
diff --git a/modules/item/front/item-shelving/index.spec.js b/modules/item/front/item-shelving/index.spec.js
new file mode 100644
index 000000000..55df1c27d
--- /dev/null
+++ b/modules/item/front/item-shelving/index.spec.js
@@ -0,0 +1,81 @@
+import './index';
+import crudModel from 'core/mocks/crud-model';
+
+describe('item shelving', () => {
+ describe('Component vnItemShelving', () => {
+ let controller;
+ let $httpBackend;
+
+ beforeEach(ngModule('item'));
+
+ beforeEach(inject(($componentController, _$httpBackend_) => {
+ $httpBackend = _$httpBackend_;
+ const $element = angular.element(' ');
+ controller = $componentController('vnItemShelving', {$element});
+ controller.$.model = crudModel;
+ controller.$.model.data = [
+ {itemShelvingFk: 1, packing: 10, stock: 1},
+ {itemShelvingFk: 2, packing: 12, stock: 5},
+ {itemShelvingFk: 4, packing: 20, stock: 10}
+ ];
+ const modelData = controller.$.model.data;
+ modelData[0].checked = true;
+ modelData[1].checked = true;
+ }));
+
+ describe('checked() getter', () => {
+ it('should return a the selected rows', () => {
+ const result = controller.checked;
+
+ expect(result).toEqual(expect.arrayContaining([1, 2]));
+ });
+ });
+
+ describe('calculateTotals()', () => {
+ it('should calculate the total of labels', () => {
+ controller.calculateTotals();
+
+ expect(controller.labelTotal).toEqual(1.0166666666666666);
+ });
+ });
+
+ describe('onRemove()', () => {
+ it('shoud remove the selected lines', () => {
+ jest.spyOn(controller.$.model, 'refresh');
+ const expectedParams = {itemShelvingIds: [1, 2]};
+
+ $httpBackend.expectPOST('ItemShelvings/deleteItemShelvings', expectedParams).respond(200);
+ controller.onRemove();
+ $httpBackend.flush();
+
+ expect(controller.$.model.refresh).toHaveBeenCalled();
+ });
+ });
+
+ describe('exprBuilder()', () => {
+ it('should search by parking', () => {
+ const expr = controller.exprBuilder('parking', '700-01');
+
+ expect(expr).toEqual({'parking': '700-01'});
+ });
+
+ it('should search by shelving', () => {
+ const expr = controller.exprBuilder('shelving', 'AAA');
+
+ expect(expr).toEqual({'shelving': 'AAA'});
+ });
+
+ it('should search by label', () => {
+ const expr = controller.exprBuilder('label', 0.17);
+
+ expect(expr).toEqual({'label': 0.17});
+ });
+
+ it('should search by packing', () => {
+ const expr = controller.exprBuilder('packing', 10);
+
+ expect(expr).toEqual({'packing': 10});
+ });
+ });
+ });
+});
diff --git a/modules/item/front/item-shelving/locale/es.yml b/modules/item/front/item-shelving/locale/es.yml
new file mode 100644
index 000000000..006363cfa
--- /dev/null
+++ b/modules/item/front/item-shelving/locale/es.yml
@@ -0,0 +1,5 @@
+Shelving: Matrícula
+Remove selected lines: Eliminar líneas seleccionadas
+Selected lines will be deleted: Las líneas seleccionadas serán eliminadas
+ItemShelvings removed: Carros eliminados
+Total labels: Total etiquetas
\ No newline at end of file
diff --git a/modules/item/front/locale/es.yml b/modules/item/front/locale/es.yml
index 1b75e3802..0fc014742 100644
--- a/modules/item/front/locale/es.yml
+++ b/modules/item/front/locale/es.yml
@@ -44,6 +44,7 @@ Weight/Piece: Peso/tallo
Search items by id, name or barcode: Buscar articulos por identificador, nombre o codigo de barras
SalesPerson: Comercial
Concept: Concepto
+Units/Box: Unidades/Caja
# Sections
Items: Artículos
@@ -54,10 +55,11 @@ Basic data: Datos básicos
Tax: IVA
History: Historial
Botanical: Botánico
+Shelvings: Carros
Barcodes: Códigos de barras
Diary: Histórico
Item diary: Registro de compra-venta
Last entries: Últimas entradas
Tags: Etiquetas
Waste breakdown: Desglose de mermas
-Waste breakdown by item: Desglose de mermas por artículo
\ No newline at end of file
+Waste breakdown by item: Desglose de mermas por artículo
diff --git a/modules/item/front/routes.json b/modules/item/front/routes.json
index 5743d0ce7..3dea69ba1 100644
--- a/modules/item/front/routes.json
+++ b/modules/item/front/routes.json
@@ -15,11 +15,12 @@
"card": [
{"state": "item.card.basicData", "icon": "settings"},
{"state": "item.card.tags", "icon": "icon-tags"},
+ {"state": "item.card.last-entries", "icon": "icon-regentry"},
{"state": "item.card.tax", "icon": "icon-tax"},
- {"state": "item.card.botanical", "icon": "local_florist"},
+ {"state": "item.card.botanical", "icon": "local_florist"},
+ {"state": "item.card.shelving", "icon": "icon-inventory"},
{"state": "item.card.itemBarcode", "icon": "icon-barcode"},
{"state": "item.card.diary", "icon": "icon-transaction"},
- {"state": "item.card.last-entries", "icon": "icon-regentry"},
{"state": "item.card.log", "icon": "history"}
],
"itemType": [
@@ -92,6 +93,16 @@
},
"acl": ["buyer"]
},
+ {
+ "url" : "/shelving",
+ "state": "item.card.shelving",
+ "component": "vn-item-shelving",
+ "description": "Shelvings",
+ "params": {
+ "item": "$ctrl.item"
+ },
+ "acl": ["employee"]
+ },
{
"url" : "/barcode",
"state": "item.card.itemBarcode",
diff --git a/modules/mdb/back/methods/mdbApp/lock.js b/modules/mdb/back/methods/mdbApp/lock.js
new file mode 100644
index 000000000..98e61fb53
--- /dev/null
+++ b/modules/mdb/back/methods/mdbApp/lock.js
@@ -0,0 +1,66 @@
+const UserError = require('vn-loopback/util/user-error');
+
+module.exports = Self => {
+ Self.remoteMethodCtx('lock', {
+ description: 'Lock an app for the user',
+ accessType: 'WRITE',
+ accepts: [
+ {
+ arg: 'appName',
+ type: 'string',
+ required: true,
+ description: 'The app name',
+ http: {source: 'path'}
+
+ }
+ ],
+ returns: {
+ type: ['object'],
+ root: true
+ },
+ http: {
+ path: `/:appName/lock`,
+ verb: 'POST'
+ }
+ });
+
+ Self.lock = async(ctx, appName, options) => {
+ const models = Self.app.models;
+ const userId = ctx.req.accessToken.userId;
+ const myOptions = {};
+ const $t = ctx.req.__; // $translate
+
+ let tx;
+
+ if (typeof options == 'object')
+ Object.assign(myOptions, options);
+
+ if (!myOptions.transaction) {
+ tx = await Self.beginTransaction({});
+ myOptions.transaction = tx;
+ }
+
+ try {
+ const mdbApp = await models.MdbApp.findById(appName, {fields: ['app', 'locked', 'userFk']}, myOptions);
+
+ if (mdbApp.locked) {
+ throw new UserError($t('App locked', {
+ userId: mdbApp.userFk
+ }));
+ }
+
+ const updatedMdbApp = await mdbApp.updateAttributes({
+ userFk: userId,
+ locked: new Date()
+ }, myOptions);
+
+ if (tx) await tx.commit();
+
+ return updatedMdbApp;
+ } catch (e) {
+ if (tx) await tx.rollback();
+
+ throw e;
+ }
+ };
+};
diff --git a/modules/mdb/back/methods/mdbApp/specs/lock.spec.js b/modules/mdb/back/methods/mdbApp/specs/lock.spec.js
new file mode 100644
index 000000000..162d0490a
--- /dev/null
+++ b/modules/mdb/back/methods/mdbApp/specs/lock.spec.js
@@ -0,0 +1,51 @@
+const models = require('vn-loopback/server/server').models;
+
+describe('MdbApp lock()', () => {
+ it('should throw an error if the app is already locked', async() => {
+ const tx = await models.MdbApp.beginTransaction({});
+ let error;
+
+ try {
+ const options = {transaction: tx};
+ const appName = 'bar';
+ const developerId = 9;
+ const ctx = {
+ req: {
+ accessToken: {userId: developerId},
+ __: () => {}
+ }
+ };
+
+ const result = await models.MdbApp.lock(ctx, appName, options);
+
+ expect(result.locked).not.toBeNull();
+
+ await tx.rollback();
+ } catch (e) {
+ error = e;
+
+ await tx.rollback();
+ }
+
+ expect(error).toBeDefined();
+ });
+
+ it(`should lock a mdb `, async() => {
+ const tx = await models.MdbApp.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+ const appName = 'foo';
+ const developerId = 9;
+ const ctx = {req: {accessToken: {userId: developerId}}};
+
+ const result = await models.MdbApp.lock(ctx, appName, options);
+
+ expect(result.locked).not.toBeNull();
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ }
+ });
+});
diff --git a/modules/mdb/back/methods/mdbApp/specs/unlock.spec.js b/modules/mdb/back/methods/mdbApp/specs/unlock.spec.js
new file mode 100644
index 000000000..9f1678372
--- /dev/null
+++ b/modules/mdb/back/methods/mdbApp/specs/unlock.spec.js
@@ -0,0 +1,22 @@
+const models = require('vn-loopback/server/server').models;
+
+describe('MdbApp unlock()', () => {
+ it(`should unlock a mdb `, async() => {
+ const tx = await models.MdbApp.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+ const appName = 'bar';
+ const developerId = 9;
+ const ctx = {req: {accessToken: {userId: developerId}}};
+
+ const result = await models.MdbApp.unlock(ctx, appName, options);
+
+ expect(result.locked).toBeNull();
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ }
+ });
+});
diff --git a/modules/mdb/back/methods/mdbApp/unlock.js b/modules/mdb/back/methods/mdbApp/unlock.js
new file mode 100644
index 000000000..6bf67ddf4
--- /dev/null
+++ b/modules/mdb/back/methods/mdbApp/unlock.js
@@ -0,0 +1,40 @@
+module.exports = Self => {
+ Self.remoteMethodCtx('unlock', {
+ description: 'Unlock an app for the user',
+ accessType: 'WRITE',
+ accepts: [
+ {
+ arg: 'appName',
+ type: 'string',
+ required: true,
+ description: 'The app name',
+ http: {source: 'path'}
+
+ }
+ ],
+ returns: {
+ type: ['object'],
+ root: true
+ },
+ http: {
+ path: `/:appName/unlock`,
+ verb: 'POST'
+ }
+ });
+
+ Self.unlock = async(ctx, appName, options) => {
+ const models = Self.app.models;
+ const myOptions = {};
+
+ if (typeof options == 'object')
+ Object.assign(myOptions, options);
+
+ const mdbApp = await models.MdbApp.findById(appName, null, myOptions);
+ const updatedMdbApp = await mdbApp.updateAttributes({
+ userFk: null,
+ locked: null
+ }, myOptions);
+
+ return updatedMdbApp;
+ };
+};
diff --git a/modules/mdb/back/methods/mdbVersion/upload.js b/modules/mdb/back/methods/mdbVersion/upload.js
index 57df35ce7..5dfe5d3ef 100644
--- a/modules/mdb/back/methods/mdbVersion/upload.js
+++ b/modules/mdb/back/methods/mdbVersion/upload.js
@@ -23,6 +23,12 @@ module.exports = Self => {
type: 'string',
required: true,
description: `The branch name`
+ },
+ {
+ arg: 'unlock',
+ type: 'boolean',
+ required: false,
+ description: `It allows unlock the app`
}
],
returns: {
@@ -35,9 +41,11 @@ module.exports = Self => {
}
});
- Self.upload = async(ctx, appName, newVersion, branch, options) => {
+ Self.upload = async(ctx, appName, newVersion, branch, unlock, options) => {
const models = Self.app.models;
+ const userId = ctx.req.accessToken.userId;
const myOptions = {};
+ const $t = ctx.req.__; // $translate
const TempContainer = models.TempContainer;
const AccessContainer = models.AccessContainer;
@@ -55,6 +63,14 @@ module.exports = Self => {
let srcFile;
try {
+ const mdbApp = await models.MdbApp.findById(appName, null, myOptions);
+
+ if (mdbApp.locked && mdbApp.userFk != userId) {
+ throw new UserError($t('App locked', {
+ userId: mdbApp.userFk
+ }));
+ }
+
const tempContainer = await TempContainer.container('access');
const uploaded = await TempContainer.upload(tempContainer.name, ctx.req, ctx.result, fileOptions);
const files = Object.values(uploaded.files).map(file => {
@@ -79,7 +95,7 @@ module.exports = Self => {
const existBranch = await models.MdbBranch.findOne({
where: {name: branch}
- });
+ }, myOptions);
if (!existBranch)
throw new UserError('Not exist this branch');
@@ -108,7 +124,9 @@ module.exports = Self => {
app: appName,
branchFk: branch,
version: newVersion
- });
+ }, myOptions);
+
+ if (unlock) await models.MdbApp.unlock(ctx, appName, myOptions);
if (tx) await tx.commit();
} catch (e) {
diff --git a/modules/mdb/back/model-config.json b/modules/mdb/back/model-config.json
index d5be8de87..6107f8790 100644
--- a/modules/mdb/back/model-config.json
+++ b/modules/mdb/back/model-config.json
@@ -1,4 +1,7 @@
{
+ "MdbApp": {
+ "dataSource": "vn"
+ },
"MdbBranch": {
"dataSource": "vn"
},
diff --git a/modules/mdb/back/models/mdbApp.js b/modules/mdb/back/models/mdbApp.js
new file mode 100644
index 000000000..dce715573
--- /dev/null
+++ b/modules/mdb/back/models/mdbApp.js
@@ -0,0 +1,4 @@
+module.exports = Self => {
+ require('../methods/mdbApp/lock')(Self);
+ require('../methods/mdbApp/unlock')(Self);
+};
diff --git a/modules/mdb/back/models/mdbApp.json b/modules/mdb/back/models/mdbApp.json
new file mode 100644
index 000000000..868f8c1d0
--- /dev/null
+++ b/modules/mdb/back/models/mdbApp.json
@@ -0,0 +1,31 @@
+{
+ "name": "MdbApp",
+ "base": "VnModel",
+ "options": {
+ "mysql": {
+ "table": "mdbApp"
+ }
+ },
+ "properties": {
+ "app": {
+ "type": "string",
+ "description": "The app name",
+ "id": true
+ },
+ "locked": {
+ "type": "date"
+ }
+ },
+ "relations": {
+ "branch": {
+ "type": "belongsTo",
+ "model": "MdbBranch",
+ "foreignKey": "baselineBranchFk"
+ },
+ "user": {
+ "type": "belongsTo",
+ "model": "MdbBranch",
+ "foreignKey": "userFk"
+ }
+ }
+}
diff --git a/modules/monitor/back/methods/sales-monitor/clientsFilter.js b/modules/monitor/back/methods/sales-monitor/clientsFilter.js
index 3756a706b..09ea24eb1 100644
--- a/modules/monitor/back/methods/sales-monitor/clientsFilter.js
+++ b/modules/monitor/back/methods/sales-monitor/clientsFilter.js
@@ -38,6 +38,7 @@ module.exports = Self => {
date.setHours(0, 0, 0, 0);
const stmt = new ParameterizedSQL(`
SELECT
+ v.id,
u.name AS salesPerson,
IFNULL(sc.workerSubstitute, c.salesPersonFk) AS salesPersonFk,
c.id AS clientFk,
diff --git a/modules/monitor/back/methods/sales-monitor/ordersFilter.js b/modules/monitor/back/methods/sales-monitor/ordersFilter.js
index 6ae4042b6..a80ea822e 100644
--- a/modules/monitor/back/methods/sales-monitor/ordersFilter.js
+++ b/modules/monitor/back/methods/sales-monitor/ordersFilter.js
@@ -53,7 +53,7 @@ module.exports = Self => {
JOIN client c ON c.id = o.customer_id
JOIN address a ON a.id = o.address_id
JOIN agencyMode am ON am.id = o.agency_id
- JOIN user u ON u.id = c.salesPersonFk
+ JOIN account.user u ON u.id = c.salesPersonFk
JOIN workerTeamCollegues wtc ON c.salesPersonFk = wtc.collegueFk`);
if (!filter.where) filter.where = {};
diff --git a/modules/monitor/back/methods/sales-monitor/salesFilter.js b/modules/monitor/back/methods/sales-monitor/salesFilter.js
index ff642b088..7be130dda 100644
--- a/modules/monitor/back/methods/sales-monitor/salesFilter.js
+++ b/modules/monitor/back/methods/sales-monitor/salesFilter.js
@@ -211,7 +211,7 @@ module.exports = Self => {
LEFT JOIN province p ON p.id = a.provinceFk
LEFT JOIN warehouse w ON w.id = t.warehouseFk
LEFT JOIN agencyMode am ON am.id = t.agencyModeFk
- STRAIGHT_JOIN ticketState ts ON ts.ticketFk = t.id
+ LEFT JOIN ticketState ts ON ts.ticketFk = t.id
LEFT JOIN state st ON st.id = ts.stateFk
LEFT JOIN client c ON c.id = t.clientFk
LEFT JOIN worker wk ON wk.id = c.salesPersonFk
diff --git a/modules/monitor/back/methods/sales-monitor/specs/salesFilter.spec.js b/modules/monitor/back/methods/sales-monitor/specs/salesFilter.spec.js
index 0682cef09..d2e1a5bec 100644
--- a/modules/monitor/back/methods/sales-monitor/specs/salesFilter.spec.js
+++ b/modules/monitor/back/methods/sales-monitor/specs/salesFilter.spec.js
@@ -11,7 +11,7 @@ describe('SalesMonitor salesFilter()', () => {
const filter = {order: 'id DESC'};
const result = await models.SalesMonitor.salesFilter(ctx, filter, options);
- expect(result.length).toEqual(27);
+ expect(result.length).toBeGreaterThan(25);
await tx.rollback();
} catch (e) {
@@ -39,7 +39,7 @@ describe('SalesMonitor salesFilter()', () => {
const filter = {};
const result = await models.SalesMonitor.salesFilter(ctx, filter, options);
- expect(result.length).toEqual(16);
+ expect(result.length).toBeGreaterThan(15);
await tx.rollback();
} catch (e) {
@@ -87,7 +87,7 @@ describe('SalesMonitor salesFilter()', () => {
const filter = {};
const result = await models.SalesMonitor.salesFilter(ctx, filter, options);
- expect(result.length).toEqual(27);
+ expect(result.length).toBeGreaterThan(20);
await tx.rollback();
} catch (e) {
@@ -130,7 +130,7 @@ describe('SalesMonitor salesFilter()', () => {
const length = result.length;
const anyResult = result[Math.floor(Math.random() * Math.floor(length))];
- expect(length).toEqual(10);
+ expect(length).toBeGreaterThan(10);
expect(anyResult.state).toMatch(/(Libre|Arreglar)/);
await tx.rollback();
@@ -171,7 +171,7 @@ describe('SalesMonitor salesFilter()', () => {
const filter = {};
const result = await models.SalesMonitor.salesFilter(ctx, filter, options);
- expect(result.length).toEqual(23);
+ expect(result.length).toBeGreaterThan(20);
await tx.rollback();
} catch (e) {
diff --git a/modules/monitor/front/index/clients/index.html b/modules/monitor/front/index/clients/index.html
index eafc2256e..c0e3d1b14 100644
--- a/modules/monitor/front/index/clients/index.html
+++ b/modules/monitor/front/index/clients/index.html
@@ -19,22 +19,24 @@
-
@@ -59,7 +61,7 @@
-
+
{{::visit.dated | date:'dd/MM/yy'}}
@@ -100,9 +102,9 @@
-
-
\ No newline at end of file
+
diff --git a/modules/monitor/front/index/orders/index.html b/modules/monitor/front/index/orders/index.html
index 6126e23ef..74e80e40e 100644
--- a/modules/monitor/front/index/orders/index.html
+++ b/modules/monitor/front/index/orders/index.html
@@ -41,7 +41,7 @@
SalesPerson
-
diff --git a/modules/monitor/front/index/tickets/index.html b/modules/monitor/front/index/tickets/index.html
index 138788ed6..2f7c34e2d 100644
--- a/modules/monitor/front/index/tickets/index.html
+++ b/modules/monitor/front/index/tickets/index.html
@@ -78,7 +78,7 @@
-
+
+
Update volume
+
+ Delete route
+
diff --git a/modules/route/front/descriptor/index.js b/modules/route/front/descriptor/index.js
index 0573201bf..aa47044b1 100644
--- a/modules/route/front/descriptor/index.js
+++ b/modules/route/front/descriptor/index.js
@@ -22,6 +22,8 @@ class Controller extends Descriptor {
recipient: workerUser.emailUser.email,
id: this.id
});
+ const params = {isOk: true};
+ return this.$http.patch(`Routes/${this.id}`, params);
}
updateVolume() {
@@ -32,6 +34,14 @@ class Controller extends Descriptor {
});
}
+ deleteCurrentRoute() {
+ this.$http.delete(`Routes/${this.id}`)
+ .then(() => {
+ this.vnApp.showSuccess(this.$t('Route deleted'));
+ this.$state.go('route.index');
+ });
+ }
+
loadData() {
const filter = {
fields: [
diff --git a/modules/route/front/descriptor/index.spec.js b/modules/route/front/descriptor/index.spec.js
index ab996d9b0..f43666c8b 100644
--- a/modules/route/front/descriptor/index.spec.js
+++ b/modules/route/front/descriptor/index.spec.js
@@ -23,4 +23,20 @@ describe('vnRouteDescriptorPopover', () => {
expect(controller.route).toEqual(response);
});
});
+
+ describe('deleteCurrentRoute()', () => {
+ it(`should perform a delete query to delete the current route`, () => {
+ const id = 1;
+
+ jest.spyOn(controller.vnApp, 'showSuccess');
+
+ controller._id = id;
+ $httpBackend.expectDELETE(`Routes/${id}`).respond(200);
+ controller.deleteCurrentRoute();
+ $httpBackend.flush();
+
+ expect(controller.route).toBeUndefined();
+ expect(controller.vnApp.showSuccess).toHaveBeenCalledWith('Route deleted');
+ });
+ });
});
diff --git a/modules/route/front/descriptor/locale/es.yml b/modules/route/front/descriptor/locale/es.yml
index 63fa7202b..23068fbf8 100644
--- a/modules/route/front/descriptor/locale/es.yml
+++ b/modules/route/front/descriptor/locale/es.yml
@@ -4,4 +4,6 @@ Send route report: Enviar informe de ruta
Show route report: Ver informe de ruta
Update volume: Actualizar volumen
Volume updated: Volumen actualizado
+Delete route: Borrar ruta
+Route deleted: Ruta borrada
Are you sure you want to update the volume?: Estas seguro que quieres actualizar el volumen?
\ No newline at end of file
diff --git a/modules/route/front/index.js b/modules/route/front/index.js
index 55cb745e1..c43048df5 100644
--- a/modules/route/front/index.js
+++ b/modules/route/front/index.js
@@ -15,3 +15,4 @@ import './agency-term/index';
import './agency-term/createInvoiceIn';
import './agency-term-search-panel';
import './ticket-popup';
+import './sms';
diff --git a/modules/route/front/index/index.html b/modules/route/front/index/index.html
index 6d4bb202d..7a64a9aff 100644
--- a/modules/route/front/index/index.html
+++ b/modules/route/front/index/index.html
@@ -1,69 +1,164 @@
-
+
-
-
-
-
{
+ this.vnApp.showSuccess(this.$t('Data saved!'));
+ });
+ }
+
+ markAsServed() {
+ const routes = [];
+ for (let route of this.checked)
+ routes.push(route.id);
+
+ const params = {isOk: true};
+ for (let routeId of routes)
+ this.$http.patch(`Routes/${routeId}`, params);
+ }
}
Controller.$inject = ['$element', '$scope', 'vnReport'];
diff --git a/modules/route/front/index/index.spec.js b/modules/route/front/index/index.spec.js
index 80e660b76..05dd56433 100644
--- a/modules/route/front/index/index.spec.js
+++ b/modules/route/front/index/index.spec.js
@@ -12,7 +12,7 @@ describe('Component vnRouteIndex', () => {
const $element = angular.element(' ');
controller = $componentController('vnRouteIndex', {$element});
controller.$.model = crudModel;
- controller.$.model.data = [{id: 1}, {id: 2}, {id: 3}];
+ controller.$.model.data = [{id: 1, checked: true}, {id: 2}, {id: 3}];
}));
describe('checked() getter', () => {
@@ -49,14 +49,12 @@ describe('Component vnRouteIndex', () => {
const data = controller.$.model.data;
data[0].checked = true;
data[2].checked = true;
- const expectedParams = {
- authorization: null,
- routeId: '1,3'
- };
+
+ const routeIds = '1,3';
controller.showRouteReport();
- expect(controller.vnReport.show).toHaveBeenCalledWith('driver-route', expectedParams);
+ expect(controller.vnReport.show).toHaveBeenCalledWith(`Routes/${routeIds}/driver-route-pdf`);
});
});
@@ -148,4 +146,13 @@ describe('Component vnRouteIndex', () => {
expect(controller.$.model.refresh).toHaveBeenCalledWith();
});
});
+
+ describe('markAsServed()', () => {
+ it('should perform a HTTP patch query', () => {
+ const data = {isOk: true};
+ $httpBackend.expect('PATCH', `Routes/1`, data).respond();
+ controller.markAsServed();
+ $httpBackend.flush();
+ });
+ });
});
diff --git a/modules/route/front/index/locale/es.yml b/modules/route/front/index/locale/es.yml
index 591ea80d8..3db84d81e 100644
--- a/modules/route/front/index/locale/es.yml
+++ b/modules/route/front/index/locale/es.yml
@@ -2,4 +2,12 @@ Vehicle: Vehículo
Download selected routes as PDF: Descargar rutas seleccionadas como PDF
Clone selected routes: Clonar rutas seleccionadas
The date can't be empty: La fecha no puede estar vacía
-Starting date: Fecha de inicio
\ No newline at end of file
+Starting date: Fecha de inicio
+Hour started: Hora inicio
+Hour finished: Hora fin
+Go to route: Ir a la ruta
+You must select a valid time: Debe seleccionar una hora válida
+You must select a valid date: Debe seleccionar una fecha válida
+Mark as served: Marcar como servidas
+Retrieving data from the routes: Recuperando datos de las rutas
+Send SMS to all clients: Mandar sms a todos los clientes de las rutas
\ No newline at end of file
diff --git a/modules/route/front/routes.json b/modules/route/front/routes.json
index f5e7d9ae8..75e1fdc57 100644
--- a/modules/route/front/routes.json
+++ b/modules/route/front/routes.json
@@ -39,7 +39,7 @@
"abstract": true,
"component": "vn-route-card"
}, {
- "url": "/agency-term",
+ "url": "/agency-term?q",
"abstract": true,
"state": "route.agencyTerm",
"component": "ui-view"
@@ -49,12 +49,12 @@
"component": "vn-agency-term-index",
"description": "Autonomous",
"acl": ["administrative"]
- },{
+ },{
"url": "/createInvoiceIn?q",
"state": "route.agencyTerm.createInvoiceIn",
"component": "vn-agency-term-create-invoice-in",
"description": "File management",
- "params": {
+ "params": {
"route": "$ctrl.route"
},
"acl": ["administrative"]
@@ -92,4 +92,4 @@
"acl": ["delivery"]
}
]
-}
\ No newline at end of file
+}
diff --git a/modules/ticket/front/sms/index.html b/modules/route/front/sms/index.html
similarity index 79%
rename from modules/ticket/front/sms/index.html
rename to modules/route/front/sms/index.html
index 97bdfef14..0d7dd7c11 100644
--- a/modules/ticket/front/sms/index.html
+++ b/modules/route/front/sms/index.html
@@ -1,19 +1,10 @@
+ message="Send SMS to the selected tickets">
-
-
-
-
{
+ this.$http.post(`Routes/sendSms`, this.sms).then(res => {
this.vnApp.showMessage(this.$t('SMS sent!'));
if (res.data) this.emit('send', {response: res.data});
@@ -38,7 +38,7 @@ class Controller extends Component {
}
}
-ngModule.vnComponent('vnTicketSms', {
+ngModule.vnComponent('vnRouteSms', {
template: require('./index.html'),
controller: Controller,
bindings: {
diff --git a/modules/ticket/front/sms/index.spec.js b/modules/route/front/sms/index.spec.js
similarity index 80%
rename from modules/ticket/front/sms/index.spec.js
rename to modules/route/front/sms/index.spec.js
index b133db04d..42bf30931 100644
--- a/modules/ticket/front/sms/index.spec.js
+++ b/modules/route/front/sms/index.spec.js
@@ -1,17 +1,17 @@
import './index';
-describe('Ticket', () => {
- describe('Component vnTicketSms', () => {
+describe('Route', () => {
+ describe('Component vnRouteSms', () => {
let controller;
let $httpBackend;
- beforeEach(ngModule('ticket'));
+ beforeEach(ngModule('route'));
beforeEach(inject(($componentController, $rootScope, _$httpBackend_) => {
$httpBackend = _$httpBackend_;
let $scope = $rootScope.$new();
const $element = angular.element(' ');
- controller = $componentController('vnTicketSms', {$element, $scope});
+ controller = $componentController('vnRouteSms', {$element, $scope});
controller.$.message = {
input: {
value: 'My SMS'
@@ -21,11 +21,11 @@ describe('Ticket', () => {
describe('onResponse()', () => {
it('should perform a POST query and show a success snackbar', () => {
- let params = {ticketId: 11, destinationFk: 1101, destination: 111111111, message: 'My SMS'};
- controller.sms = {ticketId: 11, destinationFk: 1101, destination: 111111111, message: 'My SMS'};
+ let params = {destinationFk: 1101, destination: 111111111, message: 'My SMS'};
+ controller.sms = {destinationFk: 1101, destination: 111111111, message: 'My SMS'};
jest.spyOn(controller.vnApp, 'showMessage');
- $httpBackend.expect('POST', `Tickets/11/sendSms`, params).respond(200, params);
+ $httpBackend.expect('POST', `Routes/sendSms`, params).respond(200, params);
controller.onResponse();
$httpBackend.flush();
diff --git a/modules/ticket/front/sms/locale/es.yml b/modules/route/front/sms/locale/es.yml
similarity index 68%
rename from modules/ticket/front/sms/locale/es.yml
rename to modules/route/front/sms/locale/es.yml
index 64c3fcca6..0168a6eb6 100644
--- a/modules/ticket/front/sms/locale/es.yml
+++ b/modules/route/front/sms/locale/es.yml
@@ -1,5 +1,5 @@
-Send SMS: Enviar SMS
-Destination: Destinatario
+Send SMS to the selected tickets: Enviar SMS a los tickets seleccionados
+Routes to notify: Rutas a notificar
Message: Mensaje
SMS sent!: ¡SMS enviado!
Characters remaining: Carácteres restantes
diff --git a/modules/ticket/front/sms/style.scss b/modules/route/front/sms/style.scss
similarity index 100%
rename from modules/ticket/front/sms/style.scss
rename to modules/route/front/sms/style.scss
diff --git a/modules/route/front/tickets/index.html b/modules/route/front/tickets/index.html
index e02969219..dae894ac7 100644
--- a/modules/route/front/tickets/index.html
+++ b/modules/route/front/tickets/index.html
@@ -11,7 +11,8 @@
+
@@ -121,19 +157,29 @@
route="$ctrl.$params"
parent-reload="$ctrl.$.model.refresh()">
-
-
-
+
-
\ No newline at end of file
+
+
+
+
\ No newline at end of file
diff --git a/modules/route/front/tickets/index.js b/modules/route/front/tickets/index.js
index b14b28ed6..80f8ad4f4 100644
--- a/modules/route/front/tickets/index.js
+++ b/modules/route/front/tickets/index.js
@@ -20,15 +20,48 @@ class Controller extends Section {
return highestPriority + 1;
}
+ setHighestPriority(ticket) {
+ const highestPriority = this.getHighestPriority();
+ if (highestPriority - 1 != ticket.priority) {
+ const params = {priority: highestPriority};
+ const query = `Tickets/${ticket.id}/`;
+ this.$http.patch(query, params).then(res => {
+ ticket.priority = res.data.priority;
+ this.vnApp.showSuccess(this.$t('Data saved!'));
+ });
+ }
+ }
+
setPriority(id, priority) {
let params = {priority: priority};
let query = `Tickets/${id}/`;
this.$http.patch(query, params).then(() => {
this.vnApp.showSuccess(this.$t('Data saved!'));
- this.$.model.refresh();
});
}
+ deletePriority() {
+ const lines = this.getSelectedItems(this.tickets);
+
+ for (const line of lines) {
+ this.$http.patch(`Tickets/${line.id}/`, {priority: null}).then(() => {
+ this.vnApp.showSuccess(this.$t('Data saved!'));
+ this.$.model.refresh();
+ });
+ }
+ }
+
+ setOrderedPriority(lines) {
+ let priority = 1;
+ for (const line of lines) {
+ this.$http.patch(`Tickets/${line.id}/`, {priority: priority}).then(() => {
+ this.vnApp.showSuccess(this.$t('Data saved!'));
+ this.$.model.refresh();
+ });
+ priority++;
+ }
+ }
+
getSelectedItems(items) {
const selectedItems = [];
@@ -57,8 +90,10 @@ class Controller extends Section {
let lines = this.getSelectedItems(this.tickets);
let url = 'http://gps.buscalia.com/usuario/localizar.aspx?bmi=true&addr=';
- lines.forEach(line => {
- addresses = addresses + '+to:' + line.postalCode + ' ' + line.city + ' ' + line.street;
+ lines.forEach((line, index) => {
+ const previusLine = lines[index - 1] ? lines[index - 1].street : null;
+ if (previusLine != line.street)
+ addresses = addresses + '+to:' + line.postalCode + ' ' + line.city + ' ' + line.street;
});
window.open(url + addresses, '_blank');
@@ -126,6 +161,37 @@ class Controller extends Section {
throw error;
});
}
+
+ async sendSms() {
+ try {
+ const clientsFk = [];
+ const clientsName = [];
+ const clients = [];
+
+ const selectedTickets = this.getSelectedItems(this.$.$ctrl.tickets);
+
+ for (let ticket of selectedTickets) {
+ clientsFk.push(ticket.clientFk);
+ let userContact = await this.$http.get(`Clients/${ticket.clientFk}`);
+ clientsName.push(userContact.data.name);
+ clients.push(userContact.data.phone);
+ }
+
+ const destinationFk = String(clientsFk);
+ const destination = String(clients);
+
+ this.newSMS = Object.assign({
+ destinationFk: destinationFk,
+ destination: destination
+ });
+
+ this.$.sms.open();
+ return true;
+ } catch (e) {
+ this.vnApp.showError(this.$t(e.message));
+ return false;
+ }
+ }
}
ngModule.vnComponent('vnRouteTickets', {
diff --git a/modules/route/front/tickets/index.spec.js b/modules/route/front/tickets/index.spec.js
index 82647d903..f4a58154e 100644
--- a/modules/route/front/tickets/index.spec.js
+++ b/modules/route/front/tickets/index.spec.js
@@ -58,9 +58,23 @@ describe('Route', () => {
});
});
+ describe('setHighestPriority()', () => {
+ it('should set a ticket highest priority', () => {
+ jest.spyOn(controller.vnApp, 'showSuccess');
+ controller.$.model.data = [{priority: 3}];
+ const ticket = {id: 1, priority: 2};
+ const res = {data: {priority: 4}};
+
+ $httpBackend.expectPATCH(`Tickets/${ticket.id}/`).respond(res);
+ controller.setHighestPriority(ticket);
+ $httpBackend.flush();
+
+ expect(controller.vnApp.showSuccess).toHaveBeenCalled();
+ });
+ });
+
describe('setPriority()', () => {
it('should set a ticket priority', () => {
- jest.spyOn(controller.$.model, 'refresh');
jest.spyOn(controller.vnApp, 'showSuccess');
const ticketId = 1;
const priority = 999;
@@ -69,6 +83,35 @@ describe('Route', () => {
controller.setPriority(ticketId, priority);
$httpBackend.flush();
+ expect(controller.vnApp.showSuccess).toHaveBeenCalled();
+ });
+ });
+
+ describe('deletePriority()', () => {
+ it('should delete priority of all tickets', () => {
+ jest.spyOn(controller.$.model, 'refresh');
+ jest.spyOn(controller.vnApp, 'showSuccess');
+ controller.tickets = [{id: 1, checked: true}];
+
+ $httpBackend.expectPATCH(`Tickets/${controller.tickets[0].id}/`).respond();
+ controller.deletePriority();
+ $httpBackend.flush();
+
+ expect(controller.vnApp.showSuccess).toHaveBeenCalled();
+ expect(controller.$.model.refresh).toHaveBeenCalledWith();
+ });
+ });
+
+ describe('setOrderedPriority()', () => {
+ it('should set priority of all tickets starting by 1', () => {
+ jest.spyOn(controller.$.model, 'refresh');
+ jest.spyOn(controller.vnApp, 'showSuccess');
+ const tickets = [{id: 1, checked: true}];
+
+ $httpBackend.expectPATCH(`Tickets/${tickets[0].id}/`).respond();
+ controller.setOrderedPriority(tickets);
+ $httpBackend.flush();
+
expect(controller.vnApp.showSuccess).toHaveBeenCalled();
expect(controller.$.model.refresh).toHaveBeenCalledWith();
});
diff --git a/modules/route/front/tickets/locale/es.yml b/modules/route/front/tickets/locale/es.yml
index 6d63b4b6e..e7f483d2f 100644
--- a/modules/route/front/tickets/locale/es.yml
+++ b/modules/route/front/tickets/locale/es.yml
@@ -13,3 +13,6 @@ The route's vehicle doesn't have a delivery point: El vehículo de la ruta no ti
The route doesn't have a vehicle: La ruta no tiene un vehículo
Population: Población
Unlink selected zone?: Desvincular zona seleccionada?
+Delete priority: Borrar orden
+Renumber all tickets in the order you see on the screen: Renumerar todos los tickets con el orden que ves por pantalla
+Assign highest priority: Asignar máxima prioridad
\ No newline at end of file
diff --git a/modules/shelving/front/routes.json b/modules/shelving/front/routes.json
index b99ca4cac..09a8e389b 100644
--- a/modules/shelving/front/routes.json
+++ b/modules/shelving/front/routes.json
@@ -13,9 +13,6 @@
{"state": "shelving.card.log", "icon": "history"}
]
},
- "keybindings": [
- {"key": "s", "state": "shelving.index"}
- ],
"routes": [
{
"url": "/shelving",
diff --git a/modules/supplier/back/methods/supplier/consumption.js b/modules/supplier/back/methods/supplier/consumption.js
index e8e22625f..710db1bb1 100644
--- a/modules/supplier/back/methods/supplier/consumption.js
+++ b/modules/supplier/back/methods/supplier/consumption.js
@@ -89,12 +89,12 @@ module.exports = Self => {
ENGINE = MEMORY
SELECT
e.id,
- e.ref,
+ e.invoiceNumber,
e.supplierFk,
t.shipped
FROM vn.entry e
JOIN vn.travel t ON t.id = e.travelFk
- JOIN buy b ON b.id = b.entryFk
+ JOIN buy b ON e.id = b.entryFk
JOIN item i ON i.id = b.itemFk
JOIN itemType it ON it.id = i.typeFk`);
stmt.merge(conn.makeWhere(filter.where));
@@ -104,7 +104,7 @@ module.exports = Self => {
const entriesIndex = stmts.push('SELECT * FROM tmp.entry') - 1;
stmt = new ParameterizedSQL(
- `SELECT
+ `SELECT
b.id AS buyId,
b.itemFk,
b.entryFk,
diff --git a/modules/supplier/back/methods/supplier/filter.js b/modules/supplier/back/methods/supplier/filter.js
index 3500afacd..0b473f7df 100644
--- a/modules/supplier/back/methods/supplier/filter.js
+++ b/modules/supplier/back/methods/supplier/filter.js
@@ -95,8 +95,8 @@ module.exports = Self => {
pm.name AS payMethod,
pd.payDem AS payDem
FROM vn.supplier s
- JOIN vn.payMethod pm ON pm.id = s.payMethodFk
- JOIN vn.payDem pd ON pd.id = s.payDemFk`
+ LEFT JOIN vn.payMethod pm ON pm.id = s.payMethodFk
+ LEFT JOIN vn.payDem pd ON pd.id = s.payDemFk`
);
stmt.merge(conn.makeSuffix(filter));
diff --git a/modules/supplier/back/methods/supplier/newSupplier.js b/modules/supplier/back/methods/supplier/newSupplier.js
new file mode 100644
index 000000000..f4059a259
--- /dev/null
+++ b/modules/supplier/back/methods/supplier/newSupplier.js
@@ -0,0 +1,45 @@
+module.exports = Self => {
+ Self.remoteMethod('newSupplier', {
+ description: 'Creates a new supplier and returns it',
+ accessType: 'WRITE',
+ accepts: [{
+ arg: 'params',
+ type: 'object',
+ http: {source: 'body'}
+ }],
+ returns: {
+ type: 'string',
+ root: true
+ },
+ http: {
+ path: `/newSupplier`,
+ verb: 'POST'
+ }
+ });
+
+ Self.newSupplier = async params => {
+ const models = Self.app.models;
+ const myOptions = {};
+
+ if (typeof(params) == 'string')
+ params = JSON.parse(params);
+
+ params.nickname = params.name;
+
+ if (!myOptions.transaction) {
+ tx = await Self.beginTransaction({});
+ myOptions.transaction = tx;
+ }
+
+ try {
+ const supplier = await models.Supplier.create(params, myOptions);
+
+ if (tx) await tx.commit();
+
+ return supplier;
+ } catch (e) {
+ if (tx) await tx.rollback();
+ return params;
+ }
+ };
+};
diff --git a/modules/supplier/back/methods/supplier/specs/consumption.spec.js b/modules/supplier/back/methods/supplier/specs/consumption.spec.js
index 0e8f3afcc..0b4d6f82c 100644
--- a/modules/supplier/back/methods/supplier/specs/consumption.spec.js
+++ b/modules/supplier/back/methods/supplier/specs/consumption.spec.js
@@ -11,7 +11,7 @@ describe('supplier consumption() filter', () => {
};
const result = await app.models.Supplier.consumption(ctx, filter);
- expect(result.length).toEqual(6);
+ expect(result.length).toEqual(5);
});
it('should return a list of entries from the item id 1 and supplier 1', async() => {
diff --git a/modules/supplier/back/methods/supplier/specs/filter.spec.js b/modules/supplier/back/methods/supplier/specs/filter.spec.js
index 1f74b10ff..2620bb687 100644
--- a/modules/supplier/back/methods/supplier/specs/filter.spec.js
+++ b/modules/supplier/back/methods/supplier/specs/filter.spec.js
@@ -10,7 +10,7 @@ describe('Supplier filter()', () => {
let result = await app.models.Supplier.filter(ctx);
- expect(result.length).toEqual(1);
+ expect(result.length).toBeGreaterThanOrEqual(1);
expect(result[0].id).toEqual(1);
});
diff --git a/modules/supplier/back/methods/supplier/specs/newSupplier.spec.js b/modules/supplier/back/methods/supplier/specs/newSupplier.spec.js
new file mode 100644
index 000000000..8f22a4f20
--- /dev/null
+++ b/modules/supplier/back/methods/supplier/specs/newSupplier.spec.js
@@ -0,0 +1,30 @@
+const app = require('vn-loopback/server/server');
+const LoopBackContext = require('loopback-context');
+
+describe('Supplier newSupplier()', () => {
+ const newSupp = {
+ name: 'TestSupplier-1'
+ };
+ const administrativeId = 5;
+
+ it('should create a new supplier containing only the name', async() => {
+ const activeCtx = {
+ accessToken: {userId: administrativeId},
+ };
+ spyOn(LoopBackContext, 'getCurrentContext').and.returnValue({
+ active: activeCtx
+ });
+
+ let result = await app.models.Supplier.newSupplier(JSON.stringify(newSupp));
+
+ expect(result.name).toEqual('TestSupplier-1');
+ expect(result.id).toEqual(443);
+
+ const createdSupplier = await app.models.Supplier.findById(result.id);
+
+ expect(createdSupplier.id).toEqual(result.id);
+ expect(createdSupplier.name).toEqual(result.name);
+ expect(createdSupplier.payDemFk).toEqual(7);
+ expect(createdSupplier.nickname).toEqual(result.name);
+ });
+});
diff --git a/modules/supplier/back/models/specs/supplier.spec.js b/modules/supplier/back/models/specs/supplier.spec.js
index 3140981c3..f317f1fb9 100644
--- a/modules/supplier/back/models/specs/supplier.spec.js
+++ b/modules/supplier/back/models/specs/supplier.spec.js
@@ -8,7 +8,6 @@ describe('loopback model Supplier', () => {
beforeAll(async() => {
supplierOne = await models.Supplier.findById(1);
supplierTwo = await models.Supplier.findById(442);
-
const activeCtx = {
accessToken: {userId: 9},
http: {
@@ -23,71 +22,106 @@ describe('loopback model Supplier', () => {
});
});
- afterAll(async() => {
- await supplierOne.updateAttribute('payMethodFk', supplierOne.payMethodFk);
- await supplierTwo.updateAttribute('payMethodFk', supplierTwo.payMethodFk);
- });
-
describe('payMethodFk', () => {
it('should throw an error when attempting to set an invalid payMethod id in the supplier', async() => {
- let error;
- const expectedError = 'You can not select this payment method without a registered bankery account';
- const supplier = await models.Supplier.findById(1);
+ const tx = await models.Supplier.beginTransaction({});
+ const options = {transaction: tx};
- await supplier.updateAttribute('payMethodFk', 8)
- .catch(e => {
- error = e;
+ try {
+ let error;
+ const expectedError = 'You can not select this payment method without a registered bankery account';
- expect(error.message).toContain(expectedError);
- });
+ await supplierOne.updateAttribute('payMethodFk', 8, options)
+ .catch(e => {
+ error = e;
- expect(error).toBeDefined();
+ expect(error.message).toContain(expectedError);
+ });
+
+ expect(error).toBeDefined();
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
});
it('should not throw if the payMethod id is valid', async() => {
- let error;
- const supplier = await models.Supplier.findById(442);
- await supplier.updateAttribute('payMethodFk', 4)
- .catch(e => {
- error = e;
- });
+ const tx = await models.Supplier.beginTransaction({});
+ const options = {transaction: tx};
- expect(error).not.toBeDefined();
+ try {
+ let error;
+ await supplierTwo.updateAttribute('payMethodFk', 4, options)
+ .catch(e => {
+ error = e;
+ });
+
+ expect(error).not.toBeDefined();
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
});
it('should have checked isPayMethodChecked for payMethod hasVerfified is false', async() => {
- const supplier = await models.Supplier.findById(442);
- await supplier.updateAttribute('isPayMethodChecked', true);
- await supplier.updateAttribute('payMethodFk', 5);
+ const tx = await models.Supplier.beginTransaction({});
+ const options = {transaction: tx};
- const result = await models.Supplier.findById(442);
+ try {
+ await supplierTwo.updateAttribute('isPayMethodChecked', true, options);
+ await supplierTwo.updateAttribute('payMethodFk', 5, options);
- expect(result.isPayMethodChecked).toEqual(true);
+ const result = await models.Supplier.findById(442, null, options);
+
+ expect(result.isPayMethodChecked).toEqual(true);
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
});
it('should have unchecked isPayMethodChecked for payMethod hasVerfified is true', async() => {
- const supplier = await models.Supplier.findById(442);
- await supplier.updateAttribute('isPayMethodChecked', true);
- await supplier.updateAttribute('payMethodFk', 2);
+ const tx = await models.Supplier.beginTransaction({});
+ const options = {transaction: tx};
- const result = await models.Supplier.findById(442);
+ try {
+ await supplierTwo.updateAttribute('isPayMethodChecked', true, options);
+ await supplierTwo.updateAttribute('payMethodFk', 2, options);
- expect(result.isPayMethodChecked).toEqual(false);
+ const result = await models.Supplier.findById(442, null, options);
+
+ expect(result.isPayMethodChecked).toEqual(false);
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
});
it('should have unchecked isPayMethodChecked for payDay and peyDemFk', async() => {
- const supplier = await models.Supplier.findById(442);
+ const tx = await models.Supplier.beginTransaction({});
+ const options = {transaction: tx};
- await supplier.updateAttribute('isPayMethodChecked', true);
- await supplier.updateAttribute('payDay', 5);
- const firstResult = await models.Supplier.findById(442);
+ try {
+ await supplierTwo.updateAttribute('payMethodFk', 2, options);
+ await supplierTwo.updateAttribute('isPayMethodChecked', true, options);
+ await supplierTwo.updateAttribute('payDay', 5, options);
+ const firstResult = await models.Supplier.findById(442, null, options);
- await supplier.updateAttribute('isPayMethodChecked', true);
- await supplier.updateAttribute('payDemFk', 1);
- const secondResult = await models.Supplier.findById(442);
+ await supplierTwo.updateAttribute('isPayMethodChecked', true, options);
+ await supplierTwo.updateAttribute('payDemFk', 1, options);
+ const secondResult = await models.Supplier.findById(442, null, options);
- expect(firstResult.isPayMethodChecked).toEqual(false);
- expect(secondResult.isPayMethodChecked).toEqual(false);
+ expect(firstResult.isPayMethodChecked).toEqual(false);
+ expect(secondResult.isPayMethodChecked).toEqual(false);
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
});
});
});
diff --git a/modules/supplier/back/models/supplier.js b/modules/supplier/back/models/supplier.js
index c9af7b297..44549c65c 100644
--- a/modules/supplier/back/models/supplier.js
+++ b/modules/supplier/back/models/supplier.js
@@ -10,6 +10,7 @@ module.exports = Self => {
require('../methods/supplier/freeAgencies')(Self);
require('../methods/supplier/campaignMetricsPdf')(Self);
require('../methods/supplier/campaignMetricsEmail')(Self);
+ require('../methods/supplier/newSupplier')(Self);
Self.validatesPresenceOf('name', {
message: 'The social name cannot be empty'
@@ -19,13 +20,17 @@ module.exports = Self => {
message: 'The supplier name must be unique'
});
- Self.validatesPresenceOf('city', {
- message: 'City cannot be empty'
- });
+ if (this.city) {
+ Self.validatesPresenceOf('city', {
+ message: 'City cannot be empty'
+ });
+ }
- Self.validatesPresenceOf('nif', {
- message: 'The nif cannot be empty'
- });
+ if (this.nif) {
+ Self.validatesPresenceOf('nif', {
+ message: 'The nif cannot be empty'
+ });
+ }
Self.validatesUniquenessOf('nif', {
message: 'TIN must be unique'
@@ -57,6 +62,9 @@ module.exports = Self => {
}
async function tinIsValid(err, done) {
+ if (!this.countryFk)
+ return done();
+
const filter = {
fields: ['code'],
where: {id: this.countryFk}
@@ -80,6 +88,7 @@ module.exports = Self => {
});
async function hasSupplierAccount(err, done) {
+ if (!this.payMethodFk) return done();
const payMethod = await Self.app.models.PayMethod.findById(this.payMethodFk);
const supplierAccount = await Self.app.models.SupplierAccount.findOne({where: {supplierFk: this.id}});
const hasIban = supplierAccount && supplierAccount.iban;
@@ -92,6 +101,7 @@ module.exports = Self => {
}
Self.observe('before save', async function(ctx) {
+ if (ctx.isNewInstance) return;
const loopbackContext = LoopBackContext.getCurrentContext();
const changes = ctx.data || ctx.instance;
const orgData = ctx.currentInstance;
@@ -101,7 +111,7 @@ module.exports = Self => {
const isPayMethodChecked = changes.isPayMethodChecked || orgData.isPayMethodChecked;
const hasChanges = orgData && changes;
const isPayMethodCheckedChanged = hasChanges
- && orgData.isPayMethodChecked != isPayMethodChecked;
+ && orgData.isPayMethodChecked != isPayMethodChecked;
if (isNotFinancial && isPayMethodCheckedChanged)
throw new UserError('You can not modify is pay method checked');
@@ -114,7 +124,7 @@ module.exports = Self => {
const socialName = changes.name || orgData.name;
const hasChanges = orgData && changes;
const socialNameChanged = hasChanges
- && orgData.socialName != socialName;
+ && orgData.socialName != socialName;
if ((socialNameChanged) && !isAlpha(socialName))
throw new UserError('The social name has an invalid format');
diff --git a/modules/supplier/back/models/supplier.json b/modules/supplier/back/models/supplier.json
index b27073ca5..3cd6386a8 100644
--- a/modules/supplier/back/models/supplier.json
+++ b/modules/supplier/back/models/supplier.json
@@ -51,6 +51,9 @@
"isSerious": {
"type": "boolean"
},
+ "isTrucker": {
+ "type": "boolean"
+ },
"note": {
"type": "string"
},
diff --git a/modules/supplier/front/agency-term/create/index.html b/modules/supplier/front/agency-term/create/index.html
index e43f6396a..29d7b9b6a 100644
--- a/modules/supplier/front/agency-term/create/index.html
+++ b/modules/supplier/front/agency-term/create/index.html
@@ -26,6 +26,7 @@
type="number"
label="Minimum M3"
ng-model="$ctrl.supplierAgencyTerm.minimumM3"
+ step="0.01"
rule>
@@ -46,6 +47,7 @@
type="number"
label="M3 Price"
ng-model="$ctrl.supplierAgencyTerm.m3Price"
+ step="0.01"
rule>
diff --git a/modules/supplier/front/consumption/index.html b/modules/supplier/front/consumption/index.html
index 5eaff4bfa..9e3bdac17 100644
--- a/modules/supplier/front/consumption/index.html
+++ b/modules/supplier/front/consumption/index.html
@@ -31,8 +31,8 @@
-
@@ -40,8 +40,8 @@
{{::entry.id}}
Date
{{::entry.shipped | date: 'dd/MM/yyyy'}}
- Reference
- {{::entry.ref}}
+ Reference
+ {{::entry.invoiceNumber}}
@@ -83,8 +83,8 @@
-
diff --git a/modules/supplier/front/consumption/locale/es.yml b/modules/supplier/front/consumption/locale/es.yml
index 6ef67ab2b..08c2a22e5 100644
--- a/modules/supplier/front/consumption/locale/es.yml
+++ b/modules/supplier/front/consumption/locale/es.yml
@@ -1,3 +1,2 @@
-
Total entry: Total entrada
-This supplier doesn't have a contact with an email address: Este proveedor no tiene ningún contacto con una dirección de email
\ No newline at end of file
+This supplier doesn't have a contact with an email address: Este proveedor no tiene ningún contacto con una dirección de email
diff --git a/modules/supplier/front/create/index.html b/modules/supplier/front/create/index.html
new file mode 100644
index 000000000..446a16cb6
--- /dev/null
+++ b/modules/supplier/front/create/index.html
@@ -0,0 +1,29 @@
+
+
+
diff --git a/modules/supplier/front/create/index.js b/modules/supplier/front/create/index.js
new file mode 100644
index 000000000..c33367dac
--- /dev/null
+++ b/modules/supplier/front/create/index.js
@@ -0,0 +1,23 @@
+import ngModule from '../module';
+import Section from 'salix/components/section';
+
+class Controller extends Section {
+ constructor($element, $) {
+ super($element, $);
+ }
+
+ onSubmit() {
+ this.$.watcher.submit().then(
+ json => {
+ this.$state.go(`supplier.card.fiscalData`, {id: json.data.id});
+ }
+ );
+ }
+}
+
+Controller.$inject = ['$element', '$scope'];
+
+ngModule.vnComponent('vnSupplierCreate', {
+ template: require('./index.html'),
+ controller: Controller
+});
diff --git a/modules/supplier/front/descriptor/index.js b/modules/supplier/front/descriptor/index.js
index df9fe2155..a26d9c510 100644
--- a/modules/supplier/front/descriptor/index.js
+++ b/modules/supplier/front/descriptor/index.js
@@ -41,6 +41,7 @@ class Controller extends Descriptor {
'payDay',
'isActive',
'isSerious',
+ 'isTrucker',
'account'
],
include: [
diff --git a/modules/supplier/front/descriptor/index.spec.js b/modules/supplier/front/descriptor/index.spec.js
index 8926fa4d1..4d16c5183 100644
--- a/modules/supplier/front/descriptor/index.spec.js
+++ b/modules/supplier/front/descriptor/index.spec.js
@@ -27,6 +27,7 @@ describe('Supplier Component vnSupplierDescriptor', () => {
'payDay',
'isActive',
'isSerious',
+ 'isTrucker',
'account'
],
include: [
diff --git a/modules/supplier/front/fiscal-data/index.html b/modules/supplier/front/fiscal-data/index.html
index 77a5cce4e..a3ede2058 100644
--- a/modules/supplier/front/fiscal-data/index.html
+++ b/modules/supplier/front/fiscal-data/index.html
@@ -60,6 +60,8 @@
vn-one
label="Account"
ng-model="$ctrl.supplier.account"
+ insertable="true"
+ max-length="10"
rule>
-
-
+
+
-
-
{{name}} ({{country.country}})
+
+
+
+
diff --git a/modules/supplier/front/fiscal-data/locale/es.yml b/modules/supplier/front/fiscal-data/locale/es.yml
index 4cb537198..5232dd95d 100644
--- a/modules/supplier/front/fiscal-data/locale/es.yml
+++ b/modules/supplier/front/fiscal-data/locale/es.yml
@@ -3,3 +3,4 @@ Sage transaction type: Tipo de transacción Sage
Sage withholding: Retención Sage
Supplier activity: Actividad proveedor
Healt register: Pasaporte sanitario
+Trucker: Transportista
\ No newline at end of file
diff --git a/modules/supplier/front/index.js b/modules/supplier/front/index.js
index ba2768854..9216d0781 100644
--- a/modules/supplier/front/index.js
+++ b/modules/supplier/front/index.js
@@ -20,3 +20,4 @@ import './address/create';
import './address/edit';
import './agency-term/index';
import './agency-term/create';
+import './create/index';
diff --git a/modules/supplier/front/index/index.html b/modules/supplier/front/index/index.html
index 87e822eea..49f38cb1b 100644
--- a/modules/supplier/front/index/index.html
+++ b/modules/supplier/front/index/index.html
@@ -58,4 +58,7 @@
-
\ No newline at end of file
+
+
+
+
\ No newline at end of file
diff --git a/modules/supplier/front/index/locale/es.yml b/modules/supplier/front/index/locale/es.yml
index ad8a4f0bb..ce06f462c 100644
--- a/modules/supplier/front/index/locale/es.yml
+++ b/modules/supplier/front/index/locale/es.yml
@@ -2,4 +2,5 @@ Payment deadline: Plazo de pago
Pay day: Dia de pago
Account: Cuenta
Pay method: Metodo de pago
-Tax number: Nif
\ No newline at end of file
+Tax number: Nif
+New supplier: Nuevo proveedor
\ No newline at end of file
diff --git a/modules/supplier/front/routes.json b/modules/supplier/front/routes.json
index 61420b40d..75b8213cb 100644
--- a/modules/supplier/front/routes.json
+++ b/modules/supplier/front/routes.json
@@ -30,7 +30,7 @@
"abstract": true,
"component": "vn-supplier",
"description": "Suppliers"
- },
+ },
{
"url": "/index?q",
"state": "supplier.index",
@@ -51,6 +51,13 @@
"params": {
"supplier": "$ctrl.supplier"
}
+ },
+ {
+ "url": "/create",
+ "state": "supplier.create",
+ "component": "vn-supplier-create",
+ "acl": ["administrative"],
+ "description": "New supplier"
},
{
"url": "/basic-data",
diff --git a/modules/ticket/back/locale/sale/en.yml b/modules/ticket/back/locale/sale/en.yml
new file mode 100644
index 000000000..ae8f67d5e
--- /dev/null
+++ b/modules/ticket/back/locale/sale/en.yml
@@ -0,0 +1,11 @@
+concept: concept
+quantity: quantity
+price: price
+discount: discount
+reserved: reserved
+isPicked: is picked
+created: created
+originalQuantity: original quantity
+itemFk: item
+ticketFk: ticket
+saleFk: sale
diff --git a/modules/ticket/back/locale/sale/es.yml b/modules/ticket/back/locale/sale/es.yml
new file mode 100644
index 000000000..ff8cc5466
--- /dev/null
+++ b/modules/ticket/back/locale/sale/es.yml
@@ -0,0 +1,11 @@
+concept: concepto
+quantity: cantidad
+price: precio
+discount: descuento
+reserved: reservado
+isPicked: esta seleccionado
+created: creado
+originalQuantity: cantidad original
+itemFk: artículo
+ticketFk: ticket
+saleFk: línea
diff --git a/modules/ticket/back/locale/ticket/en.yml b/modules/ticket/back/locale/ticket/en.yml
new file mode 100644
index 000000000..c4ad84232
--- /dev/null
+++ b/modules/ticket/back/locale/ticket/en.yml
@@ -0,0 +1,23 @@
+shipped: shipped
+landed: landed
+nickname: nickname
+location: location
+solution: solution
+packages: packages
+updated: updated
+isDeleted: is deleted
+priority: priority
+zoneFk: zone
+zonePrice: zone price
+zoneBonus: zone bonus
+totalWithVat: total with vat
+totalWithoutVat: total without vat
+clientFk: client
+warehouseFk: warehouse
+refFk: reference
+addressFk: address
+routeFk: route
+companyFk: company
+agencyModeFk: agency
+ticketFk: ticket
+mergedTicket: merged ticket
diff --git a/modules/ticket/back/locale/ticket/es.yml b/modules/ticket/back/locale/ticket/es.yml
new file mode 100644
index 000000000..2c524a74f
--- /dev/null
+++ b/modules/ticket/back/locale/ticket/es.yml
@@ -0,0 +1,23 @@
+shipped: fecha salida
+landed: fecha entrega
+nickname: alias
+location: ubicación
+solution: solución
+packages: embalajes
+updated: fecha última actualización
+isDeleted: esta eliminado
+priority: prioridad
+zoneFk: zona
+zonePrice: precio zona
+zoneBonus: bonus zona
+totalWithVat: total con IVA
+totalWithoutVat: total sin IVA
+clientFk: cliente
+warehouseFk: almacén
+refFk: referencia
+addressFk: dirección
+routeFk: ruta
+companyFk: empresa
+agencyModeFk: agencia
+ticketFk: ticket
+mergedTicket: ticket fusionado
diff --git a/modules/ticket/back/methods/boxing/getVideo.js b/modules/ticket/back/methods/boxing/getVideo.js
new file mode 100644
index 000000000..6f471e837
--- /dev/null
+++ b/modules/ticket/back/methods/boxing/getVideo.js
@@ -0,0 +1,88 @@
+const https = require('https');
+
+module.exports = Self => {
+ Self.remoteMethod('getVideo', {
+ description: 'Get packing video',
+ accessType: 'READ',
+ accepts: [
+ {
+ arg: 'id',
+ type: 'number',
+ required: true,
+ description: 'Ticket id'
+ },
+ {
+ arg: 'filename',
+ type: 'string',
+ required: true,
+ description: 'Time to add'
+ },
+ {
+ arg: 'req',
+ type: 'object',
+ http: {source: 'req'}
+ },
+ {
+ arg: 'res',
+ type: 'object',
+ http: {source: 'res'}
+ }
+ ],
+ http: {
+ path: `/getVideo`,
+ verb: 'GET',
+ },
+ });
+
+ Self.getVideo = async(id, filename, req, res, options) => {
+ const models = Self.app.models;
+ const myOptions = {};
+
+ if (typeof options == 'object')
+ Object.assign(myOptions, options);
+
+ const packingSiteConfig = await models.PackingSiteConfig.findOne({}, myOptions);
+
+ const query = `
+ SELECT
+ e.id,
+ ps.monitorId,
+ e.created
+ FROM expedition e
+ JOIN host h ON Convert(h.code USING utf8mb3) COLLATE utf8mb3_unicode_ci = e.hostFk
+ JOIN packingSite ps ON ps.hostFk = h.id
+ WHERE e.id = ?;`;
+ const [expedition] = await models.Expedition.rawSql(query, [id]);
+ const monitorId = expedition.monitorId;
+
+ const videoUrl =
+ `/${packingSiteConfig.shinobiToken}/videos/${packingSiteConfig.shinobiGroupKey}/${monitorId}/${filename}`;
+
+ const headers = Object.assign({}, req.headers, {
+ host: 'shinobi.verdnatura.es'
+ });
+ const httpOptions = {
+ host: 'shinobi.verdnatura.es',
+ path: videoUrl,
+ port: 443,
+ headers
+ };
+
+ return new Promise((resolve, reject) => {
+ const req = https.request(httpOptions, shinobiRes => {
+ shinobiRes.pause();
+ res.writeHeader(shinobiRes.statusCode, shinobiRes.headers);
+ shinobiRes.pipe(res);
+ });
+
+ req.on('error', () => {
+ reject();
+ });
+
+ req.on('end', () => {
+ resolve();
+ });
+ req.end();
+ });
+ };
+};
diff --git a/modules/ticket/back/methods/boxing/getVideoList.js b/modules/ticket/back/methods/boxing/getVideoList.js
new file mode 100644
index 000000000..3d45a720d
--- /dev/null
+++ b/modules/ticket/back/methods/boxing/getVideoList.js
@@ -0,0 +1,78 @@
+const axios = require('axios');
+const models = require('vn-loopback/server/server').models;
+
+module.exports = Self => {
+ Self.remoteMethod('getVideoList', {
+ description: 'Get video list of expedition id',
+ accessType: 'READ',
+ accepts: [
+ {
+ arg: 'id',
+ type: 'number',
+ required: true,
+ description: 'Expedition id'
+ }, {
+ arg: 'from',
+ type: 'number',
+ required: false,
+ }, {
+ arg: 'to',
+ type: 'number',
+ required: false,
+ }
+ ], returns: {
+ type: ['object'],
+ root: true
+ },
+ http: {
+ path: `/getVideoList`,
+ verb: 'GET',
+ },
+ });
+
+ Self.getVideoList = async(id, from, to, options) => {
+ const myOptions = {};
+
+ if (typeof options == 'object')
+ Object.assign(myOptions, options);
+
+ const packingSiteConfig = await models.PackingSiteConfig.findOne({}, myOptions);
+
+ const query = `
+ SELECT
+ e.id,
+ ps.monitorId,
+ e.created
+ FROM expedition e
+ JOIN host h ON Convert(h.code USING utf8mb3) COLLATE utf8mb3_unicode_ci = e.hostFk
+ JOIN packingSite ps ON ps.hostFk = h.id
+ WHERE e.id = ?;`;
+ const [expedition] = await models.PackingSiteConfig.rawSql(query, [id]);
+
+ if (!from && !expedition) return [];
+ let start = new Date(expedition.created);
+ let end = new Date(start.getTime() + (packingSiteConfig.avgBoxingTime * 1000));
+
+ if (from && to) {
+ start.setHours(from, 0, 0);
+ end.setHours(to, 0, 0);
+ }
+ const offset = start.getTimezoneOffset();
+ start = new Date(start.getTime() - (offset * 60 * 1000));
+ end = new Date(end.getTime() - (offset * 60 * 1000));
+
+ const videoUrl =
+ `/${packingSiteConfig.shinobiToken}/videos/${packingSiteConfig.shinobiGroupKey}/${expedition.monitorId}`;
+ const timeUrl = `?start=${start.toISOString().split('.')[0]}&end=${end.toISOString().split('.')[0]}`;
+ const url = `${packingSiteConfig.shinobiUrl}${videoUrl}${timeUrl}`;
+
+ let response;
+
+ try {
+ response = await axios.get(url);
+ } catch (e) {
+ return [];
+ }
+ return response.data.videos.map(video => video.filename);
+ };
+};
diff --git a/modules/ticket/back/methods/boxing/specs/getVideo.spec.js b/modules/ticket/back/methods/boxing/specs/getVideo.spec.js
new file mode 100644
index 000000000..8e8cdc5b9
--- /dev/null
+++ b/modules/ticket/back/methods/boxing/specs/getVideo.spec.js
@@ -0,0 +1,40 @@
+const models = require('vn-loopback/server/server').models;
+const https = require('https');
+
+xdescribe('boxing getVideo()', () => {
+ it('should return data', async() => {
+ const tx = await models.PackingSiteConfig.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const id = 1;
+ const video = 'video.mp4';
+
+ const response = {
+ pipe: () => {},
+ on: () => {},
+ end: () => {},
+ };
+
+ const req = {
+ headers: 'apiHeader',
+ data: {
+ pipe: () => {},
+ on: () => {},
+ }
+ };
+
+ spyOn(https, 'request').and.returnValue(response);
+
+ const result = await models.Boxing.getVideo(id, video, req, null, options);
+
+ expect(result[0]).toEqual(response.data.videos[0].filename);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+});
diff --git a/modules/ticket/back/methods/boxing/specs/getVideoList.spec.js b/modules/ticket/back/methods/boxing/specs/getVideoList.spec.js
new file mode 100644
index 000000000..c6d1a3e07
--- /dev/null
+++ b/modules/ticket/back/methods/boxing/specs/getVideoList.spec.js
@@ -0,0 +1,36 @@
+const models = require('vn-loopback/server/server').models;
+const axios = require('axios');
+
+describe('boxing getVideoList()', () => {
+ it('should return video list', async() => {
+ const tx = await models.PackingSiteConfig.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const id = 1;
+ const from = 1;
+ const to = 2;
+
+ const response = {
+ data: {
+ videos: [{
+ id: 1,
+ filename: 'video1.mp4'
+ }]
+ }
+ };
+
+ spyOn(axios, 'get').and.returnValue(new Promise(resolve => resolve(response)));
+
+ const result = await models.Boxing.getVideoList(id, from, to, options);
+
+ expect(result[0]).toEqual(response.data.videos[0].filename);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+});
diff --git a/modules/ticket/back/methods/expedition/deleteExpeditions.js b/modules/ticket/back/methods/expedition/deleteExpeditions.js
new file mode 100644
index 000000000..2419d3a5e
--- /dev/null
+++ b/modules/ticket/back/methods/expedition/deleteExpeditions.js
@@ -0,0 +1,52 @@
+
+module.exports = Self => {
+ Self.remoteMethod('deleteExpeditions', {
+ description: 'Delete the selected expeditions',
+ accessType: 'WRITE',
+ accepts: [{
+ arg: 'expeditionIds',
+ type: ['number'],
+ required: true,
+ description: 'The expeditions ids to delete'
+ }],
+ returns: {
+ type: ['object'],
+ root: true
+ },
+ http: {
+ path: `/deleteExpeditions`,
+ verb: 'POST'
+ }
+ });
+
+ Self.deleteExpeditions = async(expeditionIds, options) => {
+ const models = Self.app.models;
+ const myOptions = {};
+ let tx;
+
+ if (typeof options == 'object')
+ Object.assign(myOptions, options);
+
+ if (!myOptions.transaction) {
+ tx = await Self.beginTransaction({});
+ myOptions.transaction = tx;
+ }
+
+ try {
+ const promises = [];
+ for (let expeditionId of expeditionIds) {
+ const deletedExpedition = models.Expedition.destroyById(expeditionId, myOptions);
+ promises.push(deletedExpedition);
+ }
+
+ const deletedExpeditions = await Promise.all(promises);
+
+ if (tx) await tx.commit();
+
+ return deletedExpeditions;
+ } catch (e) {
+ if (tx) await tx.rollback();
+ throw e;
+ }
+ };
+};
diff --git a/modules/ticket/back/methods/expedition/filter.js b/modules/ticket/back/methods/expedition/filter.js
index 723d7c844..fcf0bd1b3 100644
--- a/modules/ticket/back/methods/expedition/filter.js
+++ b/modules/ticket/back/methods/expedition/filter.js
@@ -32,12 +32,11 @@ module.exports = Self => {
`SELECT
e.id,
e.ticketFk,
- e.isBox,
+ e.freightItemFk,
e.workerFk,
i1.name packageItemName,
e.counter,
i2.name freightItemName,
- e.itemFk,
u.name userName,
e.created,
e.externalId,
@@ -50,10 +49,10 @@ module.exports = Self => {
est.description state
FROM vn.expedition e
LEFT JOIN vn.expeditionStateType est ON est.id = e.stateTypeFk
- LEFT JOIN vn.item i2 ON i2.id = e.itemFk
- INNER JOIN vn.item i1 ON i1.id = e.isBox
+ INNER JOIN vn.item i1 ON i1.id = e.freightItemFk
LEFT JOIN vn.packaging p ON p.id = e.packagingFk
LEFT JOIN vn.item i3 ON i3.id = p.itemFk
+ LEFT JOIN vn.item i2 ON i2.id = p.itemFk
LEFT JOIN account.user u ON u.id = e.workerFk
LEFT JOIN vn.expeditionScan es ON es.expeditionFk = e.id
LEFT JOIN account.user su ON su.id = es.workerFk
diff --git a/modules/ticket/back/methods/expedition/moveExpeditions.js b/modules/ticket/back/methods/expedition/moveExpeditions.js
new file mode 100644
index 000000000..cef35ab86
--- /dev/null
+++ b/modules/ticket/back/methods/expedition/moveExpeditions.js
@@ -0,0 +1,93 @@
+const UserError = require('vn-loopback/util/user-error');
+
+module.exports = Self => {
+ Self.remoteMethodCtx('moveExpeditions', {
+ description: 'Move the selected expeditions to another ticket',
+ accessType: 'WRITE',
+ accepts: [{
+ arg: 'clientId',
+ type: 'number',
+ description: `The client id`,
+ required: true
+ },
+ {
+ arg: 'landed',
+ type: 'date',
+ description: `The landing date`
+ },
+ {
+ arg: 'warehouseId',
+ type: 'number',
+ description: `The warehouse id`,
+ required: true
+ },
+ {
+ arg: 'addressId',
+ type: 'number',
+ description: `The address id`,
+ required: true
+ },
+ {
+ arg: 'agencyModeId',
+ type: 'any',
+ description: `The agencyMode id`
+ },
+ {
+ arg: 'routeId',
+ type: 'any',
+ description: `The route id`
+ },
+ {
+ arg: 'expeditionIds',
+ type: ['number'],
+ required: true,
+ description: 'The expeditions ids to move'
+ }],
+ returns: {
+ type: 'object',
+ root: true
+ },
+ http: {
+ path: `/moveExpeditions`,
+ verb: 'POST'
+ }
+ });
+
+ Self.moveExpeditions = async(ctx, options) => {
+ const models = Self.app.models;
+ const args = ctx.args;
+ const myOptions = {};
+ let tx;
+
+ if (typeof options == 'object')
+ Object.assign(myOptions, options);
+
+ if (!myOptions.transaction) {
+ tx = await Self.beginTransaction({});
+ myOptions.transaction = tx;
+ }
+
+ try {
+ if (args.routeId) {
+ const route = await models.Route.findById(args.routeId, null, myOptions);
+ if (!route) throw new UserError('This route does not exists');
+ }
+ const ticket = await models.Ticket.new(ctx, myOptions);
+ const promises = [];
+ for (let expeditionsId of args.expeditionIds) {
+ const expeditionToUpdate = await models.Expedition.findById(expeditionsId, null, myOptions);
+ const expeditionUpdated = expeditionToUpdate.updateAttribute('ticketFk', ticket.id, myOptions);
+ promises.push(expeditionUpdated);
+ }
+
+ await Promise.all(promises);
+
+ if (tx) await tx.commit();
+
+ return ticket;
+ } catch (e) {
+ if (tx) await tx.rollback();
+ throw e;
+ }
+ };
+};
diff --git a/modules/ticket/back/methods/expedition/specs/deleteExpeditions.spec.js b/modules/ticket/back/methods/expedition/specs/deleteExpeditions.spec.js
new file mode 100644
index 000000000..14bdf7aea
--- /dev/null
+++ b/modules/ticket/back/methods/expedition/specs/deleteExpeditions.spec.js
@@ -0,0 +1,22 @@
+const models = require('vn-loopback/server/server').models;
+
+describe('ticket deleteExpeditions()', () => {
+ it('should delete the selected expeditions', async() => {
+ const tx = await models.Expedition.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const expeditionIds = [12, 13];
+ const result = await models.Expedition.deleteExpeditions(expeditionIds, options);
+
+ expect(result.length).toEqual(2);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+});
+
diff --git a/modules/ticket/back/methods/expedition/specs/moveExpeditions.spec.js b/modules/ticket/back/methods/expedition/specs/moveExpeditions.spec.js
new file mode 100644
index 000000000..67919e76c
--- /dev/null
+++ b/modules/ticket/back/methods/expedition/specs/moveExpeditions.spec.js
@@ -0,0 +1,39 @@
+const models = require('vn-loopback/server/server').models;
+
+describe('ticket moveExpeditions()', () => {
+ it('should move the selected expeditions to new ticket', async() => {
+ const tx = await models.Expedition.beginTransaction({});
+ const ctx = {
+ req: {accessToken: {userId: 9}},
+ args: {},
+ params: {}
+ };
+ const myCtx = Object.assign({}, ctx);
+
+ try {
+ const options = {transaction: tx};
+ myCtx.args = {
+ clientId: 1101,
+ landed: new Date(),
+ warehouseId: 1,
+ addressId: 121,
+ agencyModeId: 1,
+ routeId: null,
+ expeditionIds: [1, 2]
+
+ };
+
+ const ticket = await models.Expedition.moveExpeditions(myCtx, options);
+
+ const newestTicketIdInFixtures = 27;
+
+ expect(ticket.id).toBeGreaterThan(newestTicketIdInFixtures);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+});
+
diff --git a/modules/ticket/back/methods/sale/canEdit.js b/modules/ticket/back/methods/sale/canEdit.js
index 4e0fc5f8b..f44bd6743 100644
--- a/modules/ticket/back/methods/sale/canEdit.js
+++ b/modules/ticket/back/methods/sale/canEdit.js
@@ -1,10 +1,12 @@
+const UserError = require('vn-loopback/util/user-error');
+
module.exports = Self => {
Self.remoteMethodCtx('canEdit', {
description: 'Check if all the received sales are aditable',
accessType: 'READ',
accepts: [{
arg: 'sales',
- type: ['object'],
+ type: ['number'],
required: true
}],
returns: {
@@ -12,29 +14,48 @@ module.exports = Self => {
root: true
},
http: {
- path: `/isEditable`,
- verb: 'get'
+ path: `/canEdit`,
+ verb: 'GET'
}
});
Self.canEdit = async(ctx, sales, options) => {
const models = Self.app.models;
- const userId = ctx.req.accessToken.userId;
const myOptions = {};
if (typeof options == 'object')
Object.assign(myOptions, options);
- const idsCollection = sales.map(sale => sale.id);
+ const salesData = await models.Sale.find({
+ fields: ['id', 'itemFk', 'ticketFk'],
+ where: {id: {inq: sales}},
+ include:
+ {
+ relation: 'item',
+ scope: {
+ fields: ['id', 'isFloramondo'],
+ }
+ }
+ }, myOptions);
- const saleTracking = await models.SaleTracking.find({where: {saleFk: {inq: idsCollection}}}, myOptions);
+ const ticketId = salesData[0].ticketFk;
- const hasSaleTracking = saleTracking.length;
+ const isTicketEditable = await models.Ticket.isEditable(ctx, ticketId, myOptions);
+ if (!isTicketEditable)
+ throw new UserError(`The sales of this ticket can't be modified`);
- const isProductionRole = await models.Account.hasRole(userId, 'production', myOptions);
+ const hasSaleTracking = await models.SaleTracking.findOne({where: {saleFk: {inq: sales}}}, myOptions);
+ const hasSaleCloned = await models.SaleCloned.findOne({where: {saleClonedFk: {inq: sales}}}, myOptions);
+ const hasSaleFloramondo = salesData.find(sale => sale.item().isFloramondo);
- const canEdit = (isProductionRole || !hasSaleTracking);
+ const canEditTracked = await models.ACL.checkAccessAcl(ctx, 'Sale', 'editTracked');
+ const canEditCloned = await models.ACL.checkAccessAcl(ctx, 'Sale', 'editCloned');
+ const canEditFloramondo = await models.ACL.checkAccessAcl(ctx, 'Sale', 'editFloramondo');
- return canEdit;
+ const shouldEditTracked = canEditTracked || !hasSaleTracking;
+ const shouldEditCloned = canEditCloned || !hasSaleCloned;
+ const shouldEditFloramondo = canEditFloramondo || !hasSaleFloramondo;
+
+ return shouldEditTracked && shouldEditCloned && shouldEditFloramondo;
};
};
diff --git a/modules/ticket/back/methods/sale/deleteSales.js b/modules/ticket/back/methods/sale/deleteSales.js
index c1359569d..c045b9197 100644
--- a/modules/ticket/back/methods/sale/deleteSales.js
+++ b/modules/ticket/back/methods/sale/deleteSales.js
@@ -41,7 +41,11 @@ module.exports = Self => {
}
try {
- const canEditSales = await models.Sale.canEdit(ctx, sales, myOptions);
+ const saleIds = sales.map(sale => sale.id);
+
+ const canEditSales = await models.Sale.canEdit(ctx, saleIds, myOptions);
+ if (!canEditSales)
+ throw new UserError(`Sale(s) blocked, please contact production`);
const ticket = await models.Ticket.findById(ticketId, {
include: {
@@ -57,13 +61,6 @@ module.exports = Self => {
}
}, myOptions);
- const isTicketEditable = await models.Ticket.isEditable(ctx, ticketId, myOptions);
- if (!isTicketEditable)
- throw new UserError(`The sales of this ticket can't be modified`);
-
- if (!canEditSales)
- throw new UserError(`Sale(s) blocked, please contact production`);
-
const promises = [];
let deletions = '';
for (let sale of sales) {
diff --git a/modules/ticket/back/methods/sale/recalculatePrice.js b/modules/ticket/back/methods/sale/recalculatePrice.js
index 59c7d3535..38c68d7f6 100644
--- a/modules/ticket/back/methods/sale/recalculatePrice.js
+++ b/modules/ticket/back/methods/sale/recalculatePrice.js
@@ -1,4 +1,5 @@
const UserError = require('vn-loopback/util/user-error');
+
module.exports = Self => {
Self.remoteMethodCtx('recalculatePrice', {
description: 'Calculates the price of sales and its components',
@@ -34,15 +35,9 @@ module.exports = Self => {
}
try {
- const salesIds = [];
- for (let sale of sales)
- salesIds.push(sale.id);
+ const salesIds = sales.map(sale => sale.id);
- const isEditable = await models.Ticket.isEditable(ctx, sales[0].ticketFk, myOptions);
- if (!isEditable)
- throw new UserError(`The sales of this ticket can't be modified`);
-
- const canEditSale = await models.Sale.canEdit(ctx, sales, myOptions);
+ const canEditSale = await models.Sale.canEdit(ctx, salesIds, myOptions);
if (!canEditSale)
throw new UserError(`Sale(s) blocked, please contact production`);
diff --git a/modules/ticket/back/methods/sale/reserve.js b/modules/ticket/back/methods/sale/reserve.js
index b368f6fc3..648e6de23 100644
--- a/modules/ticket/back/methods/sale/reserve.js
+++ b/modules/ticket/back/methods/sale/reserve.js
@@ -49,12 +49,9 @@ module.exports = Self => {
}
try {
- const isTicketEditable = await models.Ticket.isEditable(ctx, ticketId, myOptions);
- if (!isTicketEditable)
- throw new UserError(`The sales of this ticket can't be modified`);
-
- const canEditSale = await models.Sale.canEdit(ctx, sales, myOptions);
+ const salesIds = sales.map(sale => sale.id);
+ const canEditSale = await models.Sale.canEdit(ctx, salesIds, myOptions);
if (!canEditSale)
throw new UserError(`Sale(s) blocked, please contact production`);
diff --git a/modules/ticket/back/methods/sale/specs/canEdit.spec.js b/modules/ticket/back/methods/sale/specs/canEdit.spec.js
index 4f6747257..2aa873df5 100644
--- a/modules/ticket/back/methods/sale/specs/canEdit.spec.js
+++ b/modules/ticket/back/methods/sale/specs/canEdit.spec.js
@@ -1,69 +1,193 @@
const models = require('vn-loopback/server/server').models;
describe('sale canEdit()', () => {
- it('should return true if the role is production regardless of the saleTrackings', async() => {
- const tx = await models.Sale.beginTransaction({});
+ const employeeId = 1;
- try {
- const options = {transaction: tx};
+ describe('sale editTracked', () => {
+ it('should return true if the role is production regardless of the saleTrackings', async() => {
+ const tx = await models.Sale.beginTransaction({});
- const productionUserID = 49;
- const ctx = {req: {accessToken: {userId: productionUserID}}};
+ try {
+ const options = {transaction: tx};
- const sales = [{id: 3}];
+ const productionUserID = 49;
+ const ctx = {req: {accessToken: {userId: productionUserID}}};
- const result = await models.Sale.canEdit(ctx, sales, options);
+ const sales = [25];
- expect(result).toEqual(true);
+ const result = await models.Sale.canEdit(ctx, sales, options);
- await tx.rollback();
- } catch (e) {
- await tx.rollback();
- throw e;
- }
+ expect(result).toEqual(true);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return true if the role is not production and none of the sales has saleTracking', async() => {
+ const tx = await models.Sale.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const salesPersonUserID = 18;
+ const ctx = {req: {accessToken: {userId: salesPersonUserID}}};
+
+ const sales = [10];
+
+ const result = await models.Sale.canEdit(ctx, sales, options);
+
+ expect(result).toEqual(true);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return false if any of the sales has a saleTracking record', async() => {
+ const tx = await models.Sale.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const buyerId = 35;
+ const ctx = {req: {accessToken: {userId: buyerId}}};
+
+ const sales = [31];
+
+ const result = await models.Sale.canEdit(ctx, sales, options);
+
+ expect(result).toEqual(false);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
});
- it('should return true if the role is not production and none of the sales has saleTracking', async() => {
- const tx = await models.Sale.beginTransaction({});
+ describe('sale editCloned', () => {
+ const saleCloned = [29];
+ it('should return false if any of the sales is cloned', async() => {
+ const tx = await models.Sale.beginTransaction({});
- try {
- const options = {transaction: tx};
+ try {
+ const options = {transaction: tx};
- const salesPersonUserID = 18;
- const ctx = {req: {accessToken: {userId: salesPersonUserID}}};
+ const buyerId = 35;
+ const ctx = {req: {accessToken: {userId: buyerId}}};
- const sales = [{id: 10}];
+ const result = await models.Sale.canEdit(ctx, saleCloned, options);
- const result = await models.Sale.canEdit(ctx, sales, options);
+ expect(result).toEqual(false);
- expect(result).toEqual(true);
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
- await tx.rollback();
- } catch (e) {
- await tx.rollback();
- throw e;
- }
+ it('should return true if any of the sales is cloned and has the correct role', async() => {
+ const tx = await models.Sale.beginTransaction({});
+ const roleEnabled = await models.ACL.findOne({
+ where: {
+ model: 'Sale',
+ property: 'editCloned',
+ permission: 'ALLOW'
+ }
+ });
+ if (!roleEnabled || !roleEnabled.principalId) return await tx.rollback();
+
+ try {
+ const options = {transaction: tx};
+
+ const role = await models.Role.findOne({
+ where: {
+ name: roleEnabled.principalId
+ }
+ });
+ const ctx = {req: {accessToken: {userId: role.id}}};
+
+ const result = await models.Sale.canEdit(ctx, saleCloned, options);
+
+ expect(result).toEqual(true);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
});
- it('should return false if any of the sales has a saleTracking record', async() => {
- const tx = await models.Sale.beginTransaction({});
+ describe('sale editFloramondo', () => {
+ it('should return false if any of the sales isFloramondo', async() => {
+ const tx = await models.Sale.beginTransaction({});
+ const sales = [26];
- try {
- const options = {transaction: tx};
+ try {
+ const options = {transaction: tx};
- const salesPersonUserID = 18;
- const ctx = {req: {accessToken: {userId: salesPersonUserID}}};
+ const ctx = {req: {accessToken: {userId: employeeId}}};
- const sales = [{id: 3}];
+ // For test
+ const saleToEdit = await models.Sale.findById(sales[0], null, options);
+ await saleToEdit.updateAttribute('itemFk', 9, options);
- const result = await models.Sale.canEdit(ctx, sales, options);
+ const result = await models.Sale.canEdit(ctx, sales, options);
- expect(result).toEqual(false);
+ expect(result).toEqual(false);
- await tx.rollback();
- } catch (e) {
- await tx.rollback();
- throw e;
- }
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return true if any of the sales is of isFloramondo and has the correct role', async() => {
+ const tx = await models.Sale.beginTransaction({});
+ const sales = [26];
+
+ const roleEnabled = await models.ACL.findOne({
+ where: {
+ model: 'Sale',
+ property: 'editFloramondo',
+ permission: 'ALLOW'
+ }
+ });
+
+ if (!roleEnabled || !roleEnabled.principalId) return await tx.rollback();
+
+ try {
+ const options = {transaction: tx};
+
+ const role = await models.Role.findOne({
+ where: {
+ name: roleEnabled.principalId
+ }
+ });
+ const ctx = {req: {accessToken: {userId: role.id}}};
+
+ // For test
+ const saleToEdit = await models.Sale.findById(sales[0], null, options);
+ await saleToEdit.updateAttribute('itemFk', 9, options);
+
+ const result = await models.Sale.canEdit(ctx, sales, options);
+
+ expect(result).toEqual(true);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
});
});
diff --git a/modules/ticket/back/methods/sale/specs/reserve.spec.js b/modules/ticket/back/methods/sale/specs/reserve.spec.js
index c4b3b4e5d..7ab79f9c0 100644
--- a/modules/ticket/back/methods/sale/specs/reserve.spec.js
+++ b/modules/ticket/back/methods/sale/specs/reserve.spec.js
@@ -3,7 +3,7 @@ const models = require('vn-loopback/server/server').models;
describe('sale reserve()', () => {
const ctx = {
req: {
- accessToken: {userId: 9},
+ accessToken: {userId: 1},
headers: {origin: 'localhost:5000'},
__: () => {}
}
diff --git a/modules/ticket/back/methods/sale/specs/updateConcept.spec.js b/modules/ticket/back/methods/sale/specs/updateConcept.spec.js
index 01f610d36..0e7e9bf0f 100644
--- a/modules/ticket/back/methods/sale/specs/updateConcept.spec.js
+++ b/modules/ticket/back/methods/sale/specs/updateConcept.spec.js
@@ -2,7 +2,7 @@ const models = require('vn-loopback/server/server').models;
describe('sale updateConcept()', () => {
const ctx = {req: {accessToken: {userId: 9}}};
- const saleId = 1;
+ const saleId = 25;
it('should throw if ID was undefined', async() => {
const tx = await models.Sale.beginTransaction({});
diff --git a/modules/ticket/back/methods/sale/specs/updatePrice.spec.js b/modules/ticket/back/methods/sale/specs/updatePrice.spec.js
index e76511421..51cd2403f 100644
--- a/modules/ticket/back/methods/sale/specs/updatePrice.spec.js
+++ b/modules/ticket/back/methods/sale/specs/updatePrice.spec.js
@@ -79,10 +79,18 @@ describe('sale updatePrice()', () => {
const price = 5.4;
const originalSalesPersonMana = await models.WorkerMana.findById(18, null, options);
const manaComponent = await models.Component.findOne({where: {code: 'mana'}}, options);
+ const teamOne = 96;
+ const userId = ctx.req.accessToken.userId;
+
+ const business = await models.Business.findOne({where: {workerFk: userId}}, options);
+ await business.updateAttribute('departmentFk', teamOne, options);
await models.Sale.updatePrice(ctx, saleId, price, options);
const updatedSale = await models.Sale.findById(saleId, null, options);
- createdSaleComponent = await models.SaleComponent.findOne({where: {saleFk: saleId, componentFk: manaComponent.id}}, options);
+ const createdSaleComponent = await models.SaleComponent.findOne({
+ where: {
+ saleFk: saleId, componentFk: manaComponent.id
+ }}, options);
expect(updatedSale.price).toBe(price);
expect(createdSaleComponent.value).toEqual(-2.04);
diff --git a/modules/ticket/back/methods/sale/specs/updateQuantity.spec.js b/modules/ticket/back/methods/sale/specs/updateQuantity.spec.js
index 4c961faab..53a05cd7e 100644
--- a/modules/ticket/back/methods/sale/specs/updateQuantity.spec.js
+++ b/modules/ticket/back/methods/sale/specs/updateQuantity.spec.js
@@ -9,32 +9,21 @@ describe('sale updateQuantity()', () => {
}
};
- it('should throw an error if the quantity is not a number', async() => {
- const tx = await models.Sale.beginTransaction({});
-
- let error;
- try {
- const options = {transaction: tx};
-
- await models.Sale.updateQuantity(ctx, 1, 'wrong quantity!', options);
-
- await tx.rollback();
- } catch (e) {
- await tx.rollback();
- error = e;
- }
-
- expect(error).toEqual(new Error('The value should be a number'));
- });
-
it('should throw an error if the quantity is greater than it should be', async() => {
+ const ctx = {
+ req: {
+ accessToken: {userId: 1},
+ headers: {origin: 'localhost:5000'},
+ __: () => {}
+ }
+ };
const tx = await models.Sale.beginTransaction({});
let error;
try {
const options = {transaction: tx};
- await models.Sale.updateQuantity(ctx, 1, 99, options);
+ await models.Sale.updateQuantity(ctx, 17, 99, options);
await tx.rollback();
} catch (e) {
@@ -45,21 +34,60 @@ describe('sale updateQuantity()', () => {
expect(error).toEqual(new Error('The new quantity should be smaller than the old one'));
});
- it('should update the quantity of a given sale current line', async() => {
+ it('should add quantity if the quantity is greater than it should be and is role advanced', async() => {
const tx = await models.Sale.beginTransaction({});
+ const saleId = 17;
+ const buyerId = 35;
+ const ctx = {
+ req: {
+ accessToken: {userId: buyerId},
+ headers: {origin: 'localhost:5000'},
+ __: () => {}
+ }
+ };
try {
const options = {transaction: tx};
- const originalLine = await models.Sale.findOne({where: {id: 1}, fields: ['quantity']}, options);
+ const isRoleAdvanced = await models.Ticket.isRoleAdvanced(ctx, options);
- expect(originalLine.quantity).toEqual(5);
+ expect(isRoleAdvanced).toEqual(true);
- await models.Sale.updateQuantity(ctx, 1, 4, options);
+ const originalLine = await models.Sale.findOne({where: {id: saleId}, fields: ['quantity']}, options);
- const modifiedLine = await models.Sale.findOne({where: {id: 1}, fields: ['quantity']}, options);
+ expect(originalLine.quantity).toEqual(30);
- expect(modifiedLine.quantity).toEqual(4);
+ const newQuantity = originalLine.quantity + 1;
+ await models.Sale.updateQuantity(ctx, saleId, newQuantity, options);
+
+ const modifiedLine = await models.Sale.findOne({where: {id: saleId}, fields: ['quantity']}, options);
+
+ expect(modifiedLine.quantity).toEqual(newQuantity);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should update the quantity of a given sale current line', async() => {
+ const tx = await models.Sale.beginTransaction({});
+ const saleId = 25;
+ const newQuantity = 4;
+
+ try {
+ const options = {transaction: tx};
+
+ const originalLine = await models.Sale.findOne({where: {id: saleId}, fields: ['quantity']}, options);
+
+ expect(originalLine.quantity).toEqual(20);
+
+ await models.Sale.updateQuantity(ctx, saleId, newQuantity, options);
+
+ const modifiedLine = await models.Sale.findOne({where: {id: saleId}, fields: ['quantity']}, options);
+
+ expect(modifiedLine.quantity).toEqual(newQuantity);
await tx.rollback();
} catch (e) {
diff --git a/modules/ticket/back/methods/sale/specs/usesMana.spec.js b/modules/ticket/back/methods/sale/specs/usesMana.spec.js
new file mode 100644
index 000000000..777bdc8f0
--- /dev/null
+++ b/modules/ticket/back/methods/sale/specs/usesMana.spec.js
@@ -0,0 +1,48 @@
+const models = require('vn-loopback/server/server').models;
+
+describe('sale usesMana()', () => {
+ const ctx = {
+ req: {
+ accessToken: {userId: 18}
+ }
+ };
+
+ it('should return that the worker uses mana', async() => {
+ const tx = await models.Sale.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+ const teamOne = 96;
+ const userId = ctx.req.accessToken.userId;
+
+ const business = await models.Business.findOne({where: {workerFk: userId}}, options);
+ await business.updateAttribute('departmentFk', teamOne, options);
+
+ const usesMana = await models.Sale.usesMana(ctx, options);
+
+ expect(usesMana).toBe(true);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return that the worker not uses mana', async() => {
+ const tx = await models.Sale.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const usesMana = await models.Sale.usesMana(ctx, options);
+
+ expect(usesMana).toBe(false);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+});
diff --git a/modules/ticket/back/methods/sale/updatePrice.js b/modules/ticket/back/methods/sale/updatePrice.js
index bbd9d154d..8f27e1af5 100644
--- a/modules/ticket/back/methods/sale/updatePrice.js
+++ b/modules/ticket/back/methods/sale/updatePrice.js
@@ -66,18 +66,14 @@ module.exports = Self => {
const sale = await models.Sale.findById(id, filter, myOptions);
- const isEditable = await models.Ticket.isEditable(ctx, sale.ticketFk, myOptions);
- if (!isEditable)
- throw new UserError(`The sales of this ticket can't be modified`);
-
const canEditSale = await models.Sale.canEdit(ctx, [id], myOptions);
-
if (!canEditSale)
throw new UserError(`Sale(s) blocked, please contact production`);
const oldPrice = sale.price;
const userId = ctx.req.accessToken.userId;
- const usesMana = await models.WorkerMana.findOne({where: {workerFk: userId}, fields: 'amount'}, myOptions);
+
+ const usesMana = await models.Sale.usesMana(ctx, myOptions);
const componentCode = usesMana ? 'mana' : 'buyerDiscount';
const discount = await models.Component.findOne({where: {code: componentCode}}, myOptions);
const componentId = discount.id;
@@ -88,7 +84,6 @@ module.exports = Self => {
saleFk: id
};
const saleComponent = await models.SaleComponent.findOne({where}, myOptions);
-
if (saleComponent) {
await models.SaleComponent.updateAll(where, {
value: saleComponent.value + componentValue
diff --git a/modules/ticket/back/methods/sale/updateQuantity.js b/modules/ticket/back/methods/sale/updateQuantity.js
index 24e3736f3..8cf0720ce 100644
--- a/modules/ticket/back/methods/sale/updateQuantity.js
+++ b/modules/ticket/back/methods/sale/updateQuantity.js
@@ -42,13 +42,9 @@ module.exports = Self => {
try {
const canEditSale = await models.Sale.canEdit(ctx, [id], myOptions);
-
if (!canEditSale)
throw new UserError(`Sale(s) blocked, please contact production`);
- if (isNaN(newQuantity))
- throw new UserError(`The value should be a number`);
-
const filter = {
include: {
relation: 'ticket',
@@ -70,7 +66,8 @@ module.exports = Self => {
const sale = await models.Sale.findById(id, filter, myOptions);
- if (newQuantity > sale.quantity)
+ const isRoleAdvanced = await models.Ticket.isRoleAdvanced(ctx, myOptions);
+ if (newQuantity > sale.quantity && !isRoleAdvanced)
throw new UserError('The new quantity should be smaller than the old one');
const oldQuantity = sale.quantity;
diff --git a/modules/ticket/back/methods/sale/usesMana.js b/modules/ticket/back/methods/sale/usesMana.js
new file mode 100644
index 000000000..093057dca
--- /dev/null
+++ b/modules/ticket/back/methods/sale/usesMana.js
@@ -0,0 +1,31 @@
+module.exports = Self => {
+ Self.remoteMethodCtx('usesMana', {
+ description: 'Returns if the worker uses mana',
+ accessType: 'READ',
+ accepts: [],
+ returns: {
+ type: 'boolean',
+ root: true
+ },
+ http: {
+ path: `/usesMana`,
+ verb: 'GET'
+ }
+ });
+
+ Self.usesMana = async(ctx, options) => {
+ const models = Self.app.models;
+ const userId = ctx.req.accessToken.userId;
+ const myOptions = {};
+
+ if (typeof options == 'object')
+ Object.assign(myOptions, options);
+
+ const salesDepartment = await models.Department.findOne({where: {code: 'VT'}, fields: 'id'}, myOptions);
+ const departments = await models.Department.getLeaves(salesDepartment.id, null, myOptions);
+ const workerDepartment = await models.WorkerDepartment.findById(userId, null, myOptions);
+ const usesMana = departments.find(department => department.id == workerDepartment.departmentFk);
+
+ return usesMana ? true : false;
+ };
+};
diff --git a/modules/ticket/back/methods/ticket-log/getChanges.js b/modules/ticket/back/methods/ticket-log/getChanges.js
new file mode 100644
index 000000000..d020a0957
--- /dev/null
+++ b/modules/ticket/back/methods/ticket-log/getChanges.js
@@ -0,0 +1,64 @@
+module.exports = Self => {
+ Self.remoteMethodCtx('getChanges', {
+ description: 'Get changues in the sales of a ticket',
+ accessType: 'READ',
+ accepts: [{
+ arg: 'id',
+ type: 'number',
+ required: true,
+ description: 'the ticket id',
+ http: {source: 'path'}
+ }],
+ returns: {
+ type: 'object',
+ root: true
+ },
+ http: {
+ path: `/:id/getChanges`,
+ verb: 'get'
+ }
+ });
+
+ Self.getChanges = async(ctx, id, options) => {
+ const models = Self.app.models;
+ const myOptions = {};
+ const $t = ctx.req.__; // $translate
+
+ if (typeof options == 'object')
+ Object.assign(myOptions, options);
+
+ const ticketLogs = await models.TicketLog.find(
+ {
+ where: {
+ and: [
+ {originFk: id},
+ {action: 'update'},
+ {changedModel: 'Sale'}
+ ]
+ },
+ fields: [
+ 'oldInstance',
+ 'newInstance',
+ 'changedModelId'
+ ],
+ }, myOptions);
+
+ const changes = [];
+ for (const ticketLog of ticketLogs) {
+ const oldQuantity = ticketLog.oldInstance.quantity;
+ const newQuantity = ticketLog.newInstance.quantity;
+
+ if (oldQuantity || newQuantity) {
+ const sale = await models.Sale.findById(ticketLog.changedModelId, null, myOptions);
+ const message = $t('Change quantity', {
+ concept: sale.concept,
+ oldQuantity: oldQuantity || 0,
+ newQuantity: newQuantity || 0,
+ });
+
+ changes.push(message);
+ }
+ }
+ return changes.join('\n');
+ };
+};
diff --git a/modules/ticket/back/methods/ticket-log/specs/getChanges.spec.js b/modules/ticket/back/methods/ticket-log/specs/getChanges.spec.js
new file mode 100644
index 000000000..c0f7dde0e
--- /dev/null
+++ b/modules/ticket/back/methods/ticket-log/specs/getChanges.spec.js
@@ -0,0 +1,16 @@
+const models = require('vn-loopback/server/server').models;
+
+describe('ticketLog getChanges()', () => {
+ const ctx = {req: {}};
+
+ ctx.req.__ = value => {
+ return value;
+ };
+ it('should return the changes in the sales of a ticket', async() => {
+ const ticketId = 7;
+
+ const changues = await models.TicketLog.getChanges(ctx, ticketId);
+
+ expect(changues).toContain(`Change quantity`);
+ });
+});
diff --git a/modules/ticket/back/methods/ticket-request/getItemTypeWorker.js b/modules/ticket/back/methods/ticket-request/getItemTypeWorker.js
new file mode 100644
index 000000000..0655c7bba
--- /dev/null
+++ b/modules/ticket/back/methods/ticket-request/getItemTypeWorker.js
@@ -0,0 +1,57 @@
+const ParameterizedSQL = require('loopback-connector').ParameterizedSQL;
+
+module.exports = Self => {
+ Self.remoteMethodCtx('getItemTypeWorker', {
+ description: 'Returns the workers that appear in itemType',
+ accessType: 'READ',
+ accepts: [{
+ arg: 'filter',
+ type: 'Object',
+ description: 'Filter defining where and paginated data',
+ required: true
+ }],
+ returns: {
+ type: ['object'],
+ root: true
+ },
+ http: {
+ path: `/getItemTypeWorker`,
+ verb: 'GET'
+ }
+ });
+
+ Self.getItemTypeWorker = async(ctx, filter, options) => {
+ const myOptions = {};
+ const conn = Self.dataSource.connector;
+ let tx;
+
+ if (typeof options == 'object')
+ Object.assign(myOptions, options);
+
+ const query =
+ `SELECT DISTINCT u.id, u.nickname
+ FROM itemType it
+ JOIN worker w ON w.id = it.workerFk
+ JOIN account.user u ON u.id = w.id`;
+
+ let stmt = new ParameterizedSQL(query);
+
+ if (filter.where) {
+ const value = filter.where.firstName;
+ const myFilter = {
+ where: {or: [
+ {'w.firstName': {like: `%${value}%`}},
+ {'w.lastName': {like: `%${value}%`}},
+ {'u.name': {like: `%${value}%`}},
+ {'u.nickname': {like: `%${value}%`}}
+ ]}
+ };
+
+ stmt.merge(conn.makeSuffix(myFilter));
+ }
+
+ if (tx) await tx.commit();
+
+ return conn.executeStmt(stmt);
+ };
+};
diff --git a/modules/ticket/back/methods/ticket-request/specs/getItemTypeWorkers.spec.js b/modules/ticket/back/methods/ticket-request/specs/getItemTypeWorkers.spec.js
new file mode 100644
index 000000000..ae5c508b6
--- /dev/null
+++ b/modules/ticket/back/methods/ticket-request/specs/getItemTypeWorkers.spec.js
@@ -0,0 +1,21 @@
+const models = require('vn-loopback/server/server').models;
+
+describe('ticket-request getItemTypeWorker()', () => {
+ const ctx = {req: {accessToken: {userId: 18}}};
+
+ it('should return the buyer as result', async() => {
+ const filter = {where: {firstName: 'buyer'}};
+
+ const result = await models.TicketRequest.getItemTypeWorker(ctx, filter);
+
+ expect(result.length).toEqual(1);
+ });
+
+ it('should return the workers at itemType as result', async() => {
+ const filter = {};
+
+ const result = await models.TicketRequest.getItemTypeWorker(ctx, filter);
+
+ expect(result.length).toBeGreaterThan(1);
+ });
+});
diff --git a/modules/ticket/back/methods/ticket-weekly/specs/filter.spec.js b/modules/ticket/back/methods/ticket-weekly/specs/filter.spec.js
index 411bbe014..2587b6657 100644
--- a/modules/ticket/back/methods/ticket-weekly/specs/filter.spec.js
+++ b/modules/ticket/back/methods/ticket-weekly/specs/filter.spec.js
@@ -17,7 +17,7 @@ describe('ticket-weekly filter()', () => {
const firstRow = result[0];
expect(firstRow.ticketFk).toEqual(1);
- expect(result.length).toEqual(5);
+ expect(result.length).toEqual(6);
await tx.rollback();
} catch (e) {
diff --git a/modules/ticket/back/methods/ticket/closeAll.js b/modules/ticket/back/methods/ticket/closeAll.js
index 4f3813eb8..327278c2b 100644
--- a/modules/ticket/back/methods/ticket/closeAll.js
+++ b/modules/ticket/back/methods/ticket/closeAll.js
@@ -18,6 +18,7 @@ module.exports = Self => {
Self.closeAll = async() => {
const toDate = new Date();
+ toDate.setHours(0, 0, 0, 0);
toDate.setDate(toDate.getDate() - 1);
const todayMinDate = new Date();
@@ -51,7 +52,7 @@ module.exports = Self => {
JOIN province p ON p.id = c.provinceFk
JOIN country co ON co.id = p.countryFk
LEFT JOIN account.emailUser eu ON eu.userFk = c.salesPersonFk
- WHERE al.code = 'PACKED'
+ WHERE al.code = 'PACKED' OR (am.code = 'refund' AND al.code != 'delivered')
AND DATE(t.shipped) BETWEEN DATE_ADD(?, INTERVAL -2 DAY)
AND util.dayEnd(?)
AND t.refFk IS NULL
diff --git a/modules/ticket/back/methods/ticket/closure.js b/modules/ticket/back/methods/ticket/closure.js
index 3cbc85f96..d5fa58e7b 100644
--- a/modules/ticket/back/methods/ticket/closure.js
+++ b/modules/ticket/back/methods/ticket/closure.js
@@ -101,6 +101,7 @@ module.exports = async function(Self, tickets, reqArgs = {}) {
if (firstOrder == 1) {
const args = {
id: ticket.clientFk,
+ companyId: ticket.companyFk,
recipientId: ticket.clientFk,
recipient: ticket.recipient,
replyTo: ticket.salesPersonEmail
@@ -109,7 +110,7 @@ module.exports = async function(Self, tickets, reqArgs = {}) {
const email = new Email('incoterms-authorization', args);
await email.send();
- const sample = await Self.rawSql(
+ const [sample] = await Self.rawSql(
`SELECT id
FROM sample
WHERE code = 'incoterms-authorization'
diff --git a/modules/ticket/back/methods/ticket/collectionLabel.js b/modules/ticket/back/methods/ticket/collectionLabel.js
new file mode 100644
index 000000000..7601961fb
--- /dev/null
+++ b/modules/ticket/back/methods/ticket/collectionLabel.js
@@ -0,0 +1,55 @@
+const {Report} = require('vn-print');
+
+module.exports = Self => {
+ Self.remoteMethodCtx('collectionLabel', {
+ description: 'Returns the collection label',
+ accessType: 'READ',
+ accepts: [
+ {
+ arg: 'id',
+ type: 'number',
+ required: true,
+ description: 'The ticket id',
+ http: {source: 'path'}
+ }, {
+ arg: 'labelCount',
+ type: 'number',
+ required: false,
+ description: 'The number of labels'
+ }
+ ],
+ returns: [
+ {
+ arg: 'body',
+ type: 'file',
+ root: true
+ }, {
+ arg: 'Content-Type',
+ type: 'String',
+ http: {target: 'header'}
+ }, {
+ arg: 'Content-Disposition',
+ type: 'String',
+ http: {target: 'header'}
+ }
+ ],
+ http: {
+ path: '/:id/collection-label',
+ verb: 'GET'
+ }
+ });
+
+ Self.collectionLabel = async(ctx, id) => {
+ const args = Object.assign({}, ctx.args);
+ const params = {lang: ctx.req.getLocale()};
+
+ delete args.ctx;
+ for (const param in args)
+ params[param] = args[param];
+
+ const report = new Report('collection-label', params);
+ const stream = await report.toPdfStream();
+
+ return [stream, 'application/pdf', `filename="doc-${id}.pdf"`];
+ };
+};
diff --git a/modules/ticket/back/methods/ticket/componentUpdate.js b/modules/ticket/back/methods/ticket/componentUpdate.js
index 6b385992c..f4a4bb98d 100644
--- a/modules/ticket/back/methods/ticket/componentUpdate.js
+++ b/modules/ticket/back/methods/ticket/componentUpdate.js
@@ -126,8 +126,7 @@ module.exports = Self => {
myOptions);
if (!zoneShipped || zoneShipped.zoneFk != args.zoneFk) {
- const error = `You don't have privileges to change the zone or
- for these parameters there are more than one shipping options, talk to agencies`;
+ const error = `You don't have privileges to change the zone`;
throw new UserError(error);
}
@@ -138,9 +137,11 @@ module.exports = Self => {
const params = [args.id, args.shipped, args.warehouseFk];
const [salesMovable] = await Self.rawSql(query, params, myOptions);
+ const sales = await models.Sale.find({where: {ticketFk: args.id}}, myOptions);
const salesNewTicket = salesMovable.filter(sale => (sale.movable ? sale.movable : 0) >= sale.quantity);
- if (salesNewTicket.length) {
+ const salesNewTicketLength = salesNewTicket.length;
+ if (salesNewTicketLength && sales.length != salesNewTicketLength) {
const newTicket = await models.Ticket.transferSales(ctx, args.id, null, salesNewTicket, myOptions);
args.id = newTicket.id;
}
diff --git a/modules/ticket/back/methods/ticket/expeditionPalletLabel.js b/modules/ticket/back/methods/ticket/expeditionPalletLabel.js
new file mode 100644
index 000000000..2215263dd
--- /dev/null
+++ b/modules/ticket/back/methods/ticket/expeditionPalletLabel.js
@@ -0,0 +1,55 @@
+const {Report} = require('vn-print');
+
+module.exports = Self => {
+ Self.remoteMethodCtx('expeditionPalletLabel', {
+ description: 'Returns the expedition pallet label',
+ accessType: 'READ',
+ accepts: [
+ {
+ arg: 'id',
+ type: 'number',
+ required: true,
+ description: 'The pallet id',
+ http: {source: 'path'}
+ }, {
+ arg: 'userFk',
+ type: 'number',
+ required: true,
+ description: 'The user id'
+ }
+ ],
+ returns: [
+ {
+ arg: 'body',
+ type: 'file',
+ root: true
+ }, {
+ arg: 'Content-Type',
+ type: 'String',
+ http: {target: 'header'}
+ }, {
+ arg: 'Content-Disposition',
+ type: 'String',
+ http: {target: 'header'}
+ }
+ ],
+ http: {
+ path: '/:id/expedition-pallet-label',
+ verb: 'GET'
+ }
+ });
+
+ Self.expeditionPalletLabel = async(ctx, id) => {
+ const args = Object.assign({}, ctx.args);
+ const params = {lang: ctx.req.getLocale()};
+
+ delete args.ctx;
+ for (const param in args)
+ params[param] = args[param];
+
+ const report = new Report('expedition-pallet-label', params);
+ const stream = await report.toPdfStream();
+
+ return [stream, 'application/pdf', `filename="doc-${id}.pdf"`];
+ };
+};
diff --git a/modules/ticket/back/methods/ticket/filter.js b/modules/ticket/back/methods/ticket/filter.js
index da8f65be2..a2add2e82 100644
--- a/modules/ticket/back/methods/ticket/filter.js
+++ b/modules/ticket/back/methods/ticket/filter.js
@@ -88,6 +88,11 @@ module.exports = Self => {
type: 'boolean',
description: `Whether to show only tickets with route`
},
+ {
+ arg: 'hasInvoice',
+ type: 'boolean',
+ description: `Whether to show only tickets with invoice`
+ },
{
arg: 'pending',
type: 'boolean',
@@ -199,6 +204,10 @@ module.exports = Self => {
if (value == true)
return {'t.routeFk': {neq: null}};
return {'t.routeFk': null};
+ case 'hasInvoice':
+ if (value == true)
+ return {'t.refFk': {neq: null}};
+ return {'t.refFk': null};
case 'pending':
return {'st.isNotValidated': value};
case 'id':
diff --git a/modules/ticket/back/methods/ticket/getTicketsAdvance.js b/modules/ticket/back/methods/ticket/getTicketsAdvance.js
new file mode 100644
index 000000000..19571bb51
--- /dev/null
+++ b/modules/ticket/back/methods/ticket/getTicketsAdvance.js
@@ -0,0 +1,134 @@
+const ParameterizedSQL = require('loopback-connector').ParameterizedSQL;
+const buildFilter = require('vn-loopback/util/filter').buildFilter;
+const mergeFilters = require('vn-loopback/util/filter').mergeFilters;
+
+module.exports = Self => {
+ Self.remoteMethodCtx('getTicketsAdvance', {
+ description: 'Find all tickets that can be moved to the present',
+ accessType: 'READ',
+ accepts: [
+ {
+ arg: 'warehouseFk',
+ type: 'number',
+ description: 'Warehouse identifier',
+ required: true
+ },
+ {
+ arg: 'dateFuture',
+ type: 'date',
+ description: 'Date of the tickets that you want to advance',
+ required: true
+ },
+ {
+ arg: 'dateToAdvance',
+ type: 'date',
+ description: 'Date to when you want to advance',
+ required: true
+ },
+ {
+ arg: 'ipt',
+ type: 'string',
+ description: 'Origin Item Packaging Type',
+ required: false
+ },
+ {
+ arg: 'futureIpt',
+ type: 'string',
+ description: 'Destination Item Packaging Type',
+ required: false
+ },
+ {
+ arg: 'id',
+ type: 'number',
+ description: 'Origin id',
+ required: false
+ },
+ {
+ arg: 'futureId',
+ type: 'number',
+ description: 'Destination id',
+ required: false
+ },
+ {
+ arg: 'state',
+ type: 'string',
+ description: 'Origin state',
+ required: false
+ },
+ {
+ arg: 'futureState',
+ type: 'string',
+ description: 'Destination state',
+ required: false
+ },
+ {
+ arg: 'filter',
+ type: 'object',
+ description: `Filter defining where, order, offset, and limit - must be a JSON-encoded string`
+ }
+ ],
+ returns: {
+ type: ['object'],
+ root: true
+ },
+ http: {
+ path: `/getTicketsAdvance`,
+ verb: 'GET'
+ }
+ });
+
+ Self.getTicketsAdvance = async(ctx, options) => {
+ const args = ctx.args;
+ const conn = Self.dataSource.connector;
+ const myOptions = {};
+
+ if (typeof options == 'object')
+ Object.assign(myOptions, options);
+
+ const where = buildFilter(ctx.args, (param, value) => {
+ switch (param) {
+ case 'id':
+ return {'f.id': value};
+ case 'futureId':
+ return {'f.futureId': value};
+ case 'ipt':
+ return {'f.ipt': value};
+ case 'futureIpt':
+ return {'f.futureIpt': value};
+ case 'state':
+ return {'f.stateCode': {like: `%${value}%`}};
+ case 'futureState':
+ return {'f.futureStateCode': {like: `%${value}%`}};
+ }
+ });
+
+ let filter = mergeFilters(ctx.args.filter, {where});
+ const stmts = [];
+ let stmt;
+
+ stmt = new ParameterizedSQL(
+ `CALL vn.ticket_canAdvance(?,?,?)`,
+ [args.dateFuture, args.dateToAdvance, args.warehouseFk]);
+
+ stmts.push(stmt);
+
+ stmt = new ParameterizedSQL(`
+ SELECT f.*
+ FROM tmp.filter f`);
+
+ stmt.merge(conn.makeWhere(filter.where));
+
+ stmt.merge(conn.makeOrderBy(filter.order));
+ stmt.merge(conn.makeLimit(filter));
+ const ticketsIndex = stmts.push(stmt) - 1;
+
+ stmts.push(
+ `DROP TEMPORARY TABLE
+ tmp.filter`);
+
+ const sql = ParameterizedSQL.join(stmts, ';');
+ const result = await conn.executeStmt(sql, myOptions);
+
+ return result[ticketsIndex];
+ };
+};
diff --git a/modules/ticket/back/methods/ticket/getTicketsFuture.js b/modules/ticket/back/methods/ticket/getTicketsFuture.js
new file mode 100644
index 000000000..6798df513
--- /dev/null
+++ b/modules/ticket/back/methods/ticket/getTicketsFuture.js
@@ -0,0 +1,211 @@
+const ParameterizedSQL = require('loopback-connector').ParameterizedSQL;
+const buildFilter = require('vn-loopback/util/filter').buildFilter;
+const mergeFilters = require('vn-loopback/util/filter').mergeFilters;
+const UserError = require('vn-loopback/util/user-error');
+
+module.exports = Self => {
+ Self.remoteMethodCtx('getTicketsFuture', {
+ description: 'Find all tickets that can be moved to the future',
+ accessType: 'READ',
+ accepts: [
+ {
+ arg: 'originDated',
+ type: 'date',
+ description: 'The date in question',
+ required: true
+ },
+ {
+ arg: 'futureDated',
+ type: 'date',
+ description: 'The date to probe',
+ required: true
+ },
+ {
+ arg: 'warehouseFk',
+ type: 'number',
+ description: 'Warehouse identifier',
+ required: true
+ },
+ {
+ arg: 'litersMax',
+ type: 'number',
+ description: 'Maximum volume of tickets to catapult',
+ required: false
+ },
+ {
+ arg: 'linesMax',
+ type: 'number',
+ description: 'Maximum number of lines of tickets to catapult',
+ required: false
+ },
+ {
+ arg: 'ipt',
+ type: 'string',
+ description: 'Origin Item Packaging Type',
+ required: false
+ },
+ {
+ arg: 'futureIpt',
+ type: 'string',
+ description: 'Destination Item Packaging Type',
+ required: false
+ },
+ {
+ arg: 'id',
+ type: 'number',
+ description: 'Origin id',
+ required: false
+ },
+ {
+ arg: 'futureId',
+ type: 'number',
+ description: 'Destination id',
+ required: false
+ },
+ {
+ arg: 'state',
+ type: 'string',
+ description: 'Origin state',
+ required: false
+ },
+ {
+ arg: 'futureState',
+ type: 'string',
+ description: 'Destination state',
+ required: false
+ },
+ {
+ arg: 'problems',
+ type: 'boolean',
+ description: `Whether to show only tickets with problems`,
+ required: false
+ },
+ {
+ arg: 'filter',
+ type: 'object',
+ description: `Filter defining where, order, offset, and limit - must be a JSON-encoded string`
+ }
+ ],
+ returns: {
+ type: ['object'],
+ root: true
+ },
+ http: {
+ path: `/getTicketsFuture`,
+ verb: 'GET'
+ }
+ });
+
+ Self.getTicketsFuture = async(ctx, options) => {
+ const args = ctx.args;
+ const conn = Self.dataSource.connector;
+ const myOptions = {};
+
+ if (typeof options == 'object')
+ Object.assign(myOptions, options);
+
+ const where = buildFilter(ctx.args, (param, value) => {
+ switch (param) {
+ case 'id':
+ return {'f.id': value};
+ case 'lines':
+ return {'f.lines': {lte: value}};
+ case 'liters':
+ return {'f.liters': {lte: value}};
+ case 'futureId':
+ return {'f.futureId': value};
+ case 'ipt':
+ return {'f.ipt': value};
+ case 'futureIpt':
+ return {'f.futureIpt': value};
+ case 'state':
+ return {'f.stateCode': {like: `%${value}%`}};
+ case 'futureState':
+ return {'f.futureStateCode': {like: `%${value}%`}};
+ }
+ });
+
+ let filter = mergeFilters(ctx.args.filter, {where});
+ const stmts = [];
+ let stmt;
+
+ stmt = new ParameterizedSQL(
+ `CALL vn.ticket_canbePostponed(?,?,?)`,
+ [args.originDated, args.futureDated, args.warehouseFk]);
+
+ stmts.push(stmt);
+
+ stmts.push('DROP TEMPORARY TABLE IF EXISTS tmp.sale_getProblems');
+
+ stmt = new ParameterizedSQL(`
+ CREATE TEMPORARY TABLE tmp.sale_getProblems
+ (INDEX (ticketFk))
+ ENGINE = MEMORY
+ SELECT f.id ticketFk, f.clientFk, f.warehouseFk, f.shipped, f.lines, f.liters
+ FROM tmp.filter f
+ LEFT JOIN alertLevel al ON al.id = f.alertLevel
+ WHERE (al.code = 'FREE' OR f.alertLevel IS NULL)`);
+ stmts.push(stmt);
+
+ stmts.push('CALL ticket_getProblems(FALSE)');
+
+ stmt = new ParameterizedSQL(`
+ SELECT f.*, tp.*
+ FROM tmp.filter f
+ LEFT JOIN tmp.ticket_problems tp ON tp.ticketFk = f.id`);
+
+ if (args.problems != undefined && (!args.originDated && !args.futureDated))
+ throw new UserError('Choose a date range or days forward');
+
+ let condition;
+ let hasProblem;
+ let range;
+ let hasWhere;
+ switch (args.problems) {
+ case true:
+ condition = `or`;
+ hasProblem = true;
+ range = {neq: null};
+ hasWhere = true;
+ break;
+
+ case false:
+ condition = `and`;
+ hasProblem = null;
+ range = null;
+ hasWhere = true;
+ break;
+ }
+
+ const problems = {
+ [condition]: [
+ {'tp.isFreezed': hasProblem},
+ {'tp.risk': hasProblem},
+ {'tp.hasTicketRequest': hasProblem},
+ {'tp.itemShortage': range},
+ {'tp.hasComponentLack': hasProblem},
+ {'tp.isTooLittle': hasProblem}
+ ]
+ };
+
+ if (hasWhere)
+ filter = mergeFilters(filter, {where: problems});
+
+ stmt.merge(conn.makeWhere(filter.where));
+ stmt.merge(conn.makeOrderBy(filter.order));
+ stmt.merge(conn.makeLimit(filter));
+
+ const ticketsIndex = stmts.push(stmt) - 1;
+
+ stmts.push(
+ `DROP TEMPORARY TABLE
+ tmp.filter,
+ tmp.ticket_problems`);
+
+ const sql = ParameterizedSQL.join(stmts, ';');
+
+ const result = await conn.executeStmt(sql, myOptions);
+
+ return result[ticketsIndex];
+ };
+};
diff --git a/modules/ticket/back/methods/ticket/isEditable.js b/modules/ticket/back/methods/ticket/isEditable.js
index 5b9a397a1..d8fbb86ce 100644
--- a/modules/ticket/back/methods/ticket/isEditable.js
+++ b/modules/ticket/back/methods/ticket/isEditable.js
@@ -20,24 +20,20 @@ module.exports = Self => {
});
Self.isEditable = async(ctx, id, options) => {
- const userId = ctx.req.accessToken.userId;
+ const models = Self.app.models;
const myOptions = {};
if (typeof options == 'object')
Object.assign(myOptions, options);
- let state = await Self.app.models.TicketState.findOne({
+ const state = await models.TicketState.findOne({
where: {ticketFk: id}
}, myOptions);
- const isSalesAssistant = await Self.app.models.Account.hasRole(userId, 'salesAssistant', myOptions);
- const isDeliveryBoss = await Self.app.models.Account.hasRole(userId, 'deliveryBoss', myOptions);
- const isBuyer = await Self.app.models.Account.hasRole(userId, 'buyer', myOptions);
+ const isRoleAdvanced = await models.Ticket.isRoleAdvanced(ctx, myOptions);
- const isValidRole = isSalesAssistant || isDeliveryBoss || isBuyer;
-
- let alertLevel = state ? state.alertLevel : null;
- let ticket = await Self.app.models.Ticket.findById(id, {
+ const alertLevel = state ? state.alertLevel : null;
+ const ticket = await models.Ticket.findById(id, {
fields: ['clientFk'],
include: [{
relation: 'client',
@@ -48,15 +44,17 @@ module.exports = Self => {
}
}]
}, myOptions);
- const isLocked = await Self.app.models.Ticket.isLocked(id, myOptions);
+
+ const isLocked = await models.Ticket.isLocked(id, myOptions);
+ const isWeekly = await models.TicketWeekly.findOne({where: {ticketFk: id}}, myOptions);
const alertLevelGreaterThanZero = (alertLevel && alertLevel > 0);
const isNormalClient = ticket && ticket.client().type().code == 'normal';
- const validAlertAndRoleNormalClient = (alertLevelGreaterThanZero && isNormalClient && !isValidRole);
+ const isEditable = !(alertLevelGreaterThanZero && isNormalClient);
- if (!ticket || validAlertAndRoleNormalClient || isLocked)
- return false;
+ if (ticket && (isEditable || isRoleAdvanced) && !isLocked && !isWeekly)
+ return true;
- return true;
+ return false;
};
};
diff --git a/modules/ticket/back/methods/ticket/isRoleAdvanced.js b/modules/ticket/back/methods/ticket/isRoleAdvanced.js
new file mode 100644
index 000000000..7c5c8ed86
--- /dev/null
+++ b/modules/ticket/back/methods/ticket/isRoleAdvanced.js
@@ -0,0 +1,32 @@
+module.exports = Self => {
+ Self.remoteMethodCtx('isRoleAdvanced', {
+ description: 'Check if a ticket is editable',
+ accessType: 'READ',
+ returns: {
+ type: 'boolean',
+ root: true
+ },
+ http: {
+ path: `/isRoleAdvanced`,
+ verb: 'GET'
+ }
+ });
+
+ Self.isRoleAdvanced = async(ctx, options) => {
+ const models = Self.app.models;
+ const userId = ctx.req.accessToken.userId;
+ const myOptions = {};
+
+ if (typeof options == 'object')
+ Object.assign(myOptions, options);
+
+ const isSalesAssistant = await models.Account.hasRole(userId, 'salesAssistant', myOptions);
+ const isDeliveryBoss = await models.Account.hasRole(userId, 'deliveryBoss', myOptions);
+ const isBuyer = await models.Account.hasRole(userId, 'buyer', myOptions);
+ const isClaimManager = await models.Account.hasRole(userId, 'claimManager', myOptions);
+
+ const isRoleAdvanced = isSalesAssistant || isDeliveryBoss || isBuyer || isClaimManager;
+
+ return isRoleAdvanced;
+ };
+};
diff --git a/modules/ticket/back/methods/ticket/merge.js b/modules/ticket/back/methods/ticket/merge.js
new file mode 100644
index 000000000..8aaca1085
--- /dev/null
+++ b/modules/ticket/back/methods/ticket/merge.js
@@ -0,0 +1,78 @@
+const dateUtil = require('vn-loopback/util/date');
+
+module.exports = Self => {
+ Self.remoteMethodCtx('merge', {
+ description: 'Merge one ticket into another',
+ accessType: 'WRITE',
+ accepts: [
+ {
+ arg: 'tickets',
+ type: ['object'],
+ description: 'The array of tickets',
+ required: false
+ }
+ ],
+ returns: {
+ type: 'string',
+ root: true
+ },
+ http: {
+ path: `/merge`,
+ verb: 'POST'
+ }
+ });
+
+ Self.merge = async(ctx, tickets, options) => {
+ const httpRequest = ctx.req;
+ const $t = httpRequest.__;
+ const origin = httpRequest.headers.origin;
+ const models = Self.app.models;
+ const myOptions = {};
+ let tx;
+
+ if (typeof options == 'object')
+ Object.assign(myOptions, options);
+
+ if (!myOptions.transaction) {
+ tx = await Self.beginTransaction({});
+ myOptions.transaction = tx;
+ }
+
+ try {
+ for (let ticket of tickets) {
+ const originFullPath = `${origin}/#!/ticket/${ticket.originId}/summary`;
+ const destinationFullPath = `${origin}/#!/ticket/${ticket.destinationId}/summary`;
+ const message = $t('Ticket merged', {
+ originDated: dateUtil.toString(new Date(ticket.originShipped)),
+ destinationDated: dateUtil.toString(new Date(ticket.destinationShipped)),
+ originId: ticket.originId,
+ destinationId: ticket.destinationId,
+ originFullPath,
+ destinationFullPath
+ });
+ if (!ticket.originId || !ticket.destinationId) continue;
+
+ const ticketDestinationLogRecord = {
+ originFk: ticket.destinationId,
+ userFk: ctx.req.accessToken.userId,
+ action: 'update',
+ changedModel: 'Ticket',
+ changedModelId: ticket.destinationId,
+ changedModelValue: ticket.destinationId,
+ oldInstance: {},
+ newInstance: {mergedTicket: ticket.originId}
+ };
+
+ await models.TicketLog.create(ticketDestinationLogRecord, myOptions);
+ await models.Sale.updateAll({ticketFk: ticket.originId}, {ticketFk: ticket.destinationId}, myOptions);
+ await models.Ticket.setDeleted(ctx, ticket.originId, myOptions);
+ await models.Chat.sendCheckingPresence(ctx, ticket.workerFk, message);
+ }
+ if (tx)
+ await tx.commit();
+ } catch (e) {
+ if (tx) await tx.rollback();
+ throw e;
+ }
+ };
+};
diff --git a/modules/ticket/back/methods/ticket/priceDifference.js b/modules/ticket/back/methods/ticket/priceDifference.js
index 0e8cc2e06..989e0e5ce 100644
--- a/modules/ticket/back/methods/ticket/priceDifference.js
+++ b/modules/ticket/back/methods/ticket/priceDifference.js
@@ -88,8 +88,7 @@ module.exports = Self => {
myOptions);
if (!zoneShipped || zoneShipped.zoneFk != args.zoneId) {
- const error = `You don't have privileges to change the zone or
- for these parameters there are more than one shipping options, talk to agencies`;
+ const error = `You don't have privileges to change the zone`;
throw new UserError(error);
}
diff --git a/modules/ticket/back/methods/ticket/sendSms.js b/modules/ticket/back/methods/ticket/sendSms.js
index a0adcae07..2336ae859 100644
--- a/modules/ticket/back/methods/ticket/sendSms.js
+++ b/modules/ticket/back/methods/ticket/sendSms.js
@@ -31,6 +31,7 @@ module.exports = Self => {
});
Self.sendSms = async(ctx, id, destination, message, options) => {
+ const models = Self.app.models;
const myOptions = {};
let tx;
@@ -45,7 +46,14 @@ module.exports = Self => {
const userId = ctx.req.accessToken.userId;
try {
- const sms = await Self.app.models.Sms.send(ctx, destination, message);
+ const sms = await models.Sms.send(ctx, destination, message);
+
+ const newTicketSms = {
+ ticketFk: id,
+ smsFk: sms.id
+ };
+ await models.TicketSms.create(newTicketSms);
+
const logRecord = {
originFk: id,
userFk: userId,
@@ -60,7 +68,7 @@ module.exports = Self => {
}
};
- const ticketLog = await Self.app.models.TicketLog.create(logRecord, myOptions);
+ const ticketLog = await models.TicketLog.create(logRecord, myOptions);
sms.logId = ticketLog.id;
diff --git a/modules/ticket/back/methods/ticket/specs/componentUpdate.spec.js b/modules/ticket/back/methods/ticket/specs/componentUpdate.spec.js
index 2aa2a07c4..3a9c2db50 100644
--- a/modules/ticket/back/methods/ticket/specs/componentUpdate.spec.js
+++ b/modules/ticket/back/methods/ticket/specs/componentUpdate.spec.js
@@ -1,4 +1,5 @@
const models = require('vn-loopback/server/server').models;
+const LoopBackContext = require('loopback-context');
describe('ticket componentUpdate()', () => {
const userID = 1101;
@@ -18,9 +19,12 @@ describe('ticket componentUpdate()', () => {
beforeAll(async() => {
const deliveryComponenet = await models.Component.findOne({where: {code: 'delivery'}});
deliveryComponentId = deliveryComponenet.id;
- componentOfSaleSeven = `SELECT value FROM vn.saleComponent WHERE saleFk = 7 AND componentFk = ${deliveryComponentId}`;
- componentOfSaleEight = `SELECT value FROM vn.saleComponent WHERE saleFk = 8 AND componentFk = ${deliveryComponentId}`;
-
+ componentOfSaleSeven = `SELECT value
+ FROM vn.saleComponent
+ WHERE saleFk = 7 AND componentFk = ${deliveryComponentId}`;
+ componentOfSaleEight = `SELECT value
+ FROM vn.saleComponent
+ WHERE saleFk = 8 AND componentFk = ${deliveryComponentId}`;
[componentValue] = await models.SaleComponent.rawSql(componentOfSaleSeven);
firstvalueBeforeChange = componentValue.value;
@@ -175,10 +179,15 @@ describe('ticket componentUpdate()', () => {
}
}
};
+
+ spyOn(LoopBackContext, 'getCurrentContext').and.returnValue({
+ active: ctx.req
+ });
+ const oldTicket = await models.Ticket.findById(ticketID, null, options);
+
await models.Ticket.componentUpdate(ctx, options);
const [newTicketID] = await models.Ticket.rawSql('SELECT MAX(id) as id FROM ticket', null, options);
- const oldTicket = await models.Ticket.findById(ticketID, null, options);
const newTicket = await models.Ticket.findById(newTicketID.id, null, options);
const newTicketSale = await models.Sale.findOne({where: {ticketFk: args.id}}, options);
diff --git a/modules/ticket/back/methods/ticket/specs/filter.spec.js b/modules/ticket/back/methods/ticket/specs/filter.spec.js
index c3dc40092..688b0de61 100644
--- a/modules/ticket/back/methods/ticket/specs/filter.spec.js
+++ b/modules/ticket/back/methods/ticket/specs/filter.spec.js
@@ -11,7 +11,7 @@ describe('ticket filter()', () => {
const filter = {order: 'id DESC'};
const result = await models.Ticket.filter(ctx, filter, options);
- expect(result.length).toEqual(27);
+ expect(result.length).toBeGreaterThan(25);
await tx.rollback();
} catch (e) {
@@ -39,7 +39,7 @@ describe('ticket filter()', () => {
const filter = {};
const result = await models.Ticket.filter(ctx, filter, options);
- expect(result.length).toEqual(6);
+ expect(result.length).toBeGreaterThan(3);
await tx.rollback();
} catch (e) {
@@ -87,7 +87,7 @@ describe('ticket filter()', () => {
const filter = {};
const result = await models.Ticket.filter(ctx, filter, options);
- expect(result.length).toEqual(27);
+ expect(result.length).toBeGreaterThan(25);
await tx.rollback();
} catch (e) {
@@ -107,8 +107,8 @@ describe('ticket filter()', () => {
const result = await models.Ticket.filter(ctx, filter, options);
const firstRow = result[0];
- expect(result.length).toEqual(1);
- expect(firstRow.id).toEqual(11);
+ expect(result.length).toBeGreaterThan(0);
+ expect(firstRow.id).toBeGreaterThan(10);
await tx.rollback();
} catch (e) {
@@ -130,7 +130,7 @@ describe('ticket filter()', () => {
const length = result.length;
const anyResult = result[Math.floor(Math.random() * Math.floor(length))];
- expect(length).toEqual(10);
+ expect(length).toBeGreaterThan(10);
expect(anyResult.state).toMatch(/(Libre|Arreglar)/);
await tx.rollback();
@@ -153,7 +153,7 @@ describe('ticket filter()', () => {
const secondRow = result[1];
const thirdRow = result[2];
- expect(result.length).toEqual(17);
+ expect(result.length).toBeGreaterThan(15);
expect(firstRow.state).toEqual('Entregado');
expect(secondRow.state).toEqual('Entregado');
expect(thirdRow.state).toEqual('Entregado');
@@ -175,7 +175,7 @@ describe('ticket filter()', () => {
const filter = {};
const result = await models.Ticket.filter(ctx, filter, options);
- expect(result.length).toEqual(23);
+ expect(result.length).toBeGreaterThan(25);
await tx.rollback();
} catch (e) {
@@ -194,7 +194,7 @@ describe('ticket filter()', () => {
const filter = {};
const result = await models.Ticket.filter(ctx, filter, options);
- expect(result.length).toEqual(4);
+ expect(result.length).toBeGreaterThan(0);
await tx.rollback();
} catch (e) {
@@ -213,7 +213,7 @@ describe('ticket filter()', () => {
const filter = {};
const result = await models.Ticket.filter(ctx, filter, options);
- expect(result.length).toEqual(3);
+ expect(result.length).toBeGreaterThan(0);
await tx.rollback();
} catch (e) {
@@ -232,7 +232,7 @@ describe('ticket filter()', () => {
const filter = {};
const result = await models.Ticket.filter(ctx, filter, options);
- expect(result.length).toEqual(22);
+ expect(result.length).toBeGreaterThan(20);
await tx.rollback();
} catch (e) {
@@ -251,7 +251,7 @@ describe('ticket filter()', () => {
const filter = {};
const result = await models.Ticket.filter(ctx, filter, options);
- expect(result.length).toEqual(5);
+ expect(result.length).toBeGreaterThan(0);
await tx.rollback();
} catch (e) {
@@ -270,7 +270,45 @@ describe('ticket filter()', () => {
const filter = {};
const result = await models.Ticket.filter(ctx, filter, options);
- expect(result.length).toEqual(27);
+ expect(result.length).toBeGreaterThan(25);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return the tickets with the invoice on false', async() => {
+ const tx = await models.Ticket.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const ctx = {req: {accessToken: {userId: 9}}, args: {hasInvoice: true}};
+ const filter = {};
+ const result = await models.Ticket.filter(ctx, filter, options);
+
+ expect(result.length).toBeGreaterThan(0);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return the tickets with the invoice on null', async() => {
+ const tx = await models.Ticket.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const ctx = {req: {accessToken: {userId: 9}}, args: {hasInvoice: null}};
+ const filter = {};
+ const result = await models.Ticket.filter(ctx, filter, options);
+
+ expect(result.length).toBeGreaterThanOrEqual(27);
await tx.rollback();
} catch (e) {
diff --git a/modules/ticket/back/methods/ticket/specs/getTicketsAdvance.spec.js b/modules/ticket/back/methods/ticket/specs/getTicketsAdvance.spec.js
new file mode 100644
index 000000000..aab053127
--- /dev/null
+++ b/modules/ticket/back/methods/ticket/specs/getTicketsAdvance.spec.js
@@ -0,0 +1,131 @@
+const models = require('vn-loopback/server/server').models;
+
+describe('TicketFuture getTicketsAdvance()', () => {
+ const today = new Date();
+ today.setHours(0, 0, 0, 0);
+ let tomorrow = new Date();
+ tomorrow.setDate(today.getDate() + 1);
+
+ it('should return the tickets passing the required data', async() => {
+ const tx = await models.Ticket.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const args = {
+ dateFuture: tomorrow,
+ dateToAdvance: today,
+ warehouseFk: 1,
+ };
+
+ const ctx = {req: {accessToken: {userId: 9}}, args};
+ const result = await models.Ticket.getTicketsAdvance(ctx, options);
+
+ expect(result.length).toBeGreaterThan(0);
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return the tickets matching the origin grouped state', async() => {
+ const tx = await models.Ticket.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const args = {
+ dateFuture: tomorrow,
+ dateToAdvance: today,
+ warehouseFk: 1,
+ state: 'OK'
+ };
+
+ const ctx = {req: {accessToken: {userId: 9}}, args};
+ const result = await models.Ticket.getTicketsAdvance(ctx, options);
+
+ expect(result.length).toBeGreaterThan(0);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return the tickets matching the destination grouped state', async() => {
+ const tx = await models.Ticket.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const args = {
+ dateFuture: tomorrow,
+ dateToAdvance: today,
+ warehouseFk: 1,
+ futureState: 'FREE'
+ };
+
+ const ctx = {req: {accessToken: {userId: 9}}, args};
+ const result = await models.Ticket.getTicketsAdvance(ctx, options);
+
+ expect(result.length).toBeGreaterThan(0);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return the tickets matching the origin IPT', async() => {
+ const tx = await models.Ticket.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const args = {
+ dateFuture: tomorrow,
+ dateToAdvance: today,
+ warehouseFk: 1,
+ ipt: 'Vertical'
+ };
+
+ const ctx = {req: {accessToken: {userId: 9}}, args};
+ const result = await models.Ticket.getTicketsAdvance(ctx, options);
+
+ expect(result.length).toBeLessThan(5);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return the tickets matching the destination IPT', async() => {
+ const tx = await models.Ticket.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const args = {
+ dateFuture: tomorrow,
+ dateToAdvance: today,
+ warehouseFk: 1,
+ tfIpt: 'Vertical'
+ };
+
+ const ctx = {req: {accessToken: {userId: 9}}, args};
+ const result = await models.Ticket.getTicketsAdvance(ctx, options);
+
+ expect(result.length).toBeLessThan(5);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+});
diff --git a/modules/ticket/back/methods/ticket/specs/getTicketsFuture.spec.js b/modules/ticket/back/methods/ticket/specs/getTicketsFuture.spec.js
new file mode 100644
index 000000000..c05ba764d
--- /dev/null
+++ b/modules/ticket/back/methods/ticket/specs/getTicketsFuture.spec.js
@@ -0,0 +1,304 @@
+const models = require('vn-loopback/server/server').models;
+
+describe('ticket getTicketsFuture()', () => {
+ const today = new Date();
+ today.setHours(0, 0, 0, 0);
+
+ it('should return the tickets passing the required data', async() => {
+ const tx = await models.Ticket.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const args = {
+ originDated: today,
+ futureDated: today,
+ warehouseFk: 1,
+ };
+
+ const ctx = {req: {accessToken: {userId: 9}}, args};
+ const result = await models.Ticket.getTicketsFuture(ctx, options);
+
+ expect(result.length).toEqual(4);
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return the tickets matching the problems on true', async() => {
+ const tx = await models.Ticket.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const args = {
+ originDated: today,
+ futureDated: today,
+ warehouseFk: 1,
+ problems: true
+ };
+
+ const ctx = {req: {accessToken: {userId: 9}}, args};
+ const result = await models.Ticket.getTicketsFuture(ctx, options);
+
+ expect(result.length).toEqual(4);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return the tickets matching the problems on false', async() => {
+ const tx = await models.Ticket.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const args = {
+ originDated: today,
+ futureDated: today,
+ warehouseFk: 1,
+ problems: false
+ };
+
+ const ctx = {req: {accessToken: {userId: 9}}, args};
+ const result = await models.Ticket.getTicketsFuture(ctx, options);
+
+ expect(result.length).toEqual(0);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return the tickets matching the problems on null', async() => {
+ const tx = await models.Ticket.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const args = {
+ originDated: today,
+ futureDated: today,
+ warehouseFk: 1,
+ problems: null
+ };
+
+ const ctx = {req: {accessToken: {userId: 9}}, args};
+ const result = await models.Ticket.getTicketsFuture(ctx, options);
+
+ expect(result.length).toEqual(4);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return the tickets matching the OK State in origin date', async() => {
+ const tx = await models.Ticket.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const args = {
+ originDated: today,
+ futureDated: today,
+ warehouseFk: 1,
+ state: 'OK'
+ };
+
+ const ctx = {req: {accessToken: {userId: 9}}, args};
+ const result = await models.Ticket.getTicketsFuture(ctx, options);
+
+ expect(result.length).toEqual(1);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return the tickets matching the OK State in destination date', async() => {
+ const tx = await models.Ticket.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const args = {
+ originDated: today,
+ futureDated: today,
+ warehouseFk: 1,
+ futureState: 'OK'
+ };
+
+ const ctx = {req: {accessToken: {userId: 9}}, args};
+ const result = await models.Ticket.getTicketsFuture(ctx, options);
+
+ expect(result.length).toEqual(4);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return the tickets matching the correct IPT in origin date', async() => {
+ const tx = await models.Ticket.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const args = {
+ originDated: today,
+ futureDated: today,
+ warehouseFk: 1,
+ ipt: null
+ };
+
+ const ctx = {req: {accessToken: {userId: 9}}, args};
+ const result = await models.Ticket.getTicketsFuture(ctx, options);
+
+ expect(result.length).toEqual(4);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return the tickets matching the incorrect IPT in origin date', async() => {
+ const tx = await models.Ticket.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const args = {
+ originDated: today,
+ futureDated: today,
+ warehouseFk: 1,
+ ipt: 0
+ };
+
+ const ctx = {req: {accessToken: {userId: 9}}, args};
+ const result = await models.Ticket.getTicketsFuture(ctx, options);
+
+ expect(result.length).toEqual(0);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return the tickets matching the correct IPT in destination date', async() => {
+ const tx = await models.Ticket.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const args = {
+ originDated: today,
+ futureDated: today,
+ warehouseFk: 1,
+ futureIpt: null
+ };
+
+ const ctx = {req: {accessToken: {userId: 9}}, args};
+ const result = await models.Ticket.getTicketsFuture(ctx, options);
+
+ expect(result.length).toEqual(4);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return the tickets matching the incorrect IPT in destination date', async() => {
+ const tx = await models.Ticket.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const args = {
+ originDated: today,
+ futureDated: today,
+ warehouseFk: 1,
+ futureIpt: 0
+ };
+
+ const ctx = {req: {accessToken: {userId: 9}}, args};
+ const result = await models.Ticket.getTicketsFuture(ctx, options);
+
+ expect(result.length).toEqual(0);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return the tickets matching the ID in origin date', async() => {
+ const tx = await models.Ticket.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const args = {
+ originDated: today,
+ futureDated: today,
+ warehouseFk: 1,
+ id: 13
+ };
+
+ const ctx = {req: {accessToken: {userId: 9}}, args};
+ const result = await models.Ticket.getTicketsFuture(ctx, options);
+
+ expect(result.length).toEqual(1);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should return the tickets matching the ID in destination date', async() => {
+ const tx = await models.Ticket.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const args = {
+ originDated: today,
+ futureDated: today,
+ warehouseFk: 1,
+ futureId: 12
+ };
+
+ const ctx = {req: {accessToken: {userId: 9}}, args};
+ const result = await models.Ticket.getTicketsFuture(ctx, options);
+
+ expect(result.length).toEqual(4);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+});
diff --git a/modules/ticket/back/methods/ticket/specs/isEditable.spec.js b/modules/ticket/back/methods/ticket/specs/isEditable.spec.js
index adc2acdee..7337017d6 100644
--- a/modules/ticket/back/methods/ticket/specs/isEditable.spec.js
+++ b/modules/ticket/back/methods/ticket/specs/isEditable.spec.js
@@ -134,4 +134,23 @@ describe('ticket isEditable()', () => {
expect(result).toEqual(false);
});
+
+ it('should not be able to edit if is a ticket weekly', async() => {
+ const tx = await models.Ticket.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ const ctx = {req: {accessToken: {userId: 1}}};
+
+ const result = await models.Ticket.isEditable(ctx, 15, options);
+
+ expect(result).toEqual(false);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
});
diff --git a/modules/ticket/back/methods/ticket/specs/merge.spec.js b/modules/ticket/back/methods/ticket/specs/merge.spec.js
new file mode 100644
index 000000000..275484f67
--- /dev/null
+++ b/modules/ticket/back/methods/ticket/specs/merge.spec.js
@@ -0,0 +1,58 @@
+const models = require('vn-loopback/server/server').models;
+const LoopBackContext = require('loopback-context');
+
+describe('ticket merge()', () => {
+ const tickets = [{
+ originId: 13,
+ destinationId: 12,
+ originShipped: new Date(),
+ destinationShipped: new Date(),
+ workerFk: 1
+ }];
+
+ const activeCtx = {
+ accessToken: {userId: 9},
+ };
+
+ beforeEach(() => {
+ spyOn(LoopBackContext, 'getCurrentContext').and.returnValue({
+ active: activeCtx
+ });
+ });
+
+ const ctx = {
+ req: {
+ accessToken: {userId: 9},
+ headers: {origin: 'http://localhost:5000'},
+ }
+ };
+ ctx.req.__ = value => {
+ return value;
+ };
+
+ it('should merge two tickets', async() => {
+ const tx = await models.Ticket.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+ const chatNotificationBeforeMerge = await models.Chat.find();
+
+ await models.Ticket.merge(ctx, tickets, options);
+
+ const createdTicketLog = await models.TicketLog.find({where: {originFk: tickets[0].originId}}, options);
+ const deletedTicket = await models.Ticket.findOne({where: {id: tickets[0].originId}}, options);
+ const salesTicketFuture = await models.Sale.find({where: {ticketFk: tickets[0].destinationId}}, options);
+ const chatNotificationAfterMerge = await models.Chat.find();
+
+ expect(createdTicketLog.length).toEqual(1);
+ expect(deletedTicket.isDeleted).toEqual(true);
+ expect(salesTicketFuture.length).toEqual(2);
+ expect(chatNotificationBeforeMerge.length).toEqual(chatNotificationAfterMerge.length - 2);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+});
diff --git a/modules/ticket/back/methods/ticket/specs/priceDifference.spec.js b/modules/ticket/back/methods/ticket/specs/priceDifference.spec.js
index d8c785baa..5470382f9 100644
--- a/modules/ticket/back/methods/ticket/specs/priceDifference.spec.js
+++ b/modules/ticket/back/methods/ticket/specs/priceDifference.spec.js
@@ -87,7 +87,7 @@ describe('sale priceDifference()', () => {
const secondtItem = result.items[1];
expect(firstItem.movable).toEqual(410);
- expect(secondtItem.movable).toEqual(1870);
+ expect(secondtItem.movable).toEqual(1790);
await tx.rollback();
} catch (e) {
diff --git a/modules/ticket/back/methods/ticket/specs/sendSms.spec.js b/modules/ticket/back/methods/ticket/specs/sendSms.spec.js
index f50253b10..f94b8be2a 100644
--- a/modules/ticket/back/methods/ticket/specs/sendSms.spec.js
+++ b/modules/ticket/back/methods/ticket/specs/sendSms.spec.js
@@ -15,9 +15,16 @@ describe('ticket sendSms()', () => {
const sms = await models.Ticket.sendSms(ctx, id, destination, message, options);
const createdLog = await models.TicketLog.findById(sms.logId, null, options);
+
+ const filter = {
+ ticketFk: createdLog.originFk
+ };
+ const ticketSms = await models.TicketSms.findOne(filter, options);
+
const json = JSON.parse(JSON.stringify(createdLog.newInstance));
expect(json.message).toEqual(message);
+ expect(ticketSms.ticketFk).toEqual(createdLog.originFk);
await tx.rollback();
} catch (e) {
diff --git a/modules/ticket/back/methods/ticket/specs/updateDiscount.spec.js b/modules/ticket/back/methods/ticket/specs/updateDiscount.spec.js
index 1873207aa..1f6712087 100644
--- a/modules/ticket/back/methods/ticket/specs/updateDiscount.spec.js
+++ b/modules/ticket/back/methods/ticket/specs/updateDiscount.spec.js
@@ -110,6 +110,11 @@ describe('sale updateDiscount()', () => {
const componentId = manaDiscount.id;
const manaCode = 'mana';
+ const teamOne = 96;
+ const userId = ctx.req.accessToken.userId;
+ const business = await models.Business.findOne({where: {workerFk: userId}}, options);
+ await business.updateAttribute('departmentFk', teamOne, options);
+
await models.Ticket.updateDiscount(ctx, ticketId, sales, newDiscount, manaCode, options);
const updatedSale = await models.Sale.findById(originalSaleId, null, options);
@@ -150,6 +155,11 @@ describe('sale updateDiscount()', () => {
const componentId = manaDiscount.id;
const manaCode = 'manaClaim';
+ const teamOne = 96;
+ const userId = ctx.req.accessToken.userId;
+ const business = await models.Business.findOne({where: {workerFk: userId}}, options);
+ await business.updateAttribute('departmentFk', teamOne, options);
+
await models.Ticket.updateDiscount(ctx, ticketId, sales, newDiscount, manaCode, options);
const updatedSale = await models.Sale.findById(originalSaleId, null, options);
diff --git a/modules/ticket/back/methods/ticket/updateDiscount.js b/modules/ticket/back/methods/ticket/updateDiscount.js
index b1291a45b..4dd346161 100644
--- a/modules/ticket/back/methods/ticket/updateDiscount.js
+++ b/modules/ticket/back/methods/ticket/updateDiscount.js
@@ -98,12 +98,7 @@ module.exports = Self => {
if (isLocked || (!hasAllowedRoles && alertLevel > 0))
throw new UserError(`The sales of this ticket can't be modified`);
- const usesMana = await models.WorkerMana.findOne({
- where: {
- workerFk: userId
- },
- fields: 'amount'}, myOptions);
-
+ const usesMana = await models.Sale.usesMana(ctx, myOptions);
const componentCode = usesMana ? manaCode : 'buyerDiscount';
const discountComponent = await models.Component.findOne({
where: {code: componentCode}}, myOptions);
@@ -115,14 +110,38 @@ module.exports = Self => {
for (let sale of sales) {
const oldDiscount = sale.discount;
const value = ((-sale.price * newDiscount) / 100);
- const newComponent = models.SaleComponent.upsert({
- saleFk: sale.id,
- value: value,
- componentFk: componentId}, myOptions);
+
+ const manaComponent = await models.Component.findOne({
+ where: {code: 'mana'}
+ }, myOptions);
+
+ const manaClaimComponent = await models.Component.findOne({
+ where: {code: 'manaClaim'}
+ }, myOptions);
+
+ const [oldComponent] = await models.SaleComponent.find({
+ where: {
+ and: [
+ {saleFk: sale.id},
+ {componentFk: {inq: [manaComponent.id, manaClaimComponent.id]}}
+ ]
+ }
+ }, myOptions);
+
+ let deletedComponent;
+ if (oldComponent) {
+ const filter = {
+ saleFk: sale.id,
+ componentFk: oldComponent.componentFk
+ };
+ deletedComponent = await models.SaleComponent.destroyAll(filter, myOptions);
+ }
+
+ const newComponent = await createSaleComponent(sale.id, value, componentId, myOptions);
const updatedSale = sale.updateAttribute('discount', newDiscount, myOptions);
- promises.push(newComponent, updatedSale);
+ promises.push(newComponent, updatedSale, deletedComponent);
const change = `${oldDiscount}% ➔ *${newDiscount}%*`;
changesMade += `\r\n-${sale.itemFk}: ${sale.concept} (${sale.quantity}) ${change}`;
@@ -165,4 +184,14 @@ module.exports = Self => {
throw e;
}
};
+
+ async function createSaleComponent(saleId, value, componentId, myOptions) {
+ const models = Self.app.models;
+
+ return models.SaleComponent.upsert({
+ saleFk: saleId,
+ value: value,
+ componentFk: componentId
+ }, myOptions);
+ }
};
diff --git a/modules/ticket/back/model-config.json b/modules/ticket/back/model-config.json
index 4187973d0..62e763c8f 100644
--- a/modules/ticket/back/model-config.json
+++ b/modules/ticket/back/model-config.json
@@ -5,6 +5,9 @@
"AnnualAverageInvoiced": {
"dataSource": "vn"
},
+ "Boxing": {
+ "dataSource": "vn"
+ },
"Component": {
"dataSource": "vn"
},
@@ -20,6 +23,9 @@
"Packaging": {
"dataSource": "vn"
},
+ "PackingSiteConfig": {
+ "dataSource": "vn"
+ },
"ExpeditionMistake": {
"dataSource": "vn"
},
@@ -29,7 +35,7 @@
"Sale": {
"dataSource": "vn"
},
- "SaleChecked": {
+ "SaleCloned": {
"dataSource": "vn"
},
"SaleComponent": {
@@ -38,7 +44,7 @@
"SaleTracking": {
"dataSource": "vn"
},
- "State":{
+ "State": {
"dataSource": "vn"
},
"Ticket": {
@@ -65,16 +71,16 @@
"TicketRequest": {
"dataSource": "vn"
},
- "TicketState":{
+ "TicketState": {
"dataSource": "vn"
},
- "TicketLastState":{
+ "TicketLastState": {
"dataSource": "vn"
},
- "TicketService":{
+ "TicketService": {
"dataSource": "vn"
},
- "TicketServiceType":{
+ "TicketServiceType": {
"dataSource": "vn"
},
"TicketTracking": {
diff --git a/modules/ticket/back/models/boxing.js b/modules/ticket/back/models/boxing.js
new file mode 100644
index 000000000..c251ea0e4
--- /dev/null
+++ b/modules/ticket/back/models/boxing.js
@@ -0,0 +1,4 @@
+module.exports = Self => {
+ require('../methods/boxing/getVideo')(Self);
+ require('../methods/boxing/getVideoList')(Self);
+};
diff --git a/modules/ticket/back/models/boxing.json b/modules/ticket/back/models/boxing.json
new file mode 100644
index 000000000..5aecbcabe
--- /dev/null
+++ b/modules/ticket/back/models/boxing.json
@@ -0,0 +1,12 @@
+{
+ "name": "Boxing",
+ "base": "PersistedModel",
+ "acls": [
+ {
+ "accessType": "READ",
+ "principalType": "ROLE",
+ "principalId": "$everyone",
+ "permission": "ALLOW"
+ }
+ ]
+}
diff --git a/modules/ticket/back/models/expedition.js b/modules/ticket/back/models/expedition.js
index 9d6564373..46cde6890 100644
--- a/modules/ticket/back/models/expedition.js
+++ b/modules/ticket/back/models/expedition.js
@@ -1,3 +1,5 @@
module.exports = function(Self) {
require('../methods/expedition/filter')(Self);
+ require('../methods/expedition/deleteExpeditions')(Self);
+ require('../methods/expedition/moveExpeditions')(Self);
};
diff --git a/modules/ticket/back/models/expedition.json b/modules/ticket/back/models/expedition.json
index fc94f185d..d74c56d2c 100644
--- a/modules/ticket/back/models/expedition.json
+++ b/modules/ticket/back/models/expedition.json
@@ -16,7 +16,7 @@
"type": "number",
"description": "Identifier"
},
- "isBox": {
+ "freightItemFk": {
"type": "number"
},
"created": {
@@ -37,11 +37,6 @@
"model": "agency-mode",
"foreignKey": "agencyModeFk"
},
- "packageItem": {
- "type": "belongsTo",
- "model": "Item",
- "foreignKey": "itemFk"
- },
"worker": {
"type": "belongsTo",
"model": "Worker",
@@ -55,7 +50,7 @@
"freightItem": {
"type": "belongsTo",
"model": "Item",
- "foreignKey": "isBox"
+ "foreignKey": "freightItemFk"
},
"packaging": {
"type": "belongsTo",
diff --git a/modules/ticket/back/models/packingSiteConfig.json b/modules/ticket/back/models/packingSiteConfig.json
new file mode 100644
index 000000000..8f0032d41
--- /dev/null
+++ b/modules/ticket/back/models/packingSiteConfig.json
@@ -0,0 +1,28 @@
+{
+ "name": "PackingSiteConfig",
+ "base": "VnModel",
+ "options": {
+ "mysql": {
+ "table": "packingSiteConfig"
+ }
+ },
+ "properties": {
+ "id": {
+ "id": true,
+ "type": "number",
+ "description": "Identifier"
+ },
+ "shinobiUrl": {
+ "type": "string"
+ },
+ "shinobiGroupKey":{
+ "type":"string"
+ },
+ "shinobiToken":{
+ "type":"string"
+ },
+ "avgBoxingTime":{
+ "type":"number"
+ }
+ }
+}
diff --git a/modules/ticket/back/models/sale-checked.json b/modules/ticket/back/models/sale-checked.json
deleted file mode 100644
index 96d790505..000000000
--- a/modules/ticket/back/models/sale-checked.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "name": "SaleChecked",
- "base": "VnModel",
- "options": {
- "mysql": {
- "table": "saleChecked"
- }
- },
- "properties": {
- "isChecked": {
- "type": "number"
- },
- "saleFk": {
- "id": true
- }
- },
- "relations": {
- "sale": {
- "type": "belongsTo",
- "model": "Sale",
- "foreignKey": "saleFk"
- }
- }
-}
\ No newline at end of file
diff --git a/modules/ticket/back/models/sale-cloned.json b/modules/ticket/back/models/sale-cloned.json
new file mode 100644
index 000000000..eb0641684
--- /dev/null
+++ b/modules/ticket/back/models/sale-cloned.json
@@ -0,0 +1,26 @@
+{
+ "name": "SaleCloned",
+ "base": "VnModel",
+ "options": {
+ "mysql": {
+ "table": "saleCloned"
+ }
+ },
+ "properties": {
+ "saleClonedFk": {
+ "id": true
+ }
+ },
+ "relations": {
+ "saleOriginal": {
+ "type": "belongsTo",
+ "model": "Sale",
+ "foreignKey": "saleOriginalFk"
+ },
+ "saleCloned": {
+ "type": "belongsTo",
+ "model": "Sale",
+ "foreignKey": "saleClonedFk"
+ }
+ }
+}
diff --git a/modules/ticket/back/models/sale.js b/modules/ticket/back/models/sale.js
index 2a4457263..ae247fc24 100644
--- a/modules/ticket/back/models/sale.js
+++ b/modules/ticket/back/models/sale.js
@@ -8,6 +8,7 @@ module.exports = Self => {
require('../methods/sale/recalculatePrice')(Self);
require('../methods/sale/refund')(Self);
require('../methods/sale/canEdit')(Self);
+ require('../methods/sale/usesMana')(Self);
Self.validatesPresenceOf('concept', {
message: `Concept cannot be blank`
diff --git a/modules/ticket/back/models/sale.json b/modules/ticket/back/models/sale.json
index e18f0291f..b30954ad1 100644
--- a/modules/ticket/back/models/sale.json
+++ b/modules/ticket/back/models/sale.json
@@ -56,11 +56,6 @@
"foreignKey": "ticketFk",
"required": true
},
- "isChecked": {
- "type": "hasOne",
- "model": "SaleChecked",
- "foreignKey": "saleFk"
- },
"components": {
"type": "hasMany",
"model": "SaleComponent",
@@ -80,6 +75,6 @@
"type": "hasOne",
"model": "ItemShelvingSale",
"foreignKey": "saleFk"
- }
+ }
}
}
diff --git a/modules/ticket/back/models/ticket-log.js b/modules/ticket/back/models/ticket-log.js
new file mode 100644
index 000000000..81855ada7
--- /dev/null
+++ b/modules/ticket/back/models/ticket-log.js
@@ -0,0 +1,3 @@
+module.exports = function(Self) {
+ require('../methods/ticket-log/getChanges')(Self);
+};
diff --git a/modules/ticket/back/models/ticket-methods.js b/modules/ticket/back/models/ticket-methods.js
index 9255e52e6..73df0579c 100644
--- a/modules/ticket/back/models/ticket-methods.js
+++ b/modules/ticket/back/models/ticket-methods.js
@@ -33,4 +33,10 @@ module.exports = function(Self) {
require('../methods/ticket/closeByTicket')(Self);
require('../methods/ticket/closeByAgency')(Self);
require('../methods/ticket/closeByRoute')(Self);
+ require('../methods/ticket/getTicketsFuture')(Self);
+ require('../methods/ticket/merge')(Self);
+ require('../methods/ticket/getTicketsAdvance')(Self);
+ require('../methods/ticket/isRoleAdvanced')(Self);
+ require('../methods/ticket/collectionLabel')(Self);
+ require('../methods/ticket/expeditionPalletLabel')(Self);
};
diff --git a/modules/ticket/back/models/ticket-request.js b/modules/ticket/back/models/ticket-request.js
index 234978f33..4125126dc 100644
--- a/modules/ticket/back/models/ticket-request.js
+++ b/modules/ticket/back/models/ticket-request.js
@@ -5,6 +5,7 @@ module.exports = function(Self) {
require('../methods/ticket-request/filter')(Self);
require('../methods/ticket-request/deny')(Self);
require('../methods/ticket-request/confirm')(Self);
+ require('../methods/ticket-request/getItemTypeWorker')(Self);
Self.observe('before save', async function(ctx) {
if (ctx.isNewInstance) {
diff --git a/modules/ticket/front/advance-search-panel/index.html b/modules/ticket/front/advance-search-panel/index.html
new file mode 100644
index 000000000..e8d5dc60d
--- /dev/null
+++ b/modules/ticket/front/advance-search-panel/index.html
@@ -0,0 +1,76 @@
+
+
+
diff --git a/modules/ticket/front/advance-search-panel/index.js b/modules/ticket/front/advance-search-panel/index.js
new file mode 100644
index 000000000..259a40931
--- /dev/null
+++ b/modules/ticket/front/advance-search-panel/index.js
@@ -0,0 +1,43 @@
+import ngModule from '../module';
+import SearchPanel from 'core/components/searchbar/search-panel';
+
+class Controller extends SearchPanel {
+ constructor($, $element) {
+ super($, $element);
+ this.filter = this.$.filter;
+ this.getGroupedStates();
+ this.getItemPackingTypes();
+ }
+
+ getGroupedStates() {
+ let groupedStates = [];
+ this.$http.get('AlertLevels').then(res => {
+ for (let state of res.data) {
+ groupedStates.push({
+ id: state.id,
+ code: state.code,
+ name: this.$t(state.code)
+ });
+ }
+ this.groupedStates = groupedStates;
+ });
+ }
+
+ getItemPackingTypes() {
+ let itemPackingTypes = [];
+ this.$http.get('ItemPackingTypes').then(res => {
+ for (let ipt of res.data) {
+ itemPackingTypes.push({
+ code: ipt.code,
+ description: this.$t(ipt.description)
+ });
+ }
+ this.itemPackingTypes = itemPackingTypes;
+ });
+ }
+}
+
+ngModule.vnComponent('vnAdvanceTicketSearchPanel', {
+ template: require('./index.html'),
+ controller: Controller
+});
diff --git a/modules/ticket/front/advance-search-panel/locale/en.yml b/modules/ticket/front/advance-search-panel/locale/en.yml
new file mode 100644
index 000000000..f01932c7a
--- /dev/null
+++ b/modules/ticket/front/advance-search-panel/locale/en.yml
@@ -0,0 +1 @@
+Advance tickets: Advance tickets
diff --git a/modules/ticket/front/advance-search-panel/locale/es.yml b/modules/ticket/front/advance-search-panel/locale/es.yml
new file mode 100644
index 000000000..3dce7dae5
--- /dev/null
+++ b/modules/ticket/front/advance-search-panel/locale/es.yml
@@ -0,0 +1 @@
+Advance tickets: Adelantar tickets
diff --git a/modules/ticket/front/advance/index.html b/modules/ticket/front/advance/index.html
new file mode 100644
index 000000000..f63c0fbf7
--- /dev/null
+++ b/modules/ticket/front/advance/index.html
@@ -0,0 +1,160 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Origin
+ Destination
+
+
+
+
+
+
+
+ ID
+
+
+ Date
+
+
+ IPT
+
+
+ State
+
+
+ Import
+
+
+ ID
+
+
+ Date
+
+
+ IPT
+
+
+ State
+
+
+ Liters
+
+
+ Stock
+
+
+ Lines
+
+
+ Import
+
+
+
+
+
+
+
+
+
+
+
+ {{::ticket.futureId | dashIfEmpty}}
+
+
+
+
+ {{::ticket.futureShipped | date: 'dd/MM/yyyy'}}
+
+
+ {{::ticket.futureIpt | dashIfEmpty}}
+
+
+ {{::ticket.futureState | dashIfEmpty}}
+
+
+
+
+ {{::(ticket.futureTotalWithVat ? ticket.futureTotalWithVat : 0) | currency: 'EUR': 2}}
+
+
+
+
+ {{::ticket.id | dashIfEmpty}}
+
+
+
+
+ {{::ticket.shipped | date: 'dd/MM/yyyy'}}
+
+
+ {{::ticket.ipt | dashIfEmpty}}
+
+
+ {{::ticket.state | dashIfEmpty}}
+
+
+ {{::ticket.liters | dashIfEmpty}}
+ {{::ticket.hasStock | dashIfEmpty}}
+ {{::ticket.lines | dashIfEmpty}}
+
+
+ {{::(ticket.totalWithVat ? ticket.totalWithVat : 0) | currency: 'EUR': 2}}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ticket/front/advance/index.js b/modules/ticket/front/advance/index.js
new file mode 100644
index 000000000..1404f9472
--- /dev/null
+++ b/modules/ticket/front/advance/index.js
@@ -0,0 +1,177 @@
+import ngModule from '../module';
+import Section from 'salix/components/section';
+
+export default class Controller extends Section {
+ constructor($element, $) {
+ super($element, $);
+ this.$checkAll = false;
+
+ this.smartTableOptions = {
+ activeButtons: {
+ search: true,
+ },
+ columns: [
+ {
+ field: 'state',
+ searchable: false
+ },
+ {
+ field: 'futureState',
+ searchable: false
+ },
+ {
+ field: 'totalWithVat',
+ searchable: false
+ },
+ {
+ field: 'futureTotalWithVat',
+ searchable: false
+ },
+ {
+ field: 'shipped',
+ searchable: false
+ },
+ {
+ field: 'futureShipped',
+ searchable: false
+ },
+ {
+ field: 'ipt',
+ autocomplete: {
+ url: 'ItemPackingTypes',
+ showField: 'description',
+ valueField: 'code'
+ }
+ },
+ {
+ field: 'futureIpt',
+ autocomplete: {
+ url: 'ItemPackingTypes',
+ showField: 'description',
+ valueField: 'code'
+ }
+ },
+ ]
+ };
+ }
+
+ $postLink() {
+ this.setDefaultFilter();
+ }
+
+ setDefaultFilter() {
+ let today = new Date();
+ const tomorrow = new Date(today);
+ tomorrow.setDate(tomorrow.getDate() + 1);
+ this.filterParams = {
+ dateFuture: tomorrow,
+ dateToAdvance: today,
+ warehouseFk: this.vnConfig.warehouseFk
+ };
+ this.$.model.applyFilter(null, this.filterParams);
+ }
+
+ compareDate(date) {
+ let today = new Date();
+ today.setHours(0, 0, 0, 0);
+ let timeTicket = new Date(date);
+ timeTicket.setHours(0, 0, 0, 0);
+
+ let comparation = today - timeTicket;
+
+ if (comparation == 0)
+ return 'warning';
+ if (comparation < 0)
+ return 'success';
+ }
+
+ get checked() {
+ const tickets = this.$.model.data || [];
+ const checkedLines = [];
+ for (let ticket of tickets) {
+ if (ticket.checked)
+ checkedLines.push(ticket);
+ }
+
+ return checkedLines;
+ }
+
+ stateColor(state) {
+ if (state === 'OK')
+ return 'success';
+ else if (state === 'Libre')
+ return 'notice';
+ }
+
+ dateRange(value) {
+ const minHour = new Date(value);
+ minHour.setHours(0, 0, 0, 0);
+ const maxHour = new Date(value);
+ maxHour.setHours(23, 59, 59, 59);
+
+ return [minHour, maxHour];
+ }
+
+ totalPriceColor(totalWithVat) {
+ const total = parseInt(totalWithVat);
+ if (total > 0 && total < 50)
+ return 'warning';
+ }
+
+ get confirmationMessage() {
+ if (!this.$.model) return 0;
+
+ return this.$t(`Advance confirmation`, {
+ checked: this.checked.length
+ });
+ }
+
+ moveTicketsAdvance() {
+ let ticketsToMove = [];
+ this.checked.forEach(ticket => {
+ ticketsToMove.push({
+ originId: ticket.futureId,
+ destinationId: ticket.id,
+ originShipped: ticket.futureShipped,
+ destinationShipped: ticket.shipped,
+ workerFk: ticket.workerFk
+ });
+ });
+ const params = {tickets: ticketsToMove};
+ return this.$http.post('Tickets/merge', params)
+ .then(() => {
+ this.$.model.refresh();
+ this.vnApp.showSuccess(this.$t('Success'));
+ });
+ }
+
+ exprBuilder(param, value) {
+ switch (param) {
+ case 'id':
+ return {'id': value};
+ case 'futureId':
+ return {'futureId': value};
+ case 'liters':
+ return {'liters': value};
+ case 'lines':
+ return {'lines': value};
+ case 'ipt':
+ return {'ipt': value};
+ case 'futureIpt':
+ return {'futureIpt': value};
+ case 'totalWithVat':
+ return {'totalWithVat': value};
+ case 'futureTotalWithVat':
+ return {'futureTotalWithVat': value};
+ case 'hasStock':
+ return {'hasStock': value};
+ }
+ }
+}
+
+Controller.$inject = ['$element', '$scope'];
+
+ngModule.vnComponent('vnTicketAdvance', {
+ template: require('./index.html'),
+ controller: Controller
+});
diff --git a/modules/ticket/front/advance/index.spec.js b/modules/ticket/front/advance/index.spec.js
new file mode 100644
index 000000000..c5a04daee
--- /dev/null
+++ b/modules/ticket/front/advance/index.spec.js
@@ -0,0 +1,113 @@
+import './index.js';
+import crudModel from 'core/mocks/crud-model';
+
+describe('Component vnTicketAdvance', () => {
+ let controller;
+ let $httpBackend;
+
+ beforeEach(ngModule('ticket')
+ );
+
+ beforeEach(inject(($componentController, _$httpBackend_) => {
+ $httpBackend = _$httpBackend_;
+ const $element = angular.element(' ');
+ controller = $componentController('vnTicketAdvance', {$element});
+ controller.$.model = crudModel;
+ controller.$.model.data = [{
+ id: 1,
+ checked: true,
+ state: 'OK'
+ }, {
+ id: 2,
+ checked: true,
+ state: 'Libre'
+ }];
+ }));
+
+ describe('compareDate()', () => {
+ it('should return warning when the date is the present', () => {
+ let today = new Date();
+ let result = controller.compareDate(today);
+
+ expect(result).toEqual('warning');
+ });
+
+ it('should return sucess when the date is in the future', () => {
+ let futureDate = new Date();
+ futureDate = futureDate.setDate(futureDate.getDate() + 10);
+ let result = controller.compareDate(futureDate);
+
+ expect(result).toEqual('success');
+ });
+
+ it('should return undefined when the date is in the past', () => {
+ let pastDate = new Date();
+ pastDate = pastDate.setDate(pastDate.getDate() - 10);
+ let result = controller.compareDate(pastDate);
+
+ expect(result).toEqual(undefined);
+ });
+ });
+
+ describe('checked()', () => {
+ it('should return an array of checked tickets', () => {
+ const result = controller.checked;
+ const firstRow = result[0];
+ const secondRow = result[1];
+
+ expect(result.length).toEqual(2);
+ expect(firstRow.id).toEqual(1);
+ expect(secondRow.id).toEqual(2);
+ });
+ });
+
+ describe('stateColor()', () => {
+ it('should return success to the OK tickets', () => {
+ const ok = controller.stateColor(controller.$.model.data[0].state);
+ const notOk = controller.stateColor(controller.$.model.data[1].state);
+
+ expect(ok).toEqual('success');
+ expect(notOk).not.toEqual('success');
+ });
+
+ it('should return success to the FREE tickets', () => {
+ const notFree = controller.stateColor(controller.$.model.data[0].state);
+ const free = controller.stateColor(controller.$.model.data[1].state);
+
+ expect(free).toEqual('notice');
+ expect(notFree).not.toEqual('notice');
+ });
+ });
+
+ describe('dateRange()', () => {
+ it('should return two dates with the hours at the start and end of the given date', () => {
+ const now = new Date();
+
+ const today = now.getDate();
+
+ const dateRange = controller.dateRange(now);
+ const start = dateRange[0].toString();
+ const end = dateRange[1].toString();
+
+ expect(start).toContain(today);
+ expect(start).toContain('00:00:00');
+
+ expect(end).toContain(today);
+ expect(end).toContain('23:59:59');
+ });
+ });
+
+ describe('moveTicketsAdvance()', () => {
+ it('should make an HTTP Post query', () => {
+ jest.spyOn(controller.$.model, 'refresh');
+ jest.spyOn(controller.vnApp, 'showSuccess');
+
+ $httpBackend.expectPOST(`Tickets/merge`).respond();
+ controller.moveTicketsAdvance();
+ $httpBackend.flush();
+
+ expect(controller.vnApp.showSuccess).toHaveBeenCalled();
+ expect(controller.$.model.refresh).toHaveBeenCalledWith();
+ });
+ });
+});
diff --git a/modules/ticket/front/advance/locale/en.yml b/modules/ticket/front/advance/locale/en.yml
new file mode 100644
index 000000000..a47d951d0
--- /dev/null
+++ b/modules/ticket/front/advance/locale/en.yml
@@ -0,0 +1,2 @@
+Advance tickets: Advance tickets
+Success: Tickets moved successfully!
diff --git a/modules/ticket/front/advance/locale/es.yml b/modules/ticket/front/advance/locale/es.yml
new file mode 100644
index 000000000..b444fbdd3
--- /dev/null
+++ b/modules/ticket/front/advance/locale/es.yml
@@ -0,0 +1,6 @@
+Advance tickets: Adelantar tickets
+Search advance tickets by date: Busca tickets para adelantar por fecha
+Advance confirmation: ¿Desea adelantar {{checked}} tickets?
+Success: Tickets movidos correctamente
+Lines: Líneas
+Liters: Litros
diff --git a/modules/ticket/front/basic-data/step-two/index.js b/modules/ticket/front/basic-data/step-two/index.js
index c12647aa5..4ac9f292e 100644
--- a/modules/ticket/front/basic-data/step-two/index.js
+++ b/modules/ticket/front/basic-data/step-two/index.js
@@ -67,6 +67,7 @@ class Controller extends Component {
ticketHaveNegatives() {
let haveNegatives = false;
let haveNotNegatives = false;
+ this.ticket.withoutNegatives = false;
const haveDifferences = this.ticket.sale.haveDifferences;
this.ticket.sale.items.forEach(item => {
@@ -76,8 +77,9 @@ class Controller extends Component {
haveNotNegatives = true;
});
- this.ticket.withoutNegatives = false;
this.haveNegatives = (haveNegatives && haveNotNegatives && haveDifferences);
+ if (this.haveNegatives)
+ this.ticket.withoutNegatives = true;
}
onSubmit() {
diff --git a/modules/ticket/front/boxing/index.html b/modules/ticket/front/boxing/index.html
new file mode 100644
index 000000000..7fb3b870e
--- /dev/null
+++ b/modules/ticket/front/boxing/index.html
@@ -0,0 +1,2 @@
+
+
diff --git a/modules/ticket/front/boxing/index.js b/modules/ticket/front/boxing/index.js
new file mode 100644
index 000000000..4e6b398f2
--- /dev/null
+++ b/modules/ticket/front/boxing/index.js
@@ -0,0 +1,21 @@
+import ngModule from '../module';
+import Section from 'salix/components/section';
+
+class Controller extends Section {
+ constructor($element, $) {
+ super($element, $);
+ }
+
+ async $onInit() {
+ const url = await this.vnApp.getUrl(`ticket/${this.$params.id}/boxing`);
+ window.open(url).focus();
+ }
+}
+
+ngModule.vnComponent('vnTicketBoxing', {
+ template: require('./index.html'),
+ controller: Controller,
+ bindings: {
+ ticket: '<'
+ }
+});
diff --git a/modules/ticket/front/card/index.js b/modules/ticket/front/card/index.js
index e63fb9b15..fa4ad4e39 100644
--- a/modules/ticket/front/card/index.js
+++ b/modules/ticket/front/card/index.js
@@ -35,7 +35,8 @@ class Controller extends ModuleCard {
'credit',
'email',
'phone',
- 'mobile'
+ 'mobile',
+ 'hasElectronicInvoice',
],
include: {
relation: 'salesPersonUser',
diff --git a/modules/ticket/front/descriptor-menu/index.html b/modules/ticket/front/descriptor-menu/index.html
index ea84743bc..805e0b391 100644
--- a/modules/ticket/front/descriptor-menu/index.html
+++ b/modules/ticket/front/descriptor-menu/index.html
@@ -5,6 +5,13 @@
+
+ Transfer client
+
- as PDF without prices
+ as PDF without prices
SMS Minimum import
+
+ SMS Notify changes
+
@@ -242,11 +255,42 @@
+
+
+
+
+
+
+ #{{id}} - {{::name}}
+
+
+
+
+ Transfer client
+
+
+
-
-
+
-
\ No newline at end of file
+
diff --git a/modules/ticket/front/descriptor-menu/index.js b/modules/ticket/front/descriptor-menu/index.js
index f73aae721..168002d07 100644
--- a/modules/ticket/front/descriptor-menu/index.js
+++ b/modules/ticket/front/descriptor-menu/index.js
@@ -65,7 +65,8 @@ class Controller extends Section {
'credit',
'email',
'phone',
- 'mobile'
+ 'mobile',
+ 'hasElectronicInvoice',
],
include: {
relation: 'salesPersonUser',
@@ -95,6 +96,23 @@ class Controller extends Section {
});
}
+ transferClient() {
+ this.$http.get(`Clients/${this.ticket.client.id}`).then(client => {
+ const ticket = this.ticket;
+
+ const params =
+ {
+ clientFk: client.data.id,
+ addressFk: client.data.defaultAddressFk,
+ };
+
+ this.$http.patch(`Tickets/${ticket.id}`, params).then(() => {
+ this.vnApp.showSuccess(this.$t('Data saved!'));
+ this.reload();
+ });
+ });
+ }
+
isTicketEditable() {
if (!this.ticket) return;
@@ -207,6 +225,18 @@ class Controller extends Section {
});
}
+ sendChangesSms() {
+ return this.$http.get(`TicketLogs/${this.id}/getChanges`)
+ .then(res => {
+ const params = {
+ ticketId: this.id,
+ created: this.ticket.updated,
+ changes: res.data
+ };
+ this.showSMSDialog({message: this.$t('Send changes', params)});
+ });
+ }
+
showSMSDialog(params) {
const address = this.ticket.address;
const client = this.ticket.client;
@@ -221,11 +251,29 @@ class Controller extends Section {
destinationFk: this.ticket.clientFk,
destination: phone
}, params);
+
this.$.sms.open();
}
makeInvoice() {
const params = {ticketsIds: [this.id]};
+ /*
+ This should call the notification sistem to insert a new notification
+ in te queue, yet to check how to handle user permissions,
+ as of 08-11-2022 every employee can insert a new notification in the queue
+
+ */
+ const client = this.ticket.client;
+
+ if (client.hasElectronicInvoice) {
+ this.$http.post(`NotificationQueues`, {
+ notificationFk: 'invoiceElectronic',
+ authorFk: client.id,
+ }).then(() => {
+ this.vnApp.showSuccess(this.$t('Invoice sent'));
+ });
+ }
+
return this.$http.post(`Tickets/makeInvoice`, params)
.then(() => this.reload())
.then(() => this.vnApp.showSuccess(this.$t('Ticket invoiced')));
@@ -259,6 +307,11 @@ class Controller extends Section {
this.$state.go('ticket.card.sale', {id: refundTicket.id});
});
}
+
+ onSmsSend(sms) {
+ return this.$http.post(`Tickets/${this.id}/sendSms`, sms)
+ .then(() => this.vnApp.showSuccess(this.$t('SMS sent')));
+ }
}
Controller.$inject = ['$element', '$scope', 'vnReport', 'vnEmail'];
diff --git a/modules/ticket/front/descriptor-menu/index.spec.js b/modules/ticket/front/descriptor-menu/index.spec.js
index 091b9a2cf..48b64f4a0 100644
--- a/modules/ticket/front/descriptor-menu/index.spec.js
+++ b/modules/ticket/front/descriptor-menu/index.spec.js
@@ -258,14 +258,24 @@ describe('Ticket Component vnTicketDescriptorMenu', () => {
});
});
- describe('showSMSDialog()', () => {
- it('should set the destionationFk and destination properties and then call the sms open() method', () => {
+ describe('sendChangesSms()', () => {
+ it('should make a query and open the sms dialog', () => {
controller.$.sms = {open: () => {}};
jest.spyOn(controller.$.sms, 'open');
- controller.showSMSDialog();
+ $httpBackend.expectGET(`TicketLogs/${ticket.id}/getChanges`).respond();
+ controller.sendChangesSms();
+ $httpBackend.flush();
expect(controller.$.sms.open).toHaveBeenCalledWith();
+ });
+ });
+
+ describe('showSMSDialog()', () => {
+ it('should set the destionationFk and destination properties and then call the sms open() method', () => {
+ controller.$.sms = {open: () => {}};
+ controller.showSMSDialog();
+
expect(controller.newSMS).toEqual({
destinationFk: ticket.clientFk,
destination: ticket.address.mobile,
@@ -281,4 +291,17 @@ describe('Ticket Component vnTicketDescriptorMenu', () => {
$httpBackend.flush();
});
});
+
+ describe('transferClient()', () => {
+ it(`should perform two queries, a get to obtain the clientData and a patch to update the ticket`, () => {
+ const client =
+ {
+ clientFk: 1101,
+ addressFk: 1,
+ };
+ $httpBackend.expect('GET', `Clients/${ticket.client.id}`).respond(client);
+ $httpBackend.expect('PATCH', `Tickets/${ticket.id}`).respond();
+ controller.transferClient();
+ });
+ });
});
diff --git a/modules/ticket/front/descriptor-menu/locale/es.yml b/modules/ticket/front/descriptor-menu/locale/es.yml
index b65159a3c..a2725f485 100644
--- a/modules/ticket/front/descriptor-menu/locale/es.yml
+++ b/modules/ticket/front/descriptor-menu/locale/es.yml
@@ -9,4 +9,7 @@ Send CSV Delivery Note: Enviar albarán en CSV
Send PDF Delivery Note: Enviar albarán en PDF
Show Proforma: Ver proforma
Refund all: Abonar todo
-The following refund ticket have been created: "Se ha creado siguiente ticket de abono: {{ticketId}}"
\ No newline at end of file
+Invoice sent: Factura enviada
+The following refund ticket have been created: "Se ha creado siguiente ticket de abono: {{ticketId}}"
+Transfer client: Transferir cliente
+SMS Notify changes: SMS Notificar cambios
diff --git a/modules/ticket/front/descriptor/index.js b/modules/ticket/front/descriptor/index.js
index 28d5eb953..aaaad423e 100644
--- a/modules/ticket/front/descriptor/index.js
+++ b/modules/ticket/front/descriptor/index.js
@@ -39,7 +39,8 @@ class Controller extends Descriptor {
'name',
'isActive',
'isFreezed',
- 'isTaxDataChecked'
+ 'isTaxDataChecked',
+ 'hasElectronicInvoice',
],
include: {
relation: 'salesPersonUser',
diff --git a/modules/ticket/front/descriptor/locale/en.yml b/modules/ticket/front/descriptor/locale/en.yml
index 64075c7ef..8eed2265d 100644
--- a/modules/ticket/front/descriptor/locale/en.yml
+++ b/modules/ticket/front/descriptor/locale/en.yml
@@ -1,2 +1,3 @@
Make a payment: "Verdnatura communicates:\rYour order is pending of payment.\rPlease, enter the web page and make the payment with card.\rThank you."
Minimum is needed: "Verdnatura communicates:\rA minimum import of 50€ (Without BAT) is needed for your order {{ticketId}} from date {{created | date: 'dd/MM/yyyy'}} to receive it with no extra fees."
+Send changes: "Verdnatura communicates:\rOrder {{ticketId}} date {{created | date: 'dd/MM/yyyy'}}\r{{changes}}"
diff --git a/modules/ticket/front/descriptor/locale/es.yml b/modules/ticket/front/descriptor/locale/es.yml
index 8ab88ce09..d921b5dc2 100644
--- a/modules/ticket/front/descriptor/locale/es.yml
+++ b/modules/ticket/front/descriptor/locale/es.yml
@@ -22,4 +22,5 @@ SMS Pending payment: 'SMS Pago pendiente'
Restore ticket: Restaurar ticket
You are going to restore this ticket: Vas a restaurar este ticket
Are you sure you want to restore this ticket?: ¿Seguro que quieres restaurar el ticket?
-Are you sure you want to refund all?: ¿Seguro que quieres abonar todo?
\ No newline at end of file
+Are you sure you want to refund all?: ¿Seguro que quieres abonar todo?
+Send changes: "Verdnatura le recuerda:\rPedido {{ticketId}} día {{created | date: 'dd/MM/yyyy'}}\r{{changes}}"
diff --git a/modules/ticket/front/expedition/index.html b/modules/ticket/front/expedition/index.html
index a41d368f6..ec6dc7ee2 100644
--- a/modules/ticket/front/expedition/index.html
+++ b/modules/ticket/front/expedition/index.html
@@ -8,54 +8,77 @@
auto-load="true">
-
-
-
-
-
- Expedition
- Item
- Name
- Package type
- Counter
- externalId
- Created
- State
-
-
-
-
-
-
-
-
-
- {{expedition.id | zeroFill:6}}
-
-
- {{expedition.packagingFk}}
-
-
- {{::expedition.packageItemName}}
- {{::expedition.freightItemName}}
- {{::expedition.counter}}
- {{::expedition.externalId}}
- {{::expedition.created | date:'dd/MM/yyyy HH:mm'}}
- {{::expedition.state}}
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ Expedition
+ Item
+ Name
+ Package type
+ Counter
+ externalId
+ Created
+ State
+
+
+
+
+
+
+
+
+
+ {{expedition.id | zeroFill:6}}
+
+
+ {{expedition.packagingFk}}
+
+
+ {{::expedition.packageItemName}}
+ {{::expedition.freightItemName}}
+ {{::expedition.counter}}
+ {{::expedition.externalId}}
+ {{::expedition.created | date:'dd/MM/yyyy HH:mm'}}
+ {{::expedition.state}}
+
+
+
+
+
+
+
-
+ on-accept="$ctrl.onRemove()">
-
+
-
+
State
@@ -111,4 +134,37 @@
-
\ No newline at end of file
+
+
+
+
+ New ticket without route
+
+
+ New ticket with route
+
+
+
+
+
+
+
+
+
+
+
+
+ Accept
+
+
\ No newline at end of file
diff --git a/modules/ticket/front/expedition/index.js b/modules/ticket/front/expedition/index.js
index 120d89bb2..7ffe2fe5e 100644
--- a/modules/ticket/front/expedition/index.js
+++ b/modules/ticket/front/expedition/index.js
@@ -2,6 +2,27 @@ import ngModule from '../module';
import Section from 'salix/components/section';
class Controller extends Section {
+ constructor($element, $scope) {
+ super($element, $scope);
+ this.landed = new Date();
+ this.newRoute = null;
+ }
+
+ get checked() {
+ const rows = this.$.model.data || [];
+ const checkedRows = [];
+ for (let row of rows) {
+ if (row.checked)
+ checkedRows.push(row.id);
+ }
+
+ return checkedRows;
+ }
+
+ get totalChecked() {
+ return this.checked.length;
+ }
+
onDialogAccept(id) {
return this.$http.delete(`Expeditions/${id}`)
.then(() => this.$.model.refresh());
@@ -11,6 +32,33 @@ class Controller extends Section {
this.expedition = expedition;
this.$.statusLog.show();
}
+
+ onRemove() {
+ const params = {expeditionIds: this.checked};
+ const query = `Expeditions/deleteExpeditions`;
+ this.$http.post(query, params)
+ .then(() => {
+ this.vnApp.showSuccess(this.$t('Expedition removed'));
+ this.$.model.refresh();
+ });
+ }
+
+ createTicket(landed, routeFk) {
+ const params = {
+ clientId: this.ticket.clientFk,
+ landed: landed,
+ warehouseId: this.ticket.warehouseFk,
+ addressId: this.ticket.addressFk,
+ agencyModeId: this.ticket.agencyModeFk,
+ routeId: routeFk,
+ expeditionIds: this.checked
+ };
+ const query = `Expeditions/moveExpeditions`;
+ this.$http.post(query, params).then(res => {
+ this.vnApp.showSuccess(this.$t('Data saved!'));
+ this.$state.go('ticket.card.summary', {id: res.data.id});
+ });
+ }
}
ngModule.vnComponent('vnTicketExpedition', {
diff --git a/modules/ticket/front/expedition/index.spec.js b/modules/ticket/front/expedition/index.spec.js
index 586ef2109..5a538b1c8 100644
--- a/modules/ticket/front/expedition/index.spec.js
+++ b/modules/ticket/front/expedition/index.spec.js
@@ -17,6 +17,14 @@ describe('Ticket', () => {
refresh: () => {}
};
controller = $componentController('vnTicketExpedition', {$element: null, $scope});
+ controller.$.model.data = [
+ {id: 1},
+ {id: 2},
+ {id: 3}
+ ];
+ const modelData = controller.$.model.data;
+ modelData[0].checked = true;
+ modelData[1].checked = true;
}));
describe('onDialogAccept()', () => {
@@ -50,5 +58,52 @@ describe('Ticket', () => {
expect(controller.$.statusLog.show).toHaveBeenCalledWith();
});
});
+
+ describe('onRemove()', () => {
+ it('should make a query and then call to the model refresh() method', () => {
+ jest.spyOn($scope.model, 'refresh');
+
+ const expectedParams = {expeditionIds: [1, 2]};
+ $httpBackend.expect('POST', 'Expeditions/deleteExpeditions', expectedParams).respond(200);
+ controller.onRemove();
+ $httpBackend.flush();
+
+ expect($scope.model.refresh).toHaveBeenCalledWith();
+ });
+ });
+
+ describe('createTicket()', () => {
+ it('should make a query and then call to the $state go() method', () => {
+ jest.spyOn(controller.$state, 'go').mockReturnThis();
+
+ const landed = new Date();
+ const ticket = {
+ clientFk: 1101,
+ landed: landed,
+ addressFk: 121,
+ agencyModeFk: 1,
+ warehouseFk: 1
+ };
+ const routeId = null;
+ controller.ticket = ticket;
+
+ const ticketToTransfer = {id: 28};
+
+ const expectedParams = {
+ clientId: 1101,
+ landed: landed,
+ warehouseId: 1,
+ addressId: 121,
+ agencyModeId: 1,
+ routeId: null,
+ expeditionIds: [1, 2]
+ };
+ $httpBackend.expect('POST', 'Expeditions/moveExpeditions', expectedParams).respond(ticketToTransfer);
+ controller.createTicket(ticket.landed, routeId);
+ $httpBackend.flush();
+
+ expect(controller.$state.go).toHaveBeenCalledWith('ticket.card.summary', {id: ticketToTransfer.id});
+ });
+ });
});
});
diff --git a/modules/ticket/front/expedition/locale/es.yml b/modules/ticket/front/expedition/locale/es.yml
index d23cf25af..278dcc8f2 100644
--- a/modules/ticket/front/expedition/locale/es.yml
+++ b/modules/ticket/front/expedition/locale/es.yml
@@ -1 +1,6 @@
-Status log: Hitorial de estados
\ No newline at end of file
+Status log: Hitorial de estados
+Expedition removed: Expedición eliminada
+Move: Mover
+New ticket without route: Nuevo ticket sin ruta
+New ticket with route: Nuevo ticket con ruta
+Route id: Id ruta
\ No newline at end of file
diff --git a/modules/ticket/front/future-search-panel/index.html b/modules/ticket/front/future-search-panel/index.html
new file mode 100644
index 000000000..18b574f2a
--- /dev/null
+++ b/modules/ticket/front/future-search-panel/index.html
@@ -0,0 +1,94 @@
+
+
+
diff --git a/modules/ticket/front/future-search-panel/index.js b/modules/ticket/front/future-search-panel/index.js
new file mode 100644
index 000000000..d7e7b3a5e
--- /dev/null
+++ b/modules/ticket/front/future-search-panel/index.js
@@ -0,0 +1,43 @@
+import ngModule from '../module';
+import SearchPanel from 'core/components/searchbar/search-panel';
+
+class Controller extends SearchPanel {
+ constructor($, $element) {
+ super($, $element);
+ this.filter = this.$.filter;
+ this.getGroupedStates();
+ this.getItemPackingTypes();
+ }
+
+ getGroupedStates() {
+ let groupedStates = [];
+ this.$http.get('AlertLevels').then(res => {
+ for (let state of res.data) {
+ groupedStates.push({
+ id: state.id,
+ code: state.code,
+ name: this.$t(state.code)
+ });
+ }
+ this.groupedStates = groupedStates;
+ });
+ }
+
+ getItemPackingTypes() {
+ let itemPackingTypes = [];
+ this.$http.get('ItemPackingTypes').then(res => {
+ for (let ipt of res.data) {
+ itemPackingTypes.push({
+ description: this.$t(ipt.description),
+ code: ipt.code,
+ });
+ }
+ this.itemPackingTypes = itemPackingTypes;
+ });
+ }
+}
+
+ngModule.vnComponent('vnFutureTicketSearchPanel', {
+ template: require('./index.html'),
+ controller: Controller
+});
diff --git a/modules/ticket/front/future-search-panel/locale/en.yml b/modules/ticket/front/future-search-panel/locale/en.yml
new file mode 100644
index 000000000..767c20152
--- /dev/null
+++ b/modules/ticket/front/future-search-panel/locale/en.yml
@@ -0,0 +1 @@
+Future tickets: Tickets a futuro
diff --git a/modules/ticket/front/future-search-panel/locale/es.yml b/modules/ticket/front/future-search-panel/locale/es.yml
new file mode 100644
index 000000000..9d72c5b06
--- /dev/null
+++ b/modules/ticket/front/future-search-panel/locale/es.yml
@@ -0,0 +1,14 @@
+Future tickets: Tickets a futuro
+Origin date: Fecha origen
+Destination date: Fecha destino
+Origin ETD: ETD origen
+Destination ETD: ETD destino
+Max Lines: Líneas máx.
+Max Liters: Litros máx.
+Origin IPT: IPT origen
+Destination IPT: IPT destino
+With problems: Con problemas
+Warehouse: Almacén
+Origin Grouped State: Estado agrupado origen
+Destination Grouped State: Estado agrupado destino
+IPT: Encajado
diff --git a/modules/ticket/front/future/index.html b/modules/ticket/front/future/index.html
new file mode 100644
index 000000000..1af1fb9ba
--- /dev/null
+++ b/modules/ticket/front/future/index.html
@@ -0,0 +1,179 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Origin
+ Destination
+
+
+
+
+
+
+
+ Problems
+
+
+ ID
+
+
+ Date
+
+
+ IPT
+
+
+ State
+
+
+ Liters
+
+
+ Available Lines
+
+
+ ID
+
+
+ Date
+
+
+ IPT
+
+
+ State
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{::ticket.id}}
+
+
+
+ {{::ticket.shipped | date: 'dd/MM/yyyy'}}
+
+
+ {{::ticket.ipt}}
+
+
+ {{::ticket.state}}
+
+
+ {{::ticket.liters}}
+ {{::ticket.lines}}
+
+
+ {{::ticket.futureId}}
+
+
+
+
+ {{::ticket.futureShipped | date: 'dd/MM/yyyy'}}
+
+
+ {{::ticket.futureIpt}}
+
+
+ {{::ticket.futureState}}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/ticket/front/future/index.js b/modules/ticket/front/future/index.js
new file mode 100644
index 000000000..56ba1608e
--- /dev/null
+++ b/modules/ticket/front/future/index.js
@@ -0,0 +1,159 @@
+import ngModule from '../module';
+import Section from 'salix/components/section';
+
+export default class Controller extends Section {
+ constructor($element, $) {
+ super($element, $);
+ this.$checkAll = false;
+
+ this.smartTableOptions = {
+ activeButtons: {
+ search: true,
+ },
+ columns: [{
+ field: 'totalProblems',
+ searchable: false,
+ },
+ {
+ field: 'shipped',
+ searchable: false
+ },
+ {
+ field: 'futureShipped',
+ searchable: false
+ },
+ {
+ field: 'state',
+ searchable: false
+ },
+ {
+ field: 'futureState',
+ searchable: false
+ },
+ {
+ field: 'ipt',
+ autocomplete: {
+ url: 'ItemPackingTypes',
+ showField: 'description',
+ valueField: 'code'
+ }
+ },
+ {
+ field: 'futureIpt',
+ autocomplete: {
+ url: 'ItemPackingTypes',
+ showField: 'description',
+ valueField: 'code'
+ }
+ },
+ ]
+ };
+ }
+
+ $postLink() {
+ this.setDefaultFilter();
+ }
+
+ setDefaultFilter() {
+ const today = new Date();
+
+ this.filterParams = {
+ originDated: today,
+ futureDated: today,
+ warehouseFk: this.vnConfig.warehouseFk
+ };
+ this.$.model.applyFilter(null, this.filterParams);
+ }
+
+ compareDate(date) {
+ let today = new Date();
+ today.setHours(0, 0, 0, 0);
+ let timeTicket = new Date(date);
+ timeTicket.setHours(0, 0, 0, 0);
+
+ let comparation = today - timeTicket;
+
+ if (comparation == 0)
+ return 'warning';
+ if (comparation < 0)
+ return 'success';
+ }
+
+ get checked() {
+ const tickets = this.$.model.data || [];
+ const checkedLines = [];
+ for (let ticket of tickets) {
+ if (ticket.checked)
+ checkedLines.push(ticket);
+ }
+
+ return checkedLines;
+ }
+
+ stateColor(state) {
+ if (state === 'OK')
+ return 'success';
+ else if (state === 'Libre')
+ return 'notice';
+ }
+
+ dateRange(value) {
+ const minHour = new Date(value);
+ minHour.setHours(0, 0, 0, 0);
+ const maxHour = new Date(value);
+ maxHour.setHours(23, 59, 59, 59);
+
+ return [minHour, maxHour];
+ }
+
+ get confirmationMessage() {
+ if (!this.$.model) return 0;
+
+ return this.$t(`Move confirmation`, {
+ checked: this.checked.length
+ });
+ }
+
+ moveTicketsFuture() {
+ let ticketsToMove = [];
+ this.checked.forEach(ticket => {
+ ticketsToMove.push({
+ originId: ticket.id,
+ destinationId: ticket.futureId,
+ originShipped: ticket.shipped,
+ destinationShipped: ticket.futureShipped,
+ workerFk: ticket.workerFk
+ });
+ });
+ let params = {tickets: ticketsToMove};
+ return this.$http.post('Tickets/merge', params)
+ .then(() => {
+ this.$.model.refresh();
+ this.vnApp.showSuccess(this.$t('Success'));
+ });
+ }
+
+ exprBuilder(param, value) {
+ switch (param) {
+ case 'id':
+ return {'id': value};
+ case 'futureId':
+ return {'futureId': value};
+ case 'liters':
+ return {'liters': value};
+ case 'lines':
+ return {'lines': value};
+ case 'ipt':
+ return {'ipt': value};
+ case 'futureIpt':
+ return {'futureIpt': value};
+ }
+ }
+}
+
+Controller.$inject = ['$element', '$scope'];
+
+ngModule.vnComponent('vnTicketFuture', {
+ template: require('./index.html'),
+ controller: Controller
+});
diff --git a/modules/ticket/front/future/index.spec.js b/modules/ticket/front/future/index.spec.js
new file mode 100644
index 000000000..c609a4891
--- /dev/null
+++ b/modules/ticket/front/future/index.spec.js
@@ -0,0 +1,108 @@
+import './index.js';
+import crudModel from 'core/mocks/crud-model';
+
+describe('Component vnTicketFuture', () => {
+ const today = new Date();
+ let controller;
+ let $httpBackend;
+
+ beforeEach(ngModule('ticket'));
+
+ beforeEach(inject(($componentController, _$httpBackend_) => {
+ $httpBackend = _$httpBackend_;
+ const $element = angular.element(' ');
+ controller = $componentController('vnTicketFuture', {$element});
+ controller.$.model = crudModel;
+ controller.$.model.data = [{
+ id: 1,
+ checked: true,
+ state: 'OK'
+ }, {
+ id: 2,
+ checked: true,
+ state: 'Libre'
+ }];
+ }));
+
+ describe('compareDate()', () => {
+ it('should return warning when the date is the present', () => {
+ let result = controller.compareDate(today);
+
+ expect(result).toEqual('warning');
+ });
+
+ it('should return sucess when the date is in the future', () => {
+ let futureDate = new Date();
+ futureDate = futureDate.setDate(futureDate.getDate() + 10);
+ let result = controller.compareDate(futureDate);
+
+ expect(result).toEqual('success');
+ });
+
+ it('should return undefined when the date is in the past', () => {
+ let pastDate = new Date();
+ pastDate = pastDate.setDate(pastDate.getDate() - 10);
+ let result = controller.compareDate(pastDate);
+
+ expect(result).toEqual(undefined);
+ });
+ });
+
+ describe('checked()', () => {
+ it('should return an array of checked tickets', () => {
+ const result = controller.checked;
+ const firstRow = result[0];
+ const secondRow = result[1];
+
+ expect(result.length).toEqual(2);
+ expect(firstRow.id).toEqual(1);
+ expect(secondRow.id).toEqual(2);
+ });
+ });
+
+ describe('stateColor()', () => {
+ it('should return success to the OK tickets', () => {
+ const ok = controller.stateColor(controller.$.model.data[0].state);
+ const notOk = controller.stateColor(controller.$.model.data[1].state);
+
+ expect(ok).toEqual('success');
+ expect(notOk).not.toEqual('success');
+ });
+
+ it('should return success to the FREE tickets', () => {
+ const notFree = controller.stateColor(controller.$.model.data[0].state);
+ const free = controller.stateColor(controller.$.model.data[1].state);
+
+ expect(free).toEqual('notice');
+ expect(notFree).not.toEqual('notice');
+ });
+ });
+
+ describe('dateRange()', () => {
+ it('should return two dates with the hours at the start and end of the given date', () => {
+ const dateRange = controller.dateRange(today);
+ const start = dateRange[0].toString();
+ const end = dateRange[1].toString();
+
+ expect(start).toContain(today.getDate());
+ expect(start).toContain('00:00:00');
+
+ expect(end).toContain(today.getDate());
+ expect(end).toContain('23:59:59');
+ });
+ });
+
+ describe('moveTicketsFuture()', () => {
+ it('should make an HTTP Post query', () => {
+ jest.spyOn(controller.$.model, 'refresh');
+ jest.spyOn(controller.vnApp, 'showSuccess');
+
+ $httpBackend.expectPOST(`Tickets/merge`).respond();
+ controller.moveTicketsFuture();
+ $httpBackend.flush();
+
+ expect(controller.vnApp.showSuccess).toHaveBeenCalled();
+ expect(controller.$.model.refresh).toHaveBeenCalledWith();
+ });
+ });
+});
diff --git a/modules/ticket/front/future/locale/en.yml b/modules/ticket/front/future/locale/en.yml
new file mode 100644
index 000000000..4400e6992
--- /dev/null
+++ b/modules/ticket/front/future/locale/en.yml
@@ -0,0 +1,2 @@
+Move confirmation: Do you want to move {{checked}} tickets to the future?
+Success: Tickets moved successfully!
diff --git a/modules/ticket/front/future/locale/es.yml b/modules/ticket/front/future/locale/es.yml
new file mode 100644
index 000000000..9fceea111
--- /dev/null
+++ b/modules/ticket/front/future/locale/es.yml
@@ -0,0 +1,16 @@
+Future tickets: Tickets a futuro
+Search tickets: Buscar tickets
+Search future tickets by date: Buscar tickets por fecha
+Problems: Problemas
+Origin ID: ID origen
+Origin State: Estado origen
+Destination State: Estado destino
+Liters: Litros
+Available Lines: Líneas disponibles
+Destination ID: ID destino
+Move tickets: Mover tickets
+Move confirmation: ¿Desea mover {{checked}} tickets hacia el futuro?
+Success: Tickets movidos correctamente
+IPT: Encajado
+Origin Date: Fecha origen
+Destination Date: Fecha destino
diff --git a/modules/ticket/front/index.js b/modules/ticket/front/index.js
index 85a03ffb6..029dc16a4 100644
--- a/modules/ticket/front/index.js
+++ b/modules/ticket/front/index.js
@@ -20,7 +20,6 @@ import './package/index';
import './sale';
import './tracking/index';
import './tracking/edit';
-import './sale-checked';
import './services';
import './component';
import './sale-tracking';
@@ -32,4 +31,8 @@ import './weekly';
import './dms/index';
import './dms/create';
import './dms/edit';
-import './sms';
+import './boxing';
+import './future';
+import './future-search-panel';
+import './advance';
+import './advance-search-panel';
diff --git a/modules/ticket/front/locale/es.yml b/modules/ticket/front/locale/es.yml
index 752dd7b36..748ba210f 100644
--- a/modules/ticket/front/locale/es.yml
+++ b/modules/ticket/front/locale/es.yml
@@ -4,6 +4,7 @@ Agency: Agencia
Amount: Importe
Base to commission: Base comisionable
Boxes: Cajas
+Boxing: Encajado
by: por
Checked: Comprobado
Client: Cliente
@@ -45,7 +46,7 @@ Price gap: Diferencia de precio
Quantity: Cantidad
Remove lines: Eliminar lineas
Route: Ruta
-SET OK: PONER OK
+SET OK: PONER OK
Shipment: Salida
Shipped: F. envío
Some fields are invalid: Algunos campos no son válidos
@@ -81,4 +82,4 @@ Sale tracking: Líneas preparadas
Pictures: Fotos
Log: Historial
Packager: Encajador
-Palletizer: Palletizador
\ No newline at end of file
+Palletizer: Palletizador
diff --git a/modules/ticket/front/request/create/index.html b/modules/ticket/front/request/create/index.html
index 8d25358b5..71a2de260 100644
--- a/modules/ticket/front/request/create/index.html
+++ b/modules/ticket/front/request/create/index.html
@@ -18,9 +18,8 @@
diff --git a/modules/ticket/front/routes.json b/modules/ticket/front/routes.json
index ba7cfa887..c86b3a1ef 100644
--- a/modules/ticket/front/routes.json
+++ b/modules/ticket/front/routes.json
@@ -7,7 +7,9 @@
"menus": {
"main": [
{"state": "ticket.index", "icon": "icon-ticket"},
- {"state": "ticket.weekly.index", "icon": "schedule"}
+ {"state": "ticket.weekly.index", "icon": "schedule"},
+ {"state": "ticket.future", "icon": "keyboard_double_arrow_right"},
+ {"state": "ticket.advance", "icon": "keyboard_double_arrow_left"}
],
"card": [
{"state": "ticket.card.basicData.stepOne", "icon": "settings"},
@@ -21,10 +23,10 @@
{"state": "ticket.card.expedition", "icon": "icon-package"},
{"state": "ticket.card.service", "icon": "icon-services"},
{"state": "ticket.card.package", "icon": "icon-bucket"},
- {"state": "ticket.card.saleChecked", "icon": "assignment"},
{"state": "ticket.card.components", "icon": "icon-components"},
{"state": "ticket.card.saleTracking", "icon": "assignment"},
- {"state": "ticket.card.dms.index", "icon": "cloud_download"}
+ {"state": "ticket.card.dms.index", "icon": "cloud_download"},
+ {"state": "ticket.card.boxing", "icon": "science"}
]
},
"keybindings": [
@@ -66,7 +68,7 @@
"abstract": true,
"params": {
"ticket": "$ctrl.ticket"
- }
+ }
},
{
"url" : "/step-one",
@@ -156,15 +158,6 @@
},
"acl": ["production", "administrative", "salesPerson"]
},
- {
- "url" : "/sale-checked",
- "state": "ticket.card.saleChecked",
- "component": "vn-ticket-sale-checked",
- "description": "Sale checked",
- "params": {
- "ticket": "$ctrl.ticket"
- }
- },
{
"url" : "/components",
"state": "ticket.card.components",
@@ -273,6 +266,27 @@
"params": {
"ticket": "$ctrl.ticket"
}
+ },
+ {
+ "url": "/boxing",
+ "state": "ticket.card.boxing",
+ "component": "vn-ticket-boxing",
+ "description": "Boxing",
+ "params": {
+ "ticket": "$ctrl.ticket"
+ }
+ },
+ {
+ "url": "/future",
+ "state": "ticket.future",
+ "component": "vn-ticket-future",
+ "description": "Future tickets"
+ },
+ {
+ "url": "/advance",
+ "state": "ticket.advance",
+ "component": "vn-ticket-advance",
+ "description": "Advance tickets"
}
]
-}
\ No newline at end of file
+}
diff --git a/modules/ticket/front/sale-checked/index.html b/modules/ticket/front/sale-checked/index.html
deleted file mode 100644
index 1bc6f1f68..000000000
--- a/modules/ticket/front/sale-checked/index.html
+++ /dev/null
@@ -1,60 +0,0 @@
-
-
-
-
-
-
-
- Is checked
- Item
- Description
- Quantity
-
-
-
-
-
-
-
-
-
-
- {{::sale.itemFk | zeroFill:6}}
-
-
-
-
- {{::sale.item.name}}
-
- {{::sale.item.subName}}
-
-
-
-
-
- {{::sale.quantity}}
-
-
-
-
-
-
-
diff --git a/modules/ticket/front/sale-checked/index.js b/modules/ticket/front/sale-checked/index.js
deleted file mode 100644
index 857ac49e3..000000000
--- a/modules/ticket/front/sale-checked/index.js
+++ /dev/null
@@ -1,42 +0,0 @@
-import ngModule from '../module';
-import Section from 'salix/components/section';
-
-class Controller extends Section {
- constructor($element, $) {
- super($element, $);
- this.filter = {
- include: [
- {
- relation: 'item'
- }, {
- relation: 'isChecked',
- scope: {
- fields: ['isChecked']
- }
- }
- ]
- };
- }
- showItemDescriptor(event, sale) {
- this.quicklinks = {
- btnThree: {
- icon: 'icon-transaction',
- state: `item.card.diary({
- id: ${sale.itemFk},
- warehouseFk: ${this.ticket.warehouseFk},
- lineFk: ${sale.id}
- })`,
- tooltip: 'Item diary'
- }
- };
- this.$.itemDescriptor.show(event.target, sale.itemFk);
- }
-}
-
-ngModule.vnComponent('vnTicketSaleChecked', {
- template: require('./index.html'),
- controller: Controller,
- bindings: {
- ticket: '<'
- }
-});
diff --git a/modules/ticket/front/sale/index.html b/modules/ticket/front/sale/index.html
index 42eb10cb0..c624b1a95 100644
--- a/modules/ticket/front/sale/index.html
+++ b/modules/ticket/front/sale/index.html
@@ -244,7 +244,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
New price
-
- {{$ctrl.getNewPrice() | currency: 'EUR': 2}}
-
-
-
-
-
-
-
+
+
+
+
-
+
+
+
+
+
+
+
+
New price
+
+ {{$ctrl.getNewPrice() | currency: 'EUR': 2}}
+
+
-
-
-
+
+
+
+
+
+
+
+
@@ -490,7 +474,7 @@
+ ng-click="$ctrl.showEditDiscountPopover($event, sale)">
Update discount
{
+ this.usesMana = res.data;
+ });
+ }
+
/**
* Returns checked instances
*
@@ -243,26 +251,21 @@ class Controller extends Section {
showEditDiscountPopover(event, sale) {
if (this.isLocked) return;
-
- this.edit = {
- discount: sale.discount,
- sale: sale
- };
+ if (sale) {
+ this.edit = {
+ discount: sale.discount,
+ sale: sale
+ };
+ } else {
+ this.edit = {
+ discount: null,
+ sales: this.selectedValidSales()
+ };
+ }
this.$.editDiscount.show(event);
}
- showEditDiscountDialog(event) {
- if (this.isLocked) return;
-
- this.edit = {
- discount: null,
- sales: this.selectedValidSales()
- };
-
- this.$.editDiscountDialog.show(event);
- }
-
changeDiscount() {
const sale = this.edit.sale;
const newDiscount = this.edit.discount;
@@ -278,11 +281,10 @@ class Controller extends Section {
const hasChanges = sales.some(sale => {
return sale.discount != newDiscount;
});
-
if (newDiscount != null && hasChanges)
this.updateDiscount(sales);
- this.$.editDiscountDialog.hide();
+ this.$.editDiscount.hide();
}
updateDiscount(sales) {
@@ -303,7 +305,7 @@ class Controller extends Section {
}
getNewPrice() {
- if (this.edit) {
+ if (this.edit.sale) {
const sale = this.edit.sale;
let newDiscount = sale.discount;
let newPrice = this.edit.price || sale.price;
@@ -375,6 +377,7 @@ class Controller extends Section {
const params = {
ticketFk: this.ticket.id,
created: this.ticket.updated,
+ landed: this.ticket.landed,
notAvailables
};
this.newSMS = {
@@ -505,7 +508,8 @@ class Controller extends Section {
}
save() {
- this.changeDiscount();
+ if (this.edit.sale) this.changeDiscount();
+ if (this.edit.sales) this.changeMultipleDiscount();
}
cancel() {
diff --git a/modules/ticket/front/sale/index.spec.js b/modules/ticket/front/sale/index.spec.js
index 28d874932..fbee966fd 100644
--- a/modules/ticket/front/sale/index.spec.js
+++ b/modules/ticket/front/sale/index.spec.js
@@ -115,6 +115,7 @@ describe('Ticket', () => {
const expectedAmount = 250;
$httpBackend.expect('GET', 'Tickets/1/getSalesPersonMana').respond(200, expectedAmount);
+ $httpBackend.expect('GET', 'Sales/usesMana').respond(200);
$httpBackend.expect('GET', 'WorkerManas/getCurrentWorkerMana').respond(200, expectedAmount);
controller.getMana();
$httpBackend.flush();
@@ -393,7 +394,7 @@ describe('Ticket', () => {
secondSelectedSale.checked = true;
const expectedSales = [firstSelectedSale, secondSelectedSale];
- controller.$.editDiscountDialog = {hide: jest.fn()};
+ controller.$.editDiscount = {hide: jest.fn()};
controller.edit = {
discount: 10,
sales: expectedSales
@@ -402,7 +403,7 @@ describe('Ticket', () => {
controller.changeMultipleDiscount();
expect(controller.updateDiscount).toHaveBeenCalledWith(expectedSales);
- expect(controller.$.editDiscountDialog.hide).toHaveBeenCalledWith();
+ expect(controller.$.editDiscount.hide).toHaveBeenCalledWith();
});
it('should not call to the updateDiscount() method and then to the editDiscountDialog hide() method', () => {
@@ -417,7 +418,7 @@ describe('Ticket', () => {
secondSelectedSale.discount = 10;
const expectedSales = [firstSelectedSale, secondSelectedSale];
- controller.$.editDiscountDialog = {hide: jest.fn()};
+ controller.$.editDiscount = {hide: jest.fn()};
controller.edit = {
discount: 10,
sales: expectedSales
@@ -426,7 +427,7 @@ describe('Ticket', () => {
controller.changeMultipleDiscount();
expect(controller.updateDiscount).not.toHaveBeenCalledWith(expectedSales);
- expect(controller.$.editDiscountDialog.hide).toHaveBeenCalledWith();
+ expect(controller.$.editDiscount.hide).toHaveBeenCalledWith();
});
});
diff --git a/modules/ticket/front/sale/locale/en.yml b/modules/ticket/front/sale/locale/en.yml
index ec7f54160..b418c086c 100644
--- a/modules/ticket/front/sale/locale/en.yml
+++ b/modules/ticket/front/sale/locale/en.yml
@@ -1,3 +1,3 @@
Product not available: >-
- Verdnatura communicates: Your order {{ticketFk}} created on {{created | date: "dd/MM/yyyy"}}.
+ Verdnatura communicates: Your order {{ticketFk}} with reception date on {{landed | date: "dd/MM/yyyy"}}.
{{notAvailables}} not available. Sorry for the inconvenience.
\ No newline at end of file
diff --git a/modules/ticket/front/sale/locale/es.yml b/modules/ticket/front/sale/locale/es.yml
index aab8ff493..072e57534 100644
--- a/modules/ticket/front/sale/locale/es.yml
+++ b/modules/ticket/front/sale/locale/es.yml
@@ -26,7 +26,7 @@ Destination ticket: Ticket destinatario
Change ticket state to 'Ok': Cambiar estado del ticket a 'Ok'
Reserved: Reservado
Send shortage SMS: Enviar SMS faltas
-Product not available: "Verdnatura le comunica:\rPedido {{ticketFk}} día {{created | date: 'dd/MM/yyyy'}}.\r{{notAvailables}} no disponible/s.\rDisculpe las molestias."
+Product not available: "Verdnatura le comunica:\rPedido {{ticketFk}} con fecha recepción {{landed | date: 'dd/MM/yyyy'}}.\r{{notAvailables}} no disponible/s.\rDisculpe las molestias."
Continue anyway?: ¿Continuar de todas formas?
This ticket is now empty: El ticket ha quedado vacio
Do you want to delete it?: ¿Quieres eliminarlo?
diff --git a/modules/ticket/front/search-panel/index.html b/modules/ticket/front/search-panel/index.html
index b0d4963bd..7002f3dd6 100644
--- a/modules/ticket/front/search-panel/index.html
+++ b/modules/ticket/front/search-panel/index.html
@@ -141,6 +141,11 @@
ng-model="filter.hasRoute"
triple-state="true">
+
diff --git a/modules/ticket/front/search-panel/locale/es.yml b/modules/ticket/front/search-panel/locale/es.yml
index 52cc04d6e..1d1c82d1a 100644
--- a/modules/ticket/front/search-panel/locale/es.yml
+++ b/modules/ticket/front/search-panel/locale/es.yml
@@ -13,6 +13,7 @@ Grouped States: Estado agrupado
Days onward: Días adelante
With problems: Con problemas
Has route: Con ruta
+Has invoice: Con factura
Pending: Pendiente
FREE: Libre
DELIVERED: Servido
diff --git a/modules/travel/back/methods/travel/extraCommunityFilter.js b/modules/travel/back/methods/travel/extraCommunityFilter.js
index 4078e62cb..027261c4b 100644
--- a/modules/travel/back/methods/travel/extraCommunityFilter.js
+++ b/modules/travel/back/methods/travel/extraCommunityFilter.js
@@ -159,7 +159,8 @@ module.exports = Self => {
`SELECT
e.id,
e.travelFk,
- e.ref,
+ e.reference,
+ e.invoiceNumber,
e.loadPriority,
s.id AS supplierFk,
s.name AS supplierName,
@@ -168,7 +169,7 @@ module.exports = Self => {
e.notes,
CAST(SUM(b.weight * b.stickers) AS DECIMAL(10,0)) as loadedkg,
CAST(SUM(vc.aerealVolumetricDensity * b.stickers * IF(pkg.volume, pkg.volume, pkg.width * pkg.depth * pkg.height) / 1000000) AS DECIMAL(10,0)) as volumeKg
- FROM tmp.travel tr
+ FROM tmp.travel tr
JOIN entry e ON e.travelFk = tr.id
JOIN buy b ON b.entryFk = e.id
JOIN packaging pkg ON pkg.id = b.packageFk
diff --git a/modules/travel/back/methods/travel/getEntries.js b/modules/travel/back/methods/travel/getEntries.js
index ae7c7a53b..5ca12f7a1 100644
--- a/modules/travel/back/methods/travel/getEntries.js
+++ b/modules/travel/back/methods/travel/getEntries.js
@@ -1,4 +1,4 @@
-
+/* eslint max-len: ["error", { "code": 150 }]*/
const ParameterizedSQL = require('loopback-connector').ParameterizedSQL;
module.exports = Self => {
Self.remoteMethod('getEntries', {
@@ -25,27 +25,34 @@ module.exports = Self => {
let stmt;
stmt = new ParameterizedSQL(`
- SELECT e.travelFk, e.id, e.isConfirmed, e.ref, e.notes, e.evaNotes AS observation,
- s.name AS supplierName,
- CAST((SUM(IF(p.volume > 0,p.volume,p.width * p.depth * IF(p.height, p.height, i.size + pconfig.upperGap))
- * b.stickers)/1000000)/((pcc.width*pcc.depth*pcc.height)/1000000) AS DECIMAL(10,2)) cc,
- CAST((SUM(IF(p.volume > 0,p.volume,p.width * p.depth * IF(p.height, p.height, i.size + pconfig.upperGap))
- * b.stickers)/1000000)/((ppallet.width*ppallet.depth*ppallet.height)/1000000) AS DECIMAL(10,2)) pallet,
- CAST((SUM(IF(p.volume > 0,p.volume,p.width * p.depth * IF(p.height, p.height, i.size + pconfig.upperGap))
- * b.stickers)/1000000) AS DECIMAL(10,2)) m3,
- TRUNCATE(SUM(b.stickers)/(COUNT( b.id) / COUNT( DISTINCT b.id)),0) hb,
- CAST(SUM(b.freightValue*b.quantity) AS DECIMAL(10,2)) freightValue,
- CAST(SUM(b.packageValue*b.quantity) AS DECIMAL(10,2)) packageValue
+ SELECT
+ e.travelFk,
+ e.id,
+ e.isConfirmed,
+ e.invoiceNumber,
+ e.reference,
+ e.notes,
+ e.evaNotes AS observation,
+ s.name AS supplierName,
+ CAST((SUM(IF(p.volume > 0,p.volume,p.width * p.depth * IF(p.height, p.height, i.size + pconfig.upperGap))
+ * b.stickers)/1000000)/((pcc.width*pcc.depth*pcc.height)/1000000) AS DECIMAL(10,2)) cc,
+ CAST((SUM(IF(p.volume > 0,p.volume,p.width * p.depth * IF(p.height, p.height, i.size + pconfig.upperGap))
+ * b.stickers)/1000000)/((ppallet.width*ppallet.depth*ppallet.height)/1000000) AS DECIMAL(10,2)) pallet,
+ CAST((SUM(IF(p.volume > 0,p.volume,p.width * p.depth * IF(p.height, p.height, i.size + pconfig.upperGap))
+ * b.stickers)/1000000) AS DECIMAL(10,2)) m3,
+ TRUNCATE(SUM(b.stickers)/(COUNT( b.id) / COUNT( DISTINCT b.id)),0) hb,
+ CAST(SUM(b.freightValue*b.quantity) AS DECIMAL(10,2)) freightValue,
+ CAST(SUM(b.packageValue*b.quantity) AS DECIMAL(10,2)) packageValue
FROM vn.travel t
- LEFT JOIN vn.entry e ON t.id = e.travelFk
+ LEFT JOIN vn.entry e ON t.id = e.travelFk
LEFT JOIN vn.buy b ON b.entryFk = e.id
- LEFT JOIN vn.supplier s ON e.supplierFk = s.id
+ LEFT JOIN vn.supplier s ON e.supplierFk = s.id
JOIN vn.item i ON i.id = b.itemFk
LEFT JOIN vn.packaging p ON p.id = b.packageFk
JOIN vn.packaging pcc ON pcc.id = 'cc'
JOIN vn.packaging ppallet ON ppallet.id = 'pallet 100'
JOIN vn.packagingConfig pconfig
- WHERE t.id = ?
+ WHERE t.id = ?
GROUP BY e.id;`, [
id
]);
diff --git a/modules/travel/back/methods/travel/specs/getEntries.spec.js b/modules/travel/back/methods/travel/specs/getEntries.spec.js
index 9b5c4fe49..fcaa80d02 100644
--- a/modules/travel/back/methods/travel/specs/getEntries.spec.js
+++ b/modules/travel/back/methods/travel/specs/getEntries.spec.js
@@ -1,28 +1,34 @@
-const app = require('vn-loopback/server/server');
+const models = require('vn-loopback/server/server').models;
describe('travel getEntries()', () => {
const travelId = 1;
it('should check the response contains the id', async() => {
- const entries = await app.models.Travel.getEntries(travelId);
+ const entries = await models.Travel.getEntries(travelId);
expect(entries.length).toEqual(1);
expect(entries[0].id).toEqual(1);
});
it('should check the response contains the travelFk', async() => {
- const entries = await app.models.Travel.getEntries(travelId);
+ const entries = await models.Travel.getEntries(travelId);
expect(entries[0].travelFk).toEqual(1);
});
- it('should check the response contains the ref', async() => {
- const entries = await app.models.Travel.getEntries(travelId);
+ it('should check the response contains the reference', async() => {
+ const entries = await models.Travel.getEntries(travelId);
- expect(entries[0].ref).toEqual('Movement 1');
+ expect(entries[0].reference).toEqual('Movement 1');
+ });
+
+ it('should check the response contains the invoiceNumber', async() => {
+ const entries = await models.Travel.getEntries(travelId);
+
+ expect(entries[0].invoiceNumber).toEqual('IN2001');
});
it('should check the response contains the m3', async() => {
- const entries = await app.models.Travel.getEntries(travelId);
+ const entries = await models.Travel.getEntries(travelId);
expect(entries[0].m3).toEqual(0.22);
});
diff --git a/modules/travel/front/extra-community/index.html b/modules/travel/front/extra-community/index.html
index f19ab592e..5174f8da2 100644
--- a/modules/travel/front/extra-community/index.html
+++ b/modules/travel/front/extra-community/index.html
@@ -42,10 +42,10 @@
Id
-
+
Supplier
-
+
Agency
@@ -100,37 +100,37 @@
{{::travel.id}}
-
+
{{::travel.cargoSupplierNickname}}
- {{::travel.agencyModeName}}
-
-
-
-
+ {{::travel.agencyModeName}}
+
+
+ {{travel.ref}}
+
+
+
+
+
{{::travel.stickers}}
-
-
-
+
+
+ {{travel.kg}}
+
+
+
+
+
{{::travel.loadedKg}}
{{::travel.volumeKg}}
@@ -150,7 +150,7 @@
{{::entry.id}}
-
+
@@ -158,7 +158,7 @@
- {{::entry.ref}}
+ {{::entry.ref}}
{{::entry.stickers}}
{{::entry.loadedkg}}
diff --git a/modules/travel/front/extra-community/style.scss b/modules/travel/front/extra-community/style.scss
index 532a3056a..fb64822f9 100644
--- a/modules/travel/front/extra-community/style.scss
+++ b/modules/travel/front/extra-community/style.scss
@@ -3,7 +3,6 @@
vn-travel-extra-community {
.header {
margin-bottom: 16px;
- font-size: 1.25rem;
line-height: 1;
padding: 7px;
padding-bottom: 7px;
@@ -16,6 +15,10 @@ vn-travel-extra-community {
overflow: hidden;
text-overflow: ellipsis;
cursor: pointer;
+ .multi-line{
+ padding-top: 15px;
+ padding-bottom: 15px;
+ }
}
table[vn-droppable] {
@@ -29,10 +32,10 @@ vn-travel-extra-community {
outline: 0;
height: 65px;
pointer-events: fill;
- user-select:all;
+ user-select: all;
}
- tr[draggable] *::selection{
+ tr[draggable] *::selection {
background-color: transparent;
}
@@ -43,16 +46,22 @@ vn-travel-extra-community {
tr[draggable].dragging {
background-color: $color-primary-light;
color: $color-font-light;
- font-weight:bold;
+ font-weight: bold;
}
- .td-editable{
- input{
- font-size: 1.25rem!important;
- }
+
+ .multi-line{
+ max-width: 200px;
+ word-wrap: normal;
+ white-space: normal;
}
- .number *{
- text-align: right;
+ vn-td-editable text {
+ background-color: transparent;
+ padding: 0;
+ border: 0;
+ border-bottom: 1px dashed $color-active;
+ border-radius: 0;
+ color: $color-active
}
}
diff --git a/modules/travel/front/summary/index.html b/modules/travel/front/summary/index.html
index bd9d6c9cb..113128e0e 100644
--- a/modules/travel/front/summary/index.html
+++ b/modules/travel/front/summary/index.html
@@ -1,6 +1,6 @@
-
-
\ No newline at end of file
+
diff --git a/modules/worker/back/methods/worker-time-control-mail/checkInbox.js b/modules/worker/back/methods/worker-time-control-mail/checkInbox.js
index 3e64a985a..7825f38b8 100644
--- a/modules/worker/back/methods/worker-time-control-mail/checkInbox.js
+++ b/modules/worker/back/methods/worker-time-control-mail/checkInbox.js
@@ -58,8 +58,7 @@ module.exports = Self => {
emailBody = bufferCopy.toUpperCase().trim();
const bodyPositionOK = emailBody.match(/\bOK\b/i);
- const bodyPositionIndex = (bodyPositionOK.index == 0 || bodyPositionOK.index == 122);
- if (bodyPositionOK != null && bodyPositionIndex)
+ if (bodyPositionOK != null && (bodyPositionOK.index == 0 || bodyPositionOK.index == 122))
isEmailOk = true;
else
isEmailOk = false;
@@ -145,7 +144,7 @@ module.exports = Self => {
await workerMail.updateAttributes({
updated: now,
state: 'REVISE',
- emailResponse: emailBody
+ reason: emailBody
});
} else
await sendMail(user, subject, emailBody);
@@ -157,7 +156,7 @@ module.exports = Self => {
let [user] = await Self.rawSql(`SELECT u.id,u.name FROM account.user u
LEFT JOIN account.mailForward m on m.account = u.id
- WHERE forwardTo =? OR
+ WHERE forwardTo =? OR
CONCAT(u.name,'@verdnatura.es') = ?`,
[userEmail[0], userEmail[0]]);
diff --git a/modules/worker/back/methods/worker-time-control/sendMail.js b/modules/worker/back/methods/worker-time-control/sendMail.js
new file mode 100644
index 000000000..b38405c1d
--- /dev/null
+++ b/modules/worker/back/methods/worker-time-control/sendMail.js
@@ -0,0 +1,368 @@
+const ParameterizedSQL = require('loopback-connector').ParameterizedSQL;
+
+module.exports = Self => {
+ Self.remoteMethodCtx('sendMail', {
+ description: `Send an email with the hours booked to the employees who telecommuting.
+ It also inserts booked hours in cases where the employee is telecommuting`,
+ accessType: 'WRITE',
+ accepts: [{
+ arg: 'workerId',
+ type: 'number',
+ description: 'The worker id'
+ },
+ {
+ arg: 'week',
+ type: 'number'
+ },
+ {
+ arg: 'year',
+ type: 'number'
+ }],
+ returns: [{
+ type: 'Object',
+ root: true
+ }],
+ http: {
+ path: `/sendMail`,
+ verb: 'POST'
+ }
+ });
+
+ Self.sendMail = async(ctx, options) => {
+ const models = Self.app.models;
+ const conn = Self.dataSource.connector;
+ const args = ctx.args;
+ const $t = ctx.req.__; // $translate
+ let tx;
+ const myOptions = {};
+
+ if (typeof options == 'object')
+ Object.assign(myOptions, options);
+
+ if (!myOptions.transaction) {
+ tx = await Self.beginTransaction({});
+ myOptions.transaction = tx;
+ }
+
+ const stmts = [];
+ let stmt;
+
+ try {
+ if (!args.week || !args.year) {
+ const from = new Date();
+ const to = new Date();
+
+ const time = await models.Time.findOne({
+ where: {
+ dated: {between: [from.setDate(from.getDate() - 10), to.setDate(to.getDate() - 4)]}
+ },
+ order: 'week ASC'
+ }, myOptions);
+
+ args.week = time.week;
+ args.year = time.year;
+ }
+
+ const started = getStartDateOfWeekNumber(args.week, args.year);
+ started.setHours(0, 0, 0, 0);
+
+ const ended = new Date(started);
+ ended.setDate(started.getDate() + 6);
+ ended.setHours(23, 59, 59, 999);
+
+ stmts.push('DROP TEMPORARY TABLE IF EXISTS tmp.timeControlCalculate');
+ stmts.push('DROP TEMPORARY TABLE IF EXISTS tmp.timeBusinessCalculate');
+
+ if (args.workerId) {
+ await models.WorkerTimeControl.destroyAll({
+ userFk: args.workerId,
+ timed: {between: [started, ended]},
+ isSendMail: true
+ }, myOptions);
+
+ const where = {
+ workerFk: args.workerId,
+ year: args.year,
+ week: args.week
+ };
+ await models.WorkerTimeControlMail.updateAll(where, {
+ updated: new Date(), state: 'SENDED'
+ }, myOptions);
+
+ stmt = new ParameterizedSQL(
+ `CALL vn.timeControl_calculateByUser(?, ?, ?)
+ `, [args.workerId, started, ended]);
+ stmts.push(stmt);
+
+ stmt = new ParameterizedSQL(
+ `CALL vn.timeBusiness_calculateByUser(?, ?, ?)
+ `, [args.workerId, started, ended]);
+ stmts.push(stmt);
+ } else {
+ await models.WorkerTimeControl.destroyAll({
+ timed: {between: [started, ended]},
+ isSendMail: true
+ }, myOptions);
+
+ const where = {
+ year: args.year,
+ week: args.week
+ };
+ await models.WorkerTimeControlMail.updateAll(where, {
+ updated: new Date(), state: 'SENDED'
+ }, myOptions);
+
+ stmt = new ParameterizedSQL(`CALL vn.timeControl_calculateAll(?, ?)`, [started, ended]);
+ stmts.push(stmt);
+
+ stmt = new ParameterizedSQL(`CALL vn.timeBusiness_calculateAll(?, ?)`, [started, ended]);
+ stmts.push(stmt);
+ }
+
+ stmt = new ParameterizedSQL(`
+ SELECT CONCAT(u.name, '@verdnatura.es') receiver,
+ u.id workerFk,
+ tb.dated,
+ tb.timeWorkDecimal,
+ tb.timeWorkSexagesimal timeWorkSexagesimal,
+ tb.timeTable,
+ tc.timeWorkDecimal timeWorkedDecimal,
+ tc.timeWorkSexagesimal timeWorkedSexagesimal,
+ tb.type,
+ tb.businessFk,
+ tb.permissionRate,
+ d.isTeleworking
+ FROM tmp.timeBusinessCalculate tb
+ JOIN account.user u ON u.id = tb.userFk
+ JOIN department d ON d.id = tb.departmentFk
+ JOIN business b ON b.id = tb.businessFk
+ LEFT JOIN tmp.timeControlCalculate tc ON tc.userFk = tb.userFk AND tc.dated = tb.dated
+ LEFT JOIN worker w ON w.id = u.id
+ JOIN (SELECT tb.userFk,
+ SUM(IF(tb.type IS NULL,
+ IF(tc.timeWorkDecimal > 0, FALSE, IF(tb.timeWorkDecimal > 0, TRUE, FALSE)),
+ TRUE))isTeleworkingWeek
+ FROM tmp.timeBusinessCalculate tb
+ LEFT JOIN tmp.timeControlCalculate tc ON tc.userFk = tb.userFk
+ AND tc.dated = tb.dated
+ GROUP BY tb.userFk
+ HAVING isTeleworkingWeek > 0
+ )sub ON sub.userFk = u.id
+ WHERE d.hasToRefill
+ AND IFNULL(?, u.id) = u.id
+ AND b.companyCodeFk = 'VNL'
+ AND w.businessFk
+ ORDER BY u.id, tb.dated
+ `, [args.workerId]);
+ const index = stmts.push(stmt) - 1;
+
+ const sql = ParameterizedSQL.join(stmts, ';');
+ const days = await conn.executeStmt(sql, myOptions);
+
+ let previousWorkerFk = days[index][0].workerFk;
+ let previousReceiver = days[index][0].receiver;
+
+ const workerTimeControlConfig = await models.WorkerTimeControlConfig.findOne(null, myOptions);
+
+ for (let day of days[index]) {
+ workerFk = day.workerFk;
+ if (day.timeWorkDecimal > 0 && day.timeWorkedDecimal == null
+ && (day.permissionRate ? day.permissionRate : true)) {
+ if (day.timeTable == null) {
+ const timed = new Date(day.dated);
+ await models.WorkerTimeControl.create({
+ userFk: day.workerFk,
+ timed: timed.setHours(8),
+ manual: true,
+ direction: 'in',
+ isSendMail: true
+ }, myOptions);
+
+ if (day.timeWorkDecimal >= workerTimeControlConfig.timeToBreakTime / 3600) {
+ await models.WorkerTimeControl.create({
+ userFk: day.workerFk,
+ timed: timed.setHours(9),
+ manual: true,
+ direction: 'middle',
+ isSendMail: true
+ }, myOptions);
+
+ await models.WorkerTimeControl.create({
+ userFk: day.workerFk,
+ timed: timed.setHours(9, 20),
+ manual: true,
+ direction: 'middle',
+ isSendMail: true
+ }, myOptions);
+ }
+
+ const [hoursWork, minutesWork, secondsWork] = getTime(day.timeWorkSexagesimal);
+ await models.WorkerTimeControl.create({
+ userFk: day.workerFk,
+ timed: timed.setHours(8 + hoursWork, minutesWork, secondsWork),
+ manual: true,
+ direction: 'out',
+ isSendMail: true
+ }, myOptions);
+ } else {
+ const weekDay = day.dated.getDay();
+ const journeys = await models.Journey.find({
+ where: {
+ business_id: day.businessFk,
+ day_id: weekDay
+ }
+ }, myOptions);
+
+ let timeTableDecimalInSeconds = 0;
+ for (let journey of journeys) {
+ const start = new Date();
+ const [startHours, startMinutes, startSeconds] = getTime(journey.start);
+ start.setHours(startHours, startMinutes, startSeconds, 0);
+
+ const end = new Date();
+ const [endHours, endMinutes, endSeconds] = getTime(journey.end);
+ end.setHours(endHours, endMinutes, endSeconds, 0);
+
+ const result = (end - start) / 1000;
+ timeTableDecimalInSeconds += result;
+ }
+
+ for (let journey of journeys) {
+ const timeTableDecimal = timeTableDecimalInSeconds / 3600;
+ if (day.timeWorkDecimal == timeTableDecimal) {
+ const timed = new Date(day.dated);
+ const [startHours, startMinutes, startSeconds] = getTime(journey.start);
+ await models.WorkerTimeControl.create({
+ userFk: day.workerFk,
+ timed: timed.setHours(startHours, startMinutes, startSeconds),
+ manual: true,
+ isSendMail: true
+ }, myOptions);
+
+ const [endHours, endMinutes, endSeconds] = getTime(journey.end);
+ await models.WorkerTimeControl.create({
+ userFk: day.workerFk,
+ timed: timed.setHours(endHours, endMinutes, endSeconds),
+ manual: true,
+ isSendMail: true
+ }, myOptions);
+ } else {
+ const minStart = journeys.reduce(function(prev, curr) {
+ return curr.start < prev.start ? curr : prev;
+ });
+ if (journey == minStart) {
+ const timed = new Date(day.dated);
+ const [startHours, startMinutes, startSeconds] = getTime(journey.start);
+ await models.WorkerTimeControl.create({
+ userFk: day.workerFk,
+ timed: timed.setHours(startHours, startMinutes, startSeconds),
+ manual: true,
+ isSendMail: true
+ }, myOptions);
+
+ const [hoursWork, minutesWork, secondsWork] = getTime(day.timeWorkSexagesimal);
+ await models.WorkerTimeControl.create({
+ userFk: day.workerFk,
+ timed: timed.setHours(
+ startHours + hoursWork,
+ startMinutes + minutesWork,
+ startSeconds + secondsWork
+ ),
+ manual: true,
+ isSendMail: true
+ }, myOptions);
+ }
+ }
+
+ if (day.timeWorkDecimal >= workerTimeControlConfig.timeToBreakTime / 3600) {
+ const minStart = journeys.reduce(function(prev, curr) {
+ return curr.start < prev.start ? curr : prev;
+ });
+ if (journey == minStart) {
+ const timed = new Date(day.dated);
+ const [startHours, startMinutes, startSeconds] = getTime(journey.start);
+ await models.WorkerTimeControl.create({
+ userFk: day.workerFk,
+ timed: timed.setHours(startHours + 1, startMinutes, startSeconds),
+ manual: true,
+ isSendMail: true
+ }, myOptions);
+
+ await models.WorkerTimeControl.create({
+ userFk: day.workerFk,
+ timed: timed.setHours(startHours + 1, startMinutes + 20, startSeconds),
+ manual: true,
+ isSendMail: true
+ }, myOptions);
+ }
+ }
+ }
+ const timed = new Date(day.dated);
+ const firstWorkerTimeControl = await models.WorkerTimeControl.findOne({
+ where: {
+ userFk: day.workerFk,
+ timed: {between: [timed.setHours(0, 0, 0, 0), timed.setHours(23, 59, 59, 999)]}
+ },
+ order: 'timed ASC'
+ }, myOptions);
+
+ if (firstWorkerTimeControl)
+ firstWorkerTimeControl.updateAttribute('direction', 'in', myOptions);
+
+ const lastWorkerTimeControl = await models.WorkerTimeControl.findOne({
+ where: {
+ userFk: day.workerFk,
+ timed: {between: [timed.setHours(0, 0, 0, 0), timed.setHours(23, 59, 59, 999)]}
+ },
+ order: 'timed DESC'
+ }, myOptions);
+
+ if (lastWorkerTimeControl)
+ lastWorkerTimeControl.updateAttribute('direction', 'out', myOptions);
+ }
+ }
+
+ const lastDay = days[index][days[index].length - 1];
+ if (day.workerFk != previousWorkerFk || day == lastDay) {
+ const salix = await models.Url.findOne({
+ where: {
+ appName: 'salix',
+ environment: process.env.NODE_ENV || 'dev'
+ }
+ }, myOptions);
+
+ const timestamp = started.getTime() / 1000;
+ const url = `${salix.url}worker/${previousWorkerFk}/time-control?timestamp=${timestamp}`;
+
+ await models.WorkerTimeControl.weeklyHourRecordEmail(ctx, previousReceiver, args.week, args.year, url);
+
+ previousWorkerFk = day.workerFk;
+ previousReceiver = day.receiver;
+ }
+ }
+
+ if (tx) await tx.commit();
+
+ return true;
+ } catch (e) {
+ if (tx) await tx.rollback();
+ throw e;
+ }
+ };
+
+ function getStartDateOfWeekNumber(week, year) {
+ const simple = new Date(year, 0, 1 + (week - 1) * 7);
+ const dow = simple.getDay();
+ const weekStart = simple;
+ if (dow <= 4)
+ weekStart.setDate(simple.getDate() - simple.getDay() + 1);
+ else
+ weekStart.setDate(simple.getDate() + 8 - simple.getDay());
+ return weekStart;
+ }
+
+ function getTime(timeString) {
+ const [hours, minutes, seconds] = timeString.split(':');
+ return [parseInt(hours), parseInt(minutes), parseInt(seconds)];
+ }
+};
diff --git a/modules/worker/back/methods/worker-time-control/specs/sendMail.spec.js b/modules/worker/back/methods/worker-time-control/specs/sendMail.spec.js
new file mode 100644
index 000000000..5b2436be9
--- /dev/null
+++ b/modules/worker/back/methods/worker-time-control/specs/sendMail.spec.js
@@ -0,0 +1,124 @@
+const models = require('vn-loopback/server/server').models;
+
+describe('workerTimeControl sendMail()', () => {
+ const workerId = 18;
+ const activeCtx = {
+ getLocale: () => {
+ return 'en';
+ }
+ };
+ const ctx = {req: activeCtx, args: {}};
+
+ it('should fill time control of a worker without records in Journey and with rest', async() => {
+ pending('https://redmine.verdnatura.es/issues/4903');
+ const tx = await models.WorkerTimeControl.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+
+ await models.WorkerTimeControl.sendMail(ctx, options);
+
+ const workerTimeControl = await models.WorkerTimeControl.find({
+ where: {userFk: workerId}
+ }, options);
+
+ expect(workerTimeControl[0].timed.getHours()).toEqual(8);
+ expect(workerTimeControl[1].timed.getHours()).toEqual(9);
+ expect(`${workerTimeControl[2].timed.getHours()}:${workerTimeControl[2].timed.getMinutes()}`).toEqual('9:20');
+ expect(workerTimeControl[3].timed.getHours()).toEqual(16);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should fill time control of a worker without records in Journey and without rest', async() => {
+ pending('https://redmine.verdnatura.es/issues/4903');
+ const workdayOf20Hours = 3;
+ const tx = await models.WorkerTimeControl.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+ query = `UPDATE business b
+ SET b.calendarTypeFk = ?
+ WHERE b.workerFk = ?; `;
+ await models.WorkerTimeControl.rawSql(query, [workdayOf20Hours, workerId], options);
+
+ await models.WorkerTimeControl.sendMail(ctx, options);
+
+ const workerTimeControl = await models.WorkerTimeControl.find({
+ where: {userFk: workerId}
+ }, options);
+
+ expect(workerTimeControl[0].timed.getHours()).toEqual(8);
+ expect(workerTimeControl[1].timed.getHours()).toEqual(12);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should fill time control of a worker with records in Journey and with rest', async() => {
+ pending('https://redmine.verdnatura.es/issues/4903');
+ const tx = await models.WorkerTimeControl.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+ query = `INSERT INTO postgresql.journey(journey_id, day_id, start, end, business_id)
+ VALUES
+ (1, 1, '09:00:00', '13:00:00', ?),
+ (2, 1, '14:00:00', '19:00:00', ?);`;
+ await models.WorkerTimeControl.rawSql(query, [workerId, workerId, workerId], options);
+
+ await models.WorkerTimeControl.sendMail(ctx, options);
+
+ const workerTimeControl = await models.WorkerTimeControl.find({
+ where: {userFk: workerId}
+ }, options);
+
+ expect(workerTimeControl[0].timed.getHours()).toEqual(9);
+ expect(workerTimeControl[2].timed.getHours()).toEqual(10);
+ expect(`${workerTimeControl[3].timed.getHours()}:${workerTimeControl[3].timed.getMinutes()}`).toEqual('10:20');
+ expect(workerTimeControl[1].timed.getHours()).toEqual(13);
+ expect(workerTimeControl[4].timed.getHours()).toEqual(14);
+ expect(workerTimeControl[5].timed.getHours()).toEqual(19);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+
+ it('should fill time control of a worker with records in Journey and without rest', async() => {
+ pending('https://redmine.verdnatura.es/issues/4903');
+ const tx = await models.WorkerTimeControl.beginTransaction({});
+
+ try {
+ const options = {transaction: tx};
+ query = `INSERT INTO postgresql.journey(journey_id, day_id, start, end, business_id)
+ VALUES
+ (1, 1, '12:30:00', '14:00:00', ?);`;
+ await models.WorkerTimeControl.rawSql(query, [workerId, workerId, workerId], options);
+
+ await models.WorkerTimeControl.sendMail(ctx, options);
+
+ const workerTimeControl = await models.WorkerTimeControl.find({
+ where: {userFk: workerId}
+ }, options);
+
+ expect(`${workerTimeControl[0].timed.getHours()}:${workerTimeControl[0].timed.getMinutes()}`).toEqual('12:30');
+ expect(workerTimeControl[1].timed.getHours()).toEqual(14);
+
+ await tx.rollback();
+ } catch (e) {
+ await tx.rollback();
+ throw e;
+ }
+ });
+});
+
diff --git a/modules/worker/back/methods/worker-time-control/specs/timeEntry.spec.js b/modules/worker/back/methods/worker-time-control/specs/timeEntry.spec.js
index e1e0feced..e9924c67b 100644
--- a/modules/worker/back/methods/worker-time-control/specs/timeEntry.spec.js
+++ b/modules/worker/back/methods/worker-time-control/specs/timeEntry.spec.js
@@ -201,6 +201,7 @@ describe('workerTimeControl add/delete timeEntry()', () => {
describe('WorkerTimeControl_clockIn calls', () => {
it('should fail to add a time entry if the target user has an absence that day', async() => {
+ pending('https://redmine.verdnatura.es/issues/4707');
activeCtx.accessToken.userId = salesBossId;
const workerId = hankPymId;
const date = new Date();
@@ -247,6 +248,7 @@ describe('workerTimeControl add/delete timeEntry()', () => {
describe('direction errors', () => {
it('should throw an error when trying "in" direction twice', async() => {
+ pending('https://redmine.verdnatura.es/issues/4707');
activeCtx.accessToken.userId = salesBossId;
const workerId = hankPymId;
@@ -276,6 +278,7 @@ describe('workerTimeControl add/delete timeEntry()', () => {
});
it('should throw an error when trying "in" direction after insert "in" and "middle"', async() => {
+ pending('https://redmine.verdnatura.es/issues/4707');
activeCtx.accessToken.userId = salesBossId;
const workerId = hankPymId;
@@ -309,6 +312,7 @@ describe('workerTimeControl add/delete timeEntry()', () => {
});
it('Should throw an error when trying "out" before closing a "middle" couple', async() => {
+ pending('https://redmine.verdnatura.es/issues/4707');
activeCtx.accessToken.userId = salesBossId;
const workerId = hankPymId;
@@ -342,6 +346,7 @@ describe('workerTimeControl add/delete timeEntry()', () => {
});
it('should throw an error when trying "middle" after "out"', async() => {
+ pending('https://redmine.verdnatura.es/issues/4707');
activeCtx.accessToken.userId = salesBossId;
const workerId = hankPymId;
@@ -375,6 +380,7 @@ describe('workerTimeControl add/delete timeEntry()', () => {
});
it('should throw an error when trying "out" direction twice', async() => {
+ pending('https://redmine.verdnatura.es/issues/4707');
activeCtx.accessToken.userId = salesBossId;
const workerId = hankPymId;
@@ -410,6 +416,8 @@ describe('workerTimeControl add/delete timeEntry()', () => {
describe('12h rest', () => {
it('should throw an error when the 12h rest is not fulfilled yet', async() => {
+ pending('https://redmine.verdnatura.es/issues/4707');
+
activeCtx.accessToken.userId = salesBossId;
const workerId = hankPymId;
@@ -444,6 +452,7 @@ describe('workerTimeControl add/delete timeEntry()', () => {
});
it('should not fail as the 12h rest is fulfilled', async() => {
+ pending('https://redmine.verdnatura.es/issues/4707');
activeCtx.accessToken.userId = salesBossId;
const workerId = hankPymId;
@@ -480,6 +489,7 @@ describe('workerTimeControl add/delete timeEntry()', () => {
describe('for 3500kg drivers with enforced 9h rest', () => {
it('should throw an error when the 9h enforced rest is not fulfilled', async() => {
+ pending('https://redmine.verdnatura.es/issues/4707');
activeCtx.accessToken.userId = salesBossId;
const workerId = jessicaJonesId;
@@ -514,6 +524,7 @@ describe('workerTimeControl add/delete timeEntry()', () => {
});
it('should not fail when the 9h enforced rest is fulfilled', async() => {
+ pending('https://redmine.verdnatura.es/issues/4707');
activeCtx.accessToken.userId = salesBossId;
const workerId = jessicaJonesId;
@@ -550,6 +561,7 @@ describe('workerTimeControl add/delete timeEntry()', () => {
describe('for 36h weekly rest', () => {
it('should throw an error when the 36h weekly rest is not fulfilled', async() => {
+ pending('https://redmine.verdnatura.es/issues/4707');
activeCtx.accessToken.userId = salesBossId;
const workerId = hankPymId;
@@ -584,6 +596,7 @@ describe('workerTimeControl add/delete timeEntry()', () => {
});
it('should throw an error when the 36h weekly rest is not fulfilled again', async() => {
+ pending('https://redmine.verdnatura.es/issues/4707');
activeCtx.accessToken.userId = salesBossId;
const workerId = hankPymId;
@@ -617,6 +630,7 @@ describe('workerTimeControl add/delete timeEntry()', () => {
describe('for 72h weekly rest', () => {
it('should throw when the 72h weekly rest is not fulfilled yet', async() => {
+ pending('https://redmine.verdnatura.es/issues/4707');
activeCtx.accessToken.userId = salesBossId;
const workerId = hankPymId;
diff --git a/modules/worker/back/methods/worker-time-control/updateWorkerTimeControlMail.js b/modules/worker/back/methods/worker-time-control/updateWorkerTimeControlMail.js
new file mode 100644
index 000000000..a8dc14bb1
--- /dev/null
+++ b/modules/worker/back/methods/worker-time-control/updateWorkerTimeControlMail.js
@@ -0,0 +1,87 @@
+const UserError = require('vn-loopback/util/user-error');
+module.exports = Self => {
+ Self.remoteMethodCtx('updateWorkerTimeControlMail', {
+ description: 'Updates the state of WorkerTimeControlMail',
+ accessType: 'WRITE',
+ accepts: [{
+ arg: 'workerId',
+ type: 'number',
+ required: true
+ },
+ {
+ arg: 'year',
+ type: 'number',
+ required: true
+ },
+ {
+ arg: 'week',
+ type: 'number',
+ required: true
+ },
+ {
+ arg: 'state',
+ type: 'string',
+ required: true
+ },
+ {
+ arg: 'reason',
+ type: 'string'
+ }],
+ returns: {
+ type: 'boolean',
+ root: true
+ },
+ http: {
+ path: `/updateWorkerTimeControlMail`,
+ verb: 'POST'
+ }
+ });
+
+ Self.updateWorkerTimeControlMail = async(ctx, options) => {
+ const models = Self.app.models;
+ const args = ctx.args;
+ const userId = ctx.req.accessToken.userId;
+
+ const myOptions = {};
+
+ if (typeof options == 'object')
+ Object.assign(myOptions, options);
+
+ const workerTimeControlMail = await models.WorkerTimeControlMail.findOne({
+ where: {
+ workerFk: args.workerId,
+ year: args.year,
+ week: args.week
+ }
+ }, myOptions);
+
+ if (!workerTimeControlMail) throw new UserError(`There aren't records for this week`);
+
+ const oldState = workerTimeControlMail.state;
+ const oldReason = workerTimeControlMail.reason;
+
+ if (oldState == args.state) throw new UserError('Already has this status');
+
+ await workerTimeControlMail.updateAttributes({
+ state: args.state,
+ reason: args.reason || null
+ }, myOptions);
+
+ const logRecord = {
+ originFk: args.workerId,
+ userFk: userId,
+ action: 'update',
+ changedModel: 'WorkerTimeControlMail',
+ oldInstance: {
+ state: oldState,
+ reason: oldReason
+ },
+ newInstance: {
+ state: args.state,
+ reason: args.reason
+ }
+ };
+
+ return models.WorkerLog.create(logRecord, myOptions);
+ };
+};
diff --git a/modules/worker/back/methods/worker-time-control/weeklyHourRecordEmail.js b/modules/worker/back/methods/worker-time-control/weeklyHourRecordEmail.js
new file mode 100644
index 000000000..0cf614e57
--- /dev/null
+++ b/modules/worker/back/methods/worker-time-control/weeklyHourRecordEmail.js
@@ -0,0 +1,53 @@
+const {Email} = require('vn-print');
+
+module.exports = Self => {
+ Self.remoteMethodCtx('weeklyHourRecordEmail', {
+ description: 'Sends the buyer waste email',
+ accessType: 'WRITE',
+ accepts: [
+ {
+ arg: 'recipient',
+ type: 'string',
+ description: 'The recipient email',
+ required: true,
+ },
+ {
+ arg: 'week',
+ type: 'number',
+ required: true,
+ },
+ {
+ arg: 'year',
+ type: 'number',
+ required: true
+ },
+ {
+ arg: 'url',
+ type: 'string',
+ required: true
+ }
+ ],
+ returns: {
+ type: ['object'],
+ root: true
+ },
+ http: {
+ path: '/weekly-hour-hecord-email',
+ verb: 'POST'
+ }
+ });
+
+ Self.weeklyHourRecordEmail = async(ctx, recipient, week, year, url) => {
+ const params = {
+ recipient: recipient,
+ lang: ctx.req.getLocale(),
+ week: week,
+ year: year,
+ url: url
+ };
+
+ const email = new Email('weekly-hour-record', params);
+
+ return email.send();
+ };
+};
diff --git a/modules/worker/back/model-config.json b/modules/worker/back/model-config.json
index c155e331d..3f3416504 100644
--- a/modules/worker/back/model-config.json
+++ b/modules/worker/back/model-config.json
@@ -20,6 +20,12 @@
"EducationLevel": {
"dataSource": "vn"
},
+ "Journey": {
+ "dataSource": "vn"
+ },
+ "Time": {
+ "dataSource": "vn"
+ },
"WorkCenter": {
"dataSource": "vn"
},
@@ -59,11 +65,17 @@
"WorkerLog": {
"dataSource": "vn"
},
+ "WorkerTimeControlConfig": {
+ "dataSource": "vn"
+ },
"WorkerTimeControlParams": {
"dataSource": "vn"
},
"WorkerTimeControlMail": {
"dataSource": "vn"
+ },
+ "WorkerDisableExcluded": {
+ "dataSource": "vn"
}
}
diff --git a/modules/worker/back/models/journey.json b/modules/worker/back/models/journey.json
new file mode 100644
index 000000000..b7d5f2817
--- /dev/null
+++ b/modules/worker/back/models/journey.json
@@ -0,0 +1,27 @@
+{
+ "name": "Journey",
+ "base": "VnModel",
+ "options": {
+ "mysql": {
+ "table": "postgresql.journey"
+ }
+ },
+ "properties": {
+ "journey_id": {
+ "id": true,
+ "type": "number"
+ },
+ "day_id": {
+ "type": "number"
+ },
+ "start": {
+ "type": "date"
+ },
+ "end": {
+ "type": "date"
+ },
+ "business_id": {
+ "type": "number"
+ }
+ }
+}
diff --git a/modules/worker/back/models/time.json b/modules/worker/back/models/time.json
new file mode 100644
index 000000000..df9257540
--- /dev/null
+++ b/modules/worker/back/models/time.json
@@ -0,0 +1,21 @@
+{
+ "name": "Time",
+ "base": "VnModel",
+ "options": {
+ "mysql": {
+ "table": "time"
+ }
+ },
+ "properties": {
+ "dated": {
+ "id": true,
+ "type": "date"
+ },
+ "year": {
+ "type": "number"
+ },
+ "week": {
+ "type": "number"
+ }
+ }
+}
diff --git a/modules/worker/back/models/worker-time-control-config.json b/modules/worker/back/models/worker-time-control-config.json
new file mode 100644
index 000000000..4c12ce5d7
--- /dev/null
+++ b/modules/worker/back/models/worker-time-control-config.json
@@ -0,0 +1,18 @@
+{
+ "name": "WorkerTimeControlConfig",
+ "base": "VnModel",
+ "options": {
+ "mysql": {
+ "table": "workerTimeControlConfig"
+ }
+ },
+ "properties": {
+ "id": {
+ "id": true,
+ "type": "number"
+ },
+ "timeToBreakTime": {
+ "type": "number"
+ }
+ }
+}
\ No newline at end of file
diff --git a/modules/worker/back/models/worker-time-control-mail.json b/modules/worker/back/models/worker-time-control-mail.json
index daf3d5155..78b99881d 100644
--- a/modules/worker/back/models/worker-time-control-mail.json
+++ b/modules/worker/back/models/worker-time-control-mail.json
@@ -9,8 +9,7 @@
"properties": {
"id": {
"id": true,
- "type": "number",
- "required": true
+ "type": "number"
},
"workerFk": {
"type": "number"
@@ -27,7 +26,7 @@
"updated": {
"type": "date"
},
- "emailResponse": {
+ "reason": {
"type": "string"
}
},
diff --git a/modules/worker/back/models/worker-time-control.js b/modules/worker/back/models/worker-time-control.js
index 45f4e2194..7339f5d15 100644
--- a/modules/worker/back/models/worker-time-control.js
+++ b/modules/worker/back/models/worker-time-control.js
@@ -5,6 +5,9 @@ module.exports = Self => {
require('../methods/worker-time-control/addTimeEntry')(Self);
require('../methods/worker-time-control/deleteTimeEntry')(Self);
require('../methods/worker-time-control/updateTimeEntry')(Self);
+ require('../methods/worker-time-control/sendMail')(Self);
+ require('../methods/worker-time-control/updateWorkerTimeControlMail')(Self);
+ require('../methods/worker-time-control/weeklyHourRecordEmail')(Self);
Self.rewriteDbError(function(err) {
if (err.code === 'ER_DUP_ENTRY')
diff --git a/modules/worker/back/models/worker-time-control.json b/modules/worker/back/models/worker-time-control.json
index ab07802ca..bc3e53501 100644
--- a/modules/worker/back/models/worker-time-control.json
+++ b/modules/worker/back/models/worker-time-control.json
@@ -22,6 +22,9 @@
},
"direction": {
"type": "string"
+ },
+ "isSendMail": {
+ "type": "boolean"
}
},
"relations": {
diff --git a/modules/worker/back/models/workerDisableExcluded.json b/modules/worker/back/models/workerDisableExcluded.json
new file mode 100644
index 000000000..48083748d
--- /dev/null
+++ b/modules/worker/back/models/workerDisableExcluded.json
@@ -0,0 +1,26 @@
+{
+ "name": "WorkerDisableExcluded",
+ "base": "VnModel",
+ "options": {
+ "mysql": {
+ "table": "workerDisableExcluded"
+ }
+ },
+ "properties": {
+ "workerFk": {
+ "id": true,
+ "type": "number"
+ },
+ "dated": {
+ "type": "date"
+ }
+ },
+ "acls": [
+ {
+ "accessType": "READ",
+ "principalType": "ROLE",
+ "principalId": "$everyone",
+ "permission": "ALLOW"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/modules/worker/front/descriptor/index.html b/modules/worker/front/descriptor/index.html
index 01681ebb8..58ac3d9e6 100644
--- a/modules/worker/front/descriptor/index.html
+++ b/modules/worker/front/descriptor/index.html
@@ -14,6 +14,20 @@
+
+
+ Click to exclude the user from getting disabled
+
+
+ Click to allow the user to be disabled
+
+
+
+
+
+
{
+ this.excluded = data.data.exists;
+ });
+ }
+
+ handleExcluded() {
+ if (this.excluded) {
+ this.$http.delete(`workerDisableExcludeds/${this.entity.id}`);
+ this.excluded = false;
+ } else {
+ this.$http.post(`workerDisableExcludeds`, {workerFk: this.entity.id, dated: new Date});
+ this.excluded = true;
+ }
}
loadData() {
diff --git a/modules/worker/front/locale/es.yml b/modules/worker/front/locale/es.yml
index 1414d089b..672f4c52f 100644
--- a/modules/worker/front/locale/es.yml
+++ b/modules/worker/front/locale/es.yml
@@ -20,4 +20,7 @@ View worker: Ver trabajador
Worker id: Id trabajador
Workers: Trabajadores
worker: trabajador
-Go to the worker: Ir al trabajador
\ No newline at end of file
+Go to the worker: Ir al trabajador
+Click to exclude the user from getting disabled: Marcar para no deshabilitar
+Click to allow the user to be disabled: Marcar para deshabilitar
+This user can't be disabled: Fijado para no deshabilitar
\ No newline at end of file
diff --git a/modules/worker/front/time-control/index.html b/modules/worker/front/time-control/index.html
index 170d88b21..681d420d0 100644
--- a/modules/worker/front/time-control/index.html
+++ b/modules/worker/front/time-control/index.html
@@ -77,6 +77,18 @@
+
+
+
+
+
+
+
+
@@ -148,4 +160,21 @@
ng-click="$ctrl.save()">
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+ Save
+
+
\ No newline at end of file
diff --git a/modules/worker/front/time-control/index.js b/modules/worker/front/time-control/index.js
index ebf70e886..c3d3e5eab 100644
--- a/modules/worker/front/time-control/index.js
+++ b/modules/worker/front/time-control/index.js
@@ -294,6 +294,42 @@ class Controller extends Section {
this.$.editEntry.show($event);
}
+ getWeekNumber(currentDate) {
+ const startDate = new Date(currentDate.getFullYear(), 0, 1);
+ let days = Math.floor((currentDate - startDate) /
+ (24 * 60 * 60 * 1000));
+ return Math.ceil(days / 7);
+ }
+
+ isSatisfied() {
+ const weekNumber = this.getWeekNumber(this.date);
+ const params = {
+ workerId: this.worker.id,
+ year: this.date.getFullYear(),
+ week: weekNumber,
+ state: 'CONFIRMED'
+ };
+ const query = `WorkerTimeControls/updateWorkerTimeControlMail`;
+ this.$http.post(query, params).then(() => {
+ this.vnApp.showSuccess(this.$t('Data saved!'));
+ });
+ }
+
+ isUnsatisfied() {
+ const weekNumber = this.getWeekNumber(this.date);
+ const params = {
+ workerId: this.worker.id,
+ year: this.date.getFullYear(),
+ week: weekNumber,
+ state: 'REVISE',
+ reason: this.reason
+ };
+ const query = `WorkerTimeControls/updateWorkerTimeControlMail`;
+ this.$http.post(query, params).then(() => {
+ this.vnApp.showSuccess(this.$t('Data saved!'));
+ });
+ }
+
save() {
try {
const entry = this.selectedRow;
diff --git a/modules/worker/front/time-control/locale/es.yml b/modules/worker/front/time-control/locale/es.yml
index 8b2486f05..2a3bffc00 100644
--- a/modules/worker/front/time-control/locale/es.yml
+++ b/modules/worker/front/time-control/locale/es.yml
@@ -10,4 +10,7 @@ This time entry will be deleted: Se eliminará la hora fichada
Are you sure you want to delete this entry?: ¿Seguro que quieres eliminarla?
Finish at: Termina a las
Entry removed: Fichada borrada
-The entry type can't be empty: El tipo de fichada no puede quedar vacía
\ No newline at end of file
+The entry type can't be empty: El tipo de fichada no puede quedar vacía
+Satisfied: Conforme
+Not satisfied: No conforme
+Reason: Motivo
\ No newline at end of file
diff --git a/modules/zone/back/methods/zone/getLeaves.js b/modules/zone/back/methods/zone/getLeaves.js
index db17beb1b..ed421e339 100644
--- a/modules/zone/back/methods/zone/getLeaves.js
+++ b/modules/zone/back/methods/zone/getLeaves.js
@@ -59,7 +59,10 @@ module.exports = Self => {
}
const leaves = map.get(parentId);
- setLeaves(leaves);
+
+ const maxNodes = 250;
+ if (res.length <= maxNodes)
+ setLeaves(leaves);
return leaves || [];
};
diff --git a/modules/zone/front/events/index.html b/modules/zone/front/events/index.html
index 9b79f3317..157b2a669 100644
--- a/modules/zone/front/events/index.html
+++ b/modules/zone/front/events/index.html
@@ -59,23 +59,23 @@
@@ -97,7 +97,7 @@
vn-bind="+"
fixed-bottom-right>
-
@@ -193,15 +193,15 @@
-
-
@@ -220,7 +220,7 @@
@@ -248,7 +248,7 @@
ng-model="item.checked"
ng-click="$event.preventDefault()"
on-change="$ctrl.onItemCheck(item.id, value)"
- label="{{::item.name}}">
+ label="{{::item.name}}">
diff --git a/modules/zone/front/events/locale/es.yml b/modules/zone/front/events/locale/es.yml
index 1fb114720..d6eee9f67 100644
--- a/modules/zone/front/events/locale/es.yml
+++ b/modules/zone/front/events/locale/es.yml
@@ -8,3 +8,5 @@ All: Todo
Specific locations: Localizaciones concretas
Locations where it is not distributed: Localizaciones en las que no se reparte
You must select a location: Debes seleccionar una localización
+Add exclusion: Añadir exclusión
+Edit exclusion: Editar exclusión
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 000000000..550a1ec76
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,44299 @@
+{
+ "name": "salix-back",
+ "version": "9.0.0",
+ "lockfileVersion": 2,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "salix-back",
+ "version": "9.0.0",
+ "license": "GPL-3.0",
+ "dependencies": {
+ "axios": "^0.25.0",
+ "bcrypt": "^5.0.1",
+ "bmp-js": "^0.1.0",
+ "compression": "^1.7.3",
+ "form-data": "^4.0.0",
+ "fs-extra": "^5.0.0",
+ "ftps": "^1.2.0",
+ "got": "^10.7.0",
+ "helmet": "^3.21.2",
+ "i18n": "^0.8.4",
+ "image-type": "^4.1.0",
+ "imap": "^0.8.19",
+ "jsdom": "^16.7.0",
+ "jszip": "^3.10.0",
+ "ldapjs": "^2.2.0",
+ "loopback": "^3.28.0",
+ "loopback-boot": "3.3.1",
+ "loopback-component-explorer": "^6.5.0",
+ "loopback-component-storage": "3.6.1",
+ "loopback-connector-mysql": "^5.4.3",
+ "loopback-connector-remote": "^3.4.1",
+ "loopback-context": "^3.4.0",
+ "mailparser": "^2.8.0",
+ "md5": "^2.2.1",
+ "node-ssh": "^11.0.0",
+ "object-diff": "0.0.4",
+ "object.pick": "^1.3.0",
+ "puppeteer": "^18.0.5",
+ "read-chunk": "^3.2.0",
+ "require-yaml": "0.0.1",
+ "sharp": "^0.31.2",
+ "smbhash": "0.0.1",
+ "strong-error-handler": "^2.3.2",
+ "uuid": "^3.3.3",
+ "vn-loopback": "file:./loopback",
+ "vn-print": "file:./print",
+ "xml2js": "^0.4.23"
+ },
+ "devDependencies": {
+ "@babel/core": "^7.7.7",
+ "@babel/plugin-syntax-dynamic-import": "^7.7.4",
+ "@babel/preset-env": "^7.11.0",
+ "@babel/register": "^7.7.7",
+ "angular-mocks": "^1.7.9",
+ "babel-jest": "^26.0.1",
+ "babel-loader": "^8.0.6",
+ "core-js": "^3.9.1",
+ "css-loader": "^2.1.0",
+ "del": "^2.2.2",
+ "eslint": "^7.11.0",
+ "eslint-config-google": "^0.11.0",
+ "eslint-plugin-jasmine": "^2.10.1",
+ "fancy-log": "^1.3.2",
+ "file-loader": "^1.1.11",
+ "gulp": "^4.0.2",
+ "gulp-concat": "^2.6.1",
+ "gulp-env": "^0.4.0",
+ "gulp-file": "^0.4.0",
+ "gulp-install": "^1.1.0",
+ "gulp-merge-json": "^1.3.1",
+ "gulp-nodemon": "^2.5.0",
+ "gulp-print": "^2.0.1",
+ "gulp-wrap": "^0.15.0",
+ "gulp-yaml": "^1.0.1",
+ "html-loader": "^0.4.5",
+ "html-loader-jest": "^0.2.1",
+ "html-webpack-plugin": "^4.0.0-beta.11",
+ "identity-obj-proxy": "^3.0.0",
+ "jasmine": "^4.5.0",
+ "jasmine-reporters": "^2.4.0",
+ "jasmine-spec-reporter": "^7.0.0",
+ "jest": "^26.0.1",
+ "jest-junit": "^8.0.0",
+ "json-loader": "^0.5.7",
+ "merge-stream": "^1.0.1",
+ "minimist": "^1.2.5",
+ "mysql2": "^1.7.0",
+ "node-sass": "^4.14.1",
+ "nodemon": "^2.0.16",
+ "plugin-error": "^1.0.1",
+ "raw-loader": "^1.0.0",
+ "regenerator-runtime": "^0.13.7",
+ "sass-loader": "^7.3.1",
+ "style-loader": "^0.23.1",
+ "webpack": "^4.41.5",
+ "webpack-cli": "^3.3.10",
+ "webpack-dev-server": "^3.11.0",
+ "webpack-merge": "^4.2.2",
+ "yaml-loader": "^0.5.0"
+ },
+ "engines": {
+ "node": ">=14"
+ }
+ },
+ "loopback": {
+ "name": "vn-loopback",
+ "version": "1.0.0",
+ "license": "GPL-3.0"
+ },
+ "node_modules/@ampproject/remapping": {
+ "version": "2.1.2",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@jridgewell/trace-mapping": "^0.3.0"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@babel/code-frame": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/highlight": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/compat-data": {
+ "version": "7.17.7",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/core": {
+ "version": "7.17.8",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@ampproject/remapping": "^2.1.0",
+ "@babel/code-frame": "^7.16.7",
+ "@babel/generator": "^7.17.7",
+ "@babel/helper-compilation-targets": "^7.17.7",
+ "@babel/helper-module-transforms": "^7.17.7",
+ "@babel/helpers": "^7.17.8",
+ "@babel/parser": "^7.17.8",
+ "@babel/template": "^7.16.7",
+ "@babel/traverse": "^7.17.3",
+ "@babel/types": "^7.17.0",
+ "convert-source-map": "^1.7.0",
+ "debug": "^4.1.0",
+ "gensync": "^1.0.0-beta.2",
+ "json5": "^2.1.2",
+ "semver": "^6.3.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/babel"
+ }
+ },
+ "node_modules/@babel/core/node_modules/debug": {
+ "version": "4.3.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@babel/core/node_modules/ms": {
+ "version": "2.1.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@babel/core/node_modules/semver": {
+ "version": "6.3.0",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/@babel/generator": {
+ "version": "7.17.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.17.0",
+ "jsesc": "^2.5.1",
+ "source-map": "^0.5.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-annotate-as-pure": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-explode-assignable-expression": "^7.16.7",
+ "@babel/types": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-compilation-targets": {
+ "version": "7.17.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/compat-data": "^7.17.7",
+ "@babel/helper-validator-option": "^7.16.7",
+ "browserslist": "^4.17.5",
+ "semver": "^6.3.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/helper-compilation-targets/node_modules/semver": {
+ "version": "6.3.0",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/@babel/helper-create-class-features-plugin": {
+ "version": "7.17.6",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-annotate-as-pure": "^7.16.7",
+ "@babel/helper-environment-visitor": "^7.16.7",
+ "@babel/helper-function-name": "^7.16.7",
+ "@babel/helper-member-expression-to-functions": "^7.16.7",
+ "@babel/helper-optimise-call-expression": "^7.16.7",
+ "@babel/helper-replace-supers": "^7.16.7",
+ "@babel/helper-split-export-declaration": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/helper-create-regexp-features-plugin": {
+ "version": "7.17.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-annotate-as-pure": "^7.16.7",
+ "regexpu-core": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/helper-define-polyfill-provider": {
+ "version": "0.3.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-compilation-targets": "^7.13.0",
+ "@babel/helper-module-imports": "^7.12.13",
+ "@babel/helper-plugin-utils": "^7.13.0",
+ "@babel/traverse": "^7.13.0",
+ "debug": "^4.1.1",
+ "lodash.debounce": "^4.0.8",
+ "resolve": "^1.14.2",
+ "semver": "^6.1.2"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.4.0-0"
+ }
+ },
+ "node_modules/@babel/helper-define-polyfill-provider/node_modules/debug": {
+ "version": "4.3.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@babel/helper-define-polyfill-provider/node_modules/ms": {
+ "version": "2.1.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@babel/helper-define-polyfill-provider/node_modules/semver": {
+ "version": "6.3.0",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/@babel/helper-environment-visitor": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-explode-assignable-expression": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-function-name": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-get-function-arity": "^7.16.7",
+ "@babel/template": "^7.16.7",
+ "@babel/types": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-get-function-arity": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-hoist-variables": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-member-expression-to-functions": {
+ "version": "7.17.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.17.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-imports": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-transforms": {
+ "version": "7.17.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-environment-visitor": "^7.16.7",
+ "@babel/helper-module-imports": "^7.16.7",
+ "@babel/helper-simple-access": "^7.17.7",
+ "@babel/helper-split-export-declaration": "^7.16.7",
+ "@babel/helper-validator-identifier": "^7.16.7",
+ "@babel/template": "^7.16.7",
+ "@babel/traverse": "^7.17.3",
+ "@babel/types": "^7.17.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-optimise-call-expression": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-plugin-utils": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-remap-async-to-generator": {
+ "version": "7.16.8",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-annotate-as-pure": "^7.16.7",
+ "@babel/helper-wrap-function": "^7.16.8",
+ "@babel/types": "^7.16.8"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-replace-supers": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-environment-visitor": "^7.16.7",
+ "@babel/helper-member-expression-to-functions": "^7.16.7",
+ "@babel/helper-optimise-call-expression": "^7.16.7",
+ "@babel/traverse": "^7.16.7",
+ "@babel/types": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-simple-access": {
+ "version": "7.17.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.17.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-skip-transparent-expression-wrappers": {
+ "version": "7.16.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.16.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-split-export-declaration": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-identifier": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-option": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-wrap-function": {
+ "version": "7.16.8",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-function-name": "^7.16.7",
+ "@babel/template": "^7.16.7",
+ "@babel/traverse": "^7.16.8",
+ "@babel/types": "^7.16.8"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helpers": {
+ "version": "7.17.8",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/template": "^7.16.7",
+ "@babel/traverse": "^7.17.3",
+ "@babel/types": "^7.17.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/highlight": {
+ "version": "7.16.10",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-validator-identifier": "^7.16.7",
+ "chalk": "^2.0.0",
+ "js-tokens": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/highlight/node_modules/ansi-styles": {
+ "version": "3.2.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^1.9.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/@babel/highlight/node_modules/chalk": {
+ "version": "2.4.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^3.2.1",
+ "escape-string-regexp": "^1.0.5",
+ "supports-color": "^5.3.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/@babel/highlight/node_modules/color-convert": {
+ "version": "1.9.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "1.1.3"
+ }
+ },
+ "node_modules/@babel/highlight/node_modules/color-name": {
+ "version": "1.1.3",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@babel/highlight/node_modules/escape-string-regexp": {
+ "version": "1.0.5",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/@babel/highlight/node_modules/has-flag": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/@babel/highlight/node_modules/supports-color": {
+ "version": "5.5.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-flag": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/@babel/parser": {
+ "version": "7.17.8",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "parser": "bin/babel-parser.js"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/helper-skip-transparent-expression-wrappers": "^7.16.0",
+ "@babel/plugin-proposal-optional-chaining": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.13.0"
+ }
+ },
+ "node_modules/@babel/plugin-proposal-async-generator-functions": {
+ "version": "7.16.8",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/helper-remap-async-to-generator": "^7.16.8",
+ "@babel/plugin-syntax-async-generators": "^7.8.4"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-proposal-class-properties": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-create-class-features-plugin": "^7.16.7",
+ "@babel/helper-plugin-utils": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-proposal-class-static-block": {
+ "version": "7.17.6",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-create-class-features-plugin": "^7.17.6",
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/plugin-syntax-class-static-block": "^7.14.5"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.12.0"
+ }
+ },
+ "node_modules/@babel/plugin-proposal-dynamic-import": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/plugin-syntax-dynamic-import": "^7.8.3"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-proposal-export-namespace-from": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/plugin-syntax-export-namespace-from": "^7.8.3"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-proposal-json-strings": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/plugin-syntax-json-strings": "^7.8.3"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-proposal-logical-assignment-operators": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-proposal-nullish-coalescing-operator": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-proposal-numeric-separator": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/plugin-syntax-numeric-separator": "^7.10.4"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-proposal-object-rest-spread": {
+ "version": "7.17.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/compat-data": "^7.17.0",
+ "@babel/helper-compilation-targets": "^7.16.7",
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/plugin-syntax-object-rest-spread": "^7.8.3",
+ "@babel/plugin-transform-parameters": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-proposal-optional-catch-binding": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/plugin-syntax-optional-catch-binding": "^7.8.3"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-proposal-optional-chaining": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/helper-skip-transparent-expression-wrappers": "^7.16.0",
+ "@babel/plugin-syntax-optional-chaining": "^7.8.3"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-proposal-private-methods": {
+ "version": "7.16.11",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-create-class-features-plugin": "^7.16.10",
+ "@babel/helper-plugin-utils": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-proposal-private-property-in-object": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-annotate-as-pure": "^7.16.7",
+ "@babel/helper-create-class-features-plugin": "^7.16.7",
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/plugin-syntax-private-property-in-object": "^7.14.5"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-proposal-unicode-property-regex": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-create-regexp-features-plugin": "^7.16.7",
+ "@babel/helper-plugin-utils": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=4"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-async-generators": {
+ "version": "7.8.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-bigint": {
+ "version": "7.8.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-class-properties": {
+ "version": "7.12.13",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.12.13"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-class-static-block": {
+ "version": "7.14.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.14.5"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-dynamic-import": {
+ "version": "7.8.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-export-namespace-from": {
+ "version": "7.8.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.8.3"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-import-meta": {
+ "version": "7.10.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-json-strings": {
+ "version": "7.8.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-logical-assignment-operators": {
+ "version": "7.10.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": {
+ "version": "7.8.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-numeric-separator": {
+ "version": "7.10.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-object-rest-spread": {
+ "version": "7.8.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-optional-catch-binding": {
+ "version": "7.8.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-optional-chaining": {
+ "version": "7.8.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-private-property-in-object": {
+ "version": "7.14.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.14.5"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-top-level-await": {
+ "version": "7.14.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.14.5"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-arrow-functions": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-async-to-generator": {
+ "version": "7.16.8",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-module-imports": "^7.16.7",
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/helper-remap-async-to-generator": "^7.16.8"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-block-scoped-functions": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-block-scoping": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-classes": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-annotate-as-pure": "^7.16.7",
+ "@babel/helper-environment-visitor": "^7.16.7",
+ "@babel/helper-function-name": "^7.16.7",
+ "@babel/helper-optimise-call-expression": "^7.16.7",
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/helper-replace-supers": "^7.16.7",
+ "@babel/helper-split-export-declaration": "^7.16.7",
+ "globals": "^11.1.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-computed-properties": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-destructuring": {
+ "version": "7.17.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-dotall-regex": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-create-regexp-features-plugin": "^7.16.7",
+ "@babel/helper-plugin-utils": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-duplicate-keys": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-exponentiation-operator": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-builder-binary-assignment-operator-visitor": "^7.16.7",
+ "@babel/helper-plugin-utils": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-for-of": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-function-name": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-compilation-targets": "^7.16.7",
+ "@babel/helper-function-name": "^7.16.7",
+ "@babel/helper-plugin-utils": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-literals": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-member-expression-literals": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-modules-amd": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-module-transforms": "^7.16.7",
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "babel-plugin-dynamic-import-node": "^2.3.3"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-modules-commonjs": {
+ "version": "7.17.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-module-transforms": "^7.17.7",
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/helper-simple-access": "^7.17.7",
+ "babel-plugin-dynamic-import-node": "^2.3.3"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-modules-systemjs": {
+ "version": "7.17.8",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-hoist-variables": "^7.16.7",
+ "@babel/helper-module-transforms": "^7.17.7",
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/helper-validator-identifier": "^7.16.7",
+ "babel-plugin-dynamic-import-node": "^2.3.3"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-modules-umd": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-module-transforms": "^7.16.7",
+ "@babel/helper-plugin-utils": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-named-capturing-groups-regex": {
+ "version": "7.16.8",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-create-regexp-features-plugin": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-new-target": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-object-super": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/helper-replace-supers": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-parameters": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-property-literals": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-regenerator": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "regenerator-transform": "^0.14.2"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-reserved-words": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-shorthand-properties": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-spread": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/helper-skip-transparent-expression-wrappers": "^7.16.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-sticky-regex": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-template-literals": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-typeof-symbol": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-unicode-escapes": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-unicode-regex": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-create-regexp-features-plugin": "^7.16.7",
+ "@babel/helper-plugin-utils": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/preset-env": {
+ "version": "7.16.11",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/compat-data": "^7.16.8",
+ "@babel/helper-compilation-targets": "^7.16.7",
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/helper-validator-option": "^7.16.7",
+ "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.16.7",
+ "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.16.7",
+ "@babel/plugin-proposal-async-generator-functions": "^7.16.8",
+ "@babel/plugin-proposal-class-properties": "^7.16.7",
+ "@babel/plugin-proposal-class-static-block": "^7.16.7",
+ "@babel/plugin-proposal-dynamic-import": "^7.16.7",
+ "@babel/plugin-proposal-export-namespace-from": "^7.16.7",
+ "@babel/plugin-proposal-json-strings": "^7.16.7",
+ "@babel/plugin-proposal-logical-assignment-operators": "^7.16.7",
+ "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
+ "@babel/plugin-proposal-numeric-separator": "^7.16.7",
+ "@babel/plugin-proposal-object-rest-spread": "^7.16.7",
+ "@babel/plugin-proposal-optional-catch-binding": "^7.16.7",
+ "@babel/plugin-proposal-optional-chaining": "^7.16.7",
+ "@babel/plugin-proposal-private-methods": "^7.16.11",
+ "@babel/plugin-proposal-private-property-in-object": "^7.16.7",
+ "@babel/plugin-proposal-unicode-property-regex": "^7.16.7",
+ "@babel/plugin-syntax-async-generators": "^7.8.4",
+ "@babel/plugin-syntax-class-properties": "^7.12.13",
+ "@babel/plugin-syntax-class-static-block": "^7.14.5",
+ "@babel/plugin-syntax-dynamic-import": "^7.8.3",
+ "@babel/plugin-syntax-export-namespace-from": "^7.8.3",
+ "@babel/plugin-syntax-json-strings": "^7.8.3",
+ "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4",
+ "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3",
+ "@babel/plugin-syntax-numeric-separator": "^7.10.4",
+ "@babel/plugin-syntax-object-rest-spread": "^7.8.3",
+ "@babel/plugin-syntax-optional-catch-binding": "^7.8.3",
+ "@babel/plugin-syntax-optional-chaining": "^7.8.3",
+ "@babel/plugin-syntax-private-property-in-object": "^7.14.5",
+ "@babel/plugin-syntax-top-level-await": "^7.14.5",
+ "@babel/plugin-transform-arrow-functions": "^7.16.7",
+ "@babel/plugin-transform-async-to-generator": "^7.16.8",
+ "@babel/plugin-transform-block-scoped-functions": "^7.16.7",
+ "@babel/plugin-transform-block-scoping": "^7.16.7",
+ "@babel/plugin-transform-classes": "^7.16.7",
+ "@babel/plugin-transform-computed-properties": "^7.16.7",
+ "@babel/plugin-transform-destructuring": "^7.16.7",
+ "@babel/plugin-transform-dotall-regex": "^7.16.7",
+ "@babel/plugin-transform-duplicate-keys": "^7.16.7",
+ "@babel/plugin-transform-exponentiation-operator": "^7.16.7",
+ "@babel/plugin-transform-for-of": "^7.16.7",
+ "@babel/plugin-transform-function-name": "^7.16.7",
+ "@babel/plugin-transform-literals": "^7.16.7",
+ "@babel/plugin-transform-member-expression-literals": "^7.16.7",
+ "@babel/plugin-transform-modules-amd": "^7.16.7",
+ "@babel/plugin-transform-modules-commonjs": "^7.16.8",
+ "@babel/plugin-transform-modules-systemjs": "^7.16.7",
+ "@babel/plugin-transform-modules-umd": "^7.16.7",
+ "@babel/plugin-transform-named-capturing-groups-regex": "^7.16.8",
+ "@babel/plugin-transform-new-target": "^7.16.7",
+ "@babel/plugin-transform-object-super": "^7.16.7",
+ "@babel/plugin-transform-parameters": "^7.16.7",
+ "@babel/plugin-transform-property-literals": "^7.16.7",
+ "@babel/plugin-transform-regenerator": "^7.16.7",
+ "@babel/plugin-transform-reserved-words": "^7.16.7",
+ "@babel/plugin-transform-shorthand-properties": "^7.16.7",
+ "@babel/plugin-transform-spread": "^7.16.7",
+ "@babel/plugin-transform-sticky-regex": "^7.16.7",
+ "@babel/plugin-transform-template-literals": "^7.16.7",
+ "@babel/plugin-transform-typeof-symbol": "^7.16.7",
+ "@babel/plugin-transform-unicode-escapes": "^7.16.7",
+ "@babel/plugin-transform-unicode-regex": "^7.16.7",
+ "@babel/preset-modules": "^0.1.5",
+ "@babel/types": "^7.16.8",
+ "babel-plugin-polyfill-corejs2": "^0.3.0",
+ "babel-plugin-polyfill-corejs3": "^0.5.0",
+ "babel-plugin-polyfill-regenerator": "^0.3.0",
+ "core-js-compat": "^3.20.2",
+ "semver": "^6.3.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/preset-env/node_modules/semver": {
+ "version": "6.3.0",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/@babel/preset-modules": {
+ "version": "0.1.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.0.0",
+ "@babel/plugin-proposal-unicode-property-regex": "^7.4.4",
+ "@babel/plugin-transform-dotall-regex": "^7.4.4",
+ "@babel/types": "^7.4.4",
+ "esutils": "^2.0.2"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/register": {
+ "version": "7.17.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "clone-deep": "^4.0.1",
+ "find-cache-dir": "^2.0.0",
+ "make-dir": "^2.1.0",
+ "pirates": "^4.0.5",
+ "source-map-support": "^0.5.16"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/register/node_modules/make-dir": {
+ "version": "2.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "pify": "^4.0.1",
+ "semver": "^5.6.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/@babel/register/node_modules/semver": {
+ "version": "5.7.1",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver"
+ }
+ },
+ "node_modules/@babel/runtime": {
+ "version": "7.17.8",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "regenerator-runtime": "^0.13.4"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/runtime-corejs3": {
+ "version": "7.17.8",
+ "license": "MIT",
+ "dependencies": {
+ "core-js-pure": "^3.20.2",
+ "regenerator-runtime": "^0.13.4"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/template": {
+ "version": "7.16.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.16.7",
+ "@babel/parser": "^7.16.7",
+ "@babel/types": "^7.16.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/traverse": {
+ "version": "7.17.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.16.7",
+ "@babel/generator": "^7.17.3",
+ "@babel/helper-environment-visitor": "^7.16.7",
+ "@babel/helper-function-name": "^7.16.7",
+ "@babel/helper-hoist-variables": "^7.16.7",
+ "@babel/helper-split-export-declaration": "^7.16.7",
+ "@babel/parser": "^7.17.3",
+ "@babel/types": "^7.17.0",
+ "debug": "^4.1.0",
+ "globals": "^11.1.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/traverse/node_modules/debug": {
+ "version": "4.3.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@babel/traverse/node_modules/ms": {
+ "version": "2.1.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@babel/types": {
+ "version": "7.17.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-validator-identifier": "^7.16.7",
+ "to-fast-properties": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@bcoe/v8-coverage": {
+ "version": "0.2.3",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@cnakazawa/watch": {
+ "version": "1.0.4",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "exec-sh": "^0.3.2",
+ "minimist": "^1.2.0"
+ },
+ "bin": {
+ "watch": "cli.js"
+ },
+ "engines": {
+ "node": ">=0.1.95"
+ }
+ },
+ "node_modules/@eslint/eslintrc": {
+ "version": "0.4.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ajv": "^6.12.4",
+ "debug": "^4.1.1",
+ "espree": "^7.3.0",
+ "globals": "^13.9.0",
+ "ignore": "^4.0.6",
+ "import-fresh": "^3.2.1",
+ "js-yaml": "^3.13.1",
+ "minimatch": "^3.0.4",
+ "strip-json-comments": "^3.1.1"
+ },
+ "engines": {
+ "node": "^10.12.0 || >=12.0.0"
+ }
+ },
+ "node_modules/@eslint/eslintrc/node_modules/debug": {
+ "version": "4.3.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@eslint/eslintrc/node_modules/globals": {
+ "version": "13.13.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "type-fest": "^0.20.2"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@eslint/eslintrc/node_modules/js-yaml": {
+ "version": "3.14.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/@eslint/eslintrc/node_modules/ms": {
+ "version": "2.1.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@eslint/eslintrc/node_modules/strip-json-comments": {
+ "version": "3.1.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@eslint/eslintrc/node_modules/type-fest": {
+ "version": "0.20.2",
+ "dev": true,
+ "license": "(MIT OR CC0-1.0)",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@google-cloud/common": {
+ "version": "0.32.1",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@google-cloud/projectify": "^0.3.3",
+ "@google-cloud/promisify": "^0.4.0",
+ "@types/request": "^2.48.1",
+ "arrify": "^2.0.0",
+ "duplexify": "^3.6.0",
+ "ent": "^2.2.0",
+ "extend": "^3.0.2",
+ "google-auth-library": "^3.1.1",
+ "pify": "^4.0.1",
+ "retry-request": "^4.0.0",
+ "teeny-request": "^3.11.3"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@google-cloud/common/node_modules/arrify": {
+ "version": "2.0.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@google-cloud/paginator": {
+ "version": "0.2.0",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "arrify": "^1.0.1",
+ "extend": "^3.0.1",
+ "split-array-stream": "^2.0.0",
+ "stream-events": "^1.0.4"
+ }
+ },
+ "node_modules/@google-cloud/projectify": {
+ "version": "0.3.3",
+ "license": "Apache-2.0"
+ },
+ "node_modules/@google-cloud/promisify": {
+ "version": "0.4.0",
+ "license": "Apache-2.0"
+ },
+ "node_modules/@google-cloud/storage": {
+ "version": "2.5.0",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@google-cloud/common": "^0.32.0",
+ "@google-cloud/paginator": "^0.2.0",
+ "@google-cloud/promisify": "^0.4.0",
+ "arrify": "^1.0.0",
+ "async": "^2.0.1",
+ "compressible": "^2.0.12",
+ "concat-stream": "^2.0.0",
+ "date-and-time": "^0.6.3",
+ "duplexify": "^3.5.0",
+ "extend": "^3.0.0",
+ "gcs-resumable-upload": "^1.0.0",
+ "hash-stream-validation": "^0.2.1",
+ "mime": "^2.2.0",
+ "mime-types": "^2.0.8",
+ "onetime": "^5.1.0",
+ "pumpify": "^1.5.1",
+ "snakeize": "^0.1.0",
+ "stream-events": "^1.0.1",
+ "teeny-request": "^3.11.3",
+ "through2": "^3.0.0",
+ "xdg-basedir": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@google-cloud/storage/node_modules/mime": {
+ "version": "2.6.0",
+ "license": "MIT",
+ "bin": {
+ "mime": "cli.js"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/@humanwhocodes/config-array": {
+ "version": "0.5.0",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@humanwhocodes/object-schema": "^1.2.0",
+ "debug": "^4.1.1",
+ "minimatch": "^3.0.4"
+ },
+ "engines": {
+ "node": ">=10.10.0"
+ }
+ },
+ "node_modules/@humanwhocodes/config-array/node_modules/debug": {
+ "version": "4.3.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@humanwhocodes/config-array/node_modules/ms": {
+ "version": "2.1.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@humanwhocodes/object-schema": {
+ "version": "1.2.1",
+ "dev": true,
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/@istanbuljs/load-nyc-config": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "camelcase": "^5.3.1",
+ "find-up": "^4.1.0",
+ "get-package-type": "^0.1.0",
+ "js-yaml": "^3.13.1",
+ "resolve-from": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": {
+ "version": "3.14.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/@istanbuljs/schema": {
+ "version": "0.1.3",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@jest/console": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/types": "^26.6.2",
+ "@types/node": "*",
+ "chalk": "^4.0.0",
+ "jest-message-util": "^26.6.2",
+ "jest-util": "^26.6.2",
+ "slash": "^3.0.0"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/@jest/core": {
+ "version": "26.6.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/console": "^26.6.2",
+ "@jest/reporters": "^26.6.2",
+ "@jest/test-result": "^26.6.2",
+ "@jest/transform": "^26.6.2",
+ "@jest/types": "^26.6.2",
+ "@types/node": "*",
+ "ansi-escapes": "^4.2.1",
+ "chalk": "^4.0.0",
+ "exit": "^0.1.2",
+ "graceful-fs": "^4.2.4",
+ "jest-changed-files": "^26.6.2",
+ "jest-config": "^26.6.3",
+ "jest-haste-map": "^26.6.2",
+ "jest-message-util": "^26.6.2",
+ "jest-regex-util": "^26.0.0",
+ "jest-resolve": "^26.6.2",
+ "jest-resolve-dependencies": "^26.6.3",
+ "jest-runner": "^26.6.3",
+ "jest-runtime": "^26.6.3",
+ "jest-snapshot": "^26.6.2",
+ "jest-util": "^26.6.2",
+ "jest-validate": "^26.6.2",
+ "jest-watcher": "^26.6.2",
+ "micromatch": "^4.0.2",
+ "p-each-series": "^2.1.0",
+ "rimraf": "^3.0.0",
+ "slash": "^3.0.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/@jest/core/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@jest/core/node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@jest/environment": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/fake-timers": "^26.6.2",
+ "@jest/types": "^26.6.2",
+ "@types/node": "*",
+ "jest-mock": "^26.6.2"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/@jest/fake-timers": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/types": "^26.6.2",
+ "@sinonjs/fake-timers": "^6.0.1",
+ "@types/node": "*",
+ "jest-message-util": "^26.6.2",
+ "jest-mock": "^26.6.2",
+ "jest-util": "^26.6.2"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/@jest/globals": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/environment": "^26.6.2",
+ "@jest/types": "^26.6.2",
+ "expect": "^26.6.2"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/@jest/reporters": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@bcoe/v8-coverage": "^0.2.3",
+ "@jest/console": "^26.6.2",
+ "@jest/test-result": "^26.6.2",
+ "@jest/transform": "^26.6.2",
+ "@jest/types": "^26.6.2",
+ "chalk": "^4.0.0",
+ "collect-v8-coverage": "^1.0.0",
+ "exit": "^0.1.2",
+ "glob": "^7.1.2",
+ "graceful-fs": "^4.2.4",
+ "istanbul-lib-coverage": "^3.0.0",
+ "istanbul-lib-instrument": "^4.0.3",
+ "istanbul-lib-report": "^3.0.0",
+ "istanbul-lib-source-maps": "^4.0.0",
+ "istanbul-reports": "^3.0.2",
+ "jest-haste-map": "^26.6.2",
+ "jest-resolve": "^26.6.2",
+ "jest-util": "^26.6.2",
+ "jest-worker": "^26.6.2",
+ "slash": "^3.0.0",
+ "source-map": "^0.6.0",
+ "string-length": "^4.0.1",
+ "terminal-link": "^2.0.0",
+ "v8-to-istanbul": "^7.0.0"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ },
+ "optionalDependencies": {
+ "node-notifier": "^8.0.0"
+ }
+ },
+ "node_modules/@jest/reporters/node_modules/istanbul-lib-instrument": {
+ "version": "4.0.3",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "@babel/core": "^7.7.5",
+ "@istanbuljs/schema": "^0.1.2",
+ "istanbul-lib-coverage": "^3.0.0",
+ "semver": "^6.3.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@jest/reporters/node_modules/semver": {
+ "version": "6.3.0",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/@jest/reporters/node_modules/source-map": {
+ "version": "0.6.1",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/@jest/source-map": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "callsites": "^3.0.0",
+ "graceful-fs": "^4.2.4",
+ "source-map": "^0.6.0"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/@jest/source-map/node_modules/source-map": {
+ "version": "0.6.1",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/@jest/test-result": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/console": "^26.6.2",
+ "@jest/types": "^26.6.2",
+ "@types/istanbul-lib-coverage": "^2.0.0",
+ "collect-v8-coverage": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/@jest/test-sequencer": {
+ "version": "26.6.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/test-result": "^26.6.2",
+ "graceful-fs": "^4.2.4",
+ "jest-haste-map": "^26.6.2",
+ "jest-runner": "^26.6.3",
+ "jest-runtime": "^26.6.3"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/@jest/transform": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/core": "^7.1.0",
+ "@jest/types": "^26.6.2",
+ "babel-plugin-istanbul": "^6.0.0",
+ "chalk": "^4.0.0",
+ "convert-source-map": "^1.4.0",
+ "fast-json-stable-stringify": "^2.0.0",
+ "graceful-fs": "^4.2.4",
+ "jest-haste-map": "^26.6.2",
+ "jest-regex-util": "^26.0.0",
+ "jest-util": "^26.6.2",
+ "micromatch": "^4.0.2",
+ "pirates": "^4.0.1",
+ "slash": "^3.0.0",
+ "source-map": "^0.6.1",
+ "write-file-atomic": "^3.0.0"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/@jest/transform/node_modules/source-map": {
+ "version": "0.6.1",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/@jest/transform/node_modules/write-file-atomic": {
+ "version": "3.0.3",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "imurmurhash": "^0.1.4",
+ "is-typedarray": "^1.0.0",
+ "signal-exit": "^3.0.2",
+ "typedarray-to-buffer": "^3.1.5"
+ }
+ },
+ "node_modules/@jest/types": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/istanbul-lib-coverage": "^2.0.0",
+ "@types/istanbul-reports": "^3.0.0",
+ "@types/node": "*",
+ "@types/yargs": "^15.0.0",
+ "chalk": "^4.0.0"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/@jridgewell/resolve-uri": {
+ "version": "3.0.5",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/sourcemap-codec": {
+ "version": "1.4.11",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@jridgewell/trace-mapping": {
+ "version": "0.3.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/resolve-uri": "^3.0.3",
+ "@jridgewell/sourcemap-codec": "^1.4.10"
+ }
+ },
+ "node_modules/@mapbox/node-pre-gyp": {
+ "version": "1.0.10",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "detect-libc": "^2.0.0",
+ "https-proxy-agent": "^5.0.0",
+ "make-dir": "^3.1.0",
+ "node-fetch": "^2.6.7",
+ "nopt": "^5.0.0",
+ "npmlog": "^5.0.1",
+ "rimraf": "^3.0.2",
+ "semver": "^7.3.5",
+ "tar": "^6.1.11"
+ },
+ "bin": {
+ "node-pre-gyp": "bin/node-pre-gyp"
+ }
+ },
+ "node_modules/@mapbox/node-pre-gyp/node_modules/agent-base": {
+ "version": "6.0.2",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 6.0.0"
+ }
+ },
+ "node_modules/@mapbox/node-pre-gyp/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@mapbox/node-pre-gyp/node_modules/are-we-there-yet": {
+ "version": "2.0.0",
+ "license": "ISC",
+ "dependencies": {
+ "delegates": "^1.0.0",
+ "readable-stream": "^3.6.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@mapbox/node-pre-gyp/node_modules/chownr": {
+ "version": "2.0.0",
+ "license": "ISC",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@mapbox/node-pre-gyp/node_modules/debug": {
+ "version": "4.3.4",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@mapbox/node-pre-gyp/node_modules/gauge": {
+ "version": "3.0.2",
+ "license": "ISC",
+ "dependencies": {
+ "aproba": "^1.0.3 || ^2.0.0",
+ "color-support": "^1.1.2",
+ "console-control-strings": "^1.0.0",
+ "has-unicode": "^2.0.1",
+ "object-assign": "^4.1.1",
+ "signal-exit": "^3.0.0",
+ "string-width": "^4.2.3",
+ "strip-ansi": "^6.0.1",
+ "wide-align": "^1.1.2"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@mapbox/node-pre-gyp/node_modules/https-proxy-agent": {
+ "version": "5.0.1",
+ "license": "MIT",
+ "dependencies": {
+ "agent-base": "6",
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/@mapbox/node-pre-gyp/node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@mapbox/node-pre-gyp/node_modules/lru-cache": {
+ "version": "6.0.0",
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@mapbox/node-pre-gyp/node_modules/make-dir": {
+ "version": "3.1.0",
+ "license": "MIT",
+ "dependencies": {
+ "semver": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@mapbox/node-pre-gyp/node_modules/make-dir/node_modules/semver": {
+ "version": "6.3.0",
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/@mapbox/node-pre-gyp/node_modules/mkdirp": {
+ "version": "1.0.4",
+ "license": "MIT",
+ "bin": {
+ "mkdirp": "bin/cmd.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@mapbox/node-pre-gyp/node_modules/ms": {
+ "version": "2.1.2",
+ "license": "MIT"
+ },
+ "node_modules/@mapbox/node-pre-gyp/node_modules/nopt": {
+ "version": "5.0.0",
+ "license": "ISC",
+ "dependencies": {
+ "abbrev": "1"
+ },
+ "bin": {
+ "nopt": "bin/nopt.js"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/@mapbox/node-pre-gyp/node_modules/npmlog": {
+ "version": "5.0.1",
+ "license": "ISC",
+ "dependencies": {
+ "are-we-there-yet": "^2.0.0",
+ "console-control-strings": "^1.1.0",
+ "gauge": "^3.0.0",
+ "set-blocking": "^2.0.0"
+ }
+ },
+ "node_modules/@mapbox/node-pre-gyp/node_modules/readable-stream": {
+ "version": "3.6.0",
+ "license": "MIT",
+ "dependencies": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/@mapbox/node-pre-gyp/node_modules/safe-buffer": {
+ "version": "5.2.1",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/@mapbox/node-pre-gyp/node_modules/semver": {
+ "version": "7.3.8",
+ "license": "ISC",
+ "dependencies": {
+ "lru-cache": "^6.0.0"
+ },
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@mapbox/node-pre-gyp/node_modules/string_decoder": {
+ "version": "1.3.0",
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.2.0"
+ }
+ },
+ "node_modules/@mapbox/node-pre-gyp/node_modules/string-width": {
+ "version": "4.2.3",
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@mapbox/node-pre-gyp/node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@mapbox/node-pre-gyp/node_modules/tar": {
+ "version": "6.1.11",
+ "license": "ISC",
+ "dependencies": {
+ "chownr": "^2.0.0",
+ "fs-minipass": "^2.0.0",
+ "minipass": "^3.0.0",
+ "minizlib": "^2.1.1",
+ "mkdirp": "^1.0.3",
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@mapbox/node-pre-gyp/node_modules/yallist": {
+ "version": "4.0.0",
+ "license": "ISC"
+ },
+ "node_modules/@sindresorhus/is": {
+ "version": "2.1.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sindresorhus/is?sponsor=1"
+ }
+ },
+ "node_modules/@sinonjs/commons": {
+ "version": "1.8.3",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "type-detect": "4.0.8"
+ }
+ },
+ "node_modules/@sinonjs/fake-timers": {
+ "version": "6.0.1",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "@sinonjs/commons": "^1.7.0"
+ }
+ },
+ "node_modules/@szmarczak/http-timer": {
+ "version": "4.0.6",
+ "license": "MIT",
+ "dependencies": {
+ "defer-to-connect": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@tootallnate/once": {
+ "version": "1.1.2",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/@types/babel__core": {
+ "version": "7.1.19",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.1.0",
+ "@babel/types": "^7.0.0",
+ "@types/babel__generator": "*",
+ "@types/babel__template": "*",
+ "@types/babel__traverse": "*"
+ }
+ },
+ "node_modules/@types/babel__generator": {
+ "version": "7.6.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.0.0"
+ }
+ },
+ "node_modules/@types/babel__template": {
+ "version": "7.4.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.1.0",
+ "@babel/types": "^7.0.0"
+ }
+ },
+ "node_modules/@types/babel__traverse": {
+ "version": "7.14.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.3.0"
+ }
+ },
+ "node_modules/@types/body-parser": {
+ "version": "1.19.2",
+ "license": "MIT",
+ "dependencies": {
+ "@types/connect": "*",
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@types/cacheable-request": {
+ "version": "6.0.2",
+ "license": "MIT",
+ "dependencies": {
+ "@types/http-cache-semantics": "*",
+ "@types/keyv": "*",
+ "@types/node": "*",
+ "@types/responselike": "*"
+ }
+ },
+ "node_modules/@types/caseless": {
+ "version": "0.12.2",
+ "license": "MIT"
+ },
+ "node_modules/@types/connect": {
+ "version": "3.4.35",
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@types/express": {
+ "version": "4.17.13",
+ "license": "MIT",
+ "dependencies": {
+ "@types/body-parser": "*",
+ "@types/express-serve-static-core": "^4.17.18",
+ "@types/qs": "*",
+ "@types/serve-static": "*"
+ }
+ },
+ "node_modules/@types/express-serve-static-core": {
+ "version": "4.17.28",
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*",
+ "@types/qs": "*",
+ "@types/range-parser": "*"
+ }
+ },
+ "node_modules/@types/glob": {
+ "version": "7.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/minimatch": "*",
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@types/graceful-fs": {
+ "version": "4.1.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@types/html-minifier-terser": {
+ "version": "5.1.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/http-cache-semantics": {
+ "version": "4.0.1",
+ "license": "MIT"
+ },
+ "node_modules/@types/istanbul-lib-coverage": {
+ "version": "2.0.4",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/istanbul-lib-report": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/istanbul-lib-coverage": "*"
+ }
+ },
+ "node_modules/@types/istanbul-reports": {
+ "version": "3.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/istanbul-lib-report": "*"
+ }
+ },
+ "node_modules/@types/json-schema": {
+ "version": "7.0.11",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/keyv": {
+ "version": "3.1.4",
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@types/mime": {
+ "version": "1.3.2",
+ "license": "MIT"
+ },
+ "node_modules/@types/minimatch": {
+ "version": "3.0.5",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/node": {
+ "version": "17.0.23",
+ "license": "MIT"
+ },
+ "node_modules/@types/normalize-package-data": {
+ "version": "2.4.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/prettier": {
+ "version": "2.4.4",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/qs": {
+ "version": "6.9.7",
+ "license": "MIT"
+ },
+ "node_modules/@types/range-parser": {
+ "version": "1.2.4",
+ "license": "MIT"
+ },
+ "node_modules/@types/request": {
+ "version": "2.48.8",
+ "license": "MIT",
+ "dependencies": {
+ "@types/caseless": "*",
+ "@types/node": "*",
+ "@types/tough-cookie": "*",
+ "form-data": "^2.5.0"
+ }
+ },
+ "node_modules/@types/request/node_modules/form-data": {
+ "version": "2.5.1",
+ "license": "MIT",
+ "dependencies": {
+ "asynckit": "^0.4.0",
+ "combined-stream": "^1.0.6",
+ "mime-types": "^2.1.12"
+ },
+ "engines": {
+ "node": ">= 0.12"
+ }
+ },
+ "node_modules/@types/responselike": {
+ "version": "1.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@types/serve-static": {
+ "version": "1.13.10",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mime": "^1",
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@types/source-list-map": {
+ "version": "0.1.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/stack-utils": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/tapable": {
+ "version": "1.0.8",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/tough-cookie": {
+ "version": "4.0.1",
+ "license": "MIT"
+ },
+ "node_modules/@types/uglify-js": {
+ "version": "3.13.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "source-map": "^0.6.1"
+ }
+ },
+ "node_modules/@types/uglify-js/node_modules/source-map": {
+ "version": "0.6.1",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/@types/webpack": {
+ "version": "4.41.32",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*",
+ "@types/tapable": "^1",
+ "@types/uglify-js": "*",
+ "@types/webpack-sources": "*",
+ "anymatch": "^3.0.0",
+ "source-map": "^0.6.0"
+ }
+ },
+ "node_modules/@types/webpack-sources": {
+ "version": "3.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*",
+ "@types/source-list-map": "*",
+ "source-map": "^0.7.3"
+ }
+ },
+ "node_modules/@types/webpack-sources/node_modules/source-map": {
+ "version": "0.7.3",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@types/webpack/node_modules/source-map": {
+ "version": "0.6.1",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/@types/yargs": {
+ "version": "15.0.14",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/yargs-parser": "*"
+ }
+ },
+ "node_modules/@types/yargs-parser": {
+ "version": "21.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/yauzl": {
+ "version": "2.10.0",
+ "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.0.tgz",
+ "integrity": "sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==",
+ "optional": true,
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@webassemblyjs/ast": {
+ "version": "1.9.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@webassemblyjs/helper-module-context": "1.9.0",
+ "@webassemblyjs/helper-wasm-bytecode": "1.9.0",
+ "@webassemblyjs/wast-parser": "1.9.0"
+ }
+ },
+ "node_modules/@webassemblyjs/floating-point-hex-parser": {
+ "version": "1.9.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@webassemblyjs/helper-api-error": {
+ "version": "1.9.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@webassemblyjs/helper-buffer": {
+ "version": "1.9.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@webassemblyjs/helper-code-frame": {
+ "version": "1.9.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@webassemblyjs/wast-printer": "1.9.0"
+ }
+ },
+ "node_modules/@webassemblyjs/helper-fsm": {
+ "version": "1.9.0",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/@webassemblyjs/helper-module-context": {
+ "version": "1.9.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@webassemblyjs/ast": "1.9.0"
+ }
+ },
+ "node_modules/@webassemblyjs/helper-wasm-bytecode": {
+ "version": "1.9.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@webassemblyjs/helper-wasm-section": {
+ "version": "1.9.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@webassemblyjs/ast": "1.9.0",
+ "@webassemblyjs/helper-buffer": "1.9.0",
+ "@webassemblyjs/helper-wasm-bytecode": "1.9.0",
+ "@webassemblyjs/wasm-gen": "1.9.0"
+ }
+ },
+ "node_modules/@webassemblyjs/ieee754": {
+ "version": "1.9.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@xtuc/ieee754": "^1.2.0"
+ }
+ },
+ "node_modules/@webassemblyjs/leb128": {
+ "version": "1.9.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@xtuc/long": "4.2.2"
+ }
+ },
+ "node_modules/@webassemblyjs/utf8": {
+ "version": "1.9.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@webassemblyjs/wasm-edit": {
+ "version": "1.9.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@webassemblyjs/ast": "1.9.0",
+ "@webassemblyjs/helper-buffer": "1.9.0",
+ "@webassemblyjs/helper-wasm-bytecode": "1.9.0",
+ "@webassemblyjs/helper-wasm-section": "1.9.0",
+ "@webassemblyjs/wasm-gen": "1.9.0",
+ "@webassemblyjs/wasm-opt": "1.9.0",
+ "@webassemblyjs/wasm-parser": "1.9.0",
+ "@webassemblyjs/wast-printer": "1.9.0"
+ }
+ },
+ "node_modules/@webassemblyjs/wasm-gen": {
+ "version": "1.9.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@webassemblyjs/ast": "1.9.0",
+ "@webassemblyjs/helper-wasm-bytecode": "1.9.0",
+ "@webassemblyjs/ieee754": "1.9.0",
+ "@webassemblyjs/leb128": "1.9.0",
+ "@webassemblyjs/utf8": "1.9.0"
+ }
+ },
+ "node_modules/@webassemblyjs/wasm-opt": {
+ "version": "1.9.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@webassemblyjs/ast": "1.9.0",
+ "@webassemblyjs/helper-buffer": "1.9.0",
+ "@webassemblyjs/wasm-gen": "1.9.0",
+ "@webassemblyjs/wasm-parser": "1.9.0"
+ }
+ },
+ "node_modules/@webassemblyjs/wasm-parser": {
+ "version": "1.9.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@webassemblyjs/ast": "1.9.0",
+ "@webassemblyjs/helper-api-error": "1.9.0",
+ "@webassemblyjs/helper-wasm-bytecode": "1.9.0",
+ "@webassemblyjs/ieee754": "1.9.0",
+ "@webassemblyjs/leb128": "1.9.0",
+ "@webassemblyjs/utf8": "1.9.0"
+ }
+ },
+ "node_modules/@webassemblyjs/wast-parser": {
+ "version": "1.9.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@webassemblyjs/ast": "1.9.0",
+ "@webassemblyjs/floating-point-hex-parser": "1.9.0",
+ "@webassemblyjs/helper-api-error": "1.9.0",
+ "@webassemblyjs/helper-code-frame": "1.9.0",
+ "@webassemblyjs/helper-fsm": "1.9.0",
+ "@xtuc/long": "4.2.2"
+ }
+ },
+ "node_modules/@webassemblyjs/wast-printer": {
+ "version": "1.9.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@webassemblyjs/ast": "1.9.0",
+ "@webassemblyjs/wast-parser": "1.9.0",
+ "@xtuc/long": "4.2.2"
+ }
+ },
+ "node_modules/@xmldom/xmldom": {
+ "version": "0.7.5",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10.0.0"
+ }
+ },
+ "node_modules/@xtuc/ieee754": {
+ "version": "1.2.0",
+ "dev": true,
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/@xtuc/long": {
+ "version": "4.2.2",
+ "dev": true,
+ "license": "Apache-2.0"
+ },
+ "node_modules/abab": {
+ "version": "2.0.5",
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/abbrev": {
+ "version": "1.1.1",
+ "license": "ISC"
+ },
+ "node_modules/abort-controller": {
+ "version": "3.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "event-target-shim": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=6.5"
+ }
+ },
+ "node_modules/abstract-logging": {
+ "version": "2.0.1",
+ "license": "MIT"
+ },
+ "node_modules/accept-language": {
+ "version": "3.0.18",
+ "license": "MIT",
+ "dependencies": {
+ "bcp47": "^1.1.2",
+ "stable": "^0.1.6"
+ }
+ },
+ "node_modules/accepts": {
+ "version": "1.3.8",
+ "license": "MIT",
+ "dependencies": {
+ "mime-types": "~2.1.34",
+ "negotiator": "0.6.3"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/acorn": {
+ "version": "7.4.1",
+ "license": "MIT",
+ "bin": {
+ "acorn": "bin/acorn"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/acorn-globals": {
+ "version": "6.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "acorn": "^7.1.1",
+ "acorn-walk": "^7.1.1"
+ }
+ },
+ "node_modules/acorn-jsx": {
+ "version": "5.3.2",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
+ }
+ },
+ "node_modules/acorn-walk": {
+ "version": "7.2.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/agent-base": {
+ "version": "4.3.0",
+ "license": "MIT",
+ "dependencies": {
+ "es6-promisify": "^5.0.0"
+ },
+ "engines": {
+ "node": ">= 4.0.0"
+ }
+ },
+ "node_modules/ajv": {
+ "version": "6.12.6",
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.1",
+ "fast-json-stable-stringify": "^2.0.0",
+ "json-schema-traverse": "^0.4.1",
+ "uri-js": "^4.2.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/ajv-errors": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "ajv": ">=5.0.0"
+ }
+ },
+ "node_modules/ajv-keywords": {
+ "version": "3.5.2",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "ajv": "^6.9.1"
+ }
+ },
+ "node_modules/amdefine": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "BSD-3-Clause OR MIT",
+ "engines": {
+ "node": ">=0.4.2"
+ }
+ },
+ "node_modules/angular-mocks": {
+ "version": "1.8.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/ansi-align": {
+ "version": "3.0.1",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "string-width": "^4.1.0"
+ }
+ },
+ "node_modules/ansi-align/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ansi-align/node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ansi-align/node_modules/string-width": {
+ "version": "4.2.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ansi-align/node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ansi-colors": {
+ "version": "4.1.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/ansi-escapes": {
+ "version": "4.3.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "type-fest": "^0.21.3"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/ansi-escapes/node_modules/type-fest": {
+ "version": "0.21.3",
+ "dev": true,
+ "license": "(MIT OR CC0-1.0)",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/ansi-gray": {
+ "version": "0.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-wrap": "0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/ansi-html-community": {
+ "version": "0.0.8",
+ "dev": true,
+ "engines": [
+ "node >= 0.8.0"
+ ],
+ "license": "Apache-2.0",
+ "bin": {
+ "ansi-html": "bin/ansi-html"
+ }
+ },
+ "node_modules/ansi-regex": {
+ "version": "2.1.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/ansi-wrap": {
+ "version": "0.1.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/anymatch": {
+ "version": "3.1.2",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "normalize-path": "^3.0.0",
+ "picomatch": "^2.0.4"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/append-buffer": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "buffer-equal": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/aproba": {
+ "version": "1.2.0",
+ "license": "ISC"
+ },
+ "node_modules/archy": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/are-we-there-yet": {
+ "version": "1.1.7",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "delegates": "^1.0.0",
+ "readable-stream": "^2.0.6"
+ }
+ },
+ "node_modules/are-we-there-yet/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/are-we-there-yet/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/are-we-there-yet/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/argparse": {
+ "version": "1.0.10",
+ "license": "MIT",
+ "dependencies": {
+ "sprintf-js": "~1.0.2"
+ }
+ },
+ "node_modules/argparse/node_modules/sprintf-js": {
+ "version": "1.0.3",
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/arr-diff": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/arr-filter": {
+ "version": "1.1.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "make-iterator": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/arr-flatten": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/arr-map": {
+ "version": "2.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "make-iterator": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/arr-union": {
+ "version": "3.1.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/array-differ": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/array-each": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/array-find-index": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/array-flatten": {
+ "version": "1.1.1",
+ "license": "MIT"
+ },
+ "node_modules/array-initial": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "array-slice": "^1.0.0",
+ "is-number": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/array-initial/node_modules/is-number": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/array-last": {
+ "version": "1.3.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-number": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/array-last/node_modules/is-number": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/array-slice": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/array-sort": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "default-compare": "^1.0.0",
+ "get-value": "^2.0.6",
+ "kind-of": "^5.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/array-sort/node_modules/kind-of": {
+ "version": "5.1.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/array-union": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "array-uniq": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/array-uniq": {
+ "version": "1.0.3",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/array-unique": {
+ "version": "0.3.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/arrify": {
+ "version": "1.0.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/asn1": {
+ "version": "0.2.6",
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": "~2.1.0"
+ }
+ },
+ "node_modules/asn1.js": {
+ "version": "5.4.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "bn.js": "^4.0.0",
+ "inherits": "^2.0.1",
+ "minimalistic-assert": "^1.0.0",
+ "safer-buffer": "^2.1.0"
+ }
+ },
+ "node_modules/asn1.js/node_modules/bn.js": {
+ "version": "4.12.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/assert": {
+ "version": "1.5.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "object-assign": "^4.1.1",
+ "util": "0.10.3"
+ }
+ },
+ "node_modules/assert-plus": {
+ "version": "1.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/assert/node_modules/inherits": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/assert/node_modules/util": {
+ "version": "0.10.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "inherits": "2.0.1"
+ }
+ },
+ "node_modules/assign-symbols": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/ast-types": {
+ "version": "0.9.6",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/astral-regex": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/async": {
+ "version": "2.6.3",
+ "license": "MIT",
+ "dependencies": {
+ "lodash": "^4.17.14"
+ }
+ },
+ "node_modules/async-done": {
+ "version": "1.3.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "end-of-stream": "^1.1.0",
+ "once": "^1.3.2",
+ "process-nextick-args": "^2.0.0",
+ "stream-exhaust": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/async-each": {
+ "version": "1.0.3",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/async-foreach": {
+ "version": "0.1.3",
+ "dev": true,
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/async-hook-jl": {
+ "version": "1.7.6",
+ "license": "MIT",
+ "dependencies": {
+ "stack-chain": "^1.3.7"
+ },
+ "engines": {
+ "node": "^4.7 || >=6.9 || >=7.3"
+ }
+ },
+ "node_modules/async-limiter": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/async-settle": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "async-done": "^1.2.2"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/asynckit": {
+ "version": "0.4.0",
+ "license": "MIT"
+ },
+ "node_modules/atob": {
+ "version": "2.1.2",
+ "dev": true,
+ "license": "(MIT OR Apache-2.0)",
+ "bin": {
+ "atob": "bin/atob.js"
+ },
+ "engines": {
+ "node": ">= 4.5.0"
+ }
+ },
+ "node_modules/aws-sdk": {
+ "version": "2.1102.0",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "buffer": "4.9.2",
+ "events": "1.1.1",
+ "ieee754": "1.1.13",
+ "jmespath": "0.16.0",
+ "querystring": "0.2.0",
+ "sax": "1.2.1",
+ "url": "0.10.3",
+ "uuid": "3.3.2",
+ "xml2js": "0.4.19"
+ },
+ "engines": {
+ "node": ">= 10.0.0"
+ }
+ },
+ "node_modules/aws-sdk/node_modules/sax": {
+ "version": "1.2.1",
+ "license": "ISC"
+ },
+ "node_modules/aws-sdk/node_modules/uuid": {
+ "version": "3.3.2",
+ "license": "MIT",
+ "bin": {
+ "uuid": "bin/uuid"
+ }
+ },
+ "node_modules/aws-sdk/node_modules/xml2js": {
+ "version": "0.4.19",
+ "license": "MIT",
+ "dependencies": {
+ "sax": ">=0.6.0",
+ "xmlbuilder": "~9.0.1"
+ }
+ },
+ "node_modules/aws-sdk/node_modules/xmlbuilder": {
+ "version": "9.0.7",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/aws-sign2": {
+ "version": "0.7.0",
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/aws4": {
+ "version": "1.11.0",
+ "license": "MIT"
+ },
+ "node_modules/axios": {
+ "version": "0.25.0",
+ "license": "MIT",
+ "dependencies": {
+ "follow-redirects": "^1.14.7"
+ }
+ },
+ "node_modules/babel-jest": {
+ "version": "26.6.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/transform": "^26.6.2",
+ "@jest/types": "^26.6.2",
+ "@types/babel__core": "^7.1.7",
+ "babel-plugin-istanbul": "^6.0.0",
+ "babel-preset-jest": "^26.6.2",
+ "chalk": "^4.0.0",
+ "graceful-fs": "^4.2.4",
+ "slash": "^3.0.0"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/babel-loader": {
+ "version": "8.2.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "find-cache-dir": "^3.3.1",
+ "loader-utils": "^2.0.0",
+ "make-dir": "^3.1.0",
+ "schema-utils": "^2.6.5"
+ },
+ "engines": {
+ "node": ">= 8.9"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0",
+ "webpack": ">=2"
+ }
+ },
+ "node_modules/babel-loader/node_modules/find-cache-dir": {
+ "version": "3.3.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "commondir": "^1.0.1",
+ "make-dir": "^3.0.2",
+ "pkg-dir": "^4.1.0"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/avajs/find-cache-dir?sponsor=1"
+ }
+ },
+ "node_modules/babel-loader/node_modules/make-dir": {
+ "version": "3.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "semver": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/babel-loader/node_modules/semver": {
+ "version": "6.3.0",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/babel-plugin-dynamic-import-node": {
+ "version": "2.3.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "object.assign": "^4.1.0"
+ }
+ },
+ "node_modules/babel-plugin-istanbul": {
+ "version": "6.1.1",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.0.0",
+ "@istanbuljs/load-nyc-config": "^1.0.0",
+ "@istanbuljs/schema": "^0.1.2",
+ "istanbul-lib-instrument": "^5.0.4",
+ "test-exclude": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/babel-plugin-jest-hoist": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/template": "^7.3.3",
+ "@babel/types": "^7.3.3",
+ "@types/babel__core": "^7.0.0",
+ "@types/babel__traverse": "^7.0.6"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/babel-plugin-polyfill-corejs2": {
+ "version": "0.3.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/compat-data": "^7.13.11",
+ "@babel/helper-define-polyfill-provider": "^0.3.1",
+ "semver": "^6.1.1"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/babel-plugin-polyfill-corejs2/node_modules/semver": {
+ "version": "6.3.0",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/babel-plugin-polyfill-corejs3": {
+ "version": "0.5.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-define-polyfill-provider": "^0.3.1",
+ "core-js-compat": "^3.21.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/babel-plugin-polyfill-regenerator": {
+ "version": "0.3.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-define-polyfill-provider": "^0.3.1"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/babel-preset-current-node-syntax": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/plugin-syntax-async-generators": "^7.8.4",
+ "@babel/plugin-syntax-bigint": "^7.8.3",
+ "@babel/plugin-syntax-class-properties": "^7.8.3",
+ "@babel/plugin-syntax-import-meta": "^7.8.3",
+ "@babel/plugin-syntax-json-strings": "^7.8.3",
+ "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3",
+ "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3",
+ "@babel/plugin-syntax-numeric-separator": "^7.8.3",
+ "@babel/plugin-syntax-object-rest-spread": "^7.8.3",
+ "@babel/plugin-syntax-optional-catch-binding": "^7.8.3",
+ "@babel/plugin-syntax-optional-chaining": "^7.8.3",
+ "@babel/plugin-syntax-top-level-await": "^7.8.3"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/babel-preset-jest": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "babel-plugin-jest-hoist": "^26.6.2",
+ "babel-preset-current-node-syntax": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/bach": {
+ "version": "1.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "arr-filter": "^1.1.1",
+ "arr-flatten": "^1.0.1",
+ "arr-map": "^2.0.0",
+ "array-each": "^1.0.0",
+ "array-initial": "^1.0.0",
+ "array-last": "^1.1.1",
+ "async-done": "^1.2.2",
+ "async-settle": "^1.0.0",
+ "now-and-later": "^2.0.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/backoff": {
+ "version": "2.5.0",
+ "license": "MIT",
+ "dependencies": {
+ "precond": "0.2"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/balanced-match": {
+ "version": "1.0.2",
+ "license": "MIT"
+ },
+ "node_modules/base": {
+ "version": "0.11.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cache-base": "^1.0.1",
+ "class-utils": "^0.3.5",
+ "component-emitter": "^1.2.1",
+ "define-property": "^1.0.0",
+ "isobject": "^3.0.1",
+ "mixin-deep": "^1.2.0",
+ "pascalcase": "^0.1.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/base/node_modules/define-property": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-descriptor": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/base/node_modules/is-accessor-descriptor": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kind-of": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/base/node_modules/is-data-descriptor": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kind-of": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/base/node_modules/is-descriptor": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-accessor-descriptor": "^1.0.0",
+ "is-data-descriptor": "^1.0.0",
+ "kind-of": "^6.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/base64-js": {
+ "version": "1.0.2",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/batch": {
+ "version": "0.6.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/bcp47": {
+ "version": "1.1.2",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/bcrypt": {
+ "version": "5.1.0",
+ "hasInstallScript": true,
+ "license": "MIT",
+ "dependencies": {
+ "@mapbox/node-pre-gyp": "^1.0.10",
+ "node-addon-api": "^5.0.0"
+ },
+ "engines": {
+ "node": ">= 10.0.0"
+ }
+ },
+ "node_modules/bcrypt-pbkdf": {
+ "version": "1.0.2",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "tweetnacl": "^0.14.3"
+ }
+ },
+ "node_modules/bcryptjs": {
+ "version": "2.4.3",
+ "license": "MIT"
+ },
+ "node_modules/beeper": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/big.js": {
+ "version": "5.2.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/bigdecimal": {
+ "version": "0.6.1",
+ "engines": [
+ "node"
+ ],
+ "bin": {
+ "bigdecimal.js": "repl.js"
+ }
+ },
+ "node_modules/bignumber.js": {
+ "version": "9.0.2",
+ "license": "MIT",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/binary-extensions": {
+ "version": "1.13.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/bl": {
+ "version": "2.2.1",
+ "license": "MIT",
+ "dependencies": {
+ "readable-stream": "^2.3.5",
+ "safe-buffer": "^5.1.1"
+ }
+ },
+ "node_modules/bl/node_modules/isarray": {
+ "version": "1.0.0",
+ "license": "MIT"
+ },
+ "node_modules/bl/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/bl/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/block-stream": {
+ "version": "0.0.9",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "inherits": "~2.0.0"
+ },
+ "engines": {
+ "node": "0.4 || >=0.5.8"
+ }
+ },
+ "node_modules/bluebird": {
+ "version": "3.7.2",
+ "license": "MIT"
+ },
+ "node_modules/bmp-js": {
+ "version": "0.1.0",
+ "license": "MIT"
+ },
+ "node_modules/bn.js": {
+ "version": "5.2.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/body-parser": {
+ "version": "1.19.2",
+ "license": "MIT",
+ "dependencies": {
+ "bytes": "3.1.2",
+ "content-type": "~1.0.4",
+ "debug": "2.6.9",
+ "depd": "~1.1.2",
+ "http-errors": "1.8.1",
+ "iconv-lite": "0.4.24",
+ "on-finished": "~2.3.0",
+ "qs": "6.9.7",
+ "raw-body": "2.4.3",
+ "type-is": "~1.6.18"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/body-parser/node_modules/bytes": {
+ "version": "3.1.2",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/body-parser/node_modules/depd": {
+ "version": "1.1.2",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/bonjour": {
+ "version": "3.5.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "array-flatten": "^2.1.0",
+ "deep-equal": "^1.0.1",
+ "dns-equal": "^1.0.0",
+ "dns-txt": "^2.0.2",
+ "multicast-dns": "^6.0.1",
+ "multicast-dns-service-types": "^1.1.0"
+ }
+ },
+ "node_modules/bonjour/node_modules/array-flatten": {
+ "version": "2.1.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/boolbase": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/bops": {
+ "version": "1.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "base64-js": "1.0.2",
+ "to-utf8": "0.0.1"
+ }
+ },
+ "node_modules/bowser": {
+ "version": "2.9.0",
+ "license": "MIT"
+ },
+ "node_modules/boxen": {
+ "version": "5.1.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-align": "^3.0.0",
+ "camelcase": "^6.2.0",
+ "chalk": "^4.1.0",
+ "cli-boxes": "^2.2.1",
+ "string-width": "^4.2.2",
+ "type-fest": "^0.20.2",
+ "widest-line": "^3.1.0",
+ "wrap-ansi": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/boxen/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/boxen/node_modules/camelcase": {
+ "version": "6.3.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/boxen/node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/boxen/node_modules/string-width": {
+ "version": "4.2.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/boxen/node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/boxen/node_modules/type-fest": {
+ "version": "0.20.2",
+ "dev": true,
+ "license": "(MIT OR CC0-1.0)",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/boxen/node_modules/wrap-ansi": {
+ "version": "7.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
+ "node_modules/brace-expansion": {
+ "version": "1.1.11",
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/braces": {
+ "version": "3.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fill-range": "^7.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/brorand": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/browser-process-hrtime": {
+ "version": "1.0.0",
+ "license": "BSD-2-Clause"
+ },
+ "node_modules/browserify-aes": {
+ "version": "1.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "buffer-xor": "^1.0.3",
+ "cipher-base": "^1.0.0",
+ "create-hash": "^1.1.0",
+ "evp_bytestokey": "^1.0.3",
+ "inherits": "^2.0.1",
+ "safe-buffer": "^5.0.1"
+ }
+ },
+ "node_modules/browserify-cipher": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "browserify-aes": "^1.0.4",
+ "browserify-des": "^1.0.0",
+ "evp_bytestokey": "^1.0.0"
+ }
+ },
+ "node_modules/browserify-des": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cipher-base": "^1.0.1",
+ "des.js": "^1.0.0",
+ "inherits": "^2.0.1",
+ "safe-buffer": "^5.1.2"
+ }
+ },
+ "node_modules/browserify-rsa": {
+ "version": "4.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "bn.js": "^5.0.0",
+ "randombytes": "^2.0.1"
+ }
+ },
+ "node_modules/browserify-sign": {
+ "version": "4.2.1",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "bn.js": "^5.1.1",
+ "browserify-rsa": "^4.0.1",
+ "create-hash": "^1.2.0",
+ "create-hmac": "^1.1.7",
+ "elliptic": "^6.5.3",
+ "inherits": "^2.0.4",
+ "parse-asn1": "^5.1.5",
+ "readable-stream": "^3.6.0",
+ "safe-buffer": "^5.2.0"
+ }
+ },
+ "node_modules/browserify-sign/node_modules/readable-stream": {
+ "version": "3.6.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/browserify-sign/node_modules/safe-buffer": {
+ "version": "5.2.1",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/browserify-sign/node_modules/string_decoder": {
+ "version": "1.3.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.2.0"
+ }
+ },
+ "node_modules/browserify-zlib": {
+ "version": "0.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "pako": "~1.0.5"
+ }
+ },
+ "node_modules/browserslist": {
+ "version": "4.20.2",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "caniuse-lite": "^1.0.30001317",
+ "electron-to-chromium": "^1.4.84",
+ "escalade": "^3.1.1",
+ "node-releases": "^2.0.2",
+ "picocolors": "^1.0.0"
+ },
+ "bin": {
+ "browserslist": "cli.js"
+ },
+ "engines": {
+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
+ }
+ },
+ "node_modules/bser": {
+ "version": "2.1.1",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "node-int64": "^0.4.0"
+ }
+ },
+ "node_modules/btoa": {
+ "version": "1.2.1",
+ "license": "(MIT OR Apache-2.0)",
+ "bin": {
+ "btoa": "bin/btoa.js"
+ },
+ "engines": {
+ "node": ">= 0.4.0"
+ }
+ },
+ "node_modules/buffer": {
+ "version": "4.9.2",
+ "license": "MIT",
+ "dependencies": {
+ "base64-js": "^1.0.2",
+ "ieee754": "^1.1.4",
+ "isarray": "^1.0.0"
+ }
+ },
+ "node_modules/buffer-crc32": {
+ "version": "0.2.13",
+ "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz",
+ "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/buffer-equal": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/buffer-equal-constant-time": {
+ "version": "1.0.1",
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/buffer-from": {
+ "version": "1.1.2",
+ "license": "MIT"
+ },
+ "node_modules/buffer-indexof": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/buffer-xor": {
+ "version": "1.0.3",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/buffer/node_modules/isarray": {
+ "version": "1.0.0",
+ "license": "MIT"
+ },
+ "node_modules/bufferstreams": {
+ "version": "1.0.1",
+ "dev": true,
+ "dependencies": {
+ "readable-stream": "^1.0.33"
+ },
+ "engines": {
+ "node": ">= 0.10.0"
+ }
+ },
+ "node_modules/builtin-status-codes": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/bytes": {
+ "version": "3.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/cacache": {
+ "version": "12.0.4",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "bluebird": "^3.5.5",
+ "chownr": "^1.1.1",
+ "figgy-pudding": "^3.5.1",
+ "glob": "^7.1.4",
+ "graceful-fs": "^4.1.15",
+ "infer-owner": "^1.0.3",
+ "lru-cache": "^5.1.1",
+ "mississippi": "^3.0.0",
+ "mkdirp": "^0.5.1",
+ "move-concurrently": "^1.0.1",
+ "promise-inflight": "^1.0.1",
+ "rimraf": "^2.6.3",
+ "ssri": "^6.0.1",
+ "unique-filename": "^1.1.1",
+ "y18n": "^4.0.0"
+ }
+ },
+ "node_modules/cacache/node_modules/rimraf": {
+ "version": "2.7.1",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "glob": "^7.1.3"
+ },
+ "bin": {
+ "rimraf": "bin.js"
+ }
+ },
+ "node_modules/cache-base": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "collection-visit": "^1.0.0",
+ "component-emitter": "^1.2.1",
+ "get-value": "^2.0.6",
+ "has-value": "^1.0.0",
+ "isobject": "^3.0.1",
+ "set-value": "^2.0.0",
+ "to-object-path": "^0.3.0",
+ "union-value": "^1.0.0",
+ "unset-value": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/cacheable-lookup": {
+ "version": "2.0.1",
+ "license": "MIT",
+ "dependencies": {
+ "@types/keyv": "^3.1.1",
+ "keyv": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/cacheable-request": {
+ "version": "7.0.2",
+ "license": "MIT",
+ "dependencies": {
+ "clone-response": "^1.0.2",
+ "get-stream": "^5.1.0",
+ "http-cache-semantics": "^4.0.0",
+ "keyv": "^4.0.0",
+ "lowercase-keys": "^2.0.0",
+ "normalize-url": "^6.0.1",
+ "responselike": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/call-bind": {
+ "version": "1.0.2",
+ "license": "MIT",
+ "dependencies": {
+ "function-bind": "^1.1.1",
+ "get-intrinsic": "^1.0.2"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/callsites": {
+ "version": "3.1.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/camel-case": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "no-case": "^2.2.0",
+ "upper-case": "^1.1.1"
+ }
+ },
+ "node_modules/camelcase": {
+ "version": "5.3.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/camelcase-keys": {
+ "version": "2.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "camelcase": "^2.0.0",
+ "map-obj": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/camelcase-keys/node_modules/camelcase": {
+ "version": "2.1.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/camelize": {
+ "version": "1.0.0",
+ "license": "MIT"
+ },
+ "node_modules/caniuse-lite": {
+ "version": "1.0.30001320",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
+ }
+ ],
+ "license": "CC-BY-4.0"
+ },
+ "node_modules/canonical-json": {
+ "version": "0.0.4",
+ "license": "BSD"
+ },
+ "node_modules/capture-exit": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "rsvp": "^4.8.4"
+ },
+ "engines": {
+ "node": "6.* || 8.* || >= 10.*"
+ }
+ },
+ "node_modules/caseless": {
+ "version": "0.12.0",
+ "license": "Apache-2.0"
+ },
+ "node_modules/chalk": {
+ "version": "4.1.2",
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/chalk?sponsor=1"
+ }
+ },
+ "node_modules/char-regex": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/charenc": {
+ "version": "0.0.2",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/chokidar": {
+ "version": "2.1.8",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "anymatch": "^2.0.0",
+ "async-each": "^1.0.1",
+ "braces": "^2.3.2",
+ "glob-parent": "^3.1.0",
+ "inherits": "^2.0.3",
+ "is-binary-path": "^1.0.0",
+ "is-glob": "^4.0.0",
+ "normalize-path": "^3.0.0",
+ "path-is-absolute": "^1.0.0",
+ "readdirp": "^2.2.1",
+ "upath": "^1.1.1"
+ },
+ "optionalDependencies": {
+ "fsevents": "^1.2.7"
+ }
+ },
+ "node_modules/chokidar/node_modules/anymatch": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "micromatch": "^3.1.4",
+ "normalize-path": "^2.1.1"
+ }
+ },
+ "node_modules/chokidar/node_modules/anymatch/node_modules/normalize-path": {
+ "version": "2.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "remove-trailing-separator": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/chokidar/node_modules/braces": {
+ "version": "2.3.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "arr-flatten": "^1.1.0",
+ "array-unique": "^0.3.2",
+ "extend-shallow": "^2.0.1",
+ "fill-range": "^4.0.0",
+ "isobject": "^3.0.1",
+ "repeat-element": "^1.1.2",
+ "snapdragon": "^0.8.1",
+ "snapdragon-node": "^2.0.1",
+ "split-string": "^3.0.2",
+ "to-regex": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/chokidar/node_modules/braces/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/chokidar/node_modules/fill-range": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "extend-shallow": "^2.0.1",
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1",
+ "to-regex-range": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/chokidar/node_modules/fill-range/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/chokidar/node_modules/glob-parent": {
+ "version": "3.1.0",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^3.1.0",
+ "path-dirname": "^1.0.0"
+ }
+ },
+ "node_modules/chokidar/node_modules/glob-parent/node_modules/is-glob": {
+ "version": "3.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extglob": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/chokidar/node_modules/is-number": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kind-of": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/chokidar/node_modules/is-number/node_modules/kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-buffer": "^1.1.5"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/chokidar/node_modules/micromatch": {
+ "version": "3.1.10",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "arr-diff": "^4.0.0",
+ "array-unique": "^0.3.2",
+ "braces": "^2.3.1",
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "extglob": "^2.0.4",
+ "fragment-cache": "^0.2.1",
+ "kind-of": "^6.0.2",
+ "nanomatch": "^1.2.9",
+ "object.pick": "^1.3.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/chokidar/node_modules/to-regex-range": {
+ "version": "2.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/chownr": {
+ "version": "1.1.4",
+ "license": "ISC"
+ },
+ "node_modules/chrome-trace-event": {
+ "version": "1.0.3",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0"
+ }
+ },
+ "node_modules/ci-info": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/cipher-base": {
+ "version": "1.0.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "inherits": "^2.0.1",
+ "safe-buffer": "^5.0.1"
+ }
+ },
+ "node_modules/cjs-module-lexer": {
+ "version": "0.6.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/class-utils": {
+ "version": "0.3.6",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "arr-union": "^3.1.0",
+ "define-property": "^0.2.5",
+ "isobject": "^3.0.0",
+ "static-extend": "^0.1.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/class-utils/node_modules/define-property": {
+ "version": "0.2.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-descriptor": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/cldrjs": {
+ "version": "0.5.5"
+ },
+ "node_modules/clean-css": {
+ "version": "4.2.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "source-map": "~0.6.0"
+ },
+ "engines": {
+ "node": ">= 4.0"
+ }
+ },
+ "node_modules/clean-css/node_modules/source-map": {
+ "version": "0.6.1",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/cli-boxes": {
+ "version": "2.2.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/cliui": {
+ "version": "6.0.0",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "string-width": "^4.2.0",
+ "strip-ansi": "^6.0.0",
+ "wrap-ansi": "^6.2.0"
+ }
+ },
+ "node_modules/cliui/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/cliui/node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/cliui/node_modules/string-width": {
+ "version": "4.2.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/cliui/node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/clone": {
+ "version": "2.1.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/clone-buffer": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/clone-deep": {
+ "version": "4.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-plain-object": "^2.0.4",
+ "kind-of": "^6.0.2",
+ "shallow-clone": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/clone-deep/node_modules/is-plain-object": {
+ "version": "2.0.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "isobject": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/clone-response": {
+ "version": "1.0.2",
+ "license": "MIT",
+ "dependencies": {
+ "mimic-response": "^1.0.0"
+ }
+ },
+ "node_modules/clone-response/node_modules/mimic-response": {
+ "version": "1.0.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/clone-stats": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/cloneable-readable": {
+ "version": "1.1.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "inherits": "^2.0.1",
+ "process-nextick-args": "^2.0.0",
+ "readable-stream": "^2.3.5"
+ }
+ },
+ "node_modules/cloneable-readable/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/cloneable-readable/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/cloneable-readable/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/cls-hooked": {
+ "version": "4.2.2",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "async-hook-jl": "^1.7.6",
+ "emitter-listener": "^1.0.1",
+ "semver": "^5.4.1"
+ },
+ "engines": {
+ "node": "^4.7 || >=6.9 || >=7.3 || >=8.2.1"
+ }
+ },
+ "node_modules/cls-hooked/node_modules/semver": {
+ "version": "5.7.1",
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver"
+ }
+ },
+ "node_modules/co": {
+ "version": "4.6.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "iojs": ">= 1.0.0",
+ "node": ">= 0.12.0"
+ }
+ },
+ "node_modules/code-point-at": {
+ "version": "1.1.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/collect-v8-coverage": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/collection-map": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "arr-map": "^2.0.2",
+ "for-own": "^1.0.0",
+ "make-iterator": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/collection-visit": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "map-visit": "^1.0.0",
+ "object-visit": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/color": {
+ "version": "4.2.3",
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^2.0.1",
+ "color-string": "^1.9.0"
+ },
+ "engines": {
+ "node": ">=12.5.0"
+ }
+ },
+ "node_modules/color-convert": {
+ "version": "2.0.1",
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "~1.1.4"
+ },
+ "engines": {
+ "node": ">=7.0.0"
+ }
+ },
+ "node_modules/color-name": {
+ "version": "1.1.4",
+ "license": "MIT"
+ },
+ "node_modules/color-string": {
+ "version": "1.9.1",
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "^1.0.0",
+ "simple-swizzle": "^0.2.2"
+ }
+ },
+ "node_modules/color-support": {
+ "version": "1.1.3",
+ "license": "ISC",
+ "bin": {
+ "color-support": "bin.js"
+ }
+ },
+ "node_modules/colors": {
+ "version": "1.4.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.1.90"
+ }
+ },
+ "node_modules/combined-stream": {
+ "version": "1.0.8",
+ "license": "MIT",
+ "dependencies": {
+ "delayed-stream": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/commander": {
+ "version": "2.20.3",
+ "license": "MIT"
+ },
+ "node_modules/commondir": {
+ "version": "1.0.1",
+ "license": "MIT"
+ },
+ "node_modules/component-emitter": {
+ "version": "1.3.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/compressible": {
+ "version": "2.0.18",
+ "license": "MIT",
+ "dependencies": {
+ "mime-db": ">= 1.43.0 < 2"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/compression": {
+ "version": "1.7.4",
+ "license": "MIT",
+ "dependencies": {
+ "accepts": "~1.3.5",
+ "bytes": "3.0.0",
+ "compressible": "~2.0.16",
+ "debug": "2.6.9",
+ "on-headers": "~1.0.2",
+ "safe-buffer": "5.1.2",
+ "vary": "~1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/concat-map": {
+ "version": "0.0.1",
+ "license": "MIT"
+ },
+ "node_modules/concat-stream": {
+ "version": "2.0.0",
+ "engines": [
+ "node >= 6.0"
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "buffer-from": "^1.0.0",
+ "inherits": "^2.0.3",
+ "readable-stream": "^3.0.2",
+ "typedarray": "^0.0.6"
+ }
+ },
+ "node_modules/concat-stream/node_modules/readable-stream": {
+ "version": "3.6.0",
+ "license": "MIT",
+ "dependencies": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/concat-stream/node_modules/safe-buffer": {
+ "version": "5.2.1",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/concat-stream/node_modules/string_decoder": {
+ "version": "1.3.0",
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.2.0"
+ }
+ },
+ "node_modules/concat-with-sourcemaps": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "source-map": "^0.6.1"
+ }
+ },
+ "node_modules/concat-with-sourcemaps/node_modules/source-map": {
+ "version": "0.6.1",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/configstore": {
+ "version": "4.0.0",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "dot-prop": "^4.1.0",
+ "graceful-fs": "^4.1.2",
+ "make-dir": "^1.0.0",
+ "unique-string": "^1.0.0",
+ "write-file-atomic": "^2.0.0",
+ "xdg-basedir": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/connect-history-api-fallback": {
+ "version": "1.6.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/console-browserify": {
+ "version": "1.2.0",
+ "dev": true
+ },
+ "node_modules/console-control-strings": {
+ "version": "1.1.0",
+ "license": "ISC"
+ },
+ "node_modules/consolidate": {
+ "version": "0.15.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "bluebird": "^3.1.1"
+ },
+ "engines": {
+ "node": ">= 0.10.0"
+ }
+ },
+ "node_modules/constants-browserify": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/content-disposition": {
+ "version": "0.5.4",
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "5.2.1"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/content-disposition/node_modules/safe-buffer": {
+ "version": "5.2.1",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/content-security-policy-builder": {
+ "version": "2.1.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/content-type": {
+ "version": "1.0.4",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/convert-source-map": {
+ "version": "1.8.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.1"
+ }
+ },
+ "node_modules/cookie": {
+ "version": "0.4.2",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/cookie-signature": {
+ "version": "1.0.6",
+ "license": "MIT"
+ },
+ "node_modules/copy-concurrently": {
+ "version": "1.0.5",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "aproba": "^1.1.1",
+ "fs-write-stream-atomic": "^1.0.8",
+ "iferr": "^0.1.5",
+ "mkdirp": "^0.5.1",
+ "rimraf": "^2.5.4",
+ "run-queue": "^1.0.0"
+ }
+ },
+ "node_modules/copy-concurrently/node_modules/rimraf": {
+ "version": "2.7.1",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "glob": "^7.1.3"
+ },
+ "bin": {
+ "rimraf": "bin.js"
+ }
+ },
+ "node_modules/copy-descriptor": {
+ "version": "0.1.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/copy-props": {
+ "version": "2.0.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "each-props": "^1.3.2",
+ "is-plain-object": "^5.0.0"
+ }
+ },
+ "node_modules/core-js": {
+ "version": "3.21.1",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/core-js"
+ }
+ },
+ "node_modules/core-js-compat": {
+ "version": "3.21.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "browserslist": "^4.19.1",
+ "semver": "7.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/core-js"
+ }
+ },
+ "node_modules/core-js-compat/node_modules/semver": {
+ "version": "7.0.0",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/core-js-pure": {
+ "version": "3.21.1",
+ "hasInstallScript": true,
+ "license": "MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/core-js"
+ }
+ },
+ "node_modules/core-util-is": {
+ "version": "1.0.3",
+ "license": "MIT"
+ },
+ "node_modules/create-ecdh": {
+ "version": "4.0.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "bn.js": "^4.1.0",
+ "elliptic": "^6.5.3"
+ }
+ },
+ "node_modules/create-ecdh/node_modules/bn.js": {
+ "version": "4.12.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/create-hash": {
+ "version": "1.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cipher-base": "^1.0.1",
+ "inherits": "^2.0.1",
+ "md5.js": "^1.3.4",
+ "ripemd160": "^2.0.1",
+ "sha.js": "^2.4.0"
+ }
+ },
+ "node_modules/create-hmac": {
+ "version": "1.1.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cipher-base": "^1.0.3",
+ "create-hash": "^1.1.0",
+ "inherits": "^2.0.1",
+ "ripemd160": "^2.0.0",
+ "safe-buffer": "^5.0.1",
+ "sha.js": "^2.4.8"
+ }
+ },
+ "node_modules/cross-fetch": {
+ "version": "3.1.5",
+ "license": "MIT",
+ "dependencies": {
+ "node-fetch": "2.6.7"
+ }
+ },
+ "node_modules/cross-spawn": {
+ "version": "7.0.3",
+ "license": "MIT",
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/crypt": {
+ "version": "0.0.2",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/crypto-browserify": {
+ "version": "3.12.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "browserify-cipher": "^1.0.0",
+ "browserify-sign": "^4.0.0",
+ "create-ecdh": "^4.0.0",
+ "create-hash": "^1.1.0",
+ "create-hmac": "^1.1.0",
+ "diffie-hellman": "^5.0.0",
+ "inherits": "^2.0.1",
+ "pbkdf2": "^3.0.3",
+ "public-encrypt": "^4.0.0",
+ "randombytes": "^2.0.0",
+ "randomfill": "^1.0.3"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/crypto-random-string": {
+ "version": "1.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/css-loader": {
+ "version": "2.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "camelcase": "^5.2.0",
+ "icss-utils": "^4.1.0",
+ "loader-utils": "^1.2.3",
+ "normalize-path": "^3.0.0",
+ "postcss": "^7.0.14",
+ "postcss-modules-extract-imports": "^2.0.0",
+ "postcss-modules-local-by-default": "^2.0.6",
+ "postcss-modules-scope": "^2.1.0",
+ "postcss-modules-values": "^2.0.0",
+ "postcss-value-parser": "^3.3.0",
+ "schema-utils": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 6.9.0"
+ },
+ "peerDependencies": {
+ "webpack": "^4.0.0"
+ }
+ },
+ "node_modules/css-loader/node_modules/json5": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "minimist": "^1.2.0"
+ },
+ "bin": {
+ "json5": "lib/cli.js"
+ }
+ },
+ "node_modules/css-loader/node_modules/loader-utils": {
+ "version": "1.4.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "big.js": "^5.2.2",
+ "emojis-list": "^3.0.0",
+ "json5": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/css-loader/node_modules/schema-utils": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ajv": "^6.1.0",
+ "ajv-errors": "^1.0.0",
+ "ajv-keywords": "^3.1.0"
+ },
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/cssesc": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "cssesc": "bin/cssesc"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/cssom": {
+ "version": "0.4.4",
+ "license": "MIT"
+ },
+ "node_modules/cssstyle": {
+ "version": "2.3.0",
+ "license": "MIT",
+ "dependencies": {
+ "cssom": "~0.3.6"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/cssstyle/node_modules/cssom": {
+ "version": "0.3.8",
+ "license": "MIT"
+ },
+ "node_modules/currently-unhandled": {
+ "version": "0.4.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "array-find-index": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/cyclist": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/d": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "es5-ext": "^0.10.50",
+ "type": "^1.0.1"
+ }
+ },
+ "node_modules/dargs": {
+ "version": "5.1.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/dashdash": {
+ "version": "1.14.1",
+ "license": "MIT",
+ "dependencies": {
+ "assert-plus": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/dasherize": {
+ "version": "2.0.0",
+ "license": "MIT"
+ },
+ "node_modules/data-urls": {
+ "version": "2.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "abab": "^2.0.3",
+ "whatwg-mimetype": "^2.3.0",
+ "whatwg-url": "^8.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/data-urls/node_modules/tr46": {
+ "version": "2.1.0",
+ "license": "MIT",
+ "dependencies": {
+ "punycode": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/data-urls/node_modules/webidl-conversions": {
+ "version": "6.1.0",
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=10.4"
+ }
+ },
+ "node_modules/data-urls/node_modules/whatwg-url": {
+ "version": "8.7.0",
+ "license": "MIT",
+ "dependencies": {
+ "lodash": "^4.7.0",
+ "tr46": "^2.1.0",
+ "webidl-conversions": "^6.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/date-and-time": {
+ "version": "0.6.3",
+ "license": "MIT"
+ },
+ "node_modules/date-format": {
+ "version": "4.0.14",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/dateformat": {
+ "version": "2.2.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/debug": {
+ "version": "2.6.9",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.0.0"
+ }
+ },
+ "node_modules/decamelize": {
+ "version": "1.2.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/decimal.js": {
+ "version": "10.3.1",
+ "license": "MIT"
+ },
+ "node_modules/decode-uri-component": {
+ "version": "0.2.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/decompress-response": {
+ "version": "5.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "mimic-response": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/deep-equal": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-arguments": "^1.0.4",
+ "is-date-object": "^1.0.1",
+ "is-regex": "^1.0.4",
+ "object-is": "^1.0.1",
+ "object-keys": "^1.1.1",
+ "regexp.prototype.flags": "^1.2.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/deep-extend": {
+ "version": "0.6.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/deep-is": {
+ "version": "0.1.4",
+ "license": "MIT"
+ },
+ "node_modules/deepmerge": {
+ "version": "4.2.2",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/default-compare": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kind-of": "^5.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/default-compare/node_modules/kind-of": {
+ "version": "5.1.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/default-gateway": {
+ "version": "4.2.0",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "execa": "^1.0.0",
+ "ip-regex": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/default-gateway/node_modules/cross-spawn": {
+ "version": "6.0.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "nice-try": "^1.0.4",
+ "path-key": "^2.0.1",
+ "semver": "^5.5.0",
+ "shebang-command": "^1.2.0",
+ "which": "^1.2.9"
+ },
+ "engines": {
+ "node": ">=4.8"
+ }
+ },
+ "node_modules/default-gateway/node_modules/execa": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cross-spawn": "^6.0.0",
+ "get-stream": "^4.0.0",
+ "is-stream": "^1.1.0",
+ "npm-run-path": "^2.0.0",
+ "p-finally": "^1.0.0",
+ "signal-exit": "^3.0.0",
+ "strip-eof": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/default-gateway/node_modules/get-stream": {
+ "version": "4.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "pump": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/default-gateway/node_modules/is-stream": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/default-gateway/node_modules/npm-run-path": {
+ "version": "2.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "path-key": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/default-gateway/node_modules/path-key": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/default-gateway/node_modules/semver": {
+ "version": "5.7.1",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver"
+ }
+ },
+ "node_modules/default-gateway/node_modules/shebang-command": {
+ "version": "1.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "shebang-regex": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/default-gateway/node_modules/shebang-regex": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/default-gateway/node_modules/which": {
+ "version": "1.3.1",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "which": "bin/which"
+ }
+ },
+ "node_modules/default-resolution": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/defer-to-connect": {
+ "version": "2.0.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/define-properties": {
+ "version": "1.1.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "object-keys": "^1.0.12"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/define-property": {
+ "version": "2.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-descriptor": "^1.0.2",
+ "isobject": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/define-property/node_modules/is-accessor-descriptor": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kind-of": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/define-property/node_modules/is-data-descriptor": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kind-of": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/define-property/node_modules/is-descriptor": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-accessor-descriptor": "^1.0.0",
+ "is-data-descriptor": "^1.0.0",
+ "kind-of": "^6.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/del": {
+ "version": "2.2.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "globby": "^5.0.0",
+ "is-path-cwd": "^1.0.0",
+ "is-path-in-cwd": "^1.0.0",
+ "object-assign": "^4.0.1",
+ "pify": "^2.0.0",
+ "pinkie-promise": "^2.0.0",
+ "rimraf": "^2.2.8"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/del/node_modules/pify": {
+ "version": "2.3.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/del/node_modules/rimraf": {
+ "version": "2.7.1",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "glob": "^7.1.3"
+ },
+ "bin": {
+ "rimraf": "bin.js"
+ }
+ },
+ "node_modules/delayed-stream": {
+ "version": "1.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/delegates": {
+ "version": "1.0.0",
+ "license": "MIT"
+ },
+ "node_modules/denque": {
+ "version": "1.5.1",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/depd": {
+ "version": "2.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/deprecate": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/des.js": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "inherits": "^2.0.1",
+ "minimalistic-assert": "^1.0.0"
+ }
+ },
+ "node_modules/destroy": {
+ "version": "1.0.4",
+ "license": "MIT"
+ },
+ "node_modules/detect-file": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/detect-libc": {
+ "version": "2.0.1",
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/detect-newline": {
+ "version": "3.1.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/detect-node": {
+ "version": "2.1.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/devtools-protocol": {
+ "version": "0.0.1045489",
+ "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1045489.tgz",
+ "integrity": "sha512-D+PTmWulkuQW4D1NTiCRCFxF7pQPn0hgp4YyX4wAQ6xYXKOadSWPR3ENGDQ47MW/Ewc9v2rpC/UEEGahgBYpSQ=="
+ },
+ "node_modules/diff": {
+ "version": "1.4.0",
+ "engines": {
+ "node": ">=0.3.1"
+ }
+ },
+ "node_modules/diff-sequences": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/diffie-hellman": {
+ "version": "5.0.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "bn.js": "^4.1.0",
+ "miller-rabin": "^4.0.0",
+ "randombytes": "^2.0.0"
+ }
+ },
+ "node_modules/diffie-hellman/node_modules/bn.js": {
+ "version": "4.12.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/dns-equal": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/dns-packet": {
+ "version": "1.3.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ip": "^1.1.0",
+ "safe-buffer": "^5.0.1"
+ }
+ },
+ "node_modules/dns-txt": {
+ "version": "2.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "buffer-indexof": "^1.0.0"
+ }
+ },
+ "node_modules/doctrine": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "esutils": "^2.0.2"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/dom-converter": {
+ "version": "0.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "utila": "~0.4"
+ }
+ },
+ "node_modules/dom-serializer": {
+ "version": "0.2.2",
+ "license": "MIT",
+ "dependencies": {
+ "domelementtype": "^2.0.1",
+ "entities": "^2.0.0"
+ }
+ },
+ "node_modules/dom-serializer/node_modules/domelementtype": {
+ "version": "2.2.0",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/fb55"
+ }
+ ],
+ "license": "BSD-2-Clause"
+ },
+ "node_modules/dom-serializer/node_modules/entities": {
+ "version": "2.2.0",
+ "license": "BSD-2-Clause",
+ "funding": {
+ "url": "https://github.com/fb55/entities?sponsor=1"
+ }
+ },
+ "node_modules/domain-browser": {
+ "version": "1.2.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4",
+ "npm": ">=1.2"
+ }
+ },
+ "node_modules/domelementtype": {
+ "version": "1.3.1",
+ "license": "BSD-2-Clause"
+ },
+ "node_modules/domexception": {
+ "version": "2.0.1",
+ "license": "MIT",
+ "dependencies": {
+ "webidl-conversions": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/domexception/node_modules/webidl-conversions": {
+ "version": "5.0.0",
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/domhandler": {
+ "version": "2.4.2",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "domelementtype": "1"
+ }
+ },
+ "node_modules/domutils": {
+ "version": "1.7.0",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "dom-serializer": "0",
+ "domelementtype": "1"
+ }
+ },
+ "node_modules/dont-sniff-mimetype": {
+ "version": "1.1.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/dot-case": {
+ "version": "3.0.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "no-case": "^3.0.4",
+ "tslib": "^2.0.3"
+ }
+ },
+ "node_modules/dot-case/node_modules/lower-case": {
+ "version": "2.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.0.3"
+ }
+ },
+ "node_modules/dot-case/node_modules/no-case": {
+ "version": "3.0.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "lower-case": "^2.0.2",
+ "tslib": "^2.0.3"
+ }
+ },
+ "node_modules/dot-prop": {
+ "version": "4.2.1",
+ "license": "MIT",
+ "dependencies": {
+ "is-obj": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/duplex": {
+ "version": "1.0.0"
+ },
+ "node_modules/duplex-child-process": {
+ "version": "0.0.5",
+ "license": "MIT"
+ },
+ "node_modules/duplexer": {
+ "version": "0.0.4"
+ },
+ "node_modules/duplexer2": {
+ "version": "0.0.2",
+ "dev": true,
+ "license": "BSD",
+ "dependencies": {
+ "readable-stream": "~1.1.9"
+ }
+ },
+ "node_modules/duplexer3": {
+ "version": "0.1.4",
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/duplexify": {
+ "version": "3.7.1",
+ "license": "MIT",
+ "dependencies": {
+ "end-of-stream": "^1.0.0",
+ "inherits": "^2.0.1",
+ "readable-stream": "^2.0.0",
+ "stream-shift": "^1.0.0"
+ }
+ },
+ "node_modules/duplexify/node_modules/isarray": {
+ "version": "1.0.0",
+ "license": "MIT"
+ },
+ "node_modules/duplexify/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/duplexify/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/each-props": {
+ "version": "1.3.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-plain-object": "^2.0.1",
+ "object.defaults": "^1.1.0"
+ }
+ },
+ "node_modules/each-props/node_modules/is-plain-object": {
+ "version": "2.0.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "isobject": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/ecc-jsbn": {
+ "version": "0.1.2",
+ "license": "MIT",
+ "dependencies": {
+ "jsbn": "~0.1.0",
+ "safer-buffer": "^2.1.0"
+ }
+ },
+ "node_modules/ecdsa-sig-formatter": {
+ "version": "1.0.11",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "safe-buffer": "^5.0.1"
+ }
+ },
+ "node_modules/ee-first": {
+ "version": "1.1.1",
+ "license": "MIT"
+ },
+ "node_modules/ejs": {
+ "version": "2.7.4",
+ "hasInstallScript": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/electron-to-chromium": {
+ "version": "1.4.96",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/elliptic": {
+ "version": "6.5.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "bn.js": "^4.11.9",
+ "brorand": "^1.1.0",
+ "hash.js": "^1.0.0",
+ "hmac-drbg": "^1.0.1",
+ "inherits": "^2.0.4",
+ "minimalistic-assert": "^1.0.1",
+ "minimalistic-crypto-utils": "^1.0.1"
+ }
+ },
+ "node_modules/elliptic/node_modules/bn.js": {
+ "version": "4.12.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/emitter-listener": {
+ "version": "1.1.2",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "shimmer": "^1.2.0"
+ }
+ },
+ "node_modules/emittery": {
+ "version": "0.7.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sindresorhus/emittery?sponsor=1"
+ }
+ },
+ "node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "license": "MIT"
+ },
+ "node_modules/emojis-list": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/encodeurl": {
+ "version": "1.0.2",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/encoding-japanese": {
+ "version": "1.0.30",
+ "license": "MIT"
+ },
+ "node_modules/end-of-stream": {
+ "version": "1.4.4",
+ "license": "MIT",
+ "dependencies": {
+ "once": "^1.4.0"
+ }
+ },
+ "node_modules/enhanced-resolve": {
+ "version": "4.5.0",
+ "dev": true,
+ "dependencies": {
+ "graceful-fs": "^4.1.2",
+ "memory-fs": "^0.5.0",
+ "tapable": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/enhanced-resolve/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/enhanced-resolve/node_modules/memory-fs": {
+ "version": "0.5.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "errno": "^0.1.3",
+ "readable-stream": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=4.3.0 <5.0.0 || >=5.10"
+ }
+ },
+ "node_modules/enhanced-resolve/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/enhanced-resolve/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/enquirer": {
+ "version": "2.3.6",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-colors": "^4.1.1"
+ },
+ "engines": {
+ "node": ">=8.6"
+ }
+ },
+ "node_modules/ent": {
+ "version": "2.2.0",
+ "license": "MIT"
+ },
+ "node_modules/entities": {
+ "version": "1.1.2",
+ "license": "BSD-2-Clause"
+ },
+ "node_modules/errno": {
+ "version": "0.1.8",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prr": "~1.0.1"
+ },
+ "bin": {
+ "errno": "cli.js"
+ }
+ },
+ "node_modules/error-ex": {
+ "version": "1.3.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-arrayish": "^0.2.1"
+ }
+ },
+ "node_modules/error-ex/node_modules/is-arrayish": {
+ "version": "0.2.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/errs": {
+ "version": "0.3.2",
+ "engines": {
+ "node": ">= 0.4.0"
+ }
+ },
+ "node_modules/es-abstract": {
+ "version": "1.19.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.2",
+ "es-to-primitive": "^1.2.1",
+ "function-bind": "^1.1.1",
+ "get-intrinsic": "^1.1.1",
+ "get-symbol-description": "^1.0.0",
+ "has": "^1.0.3",
+ "has-symbols": "^1.0.3",
+ "internal-slot": "^1.0.3",
+ "is-callable": "^1.2.4",
+ "is-negative-zero": "^2.0.2",
+ "is-regex": "^1.1.4",
+ "is-shared-array-buffer": "^1.0.1",
+ "is-string": "^1.0.7",
+ "is-weakref": "^1.0.2",
+ "object-inspect": "^1.12.0",
+ "object-keys": "^1.1.1",
+ "object.assign": "^4.1.2",
+ "string.prototype.trimend": "^1.0.4",
+ "string.prototype.trimstart": "^1.0.4",
+ "unbox-primitive": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/es-to-primitive": {
+ "version": "1.2.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-callable": "^1.1.4",
+ "is-date-object": "^1.0.1",
+ "is-symbol": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/es5-ext": {
+ "version": "0.10.59",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "ISC",
+ "dependencies": {
+ "es6-iterator": "^2.0.3",
+ "es6-symbol": "^3.1.3",
+ "next-tick": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/es6-iterator": {
+ "version": "2.0.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "d": "1",
+ "es5-ext": "^0.10.35",
+ "es6-symbol": "^3.1.1"
+ }
+ },
+ "node_modules/es6-promise": {
+ "version": "4.2.8",
+ "license": "MIT"
+ },
+ "node_modules/es6-promisify": {
+ "version": "5.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "es6-promise": "^4.0.3"
+ }
+ },
+ "node_modules/es6-symbol": {
+ "version": "3.1.3",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "d": "^1.0.1",
+ "ext": "^1.1.2"
+ }
+ },
+ "node_modules/es6-templates": {
+ "version": "0.2.3",
+ "dev": true,
+ "license": "Apache 2",
+ "dependencies": {
+ "recast": "~0.11.12",
+ "through": "~2.3.6"
+ }
+ },
+ "node_modules/es6-weak-map": {
+ "version": "2.0.3",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "d": "1",
+ "es5-ext": "^0.10.46",
+ "es6-iterator": "^2.0.3",
+ "es6-symbol": "^3.1.1"
+ }
+ },
+ "node_modules/escalade": {
+ "version": "3.1.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/escape-goat": {
+ "version": "2.1.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/escape-html": {
+ "version": "1.0.3",
+ "license": "MIT"
+ },
+ "node_modules/escape-string-regexp": {
+ "version": "2.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/escodegen": {
+ "version": "2.0.0",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "esprima": "^4.0.1",
+ "estraverse": "^5.2.0",
+ "esutils": "^2.0.2",
+ "optionator": "^0.8.1"
+ },
+ "bin": {
+ "escodegen": "bin/escodegen.js",
+ "esgenerate": "bin/esgenerate.js"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "optionalDependencies": {
+ "source-map": "~0.6.1"
+ }
+ },
+ "node_modules/escodegen/node_modules/estraverse": {
+ "version": "5.3.0",
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/escodegen/node_modules/levn": {
+ "version": "0.3.0",
+ "license": "MIT",
+ "dependencies": {
+ "prelude-ls": "~1.1.2",
+ "type-check": "~0.3.2"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/escodegen/node_modules/optionator": {
+ "version": "0.8.3",
+ "license": "MIT",
+ "dependencies": {
+ "deep-is": "~0.1.3",
+ "fast-levenshtein": "~2.0.6",
+ "levn": "~0.3.0",
+ "prelude-ls": "~1.1.2",
+ "type-check": "~0.3.2",
+ "word-wrap": "~1.2.3"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/escodegen/node_modules/prelude-ls": {
+ "version": "1.1.2",
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/escodegen/node_modules/source-map": {
+ "version": "0.6.1",
+ "license": "BSD-3-Clause",
+ "optional": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/escodegen/node_modules/type-check": {
+ "version": "0.3.2",
+ "license": "MIT",
+ "dependencies": {
+ "prelude-ls": "~1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/eslint": {
+ "version": "7.32.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "7.12.11",
+ "@eslint/eslintrc": "^0.4.3",
+ "@humanwhocodes/config-array": "^0.5.0",
+ "ajv": "^6.10.0",
+ "chalk": "^4.0.0",
+ "cross-spawn": "^7.0.2",
+ "debug": "^4.0.1",
+ "doctrine": "^3.0.0",
+ "enquirer": "^2.3.5",
+ "escape-string-regexp": "^4.0.0",
+ "eslint-scope": "^5.1.1",
+ "eslint-utils": "^2.1.0",
+ "eslint-visitor-keys": "^2.0.0",
+ "espree": "^7.3.1",
+ "esquery": "^1.4.0",
+ "esutils": "^2.0.2",
+ "fast-deep-equal": "^3.1.3",
+ "file-entry-cache": "^6.0.1",
+ "functional-red-black-tree": "^1.0.1",
+ "glob-parent": "^5.1.2",
+ "globals": "^13.6.0",
+ "ignore": "^4.0.6",
+ "import-fresh": "^3.0.0",
+ "imurmurhash": "^0.1.4",
+ "is-glob": "^4.0.0",
+ "js-yaml": "^3.13.1",
+ "json-stable-stringify-without-jsonify": "^1.0.1",
+ "levn": "^0.4.1",
+ "lodash.merge": "^4.6.2",
+ "minimatch": "^3.0.4",
+ "natural-compare": "^1.4.0",
+ "optionator": "^0.9.1",
+ "progress": "^2.0.0",
+ "regexpp": "^3.1.0",
+ "semver": "^7.2.1",
+ "strip-ansi": "^6.0.0",
+ "strip-json-comments": "^3.1.0",
+ "table": "^6.0.9",
+ "text-table": "^0.2.0",
+ "v8-compile-cache": "^2.0.3"
+ },
+ "bin": {
+ "eslint": "bin/eslint.js"
+ },
+ "engines": {
+ "node": "^10.12.0 || >=12.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/eslint-config-google": {
+ "version": "0.11.0",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "peerDependencies": {
+ "eslint": ">=5.4.0"
+ }
+ },
+ "node_modules/eslint-plugin-jasmine": {
+ "version": "2.10.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4",
+ "npm": ">=2"
+ }
+ },
+ "node_modules/eslint-scope": {
+ "version": "5.1.1",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "esrecurse": "^4.3.0",
+ "estraverse": "^4.1.1"
+ },
+ "engines": {
+ "node": ">=8.0.0"
+ }
+ },
+ "node_modules/eslint-utils": {
+ "version": "2.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "eslint-visitor-keys": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/mysticatea"
+ }
+ },
+ "node_modules/eslint-utils/node_modules/eslint-visitor-keys": {
+ "version": "1.3.0",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/eslint-visitor-keys": {
+ "version": "2.1.0",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/eslint/node_modules/@babel/code-frame": {
+ "version": "7.12.11",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/highlight": "^7.10.4"
+ }
+ },
+ "node_modules/eslint/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/eslint/node_modules/debug": {
+ "version": "4.3.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/eslint/node_modules/escape-string-regexp": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/eslint/node_modules/globals": {
+ "version": "13.13.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "type-fest": "^0.20.2"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/eslint/node_modules/js-yaml": {
+ "version": "3.14.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/eslint/node_modules/lru-cache": {
+ "version": "6.0.0",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/eslint/node_modules/ms": {
+ "version": "2.1.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/eslint/node_modules/semver": {
+ "version": "7.3.5",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "lru-cache": "^6.0.0"
+ },
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/eslint/node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/eslint/node_modules/strip-json-comments": {
+ "version": "3.1.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/eslint/node_modules/type-fest": {
+ "version": "0.20.2",
+ "dev": true,
+ "license": "(MIT OR CC0-1.0)",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/eslint/node_modules/yallist": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/espree": {
+ "version": "7.3.1",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "acorn": "^7.4.0",
+ "acorn-jsx": "^5.3.1",
+ "eslint-visitor-keys": "^1.3.0"
+ },
+ "engines": {
+ "node": "^10.12.0 || >=12.0.0"
+ }
+ },
+ "node_modules/espree/node_modules/eslint-visitor-keys": {
+ "version": "1.3.0",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/esprima": {
+ "version": "4.0.1",
+ "license": "BSD-2-Clause",
+ "bin": {
+ "esparse": "bin/esparse.js",
+ "esvalidate": "bin/esvalidate.js"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/esquery": {
+ "version": "1.4.0",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "estraverse": "^5.1.0"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/esquery/node_modules/estraverse": {
+ "version": "5.3.0",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/esrecurse": {
+ "version": "4.3.0",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/esrecurse/node_modules/estraverse": {
+ "version": "5.3.0",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/estraverse": {
+ "version": "4.3.0",
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/esutils": {
+ "version": "2.0.3",
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/etag": {
+ "version": "1.8.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/event-target-shim": {
+ "version": "5.0.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/eventemitter2": {
+ "version": "5.0.1",
+ "license": "MIT"
+ },
+ "node_modules/eventemitter3": {
+ "version": "4.0.7",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/events": {
+ "version": "1.1.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4.x"
+ }
+ },
+ "node_modules/eventsource": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "original": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.12.0"
+ }
+ },
+ "node_modules/evp_bytestokey": {
+ "version": "1.0.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "md5.js": "^1.3.4",
+ "safe-buffer": "^5.1.1"
+ }
+ },
+ "node_modules/exec-sh": {
+ "version": "0.3.6",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/execa": {
+ "version": "4.1.0",
+ "license": "MIT",
+ "dependencies": {
+ "cross-spawn": "^7.0.0",
+ "get-stream": "^5.0.0",
+ "human-signals": "^1.1.1",
+ "is-stream": "^2.0.0",
+ "merge-stream": "^2.0.0",
+ "npm-run-path": "^4.0.0",
+ "onetime": "^5.1.0",
+ "signal-exit": "^3.0.2",
+ "strip-final-newline": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sindresorhus/execa?sponsor=1"
+ }
+ },
+ "node_modules/execa/node_modules/merge-stream": {
+ "version": "2.0.0",
+ "license": "MIT"
+ },
+ "node_modules/exit": {
+ "version": "0.1.2",
+ "dev": true,
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/expand-brackets": {
+ "version": "2.1.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^2.3.3",
+ "define-property": "^0.2.5",
+ "extend-shallow": "^2.0.1",
+ "posix-character-classes": "^0.1.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/expand-brackets/node_modules/define-property": {
+ "version": "0.2.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-descriptor": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/expand-brackets/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/expand-template": {
+ "version": "2.0.3",
+ "license": "(MIT OR WTFPL)",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/expand-tilde": {
+ "version": "2.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "homedir-polyfill": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/expect": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/types": "^26.6.2",
+ "ansi-styles": "^4.0.0",
+ "jest-get-type": "^26.3.0",
+ "jest-matcher-utils": "^26.6.2",
+ "jest-message-util": "^26.6.2",
+ "jest-regex-util": "^26.0.0"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/express": {
+ "version": "4.17.3",
+ "license": "MIT",
+ "dependencies": {
+ "accepts": "~1.3.8",
+ "array-flatten": "1.1.1",
+ "body-parser": "1.19.2",
+ "content-disposition": "0.5.4",
+ "content-type": "~1.0.4",
+ "cookie": "0.4.2",
+ "cookie-signature": "1.0.6",
+ "debug": "2.6.9",
+ "depd": "~1.1.2",
+ "encodeurl": "~1.0.2",
+ "escape-html": "~1.0.3",
+ "etag": "~1.8.1",
+ "finalhandler": "~1.1.2",
+ "fresh": "0.5.2",
+ "merge-descriptors": "1.0.1",
+ "methods": "~1.1.2",
+ "on-finished": "~2.3.0",
+ "parseurl": "~1.3.3",
+ "path-to-regexp": "0.1.7",
+ "proxy-addr": "~2.0.7",
+ "qs": "6.9.7",
+ "range-parser": "~1.2.1",
+ "safe-buffer": "5.2.1",
+ "send": "0.17.2",
+ "serve-static": "1.14.2",
+ "setprototypeof": "1.2.0",
+ "statuses": "~1.5.0",
+ "type-is": "~1.6.18",
+ "utils-merge": "1.0.1",
+ "vary": "~1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.10.0"
+ }
+ },
+ "node_modules/express/node_modules/depd": {
+ "version": "1.1.2",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/express/node_modules/safe-buffer": {
+ "version": "5.2.1",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/ext": {
+ "version": "1.6.0",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "type": "^2.5.0"
+ }
+ },
+ "node_modules/ext/node_modules/type": {
+ "version": "2.6.0",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/extend": {
+ "version": "3.0.2",
+ "license": "MIT"
+ },
+ "node_modules/extend-shallow": {
+ "version": "3.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "assign-symbols": "^1.0.0",
+ "is-extendable": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/extend-shallow/node_modules/is-extendable": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-plain-object": "^2.0.4"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/extend-shallow/node_modules/is-plain-object": {
+ "version": "2.0.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "isobject": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/extglob": {
+ "version": "2.0.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "array-unique": "^0.3.2",
+ "define-property": "^1.0.0",
+ "expand-brackets": "^2.1.4",
+ "extend-shallow": "^2.0.1",
+ "fragment-cache": "^0.2.1",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/extglob/node_modules/define-property": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-descriptor": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/extglob/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/extglob/node_modules/is-accessor-descriptor": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kind-of": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/extglob/node_modules/is-data-descriptor": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kind-of": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/extglob/node_modules/is-descriptor": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-accessor-descriptor": "^1.0.0",
+ "is-data-descriptor": "^1.0.0",
+ "kind-of": "^6.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/extract-zip": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz",
+ "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==",
+ "dependencies": {
+ "debug": "^4.1.1",
+ "get-stream": "^5.1.0",
+ "yauzl": "^2.10.0"
+ },
+ "bin": {
+ "extract-zip": "cli.js"
+ },
+ "engines": {
+ "node": ">= 10.17.0"
+ },
+ "optionalDependencies": {
+ "@types/yauzl": "^2.9.1"
+ }
+ },
+ "node_modules/extract-zip/node_modules/debug": {
+ "version": "4.3.4",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
+ "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/extract-zip/node_modules/ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
+ },
+ "node_modules/extsprintf": {
+ "version": "1.4.1",
+ "engines": [
+ "node >=0.6.0"
+ ],
+ "license": "MIT"
+ },
+ "node_modules/eyes": {
+ "version": "0.1.8",
+ "engines": {
+ "node": "> 0.1.90"
+ }
+ },
+ "node_modules/fancy-log": {
+ "version": "1.3.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-gray": "^0.1.1",
+ "color-support": "^1.1.3",
+ "parse-node-version": "^1.0.0",
+ "time-stamp": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "license": "MIT"
+ },
+ "node_modules/fast-json-patch": {
+ "version": "2.2.1",
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4.0"
+ }
+ },
+ "node_modules/fast-json-patch/node_modules/fast-deep-equal": {
+ "version": "2.0.1",
+ "license": "MIT"
+ },
+ "node_modules/fast-json-stable-stringify": {
+ "version": "2.1.0",
+ "license": "MIT"
+ },
+ "node_modules/fast-levenshtein": {
+ "version": "2.0.6",
+ "license": "MIT"
+ },
+ "node_modules/fast-safe-stringify": {
+ "version": "2.1.1",
+ "license": "MIT"
+ },
+ "node_modules/fast-text-encoding": {
+ "version": "1.0.3",
+ "license": "Apache-2.0"
+ },
+ "node_modules/fastparse": {
+ "version": "1.1.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/faye-websocket": {
+ "version": "0.11.4",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "websocket-driver": ">=0.5.1"
+ },
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/fb-watchman": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "bser": "2.1.1"
+ }
+ },
+ "node_modules/fd-slicer": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",
+ "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==",
+ "dependencies": {
+ "pend": "~1.2.0"
+ }
+ },
+ "node_modules/feature-policy": {
+ "version": "0.3.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/figgy-pudding": {
+ "version": "3.5.2",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/file-entry-cache": {
+ "version": "6.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "flat-cache": "^3.0.4"
+ },
+ "engines": {
+ "node": "^10.12.0 || >=12.0.0"
+ }
+ },
+ "node_modules/file-loader": {
+ "version": "1.1.11",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "loader-utils": "^1.0.2",
+ "schema-utils": "^0.4.5"
+ },
+ "engines": {
+ "node": ">= 4.3 < 5.0.0 || >= 5.10"
+ },
+ "peerDependencies": {
+ "webpack": "^2.0.0 || ^3.0.0 || ^4.0.0"
+ }
+ },
+ "node_modules/file-loader/node_modules/json5": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "minimist": "^1.2.0"
+ },
+ "bin": {
+ "json5": "lib/cli.js"
+ }
+ },
+ "node_modules/file-loader/node_modules/loader-utils": {
+ "version": "1.4.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "big.js": "^5.2.2",
+ "emojis-list": "^3.0.0",
+ "json5": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/file-loader/node_modules/schema-utils": {
+ "version": "0.4.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ajv": "^6.1.0",
+ "ajv-keywords": "^3.1.0"
+ },
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/file-type": {
+ "version": "10.11.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/filed-mimefix": {
+ "version": "0.1.3",
+ "license": "ASL 2.0",
+ "dependencies": {
+ "mime": "^1.4.0"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/filelist": {
+ "version": "1.0.2",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "minimatch": "^3.0.4"
+ }
+ },
+ "node_modules/fill-range": {
+ "version": "7.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "to-regex-range": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/finalhandler": {
+ "version": "1.1.2",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "2.6.9",
+ "encodeurl": "~1.0.2",
+ "escape-html": "~1.0.3",
+ "on-finished": "~2.3.0",
+ "parseurl": "~1.3.3",
+ "statuses": "~1.5.0",
+ "unpipe": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/find-cache-dir": {
+ "version": "2.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "commondir": "^1.0.1",
+ "make-dir": "^2.0.0",
+ "pkg-dir": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/find-cache-dir/node_modules/find-up": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "locate-path": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/find-cache-dir/node_modules/locate-path": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-locate": "^3.0.0",
+ "path-exists": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/find-cache-dir/node_modules/make-dir": {
+ "version": "2.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "pify": "^4.0.1",
+ "semver": "^5.6.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/find-cache-dir/node_modules/p-locate": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-limit": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/find-cache-dir/node_modules/path-exists": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/find-cache-dir/node_modules/pkg-dir": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "find-up": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/find-cache-dir/node_modules/semver": {
+ "version": "5.7.1",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver"
+ }
+ },
+ "node_modules/find-up": {
+ "version": "4.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "locate-path": "^5.0.0",
+ "path-exists": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/findup-sync": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "detect-file": "^1.0.0",
+ "is-glob": "^4.0.0",
+ "micromatch": "^3.0.4",
+ "resolve-dir": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/findup-sync/node_modules/braces": {
+ "version": "2.3.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "arr-flatten": "^1.1.0",
+ "array-unique": "^0.3.2",
+ "extend-shallow": "^2.0.1",
+ "fill-range": "^4.0.0",
+ "isobject": "^3.0.1",
+ "repeat-element": "^1.1.2",
+ "snapdragon": "^0.8.1",
+ "snapdragon-node": "^2.0.1",
+ "split-string": "^3.0.2",
+ "to-regex": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/findup-sync/node_modules/braces/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/findup-sync/node_modules/fill-range": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "extend-shallow": "^2.0.1",
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1",
+ "to-regex-range": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/findup-sync/node_modules/fill-range/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/findup-sync/node_modules/is-number": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kind-of": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/findup-sync/node_modules/is-number/node_modules/kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-buffer": "^1.1.5"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/findup-sync/node_modules/micromatch": {
+ "version": "3.1.10",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "arr-diff": "^4.0.0",
+ "array-unique": "^0.3.2",
+ "braces": "^2.3.1",
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "extglob": "^2.0.4",
+ "fragment-cache": "^0.2.1",
+ "kind-of": "^6.0.2",
+ "nanomatch": "^1.2.9",
+ "object.pick": "^1.3.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/findup-sync/node_modules/to-regex-range": {
+ "version": "2.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/fined": {
+ "version": "1.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "expand-tilde": "^2.0.2",
+ "is-plain-object": "^2.0.3",
+ "object.defaults": "^1.1.0",
+ "object.pick": "^1.2.0",
+ "parse-filepath": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/fined/node_modules/is-plain-object": {
+ "version": "2.0.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "isobject": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/flagged-respawn": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/flat-cache": {
+ "version": "3.0.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "flatted": "^3.1.0",
+ "rimraf": "^3.0.2"
+ },
+ "engines": {
+ "node": "^10.12.0 || >=12.0.0"
+ }
+ },
+ "node_modules/flatted": {
+ "version": "3.2.7",
+ "license": "ISC"
+ },
+ "node_modules/flush-write-stream": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "inherits": "^2.0.3",
+ "readable-stream": "^2.3.6"
+ }
+ },
+ "node_modules/flush-write-stream/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/flush-write-stream/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/flush-write-stream/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/follow-redirects": {
+ "version": "1.14.9",
+ "funding": [
+ {
+ "type": "individual",
+ "url": "https://github.com/sponsors/RubenVerborgh"
+ }
+ ],
+ "license": "MIT",
+ "engines": {
+ "node": ">=4.0"
+ },
+ "peerDependenciesMeta": {
+ "debug": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/for-in": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/for-own": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "for-in": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/forever-agent": {
+ "version": "0.6.1",
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/form-data": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
+ "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
+ "dependencies": {
+ "asynckit": "^0.4.0",
+ "combined-stream": "^1.0.8",
+ "mime-types": "^2.1.12"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/form-data-encoder": {
+ "version": "1.7.2",
+ "license": "MIT"
+ },
+ "node_modules/formdata-node": {
+ "version": "4.3.2",
+ "license": "MIT",
+ "dependencies": {
+ "node-domexception": "1.0.0",
+ "web-streams-polyfill": "4.0.0-beta.1"
+ },
+ "engines": {
+ "node": ">= 12.20"
+ }
+ },
+ "node_modules/formidable": {
+ "version": "1.2.6",
+ "license": "MIT",
+ "funding": {
+ "url": "https://ko-fi.com/tunnckoCore/commissions"
+ }
+ },
+ "node_modules/forwarded": {
+ "version": "0.2.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/fragment-cache": {
+ "version": "0.2.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "map-cache": "^0.2.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/fresh": {
+ "version": "0.5.2",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/from2": {
+ "version": "2.3.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "inherits": "^2.0.1",
+ "readable-stream": "^2.0.0"
+ }
+ },
+ "node_modules/from2/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/from2/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/from2/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/fs-constants": {
+ "version": "1.0.0",
+ "license": "MIT"
+ },
+ "node_modules/fs-extra": {
+ "version": "5.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.1.2",
+ "jsonfile": "^4.0.0",
+ "universalify": "^0.1.0"
+ }
+ },
+ "node_modules/fs-minipass": {
+ "version": "2.1.0",
+ "license": "ISC",
+ "dependencies": {
+ "minipass": "^3.0.0"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/fs-mkdirp-stream": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.1.11",
+ "through2": "^2.0.3"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/fs-mkdirp-stream/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fs-mkdirp-stream/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/fs-mkdirp-stream/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/fs-mkdirp-stream/node_modules/through2": {
+ "version": "2.0.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "node_modules/fs-mkdirp-stream/node_modules/xtend": {
+ "version": "4.0.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4"
+ }
+ },
+ "node_modules/fs-readfile-promise": {
+ "version": "3.0.1",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "graceful-fs": "^4.1.11"
+ }
+ },
+ "node_modules/fs-write-stream-atomic": {
+ "version": "1.0.10",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "graceful-fs": "^4.1.2",
+ "iferr": "^0.1.5",
+ "imurmurhash": "^0.1.4",
+ "readable-stream": "1 || 2"
+ }
+ },
+ "node_modules/fs.realpath": {
+ "version": "1.0.0",
+ "license": "ISC"
+ },
+ "node_modules/fstream": {
+ "version": "1.0.12",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "graceful-fs": "^4.1.2",
+ "inherits": "~2.0.0",
+ "mkdirp": ">=0.5 0",
+ "rimraf": "2"
+ },
+ "engines": {
+ "node": ">=0.6"
+ }
+ },
+ "node_modules/fstream/node_modules/rimraf": {
+ "version": "2.7.1",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "glob": "^7.1.3"
+ },
+ "bin": {
+ "rimraf": "bin.js"
+ }
+ },
+ "node_modules/ftps": {
+ "version": "1.2.0",
+ "license": "MIT",
+ "dependencies": {
+ "duplex-child-process": "0.0.5",
+ "lodash": "^4.4.0"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/function-bind": {
+ "version": "1.1.1",
+ "license": "MIT"
+ },
+ "node_modules/functional-red-black-tree": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/g11n-pipeline": {
+ "version": "2.0.6",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "swagger-client": "^3.8.3"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/gauge": {
+ "version": "2.7.4",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "aproba": "^1.0.3",
+ "console-control-strings": "^1.0.0",
+ "has-unicode": "^2.0.0",
+ "object-assign": "^4.1.0",
+ "signal-exit": "^3.0.0",
+ "string-width": "^1.0.1",
+ "strip-ansi": "^3.0.1",
+ "wide-align": "^1.1.0"
+ }
+ },
+ "node_modules/gaxios": {
+ "version": "1.8.4",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "abort-controller": "^3.0.0",
+ "extend": "^3.0.2",
+ "https-proxy-agent": "^2.2.1",
+ "node-fetch": "^2.3.0"
+ }
+ },
+ "node_modules/gaze": {
+ "version": "1.1.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "globule": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 4.0.0"
+ }
+ },
+ "node_modules/gcp-metadata": {
+ "version": "1.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "gaxios": "^1.0.2",
+ "json-bigint": "^0.3.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/gcs-resumable-upload": {
+ "version": "1.1.0",
+ "license": "MIT",
+ "dependencies": {
+ "abort-controller": "^2.0.2",
+ "configstore": "^4.0.0",
+ "gaxios": "^1.5.0",
+ "google-auth-library": "^3.0.0",
+ "pumpify": "^1.5.1",
+ "stream-events": "^1.0.4"
+ },
+ "bin": {
+ "gcs-upload": "build/src/cli.js"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/gcs-resumable-upload/node_modules/abort-controller": {
+ "version": "2.0.3",
+ "license": "MIT",
+ "dependencies": {
+ "event-target-shim": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=6.5"
+ }
+ },
+ "node_modules/generate-function": {
+ "version": "2.3.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-property": "^1.0.2"
+ }
+ },
+ "node_modules/gensync": {
+ "version": "1.0.0-beta.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/get-caller-file": {
+ "version": "2.0.5",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": "6.* || 8.* || >= 10.*"
+ }
+ },
+ "node_modules/get-intrinsic": {
+ "version": "1.1.1",
+ "license": "MIT",
+ "dependencies": {
+ "function-bind": "^1.1.1",
+ "has": "^1.0.3",
+ "has-symbols": "^1.0.1"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/get-package-type": {
+ "version": "0.1.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8.0.0"
+ }
+ },
+ "node_modules/get-stdin": {
+ "version": "4.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/get-stream": {
+ "version": "5.2.0",
+ "license": "MIT",
+ "dependencies": {
+ "pump": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/get-symbol-description": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.2",
+ "get-intrinsic": "^1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/get-value": {
+ "version": "2.0.6",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/getpass": {
+ "version": "0.1.7",
+ "license": "MIT",
+ "dependencies": {
+ "assert-plus": "^1.0.0"
+ }
+ },
+ "node_modules/github-from-package": {
+ "version": "0.0.0",
+ "license": "MIT"
+ },
+ "node_modules/glob": {
+ "version": "7.2.0",
+ "license": "ISC",
+ "dependencies": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.0.4",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ },
+ "engines": {
+ "node": "*"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/glob-parent": {
+ "version": "5.1.2",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/glob-stream": {
+ "version": "6.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "extend": "^3.0.0",
+ "glob": "^7.1.1",
+ "glob-parent": "^3.1.0",
+ "is-negated-glob": "^1.0.0",
+ "ordered-read-streams": "^1.0.0",
+ "pumpify": "^1.3.5",
+ "readable-stream": "^2.1.5",
+ "remove-trailing-separator": "^1.0.1",
+ "to-absolute-glob": "^2.0.0",
+ "unique-stream": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/glob-stream/node_modules/glob-parent": {
+ "version": "3.1.0",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^3.1.0",
+ "path-dirname": "^1.0.0"
+ }
+ },
+ "node_modules/glob-stream/node_modules/is-glob": {
+ "version": "3.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extglob": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/glob-stream/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/glob-stream/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/glob-stream/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/glob-watcher": {
+ "version": "5.0.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "anymatch": "^2.0.0",
+ "async-done": "^1.2.0",
+ "chokidar": "^2.0.0",
+ "is-negated-glob": "^1.0.0",
+ "just-debounce": "^1.0.0",
+ "normalize-path": "^3.0.0",
+ "object.defaults": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/anymatch": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "micromatch": "^3.1.4",
+ "normalize-path": "^2.1.1"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/anymatch/node_modules/normalize-path": {
+ "version": "2.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "remove-trailing-separator": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/braces": {
+ "version": "2.3.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "arr-flatten": "^1.1.0",
+ "array-unique": "^0.3.2",
+ "extend-shallow": "^2.0.1",
+ "fill-range": "^4.0.0",
+ "isobject": "^3.0.1",
+ "repeat-element": "^1.1.2",
+ "snapdragon": "^0.8.1",
+ "snapdragon-node": "^2.0.1",
+ "split-string": "^3.0.2",
+ "to-regex": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/braces/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/fill-range": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "extend-shallow": "^2.0.1",
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1",
+ "to-regex-range": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/fill-range/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/is-number": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kind-of": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/is-number/node_modules/kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-buffer": "^1.1.5"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/micromatch": {
+ "version": "3.1.10",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "arr-diff": "^4.0.0",
+ "array-unique": "^0.3.2",
+ "braces": "^2.3.1",
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "extglob": "^2.0.4",
+ "fragment-cache": "^0.2.1",
+ "kind-of": "^6.0.2",
+ "nanomatch": "^1.2.9",
+ "object.pick": "^1.3.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/glob-watcher/node_modules/to-regex-range": {
+ "version": "2.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/global-dirs": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ini": "2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/global-dirs/node_modules/ini": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/global-modules": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "global-prefix": "^1.0.1",
+ "is-windows": "^1.0.1",
+ "resolve-dir": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/global-prefix": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "expand-tilde": "^2.0.2",
+ "homedir-polyfill": "^1.0.1",
+ "ini": "^1.3.4",
+ "is-windows": "^1.0.1",
+ "which": "^1.2.14"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/global-prefix/node_modules/which": {
+ "version": "1.3.1",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "which": "bin/which"
+ }
+ },
+ "node_modules/globalize": {
+ "version": "1.7.0",
+ "license": "MIT",
+ "dependencies": {
+ "cldrjs": "^0.5.4"
+ }
+ },
+ "node_modules/globals": {
+ "version": "11.12.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/globby": {
+ "version": "5.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "array-union": "^1.0.1",
+ "arrify": "^1.0.0",
+ "glob": "^7.0.3",
+ "object-assign": "^4.0.1",
+ "pify": "^2.0.0",
+ "pinkie-promise": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/globby/node_modules/pify": {
+ "version": "2.3.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/globule": {
+ "version": "1.3.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "glob": "~7.1.1",
+ "lodash": "~4.17.10",
+ "minimatch": "~3.0.2"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/globule/node_modules/glob": {
+ "version": "7.1.7",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.0.4",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ },
+ "engines": {
+ "node": "*"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/globule/node_modules/minimatch": {
+ "version": "3.0.8",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/glogg": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "sparkles": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/google-auth-library": {
+ "version": "3.1.2",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "base64-js": "^1.3.0",
+ "fast-text-encoding": "^1.0.0",
+ "gaxios": "^1.2.1",
+ "gcp-metadata": "^1.0.0",
+ "gtoken": "^2.3.2",
+ "https-proxy-agent": "^2.2.1",
+ "jws": "^3.1.5",
+ "lru-cache": "^5.0.0",
+ "semver": "^5.5.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/google-auth-library/node_modules/base64-js": {
+ "version": "1.5.1",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/google-auth-library/node_modules/semver": {
+ "version": "5.7.1",
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver"
+ }
+ },
+ "node_modules/google-p12-pem": {
+ "version": "1.0.5",
+ "license": "MIT",
+ "dependencies": {
+ "node-forge": "^0.10.0",
+ "pify": "^4.0.0"
+ },
+ "bin": {
+ "gp12-pem": "build/src/bin/gp12-pem.js"
+ }
+ },
+ "node_modules/got": {
+ "version": "10.7.0",
+ "license": "MIT",
+ "dependencies": {
+ "@sindresorhus/is": "^2.0.0",
+ "@szmarczak/http-timer": "^4.0.0",
+ "@types/cacheable-request": "^6.0.1",
+ "cacheable-lookup": "^2.0.0",
+ "cacheable-request": "^7.0.1",
+ "decompress-response": "^5.0.0",
+ "duplexer3": "^0.1.4",
+ "get-stream": "^5.0.0",
+ "lowercase-keys": "^2.0.0",
+ "mimic-response": "^2.1.0",
+ "p-cancelable": "^2.0.0",
+ "p-event": "^4.0.0",
+ "responselike": "^2.0.0",
+ "to-readable-stream": "^2.0.0",
+ "type-fest": "^0.10.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sindresorhus/got?sponsor=1"
+ }
+ },
+ "node_modules/graceful-fs": {
+ "version": "4.2.9",
+ "license": "ISC"
+ },
+ "node_modules/growl": {
+ "version": "1.9.2",
+ "license": "MIT"
+ },
+ "node_modules/growly": {
+ "version": "1.3.0",
+ "dev": true,
+ "license": "MIT",
+ "optional": true
+ },
+ "node_modules/gtoken": {
+ "version": "2.3.3",
+ "license": "MIT",
+ "dependencies": {
+ "gaxios": "^1.0.4",
+ "google-p12-pem": "^1.0.0",
+ "jws": "^3.1.5",
+ "mime": "^2.2.0",
+ "pify": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/gtoken/node_modules/mime": {
+ "version": "2.6.0",
+ "license": "MIT",
+ "bin": {
+ "mime": "cli.js"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/gulp": {
+ "version": "4.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "glob-watcher": "^5.0.3",
+ "gulp-cli": "^2.2.0",
+ "undertaker": "^1.2.1",
+ "vinyl-fs": "^3.0.0"
+ },
+ "bin": {
+ "gulp": "bin/gulp.js"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/gulp-concat": {
+ "version": "2.6.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "concat-with-sourcemaps": "^1.0.0",
+ "through2": "^2.0.0",
+ "vinyl": "^2.0.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/gulp-concat/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/gulp-concat/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/gulp-concat/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/gulp-concat/node_modules/through2": {
+ "version": "2.0.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "node_modules/gulp-concat/node_modules/xtend": {
+ "version": "4.0.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4"
+ }
+ },
+ "node_modules/gulp-env": {
+ "version": "0.4.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ini": "^1.3.4",
+ "through2": "^2.0.0"
+ }
+ },
+ "node_modules/gulp-env/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/gulp-env/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/gulp-env/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/gulp-env/node_modules/through2": {
+ "version": "2.0.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "node_modules/gulp-env/node_modules/xtend": {
+ "version": "4.0.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4"
+ }
+ },
+ "node_modules/gulp-file": {
+ "version": "0.4.0",
+ "dev": true,
+ "license": "BSD",
+ "dependencies": {
+ "through2": "^0.4.1",
+ "vinyl": "^2.1.0"
+ }
+ },
+ "node_modules/gulp-file/node_modules/object-keys": {
+ "version": "0.4.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/gulp-file/node_modules/readable-stream": {
+ "version": "1.0.34",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.1",
+ "isarray": "0.0.1",
+ "string_decoder": "~0.10.x"
+ }
+ },
+ "node_modules/gulp-file/node_modules/through2": {
+ "version": "0.4.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "readable-stream": "~1.0.17",
+ "xtend": "~2.1.1"
+ }
+ },
+ "node_modules/gulp-file/node_modules/xtend": {
+ "version": "2.1.2",
+ "dev": true,
+ "dependencies": {
+ "object-keys": "~0.4.0"
+ },
+ "engines": {
+ "node": ">=0.4"
+ }
+ },
+ "node_modules/gulp-install": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "dargs": "^5.1.0",
+ "gulp-util": "^3.0.7",
+ "lodash.groupby": "^4.6.0",
+ "p-queue": "^1.0.0",
+ "through2": "^2.0.3",
+ "which": "^1.2.14"
+ }
+ },
+ "node_modules/gulp-install/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/gulp-install/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/gulp-install/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/gulp-install/node_modules/through2": {
+ "version": "2.0.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "node_modules/gulp-install/node_modules/which": {
+ "version": "1.3.1",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "which": "bin/which"
+ }
+ },
+ "node_modules/gulp-install/node_modules/xtend": {
+ "version": "4.0.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4"
+ }
+ },
+ "node_modules/gulp-merge-json": {
+ "version": "1.3.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "deprecate": "^1.0.0",
+ "json5": "^1.0.1",
+ "lodash.mergewith": "^4.6.1",
+ "plugin-error": "^1.0.1",
+ "through": "^2.3.8",
+ "vinyl": "^2.1.0"
+ }
+ },
+ "node_modules/gulp-merge-json/node_modules/json5": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "minimist": "^1.2.0"
+ },
+ "bin": {
+ "json5": "lib/cli.js"
+ }
+ },
+ "node_modules/gulp-nodemon": {
+ "version": "2.5.0",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "colors": "^1.2.1",
+ "gulp": "^4.0.0",
+ "nodemon": "^2.0.2"
+ }
+ },
+ "node_modules/gulp-nodemon/node_modules/binary-extensions": {
+ "version": "2.2.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/gulp-nodemon/node_modules/chokidar": {
+ "version": "3.5.3",
+ "dev": true,
+ "funding": [
+ {
+ "type": "individual",
+ "url": "https://paulmillr.com/funding/"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "anymatch": "~3.1.2",
+ "braces": "~3.0.2",
+ "glob-parent": "~5.1.2",
+ "is-binary-path": "~2.1.0",
+ "is-glob": "~4.0.1",
+ "normalize-path": "~3.0.0",
+ "readdirp": "~3.6.0"
+ },
+ "engines": {
+ "node": ">= 8.10.0"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.2"
+ }
+ },
+ "node_modules/gulp-nodemon/node_modules/debug": {
+ "version": "3.2.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.1"
+ }
+ },
+ "node_modules/gulp-nodemon/node_modules/has-flag": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/gulp-nodemon/node_modules/is-binary-path": {
+ "version": "2.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "binary-extensions": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/gulp-nodemon/node_modules/ms": {
+ "version": "2.1.3",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/gulp-nodemon/node_modules/nodemon": {
+ "version": "2.0.15",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "dependencies": {
+ "chokidar": "^3.5.2",
+ "debug": "^3.2.7",
+ "ignore-by-default": "^1.0.1",
+ "minimatch": "^3.0.4",
+ "pstree.remy": "^1.1.8",
+ "semver": "^5.7.1",
+ "supports-color": "^5.5.0",
+ "touch": "^3.1.0",
+ "undefsafe": "^2.0.5",
+ "update-notifier": "^5.1.0"
+ },
+ "bin": {
+ "nodemon": "bin/nodemon.js"
+ },
+ "engines": {
+ "node": ">=8.10.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/nodemon"
+ }
+ },
+ "node_modules/gulp-nodemon/node_modules/readdirp": {
+ "version": "3.6.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "picomatch": "^2.2.1"
+ },
+ "engines": {
+ "node": ">=8.10.0"
+ }
+ },
+ "node_modules/gulp-nodemon/node_modules/semver": {
+ "version": "5.7.1",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver"
+ }
+ },
+ "node_modules/gulp-nodemon/node_modules/supports-color": {
+ "version": "5.5.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-flag": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/gulp-print": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "gulp-util": "^3.0.6",
+ "map-stream": "~0.0.6"
+ },
+ "engines": {
+ "node": ">=0.10.0",
+ "npm": ">=1.2.10"
+ }
+ },
+ "node_modules/gulp-util": {
+ "version": "3.0.8",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "array-differ": "^1.0.0",
+ "array-uniq": "^1.0.2",
+ "beeper": "^1.0.0",
+ "chalk": "^1.0.0",
+ "dateformat": "^2.0.0",
+ "fancy-log": "^1.1.0",
+ "gulplog": "^1.0.0",
+ "has-gulplog": "^0.1.0",
+ "lodash._reescape": "^3.0.0",
+ "lodash._reevaluate": "^3.0.0",
+ "lodash._reinterpolate": "^3.0.0",
+ "lodash.template": "^3.0.0",
+ "minimist": "^1.1.0",
+ "multipipe": "^0.1.2",
+ "object-assign": "^3.0.0",
+ "replace-ext": "0.0.1",
+ "through2": "^2.0.0",
+ "vinyl": "^0.5.0"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/gulp-util/node_modules/ansi-styles": {
+ "version": "2.2.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp-util/node_modules/chalk": {
+ "version": "1.1.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^2.2.1",
+ "escape-string-regexp": "^1.0.2",
+ "has-ansi": "^2.0.0",
+ "strip-ansi": "^3.0.0",
+ "supports-color": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp-util/node_modules/clone": {
+ "version": "1.0.4",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/gulp-util/node_modules/clone-stats": {
+ "version": "0.0.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/gulp-util/node_modules/escape-string-regexp": {
+ "version": "1.0.5",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/gulp-util/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/gulp-util/node_modules/lodash.template": {
+ "version": "3.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "lodash._basecopy": "^3.0.0",
+ "lodash._basetostring": "^3.0.0",
+ "lodash._basevalues": "^3.0.0",
+ "lodash._isiterateecall": "^3.0.0",
+ "lodash._reinterpolate": "^3.0.0",
+ "lodash.escape": "^3.0.0",
+ "lodash.keys": "^3.0.0",
+ "lodash.restparam": "^3.0.0",
+ "lodash.templatesettings": "^3.0.0"
+ }
+ },
+ "node_modules/gulp-util/node_modules/lodash.templatesettings": {
+ "version": "3.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "lodash._reinterpolate": "^3.0.0",
+ "lodash.escape": "^3.0.0"
+ }
+ },
+ "node_modules/gulp-util/node_modules/object-assign": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp-util/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/gulp-util/node_modules/replace-ext": {
+ "version": "0.0.1",
+ "dev": true,
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/gulp-util/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/gulp-util/node_modules/supports-color": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/gulp-util/node_modules/through2": {
+ "version": "2.0.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "node_modules/gulp-util/node_modules/vinyl": {
+ "version": "0.5.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "clone": "^1.0.0",
+ "clone-stats": "^0.0.1",
+ "replace-ext": "0.0.1"
+ },
+ "engines": {
+ "node": ">= 0.9"
+ }
+ },
+ "node_modules/gulp-util/node_modules/xtend": {
+ "version": "4.0.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4"
+ }
+ },
+ "node_modules/gulp-wrap": {
+ "version": "0.15.0",
+ "dev": true,
+ "dependencies": {
+ "consolidate": "^0.15.1",
+ "es6-promise": "^4.2.6",
+ "fs-readfile-promise": "^3.0.1",
+ "js-yaml": "^3.13.0",
+ "lodash": "^4.17.11",
+ "node.extend": "2.0.2",
+ "plugin-error": "^1.0.1",
+ "through2": "^3.0.1",
+ "tryit": "^1.0.1",
+ "vinyl-bufferstream": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=6.14",
+ "npm": ">=1.4.3"
+ }
+ },
+ "node_modules/gulp-wrap/node_modules/js-yaml": {
+ "version": "3.14.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/gulp-yaml": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "bufferstreams": "1.1.0",
+ "gulp-util": "^3.0.6",
+ "js-yaml": "^3.4.3",
+ "through2": "^2.0.0",
+ "xtend": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp-yaml/node_modules/bufferstreams": {
+ "version": "1.1.0",
+ "dev": true,
+ "dependencies": {
+ "readable-stream": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.10.0"
+ }
+ },
+ "node_modules/gulp-yaml/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/gulp-yaml/node_modules/js-yaml": {
+ "version": "3.14.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/gulp-yaml/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/gulp-yaml/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/gulp-yaml/node_modules/through2": {
+ "version": "2.0.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "node_modules/gulp-yaml/node_modules/xtend": {
+ "version": "4.0.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4"
+ }
+ },
+ "node_modules/gulp/node_modules/ansi-colors": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-wrap": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp/node_modules/camelcase": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp/node_modules/cliui": {
+ "version": "3.2.0",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "string-width": "^1.0.1",
+ "strip-ansi": "^3.0.1",
+ "wrap-ansi": "^2.0.0"
+ }
+ },
+ "node_modules/gulp/node_modules/concat-stream": {
+ "version": "1.6.2",
+ "dev": true,
+ "engines": [
+ "node >= 0.8"
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "buffer-from": "^1.0.0",
+ "inherits": "^2.0.3",
+ "readable-stream": "^2.2.2",
+ "typedarray": "^0.0.6"
+ }
+ },
+ "node_modules/gulp/node_modules/get-caller-file": {
+ "version": "1.0.3",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/gulp/node_modules/gulp-cli": {
+ "version": "2.3.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-colors": "^1.0.1",
+ "archy": "^1.0.0",
+ "array-sort": "^1.0.0",
+ "color-support": "^1.1.3",
+ "concat-stream": "^1.6.0",
+ "copy-props": "^2.0.1",
+ "fancy-log": "^1.3.2",
+ "gulplog": "^1.0.0",
+ "interpret": "^1.4.0",
+ "isobject": "^3.0.1",
+ "liftoff": "^3.1.0",
+ "matchdep": "^2.0.0",
+ "mute-stdout": "^1.0.0",
+ "pretty-hrtime": "^1.0.0",
+ "replace-homedir": "^1.0.0",
+ "semver-greatest-satisfied-range": "^1.1.0",
+ "v8flags": "^3.2.0",
+ "yargs": "^7.1.0"
+ },
+ "bin": {
+ "gulp": "bin/gulp.js"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/gulp/node_modules/invert-kv": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/gulp/node_modules/lcid": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "invert-kv": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp/node_modules/os-locale": {
+ "version": "1.4.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "lcid": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/gulp/node_modules/require-main-filename": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/gulp/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/gulp/node_modules/which-module": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/gulp/node_modules/wrap-ansi": {
+ "version": "2.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "string-width": "^1.0.1",
+ "strip-ansi": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/gulp/node_modules/y18n": {
+ "version": "3.2.2",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/gulp/node_modules/yargs": {
+ "version": "7.1.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "camelcase": "^3.0.0",
+ "cliui": "^3.2.0",
+ "decamelize": "^1.1.1",
+ "get-caller-file": "^1.0.1",
+ "os-locale": "^1.4.0",
+ "read-pkg-up": "^1.0.1",
+ "require-directory": "^2.1.1",
+ "require-main-filename": "^1.0.1",
+ "set-blocking": "^2.0.0",
+ "string-width": "^1.0.2",
+ "which-module": "^1.0.0",
+ "y18n": "^3.2.1",
+ "yargs-parser": "^5.0.1"
+ }
+ },
+ "node_modules/gulp/node_modules/yargs-parser": {
+ "version": "5.0.1",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "camelcase": "^3.0.0",
+ "object.assign": "^4.1.0"
+ }
+ },
+ "node_modules/gulplog": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "glogg": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/handle-thing": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/har-schema": {
+ "version": "2.0.0",
+ "license": "ISC",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/har-validator": {
+ "version": "5.1.5",
+ "license": "MIT",
+ "dependencies": {
+ "ajv": "^6.12.3",
+ "har-schema": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/harmony-reflect": {
+ "version": "1.6.2",
+ "dev": true,
+ "license": "(Apache-2.0 OR MPL-1.1)"
+ },
+ "node_modules/has": {
+ "version": "1.0.3",
+ "license": "MIT",
+ "dependencies": {
+ "function-bind": "^1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.4.0"
+ }
+ },
+ "node_modules/has-ansi": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/has-bigints": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-flag": {
+ "version": "4.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/has-gulplog": {
+ "version": "0.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "sparkles": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/has-symbols": {
+ "version": "1.0.3",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-tostringtag": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-symbols": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-unicode": {
+ "version": "2.0.1",
+ "license": "ISC"
+ },
+ "node_modules/has-value": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "get-value": "^2.0.6",
+ "has-values": "^1.0.0",
+ "isobject": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/has-values": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-number": "^3.0.0",
+ "kind-of": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/has-values/node_modules/is-number": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kind-of": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/has-values/node_modules/is-number/node_modules/kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-buffer": "^1.1.5"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/has-values/node_modules/kind-of": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-buffer": "^1.1.5"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/has-yarn": {
+ "version": "2.1.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/hash-base": {
+ "version": "3.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "inherits": "^2.0.4",
+ "readable-stream": "^3.6.0",
+ "safe-buffer": "^5.2.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/hash-base/node_modules/readable-stream": {
+ "version": "3.6.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/hash-base/node_modules/safe-buffer": {
+ "version": "5.2.1",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/hash-base/node_modules/string_decoder": {
+ "version": "1.3.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.2.0"
+ }
+ },
+ "node_modules/hash-stream-validation": {
+ "version": "0.2.4",
+ "license": "MIT"
+ },
+ "node_modules/hash.js": {
+ "version": "1.1.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "inherits": "^2.0.3",
+ "minimalistic-assert": "^1.0.1"
+ }
+ },
+ "node_modules/he": {
+ "version": "1.2.0",
+ "license": "MIT",
+ "bin": {
+ "he": "bin/he"
+ }
+ },
+ "node_modules/helmet": {
+ "version": "3.23.3",
+ "license": "MIT",
+ "dependencies": {
+ "depd": "2.0.0",
+ "dont-sniff-mimetype": "1.1.0",
+ "feature-policy": "0.3.0",
+ "helmet-crossdomain": "0.4.0",
+ "helmet-csp": "2.10.0",
+ "hide-powered-by": "1.1.0",
+ "hpkp": "2.0.0",
+ "hsts": "2.2.0",
+ "nocache": "2.1.0",
+ "referrer-policy": "1.2.0",
+ "x-xss-protection": "1.3.0"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/helmet-crossdomain": {
+ "version": "0.4.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/helmet-csp": {
+ "version": "2.10.0",
+ "license": "MIT",
+ "dependencies": {
+ "bowser": "2.9.0",
+ "camelize": "1.0.0",
+ "content-security-policy-builder": "2.1.0",
+ "dasherize": "2.0.0"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/hide-powered-by": {
+ "version": "1.1.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/hmac-drbg": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "hash.js": "^1.0.3",
+ "minimalistic-assert": "^1.0.0",
+ "minimalistic-crypto-utils": "^1.0.1"
+ }
+ },
+ "node_modules/homedir-polyfill": {
+ "version": "1.0.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "parse-passwd": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/hosted-git-info": {
+ "version": "2.8.9",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/hpack.js": {
+ "version": "2.1.6",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "inherits": "^2.0.1",
+ "obuf": "^1.0.0",
+ "readable-stream": "^2.0.1",
+ "wbuf": "^1.1.0"
+ }
+ },
+ "node_modules/hpack.js/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/hpack.js/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/hpack.js/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/hpkp": {
+ "version": "2.0.0",
+ "license": "MIT"
+ },
+ "node_modules/hsts": {
+ "version": "2.2.0",
+ "license": "MIT",
+ "dependencies": {
+ "depd": "2.0.0"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/html-encoding-sniffer": {
+ "version": "2.0.1",
+ "license": "MIT",
+ "dependencies": {
+ "whatwg-encoding": "^1.0.5"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/html-entities": {
+ "version": "1.4.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/html-escaper": {
+ "version": "2.0.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/html-loader": {
+ "version": "0.4.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es6-templates": "^0.2.2",
+ "fastparse": "^1.1.1",
+ "html-minifier": "^3.0.1",
+ "loader-utils": "^1.0.2",
+ "object-assign": "^4.1.0"
+ }
+ },
+ "node_modules/html-loader-jest": {
+ "version": "0.2.1",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "html-loader": "^0.5.1"
+ }
+ },
+ "node_modules/html-loader-jest/node_modules/html-loader": {
+ "version": "0.5.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es6-templates": "^0.2.3",
+ "fastparse": "^1.1.1",
+ "html-minifier": "^3.5.8",
+ "loader-utils": "^1.1.0",
+ "object-assign": "^4.1.1"
+ }
+ },
+ "node_modules/html-loader-jest/node_modules/json5": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "minimist": "^1.2.0"
+ },
+ "bin": {
+ "json5": "lib/cli.js"
+ }
+ },
+ "node_modules/html-loader-jest/node_modules/loader-utils": {
+ "version": "1.4.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "big.js": "^5.2.2",
+ "emojis-list": "^3.0.0",
+ "json5": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/html-loader/node_modules/json5": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "minimist": "^1.2.0"
+ },
+ "bin": {
+ "json5": "lib/cli.js"
+ }
+ },
+ "node_modules/html-loader/node_modules/loader-utils": {
+ "version": "1.4.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "big.js": "^5.2.2",
+ "emojis-list": "^3.0.0",
+ "json5": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/html-minifier": {
+ "version": "3.5.21",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "camel-case": "3.0.x",
+ "clean-css": "4.2.x",
+ "commander": "2.17.x",
+ "he": "1.2.x",
+ "param-case": "2.1.x",
+ "relateurl": "0.2.x",
+ "uglify-js": "3.4.x"
+ },
+ "bin": {
+ "html-minifier": "cli.js"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/html-minifier-terser": {
+ "version": "5.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "camel-case": "^4.1.1",
+ "clean-css": "^4.2.3",
+ "commander": "^4.1.1",
+ "he": "^1.2.0",
+ "param-case": "^3.0.3",
+ "relateurl": "^0.2.7",
+ "terser": "^4.6.3"
+ },
+ "bin": {
+ "html-minifier-terser": "cli.js"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/html-minifier-terser/node_modules/camel-case": {
+ "version": "4.1.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "pascal-case": "^3.1.2",
+ "tslib": "^2.0.3"
+ }
+ },
+ "node_modules/html-minifier-terser/node_modules/commander": {
+ "version": "4.1.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/html-minifier-terser/node_modules/param-case": {
+ "version": "3.0.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "dot-case": "^3.0.4",
+ "tslib": "^2.0.3"
+ }
+ },
+ "node_modules/html-minifier/node_modules/commander": {
+ "version": "2.17.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/html-to-text": {
+ "version": "5.1.1",
+ "license": "MIT",
+ "dependencies": {
+ "he": "^1.2.0",
+ "htmlparser2": "^3.10.1",
+ "lodash": "^4.17.11",
+ "minimist": "^1.2.0"
+ },
+ "bin": {
+ "html-to-text": "bin/cli.js"
+ },
+ "engines": {
+ "node": ">= 4.0.0"
+ }
+ },
+ "node_modules/html-webpack-plugin": {
+ "version": "4.5.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/html-minifier-terser": "^5.0.0",
+ "@types/tapable": "^1.0.5",
+ "@types/webpack": "^4.41.8",
+ "html-minifier-terser": "^5.0.1",
+ "loader-utils": "^1.2.3",
+ "lodash": "^4.17.20",
+ "pretty-error": "^2.1.1",
+ "tapable": "^1.1.3",
+ "util.promisify": "1.0.0"
+ },
+ "engines": {
+ "node": ">=6.9"
+ },
+ "peerDependencies": {
+ "webpack": "^4.0.0 || ^5.0.0"
+ }
+ },
+ "node_modules/html-webpack-plugin/node_modules/json5": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "minimist": "^1.2.0"
+ },
+ "bin": {
+ "json5": "lib/cli.js"
+ }
+ },
+ "node_modules/html-webpack-plugin/node_modules/loader-utils": {
+ "version": "1.4.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "big.js": "^5.2.2",
+ "emojis-list": "^3.0.0",
+ "json5": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/htmlparser2": {
+ "version": "3.10.1",
+ "license": "MIT",
+ "dependencies": {
+ "domelementtype": "^1.3.1",
+ "domhandler": "^2.3.0",
+ "domutils": "^1.5.1",
+ "entities": "^1.1.1",
+ "inherits": "^2.0.1",
+ "readable-stream": "^3.1.1"
+ }
+ },
+ "node_modules/htmlparser2/node_modules/readable-stream": {
+ "version": "3.6.0",
+ "license": "MIT",
+ "dependencies": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/htmlparser2/node_modules/safe-buffer": {
+ "version": "5.2.1",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/htmlparser2/node_modules/string_decoder": {
+ "version": "1.3.0",
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.2.0"
+ }
+ },
+ "node_modules/http-cache-semantics": {
+ "version": "4.1.0",
+ "license": "BSD-2-Clause"
+ },
+ "node_modules/http-deceiver": {
+ "version": "1.2.7",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/http-errors": {
+ "version": "1.8.1",
+ "license": "MIT",
+ "dependencies": {
+ "depd": "~1.1.2",
+ "inherits": "2.0.4",
+ "setprototypeof": "1.2.0",
+ "statuses": ">= 1.5.0 < 2",
+ "toidentifier": "1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/http-errors/node_modules/depd": {
+ "version": "1.1.2",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/http-parser-js": {
+ "version": "0.5.6",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/http-proxy": {
+ "version": "1.18.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "eventemitter3": "^4.0.0",
+ "follow-redirects": "^1.0.0",
+ "requires-port": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=8.0.0"
+ }
+ },
+ "node_modules/http-proxy-agent": {
+ "version": "4.0.1",
+ "license": "MIT",
+ "dependencies": {
+ "@tootallnate/once": "1",
+ "agent-base": "6",
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/http-proxy-agent/node_modules/agent-base": {
+ "version": "6.0.2",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 6.0.0"
+ }
+ },
+ "node_modules/http-proxy-agent/node_modules/debug": {
+ "version": "4.3.4",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/http-proxy-agent/node_modules/ms": {
+ "version": "2.1.2",
+ "license": "MIT"
+ },
+ "node_modules/http-proxy-middleware": {
+ "version": "0.19.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "http-proxy": "^1.17.0",
+ "is-glob": "^4.0.0",
+ "lodash": "^4.17.11",
+ "micromatch": "^3.1.10"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/http-proxy-middleware/node_modules/braces": {
+ "version": "2.3.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "arr-flatten": "^1.1.0",
+ "array-unique": "^0.3.2",
+ "extend-shallow": "^2.0.1",
+ "fill-range": "^4.0.0",
+ "isobject": "^3.0.1",
+ "repeat-element": "^1.1.2",
+ "snapdragon": "^0.8.1",
+ "snapdragon-node": "^2.0.1",
+ "split-string": "^3.0.2",
+ "to-regex": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/http-proxy-middleware/node_modules/braces/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/http-proxy-middleware/node_modules/fill-range": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "extend-shallow": "^2.0.1",
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1",
+ "to-regex-range": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/http-proxy-middleware/node_modules/fill-range/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/http-proxy-middleware/node_modules/is-number": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kind-of": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/http-proxy-middleware/node_modules/is-number/node_modules/kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-buffer": "^1.1.5"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/http-proxy-middleware/node_modules/micromatch": {
+ "version": "3.1.10",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "arr-diff": "^4.0.0",
+ "array-unique": "^0.3.2",
+ "braces": "^2.3.1",
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "extglob": "^2.0.4",
+ "fragment-cache": "^0.2.1",
+ "kind-of": "^6.0.2",
+ "nanomatch": "^1.2.9",
+ "object.pick": "^1.3.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/http-proxy-middleware/node_modules/to-regex-range": {
+ "version": "2.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/http-signature": {
+ "version": "1.2.0",
+ "license": "MIT",
+ "dependencies": {
+ "assert-plus": "^1.0.0",
+ "jsprim": "^1.2.2",
+ "sshpk": "^1.7.0"
+ },
+ "engines": {
+ "node": ">=0.8",
+ "npm": ">=1.3.7"
+ }
+ },
+ "node_modules/http-status": {
+ "version": "1.5.0",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">= 0.4.0"
+ }
+ },
+ "node_modules/httpntlm": {
+ "version": "1.6.1",
+ "dependencies": {
+ "httpreq": ">=0.4.22",
+ "underscore": "~1.7.0"
+ },
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/httpreq": {
+ "version": "0.5.2",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6.15.1"
+ }
+ },
+ "node_modules/https-browserify": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/https-proxy-agent": {
+ "version": "2.2.4",
+ "license": "MIT",
+ "dependencies": {
+ "agent-base": "^4.3.0",
+ "debug": "^3.1.0"
+ },
+ "engines": {
+ "node": ">= 4.5.0"
+ }
+ },
+ "node_modules/https-proxy-agent/node_modules/debug": {
+ "version": "3.2.7",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.1"
+ }
+ },
+ "node_modules/https-proxy-agent/node_modules/ms": {
+ "version": "2.1.3",
+ "license": "MIT"
+ },
+ "node_modules/human-signals": {
+ "version": "1.1.1",
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=8.12.0"
+ }
+ },
+ "node_modules/i18n": {
+ "version": "0.8.6",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "*",
+ "make-plural": "^6.0.1",
+ "math-interval-parser": "^2.0.1",
+ "messageformat": "^2.3.0",
+ "mustache": "*",
+ "sprintf-js": "^1.1.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/iconv-lite": {
+ "version": "0.4.24",
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/icss-replace-symbols": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/icss-utils": {
+ "version": "4.1.1",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "postcss": "^7.0.14"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/identity-obj-proxy": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "harmony-reflect": "^1.4.6"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/ieee754": {
+ "version": "1.1.13",
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/iferr": {
+ "version": "0.1.5",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/ignore": {
+ "version": "4.0.6",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/ignore-by-default": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/image-type": {
+ "version": "4.1.0",
+ "license": "MIT",
+ "dependencies": {
+ "file-type": "^10.10.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/imap": {
+ "version": "0.8.19",
+ "dependencies": {
+ "readable-stream": "1.1.x",
+ "utf7": ">=1.0.2"
+ },
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/immediate": {
+ "version": "3.0.6",
+ "license": "MIT"
+ },
+ "node_modules/import-fresh": {
+ "version": "3.3.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "parent-module": "^1.0.0",
+ "resolve-from": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/import-fresh/node_modules/resolve-from": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/import-lazy": {
+ "version": "2.1.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/import-local": {
+ "version": "3.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "pkg-dir": "^4.2.0",
+ "resolve-cwd": "^3.0.0"
+ },
+ "bin": {
+ "import-local-fixture": "fixtures/cli.js"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/imurmurhash": {
+ "version": "0.1.4",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.19"
+ }
+ },
+ "node_modules/in-publish": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "in-install": "in-install.js",
+ "in-publish": "in-publish.js",
+ "not-in-install": "not-in-install.js",
+ "not-in-publish": "not-in-publish.js"
+ }
+ },
+ "node_modules/indent-string": {
+ "version": "2.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "repeating": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/infer-owner": {
+ "version": "1.0.4",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/inflection": {
+ "version": "1.13.2",
+ "engines": [
+ "node >= 0.4.0"
+ ],
+ "license": "MIT"
+ },
+ "node_modules/inflight": {
+ "version": "1.0.6",
+ "license": "ISC",
+ "dependencies": {
+ "once": "^1.3.0",
+ "wrappy": "1"
+ }
+ },
+ "node_modules/inherits": {
+ "version": "2.0.4",
+ "license": "ISC"
+ },
+ "node_modules/ini": {
+ "version": "1.3.8",
+ "license": "ISC"
+ },
+ "node_modules/internal-ip": {
+ "version": "4.3.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "default-gateway": "^4.2.0",
+ "ipaddr.js": "^1.9.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/internal-slot": {
+ "version": "1.0.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "get-intrinsic": "^1.1.0",
+ "has": "^1.0.3",
+ "side-channel": "^1.0.4"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/interpret": {
+ "version": "1.4.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/invert-kv": {
+ "version": "3.0.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sindresorhus/invert-kv?sponsor=1"
+ }
+ },
+ "node_modules/ip": {
+ "version": "1.1.5",
+ "license": "MIT"
+ },
+ "node_modules/ip-regex": {
+ "version": "2.1.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/ipaddr.js": {
+ "version": "1.9.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/is": {
+ "version": "3.3.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/is-absolute": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-relative": "^1.0.0",
+ "is-windows": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-absolute-url": {
+ "version": "3.0.3",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-accessor-descriptor": {
+ "version": "0.1.6",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kind-of": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-accessor-descriptor/node_modules/kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-buffer": "^1.1.5"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-arguments": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.2",
+ "has-tostringtag": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-arrayish": {
+ "version": "0.3.2",
+ "license": "MIT"
+ },
+ "node_modules/is-bigint": {
+ "version": "1.0.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-bigints": "^1.0.1"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-binary-path": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "binary-extensions": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-boolean-object": {
+ "version": "1.1.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.2",
+ "has-tostringtag": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-buffer": {
+ "version": "1.1.6",
+ "license": "MIT"
+ },
+ "node_modules/is-callable": {
+ "version": "1.2.4",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-ci": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ci-info": "^2.0.0"
+ },
+ "bin": {
+ "is-ci": "bin.js"
+ }
+ },
+ "node_modules/is-core-module": {
+ "version": "2.8.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has": "^1.0.3"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-data-descriptor": {
+ "version": "0.1.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kind-of": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-data-descriptor/node_modules/kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-buffer": "^1.1.5"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-date-object": {
+ "version": "1.0.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-tostringtag": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-descriptor": {
+ "version": "0.1.6",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-accessor-descriptor": "^0.1.6",
+ "is-data-descriptor": "^0.1.4",
+ "kind-of": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-descriptor/node_modules/kind-of": {
+ "version": "5.1.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-docker": {
+ "version": "2.2.1",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "bin": {
+ "is-docker": "cli.js"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/is-extendable": {
+ "version": "0.1.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-extglob": {
+ "version": "2.1.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-finite": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/is-fullwidth-code-point": {
+ "version": "1.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "number-is-nan": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-generator-fn": {
+ "version": "2.1.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/is-glob": {
+ "version": "4.0.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extglob": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-installed-globally": {
+ "version": "0.4.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "global-dirs": "^3.0.0",
+ "is-path-inside": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/is-installed-globally/node_modules/is-path-inside": {
+ "version": "3.0.3",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-negated-glob": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-negative-zero": {
+ "version": "2.0.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-npm": {
+ "version": "5.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/is-number": {
+ "version": "7.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.12.0"
+ }
+ },
+ "node_modules/is-number-object": {
+ "version": "1.0.6",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-tostringtag": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-obj": {
+ "version": "1.0.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-path-cwd": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-path-in-cwd": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-path-inside": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-path-inside": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "path-is-inside": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-plain-object": {
+ "version": "5.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-potential-custom-element-name": {
+ "version": "1.0.1",
+ "license": "MIT"
+ },
+ "node_modules/is-property": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/is-regex": {
+ "version": "1.1.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.2",
+ "has-tostringtag": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-relative": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-unc-path": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-shared-array-buffer": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-stream": {
+ "version": "2.0.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/is-stream-ended": {
+ "version": "0.1.4",
+ "license": "MIT"
+ },
+ "node_modules/is-string": {
+ "version": "1.0.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-tostringtag": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-symbol": {
+ "version": "1.0.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-symbols": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-typedarray": {
+ "version": "1.0.0",
+ "license": "MIT"
+ },
+ "node_modules/is-unc-path": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "unc-path-regex": "^0.1.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-utf8": {
+ "version": "0.2.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/is-valid-glob": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-weakref": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.2"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-windows": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-wsl": {
+ "version": "2.2.0",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "is-docker": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-yarn-global": {
+ "version": "0.3.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/isarray": {
+ "version": "0.0.1",
+ "license": "MIT"
+ },
+ "node_modules/isemail": {
+ "version": "3.2.0",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "punycode": "2.x.x"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/isexe": {
+ "version": "2.0.0",
+ "license": "ISC"
+ },
+ "node_modules/isobject": {
+ "version": "3.0.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/isstream": {
+ "version": "0.1.2",
+ "license": "MIT"
+ },
+ "node_modules/istanbul-lib-coverage": {
+ "version": "3.2.0",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/istanbul-lib-instrument": {
+ "version": "5.1.0",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "@babel/core": "^7.12.3",
+ "@babel/parser": "^7.14.7",
+ "@istanbuljs/schema": "^0.1.2",
+ "istanbul-lib-coverage": "^3.2.0",
+ "semver": "^6.3.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/istanbul-lib-instrument/node_modules/semver": {
+ "version": "6.3.0",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/istanbul-lib-report": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "istanbul-lib-coverage": "^3.0.0",
+ "make-dir": "^3.0.0",
+ "supports-color": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/istanbul-lib-report/node_modules/make-dir": {
+ "version": "3.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "semver": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/istanbul-lib-report/node_modules/semver": {
+ "version": "6.3.0",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/istanbul-lib-source-maps": {
+ "version": "4.0.1",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "debug": "^4.1.1",
+ "istanbul-lib-coverage": "^3.0.0",
+ "source-map": "^0.6.1"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/istanbul-lib-source-maps/node_modules/debug": {
+ "version": "4.3.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/istanbul-lib-source-maps/node_modules/ms": {
+ "version": "2.1.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/istanbul-lib-source-maps/node_modules/source-map": {
+ "version": "0.6.1",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/istanbul-reports": {
+ "version": "3.1.4",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "html-escaper": "^2.0.0",
+ "istanbul-lib-report": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/jade": {
+ "version": "0.26.3",
+ "dependencies": {
+ "commander": "0.6.1",
+ "mkdirp": "0.3.0"
+ },
+ "bin": {
+ "jade": "bin/jade"
+ }
+ },
+ "node_modules/jade/node_modules/commander": {
+ "version": "0.6.1",
+ "engines": {
+ "node": ">= 0.4.x"
+ }
+ },
+ "node_modules/jade/node_modules/mkdirp": {
+ "version": "0.3.0",
+ "license": "MIT/X11",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/jake": {
+ "version": "10.8.4",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "async": "0.9.x",
+ "chalk": "^4.0.2",
+ "filelist": "^1.0.1",
+ "minimatch": "^3.0.4"
+ },
+ "bin": {
+ "jake": "bin/cli.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/jake/node_modules/async": {
+ "version": "0.9.2",
+ "license": "MIT"
+ },
+ "node_modules/jasmine": {
+ "version": "4.5.0",
+ "resolved": "https://registry.npmjs.org/jasmine/-/jasmine-4.5.0.tgz",
+ "integrity": "sha512-9olGRvNZyADIwYL9XBNBst5BTU/YaePzuddK+YRslc7rI9MdTIE4r3xaBKbv2GEmzYYUfMOdTR8/i6JfLZaxSQ==",
+ "dev": true,
+ "dependencies": {
+ "glob": "^7.1.6",
+ "jasmine-core": "^4.5.0"
+ },
+ "bin": {
+ "jasmine": "bin/jasmine.js"
+ }
+ },
+ "node_modules/jasmine-core": {
+ "version": "4.5.0",
+ "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-4.5.0.tgz",
+ "integrity": "sha512-9PMzyvhtocxb3aXJVOPqBDswdgyAeSB81QnLop4npOpbqnheaTEwPc9ZloQeVswugPManznQBjD8kWDTjlnHuw==",
+ "dev": true
+ },
+ "node_modules/jasmine-reporters": {
+ "version": "2.5.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@xmldom/xmldom": "^0.7.3",
+ "mkdirp": "^1.0.4"
+ }
+ },
+ "node_modules/jasmine-reporters/node_modules/mkdirp": {
+ "version": "1.0.4",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "mkdirp": "bin/cmd.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/jasmine-spec-reporter": {
+ "version": "7.0.0",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "colors": "1.4.0"
+ }
+ },
+ "node_modules/jayson": {
+ "version": "2.1.2",
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "^10.3.5",
+ "commander": "^2.12.2",
+ "es6-promisify": "^5.0.0",
+ "eyes": "^0.1.8",
+ "json-stringify-safe": "^5.0.1",
+ "JSONStream": "^1.3.1",
+ "lodash": "^4.17.11",
+ "uuid": "^3.2.1"
+ },
+ "bin": {
+ "jayson": "bin/jayson.js"
+ }
+ },
+ "node_modules/jayson/node_modules/@types/node": {
+ "version": "10.17.60",
+ "license": "MIT"
+ },
+ "node_modules/jest": {
+ "version": "26.6.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/core": "^26.6.3",
+ "import-local": "^3.0.2",
+ "jest-cli": "^26.6.3"
+ },
+ "bin": {
+ "jest": "bin/jest.js"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/jest-changed-files": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/types": "^26.6.2",
+ "execa": "^4.0.0",
+ "throat": "^5.0.0"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/jest-config": {
+ "version": "26.6.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/core": "^7.1.0",
+ "@jest/test-sequencer": "^26.6.3",
+ "@jest/types": "^26.6.2",
+ "babel-jest": "^26.6.3",
+ "chalk": "^4.0.0",
+ "deepmerge": "^4.2.2",
+ "glob": "^7.1.1",
+ "graceful-fs": "^4.2.4",
+ "jest-environment-jsdom": "^26.6.2",
+ "jest-environment-node": "^26.6.2",
+ "jest-get-type": "^26.3.0",
+ "jest-jasmine2": "^26.6.3",
+ "jest-regex-util": "^26.0.0",
+ "jest-resolve": "^26.6.2",
+ "jest-util": "^26.6.2",
+ "jest-validate": "^26.6.2",
+ "micromatch": "^4.0.2",
+ "pretty-format": "^26.6.2"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ },
+ "peerDependencies": {
+ "ts-node": ">=9.0.0"
+ },
+ "peerDependenciesMeta": {
+ "ts-node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/jest-diff": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "chalk": "^4.0.0",
+ "diff-sequences": "^26.6.2",
+ "jest-get-type": "^26.3.0",
+ "pretty-format": "^26.6.2"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/jest-docblock": {
+ "version": "26.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "detect-newline": "^3.0.0"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/jest-each": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/types": "^26.6.2",
+ "chalk": "^4.0.0",
+ "jest-get-type": "^26.3.0",
+ "jest-util": "^26.6.2",
+ "pretty-format": "^26.6.2"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/jest-environment-jsdom": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/environment": "^26.6.2",
+ "@jest/fake-timers": "^26.6.2",
+ "@jest/types": "^26.6.2",
+ "@types/node": "*",
+ "jest-mock": "^26.6.2",
+ "jest-util": "^26.6.2",
+ "jsdom": "^16.4.0"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/jest-environment-node": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/environment": "^26.6.2",
+ "@jest/fake-timers": "^26.6.2",
+ "@jest/types": "^26.6.2",
+ "@types/node": "*",
+ "jest-mock": "^26.6.2",
+ "jest-util": "^26.6.2"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/jest-get-type": {
+ "version": "26.3.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/jest-haste-map": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/types": "^26.6.2",
+ "@types/graceful-fs": "^4.1.2",
+ "@types/node": "*",
+ "anymatch": "^3.0.3",
+ "fb-watchman": "^2.0.0",
+ "graceful-fs": "^4.2.4",
+ "jest-regex-util": "^26.0.0",
+ "jest-serializer": "^26.6.2",
+ "jest-util": "^26.6.2",
+ "jest-worker": "^26.6.2",
+ "micromatch": "^4.0.2",
+ "sane": "^4.0.3",
+ "walker": "^1.0.7"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ },
+ "optionalDependencies": {
+ "fsevents": "^2.1.2"
+ }
+ },
+ "node_modules/jest-jasmine2": {
+ "version": "26.6.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/traverse": "^7.1.0",
+ "@jest/environment": "^26.6.2",
+ "@jest/source-map": "^26.6.2",
+ "@jest/test-result": "^26.6.2",
+ "@jest/types": "^26.6.2",
+ "@types/node": "*",
+ "chalk": "^4.0.0",
+ "co": "^4.6.0",
+ "expect": "^26.6.2",
+ "is-generator-fn": "^2.0.0",
+ "jest-each": "^26.6.2",
+ "jest-matcher-utils": "^26.6.2",
+ "jest-message-util": "^26.6.2",
+ "jest-runtime": "^26.6.3",
+ "jest-snapshot": "^26.6.2",
+ "jest-util": "^26.6.2",
+ "pretty-format": "^26.6.2",
+ "throat": "^5.0.0"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/jest-junit": {
+ "version": "8.0.0",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "jest-validate": "^24.0.0",
+ "mkdirp": "^0.5.1",
+ "strip-ansi": "^4.0.0",
+ "xml": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/jest-junit/node_modules/@jest/types": {
+ "version": "24.9.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/istanbul-lib-coverage": "^2.0.0",
+ "@types/istanbul-reports": "^1.1.1",
+ "@types/yargs": "^13.0.0"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/jest-junit/node_modules/@types/istanbul-reports": {
+ "version": "1.1.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/istanbul-lib-coverage": "*",
+ "@types/istanbul-lib-report": "*"
+ }
+ },
+ "node_modules/jest-junit/node_modules/@types/yargs": {
+ "version": "13.0.12",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/yargs-parser": "*"
+ }
+ },
+ "node_modules/jest-junit/node_modules/ansi-regex": {
+ "version": "4.1.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/jest-junit/node_modules/ansi-styles": {
+ "version": "3.2.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^1.9.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/jest-junit/node_modules/chalk": {
+ "version": "2.4.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^3.2.1",
+ "escape-string-regexp": "^1.0.5",
+ "supports-color": "^5.3.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/jest-junit/node_modules/color-convert": {
+ "version": "1.9.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "1.1.3"
+ }
+ },
+ "node_modules/jest-junit/node_modules/color-name": {
+ "version": "1.1.3",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/jest-junit/node_modules/escape-string-regexp": {
+ "version": "1.0.5",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/jest-junit/node_modules/has-flag": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/jest-junit/node_modules/jest-get-type": {
+ "version": "24.9.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/jest-junit/node_modules/jest-validate": {
+ "version": "24.9.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/types": "^24.9.0",
+ "camelcase": "^5.3.1",
+ "chalk": "^2.0.1",
+ "jest-get-type": "^24.9.0",
+ "leven": "^3.1.0",
+ "pretty-format": "^24.9.0"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/jest-junit/node_modules/pretty-format": {
+ "version": "24.9.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/types": "^24.9.0",
+ "ansi-regex": "^4.0.0",
+ "ansi-styles": "^3.2.0",
+ "react-is": "^16.8.4"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/jest-junit/node_modules/react-is": {
+ "version": "16.13.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/jest-junit/node_modules/strip-ansi": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/jest-junit/node_modules/strip-ansi/node_modules/ansi-regex": {
+ "version": "3.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/jest-junit/node_modules/supports-color": {
+ "version": "5.5.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-flag": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/jest-leak-detector": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "jest-get-type": "^26.3.0",
+ "pretty-format": "^26.6.2"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/jest-matcher-utils": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "chalk": "^4.0.0",
+ "jest-diff": "^26.6.2",
+ "jest-get-type": "^26.3.0",
+ "pretty-format": "^26.6.2"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/jest-message-util": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.0.0",
+ "@jest/types": "^26.6.2",
+ "@types/stack-utils": "^2.0.0",
+ "chalk": "^4.0.0",
+ "graceful-fs": "^4.2.4",
+ "micromatch": "^4.0.2",
+ "pretty-format": "^26.6.2",
+ "slash": "^3.0.0",
+ "stack-utils": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/jest-mock": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/types": "^26.6.2",
+ "@types/node": "*"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/jest-pnp-resolver": {
+ "version": "1.2.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ },
+ "peerDependencies": {
+ "jest-resolve": "*"
+ },
+ "peerDependenciesMeta": {
+ "jest-resolve": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/jest-regex-util": {
+ "version": "26.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/jest-resolve": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/types": "^26.6.2",
+ "chalk": "^4.0.0",
+ "graceful-fs": "^4.2.4",
+ "jest-pnp-resolver": "^1.2.2",
+ "jest-util": "^26.6.2",
+ "read-pkg-up": "^7.0.1",
+ "resolve": "^1.18.1",
+ "slash": "^3.0.0"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/jest-resolve-dependencies": {
+ "version": "26.6.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/types": "^26.6.2",
+ "jest-regex-util": "^26.0.0",
+ "jest-snapshot": "^26.6.2"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/jest-resolve/node_modules/parse-json": {
+ "version": "5.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.0.0",
+ "error-ex": "^1.3.1",
+ "json-parse-even-better-errors": "^2.3.0",
+ "lines-and-columns": "^1.1.6"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/jest-resolve/node_modules/read-pkg": {
+ "version": "5.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/normalize-package-data": "^2.4.0",
+ "normalize-package-data": "^2.5.0",
+ "parse-json": "^5.0.0",
+ "type-fest": "^0.6.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/jest-resolve/node_modules/read-pkg-up": {
+ "version": "7.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "find-up": "^4.1.0",
+ "read-pkg": "^5.2.0",
+ "type-fest": "^0.8.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/jest-resolve/node_modules/read-pkg/node_modules/type-fest": {
+ "version": "0.6.0",
+ "dev": true,
+ "license": "(MIT OR CC0-1.0)",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/jest-resolve/node_modules/type-fest": {
+ "version": "0.8.1",
+ "dev": true,
+ "license": "(MIT OR CC0-1.0)",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/jest-runner": {
+ "version": "26.6.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/console": "^26.6.2",
+ "@jest/environment": "^26.6.2",
+ "@jest/test-result": "^26.6.2",
+ "@jest/types": "^26.6.2",
+ "@types/node": "*",
+ "chalk": "^4.0.0",
+ "emittery": "^0.7.1",
+ "exit": "^0.1.2",
+ "graceful-fs": "^4.2.4",
+ "jest-config": "^26.6.3",
+ "jest-docblock": "^26.0.0",
+ "jest-haste-map": "^26.6.2",
+ "jest-leak-detector": "^26.6.2",
+ "jest-message-util": "^26.6.2",
+ "jest-resolve": "^26.6.2",
+ "jest-runtime": "^26.6.3",
+ "jest-util": "^26.6.2",
+ "jest-worker": "^26.6.2",
+ "source-map-support": "^0.5.6",
+ "throat": "^5.0.0"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/jest-runtime": {
+ "version": "26.6.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/console": "^26.6.2",
+ "@jest/environment": "^26.6.2",
+ "@jest/fake-timers": "^26.6.2",
+ "@jest/globals": "^26.6.2",
+ "@jest/source-map": "^26.6.2",
+ "@jest/test-result": "^26.6.2",
+ "@jest/transform": "^26.6.2",
+ "@jest/types": "^26.6.2",
+ "@types/yargs": "^15.0.0",
+ "chalk": "^4.0.0",
+ "cjs-module-lexer": "^0.6.0",
+ "collect-v8-coverage": "^1.0.0",
+ "exit": "^0.1.2",
+ "glob": "^7.1.3",
+ "graceful-fs": "^4.2.4",
+ "jest-config": "^26.6.3",
+ "jest-haste-map": "^26.6.2",
+ "jest-message-util": "^26.6.2",
+ "jest-mock": "^26.6.2",
+ "jest-regex-util": "^26.0.0",
+ "jest-resolve": "^26.6.2",
+ "jest-snapshot": "^26.6.2",
+ "jest-util": "^26.6.2",
+ "jest-validate": "^26.6.2",
+ "slash": "^3.0.0",
+ "strip-bom": "^4.0.0",
+ "yargs": "^15.4.1"
+ },
+ "bin": {
+ "jest-runtime": "bin/jest-runtime.js"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/jest-runtime/node_modules/strip-bom": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/jest-serializer": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*",
+ "graceful-fs": "^4.2.4"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/jest-snapshot": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.0.0",
+ "@jest/types": "^26.6.2",
+ "@types/babel__traverse": "^7.0.4",
+ "@types/prettier": "^2.0.0",
+ "chalk": "^4.0.0",
+ "expect": "^26.6.2",
+ "graceful-fs": "^4.2.4",
+ "jest-diff": "^26.6.2",
+ "jest-get-type": "^26.3.0",
+ "jest-haste-map": "^26.6.2",
+ "jest-matcher-utils": "^26.6.2",
+ "jest-message-util": "^26.6.2",
+ "jest-resolve": "^26.6.2",
+ "natural-compare": "^1.4.0",
+ "pretty-format": "^26.6.2",
+ "semver": "^7.3.2"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/jest-snapshot/node_modules/lru-cache": {
+ "version": "6.0.0",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/jest-snapshot/node_modules/semver": {
+ "version": "7.3.5",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "lru-cache": "^6.0.0"
+ },
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/jest-snapshot/node_modules/yallist": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/jest-util": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/types": "^26.6.2",
+ "@types/node": "*",
+ "chalk": "^4.0.0",
+ "graceful-fs": "^4.2.4",
+ "is-ci": "^2.0.0",
+ "micromatch": "^4.0.2"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/jest-validate": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/types": "^26.6.2",
+ "camelcase": "^6.0.0",
+ "chalk": "^4.0.0",
+ "jest-get-type": "^26.3.0",
+ "leven": "^3.1.0",
+ "pretty-format": "^26.6.2"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/jest-validate/node_modules/camelcase": {
+ "version": "6.3.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/jest-watcher": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/test-result": "^26.6.2",
+ "@jest/types": "^26.6.2",
+ "@types/node": "*",
+ "ansi-escapes": "^4.2.1",
+ "chalk": "^4.0.0",
+ "jest-util": "^26.6.2",
+ "string-length": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/jest-worker": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*",
+ "merge-stream": "^2.0.0",
+ "supports-color": "^7.0.0"
+ },
+ "engines": {
+ "node": ">= 10.13.0"
+ }
+ },
+ "node_modules/jest-worker/node_modules/merge-stream": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/jest/node_modules/jest-cli": {
+ "version": "26.6.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/core": "^26.6.3",
+ "@jest/test-result": "^26.6.2",
+ "@jest/types": "^26.6.2",
+ "chalk": "^4.0.0",
+ "exit": "^0.1.2",
+ "graceful-fs": "^4.2.4",
+ "import-local": "^3.0.2",
+ "is-ci": "^2.0.0",
+ "jest-config": "^26.6.3",
+ "jest-util": "^26.6.2",
+ "jest-validate": "^26.6.2",
+ "prompts": "^2.0.1",
+ "yargs": "^15.4.1"
+ },
+ "bin": {
+ "jest": "bin/jest.js"
+ },
+ "engines": {
+ "node": ">= 10.14.2"
+ }
+ },
+ "node_modules/jmespath": {
+ "version": "0.16.0",
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">= 0.6.0"
+ }
+ },
+ "node_modules/js-base64": {
+ "version": "2.6.4",
+ "dev": true,
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/js-tokens": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/js-yaml": {
+ "version": "4.1.0",
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^2.0.1"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/js-yaml/node_modules/argparse": {
+ "version": "2.0.1",
+ "license": "Python-2.0"
+ },
+ "node_modules/js2xmlparser": {
+ "version": "3.0.0",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "xmlcreate": "^1.0.1"
+ }
+ },
+ "node_modules/jsbarcode": {
+ "version": "3.11.5",
+ "resolved": "https://registry.npmjs.org/jsbarcode/-/jsbarcode-3.11.5.tgz",
+ "integrity": "sha512-zv3KsH51zD00I/LrFzFSM6dst7rDn0vIMzaiZFL7qusTjPZiPtxg3zxetp0RR7obmjTw4f6NyGgbdkBCgZUIrA==",
+ "bin": {
+ "auto.js": "bin/barcodes/CODE128/auto.js",
+ "Barcode.js": "bin/barcodes/Barcode.js",
+ "barcodes": "bin/barcodes",
+ "canvas.js": "bin/renderers/canvas.js",
+ "checksums.js": "bin/barcodes/MSI/checksums.js",
+ "codabar": "bin/barcodes/codabar",
+ "CODE128": "bin/barcodes/CODE128",
+ "CODE128_AUTO.js": "bin/barcodes/CODE128/CODE128_AUTO.js",
+ "CODE128.js": "bin/barcodes/CODE128/CODE128.js",
+ "CODE128A.js": "bin/barcodes/CODE128/CODE128A.js",
+ "CODE128B.js": "bin/barcodes/CODE128/CODE128B.js",
+ "CODE128C.js": "bin/barcodes/CODE128/CODE128C.js",
+ "CODE39": "bin/barcodes/CODE39",
+ "constants.js": "bin/barcodes/ITF/constants.js",
+ "defaults.js": "bin/options/defaults.js",
+ "EAN_UPC": "bin/barcodes/EAN_UPC",
+ "EAN.js": "bin/barcodes/EAN_UPC/EAN.js",
+ "EAN13.js": "bin/barcodes/EAN_UPC/EAN13.js",
+ "EAN2.js": "bin/barcodes/EAN_UPC/EAN2.js",
+ "EAN5.js": "bin/barcodes/EAN_UPC/EAN5.js",
+ "EAN8.js": "bin/barcodes/EAN_UPC/EAN8.js",
+ "encoder.js": "bin/barcodes/EAN_UPC/encoder.js",
+ "ErrorHandler.js": "bin/exceptions/ErrorHandler.js",
+ "exceptions": "bin/exceptions",
+ "exceptions.js": "bin/exceptions/exceptions.js",
+ "fixOptions.js": "bin/help/fixOptions.js",
+ "GenericBarcode": "bin/barcodes/GenericBarcode",
+ "getOptionsFromElement.js": "bin/help/getOptionsFromElement.js",
+ "getRenderProperties.js": "bin/help/getRenderProperties.js",
+ "help": "bin/help",
+ "index.js": "bin/renderers/index.js",
+ "index.tmp.js": "bin/barcodes/index.tmp.js",
+ "ITF": "bin/barcodes/ITF",
+ "ITF.js": "bin/barcodes/ITF/ITF.js",
+ "ITF14.js": "bin/barcodes/ITF/ITF14.js",
+ "JsBarcode.js": "bin/JsBarcode.js",
+ "linearizeEncodings.js": "bin/help/linearizeEncodings.js",
+ "merge.js": "bin/help/merge.js",
+ "MSI": "bin/barcodes/MSI",
+ "MSI.js": "bin/barcodes/MSI/MSI.js",
+ "MSI10.js": "bin/barcodes/MSI/MSI10.js",
+ "MSI1010.js": "bin/barcodes/MSI/MSI1010.js",
+ "MSI11.js": "bin/barcodes/MSI/MSI11.js",
+ "MSI1110.js": "bin/barcodes/MSI/MSI1110.js",
+ "object.js": "bin/renderers/object.js",
+ "options": "bin/options",
+ "optionsFromStrings.js": "bin/help/optionsFromStrings.js",
+ "pharmacode": "bin/barcodes/pharmacode",
+ "renderers": "bin/renderers",
+ "shared.js": "bin/renderers/shared.js",
+ "svg.js": "bin/renderers/svg.js",
+ "UPC.js": "bin/barcodes/EAN_UPC/UPC.js",
+ "UPCE.js": "bin/barcodes/EAN_UPC/UPCE.js"
+ }
+ },
+ "node_modules/jsbn": {
+ "version": "0.1.1",
+ "license": "MIT"
+ },
+ "node_modules/jsdom": {
+ "version": "16.7.0",
+ "license": "MIT",
+ "dependencies": {
+ "abab": "^2.0.5",
+ "acorn": "^8.2.4",
+ "acorn-globals": "^6.0.0",
+ "cssom": "^0.4.4",
+ "cssstyle": "^2.3.0",
+ "data-urls": "^2.0.0",
+ "decimal.js": "^10.2.1",
+ "domexception": "^2.0.1",
+ "escodegen": "^2.0.0",
+ "form-data": "^3.0.0",
+ "html-encoding-sniffer": "^2.0.1",
+ "http-proxy-agent": "^4.0.1",
+ "https-proxy-agent": "^5.0.0",
+ "is-potential-custom-element-name": "^1.0.1",
+ "nwsapi": "^2.2.0",
+ "parse5": "6.0.1",
+ "saxes": "^5.0.1",
+ "symbol-tree": "^3.2.4",
+ "tough-cookie": "^4.0.0",
+ "w3c-hr-time": "^1.0.2",
+ "w3c-xmlserializer": "^2.0.0",
+ "webidl-conversions": "^6.1.0",
+ "whatwg-encoding": "^1.0.5",
+ "whatwg-mimetype": "^2.3.0",
+ "whatwg-url": "^8.5.0",
+ "ws": "^7.4.6",
+ "xml-name-validator": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "canvas": "^2.5.0"
+ },
+ "peerDependenciesMeta": {
+ "canvas": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/jsdom/node_modules/acorn": {
+ "version": "8.7.0",
+ "license": "MIT",
+ "bin": {
+ "acorn": "bin/acorn"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/jsdom/node_modules/agent-base": {
+ "version": "6.0.2",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 6.0.0"
+ }
+ },
+ "node_modules/jsdom/node_modules/debug": {
+ "version": "4.3.4",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/jsdom/node_modules/form-data": {
+ "version": "3.0.1",
+ "license": "MIT",
+ "dependencies": {
+ "asynckit": "^0.4.0",
+ "combined-stream": "^1.0.8",
+ "mime-types": "^2.1.12"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/jsdom/node_modules/https-proxy-agent": {
+ "version": "5.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "agent-base": "6",
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/jsdom/node_modules/ms": {
+ "version": "2.1.2",
+ "license": "MIT"
+ },
+ "node_modules/jsdom/node_modules/tough-cookie": {
+ "version": "4.0.0",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "psl": "^1.1.33",
+ "punycode": "^2.1.1",
+ "universalify": "^0.1.2"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/jsdom/node_modules/tr46": {
+ "version": "2.1.0",
+ "license": "MIT",
+ "dependencies": {
+ "punycode": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/jsdom/node_modules/webidl-conversions": {
+ "version": "6.1.0",
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=10.4"
+ }
+ },
+ "node_modules/jsdom/node_modules/whatwg-url": {
+ "version": "8.7.0",
+ "license": "MIT",
+ "dependencies": {
+ "lodash": "^4.7.0",
+ "tr46": "^2.1.0",
+ "webidl-conversions": "^6.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/jsesc": {
+ "version": "2.5.2",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "jsesc": "bin/jsesc"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/json-bigint": {
+ "version": "0.3.1",
+ "license": "MIT",
+ "dependencies": {
+ "bignumber.js": "^9.0.0"
+ }
+ },
+ "node_modules/json-buffer": {
+ "version": "3.0.1",
+ "license": "MIT"
+ },
+ "node_modules/json-loader": {
+ "version": "0.5.7",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-parse-better-errors": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-parse-even-better-errors": {
+ "version": "2.3.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-schema": {
+ "version": "0.4.0",
+ "license": "(AFL-2.1 OR BSD-3-Clause)"
+ },
+ "node_modules/json-schema-traverse": {
+ "version": "0.4.1",
+ "license": "MIT"
+ },
+ "node_modules/json-stable-stringify-without-jsonify": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-stringify-safe": {
+ "version": "5.0.1",
+ "license": "ISC"
+ },
+ "node_modules/json5": {
+ "version": "2.2.1",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "json5": "lib/cli.js"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/jsonfile": {
+ "version": "4.0.0",
+ "license": "MIT",
+ "optionalDependencies": {
+ "graceful-fs": "^4.1.6"
+ }
+ },
+ "node_modules/jsonparse": {
+ "version": "1.3.1",
+ "engines": [
+ "node >= 0.2.0"
+ ],
+ "license": "MIT"
+ },
+ "node_modules/JSONStream": {
+ "version": "1.3.5",
+ "license": "(MIT OR Apache-2.0)",
+ "dependencies": {
+ "jsonparse": "^1.2.0",
+ "through": ">=2.2.7 <3"
+ },
+ "bin": {
+ "JSONStream": "bin.js"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/jsprim": {
+ "version": "1.4.2",
+ "license": "MIT",
+ "dependencies": {
+ "assert-plus": "1.0.0",
+ "extsprintf": "1.3.0",
+ "json-schema": "0.4.0",
+ "verror": "1.10.0"
+ },
+ "engines": {
+ "node": ">=0.6.0"
+ }
+ },
+ "node_modules/jsprim/node_modules/core-util-is": {
+ "version": "1.0.2",
+ "license": "MIT"
+ },
+ "node_modules/jsprim/node_modules/extsprintf": {
+ "version": "1.3.0",
+ "engines": [
+ "node >=0.6.0"
+ ],
+ "license": "MIT"
+ },
+ "node_modules/jsprim/node_modules/verror": {
+ "version": "1.10.0",
+ "engines": [
+ "node >=0.6.0"
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "assert-plus": "^1.0.0",
+ "core-util-is": "1.0.2",
+ "extsprintf": "^1.2.0"
+ }
+ },
+ "node_modules/jszip": {
+ "version": "3.10.0",
+ "license": "(MIT OR GPL-3.0-or-later)",
+ "dependencies": {
+ "lie": "~3.3.0",
+ "pako": "~1.0.2",
+ "readable-stream": "~2.3.6",
+ "setimmediate": "^1.0.5"
+ }
+ },
+ "node_modules/jszip/node_modules/isarray": {
+ "version": "1.0.0",
+ "license": "MIT"
+ },
+ "node_modules/jszip/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/jszip/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/just-debounce": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/jwa": {
+ "version": "1.4.1",
+ "license": "MIT",
+ "dependencies": {
+ "buffer-equal-constant-time": "1.0.1",
+ "ecdsa-sig-formatter": "1.0.11",
+ "safe-buffer": "^5.0.1"
+ }
+ },
+ "node_modules/jws": {
+ "version": "3.2.2",
+ "license": "MIT",
+ "dependencies": {
+ "jwa": "^1.4.1",
+ "safe-buffer": "^5.0.1"
+ }
+ },
+ "node_modules/keyv": {
+ "version": "4.1.1",
+ "license": "MIT",
+ "dependencies": {
+ "json-buffer": "3.0.1"
+ }
+ },
+ "node_modules/killable": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/kind-of": {
+ "version": "6.0.3",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/kleur": {
+ "version": "3.0.3",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/last-run": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "default-resolution": "^2.0.0",
+ "es6-weak-map": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/latest-version": {
+ "version": "5.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "package-json": "^6.3.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/lazystream": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "readable-stream": "^2.0.5"
+ },
+ "engines": {
+ "node": ">= 0.6.3"
+ }
+ },
+ "node_modules/lazystream/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lazystream/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/lazystream/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/lcid": {
+ "version": "3.1.1",
+ "license": "MIT",
+ "dependencies": {
+ "invert-kv": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ldap-filter": {
+ "version": "0.3.3",
+ "license": "MIT",
+ "dependencies": {
+ "assert-plus": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/ldapjs": {
+ "version": "2.3.2",
+ "license": "MIT",
+ "dependencies": {
+ "abstract-logging": "^2.0.0",
+ "asn1": "^0.2.4",
+ "assert-plus": "^1.0.0",
+ "backoff": "^2.5.0",
+ "ldap-filter": "^0.3.3",
+ "once": "^1.4.0",
+ "vasync": "^2.2.0",
+ "verror": "^1.8.1"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/lead": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "flush-write-stream": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/leven": {
+ "version": "3.1.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/levn": {
+ "version": "0.4.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prelude-ls": "^1.2.1",
+ "type-check": "~0.4.0"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/libbase64": {
+ "version": "1.2.1",
+ "license": "MIT"
+ },
+ "node_modules/libmime": {
+ "version": "5.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "encoding-japanese": "1.0.30",
+ "iconv-lite": "0.6.2",
+ "libbase64": "1.2.1",
+ "libqp": "1.1.0"
+ }
+ },
+ "node_modules/libmime/node_modules/iconv-lite": {
+ "version": "0.6.2",
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/liboneandone": {
+ "version": "1.2.0",
+ "license": "BSD",
+ "dependencies": {
+ "mocha": "^2.5.3",
+ "request": "^2.74.0"
+ }
+ },
+ "node_modules/libqp": {
+ "version": "1.1.0",
+ "license": "MIT"
+ },
+ "node_modules/lie": {
+ "version": "3.3.0",
+ "license": "MIT",
+ "dependencies": {
+ "immediate": "~3.0.5"
+ }
+ },
+ "node_modules/liftoff": {
+ "version": "3.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "extend": "^3.0.0",
+ "findup-sync": "^3.0.0",
+ "fined": "^1.0.1",
+ "flagged-respawn": "^1.0.0",
+ "is-plain-object": "^2.0.4",
+ "object.map": "^1.0.0",
+ "rechoir": "^0.6.2",
+ "resolve": "^1.1.7"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/liftoff/node_modules/is-plain-object": {
+ "version": "2.0.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "isobject": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/lines-and-columns": {
+ "version": "1.2.4",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/linkify-it": {
+ "version": "3.0.2",
+ "license": "MIT",
+ "dependencies": {
+ "uc.micro": "^1.0.1"
+ }
+ },
+ "node_modules/load-json-file": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.1.2",
+ "parse-json": "^2.2.0",
+ "pify": "^2.0.0",
+ "pinkie-promise": "^2.0.0",
+ "strip-bom": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/load-json-file/node_modules/pify": {
+ "version": "2.3.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/load-json-file/node_modules/strip-bom": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-utf8": "^0.2.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/loader-runner": {
+ "version": "2.4.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4.3.0 <5.0.0 || >=5.10"
+ }
+ },
+ "node_modules/loader-utils": {
+ "version": "2.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "big.js": "^5.2.2",
+ "emojis-list": "^3.0.0",
+ "json5": "^2.1.2"
+ },
+ "engines": {
+ "node": ">=8.9.0"
+ }
+ },
+ "node_modules/locate-path": {
+ "version": "5.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-locate": "^4.1.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/lodash": {
+ "version": "4.17.21",
+ "license": "MIT"
+ },
+ "node_modules/lodash._basecopy": {
+ "version": "3.0.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash._basetostring": {
+ "version": "3.0.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash._basevalues": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash._getnative": {
+ "version": "3.9.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash._isiterateecall": {
+ "version": "3.0.9",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash._reescape": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash._reevaluate": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash._reinterpolate": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash._root": {
+ "version": "3.0.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash.debounce": {
+ "version": "4.0.8",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash.escape": {
+ "version": "3.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "lodash._root": "^3.0.0"
+ }
+ },
+ "node_modules/lodash.groupby": {
+ "version": "4.6.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash.isarguments": {
+ "version": "3.1.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash.isarray": {
+ "version": "3.0.4",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash.keys": {
+ "version": "3.1.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "lodash._getnative": "^3.0.0",
+ "lodash.isarguments": "^3.0.0",
+ "lodash.isarray": "^3.0.0"
+ }
+ },
+ "node_modules/lodash.merge": {
+ "version": "4.6.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash.mergewith": {
+ "version": "4.6.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash.restparam": {
+ "version": "3.6.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash.truncate": {
+ "version": "4.4.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/log4js": {
+ "version": "6.7.0",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "date-format": "^4.0.14",
+ "debug": "^4.3.4",
+ "flatted": "^3.2.7",
+ "rfdc": "^1.3.0",
+ "streamroller": "^3.1.3"
+ },
+ "engines": {
+ "node": ">=8.0"
+ }
+ },
+ "node_modules/log4js/node_modules/debug": {
+ "version": "4.3.4",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/log4js/node_modules/ms": {
+ "version": "2.1.2",
+ "license": "MIT"
+ },
+ "node_modules/loglevel": {
+ "version": "1.8.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6.0"
+ },
+ "funding": {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/loglevel"
+ }
+ },
+ "node_modules/long": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "Apache-2.0"
+ },
+ "node_modules/loopback": {
+ "version": "3.28.0",
+ "license": "MIT",
+ "dependencies": {
+ "async": "^2.0.1",
+ "bcryptjs": "^2.1.0",
+ "bluebird": "^3.1.1",
+ "body-parser": "^1.12.0",
+ "canonical-json": "0.0.4",
+ "debug": "^2.1.2",
+ "depd": "^1.0.0",
+ "ejs": "^2.3.1",
+ "express": "^4.14.0",
+ "inflection": "^1.6.0",
+ "isemail": "^3.2.0",
+ "loopback-connector-remote": "^3.0.0",
+ "loopback-datasource-juggler": "^3.28.0",
+ "loopback-filters": "^1.0.0",
+ "loopback-phase": "^3.0.0",
+ "nodemailer": "^6.4.16",
+ "nodemailer-direct-transport": "^3.3.2",
+ "nodemailer-stub-transport": "^1.1.0",
+ "serve-favicon": "^2.2.0",
+ "stable": "^0.1.5",
+ "strong-globalize": "^4.1.1",
+ "strong-remoting": "^3.11.0",
+ "uid2": "0.0.3",
+ "underscore.string": "^3.3.5"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/loopback-boot": {
+ "version": "3.3.1",
+ "license": "MIT",
+ "dependencies": {
+ "async": "^2.4.0",
+ "bluebird": "^3.5.3",
+ "commondir": "^1.0.1",
+ "debug": "^4.1.1",
+ "lodash": "^4.17.11",
+ "semver": "^5.1.0",
+ "strong-globalize": "^4.1.1",
+ "toposort": "^2.0.2"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/loopback-boot/node_modules/debug": {
+ "version": "4.3.4",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/loopback-boot/node_modules/ms": {
+ "version": "2.1.2",
+ "license": "MIT"
+ },
+ "node_modules/loopback-component-explorer": {
+ "version": "6.5.1",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^3.1.0",
+ "lodash": "^4.17.11",
+ "loopback-swagger": "^5.0.0",
+ "strong-globalize": "^4.1.1",
+ "swagger-ui": "^2.2.5"
+ },
+ "engines": {
+ "node": ">=8.9"
+ }
+ },
+ "node_modules/loopback-component-explorer/node_modules/debug": {
+ "version": "3.2.7",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.1"
+ }
+ },
+ "node_modules/loopback-component-explorer/node_modules/ms": {
+ "version": "2.1.3",
+ "license": "MIT"
+ },
+ "node_modules/loopback-component-storage": {
+ "version": "3.6.1",
+ "license": "Artistic-2.0",
+ "dependencies": {
+ "async": "^2.6.1",
+ "debug": "^3.1.0",
+ "formidable": "^1.2.1",
+ "pkgcloud": "^2.0.0",
+ "strong-globalize": "^4.1.1",
+ "uuid": "^3.2.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/loopback-component-storage/node_modules/debug": {
+ "version": "3.2.7",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.1"
+ }
+ },
+ "node_modules/loopback-component-storage/node_modules/ms": {
+ "version": "2.1.3",
+ "license": "MIT"
+ },
+ "node_modules/loopback-connector": {
+ "version": "4.11.1",
+ "license": "MIT",
+ "dependencies": {
+ "async": "^3.2.0",
+ "bluebird": "^3.7.2",
+ "debug": "^4.1.1",
+ "msgpack5": "^4.2.0",
+ "strong-globalize": "^5.1.0",
+ "uuid": "^7.0.3"
+ },
+ "engines": {
+ "node": ">=8.9"
+ }
+ },
+ "node_modules/loopback-connector-mysql": {
+ "version": "5.4.4",
+ "license": "MIT",
+ "dependencies": {
+ "async": "^2.6.1",
+ "debug": "^3.1.0",
+ "lodash": "^4.17.11",
+ "loopback-connector": "^4.0.0",
+ "mysql": "^2.11.1",
+ "strong-globalize": "^5.0.5"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/loopback-connector-mysql/node_modules/debug": {
+ "version": "3.2.7",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.1"
+ }
+ },
+ "node_modules/loopback-connector-mysql/node_modules/ms": {
+ "version": "2.1.3",
+ "license": "MIT"
+ },
+ "node_modules/loopback-connector-mysql/node_modules/strong-globalize": {
+ "version": "5.1.0",
+ "license": "Artistic-2.0",
+ "dependencies": {
+ "accept-language": "^3.0.18",
+ "debug": "^4.1.1",
+ "globalize": "^1.5.0",
+ "lodash": "^4.17.15",
+ "md5": "^2.2.1",
+ "mkdirp": "^0.5.5",
+ "os-locale": "^5.0.0",
+ "yamljs": "^0.3.0"
+ },
+ "engines": {
+ "node": ">=8.9"
+ }
+ },
+ "node_modules/loopback-connector-mysql/node_modules/strong-globalize/node_modules/debug": {
+ "version": "4.3.4",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/loopback-connector-mysql/node_modules/strong-globalize/node_modules/ms": {
+ "version": "2.1.2",
+ "license": "MIT"
+ },
+ "node_modules/loopback-connector-remote": {
+ "version": "3.4.1",
+ "license": "MIT",
+ "dependencies": {
+ "loopback-datasource-juggler": "^3.0.0",
+ "strong-remoting": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/loopback-connector/node_modules/async": {
+ "version": "3.2.3",
+ "license": "MIT"
+ },
+ "node_modules/loopback-connector/node_modules/debug": {
+ "version": "4.3.4",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/loopback-connector/node_modules/ms": {
+ "version": "2.1.2",
+ "license": "MIT"
+ },
+ "node_modules/loopback-connector/node_modules/strong-globalize": {
+ "version": "5.1.0",
+ "license": "Artistic-2.0",
+ "dependencies": {
+ "accept-language": "^3.0.18",
+ "debug": "^4.1.1",
+ "globalize": "^1.5.0",
+ "lodash": "^4.17.15",
+ "md5": "^2.2.1",
+ "mkdirp": "^0.5.5",
+ "os-locale": "^5.0.0",
+ "yamljs": "^0.3.0"
+ },
+ "engines": {
+ "node": ">=8.9"
+ }
+ },
+ "node_modules/loopback-connector/node_modules/uuid": {
+ "version": "7.0.3",
+ "license": "MIT",
+ "bin": {
+ "uuid": "dist/bin/uuid"
+ }
+ },
+ "node_modules/loopback-context": {
+ "version": "3.5.2",
+ "license": "MIT",
+ "dependencies": {
+ "cls-hooked": "^4.2.0"
+ },
+ "engines": {
+ "node": "^8.2.1 || ^10.14 || ^12.15"
+ }
+ },
+ "node_modules/loopback-datasource-juggler": {
+ "version": "3.36.1",
+ "license": "MIT",
+ "dependencies": {
+ "async": "^2.6.0",
+ "bluebird": "^3.1.1",
+ "debug": "^3.1.0",
+ "depd": "^1.0.0",
+ "inflection": "^1.6.0",
+ "lodash": "^4.17.4",
+ "loopback-connector": "^4.4.0",
+ "minimatch": "^3.0.3",
+ "qs": "^6.5.0",
+ "shortid": "^2.2.6",
+ "strong-globalize": "^4.1.1",
+ "traverse": "^0.6.6",
+ "uuid": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/loopback-datasource-juggler/node_modules/debug": {
+ "version": "3.2.7",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.1"
+ }
+ },
+ "node_modules/loopback-datasource-juggler/node_modules/depd": {
+ "version": "1.1.2",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/loopback-datasource-juggler/node_modules/ms": {
+ "version": "2.1.3",
+ "license": "MIT"
+ },
+ "node_modules/loopback-datatype-geopoint": {
+ "version": "1.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/loopback-filters": {
+ "version": "1.1.1",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^3.1.0"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/loopback-filters/node_modules/debug": {
+ "version": "3.2.7",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.1"
+ }
+ },
+ "node_modules/loopback-filters/node_modules/ms": {
+ "version": "2.1.3",
+ "license": "MIT"
+ },
+ "node_modules/loopback-phase": {
+ "version": "3.4.0",
+ "license": "MIT",
+ "dependencies": {
+ "async": "^2.6.1",
+ "debug": "^3.1.0",
+ "strong-globalize": "^4.1.1"
+ },
+ "engines": {
+ "node": ">=8.9"
+ }
+ },
+ "node_modules/loopback-phase/node_modules/debug": {
+ "version": "3.2.7",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.1"
+ }
+ },
+ "node_modules/loopback-phase/node_modules/ms": {
+ "version": "2.1.3",
+ "license": "MIT"
+ },
+ "node_modules/loopback-swagger": {
+ "version": "5.9.0",
+ "license": "MIT",
+ "dependencies": {
+ "async": "^2.1.4",
+ "debug": "^3.1.0",
+ "ejs": "^2.5.5",
+ "lodash": "^4.17.11",
+ "strong-globalize": "^4.1.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/loopback-swagger/node_modules/debug": {
+ "version": "3.2.7",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.1"
+ }
+ },
+ "node_modules/loopback-swagger/node_modules/ms": {
+ "version": "2.1.3",
+ "license": "MIT"
+ },
+ "node_modules/loopback/node_modules/depd": {
+ "version": "1.1.2",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/loud-rejection": {
+ "version": "1.6.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "currently-unhandled": "^0.4.1",
+ "signal-exit": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/lower-case": {
+ "version": "1.1.4",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lowercase-keys": {
+ "version": "2.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/lru-cache": {
+ "version": "5.1.1",
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^3.0.2"
+ }
+ },
+ "node_modules/mailparser": {
+ "version": "2.8.1",
+ "license": "(MIT OR EUPL-1.1+)",
+ "dependencies": {
+ "encoding-japanese": "1.0.30",
+ "he": "1.2.0",
+ "html-to-text": "5.1.1",
+ "iconv-lite": "0.6.2",
+ "libmime": "5.0.0",
+ "linkify-it": "3.0.2",
+ "mailsplit": "5.0.0",
+ "nodemailer": "6.4.11",
+ "tlds": "1.208.0"
+ }
+ },
+ "node_modules/mailparser/node_modules/iconv-lite": {
+ "version": "0.6.2",
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/mailparser/node_modules/nodemailer": {
+ "version": "6.4.11",
+ "hasInstallScript": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/mailsplit": {
+ "version": "5.0.0",
+ "license": "(MIT OR EUPL-1.1+)",
+ "dependencies": {
+ "libbase64": "1.2.1",
+ "libmime": "4.2.1",
+ "libqp": "1.1.0"
+ }
+ },
+ "node_modules/mailsplit/node_modules/iconv-lite": {
+ "version": "0.5.0",
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/mailsplit/node_modules/libmime": {
+ "version": "4.2.1",
+ "license": "MIT",
+ "dependencies": {
+ "encoding-japanese": "1.0.30",
+ "iconv-lite": "0.5.0",
+ "libbase64": "1.2.1",
+ "libqp": "1.1.0"
+ }
+ },
+ "node_modules/make-dir": {
+ "version": "1.3.0",
+ "license": "MIT",
+ "dependencies": {
+ "pify": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/make-dir/node_modules/pify": {
+ "version": "3.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/make-iterator": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kind-of": "^6.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/make-plural": {
+ "version": "6.2.2",
+ "license": "ISC"
+ },
+ "node_modules/makeerror": {
+ "version": "1.0.12",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "tmpl": "1.0.5"
+ }
+ },
+ "node_modules/map-age-cleaner": {
+ "version": "0.1.3",
+ "license": "MIT",
+ "dependencies": {
+ "p-defer": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/map-cache": {
+ "version": "0.2.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/map-obj": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/map-stream": {
+ "version": "0.0.7",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/map-visit": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "object-visit": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/matchdep": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "findup-sync": "^2.0.0",
+ "micromatch": "^3.0.4",
+ "resolve": "^1.4.0",
+ "stack-trace": "0.0.10"
+ },
+ "engines": {
+ "node": ">= 0.10.0"
+ }
+ },
+ "node_modules/matchdep/node_modules/braces": {
+ "version": "2.3.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "arr-flatten": "^1.1.0",
+ "array-unique": "^0.3.2",
+ "extend-shallow": "^2.0.1",
+ "fill-range": "^4.0.0",
+ "isobject": "^3.0.1",
+ "repeat-element": "^1.1.2",
+ "snapdragon": "^0.8.1",
+ "snapdragon-node": "^2.0.1",
+ "split-string": "^3.0.2",
+ "to-regex": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/matchdep/node_modules/braces/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/matchdep/node_modules/fill-range": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "extend-shallow": "^2.0.1",
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1",
+ "to-regex-range": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/matchdep/node_modules/fill-range/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/matchdep/node_modules/findup-sync": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "detect-file": "^1.0.0",
+ "is-glob": "^3.1.0",
+ "micromatch": "^3.0.4",
+ "resolve-dir": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/matchdep/node_modules/is-glob": {
+ "version": "3.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extglob": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/matchdep/node_modules/is-number": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kind-of": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/matchdep/node_modules/is-number/node_modules/kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-buffer": "^1.1.5"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/matchdep/node_modules/micromatch": {
+ "version": "3.1.10",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "arr-diff": "^4.0.0",
+ "array-unique": "^0.3.2",
+ "braces": "^2.3.1",
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "extglob": "^2.0.4",
+ "fragment-cache": "^0.2.1",
+ "kind-of": "^6.0.2",
+ "nanomatch": "^1.2.9",
+ "object.pick": "^1.3.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/matchdep/node_modules/to-regex-range": {
+ "version": "2.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/math-interval-parser": {
+ "version": "2.0.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/md5": {
+ "version": "2.3.0",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "charenc": "0.0.2",
+ "crypt": "0.0.2",
+ "is-buffer": "~1.1.6"
+ }
+ },
+ "node_modules/md5.js": {
+ "version": "1.3.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "hash-base": "^3.0.0",
+ "inherits": "^2.0.1",
+ "safe-buffer": "^5.1.2"
+ }
+ },
+ "node_modules/media-typer": {
+ "version": "0.3.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mem": {
+ "version": "5.1.1",
+ "license": "MIT",
+ "dependencies": {
+ "map-age-cleaner": "^0.1.3",
+ "mimic-fn": "^2.1.0",
+ "p-is-promise": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/memory-fs": {
+ "version": "0.4.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "errno": "^0.1.3",
+ "readable-stream": "^2.0.1"
+ }
+ },
+ "node_modules/memory-fs/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/memory-fs/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/memory-fs/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/meow": {
+ "version": "3.7.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "camelcase-keys": "^2.0.0",
+ "decamelize": "^1.1.2",
+ "loud-rejection": "^1.0.0",
+ "map-obj": "^1.0.1",
+ "minimist": "^1.1.3",
+ "normalize-package-data": "^2.3.4",
+ "object-assign": "^4.0.1",
+ "read-pkg-up": "^1.0.1",
+ "redent": "^1.0.0",
+ "trim-newlines": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/merge-descriptors": {
+ "version": "1.0.1",
+ "license": "MIT"
+ },
+ "node_modules/merge-stream": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "readable-stream": "^2.0.1"
+ }
+ },
+ "node_modules/merge-stream/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/merge-stream/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/merge-stream/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/messageformat": {
+ "version": "2.3.0",
+ "license": "MIT",
+ "dependencies": {
+ "make-plural": "^4.3.0",
+ "messageformat-formatters": "^2.0.1",
+ "messageformat-parser": "^4.1.2"
+ }
+ },
+ "node_modules/messageformat-formatters": {
+ "version": "2.0.1",
+ "license": "MIT"
+ },
+ "node_modules/messageformat-parser": {
+ "version": "4.1.3",
+ "license": "MIT"
+ },
+ "node_modules/messageformat/node_modules/make-plural": {
+ "version": "4.3.0",
+ "license": "ISC",
+ "bin": {
+ "make-plural": "bin/make-plural"
+ },
+ "optionalDependencies": {
+ "minimist": "^1.2.0"
+ }
+ },
+ "node_modules/methods": {
+ "version": "1.1.2",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/micromatch": {
+ "version": "4.0.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "braces": "^3.0.2",
+ "picomatch": "^2.3.1"
+ },
+ "engines": {
+ "node": ">=8.6"
+ }
+ },
+ "node_modules/miller-rabin": {
+ "version": "4.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "bn.js": "^4.0.0",
+ "brorand": "^1.0.1"
+ },
+ "bin": {
+ "miller-rabin": "bin/miller-rabin"
+ }
+ },
+ "node_modules/miller-rabin/node_modules/bn.js": {
+ "version": "4.12.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/mime": {
+ "version": "1.6.0",
+ "license": "MIT",
+ "bin": {
+ "mime": "cli.js"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/mime-db": {
+ "version": "1.52.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mime-types": {
+ "version": "2.1.35",
+ "license": "MIT",
+ "dependencies": {
+ "mime-db": "1.52.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mimic-fn": {
+ "version": "2.1.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/mimic-response": {
+ "version": "2.1.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/minimalistic-assert": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/minimalistic-crypto-utils": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/minimatch": {
+ "version": "3.1.2",
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/minimist": {
+ "version": "1.2.6",
+ "license": "MIT"
+ },
+ "node_modules/minipass": {
+ "version": "3.3.4",
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/minipass/node_modules/yallist": {
+ "version": "4.0.0",
+ "license": "ISC"
+ },
+ "node_modules/minizlib": {
+ "version": "2.1.2",
+ "license": "MIT",
+ "dependencies": {
+ "minipass": "^3.0.0",
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/minizlib/node_modules/yallist": {
+ "version": "4.0.0",
+ "license": "ISC"
+ },
+ "node_modules/mississippi": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "concat-stream": "^1.5.0",
+ "duplexify": "^3.4.2",
+ "end-of-stream": "^1.1.0",
+ "flush-write-stream": "^1.0.0",
+ "from2": "^2.1.0",
+ "parallel-transform": "^1.1.0",
+ "pump": "^3.0.0",
+ "pumpify": "^1.3.3",
+ "stream-each": "^1.1.0",
+ "through2": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/mississippi/node_modules/concat-stream": {
+ "version": "1.6.2",
+ "dev": true,
+ "engines": [
+ "node >= 0.8"
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "buffer-from": "^1.0.0",
+ "inherits": "^2.0.3",
+ "readable-stream": "^2.2.2",
+ "typedarray": "^0.0.6"
+ }
+ },
+ "node_modules/mississippi/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/mississippi/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/mississippi/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/mississippi/node_modules/through2": {
+ "version": "2.0.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "node_modules/mississippi/node_modules/xtend": {
+ "version": "4.0.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4"
+ }
+ },
+ "node_modules/mixin-deep": {
+ "version": "1.3.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "for-in": "^1.0.2",
+ "is-extendable": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/mixin-deep/node_modules/is-extendable": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-plain-object": "^2.0.4"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/mixin-deep/node_modules/is-plain-object": {
+ "version": "2.0.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "isobject": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/mkdirp": {
+ "version": "0.5.6",
+ "license": "MIT",
+ "dependencies": {
+ "minimist": "^1.2.6"
+ },
+ "bin": {
+ "mkdirp": "bin/cmd.js"
+ }
+ },
+ "node_modules/mkdirp-classic": {
+ "version": "0.5.3",
+ "license": "MIT"
+ },
+ "node_modules/mktmpdir": {
+ "version": "0.1.1",
+ "license": "MIT",
+ "dependencies": {
+ "rimraf": "~2.2.8"
+ }
+ },
+ "node_modules/mktmpdir/node_modules/rimraf": {
+ "version": "2.2.8",
+ "license": "MIT",
+ "bin": {
+ "rimraf": "bin.js"
+ }
+ },
+ "node_modules/mocha": {
+ "version": "2.5.3",
+ "license": "MIT",
+ "dependencies": {
+ "commander": "2.3.0",
+ "debug": "2.2.0",
+ "diff": "1.4.0",
+ "escape-string-regexp": "1.0.2",
+ "glob": "3.2.11",
+ "growl": "1.9.2",
+ "jade": "0.26.3",
+ "mkdirp": "0.5.1",
+ "supports-color": "1.2.0",
+ "to-iso-string": "0.0.2"
+ },
+ "bin": {
+ "_mocha": "bin/_mocha",
+ "mocha": "bin/mocha"
+ },
+ "engines": {
+ "node": ">= 0.8.x"
+ }
+ },
+ "node_modules/mocha/node_modules/commander": {
+ "version": "2.3.0",
+ "engines": {
+ "node": ">= 0.6.x"
+ }
+ },
+ "node_modules/mocha/node_modules/debug": {
+ "version": "2.2.0",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "0.7.1"
+ }
+ },
+ "node_modules/mocha/node_modules/escape-string-regexp": {
+ "version": "1.0.2",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/mocha/node_modules/glob": {
+ "version": "3.2.11",
+ "license": "BSD",
+ "dependencies": {
+ "inherits": "2",
+ "minimatch": "0.3"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/mocha/node_modules/lru-cache": {
+ "version": "2.7.3",
+ "license": "ISC"
+ },
+ "node_modules/mocha/node_modules/minimatch": {
+ "version": "0.3.0",
+ "license": "MIT",
+ "dependencies": {
+ "lru-cache": "2",
+ "sigmund": "~1.0.0"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/mocha/node_modules/minimist": {
+ "version": "0.0.8",
+ "license": "MIT"
+ },
+ "node_modules/mocha/node_modules/mkdirp": {
+ "version": "0.5.1",
+ "license": "MIT",
+ "dependencies": {
+ "minimist": "0.0.8"
+ },
+ "bin": {
+ "mkdirp": "bin/cmd.js"
+ }
+ },
+ "node_modules/mocha/node_modules/ms": {
+ "version": "0.7.1"
+ },
+ "node_modules/mocha/node_modules/supports-color": {
+ "version": "1.2.0",
+ "license": "MIT",
+ "bin": {
+ "supports-color": "cli.js"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/move-concurrently": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "aproba": "^1.1.1",
+ "copy-concurrently": "^1.0.0",
+ "fs-write-stream-atomic": "^1.0.8",
+ "mkdirp": "^0.5.1",
+ "rimraf": "^2.5.4",
+ "run-queue": "^1.0.3"
+ }
+ },
+ "node_modules/move-concurrently/node_modules/rimraf": {
+ "version": "2.7.1",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "glob": "^7.1.3"
+ },
+ "bin": {
+ "rimraf": "bin.js"
+ }
+ },
+ "node_modules/ms": {
+ "version": "2.0.0",
+ "license": "MIT"
+ },
+ "node_modules/msgpack-js": {
+ "version": "0.3.0",
+ "dependencies": {
+ "bops": "~0.0.6"
+ }
+ },
+ "node_modules/msgpack-js/node_modules/base64-js": {
+ "version": "0.0.2",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/msgpack-js/node_modules/bops": {
+ "version": "0.0.7",
+ "license": "MIT",
+ "dependencies": {
+ "base64-js": "0.0.2",
+ "to-utf8": "0.0.1"
+ }
+ },
+ "node_modules/msgpack-stream": {
+ "version": "0.0.13",
+ "license": "MIT",
+ "dependencies": {
+ "bops": "1.0.0",
+ "msgpack-js": "0.3.0",
+ "through": "2.3.4"
+ }
+ },
+ "node_modules/msgpack-stream/node_modules/through": {
+ "version": "2.3.4",
+ "license": "MIT"
+ },
+ "node_modules/msgpack5": {
+ "version": "4.5.1",
+ "license": "MIT",
+ "dependencies": {
+ "bl": "^2.0.1",
+ "inherits": "^2.0.3",
+ "readable-stream": "^2.3.6",
+ "safe-buffer": "^5.1.2"
+ }
+ },
+ "node_modules/msgpack5/node_modules/isarray": {
+ "version": "1.0.0",
+ "license": "MIT"
+ },
+ "node_modules/msgpack5/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/msgpack5/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/multicast-dns": {
+ "version": "6.2.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "dns-packet": "^1.3.1",
+ "thunky": "^1.0.2"
+ },
+ "bin": {
+ "multicast-dns": "cli.js"
+ }
+ },
+ "node_modules/multicast-dns-service-types": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/multipipe": {
+ "version": "0.1.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "duplexer2": "0.0.2"
+ }
+ },
+ "node_modules/mustache": {
+ "version": "4.2.0",
+ "license": "MIT",
+ "bin": {
+ "mustache": "bin/mustache"
+ }
+ },
+ "node_modules/mute-stdout": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/mux-demux": {
+ "version": "3.7.9",
+ "dependencies": {
+ "duplex": "~1.0.0",
+ "json-buffer": "~2.0.4",
+ "msgpack-stream": "~0.0.10",
+ "stream-combiner": "0.0.2",
+ "stream-serializer": "~1.1.1",
+ "through": "~2.3.1",
+ "xtend": "~1.0.3"
+ }
+ },
+ "node_modules/mux-demux/node_modules/json-buffer": {
+ "version": "2.0.11",
+ "license": "MIT"
+ },
+ "node_modules/mysql": {
+ "version": "2.18.1",
+ "license": "MIT",
+ "dependencies": {
+ "bignumber.js": "9.0.0",
+ "readable-stream": "2.3.7",
+ "safe-buffer": "5.1.2",
+ "sqlstring": "2.3.1"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mysql/node_modules/bignumber.js": {
+ "version": "9.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/mysql/node_modules/isarray": {
+ "version": "1.0.0",
+ "license": "MIT"
+ },
+ "node_modules/mysql/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/mysql/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/mysql2": {
+ "version": "1.7.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "denque": "^1.4.1",
+ "generate-function": "^2.3.1",
+ "iconv-lite": "^0.5.0",
+ "long": "^4.0.0",
+ "lru-cache": "^5.1.1",
+ "named-placeholders": "^1.1.2",
+ "seq-queue": "^0.0.5",
+ "sqlstring": "^2.3.1"
+ },
+ "engines": {
+ "node": ">= 8.0"
+ }
+ },
+ "node_modules/mysql2/node_modules/iconv-lite": {
+ "version": "0.5.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/named-placeholders": {
+ "version": "1.1.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "lru-cache": "^4.1.3"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/named-placeholders/node_modules/lru-cache": {
+ "version": "4.1.5",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "pseudomap": "^1.0.2",
+ "yallist": "^2.1.2"
+ }
+ },
+ "node_modules/named-placeholders/node_modules/yallist": {
+ "version": "2.1.2",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/nan": {
+ "version": "2.15.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/nanoid": {
+ "version": "2.1.11",
+ "license": "MIT"
+ },
+ "node_modules/nanomatch": {
+ "version": "1.2.13",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "arr-diff": "^4.0.0",
+ "array-unique": "^0.3.2",
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "fragment-cache": "^0.2.1",
+ "is-windows": "^1.0.2",
+ "kind-of": "^6.0.2",
+ "object.pick": "^1.3.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/napi-build-utils": {
+ "version": "1.0.2",
+ "license": "MIT"
+ },
+ "node_modules/natural-compare": {
+ "version": "1.4.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/negotiator": {
+ "version": "0.6.3",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/neo-async": {
+ "version": "2.6.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/next-tick": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/nice-try": {
+ "version": "1.0.5",
+ "license": "MIT"
+ },
+ "node_modules/no-case": {
+ "version": "2.3.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "lower-case": "^1.1.1"
+ }
+ },
+ "node_modules/nocache": {
+ "version": "2.1.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/node-abi": {
+ "version": "3.28.0",
+ "license": "MIT",
+ "dependencies": {
+ "semver": "^7.3.5"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/node-abi/node_modules/lru-cache": {
+ "version": "6.0.0",
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/node-abi/node_modules/semver": {
+ "version": "7.3.8",
+ "license": "ISC",
+ "dependencies": {
+ "lru-cache": "^6.0.0"
+ },
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/node-abi/node_modules/yallist": {
+ "version": "4.0.0",
+ "license": "ISC"
+ },
+ "node_modules/node-addon-api": {
+ "version": "5.0.0",
+ "license": "MIT"
+ },
+ "node_modules/node-domexception": {
+ "version": "1.0.0",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/jimmywarting"
+ },
+ {
+ "type": "github",
+ "url": "https://paypal.me/jimmywarting"
+ }
+ ],
+ "license": "MIT",
+ "engines": {
+ "node": ">=10.5.0"
+ }
+ },
+ "node_modules/node-fetch": {
+ "version": "2.6.7",
+ "license": "MIT",
+ "dependencies": {
+ "whatwg-url": "^5.0.0"
+ },
+ "engines": {
+ "node": "4.x || >=6.0.0"
+ },
+ "peerDependencies": {
+ "encoding": "^0.1.0"
+ },
+ "peerDependenciesMeta": {
+ "encoding": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/node-forge": {
+ "version": "0.10.0",
+ "license": "(BSD-3-Clause OR GPL-2.0)",
+ "engines": {
+ "node": ">= 6.0.0"
+ }
+ },
+ "node_modules/node-gyp": {
+ "version": "3.8.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fstream": "^1.0.0",
+ "glob": "^7.0.3",
+ "graceful-fs": "^4.1.2",
+ "mkdirp": "^0.5.0",
+ "nopt": "2 || 3",
+ "npmlog": "0 || 1 || 2 || 3 || 4",
+ "osenv": "0",
+ "request": "^2.87.0",
+ "rimraf": "2",
+ "semver": "~5.3.0",
+ "tar": "^2.0.0",
+ "which": "1"
+ },
+ "bin": {
+ "node-gyp": "bin/node-gyp.js"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/node-gyp/node_modules/nopt": {
+ "version": "3.0.6",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "abbrev": "1"
+ },
+ "bin": {
+ "nopt": "bin/nopt.js"
+ }
+ },
+ "node_modules/node-gyp/node_modules/rimraf": {
+ "version": "2.7.1",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "glob": "^7.1.3"
+ },
+ "bin": {
+ "rimraf": "bin.js"
+ }
+ },
+ "node_modules/node-gyp/node_modules/which": {
+ "version": "1.3.1",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "which": "bin/which"
+ }
+ },
+ "node_modules/node-int64": {
+ "version": "0.4.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/node-libs-browser": {
+ "version": "2.2.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "assert": "^1.1.1",
+ "browserify-zlib": "^0.2.0",
+ "buffer": "^4.3.0",
+ "console-browserify": "^1.1.0",
+ "constants-browserify": "^1.0.0",
+ "crypto-browserify": "^3.11.0",
+ "domain-browser": "^1.1.1",
+ "events": "^3.0.0",
+ "https-browserify": "^1.0.0",
+ "os-browserify": "^0.3.0",
+ "path-browserify": "0.0.1",
+ "process": "^0.11.10",
+ "punycode": "^1.2.4",
+ "querystring-es3": "^0.2.0",
+ "readable-stream": "^2.3.3",
+ "stream-browserify": "^2.0.1",
+ "stream-http": "^2.7.2",
+ "string_decoder": "^1.0.0",
+ "timers-browserify": "^2.0.4",
+ "tty-browserify": "0.0.0",
+ "url": "^0.11.0",
+ "util": "^0.11.0",
+ "vm-browserify": "^1.0.1"
+ }
+ },
+ "node_modules/node-libs-browser/node_modules/events": {
+ "version": "3.3.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.x"
+ }
+ },
+ "node_modules/node-libs-browser/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/node-libs-browser/node_modules/punycode": {
+ "version": "1.4.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/node-libs-browser/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/node-libs-browser/node_modules/readable-stream/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/node-libs-browser/node_modules/string_decoder": {
+ "version": "1.3.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.2.0"
+ }
+ },
+ "node_modules/node-libs-browser/node_modules/string_decoder/node_modules/safe-buffer": {
+ "version": "5.2.1",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/node-libs-browser/node_modules/url": {
+ "version": "0.11.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "punycode": "1.3.2",
+ "querystring": "0.2.0"
+ }
+ },
+ "node_modules/node-libs-browser/node_modules/url/node_modules/punycode": {
+ "version": "1.3.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/node-notifier": {
+ "version": "8.0.2",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "growly": "^1.3.0",
+ "is-wsl": "^2.2.0",
+ "semver": "^7.3.2",
+ "shellwords": "^0.1.1",
+ "uuid": "^8.3.0",
+ "which": "^2.0.2"
+ }
+ },
+ "node_modules/node-notifier/node_modules/lru-cache": {
+ "version": "6.0.0",
+ "dev": true,
+ "license": "ISC",
+ "optional": true,
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/node-notifier/node_modules/semver": {
+ "version": "7.3.5",
+ "dev": true,
+ "license": "ISC",
+ "optional": true,
+ "dependencies": {
+ "lru-cache": "^6.0.0"
+ },
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/node-notifier/node_modules/uuid": {
+ "version": "8.3.2",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "bin": {
+ "uuid": "dist/bin/uuid"
+ }
+ },
+ "node_modules/node-notifier/node_modules/yallist": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "ISC",
+ "optional": true
+ },
+ "node_modules/node-releases": {
+ "version": "2.0.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/node-sass": {
+ "version": "4.14.1",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "dependencies": {
+ "async-foreach": "^0.1.3",
+ "chalk": "^1.1.1",
+ "cross-spawn": "^3.0.0",
+ "gaze": "^1.0.0",
+ "get-stdin": "^4.0.1",
+ "glob": "^7.0.3",
+ "in-publish": "^2.0.0",
+ "lodash": "^4.17.15",
+ "meow": "^3.7.0",
+ "mkdirp": "^0.5.1",
+ "nan": "^2.13.2",
+ "node-gyp": "^3.8.0",
+ "npmlog": "^4.0.0",
+ "request": "^2.88.0",
+ "sass-graph": "2.2.5",
+ "stdout-stream": "^1.4.0",
+ "true-case-path": "^1.0.2"
+ },
+ "bin": {
+ "node-sass": "bin/node-sass"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/node-sass/node_modules/ansi-styles": {
+ "version": "2.2.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/node-sass/node_modules/chalk": {
+ "version": "1.1.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^2.2.1",
+ "escape-string-regexp": "^1.0.2",
+ "has-ansi": "^2.0.0",
+ "strip-ansi": "^3.0.0",
+ "supports-color": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/node-sass/node_modules/cross-spawn": {
+ "version": "3.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "lru-cache": "^4.0.1",
+ "which": "^1.2.9"
+ }
+ },
+ "node_modules/node-sass/node_modules/escape-string-regexp": {
+ "version": "1.0.5",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/node-sass/node_modules/lru-cache": {
+ "version": "4.1.5",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "pseudomap": "^1.0.2",
+ "yallist": "^2.1.2"
+ }
+ },
+ "node_modules/node-sass/node_modules/supports-color": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/node-sass/node_modules/which": {
+ "version": "1.3.1",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "which": "bin/which"
+ }
+ },
+ "node_modules/node-sass/node_modules/yallist": {
+ "version": "2.1.2",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/node-ssh": {
+ "version": "11.1.1",
+ "license": "MIT",
+ "dependencies": {
+ "make-dir": "^3.1.0",
+ "sb-promise-queue": "^2.1.0",
+ "sb-scandir": "^3.1.0",
+ "shell-escape": "^0.2.0",
+ "ssh2": "^0.8.9"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/node-ssh/node_modules/make-dir": {
+ "version": "3.1.0",
+ "license": "MIT",
+ "dependencies": {
+ "semver": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/node-ssh/node_modules/semver": {
+ "version": "6.3.0",
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/node.extend": {
+ "version": "2.0.2",
+ "dev": true,
+ "license": "(MIT OR GPL-2.0)",
+ "dependencies": {
+ "has": "^1.0.3",
+ "is": "^3.2.1"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/nodemailer": {
+ "version": "6.7.3",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/nodemailer-direct-transport": {
+ "version": "3.3.2",
+ "license": "MIT",
+ "dependencies": {
+ "nodemailer-shared": "1.1.0",
+ "smtp-connection": "2.12.0"
+ }
+ },
+ "node_modules/nodemailer-fetch": {
+ "version": "1.6.0",
+ "license": "MIT"
+ },
+ "node_modules/nodemailer-shared": {
+ "version": "1.1.0",
+ "license": "MIT",
+ "dependencies": {
+ "nodemailer-fetch": "1.6.0"
+ }
+ },
+ "node_modules/nodemailer-stub-transport": {
+ "version": "1.1.0",
+ "license": "MIT"
+ },
+ "node_modules/nodemon": {
+ "version": "2.0.19",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "dependencies": {
+ "chokidar": "^3.5.2",
+ "debug": "^3.2.7",
+ "ignore-by-default": "^1.0.1",
+ "minimatch": "^3.0.4",
+ "pstree.remy": "^1.1.8",
+ "semver": "^5.7.1",
+ "simple-update-notifier": "^1.0.7",
+ "supports-color": "^5.5.0",
+ "touch": "^3.1.0",
+ "undefsafe": "^2.0.5"
+ },
+ "bin": {
+ "nodemon": "bin/nodemon.js"
+ },
+ "engines": {
+ "node": ">=8.10.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/nodemon"
+ }
+ },
+ "node_modules/nodemon/node_modules/binary-extensions": {
+ "version": "2.2.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/nodemon/node_modules/chokidar": {
+ "version": "3.5.3",
+ "dev": true,
+ "funding": [
+ {
+ "type": "individual",
+ "url": "https://paulmillr.com/funding/"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "anymatch": "~3.1.2",
+ "braces": "~3.0.2",
+ "glob-parent": "~5.1.2",
+ "is-binary-path": "~2.1.0",
+ "is-glob": "~4.0.1",
+ "normalize-path": "~3.0.0",
+ "readdirp": "~3.6.0"
+ },
+ "engines": {
+ "node": ">= 8.10.0"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.2"
+ }
+ },
+ "node_modules/nodemon/node_modules/debug": {
+ "version": "3.2.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.1"
+ }
+ },
+ "node_modules/nodemon/node_modules/has-flag": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/nodemon/node_modules/is-binary-path": {
+ "version": "2.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "binary-extensions": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/nodemon/node_modules/ms": {
+ "version": "2.1.3",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/nodemon/node_modules/readdirp": {
+ "version": "3.6.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "picomatch": "^2.2.1"
+ },
+ "engines": {
+ "node": ">=8.10.0"
+ }
+ },
+ "node_modules/nodemon/node_modules/semver": {
+ "version": "5.7.1",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver"
+ }
+ },
+ "node_modules/nodemon/node_modules/supports-color": {
+ "version": "5.5.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-flag": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/nopt": {
+ "version": "1.0.10",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "abbrev": "1"
+ },
+ "bin": {
+ "nopt": "bin/nopt.js"
+ }
+ },
+ "node_modules/normalize-package-data": {
+ "version": "2.5.0",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "hosted-git-info": "^2.1.4",
+ "resolve": "^1.10.0",
+ "semver": "2 || 3 || 4 || 5",
+ "validate-npm-package-license": "^3.0.1"
+ }
+ },
+ "node_modules/normalize-path": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/normalize-url": {
+ "version": "6.1.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/now-and-later": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "once": "^1.3.2"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/npm-run-path": {
+ "version": "4.0.1",
+ "license": "MIT",
+ "dependencies": {
+ "path-key": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/npmlog": {
+ "version": "4.1.2",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "are-we-there-yet": "~1.1.2",
+ "console-control-strings": "~1.1.0",
+ "gauge": "~2.7.3",
+ "set-blocking": "~2.0.0"
+ }
+ },
+ "node_modules/number-is-nan": {
+ "version": "1.0.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/nwsapi": {
+ "version": "2.2.0",
+ "license": "MIT"
+ },
+ "node_modules/oauth-sign": {
+ "version": "0.9.0",
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/object-assign": {
+ "version": "4.1.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object-copy": {
+ "version": "0.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "copy-descriptor": "^0.1.0",
+ "define-property": "^0.2.5",
+ "kind-of": "^3.0.3"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object-copy/node_modules/define-property": {
+ "version": "0.2.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-descriptor": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object-copy/node_modules/kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-buffer": "^1.1.5"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object-diff": {
+ "version": "0.0.4",
+ "license": "MIT"
+ },
+ "node_modules/object-inspect": {
+ "version": "1.12.0",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/object-is": {
+ "version": "1.1.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.2",
+ "define-properties": "^1.1.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/object-keys": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/object-visit": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "isobject": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object.assign": {
+ "version": "4.1.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.0",
+ "define-properties": "^1.1.3",
+ "has-symbols": "^1.0.1",
+ "object-keys": "^1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/object.defaults": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "array-each": "^1.0.1",
+ "array-slice": "^1.0.0",
+ "for-own": "^1.0.0",
+ "isobject": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object.getownpropertydescriptors": {
+ "version": "2.1.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.2",
+ "define-properties": "^1.1.3",
+ "es-abstract": "^1.19.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/object.map": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "for-own": "^1.0.0",
+ "make-iterator": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object.pick": {
+ "version": "1.3.0",
+ "license": "MIT",
+ "dependencies": {
+ "isobject": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object.reduce": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "for-own": "^1.0.0",
+ "make-iterator": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/obuf": {
+ "version": "1.1.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/on-finished": {
+ "version": "2.3.0",
+ "license": "MIT",
+ "dependencies": {
+ "ee-first": "1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/on-headers": {
+ "version": "1.0.2",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/once": {
+ "version": "1.4.0",
+ "license": "ISC",
+ "dependencies": {
+ "wrappy": "1"
+ }
+ },
+ "node_modules/onetime": {
+ "version": "5.1.2",
+ "license": "MIT",
+ "dependencies": {
+ "mimic-fn": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/opn": {
+ "version": "5.5.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-wsl": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/opn/node_modules/is-wsl": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/optional": {
+ "version": "0.1.4",
+ "license": "MIT"
+ },
+ "node_modules/optionator": {
+ "version": "0.9.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "deep-is": "^0.1.3",
+ "fast-levenshtein": "^2.0.6",
+ "levn": "^0.4.1",
+ "prelude-ls": "^1.2.1",
+ "type-check": "^0.4.0",
+ "word-wrap": "^1.2.3"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/options": {
+ "version": "0.0.6",
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/ordered-read-streams": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "readable-stream": "^2.0.1"
+ }
+ },
+ "node_modules/ordered-read-streams/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/ordered-read-streams/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/ordered-read-streams/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/original": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "url-parse": "^1.4.3"
+ }
+ },
+ "node_modules/os-browserify": {
+ "version": "0.3.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/os-homedir": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/os-locale": {
+ "version": "5.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "execa": "^4.0.0",
+ "lcid": "^3.0.0",
+ "mem": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/os-tmpdir": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/osenv": {
+ "version": "0.1.5",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "os-homedir": "^1.0.0",
+ "os-tmpdir": "^1.0.0"
+ }
+ },
+ "node_modules/p-cancelable": {
+ "version": "2.1.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/p-defer": {
+ "version": "1.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/p-each-series": {
+ "version": "2.2.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/p-event": {
+ "version": "4.2.0",
+ "license": "MIT",
+ "dependencies": {
+ "p-timeout": "^3.1.0"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/p-finally": {
+ "version": "1.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/p-is-promise": {
+ "version": "2.1.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/p-limit": {
+ "version": "2.3.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-try": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/p-locate": {
+ "version": "4.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-limit": "^2.2.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/p-map": {
+ "version": "2.1.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/p-queue": {
+ "version": "1.2.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/p-retry": {
+ "version": "3.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "retry": "^0.12.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/p-timeout": {
+ "version": "3.2.0",
+ "license": "MIT",
+ "dependencies": {
+ "p-finally": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/p-try": {
+ "version": "2.2.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/package-json": {
+ "version": "6.5.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "got": "^9.6.0",
+ "registry-auth-token": "^4.0.0",
+ "registry-url": "^5.0.0",
+ "semver": "^6.2.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/package-json/node_modules/@sindresorhus/is": {
+ "version": "0.14.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/package-json/node_modules/@szmarczak/http-timer": {
+ "version": "1.1.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "defer-to-connect": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/package-json/node_modules/cacheable-request": {
+ "version": "6.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "clone-response": "^1.0.2",
+ "get-stream": "^5.1.0",
+ "http-cache-semantics": "^4.0.0",
+ "keyv": "^3.0.0",
+ "lowercase-keys": "^2.0.0",
+ "normalize-url": "^4.1.0",
+ "responselike": "^1.0.2"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/package-json/node_modules/cacheable-request/node_modules/get-stream": {
+ "version": "5.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "pump": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/package-json/node_modules/cacheable-request/node_modules/lowercase-keys": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/package-json/node_modules/decompress-response": {
+ "version": "3.3.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "mimic-response": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/package-json/node_modules/defer-to-connect": {
+ "version": "1.1.3",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/package-json/node_modules/get-stream": {
+ "version": "4.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "pump": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/package-json/node_modules/got": {
+ "version": "9.6.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@sindresorhus/is": "^0.14.0",
+ "@szmarczak/http-timer": "^1.1.2",
+ "cacheable-request": "^6.0.0",
+ "decompress-response": "^3.3.0",
+ "duplexer3": "^0.1.4",
+ "get-stream": "^4.1.0",
+ "lowercase-keys": "^1.0.1",
+ "mimic-response": "^1.0.1",
+ "p-cancelable": "^1.0.0",
+ "to-readable-stream": "^1.0.0",
+ "url-parse-lax": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8.6"
+ }
+ },
+ "node_modules/package-json/node_modules/json-buffer": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/package-json/node_modules/keyv": {
+ "version": "3.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "json-buffer": "3.0.0"
+ }
+ },
+ "node_modules/package-json/node_modules/lowercase-keys": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/package-json/node_modules/mimic-response": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/package-json/node_modules/normalize-url": {
+ "version": "4.5.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/package-json/node_modules/p-cancelable": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/package-json/node_modules/responselike": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "lowercase-keys": "^1.0.0"
+ }
+ },
+ "node_modules/package-json/node_modules/semver": {
+ "version": "6.3.0",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/package-json/node_modules/to-readable-stream": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/pako": {
+ "version": "1.0.11",
+ "license": "(MIT AND Zlib)"
+ },
+ "node_modules/parallel-transform": {
+ "version": "1.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cyclist": "^1.0.1",
+ "inherits": "^2.0.3",
+ "readable-stream": "^2.1.5"
+ }
+ },
+ "node_modules/parallel-transform/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/parallel-transform/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/parallel-transform/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/param-case": {
+ "version": "2.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "no-case": "^2.2.0"
+ }
+ },
+ "node_modules/parent-module": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "callsites": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/parse-asn1": {
+ "version": "5.1.6",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "asn1.js": "^5.2.0",
+ "browserify-aes": "^1.0.0",
+ "evp_bytestokey": "^1.0.0",
+ "pbkdf2": "^3.0.3",
+ "safe-buffer": "^5.1.1"
+ }
+ },
+ "node_modules/parse-filepath": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-absolute": "^1.0.0",
+ "map-cache": "^0.2.0",
+ "path-root": "^0.1.1"
+ },
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/parse-json": {
+ "version": "2.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "error-ex": "^1.2.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/parse-node-version": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/parse-passwd": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/parse5": {
+ "version": "6.0.1",
+ "license": "MIT"
+ },
+ "node_modules/parseurl": {
+ "version": "1.3.3",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/pascal-case": {
+ "version": "3.1.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "no-case": "^3.0.4",
+ "tslib": "^2.0.3"
+ }
+ },
+ "node_modules/pascal-case/node_modules/lower-case": {
+ "version": "2.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.0.3"
+ }
+ },
+ "node_modules/pascal-case/node_modules/no-case": {
+ "version": "3.0.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "lower-case": "^2.0.2",
+ "tslib": "^2.0.3"
+ }
+ },
+ "node_modules/pascalcase": {
+ "version": "0.1.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/path-browserify": {
+ "version": "0.0.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/path-dirname": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/path-exists": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-is-absolute": {
+ "version": "1.0.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/path-is-inside": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "(WTFPL OR MIT)"
+ },
+ "node_modules/path-key": {
+ "version": "3.1.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-parse": {
+ "version": "1.0.7",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/path-root": {
+ "version": "0.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "path-root-regex": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/path-root-regex": {
+ "version": "0.1.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/path-to-regexp": {
+ "version": "0.1.7",
+ "license": "MIT"
+ },
+ "node_modules/path-type": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.1.2",
+ "pify": "^2.0.0",
+ "pinkie-promise": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/path-type/node_modules/pify": {
+ "version": "2.3.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/pbkdf2": {
+ "version": "3.1.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "create-hash": "^1.1.2",
+ "create-hmac": "^1.1.4",
+ "ripemd160": "^2.0.1",
+ "safe-buffer": "^5.0.1",
+ "sha.js": "^2.4.8"
+ },
+ "engines": {
+ "node": ">=0.12"
+ }
+ },
+ "node_modules/pend": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",
+ "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg=="
+ },
+ "node_modules/performance-now": {
+ "version": "2.1.0",
+ "license": "MIT"
+ },
+ "node_modules/picocolors": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/picomatch": {
+ "version": "2.3.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/pify": {
+ "version": "4.0.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/pinkie": {
+ "version": "2.0.4",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/pinkie-promise": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "pinkie": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/pirates": {
+ "version": "4.0.5",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/pkg-dir": {
+ "version": "4.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "find-up": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/pkgcloud": {
+ "version": "2.2.0",
+ "dependencies": {
+ "@google-cloud/storage": "^2.4.3",
+ "async": "^2.6.1",
+ "aws-sdk": "^2.382.0",
+ "errs": "^0.3.2",
+ "eventemitter2": "^5.0.1",
+ "fast-json-patch": "^2.1.0",
+ "filed-mimefix": "^0.1.3",
+ "ip": "^1.1.5",
+ "liboneandone": "^1.2.0",
+ "lodash": "^4.17.10",
+ "mime": "^2.4.1",
+ "qs": "^6.5.2",
+ "request": "^2.88.0",
+ "through2": "^3.0.1",
+ "url-join": "^4.0.0",
+ "xml2js": "^0.4.19"
+ },
+ "engines": {
+ "node": ">= 8.0.0"
+ }
+ },
+ "node_modules/pkgcloud/node_modules/mime": {
+ "version": "2.6.0",
+ "license": "MIT",
+ "bin": {
+ "mime": "cli.js"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/plugin-error": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-colors": "^1.0.1",
+ "arr-diff": "^4.0.0",
+ "arr-union": "^3.1.0",
+ "extend-shallow": "^3.0.2"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/plugin-error/node_modules/ansi-colors": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-wrap": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/portfinder": {
+ "version": "1.0.28",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "async": "^2.6.2",
+ "debug": "^3.1.1",
+ "mkdirp": "^0.5.5"
+ },
+ "engines": {
+ "node": ">= 0.12.0"
+ }
+ },
+ "node_modules/portfinder/node_modules/debug": {
+ "version": "3.2.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.1"
+ }
+ },
+ "node_modules/portfinder/node_modules/ms": {
+ "version": "2.1.3",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/posix-character-classes": {
+ "version": "0.1.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/posix-getopt": {
+ "version": "1.2.1",
+ "license": "MIT",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/postcss": {
+ "version": "7.0.39",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "picocolors": "^0.2.1",
+ "source-map": "^0.6.1"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ }
+ },
+ "node_modules/postcss-modules-extract-imports": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "postcss": "^7.0.5"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/postcss-modules-local-by-default": {
+ "version": "2.0.6",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "postcss": "^7.0.6",
+ "postcss-selector-parser": "^6.0.0",
+ "postcss-value-parser": "^3.3.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/postcss-modules-scope": {
+ "version": "2.2.0",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "postcss": "^7.0.6",
+ "postcss-selector-parser": "^6.0.0"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/postcss-modules-values": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "icss-replace-symbols": "^1.1.0",
+ "postcss": "^7.0.6"
+ }
+ },
+ "node_modules/postcss-selector-parser": {
+ "version": "6.0.9",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cssesc": "^3.0.0",
+ "util-deprecate": "^1.0.2"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/postcss-value-parser": {
+ "version": "3.3.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/postcss/node_modules/picocolors": {
+ "version": "0.2.1",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/postcss/node_modules/source-map": {
+ "version": "0.6.1",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/prebuild-install": {
+ "version": "7.1.1",
+ "license": "MIT",
+ "dependencies": {
+ "detect-libc": "^2.0.0",
+ "expand-template": "^2.0.3",
+ "github-from-package": "0.0.0",
+ "minimist": "^1.2.3",
+ "mkdirp-classic": "^0.5.3",
+ "napi-build-utils": "^1.0.1",
+ "node-abi": "^3.3.0",
+ "pump": "^3.0.0",
+ "rc": "^1.2.7",
+ "simple-get": "^4.0.0",
+ "tar-fs": "^2.0.0",
+ "tunnel-agent": "^0.6.0"
+ },
+ "bin": {
+ "prebuild-install": "bin.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/precond": {
+ "version": "0.2.3",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/prelude-ls": {
+ "version": "1.2.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/prepend-http": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/pretty-error": {
+ "version": "2.1.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "lodash": "^4.17.20",
+ "renderkid": "^2.0.4"
+ }
+ },
+ "node_modules/pretty-format": {
+ "version": "26.6.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jest/types": "^26.6.2",
+ "ansi-regex": "^5.0.0",
+ "ansi-styles": "^4.0.0",
+ "react-is": "^17.0.1"
+ },
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/pretty-format/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/pretty-hrtime": {
+ "version": "1.0.3",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/private": {
+ "version": "0.1.8",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/process": {
+ "version": "0.11.10",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6.0"
+ }
+ },
+ "node_modules/process-nextick-args": {
+ "version": "2.0.1",
+ "license": "MIT"
+ },
+ "node_modules/progress": {
+ "version": "2.0.3",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/promise-inflight": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/prompts": {
+ "version": "2.4.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kleur": "^3.0.3",
+ "sisteransi": "^1.0.5"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/proxy-addr": {
+ "version": "2.0.7",
+ "license": "MIT",
+ "dependencies": {
+ "forwarded": "0.2.0",
+ "ipaddr.js": "1.9.1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/proxy-from-env": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
+ "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="
+ },
+ "node_modules/prr": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/pseudomap": {
+ "version": "1.0.2",
+ "license": "ISC"
+ },
+ "node_modules/psl": {
+ "version": "1.8.0",
+ "license": "MIT"
+ },
+ "node_modules/pstree.remy": {
+ "version": "1.1.8",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/public-encrypt": {
+ "version": "4.0.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "bn.js": "^4.1.0",
+ "browserify-rsa": "^4.0.0",
+ "create-hash": "^1.1.0",
+ "parse-asn1": "^5.0.0",
+ "randombytes": "^2.0.1",
+ "safe-buffer": "^5.1.2"
+ }
+ },
+ "node_modules/public-encrypt/node_modules/bn.js": {
+ "version": "4.12.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/pump": {
+ "version": "3.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "end-of-stream": "^1.1.0",
+ "once": "^1.3.1"
+ }
+ },
+ "node_modules/pumpify": {
+ "version": "1.5.1",
+ "license": "MIT",
+ "dependencies": {
+ "duplexify": "^3.6.0",
+ "inherits": "^2.0.3",
+ "pump": "^2.0.0"
+ }
+ },
+ "node_modules/pumpify/node_modules/pump": {
+ "version": "2.0.1",
+ "license": "MIT",
+ "dependencies": {
+ "end-of-stream": "^1.1.0",
+ "once": "^1.3.1"
+ }
+ },
+ "node_modules/punycode": {
+ "version": "2.1.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/pupa": {
+ "version": "2.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "escape-goat": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/puppeteer": {
+ "version": "18.2.1",
+ "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-18.2.1.tgz",
+ "integrity": "sha512-7+UhmYa7wxPh2oMRwA++k8UGVDxh3YdWFB52r9C3tM81T6BU7cuusUSxImz0GEYSOYUKk/YzIhkQ6+vc0gHbxQ==",
+ "hasInstallScript": true,
+ "dependencies": {
+ "https-proxy-agent": "5.0.1",
+ "progress": "2.0.3",
+ "proxy-from-env": "1.1.0",
+ "puppeteer-core": "18.2.1"
+ },
+ "engines": {
+ "node": ">=14.1.0"
+ }
+ },
+ "node_modules/puppeteer-cluster": {
+ "version": "0.23.0",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.3.3"
+ },
+ "peerDependencies": {
+ "puppeteer": ">=1.5.0"
+ }
+ },
+ "node_modules/puppeteer-cluster/node_modules/debug": {
+ "version": "4.3.4",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/puppeteer-cluster/node_modules/ms": {
+ "version": "2.1.2",
+ "license": "MIT"
+ },
+ "node_modules/puppeteer-core": {
+ "version": "18.2.1",
+ "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-18.2.1.tgz",
+ "integrity": "sha512-MRtTAZfQTluz3U2oU/X2VqVWPcR1+94nbA2V6ZrSZRVEwLqZ8eclZ551qGFQD/vD2PYqHJwWOW/fpC721uznVw==",
+ "dependencies": {
+ "cross-fetch": "3.1.5",
+ "debug": "4.3.4",
+ "devtools-protocol": "0.0.1045489",
+ "extract-zip": "2.0.1",
+ "https-proxy-agent": "5.0.1",
+ "proxy-from-env": "1.1.0",
+ "rimraf": "3.0.2",
+ "tar-fs": "2.1.1",
+ "unbzip2-stream": "1.4.3",
+ "ws": "8.9.0"
+ },
+ "engines": {
+ "node": ">=14.1.0"
+ }
+ },
+ "node_modules/puppeteer-core/node_modules/agent-base": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
+ "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
+ "dependencies": {
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 6.0.0"
+ }
+ },
+ "node_modules/puppeteer-core/node_modules/debug": {
+ "version": "4.3.4",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
+ "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/puppeteer-core/node_modules/https-proxy-agent": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
+ "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
+ "dependencies": {
+ "agent-base": "6",
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/puppeteer-core/node_modules/ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
+ },
+ "node_modules/puppeteer-core/node_modules/ws": {
+ "version": "8.9.0",
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.9.0.tgz",
+ "integrity": "sha512-Ja7nszREasGaYUYCI2k4lCKIRTt+y7XuqVoHR44YpI49TtryyqbqvDMn5eqfW7e6HzTukDRIsXqzVHScqRcafg==",
+ "engines": {
+ "node": ">=10.0.0"
+ },
+ "peerDependencies": {
+ "bufferutil": "^4.0.1",
+ "utf-8-validate": "^5.0.2"
+ },
+ "peerDependenciesMeta": {
+ "bufferutil": {
+ "optional": true
+ },
+ "utf-8-validate": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/puppeteer/node_modules/agent-base": {
+ "version": "6.0.2",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 6.0.0"
+ }
+ },
+ "node_modules/puppeteer/node_modules/debug": {
+ "version": "4.3.4",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/puppeteer/node_modules/https-proxy-agent": {
+ "version": "5.0.1",
+ "license": "MIT",
+ "dependencies": {
+ "agent-base": "6",
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/puppeteer/node_modules/ms": {
+ "version": "2.1.2",
+ "license": "MIT"
+ },
+ "node_modules/qs": {
+ "version": "6.9.7",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/querystring": {
+ "version": "0.2.0",
+ "engines": {
+ "node": ">=0.4.x"
+ }
+ },
+ "node_modules/querystring-es3": {
+ "version": "0.2.1",
+ "dev": true,
+ "engines": {
+ "node": ">=0.4.x"
+ }
+ },
+ "node_modules/querystringify": {
+ "version": "2.2.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/randombytes": {
+ "version": "2.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "^5.1.0"
+ }
+ },
+ "node_modules/randomfill": {
+ "version": "1.0.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "randombytes": "^2.0.5",
+ "safe-buffer": "^5.1.0"
+ }
+ },
+ "node_modules/range-parser": {
+ "version": "1.2.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/raw-body": {
+ "version": "2.4.3",
+ "license": "MIT",
+ "dependencies": {
+ "bytes": "3.1.2",
+ "http-errors": "1.8.1",
+ "iconv-lite": "0.4.24",
+ "unpipe": "1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/raw-body/node_modules/bytes": {
+ "version": "3.1.2",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/raw-loader": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "loader-utils": "^1.1.0",
+ "schema-utils": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 6.9.0"
+ },
+ "peerDependencies": {
+ "webpack": "^4.3.0"
+ }
+ },
+ "node_modules/raw-loader/node_modules/json5": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "minimist": "^1.2.0"
+ },
+ "bin": {
+ "json5": "lib/cli.js"
+ }
+ },
+ "node_modules/raw-loader/node_modules/loader-utils": {
+ "version": "1.4.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "big.js": "^5.2.2",
+ "emojis-list": "^3.0.0",
+ "json5": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/raw-loader/node_modules/schema-utils": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ajv": "^6.1.0",
+ "ajv-errors": "^1.0.0",
+ "ajv-keywords": "^3.1.0"
+ },
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/rc": {
+ "version": "1.2.8",
+ "license": "(BSD-2-Clause OR MIT OR Apache-2.0)",
+ "dependencies": {
+ "deep-extend": "^0.6.0",
+ "ini": "~1.3.0",
+ "minimist": "^1.2.0",
+ "strip-json-comments": "~2.0.1"
+ },
+ "bin": {
+ "rc": "cli.js"
+ }
+ },
+ "node_modules/react-is": {
+ "version": "17.0.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/read-chunk": {
+ "version": "3.2.0",
+ "license": "MIT",
+ "dependencies": {
+ "pify": "^4.0.1",
+ "with-open-file": "^0.1.6"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/read-pkg": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "load-json-file": "^1.0.0",
+ "normalize-package-data": "^2.3.2",
+ "path-type": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/read-pkg-up": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "find-up": "^1.0.0",
+ "read-pkg": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/read-pkg-up/node_modules/find-up": {
+ "version": "1.1.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "path-exists": "^2.0.0",
+ "pinkie-promise": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/read-pkg-up/node_modules/path-exists": {
+ "version": "2.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "pinkie-promise": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/readable-stream": {
+ "version": "1.1.14",
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.1",
+ "isarray": "0.0.1",
+ "string_decoder": "~0.10.x"
+ }
+ },
+ "node_modules/readdirp": {
+ "version": "2.2.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.1.11",
+ "micromatch": "^3.1.10",
+ "readable-stream": "^2.0.2"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/readdirp/node_modules/braces": {
+ "version": "2.3.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "arr-flatten": "^1.1.0",
+ "array-unique": "^0.3.2",
+ "extend-shallow": "^2.0.1",
+ "fill-range": "^4.0.0",
+ "isobject": "^3.0.1",
+ "repeat-element": "^1.1.2",
+ "snapdragon": "^0.8.1",
+ "snapdragon-node": "^2.0.1",
+ "split-string": "^3.0.2",
+ "to-regex": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/readdirp/node_modules/braces/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/readdirp/node_modules/fill-range": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "extend-shallow": "^2.0.1",
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1",
+ "to-regex-range": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/readdirp/node_modules/fill-range/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/readdirp/node_modules/is-number": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kind-of": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/readdirp/node_modules/is-number/node_modules/kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-buffer": "^1.1.5"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/readdirp/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/readdirp/node_modules/micromatch": {
+ "version": "3.1.10",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "arr-diff": "^4.0.0",
+ "array-unique": "^0.3.2",
+ "braces": "^2.3.1",
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "extglob": "^2.0.4",
+ "fragment-cache": "^0.2.1",
+ "kind-of": "^6.0.2",
+ "nanomatch": "^1.2.9",
+ "object.pick": "^1.3.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/readdirp/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/readdirp/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/readdirp/node_modules/to-regex-range": {
+ "version": "2.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/recast": {
+ "version": "0.11.23",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ast-types": "0.9.6",
+ "esprima": "~3.1.0",
+ "private": "~0.1.5",
+ "source-map": "~0.5.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/recast/node_modules/esprima": {
+ "version": "3.1.3",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "bin": {
+ "esparse": "bin/esparse.js",
+ "esvalidate": "bin/esvalidate.js"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/rechoir": {
+ "version": "0.6.2",
+ "dev": true,
+ "dependencies": {
+ "resolve": "^1.1.6"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/redent": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "indent-string": "^2.1.0",
+ "strip-indent": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/referrer-policy": {
+ "version": "1.2.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/regenerate": {
+ "version": "1.4.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/regenerate-unicode-properties": {
+ "version": "10.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "regenerate": "^1.4.2"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/regenerator-runtime": {
+ "version": "0.13.9",
+ "license": "MIT"
+ },
+ "node_modules/regenerator-transform": {
+ "version": "0.14.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.8.4"
+ }
+ },
+ "node_modules/regex-not": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "extend-shallow": "^3.0.2",
+ "safe-regex": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/regexp.prototype.flags": {
+ "version": "1.4.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.2",
+ "define-properties": "^1.1.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/regexpp": {
+ "version": "3.2.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/mysticatea"
+ }
+ },
+ "node_modules/regexpu-core": {
+ "version": "5.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "regenerate": "^1.4.2",
+ "regenerate-unicode-properties": "^10.0.1",
+ "regjsgen": "^0.6.0",
+ "regjsparser": "^0.8.2",
+ "unicode-match-property-ecmascript": "^2.0.0",
+ "unicode-match-property-value-ecmascript": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/registry-auth-token": {
+ "version": "4.2.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "rc": "^1.2.8"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/registry-url": {
+ "version": "5.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "rc": "^1.2.8"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/regjsgen": {
+ "version": "0.6.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/regjsparser": {
+ "version": "0.8.4",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "jsesc": "~0.5.0"
+ },
+ "bin": {
+ "regjsparser": "bin/parser"
+ }
+ },
+ "node_modules/regjsparser/node_modules/jsesc": {
+ "version": "0.5.0",
+ "dev": true,
+ "bin": {
+ "jsesc": "bin/jsesc"
+ }
+ },
+ "node_modules/relateurl": {
+ "version": "0.2.7",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/remove-bom-buffer": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-buffer": "^1.1.5",
+ "is-utf8": "^0.2.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/remove-bom-stream": {
+ "version": "1.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "remove-bom-buffer": "^3.0.0",
+ "safe-buffer": "^5.1.0",
+ "through2": "^2.0.3"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/remove-bom-stream/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/remove-bom-stream/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/remove-bom-stream/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/remove-bom-stream/node_modules/through2": {
+ "version": "2.0.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "node_modules/remove-bom-stream/node_modules/xtend": {
+ "version": "4.0.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4"
+ }
+ },
+ "node_modules/remove-trailing-separator": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/renderkid": {
+ "version": "2.0.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "css-select": "^4.1.3",
+ "dom-converter": "^0.2.0",
+ "htmlparser2": "^6.1.0",
+ "lodash": "^4.17.21",
+ "strip-ansi": "^3.0.1"
+ }
+ },
+ "node_modules/renderkid/node_modules/css-select": {
+ "version": "4.3.0",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "boolbase": "^1.0.0",
+ "css-what": "^6.0.1",
+ "domhandler": "^4.3.1",
+ "domutils": "^2.8.0",
+ "nth-check": "^2.0.1"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/fb55"
+ }
+ },
+ "node_modules/renderkid/node_modules/css-what": {
+ "version": "6.0.1",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">= 6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/fb55"
+ }
+ },
+ "node_modules/renderkid/node_modules/dom-serializer": {
+ "version": "1.3.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "domelementtype": "^2.0.1",
+ "domhandler": "^4.2.0",
+ "entities": "^2.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1"
+ }
+ },
+ "node_modules/renderkid/node_modules/domelementtype": {
+ "version": "2.2.0",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/fb55"
+ }
+ ],
+ "license": "BSD-2-Clause"
+ },
+ "node_modules/renderkid/node_modules/domhandler": {
+ "version": "4.3.1",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "domelementtype": "^2.2.0"
+ },
+ "engines": {
+ "node": ">= 4"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/domhandler?sponsor=1"
+ }
+ },
+ "node_modules/renderkid/node_modules/domutils": {
+ "version": "2.8.0",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "dom-serializer": "^1.0.1",
+ "domelementtype": "^2.2.0",
+ "domhandler": "^4.2.0"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/domutils?sponsor=1"
+ }
+ },
+ "node_modules/renderkid/node_modules/entities": {
+ "version": "2.2.0",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "funding": {
+ "url": "https://github.com/fb55/entities?sponsor=1"
+ }
+ },
+ "node_modules/renderkid/node_modules/htmlparser2": {
+ "version": "6.1.0",
+ "dev": true,
+ "funding": [
+ "https://github.com/fb55/htmlparser2?sponsor=1",
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/fb55"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "domelementtype": "^2.0.1",
+ "domhandler": "^4.0.0",
+ "domutils": "^2.5.2",
+ "entities": "^2.0.0"
+ }
+ },
+ "node_modules/renderkid/node_modules/nth-check": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "boolbase": "^1.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/nth-check?sponsor=1"
+ }
+ },
+ "node_modules/repeat-element": {
+ "version": "1.1.4",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/repeat-string": {
+ "version": "1.6.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/repeating": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-finite": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/replace-ext": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/replace-homedir": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "homedir-polyfill": "^1.0.1",
+ "is-absolute": "^1.0.0",
+ "remove-trailing-separator": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/request": {
+ "version": "2.88.2",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "aws-sign2": "~0.7.0",
+ "aws4": "^1.8.0",
+ "caseless": "~0.12.0",
+ "combined-stream": "~1.0.6",
+ "extend": "~3.0.2",
+ "forever-agent": "~0.6.1",
+ "form-data": "~2.3.2",
+ "har-validator": "~5.1.3",
+ "http-signature": "~1.2.0",
+ "is-typedarray": "~1.0.0",
+ "isstream": "~0.1.2",
+ "json-stringify-safe": "~5.0.1",
+ "mime-types": "~2.1.19",
+ "oauth-sign": "~0.9.0",
+ "performance-now": "^2.1.0",
+ "qs": "~6.5.2",
+ "safe-buffer": "^5.1.2",
+ "tough-cookie": "~2.5.0",
+ "tunnel-agent": "^0.6.0",
+ "uuid": "^3.3.2"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/request/node_modules/form-data": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz",
+ "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==",
+ "dependencies": {
+ "asynckit": "^0.4.0",
+ "combined-stream": "^1.0.6",
+ "mime-types": "^2.1.12"
+ },
+ "engines": {
+ "node": ">= 0.12"
+ }
+ },
+ "node_modules/request/node_modules/qs": {
+ "version": "6.5.3",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.6"
+ }
+ },
+ "node_modules/require-directory": {
+ "version": "2.1.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/require-from-string": {
+ "version": "2.0.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/require-main-filename": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/require-yaml": {
+ "version": "0.0.1",
+ "license": "BSD",
+ "dependencies": {
+ "js-yaml": ""
+ }
+ },
+ "node_modules/requires-port": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/resolve": {
+ "version": "1.22.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-core-module": "^2.8.1",
+ "path-parse": "^1.0.7",
+ "supports-preserve-symlinks-flag": "^1.0.0"
+ },
+ "bin": {
+ "resolve": "bin/resolve"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/resolve-cwd": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "resolve-from": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/resolve-dir": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "expand-tilde": "^2.0.0",
+ "global-modules": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/resolve-from": {
+ "version": "5.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/resolve-options": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "value-or-function": "^3.0.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/resolve-url": {
+ "version": "0.2.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/responselike": {
+ "version": "2.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "lowercase-keys": "^2.0.0"
+ }
+ },
+ "node_modules/ret": {
+ "version": "0.1.15",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.12"
+ }
+ },
+ "node_modules/retry": {
+ "version": "0.12.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/retry-request": {
+ "version": "4.2.2",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.1.1",
+ "extend": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=8.10.0"
+ }
+ },
+ "node_modules/retry-request/node_modules/debug": {
+ "version": "4.3.4",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/retry-request/node_modules/ms": {
+ "version": "2.1.2",
+ "license": "MIT"
+ },
+ "node_modules/rfdc": {
+ "version": "1.3.0",
+ "license": "MIT"
+ },
+ "node_modules/rimraf": {
+ "version": "3.0.2",
+ "license": "ISC",
+ "dependencies": {
+ "glob": "^7.1.3"
+ },
+ "bin": {
+ "rimraf": "bin.js"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/ripemd160": {
+ "version": "2.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "hash-base": "^3.0.0",
+ "inherits": "^2.0.1"
+ }
+ },
+ "node_modules/rsvp": {
+ "version": "4.8.5",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "6.* || >= 7.*"
+ }
+ },
+ "node_modules/run-queue": {
+ "version": "1.0.3",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "aproba": "^1.1.1"
+ }
+ },
+ "node_modules/safe-buffer": {
+ "version": "5.1.2",
+ "license": "MIT"
+ },
+ "node_modules/safe-regex": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ret": "~0.1.10"
+ }
+ },
+ "node_modules/safer-buffer": {
+ "version": "2.1.2",
+ "license": "MIT"
+ },
+ "node_modules/sane": {
+ "version": "4.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@cnakazawa/watch": "^1.0.3",
+ "anymatch": "^2.0.0",
+ "capture-exit": "^2.0.0",
+ "exec-sh": "^0.3.2",
+ "execa": "^1.0.0",
+ "fb-watchman": "^2.0.0",
+ "micromatch": "^3.1.4",
+ "minimist": "^1.1.1",
+ "walker": "~1.0.5"
+ },
+ "bin": {
+ "sane": "src/cli.js"
+ },
+ "engines": {
+ "node": "6.* || 8.* || >= 10.*"
+ }
+ },
+ "node_modules/sane/node_modules/anymatch": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "micromatch": "^3.1.4",
+ "normalize-path": "^2.1.1"
+ }
+ },
+ "node_modules/sane/node_modules/braces": {
+ "version": "2.3.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "arr-flatten": "^1.1.0",
+ "array-unique": "^0.3.2",
+ "extend-shallow": "^2.0.1",
+ "fill-range": "^4.0.0",
+ "isobject": "^3.0.1",
+ "repeat-element": "^1.1.2",
+ "snapdragon": "^0.8.1",
+ "snapdragon-node": "^2.0.1",
+ "split-string": "^3.0.2",
+ "to-regex": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/sane/node_modules/braces/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/sane/node_modules/cross-spawn": {
+ "version": "6.0.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "nice-try": "^1.0.4",
+ "path-key": "^2.0.1",
+ "semver": "^5.5.0",
+ "shebang-command": "^1.2.0",
+ "which": "^1.2.9"
+ },
+ "engines": {
+ "node": ">=4.8"
+ }
+ },
+ "node_modules/sane/node_modules/execa": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cross-spawn": "^6.0.0",
+ "get-stream": "^4.0.0",
+ "is-stream": "^1.1.0",
+ "npm-run-path": "^2.0.0",
+ "p-finally": "^1.0.0",
+ "signal-exit": "^3.0.0",
+ "strip-eof": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/sane/node_modules/fill-range": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "extend-shallow": "^2.0.1",
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1",
+ "to-regex-range": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/sane/node_modules/fill-range/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/sane/node_modules/get-stream": {
+ "version": "4.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "pump": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/sane/node_modules/is-number": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kind-of": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/sane/node_modules/is-number/node_modules/kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-buffer": "^1.1.5"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/sane/node_modules/is-stream": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/sane/node_modules/micromatch": {
+ "version": "3.1.10",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "arr-diff": "^4.0.0",
+ "array-unique": "^0.3.2",
+ "braces": "^2.3.1",
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "extglob": "^2.0.4",
+ "fragment-cache": "^0.2.1",
+ "kind-of": "^6.0.2",
+ "nanomatch": "^1.2.9",
+ "object.pick": "^1.3.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/sane/node_modules/normalize-path": {
+ "version": "2.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "remove-trailing-separator": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/sane/node_modules/npm-run-path": {
+ "version": "2.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "path-key": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/sane/node_modules/path-key": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/sane/node_modules/semver": {
+ "version": "5.7.1",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver"
+ }
+ },
+ "node_modules/sane/node_modules/shebang-command": {
+ "version": "1.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "shebang-regex": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/sane/node_modules/shebang-regex": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/sane/node_modules/to-regex-range": {
+ "version": "2.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/sane/node_modules/which": {
+ "version": "1.3.1",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "which": "bin/which"
+ }
+ },
+ "node_modules/sass-graph": {
+ "version": "2.2.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "glob": "^7.0.0",
+ "lodash": "^4.0.0",
+ "scss-tokenizer": "^0.2.3",
+ "yargs": "^13.3.2"
+ },
+ "bin": {
+ "sassgraph": "bin/sassgraph"
+ }
+ },
+ "node_modules/sass-graph/node_modules/ansi-regex": {
+ "version": "4.1.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/sass-graph/node_modules/ansi-styles": {
+ "version": "3.2.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^1.9.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/sass-graph/node_modules/cliui": {
+ "version": "5.0.0",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "string-width": "^3.1.0",
+ "strip-ansi": "^5.2.0",
+ "wrap-ansi": "^5.1.0"
+ }
+ },
+ "node_modules/sass-graph/node_modules/color-convert": {
+ "version": "1.9.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "1.1.3"
+ }
+ },
+ "node_modules/sass-graph/node_modules/color-name": {
+ "version": "1.1.3",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/sass-graph/node_modules/emoji-regex": {
+ "version": "7.0.3",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/sass-graph/node_modules/find-up": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "locate-path": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/sass-graph/node_modules/is-fullwidth-code-point": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/sass-graph/node_modules/locate-path": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-locate": "^3.0.0",
+ "path-exists": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/sass-graph/node_modules/p-locate": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-limit": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/sass-graph/node_modules/path-exists": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/sass-graph/node_modules/string-width": {
+ "version": "3.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^7.0.1",
+ "is-fullwidth-code-point": "^2.0.0",
+ "strip-ansi": "^5.1.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/sass-graph/node_modules/strip-ansi": {
+ "version": "5.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^4.1.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/sass-graph/node_modules/wrap-ansi": {
+ "version": "5.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^3.2.0",
+ "string-width": "^3.0.0",
+ "strip-ansi": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/sass-graph/node_modules/yargs": {
+ "version": "13.3.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cliui": "^5.0.0",
+ "find-up": "^3.0.0",
+ "get-caller-file": "^2.0.1",
+ "require-directory": "^2.1.1",
+ "require-main-filename": "^2.0.0",
+ "set-blocking": "^2.0.0",
+ "string-width": "^3.0.0",
+ "which-module": "^2.0.0",
+ "y18n": "^4.0.0",
+ "yargs-parser": "^13.1.2"
+ }
+ },
+ "node_modules/sass-graph/node_modules/yargs-parser": {
+ "version": "13.1.2",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "camelcase": "^5.0.0",
+ "decamelize": "^1.2.0"
+ }
+ },
+ "node_modules/sass-loader": {
+ "version": "7.3.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "clone-deep": "^4.0.1",
+ "loader-utils": "^1.0.1",
+ "neo-async": "^2.5.0",
+ "pify": "^4.0.1",
+ "semver": "^6.3.0"
+ },
+ "engines": {
+ "node": ">= 6.9.0"
+ },
+ "peerDependencies": {
+ "webpack": "^3.0.0 || ^4.0.0"
+ }
+ },
+ "node_modules/sass-loader/node_modules/json5": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "minimist": "^1.2.0"
+ },
+ "bin": {
+ "json5": "lib/cli.js"
+ }
+ },
+ "node_modules/sass-loader/node_modules/loader-utils": {
+ "version": "1.4.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "big.js": "^5.2.2",
+ "emojis-list": "^3.0.0",
+ "json5": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/sass-loader/node_modules/semver": {
+ "version": "6.3.0",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/sax": {
+ "version": "1.2.4",
+ "license": "ISC"
+ },
+ "node_modules/saxes": {
+ "version": "5.0.1",
+ "license": "ISC",
+ "dependencies": {
+ "xmlchars": "^2.2.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/sb-promise-queue": {
+ "version": "2.1.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/sb-scandir": {
+ "version": "3.1.0",
+ "license": "MIT",
+ "dependencies": {
+ "sb-promise-queue": "^2.1.0"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/schema-utils": {
+ "version": "2.7.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/json-schema": "^7.0.5",
+ "ajv": "^6.12.4",
+ "ajv-keywords": "^3.5.2"
+ },
+ "engines": {
+ "node": ">= 8.9.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/webpack"
+ }
+ },
+ "node_modules/scss-tokenizer": {
+ "version": "0.2.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "js-base64": "^2.1.8",
+ "source-map": "^0.4.2"
+ }
+ },
+ "node_modules/scss-tokenizer/node_modules/source-map": {
+ "version": "0.4.4",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "amdefine": ">=0.0.4"
+ },
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/select-hose": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/selfsigned": {
+ "version": "1.10.14",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "node-forge": "^0.10.0"
+ }
+ },
+ "node_modules/semver": {
+ "version": "5.3.0",
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver"
+ }
+ },
+ "node_modules/semver-diff": {
+ "version": "3.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "semver": "^6.3.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/semver-diff/node_modules/semver": {
+ "version": "6.3.0",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/semver-greatest-satisfied-range": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "sver-compat": "^1.5.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/send": {
+ "version": "0.17.2",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "2.6.9",
+ "depd": "~1.1.2",
+ "destroy": "~1.0.4",
+ "encodeurl": "~1.0.2",
+ "escape-html": "~1.0.3",
+ "etag": "~1.8.1",
+ "fresh": "0.5.2",
+ "http-errors": "1.8.1",
+ "mime": "1.6.0",
+ "ms": "2.1.3",
+ "on-finished": "~2.3.0",
+ "range-parser": "~1.2.1",
+ "statuses": "~1.5.0"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/send/node_modules/depd": {
+ "version": "1.1.2",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/send/node_modules/ms": {
+ "version": "2.1.3",
+ "license": "MIT"
+ },
+ "node_modules/seq-queue": {
+ "version": "0.0.5",
+ "dev": true
+ },
+ "node_modules/serve-favicon": {
+ "version": "2.5.0",
+ "license": "MIT",
+ "dependencies": {
+ "etag": "~1.8.1",
+ "fresh": "0.5.2",
+ "ms": "2.1.1",
+ "parseurl": "~1.3.2",
+ "safe-buffer": "5.1.1"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/serve-favicon/node_modules/ms": {
+ "version": "2.1.1",
+ "license": "MIT"
+ },
+ "node_modules/serve-favicon/node_modules/safe-buffer": {
+ "version": "5.1.1",
+ "license": "MIT"
+ },
+ "node_modules/serve-index": {
+ "version": "1.9.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "accepts": "~1.3.4",
+ "batch": "0.6.1",
+ "debug": "2.6.9",
+ "escape-html": "~1.0.3",
+ "http-errors": "~1.6.2",
+ "mime-types": "~2.1.17",
+ "parseurl": "~1.3.2"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/serve-index/node_modules/depd": {
+ "version": "1.1.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/serve-index/node_modules/http-errors": {
+ "version": "1.6.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "depd": "~1.1.2",
+ "inherits": "2.0.3",
+ "setprototypeof": "1.1.0",
+ "statuses": ">= 1.4.0 < 2"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/serve-index/node_modules/inherits": {
+ "version": "2.0.3",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/serve-index/node_modules/setprototypeof": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/serve-static": {
+ "version": "1.14.2",
+ "license": "MIT",
+ "dependencies": {
+ "encodeurl": "~1.0.2",
+ "escape-html": "~1.0.3",
+ "parseurl": "~1.3.3",
+ "send": "0.17.2"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/set-blocking": {
+ "version": "2.0.0",
+ "license": "ISC"
+ },
+ "node_modules/set-value": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "extend-shallow": "^2.0.1",
+ "is-extendable": "^0.1.1",
+ "is-plain-object": "^2.0.3",
+ "split-string": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/set-value/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/set-value/node_modules/is-plain-object": {
+ "version": "2.0.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "isobject": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/setimmediate": {
+ "version": "1.0.5",
+ "license": "MIT"
+ },
+ "node_modules/setprototypeof": {
+ "version": "1.2.0",
+ "license": "ISC"
+ },
+ "node_modules/sha.js": {
+ "version": "2.4.11",
+ "dev": true,
+ "license": "(MIT AND BSD-3-Clause)",
+ "dependencies": {
+ "inherits": "^2.0.1",
+ "safe-buffer": "^5.0.1"
+ },
+ "bin": {
+ "sha.js": "bin.js"
+ }
+ },
+ "node_modules/shallow-clone": {
+ "version": "3.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kind-of": "^6.0.2"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/sharp": {
+ "version": "0.31.2",
+ "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.31.2.tgz",
+ "integrity": "sha512-DUdNVEXgS5A97cTagSLIIp8dUZ/lZtk78iNVZgHdHbx1qnQR7JAHY0BnXnwwH39Iw+VKhO08CTYhIg0p98vQ5Q==",
+ "hasInstallScript": true,
+ "dependencies": {
+ "color": "^4.2.3",
+ "detect-libc": "^2.0.1",
+ "node-addon-api": "^5.0.0",
+ "prebuild-install": "^7.1.1",
+ "semver": "^7.3.8",
+ "simple-get": "^4.0.1",
+ "tar-fs": "^2.1.1",
+ "tunnel-agent": "^0.6.0"
+ },
+ "engines": {
+ "node": ">=14.15.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/sharp/node_modules/lru-cache": {
+ "version": "6.0.0",
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/sharp/node_modules/semver": {
+ "version": "7.3.8",
+ "license": "ISC",
+ "dependencies": {
+ "lru-cache": "^6.0.0"
+ },
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/sharp/node_modules/yallist": {
+ "version": "4.0.0",
+ "license": "ISC"
+ },
+ "node_modules/shebang-command": {
+ "version": "2.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/shell-escape": {
+ "version": "0.2.0",
+ "license": "MIT"
+ },
+ "node_modules/shellwords": {
+ "version": "0.1.1",
+ "dev": true,
+ "license": "MIT",
+ "optional": true
+ },
+ "node_modules/shimmer": {
+ "version": "1.2.1",
+ "license": "BSD-2-Clause"
+ },
+ "node_modules/shortid": {
+ "version": "2.2.16",
+ "license": "MIT",
+ "dependencies": {
+ "nanoid": "^2.1.0"
+ }
+ },
+ "node_modules/side-channel": {
+ "version": "1.0.4",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.0",
+ "get-intrinsic": "^1.0.2",
+ "object-inspect": "^1.9.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/sigmund": {
+ "version": "1.0.1",
+ "license": "ISC"
+ },
+ "node_modules/signal-exit": {
+ "version": "3.0.7",
+ "license": "ISC"
+ },
+ "node_modules/simple-concat": {
+ "version": "1.0.1",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/simple-get": {
+ "version": "4.0.1",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "decompress-response": "^6.0.0",
+ "once": "^1.3.1",
+ "simple-concat": "^1.0.0"
+ }
+ },
+ "node_modules/simple-get/node_modules/decompress-response": {
+ "version": "6.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "mimic-response": "^3.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/simple-get/node_modules/mimic-response": {
+ "version": "3.1.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/simple-swizzle": {
+ "version": "0.2.2",
+ "license": "MIT",
+ "dependencies": {
+ "is-arrayish": "^0.3.1"
+ }
+ },
+ "node_modules/simple-update-notifier": {
+ "version": "1.0.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "semver": "~7.0.0"
+ },
+ "engines": {
+ "node": ">=8.10.0"
+ }
+ },
+ "node_modules/simple-update-notifier/node_modules/semver": {
+ "version": "7.0.0",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/sisteransi": {
+ "version": "1.0.5",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/slash": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/slice-ansi": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "astral-regex": "^2.0.0",
+ "is-fullwidth-code-point": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/slice-ansi?sponsor=1"
+ }
+ },
+ "node_modules/slice-ansi/node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/smbhash": {
+ "version": "0.0.1",
+ "engines": [
+ "node"
+ ],
+ "dependencies": {
+ "bigdecimal": ">= 0.6.0"
+ }
+ },
+ "node_modules/smtp-connection": {
+ "version": "2.12.0",
+ "license": "MIT",
+ "dependencies": {
+ "httpntlm": "1.6.1",
+ "nodemailer-shared": "1.1.0"
+ }
+ },
+ "node_modules/snakeize": {
+ "version": "0.1.0",
+ "license": "MIT"
+ },
+ "node_modules/snapdragon": {
+ "version": "0.8.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "base": "^0.11.1",
+ "debug": "^2.2.0",
+ "define-property": "^0.2.5",
+ "extend-shallow": "^2.0.1",
+ "map-cache": "^0.2.2",
+ "source-map": "^0.5.6",
+ "source-map-resolve": "^0.5.0",
+ "use": "^3.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/snapdragon-node": {
+ "version": "2.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "define-property": "^1.0.0",
+ "isobject": "^3.0.0",
+ "snapdragon-util": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/snapdragon-node/node_modules/define-property": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-descriptor": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/snapdragon-node/node_modules/is-accessor-descriptor": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kind-of": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/snapdragon-node/node_modules/is-data-descriptor": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kind-of": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/snapdragon-node/node_modules/is-descriptor": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-accessor-descriptor": "^1.0.0",
+ "is-data-descriptor": "^1.0.0",
+ "kind-of": "^6.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/snapdragon-util": {
+ "version": "3.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kind-of": "^3.2.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/snapdragon-util/node_modules/kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-buffer": "^1.1.5"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/snapdragon/node_modules/define-property": {
+ "version": "0.2.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-descriptor": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/snapdragon/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/sockjs": {
+ "version": "0.3.24",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "faye-websocket": "^0.11.3",
+ "uuid": "^8.3.2",
+ "websocket-driver": "^0.7.4"
+ }
+ },
+ "node_modules/sockjs-client": {
+ "version": "1.6.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^3.2.7",
+ "eventsource": "^1.1.0",
+ "faye-websocket": "^0.11.4",
+ "inherits": "^2.0.4",
+ "url-parse": "^1.5.10"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://tidelift.com/funding/github/npm/sockjs-client"
+ }
+ },
+ "node_modules/sockjs-client/node_modules/debug": {
+ "version": "3.2.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.1"
+ }
+ },
+ "node_modules/sockjs-client/node_modules/ms": {
+ "version": "2.1.3",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/sockjs/node_modules/uuid": {
+ "version": "8.3.2",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "uuid": "dist/bin/uuid"
+ }
+ },
+ "node_modules/source-list-map": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/source-map": {
+ "version": "0.5.6",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/source-map-resolve": {
+ "version": "0.5.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "atob": "^2.1.2",
+ "decode-uri-component": "^0.2.0",
+ "resolve-url": "^0.2.1",
+ "source-map-url": "^0.4.0",
+ "urix": "^0.1.0"
+ }
+ },
+ "node_modules/source-map-support": {
+ "version": "0.5.21",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "buffer-from": "^1.0.0",
+ "source-map": "^0.6.0"
+ }
+ },
+ "node_modules/source-map-support/node_modules/source-map": {
+ "version": "0.6.1",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/source-map-url": {
+ "version": "0.4.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/sparkles": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/spdx-correct": {
+ "version": "3.1.1",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "spdx-expression-parse": "^3.0.0",
+ "spdx-license-ids": "^3.0.0"
+ }
+ },
+ "node_modules/spdx-exceptions": {
+ "version": "2.3.0",
+ "dev": true,
+ "license": "CC-BY-3.0"
+ },
+ "node_modules/spdx-expression-parse": {
+ "version": "3.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "spdx-exceptions": "^2.1.0",
+ "spdx-license-ids": "^3.0.0"
+ }
+ },
+ "node_modules/spdx-license-ids": {
+ "version": "3.0.11",
+ "dev": true,
+ "license": "CC0-1.0"
+ },
+ "node_modules/spdy": {
+ "version": "4.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.1.0",
+ "handle-thing": "^2.0.0",
+ "http-deceiver": "^1.2.7",
+ "select-hose": "^2.0.0",
+ "spdy-transport": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/spdy-transport": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.1.0",
+ "detect-node": "^2.0.4",
+ "hpack.js": "^2.1.6",
+ "obuf": "^1.1.2",
+ "readable-stream": "^3.0.6",
+ "wbuf": "^1.7.3"
+ }
+ },
+ "node_modules/spdy-transport/node_modules/debug": {
+ "version": "4.3.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/spdy-transport/node_modules/ms": {
+ "version": "2.1.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/spdy-transport/node_modules/readable-stream": {
+ "version": "3.6.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/spdy-transport/node_modules/safe-buffer": {
+ "version": "5.2.1",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/spdy-transport/node_modules/string_decoder": {
+ "version": "1.3.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.2.0"
+ }
+ },
+ "node_modules/spdy/node_modules/debug": {
+ "version": "4.3.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/spdy/node_modules/ms": {
+ "version": "2.1.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/split-array-stream": {
+ "version": "2.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "is-stream-ended": "^0.1.4"
+ }
+ },
+ "node_modules/split-string": {
+ "version": "3.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "extend-shallow": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/sprintf-js": {
+ "version": "1.1.2",
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/sqlstring": {
+ "version": "2.3.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/sse": {
+ "version": "0.0.8",
+ "dependencies": {
+ "options": "0.0.6"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/ssh2": {
+ "version": "0.8.9",
+ "dependencies": {
+ "ssh2-streams": "~0.4.10"
+ },
+ "engines": {
+ "node": ">=5.2.0"
+ }
+ },
+ "node_modules/ssh2-streams": {
+ "version": "0.4.10",
+ "dependencies": {
+ "asn1": "~0.2.0",
+ "bcrypt-pbkdf": "^1.0.2",
+ "streamsearch": "~0.1.2"
+ },
+ "engines": {
+ "node": ">=5.2.0"
+ }
+ },
+ "node_modules/sshpk": {
+ "version": "1.17.0",
+ "license": "MIT",
+ "dependencies": {
+ "asn1": "~0.2.3",
+ "assert-plus": "^1.0.0",
+ "bcrypt-pbkdf": "^1.0.0",
+ "dashdash": "^1.12.0",
+ "ecc-jsbn": "~0.1.1",
+ "getpass": "^0.1.1",
+ "jsbn": "~0.1.0",
+ "safer-buffer": "^2.0.2",
+ "tweetnacl": "~0.14.0"
+ },
+ "bin": {
+ "sshpk-conv": "bin/sshpk-conv",
+ "sshpk-sign": "bin/sshpk-sign",
+ "sshpk-verify": "bin/sshpk-verify"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/ssri": {
+ "version": "6.0.2",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "figgy-pudding": "^3.5.1"
+ }
+ },
+ "node_modules/stable": {
+ "version": "0.1.8",
+ "license": "MIT"
+ },
+ "node_modules/stack-chain": {
+ "version": "1.3.7",
+ "license": "MIT"
+ },
+ "node_modules/stack-trace": {
+ "version": "0.0.10",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/stack-utils": {
+ "version": "2.0.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "escape-string-regexp": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/static-extend": {
+ "version": "0.1.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "define-property": "^0.2.5",
+ "object-copy": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/static-extend/node_modules/define-property": {
+ "version": "0.2.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-descriptor": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/statuses": {
+ "version": "1.5.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/stdout-stream": {
+ "version": "1.4.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "readable-stream": "^2.0.1"
+ }
+ },
+ "node_modules/stdout-stream/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/stdout-stream/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/stdout-stream/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/stream-browserify": {
+ "version": "2.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "inherits": "~2.0.1",
+ "readable-stream": "^2.0.2"
+ }
+ },
+ "node_modules/stream-browserify/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/stream-browserify/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/stream-browserify/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/stream-combiner": {
+ "version": "0.0.2",
+ "license": "MIT",
+ "dependencies": {
+ "duplexer": "~0.0.3"
+ }
+ },
+ "node_modules/stream-each": {
+ "version": "1.2.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "end-of-stream": "^1.1.0",
+ "stream-shift": "^1.0.0"
+ }
+ },
+ "node_modules/stream-events": {
+ "version": "1.0.5",
+ "license": "MIT",
+ "dependencies": {
+ "stubs": "^3.0.0"
+ }
+ },
+ "node_modules/stream-exhaust": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/stream-http": {
+ "version": "2.8.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "builtin-status-codes": "^3.0.0",
+ "inherits": "^2.0.1",
+ "readable-stream": "^2.3.6",
+ "to-arraybuffer": "^1.0.0",
+ "xtend": "^4.0.0"
+ }
+ },
+ "node_modules/stream-http/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/stream-http/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/stream-http/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/stream-http/node_modules/xtend": {
+ "version": "4.0.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4"
+ }
+ },
+ "node_modules/stream-serializer": {
+ "version": "1.1.2",
+ "license": "MIT"
+ },
+ "node_modules/stream-shift": {
+ "version": "1.0.1",
+ "license": "MIT"
+ },
+ "node_modules/streamroller": {
+ "version": "3.1.3",
+ "license": "MIT",
+ "dependencies": {
+ "date-format": "^4.0.14",
+ "debug": "^4.3.4",
+ "fs-extra": "^8.1.0"
+ },
+ "engines": {
+ "node": ">=8.0"
+ }
+ },
+ "node_modules/streamroller/node_modules/debug": {
+ "version": "4.3.4",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/streamroller/node_modules/fs-extra": {
+ "version": "8.1.0",
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^4.0.0",
+ "universalify": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=6 <7 || >=8"
+ }
+ },
+ "node_modules/streamroller/node_modules/ms": {
+ "version": "2.1.2",
+ "license": "MIT"
+ },
+ "node_modules/streamsearch": {
+ "version": "0.1.2",
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/string_decoder": {
+ "version": "0.10.31",
+ "license": "MIT"
+ },
+ "node_modules/string-length": {
+ "version": "4.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "char-regex": "^1.0.2",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/string-length/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/string-length/node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/string-width": {
+ "version": "1.0.2",
+ "license": "MIT",
+ "dependencies": {
+ "code-point-at": "^1.0.0",
+ "is-fullwidth-code-point": "^1.0.0",
+ "strip-ansi": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/string.prototype.trimend": {
+ "version": "1.0.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.2",
+ "define-properties": "^1.1.3"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/string.prototype.trimstart": {
+ "version": "1.0.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "call-bind": "^1.0.2",
+ "define-properties": "^1.1.3"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/strip-ansi": {
+ "version": "3.0.1",
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/strip-eof": {
+ "version": "1.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/strip-final-newline": {
+ "version": "2.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/strip-indent": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "get-stdin": "^4.0.1"
+ },
+ "bin": {
+ "strip-indent": "cli.js"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/strip-json-comments": {
+ "version": "2.0.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/strong-error-handler": {
+ "version": "2.3.2",
+ "license": "MIT",
+ "dependencies": {
+ "accepts": "^1.3.3",
+ "debug": "^2.2.0",
+ "ejs": "^2.5.7",
+ "http-status": "^1.0.0",
+ "js2xmlparser": "^3.0.0",
+ "strong-globalize": "^3.1.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/strong-error-handler/node_modules/cross-spawn": {
+ "version": "5.1.0",
+ "license": "MIT",
+ "dependencies": {
+ "lru-cache": "^4.0.1",
+ "shebang-command": "^1.2.0",
+ "which": "^1.2.9"
+ }
+ },
+ "node_modules/strong-error-handler/node_modules/execa": {
+ "version": "0.7.0",
+ "license": "MIT",
+ "dependencies": {
+ "cross-spawn": "^5.0.1",
+ "get-stream": "^3.0.0",
+ "is-stream": "^1.1.0",
+ "npm-run-path": "^2.0.0",
+ "p-finally": "^1.0.0",
+ "signal-exit": "^3.0.0",
+ "strip-eof": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/strong-error-handler/node_modules/get-stream": {
+ "version": "3.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/strong-error-handler/node_modules/invert-kv": {
+ "version": "1.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/strong-error-handler/node_modules/is-stream": {
+ "version": "1.1.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/strong-error-handler/node_modules/lcid": {
+ "version": "1.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "invert-kv": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/strong-error-handler/node_modules/lru-cache": {
+ "version": "4.1.5",
+ "license": "ISC",
+ "dependencies": {
+ "pseudomap": "^1.0.2",
+ "yallist": "^2.1.2"
+ }
+ },
+ "node_modules/strong-error-handler/node_modules/mem": {
+ "version": "1.1.0",
+ "license": "MIT",
+ "dependencies": {
+ "mimic-fn": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/strong-error-handler/node_modules/mimic-fn": {
+ "version": "1.2.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/strong-error-handler/node_modules/ms": {
+ "version": "2.1.3",
+ "license": "MIT"
+ },
+ "node_modules/strong-error-handler/node_modules/npm-run-path": {
+ "version": "2.0.2",
+ "license": "MIT",
+ "dependencies": {
+ "path-key": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/strong-error-handler/node_modules/os-locale": {
+ "version": "2.1.0",
+ "license": "MIT",
+ "dependencies": {
+ "execa": "^0.7.0",
+ "lcid": "^1.0.0",
+ "mem": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/strong-error-handler/node_modules/path-key": {
+ "version": "2.0.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/strong-error-handler/node_modules/shebang-command": {
+ "version": "1.2.0",
+ "license": "MIT",
+ "dependencies": {
+ "shebang-regex": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/strong-error-handler/node_modules/shebang-regex": {
+ "version": "1.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/strong-error-handler/node_modules/strong-globalize": {
+ "version": "3.3.0",
+ "license": "Artistic-2.0",
+ "dependencies": {
+ "accept-language": "^3.0.18",
+ "async": "^2.4.1",
+ "debug": "^3.1.0",
+ "esprima": "^4.0.0",
+ "estraverse": "^4.2.0",
+ "g11n-pipeline": "^2.0.1",
+ "globalize": "^1.3.0",
+ "htmlparser2": "^3.9.2",
+ "lodash": "^4.17.4",
+ "md5": "^2.2.1",
+ "mkdirp": "^0.5.1",
+ "mktmpdir": "^0.1.1",
+ "optional": "^0.1.3",
+ "os-locale": "^2.0.0",
+ "posix-getopt": "^1.2.0",
+ "word-count": "^0.2.2",
+ "xtend": "^4.0.1",
+ "yamljs": "^0.3.0"
+ },
+ "bin": {
+ "slt-globalize": "bin/slt-globalize.js"
+ }
+ },
+ "node_modules/strong-error-handler/node_modules/strong-globalize/node_modules/debug": {
+ "version": "3.2.7",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.1"
+ }
+ },
+ "node_modules/strong-error-handler/node_modules/which": {
+ "version": "1.3.1",
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "which": "bin/which"
+ }
+ },
+ "node_modules/strong-error-handler/node_modules/xtend": {
+ "version": "4.0.2",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4"
+ }
+ },
+ "node_modules/strong-error-handler/node_modules/yallist": {
+ "version": "2.1.2",
+ "license": "ISC"
+ },
+ "node_modules/strong-globalize": {
+ "version": "4.1.3",
+ "license": "Artistic-2.0",
+ "dependencies": {
+ "accept-language": "^3.0.18",
+ "debug": "^4.1.1",
+ "globalize": "^1.4.2",
+ "lodash": "^4.17.4",
+ "md5": "^2.2.1",
+ "mkdirp": "^0.5.1",
+ "os-locale": "^3.1.0",
+ "yamljs": "^0.3.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/strong-globalize/node_modules/cross-spawn": {
+ "version": "6.0.5",
+ "license": "MIT",
+ "dependencies": {
+ "nice-try": "^1.0.4",
+ "path-key": "^2.0.1",
+ "semver": "^5.5.0",
+ "shebang-command": "^1.2.0",
+ "which": "^1.2.9"
+ },
+ "engines": {
+ "node": ">=4.8"
+ }
+ },
+ "node_modules/strong-globalize/node_modules/debug": {
+ "version": "4.3.4",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/strong-globalize/node_modules/execa": {
+ "version": "1.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "cross-spawn": "^6.0.0",
+ "get-stream": "^4.0.0",
+ "is-stream": "^1.1.0",
+ "npm-run-path": "^2.0.0",
+ "p-finally": "^1.0.0",
+ "signal-exit": "^3.0.0",
+ "strip-eof": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/strong-globalize/node_modules/get-stream": {
+ "version": "4.1.0",
+ "license": "MIT",
+ "dependencies": {
+ "pump": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/strong-globalize/node_modules/invert-kv": {
+ "version": "2.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/strong-globalize/node_modules/is-stream": {
+ "version": "1.1.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/strong-globalize/node_modules/lcid": {
+ "version": "2.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "invert-kv": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/strong-globalize/node_modules/mem": {
+ "version": "4.3.0",
+ "license": "MIT",
+ "dependencies": {
+ "map-age-cleaner": "^0.1.1",
+ "mimic-fn": "^2.0.0",
+ "p-is-promise": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/strong-globalize/node_modules/ms": {
+ "version": "2.1.2",
+ "license": "MIT"
+ },
+ "node_modules/strong-globalize/node_modules/npm-run-path": {
+ "version": "2.0.2",
+ "license": "MIT",
+ "dependencies": {
+ "path-key": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/strong-globalize/node_modules/os-locale": {
+ "version": "3.1.0",
+ "license": "MIT",
+ "dependencies": {
+ "execa": "^1.0.0",
+ "lcid": "^2.0.0",
+ "mem": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/strong-globalize/node_modules/path-key": {
+ "version": "2.0.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/strong-globalize/node_modules/semver": {
+ "version": "5.7.1",
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver"
+ }
+ },
+ "node_modules/strong-globalize/node_modules/shebang-command": {
+ "version": "1.2.0",
+ "license": "MIT",
+ "dependencies": {
+ "shebang-regex": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/strong-globalize/node_modules/shebang-regex": {
+ "version": "1.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/strong-globalize/node_modules/which": {
+ "version": "1.3.1",
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "which": "bin/which"
+ }
+ },
+ "node_modules/strong-remoting": {
+ "version": "3.17.0",
+ "license": "Artistic-2.0",
+ "dependencies": {
+ "async": "^3.1.0",
+ "body-parser": "^1.12.4",
+ "debug": "^4.1.1",
+ "depd": "^2.0.0",
+ "escape-string-regexp": "^2.0.0",
+ "eventemitter2": "^5.0.1",
+ "express": "4.x",
+ "inflection": "^1.7.1",
+ "jayson": "^2.0.5",
+ "js2xmlparser": "^3.0.0",
+ "loopback-datatype-geopoint": "^1.0.0",
+ "loopback-phase": "^3.1.0",
+ "mux-demux": "^3.7.9",
+ "qs": "^6.2.1",
+ "request": "^2.83.0",
+ "sse": "0.0.8",
+ "strong-error-handler": "^3.0.0",
+ "strong-globalize": "^5.0.2",
+ "traverse": "^0.6.6",
+ "xml2js": "^0.4.8"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strong-remoting/node_modules/async": {
+ "version": "3.2.3",
+ "license": "MIT"
+ },
+ "node_modules/strong-remoting/node_modules/debug": {
+ "version": "4.3.4",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/strong-remoting/node_modules/ejs": {
+ "version": "3.1.6",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "jake": "^10.6.1"
+ },
+ "bin": {
+ "ejs": "bin/cli.js"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/strong-remoting/node_modules/mkdirp": {
+ "version": "1.0.4",
+ "license": "MIT",
+ "bin": {
+ "mkdirp": "bin/cmd.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/strong-remoting/node_modules/ms": {
+ "version": "2.1.2",
+ "license": "MIT"
+ },
+ "node_modules/strong-remoting/node_modules/strong-error-handler": {
+ "version": "3.5.0",
+ "license": "MIT",
+ "dependencies": {
+ "@types/express": "^4.16.0",
+ "accepts": "^1.3.3",
+ "debug": "^4.1.1",
+ "ejs": "^3.1.3",
+ "fast-safe-stringify": "^2.0.6",
+ "http-status": "^1.1.2",
+ "js2xmlparser": "^4.0.0",
+ "strong-globalize": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/strong-remoting/node_modules/strong-error-handler/node_modules/js2xmlparser": {
+ "version": "4.0.2",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "xmlcreate": "^2.0.4"
+ }
+ },
+ "node_modules/strong-remoting/node_modules/strong-error-handler/node_modules/strong-globalize": {
+ "version": "6.0.5",
+ "license": "Artistic-2.0",
+ "dependencies": {
+ "accept-language": "^3.0.18",
+ "debug": "^4.2.0",
+ "globalize": "^1.6.0",
+ "lodash": "^4.17.20",
+ "md5": "^2.3.0",
+ "mkdirp": "^1.0.4",
+ "os-locale": "^5.0.0",
+ "yamljs": "^0.3.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/strong-remoting/node_modules/strong-globalize": {
+ "version": "5.1.0",
+ "license": "Artistic-2.0",
+ "dependencies": {
+ "accept-language": "^3.0.18",
+ "debug": "^4.1.1",
+ "globalize": "^1.5.0",
+ "lodash": "^4.17.15",
+ "md5": "^2.2.1",
+ "mkdirp": "^0.5.5",
+ "os-locale": "^5.0.0",
+ "yamljs": "^0.3.0"
+ },
+ "engines": {
+ "node": ">=8.9"
+ }
+ },
+ "node_modules/strong-remoting/node_modules/strong-globalize/node_modules/mkdirp": {
+ "version": "0.5.6",
+ "license": "MIT",
+ "dependencies": {
+ "minimist": "^1.2.6"
+ },
+ "bin": {
+ "mkdirp": "bin/cmd.js"
+ }
+ },
+ "node_modules/strong-remoting/node_modules/xmlcreate": {
+ "version": "2.0.4",
+ "license": "Apache-2.0"
+ },
+ "node_modules/stubs": {
+ "version": "3.0.0",
+ "license": "MIT"
+ },
+ "node_modules/style-loader": {
+ "version": "0.23.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "loader-utils": "^1.1.0",
+ "schema-utils": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.12.0"
+ }
+ },
+ "node_modules/style-loader/node_modules/json5": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "minimist": "^1.2.0"
+ },
+ "bin": {
+ "json5": "lib/cli.js"
+ }
+ },
+ "node_modules/style-loader/node_modules/loader-utils": {
+ "version": "1.4.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "big.js": "^5.2.2",
+ "emojis-list": "^3.0.0",
+ "json5": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/style-loader/node_modules/schema-utils": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ajv": "^6.1.0",
+ "ajv-errors": "^1.0.0",
+ "ajv-keywords": "^3.1.0"
+ },
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/supports-color": {
+ "version": "7.2.0",
+ "license": "MIT",
+ "dependencies": {
+ "has-flag": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/supports-hyperlinks": {
+ "version": "2.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-flag": "^4.0.0",
+ "supports-color": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/supports-preserve-symlinks-flag": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/sver-compat": {
+ "version": "1.5.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es6-iterator": "^2.0.1",
+ "es6-symbol": "^3.1.1"
+ }
+ },
+ "node_modules/swagger-client": {
+ "version": "3.18.4",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@babel/runtime-corejs3": "^7.11.2",
+ "btoa": "^1.2.1",
+ "cookie": "~0.4.1",
+ "cross-fetch": "^3.1.5",
+ "deepmerge": "~4.2.2",
+ "fast-json-patch": "^3.0.0-1",
+ "form-data-encoder": "^1.4.3",
+ "formdata-node": "^4.0.0",
+ "is-plain-object": "^5.0.0",
+ "js-yaml": "^4.1.0",
+ "lodash": "^4.17.21",
+ "qs": "^6.10.2",
+ "traverse": "~0.6.6",
+ "url": "~0.11.0"
+ }
+ },
+ "node_modules/swagger-client/node_modules/fast-json-patch": {
+ "version": "3.1.1",
+ "license": "MIT"
+ },
+ "node_modules/swagger-client/node_modules/punycode": {
+ "version": "1.3.2",
+ "license": "MIT"
+ },
+ "node_modules/swagger-client/node_modules/qs": {
+ "version": "6.10.3",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "side-channel": "^1.0.4"
+ },
+ "engines": {
+ "node": ">=0.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/swagger-client/node_modules/url": {
+ "version": "0.11.0",
+ "license": "MIT",
+ "dependencies": {
+ "punycode": "1.3.2",
+ "querystring": "0.2.0"
+ }
+ },
+ "node_modules/swagger-ui": {
+ "version": "2.2.10",
+ "license": "Apache-2.0"
+ },
+ "node_modules/symbol-tree": {
+ "version": "3.2.4",
+ "license": "MIT"
+ },
+ "node_modules/table": {
+ "version": "6.8.0",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "ajv": "^8.0.1",
+ "lodash.truncate": "^4.4.2",
+ "slice-ansi": "^4.0.0",
+ "string-width": "^4.2.3",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=10.0.0"
+ }
+ },
+ "node_modules/table/node_modules/ajv": {
+ "version": "8.11.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2",
+ "uri-js": "^4.2.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/table/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/table/node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/table/node_modules/json-schema-traverse": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/table/node_modules/string-width": {
+ "version": "4.2.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/table/node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/tapable": {
+ "version": "1.1.3",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/tar": {
+ "version": "2.2.2",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "block-stream": "*",
+ "fstream": "^1.0.12",
+ "inherits": "2"
+ }
+ },
+ "node_modules/tar-fs": {
+ "version": "2.1.1",
+ "license": "MIT",
+ "dependencies": {
+ "chownr": "^1.1.1",
+ "mkdirp-classic": "^0.5.2",
+ "pump": "^3.0.0",
+ "tar-stream": "^2.1.4"
+ }
+ },
+ "node_modules/tar-stream": {
+ "version": "2.2.0",
+ "license": "MIT",
+ "dependencies": {
+ "bl": "^4.0.3",
+ "end-of-stream": "^1.4.1",
+ "fs-constants": "^1.0.0",
+ "inherits": "^2.0.3",
+ "readable-stream": "^3.1.1"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/tar-stream/node_modules/base64-js": {
+ "version": "1.5.1",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/tar-stream/node_modules/bl": {
+ "version": "4.1.0",
+ "license": "MIT",
+ "dependencies": {
+ "buffer": "^5.5.0",
+ "inherits": "^2.0.4",
+ "readable-stream": "^3.4.0"
+ }
+ },
+ "node_modules/tar-stream/node_modules/buffer": {
+ "version": "5.7.1",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "base64-js": "^1.3.1",
+ "ieee754": "^1.1.13"
+ }
+ },
+ "node_modules/tar-stream/node_modules/readable-stream": {
+ "version": "3.6.0",
+ "license": "MIT",
+ "dependencies": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/tar-stream/node_modules/safe-buffer": {
+ "version": "5.2.1",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/tar-stream/node_modules/string_decoder": {
+ "version": "1.3.0",
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.2.0"
+ }
+ },
+ "node_modules/teeny-request": {
+ "version": "3.11.3",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "https-proxy-agent": "^2.2.1",
+ "node-fetch": "^2.2.0",
+ "uuid": "^3.3.2"
+ }
+ },
+ "node_modules/terminal-link": {
+ "version": "2.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-escapes": "^4.2.1",
+ "supports-hyperlinks": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/terser": {
+ "version": "4.8.0",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "commander": "^2.20.0",
+ "source-map": "~0.6.1",
+ "source-map-support": "~0.5.12"
+ },
+ "bin": {
+ "terser": "bin/terser"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/terser-webpack-plugin": {
+ "version": "1.4.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cacache": "^12.0.2",
+ "find-cache-dir": "^2.1.0",
+ "is-wsl": "^1.1.0",
+ "schema-utils": "^1.0.0",
+ "serialize-javascript": "^4.0.0",
+ "source-map": "^0.6.1",
+ "terser": "^4.1.2",
+ "webpack-sources": "^1.4.0",
+ "worker-farm": "^1.7.0"
+ },
+ "engines": {
+ "node": ">= 6.9.0"
+ },
+ "peerDependencies": {
+ "webpack": "^4.0.0"
+ }
+ },
+ "node_modules/terser-webpack-plugin/node_modules/is-wsl": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/terser-webpack-plugin/node_modules/schema-utils": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ajv": "^6.1.0",
+ "ajv-errors": "^1.0.0",
+ "ajv-keywords": "^3.1.0"
+ },
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/terser-webpack-plugin/node_modules/serialize-javascript": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "randombytes": "^2.1.0"
+ }
+ },
+ "node_modules/terser-webpack-plugin/node_modules/source-map": {
+ "version": "0.6.1",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/terser/node_modules/source-map": {
+ "version": "0.6.1",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/test-exclude": {
+ "version": "6.0.0",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "@istanbuljs/schema": "^0.1.2",
+ "glob": "^7.1.4",
+ "minimatch": "^3.0.4"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/text-table": {
+ "version": "0.2.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/throat": {
+ "version": "5.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/through": {
+ "version": "2.3.8",
+ "license": "MIT"
+ },
+ "node_modules/through2": {
+ "version": "3.0.2",
+ "license": "MIT",
+ "dependencies": {
+ "inherits": "^2.0.4",
+ "readable-stream": "2 || 3"
+ }
+ },
+ "node_modules/through2-filter": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "through2": "~2.0.0",
+ "xtend": "~4.0.0"
+ }
+ },
+ "node_modules/through2-filter/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/through2-filter/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/through2-filter/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/through2-filter/node_modules/through2": {
+ "version": "2.0.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "node_modules/through2-filter/node_modules/xtend": {
+ "version": "4.0.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4"
+ }
+ },
+ "node_modules/through2/node_modules/readable-stream": {
+ "version": "3.6.0",
+ "license": "MIT",
+ "dependencies": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/through2/node_modules/safe-buffer": {
+ "version": "5.2.1",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/through2/node_modules/string_decoder": {
+ "version": "1.3.0",
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.2.0"
+ }
+ },
+ "node_modules/thunky": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/time-stamp": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/timers-browserify": {
+ "version": "2.0.12",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "setimmediate": "^1.0.4"
+ },
+ "engines": {
+ "node": ">=0.6.0"
+ }
+ },
+ "node_modules/tlds": {
+ "version": "1.208.0",
+ "license": "MIT",
+ "bin": {
+ "tlds": "bin.js"
+ }
+ },
+ "node_modules/tmpl": {
+ "version": "1.0.5",
+ "dev": true,
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/to-absolute-glob": {
+ "version": "2.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-absolute": "^1.0.0",
+ "is-negated-glob": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/to-arraybuffer": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/to-fast-properties": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/to-iso-string": {
+ "version": "0.0.2",
+ "license": "MIT"
+ },
+ "node_modules/to-object-path": {
+ "version": "0.3.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kind-of": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/to-object-path/node_modules/kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-buffer": "^1.1.5"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/to-readable-stream": {
+ "version": "2.1.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/to-regex": {
+ "version": "3.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "regex-not": "^1.0.2",
+ "safe-regex": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/to-regex-range": {
+ "version": "5.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-number": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=8.0"
+ }
+ },
+ "node_modules/to-through": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "through2": "^2.0.3"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/to-through/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/to-through/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/to-through/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/to-through/node_modules/through2": {
+ "version": "2.0.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "node_modules/to-through/node_modules/xtend": {
+ "version": "4.0.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4"
+ }
+ },
+ "node_modules/to-utf8": {
+ "version": "0.0.1",
+ "license": "MIT"
+ },
+ "node_modules/toidentifier": {
+ "version": "1.0.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.6"
+ }
+ },
+ "node_modules/toposort": {
+ "version": "2.0.2",
+ "license": "MIT"
+ },
+ "node_modules/touch": {
+ "version": "3.1.0",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "nopt": "~1.0.10"
+ },
+ "bin": {
+ "nodetouch": "bin/nodetouch.js"
+ }
+ },
+ "node_modules/tough-cookie": {
+ "version": "2.5.0",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "psl": "^1.1.28",
+ "punycode": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/tr46": {
+ "version": "0.0.3",
+ "license": "MIT"
+ },
+ "node_modules/traverse": {
+ "version": "0.6.6",
+ "license": "MIT"
+ },
+ "node_modules/trim-newlines": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/true-case-path": {
+ "version": "1.0.3",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "glob": "^7.1.2"
+ }
+ },
+ "node_modules/tryit": {
+ "version": "1.0.3",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/tslib": {
+ "version": "2.3.1",
+ "dev": true,
+ "license": "0BSD"
+ },
+ "node_modules/tty-browserify": {
+ "version": "0.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/tunnel-agent": {
+ "version": "0.6.0",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "safe-buffer": "^5.0.1"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/tweetnacl": {
+ "version": "0.14.5",
+ "license": "Unlicense"
+ },
+ "node_modules/type": {
+ "version": "1.2.0",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/type-check": {
+ "version": "0.4.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prelude-ls": "^1.2.1"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/type-detect": {
+ "version": "4.0.8",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/type-fest": {
+ "version": "0.10.0",
+ "license": "(MIT OR CC0-1.0)",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/type-is": {
+ "version": "1.6.18",
+ "license": "MIT",
+ "dependencies": {
+ "media-typer": "0.3.0",
+ "mime-types": "~2.1.24"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/typedarray": {
+ "version": "0.0.6",
+ "license": "MIT"
+ },
+ "node_modules/typedarray-to-buffer": {
+ "version": "3.1.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-typedarray": "^1.0.0"
+ }
+ },
+ "node_modules/uc.micro": {
+ "version": "1.0.6",
+ "license": "MIT"
+ },
+ "node_modules/uglify-js": {
+ "version": "3.4.10",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "commander": "~2.19.0",
+ "source-map": "~0.6.1"
+ },
+ "bin": {
+ "uglifyjs": "bin/uglifyjs"
+ },
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/uglify-js/node_modules/commander": {
+ "version": "2.19.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/uglify-js/node_modules/source-map": {
+ "version": "0.6.1",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/uid2": {
+ "version": "0.0.3"
+ },
+ "node_modules/unbox-primitive": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "function-bind": "^1.1.1",
+ "has-bigints": "^1.0.1",
+ "has-symbols": "^1.0.2",
+ "which-boxed-primitive": "^1.0.2"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/unbzip2-stream": {
+ "version": "1.4.3",
+ "resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz",
+ "integrity": "sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==",
+ "dependencies": {
+ "buffer": "^5.2.1",
+ "through": "^2.3.8"
+ }
+ },
+ "node_modules/unbzip2-stream/node_modules/base64-js": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ]
+ },
+ "node_modules/unbzip2-stream/node_modules/buffer": {
+ "version": "5.7.1",
+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
+ "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "dependencies": {
+ "base64-js": "^1.3.1",
+ "ieee754": "^1.1.13"
+ }
+ },
+ "node_modules/unc-path-regex": {
+ "version": "0.1.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/undefsafe": {
+ "version": "2.0.5",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/underscore": {
+ "version": "1.7.0"
+ },
+ "node_modules/underscore.string": {
+ "version": "3.3.6",
+ "license": "MIT",
+ "dependencies": {
+ "sprintf-js": "^1.1.1",
+ "util-deprecate": "^1.0.2"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/undertaker": {
+ "version": "1.3.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "arr-flatten": "^1.0.1",
+ "arr-map": "^2.0.0",
+ "bach": "^1.0.0",
+ "collection-map": "^1.0.0",
+ "es6-weak-map": "^2.0.1",
+ "fast-levenshtein": "^1.0.0",
+ "last-run": "^1.1.0",
+ "object.defaults": "^1.0.0",
+ "object.reduce": "^1.0.0",
+ "undertaker-registry": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/undertaker-registry": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/undertaker/node_modules/fast-levenshtein": {
+ "version": "1.1.4",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/unicode-canonical-property-names-ecmascript": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/unicode-match-property-ecmascript": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "unicode-canonical-property-names-ecmascript": "^2.0.0",
+ "unicode-property-aliases-ecmascript": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/unicode-match-property-value-ecmascript": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/unicode-property-aliases-ecmascript": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/union-value": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "arr-union": "^3.1.0",
+ "get-value": "^2.0.6",
+ "is-extendable": "^0.1.1",
+ "set-value": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/unique-filename": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "unique-slug": "^2.0.0"
+ }
+ },
+ "node_modules/unique-slug": {
+ "version": "2.0.2",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "imurmurhash": "^0.1.4"
+ }
+ },
+ "node_modules/unique-stream": {
+ "version": "2.3.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "json-stable-stringify-without-jsonify": "^1.0.1",
+ "through2-filter": "^3.0.0"
+ }
+ },
+ "node_modules/unique-string": {
+ "version": "1.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "crypto-random-string": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/universalify": {
+ "version": "0.1.2",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4.0.0"
+ }
+ },
+ "node_modules/unpipe": {
+ "version": "1.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/unset-value": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-value": "^0.3.1",
+ "isobject": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/unset-value/node_modules/has-value": {
+ "version": "0.3.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "get-value": "^2.0.3",
+ "has-values": "^0.1.4",
+ "isobject": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/unset-value/node_modules/has-value/node_modules/isobject": {
+ "version": "2.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "isarray": "1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/unset-value/node_modules/has-values": {
+ "version": "0.1.4",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/unset-value/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/upath": {
+ "version": "1.2.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4",
+ "yarn": "*"
+ }
+ },
+ "node_modules/update-notifier": {
+ "version": "5.1.0",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "boxen": "^5.0.0",
+ "chalk": "^4.1.0",
+ "configstore": "^5.0.1",
+ "has-yarn": "^2.1.0",
+ "import-lazy": "^2.1.0",
+ "is-ci": "^2.0.0",
+ "is-installed-globally": "^0.4.0",
+ "is-npm": "^5.0.0",
+ "is-yarn-global": "^0.3.0",
+ "latest-version": "^5.1.0",
+ "pupa": "^2.1.1",
+ "semver": "^7.3.4",
+ "semver-diff": "^3.1.1",
+ "xdg-basedir": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/yeoman/update-notifier?sponsor=1"
+ }
+ },
+ "node_modules/update-notifier/node_modules/configstore": {
+ "version": "5.0.1",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "dot-prop": "^5.2.0",
+ "graceful-fs": "^4.1.2",
+ "make-dir": "^3.0.0",
+ "unique-string": "^2.0.0",
+ "write-file-atomic": "^3.0.0",
+ "xdg-basedir": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/update-notifier/node_modules/crypto-random-string": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/update-notifier/node_modules/dot-prop": {
+ "version": "5.3.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-obj": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/update-notifier/node_modules/is-obj": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/update-notifier/node_modules/lru-cache": {
+ "version": "6.0.0",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/update-notifier/node_modules/make-dir": {
+ "version": "3.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "semver": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/update-notifier/node_modules/make-dir/node_modules/semver": {
+ "version": "6.3.0",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/update-notifier/node_modules/semver": {
+ "version": "7.3.5",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "lru-cache": "^6.0.0"
+ },
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/update-notifier/node_modules/unique-string": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "crypto-random-string": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/update-notifier/node_modules/write-file-atomic": {
+ "version": "3.0.3",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "imurmurhash": "^0.1.4",
+ "is-typedarray": "^1.0.0",
+ "signal-exit": "^3.0.2",
+ "typedarray-to-buffer": "^3.1.5"
+ }
+ },
+ "node_modules/update-notifier/node_modules/xdg-basedir": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/update-notifier/node_modules/yallist": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/upper-case": {
+ "version": "1.1.3",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/uri-js": {
+ "version": "4.4.1",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "punycode": "^2.1.0"
+ }
+ },
+ "node_modules/urix": {
+ "version": "0.1.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/url": {
+ "version": "0.10.3",
+ "license": "MIT",
+ "dependencies": {
+ "punycode": "1.3.2",
+ "querystring": "0.2.0"
+ }
+ },
+ "node_modules/url-join": {
+ "version": "4.0.1",
+ "license": "MIT"
+ },
+ "node_modules/url-parse": {
+ "version": "1.5.10",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "querystringify": "^2.1.1",
+ "requires-port": "^1.0.0"
+ }
+ },
+ "node_modules/url-parse-lax": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prepend-http": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/url/node_modules/punycode": {
+ "version": "1.3.2",
+ "license": "MIT"
+ },
+ "node_modules/use": {
+ "version": "3.1.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/utf7": {
+ "version": "1.0.2",
+ "dependencies": {
+ "semver": "~5.3.0"
+ }
+ },
+ "node_modules/util": {
+ "version": "0.11.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "inherits": "2.0.3"
+ }
+ },
+ "node_modules/util-deprecate": {
+ "version": "1.0.2",
+ "license": "MIT"
+ },
+ "node_modules/util.promisify": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "define-properties": "^1.1.2",
+ "object.getownpropertydescriptors": "^2.0.3"
+ }
+ },
+ "node_modules/util/node_modules/inherits": {
+ "version": "2.0.3",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/utila": {
+ "version": "0.4.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/utils-merge": {
+ "version": "1.0.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4.0"
+ }
+ },
+ "node_modules/uuid": {
+ "version": "3.4.0",
+ "license": "MIT",
+ "bin": {
+ "uuid": "bin/uuid"
+ }
+ },
+ "node_modules/v8-compile-cache": {
+ "version": "2.3.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/v8-to-istanbul": {
+ "version": "7.1.2",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "@types/istanbul-lib-coverage": "^2.0.1",
+ "convert-source-map": "^1.6.0",
+ "source-map": "^0.7.3"
+ },
+ "engines": {
+ "node": ">=10.10.0"
+ }
+ },
+ "node_modules/v8-to-istanbul/node_modules/source-map": {
+ "version": "0.7.3",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/v8flags": {
+ "version": "3.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "homedir-polyfill": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/validate-npm-package-license": {
+ "version": "3.0.4",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "spdx-correct": "^3.0.0",
+ "spdx-expression-parse": "^3.0.0"
+ }
+ },
+ "node_modules/value-or-function": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/vary": {
+ "version": "1.1.2",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/vasync": {
+ "version": "2.2.1",
+ "engines": [
+ "node >=0.6.0"
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "verror": "1.10.0"
+ }
+ },
+ "node_modules/vasync/node_modules/core-util-is": {
+ "version": "1.0.2",
+ "license": "MIT"
+ },
+ "node_modules/vasync/node_modules/verror": {
+ "version": "1.10.0",
+ "engines": [
+ "node >=0.6.0"
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "assert-plus": "^1.0.0",
+ "core-util-is": "1.0.2",
+ "extsprintf": "^1.2.0"
+ }
+ },
+ "node_modules/verror": {
+ "version": "1.10.1",
+ "license": "MIT",
+ "dependencies": {
+ "assert-plus": "^1.0.0",
+ "core-util-is": "1.0.2",
+ "extsprintf": "^1.2.0"
+ },
+ "engines": {
+ "node": ">=0.6.0"
+ }
+ },
+ "node_modules/verror/node_modules/core-util-is": {
+ "version": "1.0.2",
+ "license": "MIT"
+ },
+ "node_modules/vinyl": {
+ "version": "2.2.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "clone": "^2.1.1",
+ "clone-buffer": "^1.0.0",
+ "clone-stats": "^1.0.0",
+ "cloneable-readable": "^1.0.0",
+ "remove-trailing-separator": "^1.0.1",
+ "replace-ext": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/vinyl-bufferstream": {
+ "version": "1.0.1",
+ "dev": true,
+ "dependencies": {
+ "bufferstreams": "1.0.1"
+ }
+ },
+ "node_modules/vinyl-fs": {
+ "version": "3.0.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fs-mkdirp-stream": "^1.0.0",
+ "glob-stream": "^6.1.0",
+ "graceful-fs": "^4.0.0",
+ "is-valid-glob": "^1.0.0",
+ "lazystream": "^1.0.0",
+ "lead": "^1.0.0",
+ "object.assign": "^4.0.4",
+ "pumpify": "^1.3.5",
+ "readable-stream": "^2.3.3",
+ "remove-bom-buffer": "^3.0.0",
+ "remove-bom-stream": "^1.2.0",
+ "resolve-options": "^1.1.0",
+ "through2": "^2.0.0",
+ "to-through": "^2.0.0",
+ "value-or-function": "^3.0.0",
+ "vinyl": "^2.0.0",
+ "vinyl-sourcemap": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/vinyl-fs/node_modules/isarray": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/vinyl-fs/node_modules/readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "node_modules/vinyl-fs/node_modules/string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/vinyl-fs/node_modules/through2": {
+ "version": "2.0.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "node_modules/vinyl-fs/node_modules/xtend": {
+ "version": "4.0.2",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4"
+ }
+ },
+ "node_modules/vinyl-sourcemap": {
+ "version": "1.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "append-buffer": "^1.0.2",
+ "convert-source-map": "^1.5.0",
+ "graceful-fs": "^4.1.6",
+ "normalize-path": "^2.1.1",
+ "now-and-later": "^2.0.0",
+ "remove-bom-buffer": "^3.0.0",
+ "vinyl": "^2.0.0"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/vinyl-sourcemap/node_modules/normalize-path": {
+ "version": "2.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "remove-trailing-separator": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/vm-browserify": {
+ "version": "1.1.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/vn-loopback": {
+ "resolved": "loopback",
+ "link": true
+ },
+ "node_modules/vn-print": {
+ "resolved": "print",
+ "link": true
+ },
+ "node_modules/w3c-hr-time": {
+ "version": "1.0.2",
+ "license": "MIT",
+ "dependencies": {
+ "browser-process-hrtime": "^1.0.0"
+ }
+ },
+ "node_modules/w3c-xmlserializer": {
+ "version": "2.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "xml-name-validator": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/walker": {
+ "version": "1.0.8",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "makeerror": "1.0.12"
+ }
+ },
+ "node_modules/watchpack": {
+ "version": "1.7.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.1.2",
+ "neo-async": "^2.5.0"
+ },
+ "optionalDependencies": {
+ "chokidar": "^3.4.1",
+ "watchpack-chokidar2": "^2.0.1"
+ }
+ },
+ "node_modules/watchpack-chokidar2": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "chokidar": "^2.1.8"
+ }
+ },
+ "node_modules/watchpack/node_modules/binary-extensions": {
+ "version": "2.2.0",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/watchpack/node_modules/chokidar": {
+ "version": "3.5.3",
+ "dev": true,
+ "funding": [
+ {
+ "type": "individual",
+ "url": "https://paulmillr.com/funding/"
+ }
+ ],
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "anymatch": "~3.1.2",
+ "braces": "~3.0.2",
+ "glob-parent": "~5.1.2",
+ "is-binary-path": "~2.1.0",
+ "is-glob": "~4.0.1",
+ "normalize-path": "~3.0.0",
+ "readdirp": "~3.6.0"
+ },
+ "engines": {
+ "node": ">= 8.10.0"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.2"
+ }
+ },
+ "node_modules/watchpack/node_modules/is-binary-path": {
+ "version": "2.1.0",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "binary-extensions": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/watchpack/node_modules/readdirp": {
+ "version": "3.6.0",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "picomatch": "^2.2.1"
+ },
+ "engines": {
+ "node": ">=8.10.0"
+ }
+ },
+ "node_modules/wbuf": {
+ "version": "1.7.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "minimalistic-assert": "^1.0.0"
+ }
+ },
+ "node_modules/web-streams-polyfill": {
+ "version": "4.0.0-beta.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 12"
+ }
+ },
+ "node_modules/webidl-conversions": {
+ "version": "3.0.1",
+ "license": "BSD-2-Clause"
+ },
+ "node_modules/webpack": {
+ "version": "4.46.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@webassemblyjs/ast": "1.9.0",
+ "@webassemblyjs/helper-module-context": "1.9.0",
+ "@webassemblyjs/wasm-edit": "1.9.0",
+ "@webassemblyjs/wasm-parser": "1.9.0",
+ "acorn": "^6.4.1",
+ "ajv": "^6.10.2",
+ "ajv-keywords": "^3.4.1",
+ "chrome-trace-event": "^1.0.2",
+ "enhanced-resolve": "^4.5.0",
+ "eslint-scope": "^4.0.3",
+ "json-parse-better-errors": "^1.0.2",
+ "loader-runner": "^2.4.0",
+ "loader-utils": "^1.2.3",
+ "memory-fs": "^0.4.1",
+ "micromatch": "^3.1.10",
+ "mkdirp": "^0.5.3",
+ "neo-async": "^2.6.1",
+ "node-libs-browser": "^2.2.1",
+ "schema-utils": "^1.0.0",
+ "tapable": "^1.1.3",
+ "terser-webpack-plugin": "^1.4.3",
+ "watchpack": "^1.7.4",
+ "webpack-sources": "^1.4.1"
+ },
+ "bin": {
+ "webpack": "bin/webpack.js"
+ },
+ "engines": {
+ "node": ">=6.11.5"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/webpack"
+ },
+ "peerDependenciesMeta": {
+ "webpack-cli": {
+ "optional": true
+ },
+ "webpack-command": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/webpack-cli": {
+ "version": "3.3.12",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "chalk": "^2.4.2",
+ "cross-spawn": "^6.0.5",
+ "enhanced-resolve": "^4.1.1",
+ "findup-sync": "^3.0.0",
+ "global-modules": "^2.0.0",
+ "import-local": "^2.0.0",
+ "interpret": "^1.4.0",
+ "loader-utils": "^1.4.0",
+ "supports-color": "^6.1.0",
+ "v8-compile-cache": "^2.1.1",
+ "yargs": "^13.3.2"
+ },
+ "bin": {
+ "webpack-cli": "bin/cli.js"
+ },
+ "engines": {
+ "node": ">=6.11.5"
+ },
+ "peerDependencies": {
+ "webpack": "4.x.x"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/ansi-regex": {
+ "version": "4.1.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/ansi-styles": {
+ "version": "3.2.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^1.9.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/chalk": {
+ "version": "2.4.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^3.2.1",
+ "escape-string-regexp": "^1.0.5",
+ "supports-color": "^5.3.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/chalk/node_modules/supports-color": {
+ "version": "5.5.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-flag": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/cliui": {
+ "version": "5.0.0",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "string-width": "^3.1.0",
+ "strip-ansi": "^5.2.0",
+ "wrap-ansi": "^5.1.0"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/color-convert": {
+ "version": "1.9.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "1.1.3"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/color-name": {
+ "version": "1.1.3",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/webpack-cli/node_modules/cross-spawn": {
+ "version": "6.0.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "nice-try": "^1.0.4",
+ "path-key": "^2.0.1",
+ "semver": "^5.5.0",
+ "shebang-command": "^1.2.0",
+ "which": "^1.2.9"
+ },
+ "engines": {
+ "node": ">=4.8"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/emoji-regex": {
+ "version": "7.0.3",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/webpack-cli/node_modules/escape-string-regexp": {
+ "version": "1.0.5",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/find-up": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "locate-path": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/global-modules": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "global-prefix": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/global-prefix": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ini": "^1.3.5",
+ "kind-of": "^6.0.2",
+ "which": "^1.3.1"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/has-flag": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/import-local": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "pkg-dir": "^3.0.0",
+ "resolve-cwd": "^2.0.0"
+ },
+ "bin": {
+ "import-local-fixture": "fixtures/cli.js"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/is-fullwidth-code-point": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/json5": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "minimist": "^1.2.0"
+ },
+ "bin": {
+ "json5": "lib/cli.js"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/loader-utils": {
+ "version": "1.4.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "big.js": "^5.2.2",
+ "emojis-list": "^3.0.0",
+ "json5": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/locate-path": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-locate": "^3.0.0",
+ "path-exists": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/p-locate": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-limit": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/path-exists": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/path-key": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/pkg-dir": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "find-up": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/resolve-cwd": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "resolve-from": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/resolve-from": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/semver": {
+ "version": "5.7.1",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/shebang-command": {
+ "version": "1.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "shebang-regex": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/shebang-regex": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/string-width": {
+ "version": "3.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^7.0.1",
+ "is-fullwidth-code-point": "^2.0.0",
+ "strip-ansi": "^5.1.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/strip-ansi": {
+ "version": "5.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^4.1.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/supports-color": {
+ "version": "6.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-flag": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/which": {
+ "version": "1.3.1",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "which": "bin/which"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/wrap-ansi": {
+ "version": "5.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^3.2.0",
+ "string-width": "^3.0.0",
+ "strip-ansi": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/yargs": {
+ "version": "13.3.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cliui": "^5.0.0",
+ "find-up": "^3.0.0",
+ "get-caller-file": "^2.0.1",
+ "require-directory": "^2.1.1",
+ "require-main-filename": "^2.0.0",
+ "set-blocking": "^2.0.0",
+ "string-width": "^3.0.0",
+ "which-module": "^2.0.0",
+ "y18n": "^4.0.0",
+ "yargs-parser": "^13.1.2"
+ }
+ },
+ "node_modules/webpack-cli/node_modules/yargs-parser": {
+ "version": "13.1.2",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "camelcase": "^5.0.0",
+ "decamelize": "^1.2.0"
+ }
+ },
+ "node_modules/webpack-dev-middleware": {
+ "version": "3.7.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "memory-fs": "^0.4.1",
+ "mime": "^2.4.4",
+ "mkdirp": "^0.5.1",
+ "range-parser": "^1.2.1",
+ "webpack-log": "^2.0.0"
+ },
+ "engines": {
+ "node": ">= 6"
+ },
+ "peerDependencies": {
+ "webpack": "^4.0.0 || ^5.0.0"
+ }
+ },
+ "node_modules/webpack-dev-middleware/node_modules/mime": {
+ "version": "2.6.0",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "mime": "cli.js"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/webpack-dev-server": {
+ "version": "3.11.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-html-community": "0.0.8",
+ "bonjour": "^3.5.0",
+ "chokidar": "^2.1.8",
+ "compression": "^1.7.4",
+ "connect-history-api-fallback": "^1.6.0",
+ "debug": "^4.1.1",
+ "del": "^4.1.1",
+ "express": "^4.17.1",
+ "html-entities": "^1.3.1",
+ "http-proxy-middleware": "0.19.1",
+ "import-local": "^2.0.0",
+ "internal-ip": "^4.3.0",
+ "ip": "^1.1.5",
+ "is-absolute-url": "^3.0.3",
+ "killable": "^1.0.1",
+ "loglevel": "^1.6.8",
+ "opn": "^5.5.0",
+ "p-retry": "^3.0.1",
+ "portfinder": "^1.0.26",
+ "schema-utils": "^1.0.0",
+ "selfsigned": "^1.10.8",
+ "semver": "^6.3.0",
+ "serve-index": "^1.9.1",
+ "sockjs": "^0.3.21",
+ "sockjs-client": "^1.5.0",
+ "spdy": "^4.0.2",
+ "strip-ansi": "^3.0.1",
+ "supports-color": "^6.1.0",
+ "url": "^0.11.0",
+ "webpack-dev-middleware": "^3.7.2",
+ "webpack-log": "^2.0.0",
+ "ws": "^6.2.1",
+ "yargs": "^13.3.2"
+ },
+ "bin": {
+ "webpack-dev-server": "bin/webpack-dev-server.js"
+ },
+ "engines": {
+ "node": ">= 6.11.5"
+ },
+ "peerDependencies": {
+ "webpack": "^4.0.0 || ^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "webpack-cli": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/ansi-regex": {
+ "version": "4.1.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/ansi-styles": {
+ "version": "3.2.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^1.9.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/cliui": {
+ "version": "5.0.0",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "string-width": "^3.1.0",
+ "strip-ansi": "^5.2.0",
+ "wrap-ansi": "^5.1.0"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/cliui/node_modules/strip-ansi": {
+ "version": "5.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^4.1.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/color-convert": {
+ "version": "1.9.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "1.1.3"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/color-name": {
+ "version": "1.1.3",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/webpack-dev-server/node_modules/debug": {
+ "version": "4.3.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/del": {
+ "version": "4.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/glob": "^7.1.1",
+ "globby": "^6.1.0",
+ "is-path-cwd": "^2.0.0",
+ "is-path-in-cwd": "^2.0.0",
+ "p-map": "^2.0.0",
+ "pify": "^4.0.1",
+ "rimraf": "^2.6.3"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/emoji-regex": {
+ "version": "7.0.3",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/webpack-dev-server/node_modules/find-up": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "locate-path": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/globby": {
+ "version": "6.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "array-union": "^1.0.1",
+ "glob": "^7.0.3",
+ "object-assign": "^4.0.1",
+ "pify": "^2.0.0",
+ "pinkie-promise": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/globby/node_modules/pify": {
+ "version": "2.3.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/has-flag": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/import-local": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "pkg-dir": "^3.0.0",
+ "resolve-cwd": "^2.0.0"
+ },
+ "bin": {
+ "import-local-fixture": "fixtures/cli.js"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/is-fullwidth-code-point": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/is-path-cwd": {
+ "version": "2.2.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/is-path-in-cwd": {
+ "version": "2.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-path-inside": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/is-path-inside": {
+ "version": "2.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "path-is-inside": "^1.0.2"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/locate-path": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-locate": "^3.0.0",
+ "path-exists": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/ms": {
+ "version": "2.1.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/webpack-dev-server/node_modules/p-locate": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-limit": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/path-exists": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/pkg-dir": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "find-up": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/punycode": {
+ "version": "1.3.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/webpack-dev-server/node_modules/resolve-cwd": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "resolve-from": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/resolve-from": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/rimraf": {
+ "version": "2.7.1",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "glob": "^7.1.3"
+ },
+ "bin": {
+ "rimraf": "bin.js"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/schema-utils": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ajv": "^6.1.0",
+ "ajv-errors": "^1.0.0",
+ "ajv-keywords": "^3.1.0"
+ },
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/semver": {
+ "version": "6.3.0",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/string-width": {
+ "version": "3.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^7.0.1",
+ "is-fullwidth-code-point": "^2.0.0",
+ "strip-ansi": "^5.1.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/string-width/node_modules/strip-ansi": {
+ "version": "5.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^4.1.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/supports-color": {
+ "version": "6.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-flag": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/url": {
+ "version": "0.11.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "punycode": "1.3.2",
+ "querystring": "0.2.0"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/wrap-ansi": {
+ "version": "5.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^3.2.0",
+ "string-width": "^3.0.0",
+ "strip-ansi": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/wrap-ansi/node_modules/strip-ansi": {
+ "version": "5.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^4.1.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/ws": {
+ "version": "6.2.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "async-limiter": "~1.0.0"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/yargs": {
+ "version": "13.3.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cliui": "^5.0.0",
+ "find-up": "^3.0.0",
+ "get-caller-file": "^2.0.1",
+ "require-directory": "^2.1.1",
+ "require-main-filename": "^2.0.0",
+ "set-blocking": "^2.0.0",
+ "string-width": "^3.0.0",
+ "which-module": "^2.0.0",
+ "y18n": "^4.0.0",
+ "yargs-parser": "^13.1.2"
+ }
+ },
+ "node_modules/webpack-dev-server/node_modules/yargs-parser": {
+ "version": "13.1.2",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "camelcase": "^5.0.0",
+ "decamelize": "^1.2.0"
+ }
+ },
+ "node_modules/webpack-log": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-colors": "^3.0.0",
+ "uuid": "^3.3.2"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/webpack-log/node_modules/ansi-colors": {
+ "version": "3.2.4",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/webpack-merge": {
+ "version": "4.2.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "lodash": "^4.17.15"
+ }
+ },
+ "node_modules/webpack-sources": {
+ "version": "1.4.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "source-list-map": "^2.0.0",
+ "source-map": "~0.6.1"
+ }
+ },
+ "node_modules/webpack-sources/node_modules/source-map": {
+ "version": "0.6.1",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/webpack/node_modules/acorn": {
+ "version": "6.4.2",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "acorn": "bin/acorn"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/webpack/node_modules/braces": {
+ "version": "2.3.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "arr-flatten": "^1.1.0",
+ "array-unique": "^0.3.2",
+ "extend-shallow": "^2.0.1",
+ "fill-range": "^4.0.0",
+ "isobject": "^3.0.1",
+ "repeat-element": "^1.1.2",
+ "snapdragon": "^0.8.1",
+ "snapdragon-node": "^2.0.1",
+ "split-string": "^3.0.2",
+ "to-regex": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/webpack/node_modules/braces/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/webpack/node_modules/eslint-scope": {
+ "version": "4.0.3",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "esrecurse": "^4.1.0",
+ "estraverse": "^4.1.1"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/webpack/node_modules/fill-range": {
+ "version": "4.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "extend-shallow": "^2.0.1",
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1",
+ "to-regex-range": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/webpack/node_modules/fill-range/node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/webpack/node_modules/is-number": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kind-of": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/webpack/node_modules/is-number/node_modules/kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-buffer": "^1.1.5"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/webpack/node_modules/json5": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "minimist": "^1.2.0"
+ },
+ "bin": {
+ "json5": "lib/cli.js"
+ }
+ },
+ "node_modules/webpack/node_modules/loader-utils": {
+ "version": "1.4.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "big.js": "^5.2.2",
+ "emojis-list": "^3.0.0",
+ "json5": "^1.0.1"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/webpack/node_modules/micromatch": {
+ "version": "3.1.10",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "arr-diff": "^4.0.0",
+ "array-unique": "^0.3.2",
+ "braces": "^2.3.1",
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "extglob": "^2.0.4",
+ "fragment-cache": "^0.2.1",
+ "kind-of": "^6.0.2",
+ "nanomatch": "^1.2.9",
+ "object.pick": "^1.3.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/webpack/node_modules/schema-utils": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ajv": "^6.1.0",
+ "ajv-errors": "^1.0.0",
+ "ajv-keywords": "^3.1.0"
+ },
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/webpack/node_modules/to-regex-range": {
+ "version": "2.1.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/websocket-driver": {
+ "version": "0.7.4",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "http-parser-js": ">=0.5.1",
+ "safe-buffer": ">=5.1.0",
+ "websocket-extensions": ">=0.1.1"
+ },
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/websocket-extensions": {
+ "version": "0.1.4",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "node_modules/whatwg-encoding": {
+ "version": "1.0.5",
+ "license": "MIT",
+ "dependencies": {
+ "iconv-lite": "0.4.24"
+ }
+ },
+ "node_modules/whatwg-mimetype": {
+ "version": "2.3.0",
+ "license": "MIT"
+ },
+ "node_modules/whatwg-url": {
+ "version": "5.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "tr46": "~0.0.3",
+ "webidl-conversions": "^3.0.0"
+ }
+ },
+ "node_modules/which": {
+ "version": "2.0.2",
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "node-which": "bin/node-which"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/which-boxed-primitive": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-bigint": "^1.0.1",
+ "is-boolean-object": "^1.1.0",
+ "is-number-object": "^1.0.4",
+ "is-string": "^1.0.5",
+ "is-symbol": "^1.0.3"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/which-module": {
+ "version": "2.0.0",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/wide-align": {
+ "version": "1.1.5",
+ "license": "ISC",
+ "dependencies": {
+ "string-width": "^1.0.2 || 2 || 3 || 4"
+ }
+ },
+ "node_modules/widest-line": {
+ "version": "3.1.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "string-width": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/widest-line/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/widest-line/node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/widest-line/node_modules/string-width": {
+ "version": "4.2.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/widest-line/node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/with-open-file": {
+ "version": "0.1.7",
+ "license": "MIT",
+ "dependencies": {
+ "p-finally": "^1.0.0",
+ "p-try": "^2.1.0",
+ "pify": "^4.0.1"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/word-count": {
+ "version": "0.2.2",
+ "license": "MIT"
+ },
+ "node_modules/word-wrap": {
+ "version": "1.2.3",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/worker-farm": {
+ "version": "1.7.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "errno": "~0.1.7"
+ }
+ },
+ "node_modules/wrap-ansi": {
+ "version": "6.2.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/wrap-ansi/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/wrap-ansi/node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/wrap-ansi/node_modules/string-width": {
+ "version": "4.2.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/wrap-ansi/node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/wrappy": {
+ "version": "1.0.2",
+ "license": "ISC"
+ },
+ "node_modules/write-file-atomic": {
+ "version": "2.4.3",
+ "license": "ISC",
+ "dependencies": {
+ "graceful-fs": "^4.1.11",
+ "imurmurhash": "^0.1.4",
+ "signal-exit": "^3.0.2"
+ }
+ },
+ "node_modules/ws": {
+ "version": "7.5.7",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8.3.0"
+ },
+ "peerDependencies": {
+ "bufferutil": "^4.0.1",
+ "utf-8-validate": "^5.0.2"
+ },
+ "peerDependenciesMeta": {
+ "bufferutil": {
+ "optional": true
+ },
+ "utf-8-validate": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/x-xss-protection": {
+ "version": "1.3.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/xdg-basedir": {
+ "version": "3.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/xml": {
+ "version": "1.0.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/xml-name-validator": {
+ "version": "3.0.0",
+ "license": "Apache-2.0"
+ },
+ "node_modules/xml2js": {
+ "version": "0.4.23",
+ "license": "MIT",
+ "dependencies": {
+ "sax": ">=0.6.0",
+ "xmlbuilder": "~11.0.0"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/xmlbuilder": {
+ "version": "11.0.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/xmlchars": {
+ "version": "2.2.0",
+ "license": "MIT"
+ },
+ "node_modules/xmlcreate": {
+ "version": "1.0.2",
+ "license": "Apache-2.0"
+ },
+ "node_modules/xmldom": {
+ "version": "0.6.0",
+ "resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.6.0.tgz",
+ "integrity": "sha512-iAcin401y58LckRZ0TkI4k0VSM1Qg0KGSc3i8rU+xrxe19A/BN1zHyVSJY7uoutVlaTSzYyk/v5AmkewAP7jtg==",
+ "engines": {
+ "node": ">=10.0.0"
+ }
+ },
+ "node_modules/xtend": {
+ "version": "1.0.3",
+ "engines": {
+ "node": ">=0.4"
+ }
+ },
+ "node_modules/y18n": {
+ "version": "4.0.3",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/yallist": {
+ "version": "3.1.1",
+ "license": "ISC"
+ },
+ "node_modules/yaml-loader": {
+ "version": "0.5.0",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "js-yaml": "^3.5.2"
+ }
+ },
+ "node_modules/yaml-loader/node_modules/js-yaml": {
+ "version": "3.14.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/yamljs": {
+ "version": "0.3.0",
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^1.0.7",
+ "glob": "^7.0.5"
+ },
+ "bin": {
+ "json2yaml": "bin/json2yaml",
+ "yaml2json": "bin/yaml2json"
+ }
+ },
+ "node_modules/yargs": {
+ "version": "15.4.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cliui": "^6.0.0",
+ "decamelize": "^1.2.0",
+ "find-up": "^4.1.0",
+ "get-caller-file": "^2.0.1",
+ "require-directory": "^2.1.1",
+ "require-main-filename": "^2.0.0",
+ "set-blocking": "^2.0.0",
+ "string-width": "^4.2.0",
+ "which-module": "^2.0.0",
+ "y18n": "^4.0.0",
+ "yargs-parser": "^18.1.2"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/yargs-parser": {
+ "version": "18.1.3",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "camelcase": "^5.0.0",
+ "decamelize": "^1.2.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/yargs/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/yargs/node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/yargs/node_modules/string-width": {
+ "version": "4.2.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/yargs/node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/yauzl": {
+ "version": "2.10.0",
+ "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz",
+ "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==",
+ "dependencies": {
+ "buffer-crc32": "~0.2.3",
+ "fd-slicer": "~1.1.0"
+ }
+ },
+ "print": {
+ "name": "vn-print",
+ "version": "2.0.0",
+ "license": "GPL-3.0",
+ "dependencies": {
+ "fs-extra": "^7.0.1",
+ "intl": "^1.2.5",
+ "js-yaml": "^3.13.1",
+ "jsbarcode": "^3.11.5",
+ "jsonexport": "^3.2.0",
+ "juice": "^5.2.0",
+ "log4js": "^6.7.0",
+ "mysql2": "^1.7.0",
+ "nodemailer": "^4.7.0",
+ "puppeteer-cluster": "^0.23.0",
+ "qrcode": "^1.4.2",
+ "strftime": "^0.10.0",
+ "vue": "^2.6.10",
+ "vue-i18n": "^8.15.0",
+ "vue-server-renderer": "^2.6.10",
+ "xmldom": "^0.6.0"
+ }
+ },
+ "print/node_modules/@babel/parser": {
+ "version": "7.19.3",
+ "license": "MIT",
+ "bin": {
+ "parser": "bin/babel-parser.js"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "print/node_modules/@vue/compiler-sfc": {
+ "version": "2.7.10",
+ "dependencies": {
+ "@babel/parser": "^7.18.4",
+ "postcss": "^8.4.14",
+ "source-map": "^0.6.1"
+ }
+ },
+ "print/node_modules/ajv": {
+ "version": "6.12.6",
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.1",
+ "fast-json-stable-stringify": "^2.0.0",
+ "json-schema-traverse": "^0.4.1",
+ "uri-js": "^4.2.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "print/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "print/node_modules/ansi-styles": {
+ "version": "3.2.1",
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^1.9.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "print/node_modules/argparse": {
+ "version": "1.0.10",
+ "license": "MIT",
+ "dependencies": {
+ "sprintf-js": "~1.0.2"
+ }
+ },
+ "print/node_modules/asn1": {
+ "version": "0.2.6",
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": "~2.1.0"
+ }
+ },
+ "print/node_modules/assert-plus": {
+ "version": "1.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "print/node_modules/async": {
+ "version": "3.2.4",
+ "license": "MIT"
+ },
+ "print/node_modules/asynckit": {
+ "version": "0.4.0",
+ "license": "MIT"
+ },
+ "print/node_modules/aws-sign2": {
+ "version": "0.7.0",
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "print/node_modules/aws4": {
+ "version": "1.11.0",
+ "license": "MIT"
+ },
+ "print/node_modules/bcrypt-pbkdf": {
+ "version": "1.0.2",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "tweetnacl": "^0.14.3"
+ }
+ },
+ "print/node_modules/boolbase": {
+ "version": "1.0.0",
+ "license": "ISC"
+ },
+ "print/node_modules/camelcase": {
+ "version": "5.3.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "print/node_modules/caseless": {
+ "version": "0.12.0",
+ "license": "Apache-2.0"
+ },
+ "print/node_modules/chalk": {
+ "version": "2.4.2",
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^3.2.1",
+ "escape-string-regexp": "^1.0.5",
+ "supports-color": "^5.3.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "print/node_modules/cheerio": {
+ "version": "0.22.0",
+ "license": "MIT",
+ "dependencies": {
+ "css-select": "~1.2.0",
+ "dom-serializer": "~0.1.0",
+ "entities": "~1.1.1",
+ "htmlparser2": "^3.9.1",
+ "lodash.assignin": "^4.0.9",
+ "lodash.bind": "^4.1.4",
+ "lodash.defaults": "^4.0.1",
+ "lodash.filter": "^4.4.0",
+ "lodash.flatten": "^4.2.0",
+ "lodash.foreach": "^4.3.0",
+ "lodash.map": "^4.4.0",
+ "lodash.merge": "^4.4.0",
+ "lodash.pick": "^4.2.1",
+ "lodash.reduce": "^4.4.0",
+ "lodash.reject": "^4.4.0",
+ "lodash.some": "^4.4.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "print/node_modules/cliui": {
+ "version": "6.0.0",
+ "license": "ISC",
+ "dependencies": {
+ "string-width": "^4.2.0",
+ "strip-ansi": "^6.0.0",
+ "wrap-ansi": "^6.2.0"
+ }
+ },
+ "print/node_modules/color-convert": {
+ "version": "1.9.3",
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "1.1.3"
+ }
+ },
+ "print/node_modules/color-name": {
+ "version": "1.1.3",
+ "license": "MIT"
+ },
+ "print/node_modules/combined-stream": {
+ "version": "1.0.8",
+ "license": "MIT",
+ "dependencies": {
+ "delayed-stream": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "print/node_modules/commander": {
+ "version": "2.20.3",
+ "license": "MIT"
+ },
+ "print/node_modules/core-util-is": {
+ "version": "1.0.2",
+ "license": "MIT"
+ },
+ "print/node_modules/cross-spawn": {
+ "version": "6.0.5",
+ "license": "MIT",
+ "dependencies": {
+ "nice-try": "^1.0.4",
+ "path-key": "^2.0.1",
+ "semver": "^5.5.0",
+ "shebang-command": "^1.2.0",
+ "which": "^1.2.9"
+ },
+ "engines": {
+ "node": ">=4.8"
+ }
+ },
+ "print/node_modules/css-select": {
+ "version": "1.2.0",
+ "license": "BSD-like",
+ "dependencies": {
+ "boolbase": "~1.0.0",
+ "css-what": "2.1",
+ "domutils": "1.5.1",
+ "nth-check": "~1.0.1"
+ }
+ },
+ "print/node_modules/css-what": {
+ "version": "2.1.3",
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "print/node_modules/csstype": {
+ "version": "3.1.1",
+ "license": "MIT"
+ },
+ "print/node_modules/dashdash": {
+ "version": "1.14.1",
+ "license": "MIT",
+ "dependencies": {
+ "assert-plus": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "print/node_modules/datauri": {
+ "version": "2.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "image-size": "^0.7.3",
+ "mimer": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "print/node_modules/decamelize": {
+ "version": "1.2.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "print/node_modules/deep-extend": {
+ "version": "0.6.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "print/node_modules/delayed-stream": {
+ "version": "1.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "print/node_modules/denque": {
+ "version": "1.5.1",
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "print/node_modules/dijkstrajs": {
+ "version": "1.0.2",
+ "license": "MIT"
+ },
+ "print/node_modules/dom-serializer": {
+ "version": "0.1.1",
+ "license": "MIT",
+ "dependencies": {
+ "domelementtype": "^1.3.0",
+ "entities": "^1.1.1"
+ }
+ },
+ "print/node_modules/domelementtype": {
+ "version": "1.3.1",
+ "license": "BSD-2-Clause"
+ },
+ "print/node_modules/domhandler": {
+ "version": "2.4.2",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "domelementtype": "1"
+ }
+ },
+ "print/node_modules/domutils": {
+ "version": "1.5.1",
+ "dependencies": {
+ "dom-serializer": "0",
+ "domelementtype": "1"
+ }
+ },
+ "print/node_modules/ecc-jsbn": {
+ "version": "0.1.2",
+ "license": "MIT",
+ "dependencies": {
+ "jsbn": "~0.1.0",
+ "safer-buffer": "^2.1.0"
+ }
+ },
+ "print/node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "license": "MIT"
+ },
+ "print/node_modules/encode-utf8": {
+ "version": "1.0.3",
+ "license": "MIT"
+ },
+ "print/node_modules/entities": {
+ "version": "1.1.2",
+ "license": "BSD-2-Clause"
+ },
+ "print/node_modules/escape-string-regexp": {
+ "version": "1.0.5",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
+ "print/node_modules/esprima": {
+ "version": "4.0.1",
+ "license": "BSD-2-Clause",
+ "bin": {
+ "esparse": "bin/esparse.js",
+ "esvalidate": "bin/esvalidate.js"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "print/node_modules/extend": {
+ "version": "3.0.2",
+ "license": "MIT"
+ },
+ "print/node_modules/extsprintf": {
+ "version": "1.3.0",
+ "engines": [
+ "node >=0.6.0"
+ ],
+ "license": "MIT"
+ },
+ "print/node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "license": "MIT"
+ },
+ "print/node_modules/fast-json-stable-stringify": {
+ "version": "2.1.0",
+ "license": "MIT"
+ },
+ "print/node_modules/find-up": {
+ "version": "4.1.0",
+ "license": "MIT",
+ "dependencies": {
+ "locate-path": "^5.0.0",
+ "path-exists": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "print/node_modules/forever-agent": {
+ "version": "0.6.1",
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "print/node_modules/form-data": {
+ "version": "2.3.3",
+ "license": "MIT",
+ "dependencies": {
+ "asynckit": "^0.4.0",
+ "combined-stream": "^1.0.6",
+ "mime-types": "^2.1.12"
+ },
+ "engines": {
+ "node": ">= 0.12"
+ }
+ },
+ "print/node_modules/fs-extra": {
+ "version": "7.0.1",
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.1.2",
+ "jsonfile": "^4.0.0",
+ "universalify": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=6 <7 || >=8"
+ }
+ },
+ "print/node_modules/function-bind": {
+ "version": "1.1.1",
+ "license": "MIT"
+ },
+ "print/node_modules/generate-function": {
+ "version": "2.3.1",
+ "license": "MIT",
+ "dependencies": {
+ "is-property": "^1.0.2"
+ }
+ },
+ "print/node_modules/get-caller-file": {
+ "version": "2.0.5",
+ "license": "ISC",
+ "engines": {
+ "node": "6.* || 8.* || >= 10.*"
+ }
+ },
+ "print/node_modules/getpass": {
+ "version": "0.1.7",
+ "license": "MIT",
+ "dependencies": {
+ "assert-plus": "^1.0.0"
+ }
+ },
+ "print/node_modules/graceful-fs": {
+ "version": "4.2.10",
+ "license": "ISC"
+ },
+ "print/node_modules/har-schema": {
+ "version": "2.0.0",
+ "license": "ISC",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "print/node_modules/har-validator": {
+ "version": "5.1.5",
+ "license": "MIT",
+ "dependencies": {
+ "ajv": "^6.12.3",
+ "har-schema": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "print/node_modules/has": {
+ "version": "1.0.3",
+ "license": "MIT",
+ "dependencies": {
+ "function-bind": "^1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.4.0"
+ }
+ },
+ "print/node_modules/has-flag": {
+ "version": "3.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "print/node_modules/hash-sum": {
+ "version": "2.0.0",
+ "license": "MIT"
+ },
+ "print/node_modules/he": {
+ "version": "1.2.0",
+ "license": "MIT",
+ "bin": {
+ "he": "bin/he"
+ }
+ },
+ "print/node_modules/htmlparser2": {
+ "version": "3.10.1",
+ "license": "MIT",
+ "dependencies": {
+ "domelementtype": "^1.3.1",
+ "domhandler": "^2.3.0",
+ "domutils": "^1.5.1",
+ "entities": "^1.1.1",
+ "inherits": "^2.0.1",
+ "readable-stream": "^3.1.1"
+ }
+ },
+ "print/node_modules/http-signature": {
+ "version": "1.2.0",
+ "license": "MIT",
+ "dependencies": {
+ "assert-plus": "^1.0.0",
+ "jsprim": "^1.2.2",
+ "sshpk": "^1.7.0"
+ },
+ "engines": {
+ "node": ">=0.8",
+ "npm": ">=1.3.7"
+ }
+ },
+ "print/node_modules/iconv-lite": {
+ "version": "0.5.2",
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "print/node_modules/image-size": {
+ "version": "0.7.5",
+ "license": "MIT",
+ "bin": {
+ "image-size": "bin/image-size.js"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "print/node_modules/inherits": {
+ "version": "2.0.4",
+ "license": "ISC"
+ },
+ "print/node_modules/intl": {
+ "version": "1.2.5",
+ "license": "MIT"
+ },
+ "print/node_modules/is-core-module": {
+ "version": "2.10.0",
+ "license": "MIT",
+ "dependencies": {
+ "has": "^1.0.3"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "print/node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "print/node_modules/is-property": {
+ "version": "1.0.2",
+ "license": "MIT"
+ },
+ "print/node_modules/is-typedarray": {
+ "version": "1.0.0",
+ "license": "MIT"
+ },
+ "print/node_modules/isexe": {
+ "version": "2.0.0",
+ "license": "ISC"
+ },
+ "print/node_modules/isstream": {
+ "version": "0.1.2",
+ "license": "MIT"
+ },
+ "print/node_modules/js-yaml": {
+ "version": "3.14.1",
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "print/node_modules/jsbn": {
+ "version": "0.1.1",
+ "license": "MIT"
+ },
+ "print/node_modules/json-schema": {
+ "version": "0.4.0",
+ "license": "(AFL-2.1 OR BSD-3-Clause)"
+ },
+ "print/node_modules/json-schema-traverse": {
+ "version": "0.4.1",
+ "license": "MIT"
+ },
+ "print/node_modules/json-stringify-safe": {
+ "version": "5.0.1",
+ "license": "ISC"
+ },
+ "print/node_modules/jsonexport": {
+ "version": "3.2.0",
+ "license": "Apache-2.0",
+ "bin": {
+ "jsonexport": "bin/jsonexport.js"
+ }
+ },
+ "print/node_modules/jsonfile": {
+ "version": "4.0.0",
+ "license": "MIT",
+ "optionalDependencies": {
+ "graceful-fs": "^4.1.6"
+ }
+ },
+ "print/node_modules/jsprim": {
+ "version": "1.4.2",
+ "license": "MIT",
+ "dependencies": {
+ "assert-plus": "1.0.0",
+ "extsprintf": "1.3.0",
+ "json-schema": "0.4.0",
+ "verror": "1.10.0"
+ },
+ "engines": {
+ "node": ">=0.6.0"
+ }
+ },
+ "print/node_modules/juice": {
+ "version": "5.2.0",
+ "license": "MIT",
+ "dependencies": {
+ "cheerio": "^0.22.0",
+ "commander": "^2.15.1",
+ "cross-spawn": "^6.0.5",
+ "deep-extend": "^0.6.0",
+ "mensch": "^0.3.3",
+ "slick": "^1.12.2",
+ "web-resource-inliner": "^4.3.1"
+ },
+ "bin": {
+ "juice": "bin/juice"
+ },
+ "engines": {
+ "node": ">=4.2.0"
+ }
+ },
+ "print/node_modules/locate-path": {
+ "version": "5.0.0",
+ "license": "MIT",
+ "dependencies": {
+ "p-locate": "^4.1.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "print/node_modules/lodash._reinterpolate": {
+ "version": "3.0.0",
+ "license": "MIT"
+ },
+ "print/node_modules/lodash.assignin": {
+ "version": "4.2.0",
+ "license": "MIT"
+ },
+ "print/node_modules/lodash.bind": {
+ "version": "4.2.1",
+ "license": "MIT"
+ },
+ "print/node_modules/lodash.defaults": {
+ "version": "4.2.0",
+ "license": "MIT"
+ },
+ "print/node_modules/lodash.filter": {
+ "version": "4.6.0",
+ "license": "MIT"
+ },
+ "print/node_modules/lodash.flatten": {
+ "version": "4.4.0",
+ "license": "MIT"
+ },
+ "print/node_modules/lodash.foreach": {
+ "version": "4.5.0",
+ "license": "MIT"
+ },
+ "print/node_modules/lodash.map": {
+ "version": "4.6.0",
+ "license": "MIT"
+ },
+ "print/node_modules/lodash.merge": {
+ "version": "4.6.2",
+ "license": "MIT"
+ },
+ "print/node_modules/lodash.pick": {
+ "version": "4.4.0",
+ "license": "MIT"
+ },
+ "print/node_modules/lodash.reduce": {
+ "version": "4.6.0",
+ "license": "MIT"
+ },
+ "print/node_modules/lodash.reject": {
+ "version": "4.6.0",
+ "license": "MIT"
+ },
+ "print/node_modules/lodash.some": {
+ "version": "4.6.0",
+ "license": "MIT"
+ },
+ "print/node_modules/lodash.template": {
+ "version": "4.5.0",
+ "license": "MIT",
+ "dependencies": {
+ "lodash._reinterpolate": "^3.0.0",
+ "lodash.templatesettings": "^4.0.0"
+ }
+ },
+ "print/node_modules/lodash.templatesettings": {
+ "version": "4.2.0",
+ "license": "MIT",
+ "dependencies": {
+ "lodash._reinterpolate": "^3.0.0"
+ }
+ },
+ "print/node_modules/lodash.unescape": {
+ "version": "4.0.1",
+ "license": "MIT"
+ },
+ "print/node_modules/lodash.uniq": {
+ "version": "4.5.0",
+ "license": "MIT"
+ },
+ "print/node_modules/long": {
+ "version": "4.0.0",
+ "license": "Apache-2.0"
+ },
+ "print/node_modules/lru-cache": {
+ "version": "5.1.1",
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^3.0.2"
+ }
+ },
+ "print/node_modules/mensch": {
+ "version": "0.3.4",
+ "license": "MIT"
+ },
+ "print/node_modules/mime-db": {
+ "version": "1.52.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "print/node_modules/mime-types": {
+ "version": "2.1.35",
+ "license": "MIT",
+ "dependencies": {
+ "mime-db": "1.52.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "print/node_modules/mimer": {
+ "version": "1.1.1",
+ "license": "MIT",
+ "bin": {
+ "mimer": "bin/mimer"
+ },
+ "engines": {
+ "node": ">= 6.0"
+ }
+ },
+ "print/node_modules/mysql2": {
+ "version": "1.7.0",
+ "license": "MIT",
+ "dependencies": {
+ "denque": "^1.4.1",
+ "generate-function": "^2.3.1",
+ "iconv-lite": "^0.5.0",
+ "long": "^4.0.0",
+ "lru-cache": "^5.1.1",
+ "named-placeholders": "^1.1.2",
+ "seq-queue": "^0.0.5",
+ "sqlstring": "^2.3.1"
+ },
+ "engines": {
+ "node": ">= 8.0"
+ }
+ },
+ "print/node_modules/named-placeholders": {
+ "version": "1.1.2",
+ "license": "MIT",
+ "dependencies": {
+ "lru-cache": "^4.1.3"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "print/node_modules/named-placeholders/node_modules/lru-cache": {
+ "version": "4.1.5",
+ "license": "ISC",
+ "dependencies": {
+ "pseudomap": "^1.0.2",
+ "yallist": "^2.1.2"
+ }
+ },
+ "print/node_modules/named-placeholders/node_modules/yallist": {
+ "version": "2.1.2",
+ "license": "ISC"
+ },
+ "print/node_modules/nanoid": {
+ "version": "3.3.4",
+ "license": "MIT",
+ "bin": {
+ "nanoid": "bin/nanoid.cjs"
+ },
+ "engines": {
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+ }
+ },
+ "print/node_modules/nice-try": {
+ "version": "1.0.5",
+ "license": "MIT"
+ },
+ "print/node_modules/nodemailer": {
+ "version": "4.7.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "print/node_modules/nth-check": {
+ "version": "1.0.2",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "boolbase": "~1.0.0"
+ }
+ },
+ "print/node_modules/oauth-sign": {
+ "version": "0.9.0",
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "print/node_modules/p-limit": {
+ "version": "2.3.0",
+ "license": "MIT",
+ "dependencies": {
+ "p-try": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "print/node_modules/p-locate": {
+ "version": "4.1.0",
+ "license": "MIT",
+ "dependencies": {
+ "p-limit": "^2.2.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "print/node_modules/p-try": {
+ "version": "2.2.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "print/node_modules/path-exists": {
+ "version": "4.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "print/node_modules/path-key": {
+ "version": "2.0.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "print/node_modules/path-parse": {
+ "version": "1.0.7",
+ "license": "MIT"
+ },
+ "print/node_modules/performance-now": {
+ "version": "2.1.0",
+ "license": "MIT"
+ },
+ "print/node_modules/picocolors": {
+ "version": "1.0.0",
+ "license": "ISC"
+ },
+ "print/node_modules/pngjs": {
+ "version": "5.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "print/node_modules/postcss": {
+ "version": "8.4.17",
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/postcss"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "nanoid": "^3.3.4",
+ "picocolors": "^1.0.0",
+ "source-map-js": "^1.0.2"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ }
+ },
+ "print/node_modules/pseudomap": {
+ "version": "1.0.2",
+ "license": "ISC"
+ },
+ "print/node_modules/psl": {
+ "version": "1.9.0",
+ "license": "MIT"
+ },
+ "print/node_modules/punycode": {
+ "version": "2.1.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "print/node_modules/qrcode": {
+ "version": "1.5.1",
+ "license": "MIT",
+ "dependencies": {
+ "dijkstrajs": "^1.0.1",
+ "encode-utf8": "^1.0.3",
+ "pngjs": "^5.0.0",
+ "yargs": "^15.3.1"
+ },
+ "bin": {
+ "qrcode": "bin/qrcode"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "print/node_modules/qs": {
+ "version": "6.5.3",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.6"
+ }
+ },
+ "print/node_modules/randombytes": {
+ "version": "2.1.0",
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "^5.1.0"
+ }
+ },
+ "print/node_modules/readable-stream": {
+ "version": "3.6.0",
+ "license": "MIT",
+ "dependencies": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "print/node_modules/request": {
+ "version": "2.88.2",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "aws-sign2": "~0.7.0",
+ "aws4": "^1.8.0",
+ "caseless": "~0.12.0",
+ "combined-stream": "~1.0.6",
+ "extend": "~3.0.2",
+ "forever-agent": "~0.6.1",
+ "form-data": "~2.3.2",
+ "har-validator": "~5.1.3",
+ "http-signature": "~1.2.0",
+ "is-typedarray": "~1.0.0",
+ "isstream": "~0.1.2",
+ "json-stringify-safe": "~5.0.1",
+ "mime-types": "~2.1.19",
+ "oauth-sign": "~0.9.0",
+ "performance-now": "^2.1.0",
+ "qs": "~6.5.2",
+ "safe-buffer": "^5.1.2",
+ "tough-cookie": "~2.5.0",
+ "tunnel-agent": "^0.6.0",
+ "uuid": "^3.3.2"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "print/node_modules/require-directory": {
+ "version": "2.1.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "print/node_modules/require-main-filename": {
+ "version": "2.0.0",
+ "license": "ISC"
+ },
+ "print/node_modules/resolve": {
+ "version": "1.22.1",
+ "license": "MIT",
+ "dependencies": {
+ "is-core-module": "^2.9.0",
+ "path-parse": "^1.0.7",
+ "supports-preserve-symlinks-flag": "^1.0.0"
+ },
+ "bin": {
+ "resolve": "bin/resolve"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "print/node_modules/safe-buffer": {
+ "version": "5.2.1",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "print/node_modules/safer-buffer": {
+ "version": "2.1.2",
+ "license": "MIT"
+ },
+ "print/node_modules/semver": {
+ "version": "5.7.1",
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver"
+ }
+ },
+ "print/node_modules/seq-queue": {
+ "version": "0.0.5"
+ },
+ "print/node_modules/serialize-javascript": {
+ "version": "6.0.0",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "randombytes": "^2.1.0"
+ }
+ },
+ "print/node_modules/set-blocking": {
+ "version": "2.0.0",
+ "license": "ISC"
+ },
+ "print/node_modules/shebang-command": {
+ "version": "1.2.0",
+ "license": "MIT",
+ "dependencies": {
+ "shebang-regex": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "print/node_modules/shebang-regex": {
+ "version": "1.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "print/node_modules/slick": {
+ "version": "1.12.2",
+ "license": "MIT (http://mootools.net/license.txt)",
+ "engines": {
+ "node": "*"
+ }
+ },
+ "print/node_modules/source-map": {
+ "version": "0.6.1",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "print/node_modules/source-map-js": {
+ "version": "1.0.2",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "print/node_modules/sprintf-js": {
+ "version": "1.0.3",
+ "license": "BSD-3-Clause"
+ },
+ "print/node_modules/sqlstring": {
+ "version": "2.3.3",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "print/node_modules/sshpk": {
+ "version": "1.17.0",
+ "license": "MIT",
+ "dependencies": {
+ "asn1": "~0.2.3",
+ "assert-plus": "^1.0.0",
+ "bcrypt-pbkdf": "^1.0.0",
+ "dashdash": "^1.12.0",
+ "ecc-jsbn": "~0.1.1",
+ "getpass": "^0.1.1",
+ "jsbn": "~0.1.0",
+ "safer-buffer": "^2.0.2",
+ "tweetnacl": "~0.14.0"
+ },
+ "bin": {
+ "sshpk-conv": "bin/sshpk-conv",
+ "sshpk-sign": "bin/sshpk-sign",
+ "sshpk-verify": "bin/sshpk-verify"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "print/node_modules/strftime": {
+ "version": "0.10.1",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.2.0"
+ }
+ },
+ "print/node_modules/string_decoder": {
+ "version": "1.3.0",
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.2.0"
+ }
+ },
+ "print/node_modules/string-width": {
+ "version": "4.2.3",
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "print/node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "print/node_modules/supports-color": {
+ "version": "5.5.0",
+ "license": "MIT",
+ "dependencies": {
+ "has-flag": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "print/node_modules/supports-preserve-symlinks-flag": {
+ "version": "1.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "print/node_modules/tough-cookie": {
+ "version": "2.5.0",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "psl": "^1.1.28",
+ "punycode": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "print/node_modules/tunnel-agent": {
+ "version": "0.6.0",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "safe-buffer": "^5.0.1"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "print/node_modules/tweetnacl": {
+ "version": "0.14.5",
+ "license": "Unlicense"
+ },
+ "print/node_modules/universalify": {
+ "version": "0.1.2",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4.0.0"
+ }
+ },
+ "print/node_modules/uri-js": {
+ "version": "4.4.1",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "punycode": "^2.1.0"
+ }
+ },
+ "print/node_modules/util-deprecate": {
+ "version": "1.0.2",
+ "license": "MIT"
+ },
+ "print/node_modules/uuid": {
+ "version": "3.4.0",
+ "license": "MIT",
+ "bin": {
+ "uuid": "bin/uuid"
+ }
+ },
+ "print/node_modules/valid-data-url": {
+ "version": "2.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "print/node_modules/verror": {
+ "version": "1.10.0",
+ "engines": [
+ "node >=0.6.0"
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "assert-plus": "^1.0.0",
+ "core-util-is": "1.0.2",
+ "extsprintf": "^1.2.0"
+ }
+ },
+ "print/node_modules/vue": {
+ "version": "2.7.10",
+ "license": "MIT",
+ "dependencies": {
+ "@vue/compiler-sfc": "2.7.10",
+ "csstype": "^3.1.0"
+ }
+ },
+ "print/node_modules/vue-i18n": {
+ "version": "8.27.2",
+ "license": "MIT"
+ },
+ "print/node_modules/vue-server-renderer": {
+ "version": "2.7.10",
+ "license": "MIT",
+ "dependencies": {
+ "chalk": "^4.1.2",
+ "hash-sum": "^2.0.0",
+ "he": "^1.2.0",
+ "lodash.template": "^4.5.0",
+ "lodash.uniq": "^4.5.0",
+ "resolve": "^1.22.0",
+ "serialize-javascript": "^6.0.0",
+ "source-map": "0.5.6"
+ }
+ },
+ "print/node_modules/vue-server-renderer/node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "print/node_modules/vue-server-renderer/node_modules/chalk": {
+ "version": "4.1.2",
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/chalk?sponsor=1"
+ }
+ },
+ "print/node_modules/vue-server-renderer/node_modules/color-convert": {
+ "version": "2.0.1",
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "~1.1.4"
+ },
+ "engines": {
+ "node": ">=7.0.0"
+ }
+ },
+ "print/node_modules/vue-server-renderer/node_modules/color-name": {
+ "version": "1.1.4",
+ "license": "MIT"
+ },
+ "print/node_modules/vue-server-renderer/node_modules/has-flag": {
+ "version": "4.0.0",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "print/node_modules/vue-server-renderer/node_modules/source-map": {
+ "version": "0.5.6",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "print/node_modules/vue-server-renderer/node_modules/supports-color": {
+ "version": "7.2.0",
+ "license": "MIT",
+ "dependencies": {
+ "has-flag": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "print/node_modules/web-resource-inliner": {
+ "version": "4.3.4",
+ "license": "MIT",
+ "dependencies": {
+ "async": "^3.1.0",
+ "chalk": "^2.4.2",
+ "datauri": "^2.0.0",
+ "htmlparser2": "^4.0.0",
+ "lodash.unescape": "^4.0.1",
+ "request": "^2.88.0",
+ "safer-buffer": "^2.1.2",
+ "valid-data-url": "^2.0.0",
+ "xtend": "^4.0.2"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "print/node_modules/web-resource-inliner/node_modules/dom-serializer": {
+ "version": "1.4.1",
+ "license": "MIT",
+ "dependencies": {
+ "domelementtype": "^2.0.1",
+ "domhandler": "^4.2.0",
+ "entities": "^2.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1"
+ }
+ },
+ "print/node_modules/web-resource-inliner/node_modules/dom-serializer/node_modules/domhandler": {
+ "version": "4.3.1",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "domelementtype": "^2.2.0"
+ },
+ "engines": {
+ "node": ">= 4"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/domhandler?sponsor=1"
+ }
+ },
+ "print/node_modules/web-resource-inliner/node_modules/domelementtype": {
+ "version": "2.3.0",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/fb55"
+ }
+ ],
+ "license": "BSD-2-Clause"
+ },
+ "print/node_modules/web-resource-inliner/node_modules/domhandler": {
+ "version": "3.3.0",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "domelementtype": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 4"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/domhandler?sponsor=1"
+ }
+ },
+ "print/node_modules/web-resource-inliner/node_modules/domutils": {
+ "version": "2.8.0",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "dom-serializer": "^1.0.1",
+ "domelementtype": "^2.2.0",
+ "domhandler": "^4.2.0"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/domutils?sponsor=1"
+ }
+ },
+ "print/node_modules/web-resource-inliner/node_modules/domutils/node_modules/domhandler": {
+ "version": "4.3.1",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "domelementtype": "^2.2.0"
+ },
+ "engines": {
+ "node": ">= 4"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/domhandler?sponsor=1"
+ }
+ },
+ "print/node_modules/web-resource-inliner/node_modules/entities": {
+ "version": "2.2.0",
+ "license": "BSD-2-Clause",
+ "funding": {
+ "url": "https://github.com/fb55/entities?sponsor=1"
+ }
+ },
+ "print/node_modules/web-resource-inliner/node_modules/htmlparser2": {
+ "version": "4.1.0",
+ "license": "MIT",
+ "dependencies": {
+ "domelementtype": "^2.0.1",
+ "domhandler": "^3.0.0",
+ "domutils": "^2.0.0",
+ "entities": "^2.0.0"
+ }
+ },
+ "print/node_modules/which": {
+ "version": "1.3.1",
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "which": "bin/which"
+ }
+ },
+ "print/node_modules/which-module": {
+ "version": "2.0.0",
+ "license": "ISC"
+ },
+ "print/node_modules/wrap-ansi": {
+ "version": "6.2.0",
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "print/node_modules/wrap-ansi/node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "print/node_modules/wrap-ansi/node_modules/color-convert": {
+ "version": "2.0.1",
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "~1.1.4"
+ },
+ "engines": {
+ "node": ">=7.0.0"
+ }
+ },
+ "print/node_modules/wrap-ansi/node_modules/color-name": {
+ "version": "1.1.4",
+ "license": "MIT"
+ },
+ "print/node_modules/xtend": {
+ "version": "4.0.2",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4"
+ }
+ },
+ "print/node_modules/y18n": {
+ "version": "4.0.3",
+ "license": "ISC"
+ },
+ "print/node_modules/yallist": {
+ "version": "3.1.1",
+ "license": "ISC"
+ },
+ "print/node_modules/yargs": {
+ "version": "15.4.1",
+ "license": "MIT",
+ "dependencies": {
+ "cliui": "^6.0.0",
+ "decamelize": "^1.2.0",
+ "find-up": "^4.1.0",
+ "get-caller-file": "^2.0.1",
+ "require-directory": "^2.1.1",
+ "require-main-filename": "^2.0.0",
+ "set-blocking": "^2.0.0",
+ "string-width": "^4.2.0",
+ "which-module": "^2.0.0",
+ "y18n": "^4.0.0",
+ "yargs-parser": "^18.1.2"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "print/node_modules/yargs-parser": {
+ "version": "18.1.3",
+ "license": "ISC",
+ "dependencies": {
+ "camelcase": "^5.0.0",
+ "decamelize": "^1.2.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ }
+ },
+ "dependencies": {
+ "@ampproject/remapping": {
+ "version": "2.1.2",
+ "dev": true,
+ "requires": {
+ "@jridgewell/trace-mapping": "^0.3.0"
+ }
+ },
+ "@babel/code-frame": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/highlight": "^7.16.7"
+ }
+ },
+ "@babel/compat-data": {
+ "version": "7.17.7",
+ "dev": true
+ },
+ "@babel/core": {
+ "version": "7.17.8",
+ "dev": true,
+ "requires": {
+ "@ampproject/remapping": "^2.1.0",
+ "@babel/code-frame": "^7.16.7",
+ "@babel/generator": "^7.17.7",
+ "@babel/helper-compilation-targets": "^7.17.7",
+ "@babel/helper-module-transforms": "^7.17.7",
+ "@babel/helpers": "^7.17.8",
+ "@babel/parser": "^7.17.8",
+ "@babel/template": "^7.16.7",
+ "@babel/traverse": "^7.17.3",
+ "@babel/types": "^7.17.0",
+ "convert-source-map": "^1.7.0",
+ "debug": "^4.1.0",
+ "gensync": "^1.0.0-beta.2",
+ "json5": "^2.1.2",
+ "semver": "^6.3.0"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "4.3.4",
+ "dev": true,
+ "requires": {
+ "ms": "2.1.2"
+ }
+ },
+ "ms": {
+ "version": "2.1.2",
+ "dev": true
+ },
+ "semver": {
+ "version": "6.3.0",
+ "dev": true
+ }
+ }
+ },
+ "@babel/generator": {
+ "version": "7.17.7",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.17.0",
+ "jsesc": "^2.5.1",
+ "source-map": "^0.5.0"
+ }
+ },
+ "@babel/helper-annotate-as-pure": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.16.7"
+ }
+ },
+ "@babel/helper-builder-binary-assignment-operator-visitor": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-explode-assignable-expression": "^7.16.7",
+ "@babel/types": "^7.16.7"
+ }
+ },
+ "@babel/helper-compilation-targets": {
+ "version": "7.17.7",
+ "dev": true,
+ "requires": {
+ "@babel/compat-data": "^7.17.7",
+ "@babel/helper-validator-option": "^7.16.7",
+ "browserslist": "^4.17.5",
+ "semver": "^6.3.0"
+ },
+ "dependencies": {
+ "semver": {
+ "version": "6.3.0",
+ "dev": true
+ }
+ }
+ },
+ "@babel/helper-create-class-features-plugin": {
+ "version": "7.17.6",
+ "dev": true,
+ "requires": {
+ "@babel/helper-annotate-as-pure": "^7.16.7",
+ "@babel/helper-environment-visitor": "^7.16.7",
+ "@babel/helper-function-name": "^7.16.7",
+ "@babel/helper-member-expression-to-functions": "^7.16.7",
+ "@babel/helper-optimise-call-expression": "^7.16.7",
+ "@babel/helper-replace-supers": "^7.16.7",
+ "@babel/helper-split-export-declaration": "^7.16.7"
+ }
+ },
+ "@babel/helper-create-regexp-features-plugin": {
+ "version": "7.17.0",
+ "dev": true,
+ "requires": {
+ "@babel/helper-annotate-as-pure": "^7.16.7",
+ "regexpu-core": "^5.0.1"
+ }
+ },
+ "@babel/helper-define-polyfill-provider": {
+ "version": "0.3.1",
+ "dev": true,
+ "requires": {
+ "@babel/helper-compilation-targets": "^7.13.0",
+ "@babel/helper-module-imports": "^7.12.13",
+ "@babel/helper-plugin-utils": "^7.13.0",
+ "@babel/traverse": "^7.13.0",
+ "debug": "^4.1.1",
+ "lodash.debounce": "^4.0.8",
+ "resolve": "^1.14.2",
+ "semver": "^6.1.2"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "4.3.4",
+ "dev": true,
+ "requires": {
+ "ms": "2.1.2"
+ }
+ },
+ "ms": {
+ "version": "2.1.2",
+ "dev": true
+ },
+ "semver": {
+ "version": "6.3.0",
+ "dev": true
+ }
+ }
+ },
+ "@babel/helper-environment-visitor": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.16.7"
+ }
+ },
+ "@babel/helper-explode-assignable-expression": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.16.7"
+ }
+ },
+ "@babel/helper-function-name": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-get-function-arity": "^7.16.7",
+ "@babel/template": "^7.16.7",
+ "@babel/types": "^7.16.7"
+ }
+ },
+ "@babel/helper-get-function-arity": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.16.7"
+ }
+ },
+ "@babel/helper-hoist-variables": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.16.7"
+ }
+ },
+ "@babel/helper-member-expression-to-functions": {
+ "version": "7.17.7",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.17.0"
+ }
+ },
+ "@babel/helper-module-imports": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.16.7"
+ }
+ },
+ "@babel/helper-module-transforms": {
+ "version": "7.17.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-environment-visitor": "^7.16.7",
+ "@babel/helper-module-imports": "^7.16.7",
+ "@babel/helper-simple-access": "^7.17.7",
+ "@babel/helper-split-export-declaration": "^7.16.7",
+ "@babel/helper-validator-identifier": "^7.16.7",
+ "@babel/template": "^7.16.7",
+ "@babel/traverse": "^7.17.3",
+ "@babel/types": "^7.17.0"
+ }
+ },
+ "@babel/helper-optimise-call-expression": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.16.7"
+ }
+ },
+ "@babel/helper-plugin-utils": {
+ "version": "7.16.7",
+ "dev": true
+ },
+ "@babel/helper-remap-async-to-generator": {
+ "version": "7.16.8",
+ "dev": true,
+ "requires": {
+ "@babel/helper-annotate-as-pure": "^7.16.7",
+ "@babel/helper-wrap-function": "^7.16.8",
+ "@babel/types": "^7.16.8"
+ }
+ },
+ "@babel/helper-replace-supers": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-environment-visitor": "^7.16.7",
+ "@babel/helper-member-expression-to-functions": "^7.16.7",
+ "@babel/helper-optimise-call-expression": "^7.16.7",
+ "@babel/traverse": "^7.16.7",
+ "@babel/types": "^7.16.7"
+ }
+ },
+ "@babel/helper-simple-access": {
+ "version": "7.17.7",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.17.0"
+ }
+ },
+ "@babel/helper-skip-transparent-expression-wrappers": {
+ "version": "7.16.0",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.16.0"
+ }
+ },
+ "@babel/helper-split-export-declaration": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.16.7"
+ }
+ },
+ "@babel/helper-validator-identifier": {
+ "version": "7.16.7",
+ "dev": true
+ },
+ "@babel/helper-validator-option": {
+ "version": "7.16.7",
+ "dev": true
+ },
+ "@babel/helper-wrap-function": {
+ "version": "7.16.8",
+ "dev": true,
+ "requires": {
+ "@babel/helper-function-name": "^7.16.7",
+ "@babel/template": "^7.16.7",
+ "@babel/traverse": "^7.16.8",
+ "@babel/types": "^7.16.8"
+ }
+ },
+ "@babel/helpers": {
+ "version": "7.17.8",
+ "dev": true,
+ "requires": {
+ "@babel/template": "^7.16.7",
+ "@babel/traverse": "^7.17.3",
+ "@babel/types": "^7.17.0"
+ }
+ },
+ "@babel/highlight": {
+ "version": "7.16.10",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.16.7",
+ "chalk": "^2.0.0",
+ "js-tokens": "^4.0.0"
+ },
+ "dependencies": {
+ "ansi-styles": {
+ "version": "3.2.1",
+ "dev": true,
+ "requires": {
+ "color-convert": "^1.9.0"
+ }
+ },
+ "chalk": {
+ "version": "2.4.2",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^3.2.1",
+ "escape-string-regexp": "^1.0.5",
+ "supports-color": "^5.3.0"
+ }
+ },
+ "color-convert": {
+ "version": "1.9.3",
+ "dev": true,
+ "requires": {
+ "color-name": "1.1.3"
+ }
+ },
+ "color-name": {
+ "version": "1.1.3",
+ "dev": true
+ },
+ "escape-string-regexp": {
+ "version": "1.0.5",
+ "dev": true
+ },
+ "has-flag": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "supports-color": {
+ "version": "5.5.0",
+ "dev": true,
+ "requires": {
+ "has-flag": "^3.0.0"
+ }
+ }
+ }
+ },
+ "@babel/parser": {
+ "version": "7.17.8",
+ "dev": true
+ },
+ "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ }
+ },
+ "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/helper-skip-transparent-expression-wrappers": "^7.16.0",
+ "@babel/plugin-proposal-optional-chaining": "^7.16.7"
+ }
+ },
+ "@babel/plugin-proposal-async-generator-functions": {
+ "version": "7.16.8",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/helper-remap-async-to-generator": "^7.16.8",
+ "@babel/plugin-syntax-async-generators": "^7.8.4"
+ }
+ },
+ "@babel/plugin-proposal-class-properties": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-create-class-features-plugin": "^7.16.7",
+ "@babel/helper-plugin-utils": "^7.16.7"
+ }
+ },
+ "@babel/plugin-proposal-class-static-block": {
+ "version": "7.17.6",
+ "dev": true,
+ "requires": {
+ "@babel/helper-create-class-features-plugin": "^7.17.6",
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/plugin-syntax-class-static-block": "^7.14.5"
+ }
+ },
+ "@babel/plugin-proposal-dynamic-import": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/plugin-syntax-dynamic-import": "^7.8.3"
+ }
+ },
+ "@babel/plugin-proposal-export-namespace-from": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/plugin-syntax-export-namespace-from": "^7.8.3"
+ }
+ },
+ "@babel/plugin-proposal-json-strings": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/plugin-syntax-json-strings": "^7.8.3"
+ }
+ },
+ "@babel/plugin-proposal-logical-assignment-operators": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4"
+ }
+ },
+ "@babel/plugin-proposal-nullish-coalescing-operator": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3"
+ }
+ },
+ "@babel/plugin-proposal-numeric-separator": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/plugin-syntax-numeric-separator": "^7.10.4"
+ }
+ },
+ "@babel/plugin-proposal-object-rest-spread": {
+ "version": "7.17.3",
+ "dev": true,
+ "requires": {
+ "@babel/compat-data": "^7.17.0",
+ "@babel/helper-compilation-targets": "^7.16.7",
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/plugin-syntax-object-rest-spread": "^7.8.3",
+ "@babel/plugin-transform-parameters": "^7.16.7"
+ }
+ },
+ "@babel/plugin-proposal-optional-catch-binding": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/plugin-syntax-optional-catch-binding": "^7.8.3"
+ }
+ },
+ "@babel/plugin-proposal-optional-chaining": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/helper-skip-transparent-expression-wrappers": "^7.16.0",
+ "@babel/plugin-syntax-optional-chaining": "^7.8.3"
+ }
+ },
+ "@babel/plugin-proposal-private-methods": {
+ "version": "7.16.11",
+ "dev": true,
+ "requires": {
+ "@babel/helper-create-class-features-plugin": "^7.16.10",
+ "@babel/helper-plugin-utils": "^7.16.7"
+ }
+ },
+ "@babel/plugin-proposal-private-property-in-object": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-annotate-as-pure": "^7.16.7",
+ "@babel/helper-create-class-features-plugin": "^7.16.7",
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/plugin-syntax-private-property-in-object": "^7.14.5"
+ }
+ },
+ "@babel/plugin-proposal-unicode-property-regex": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-create-regexp-features-plugin": "^7.16.7",
+ "@babel/helper-plugin-utils": "^7.16.7"
+ }
+ },
+ "@babel/plugin-syntax-async-generators": {
+ "version": "7.8.4",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ }
+ },
+ "@babel/plugin-syntax-bigint": {
+ "version": "7.8.3",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ }
+ },
+ "@babel/plugin-syntax-class-properties": {
+ "version": "7.12.13",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.12.13"
+ }
+ },
+ "@babel/plugin-syntax-class-static-block": {
+ "version": "7.14.5",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.14.5"
+ }
+ },
+ "@babel/plugin-syntax-dynamic-import": {
+ "version": "7.8.3",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ }
+ },
+ "@babel/plugin-syntax-export-namespace-from": {
+ "version": "7.8.3",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.3"
+ }
+ },
+ "@babel/plugin-syntax-import-meta": {
+ "version": "7.10.4",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-syntax-json-strings": {
+ "version": "7.8.3",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ }
+ },
+ "@babel/plugin-syntax-logical-assignment-operators": {
+ "version": "7.10.4",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-syntax-nullish-coalescing-operator": {
+ "version": "7.8.3",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ }
+ },
+ "@babel/plugin-syntax-numeric-separator": {
+ "version": "7.10.4",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.10.4"
+ }
+ },
+ "@babel/plugin-syntax-object-rest-spread": {
+ "version": "7.8.3",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ }
+ },
+ "@babel/plugin-syntax-optional-catch-binding": {
+ "version": "7.8.3",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ }
+ },
+ "@babel/plugin-syntax-optional-chaining": {
+ "version": "7.8.3",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.8.0"
+ }
+ },
+ "@babel/plugin-syntax-private-property-in-object": {
+ "version": "7.14.5",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.14.5"
+ }
+ },
+ "@babel/plugin-syntax-top-level-await": {
+ "version": "7.14.5",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.14.5"
+ }
+ },
+ "@babel/plugin-transform-arrow-functions": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ }
+ },
+ "@babel/plugin-transform-async-to-generator": {
+ "version": "7.16.8",
+ "dev": true,
+ "requires": {
+ "@babel/helper-module-imports": "^7.16.7",
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/helper-remap-async-to-generator": "^7.16.8"
+ }
+ },
+ "@babel/plugin-transform-block-scoped-functions": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ }
+ },
+ "@babel/plugin-transform-block-scoping": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ }
+ },
+ "@babel/plugin-transform-classes": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-annotate-as-pure": "^7.16.7",
+ "@babel/helper-environment-visitor": "^7.16.7",
+ "@babel/helper-function-name": "^7.16.7",
+ "@babel/helper-optimise-call-expression": "^7.16.7",
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/helper-replace-supers": "^7.16.7",
+ "@babel/helper-split-export-declaration": "^7.16.7",
+ "globals": "^11.1.0"
+ }
+ },
+ "@babel/plugin-transform-computed-properties": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ }
+ },
+ "@babel/plugin-transform-destructuring": {
+ "version": "7.17.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ }
+ },
+ "@babel/plugin-transform-dotall-regex": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-create-regexp-features-plugin": "^7.16.7",
+ "@babel/helper-plugin-utils": "^7.16.7"
+ }
+ },
+ "@babel/plugin-transform-duplicate-keys": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ }
+ },
+ "@babel/plugin-transform-exponentiation-operator": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-builder-binary-assignment-operator-visitor": "^7.16.7",
+ "@babel/helper-plugin-utils": "^7.16.7"
+ }
+ },
+ "@babel/plugin-transform-for-of": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ }
+ },
+ "@babel/plugin-transform-function-name": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-compilation-targets": "^7.16.7",
+ "@babel/helper-function-name": "^7.16.7",
+ "@babel/helper-plugin-utils": "^7.16.7"
+ }
+ },
+ "@babel/plugin-transform-literals": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ }
+ },
+ "@babel/plugin-transform-member-expression-literals": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ }
+ },
+ "@babel/plugin-transform-modules-amd": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-module-transforms": "^7.16.7",
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "babel-plugin-dynamic-import-node": "^2.3.3"
+ }
+ },
+ "@babel/plugin-transform-modules-commonjs": {
+ "version": "7.17.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-module-transforms": "^7.17.7",
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/helper-simple-access": "^7.17.7",
+ "babel-plugin-dynamic-import-node": "^2.3.3"
+ }
+ },
+ "@babel/plugin-transform-modules-systemjs": {
+ "version": "7.17.8",
+ "dev": true,
+ "requires": {
+ "@babel/helper-hoist-variables": "^7.16.7",
+ "@babel/helper-module-transforms": "^7.17.7",
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/helper-validator-identifier": "^7.16.7",
+ "babel-plugin-dynamic-import-node": "^2.3.3"
+ }
+ },
+ "@babel/plugin-transform-modules-umd": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-module-transforms": "^7.16.7",
+ "@babel/helper-plugin-utils": "^7.16.7"
+ }
+ },
+ "@babel/plugin-transform-named-capturing-groups-regex": {
+ "version": "7.16.8",
+ "dev": true,
+ "requires": {
+ "@babel/helper-create-regexp-features-plugin": "^7.16.7"
+ }
+ },
+ "@babel/plugin-transform-new-target": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ }
+ },
+ "@babel/plugin-transform-object-super": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/helper-replace-supers": "^7.16.7"
+ }
+ },
+ "@babel/plugin-transform-parameters": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ }
+ },
+ "@babel/plugin-transform-property-literals": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ }
+ },
+ "@babel/plugin-transform-regenerator": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "regenerator-transform": "^0.14.2"
+ }
+ },
+ "@babel/plugin-transform-reserved-words": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ }
+ },
+ "@babel/plugin-transform-shorthand-properties": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ }
+ },
+ "@babel/plugin-transform-spread": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/helper-skip-transparent-expression-wrappers": "^7.16.0"
+ }
+ },
+ "@babel/plugin-transform-sticky-regex": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ }
+ },
+ "@babel/plugin-transform-template-literals": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ }
+ },
+ "@babel/plugin-transform-typeof-symbol": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ }
+ },
+ "@babel/plugin-transform-unicode-escapes": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.16.7"
+ }
+ },
+ "@babel/plugin-transform-unicode-regex": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/helper-create-regexp-features-plugin": "^7.16.7",
+ "@babel/helper-plugin-utils": "^7.16.7"
+ }
+ },
+ "@babel/preset-env": {
+ "version": "7.16.11",
+ "dev": true,
+ "requires": {
+ "@babel/compat-data": "^7.16.8",
+ "@babel/helper-compilation-targets": "^7.16.7",
+ "@babel/helper-plugin-utils": "^7.16.7",
+ "@babel/helper-validator-option": "^7.16.7",
+ "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.16.7",
+ "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.16.7",
+ "@babel/plugin-proposal-async-generator-functions": "^7.16.8",
+ "@babel/plugin-proposal-class-properties": "^7.16.7",
+ "@babel/plugin-proposal-class-static-block": "^7.16.7",
+ "@babel/plugin-proposal-dynamic-import": "^7.16.7",
+ "@babel/plugin-proposal-export-namespace-from": "^7.16.7",
+ "@babel/plugin-proposal-json-strings": "^7.16.7",
+ "@babel/plugin-proposal-logical-assignment-operators": "^7.16.7",
+ "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
+ "@babel/plugin-proposal-numeric-separator": "^7.16.7",
+ "@babel/plugin-proposal-object-rest-spread": "^7.16.7",
+ "@babel/plugin-proposal-optional-catch-binding": "^7.16.7",
+ "@babel/plugin-proposal-optional-chaining": "^7.16.7",
+ "@babel/plugin-proposal-private-methods": "^7.16.11",
+ "@babel/plugin-proposal-private-property-in-object": "^7.16.7",
+ "@babel/plugin-proposal-unicode-property-regex": "^7.16.7",
+ "@babel/plugin-syntax-async-generators": "^7.8.4",
+ "@babel/plugin-syntax-class-properties": "^7.12.13",
+ "@babel/plugin-syntax-class-static-block": "^7.14.5",
+ "@babel/plugin-syntax-dynamic-import": "^7.8.3",
+ "@babel/plugin-syntax-export-namespace-from": "^7.8.3",
+ "@babel/plugin-syntax-json-strings": "^7.8.3",
+ "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4",
+ "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3",
+ "@babel/plugin-syntax-numeric-separator": "^7.10.4",
+ "@babel/plugin-syntax-object-rest-spread": "^7.8.3",
+ "@babel/plugin-syntax-optional-catch-binding": "^7.8.3",
+ "@babel/plugin-syntax-optional-chaining": "^7.8.3",
+ "@babel/plugin-syntax-private-property-in-object": "^7.14.5",
+ "@babel/plugin-syntax-top-level-await": "^7.14.5",
+ "@babel/plugin-transform-arrow-functions": "^7.16.7",
+ "@babel/plugin-transform-async-to-generator": "^7.16.8",
+ "@babel/plugin-transform-block-scoped-functions": "^7.16.7",
+ "@babel/plugin-transform-block-scoping": "^7.16.7",
+ "@babel/plugin-transform-classes": "^7.16.7",
+ "@babel/plugin-transform-computed-properties": "^7.16.7",
+ "@babel/plugin-transform-destructuring": "^7.16.7",
+ "@babel/plugin-transform-dotall-regex": "^7.16.7",
+ "@babel/plugin-transform-duplicate-keys": "^7.16.7",
+ "@babel/plugin-transform-exponentiation-operator": "^7.16.7",
+ "@babel/plugin-transform-for-of": "^7.16.7",
+ "@babel/plugin-transform-function-name": "^7.16.7",
+ "@babel/plugin-transform-literals": "^7.16.7",
+ "@babel/plugin-transform-member-expression-literals": "^7.16.7",
+ "@babel/plugin-transform-modules-amd": "^7.16.7",
+ "@babel/plugin-transform-modules-commonjs": "^7.16.8",
+ "@babel/plugin-transform-modules-systemjs": "^7.16.7",
+ "@babel/plugin-transform-modules-umd": "^7.16.7",
+ "@babel/plugin-transform-named-capturing-groups-regex": "^7.16.8",
+ "@babel/plugin-transform-new-target": "^7.16.7",
+ "@babel/plugin-transform-object-super": "^7.16.7",
+ "@babel/plugin-transform-parameters": "^7.16.7",
+ "@babel/plugin-transform-property-literals": "^7.16.7",
+ "@babel/plugin-transform-regenerator": "^7.16.7",
+ "@babel/plugin-transform-reserved-words": "^7.16.7",
+ "@babel/plugin-transform-shorthand-properties": "^7.16.7",
+ "@babel/plugin-transform-spread": "^7.16.7",
+ "@babel/plugin-transform-sticky-regex": "^7.16.7",
+ "@babel/plugin-transform-template-literals": "^7.16.7",
+ "@babel/plugin-transform-typeof-symbol": "^7.16.7",
+ "@babel/plugin-transform-unicode-escapes": "^7.16.7",
+ "@babel/plugin-transform-unicode-regex": "^7.16.7",
+ "@babel/preset-modules": "^0.1.5",
+ "@babel/types": "^7.16.8",
+ "babel-plugin-polyfill-corejs2": "^0.3.0",
+ "babel-plugin-polyfill-corejs3": "^0.5.0",
+ "babel-plugin-polyfill-regenerator": "^0.3.0",
+ "core-js-compat": "^3.20.2",
+ "semver": "^6.3.0"
+ },
+ "dependencies": {
+ "semver": {
+ "version": "6.3.0",
+ "dev": true
+ }
+ }
+ },
+ "@babel/preset-modules": {
+ "version": "0.1.5",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.0.0",
+ "@babel/plugin-proposal-unicode-property-regex": "^7.4.4",
+ "@babel/plugin-transform-dotall-regex": "^7.4.4",
+ "@babel/types": "^7.4.4",
+ "esutils": "^2.0.2"
+ }
+ },
+ "@babel/register": {
+ "version": "7.17.7",
+ "dev": true,
+ "requires": {
+ "clone-deep": "^4.0.1",
+ "find-cache-dir": "^2.0.0",
+ "make-dir": "^2.1.0",
+ "pirates": "^4.0.5",
+ "source-map-support": "^0.5.16"
+ },
+ "dependencies": {
+ "make-dir": {
+ "version": "2.1.0",
+ "dev": true,
+ "requires": {
+ "pify": "^4.0.1",
+ "semver": "^5.6.0"
+ }
+ },
+ "semver": {
+ "version": "5.7.1",
+ "dev": true
+ }
+ }
+ },
+ "@babel/runtime": {
+ "version": "7.17.8",
+ "dev": true,
+ "requires": {
+ "regenerator-runtime": "^0.13.4"
+ }
+ },
+ "@babel/runtime-corejs3": {
+ "version": "7.17.8",
+ "requires": {
+ "core-js-pure": "^3.20.2",
+ "regenerator-runtime": "^0.13.4"
+ }
+ },
+ "@babel/template": {
+ "version": "7.16.7",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.16.7",
+ "@babel/parser": "^7.16.7",
+ "@babel/types": "^7.16.7"
+ }
+ },
+ "@babel/traverse": {
+ "version": "7.17.3",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.16.7",
+ "@babel/generator": "^7.17.3",
+ "@babel/helper-environment-visitor": "^7.16.7",
+ "@babel/helper-function-name": "^7.16.7",
+ "@babel/helper-hoist-variables": "^7.16.7",
+ "@babel/helper-split-export-declaration": "^7.16.7",
+ "@babel/parser": "^7.17.3",
+ "@babel/types": "^7.17.0",
+ "debug": "^4.1.0",
+ "globals": "^11.1.0"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "4.3.4",
+ "dev": true,
+ "requires": {
+ "ms": "2.1.2"
+ }
+ },
+ "ms": {
+ "version": "2.1.2",
+ "dev": true
+ }
+ }
+ },
+ "@babel/types": {
+ "version": "7.17.0",
+ "dev": true,
+ "requires": {
+ "@babel/helper-validator-identifier": "^7.16.7",
+ "to-fast-properties": "^2.0.0"
+ }
+ },
+ "@bcoe/v8-coverage": {
+ "version": "0.2.3",
+ "dev": true
+ },
+ "@cnakazawa/watch": {
+ "version": "1.0.4",
+ "dev": true,
+ "requires": {
+ "exec-sh": "^0.3.2",
+ "minimist": "^1.2.0"
+ }
+ },
+ "@eslint/eslintrc": {
+ "version": "0.4.3",
+ "dev": true,
+ "requires": {
+ "ajv": "^6.12.4",
+ "debug": "^4.1.1",
+ "espree": "^7.3.0",
+ "globals": "^13.9.0",
+ "ignore": "^4.0.6",
+ "import-fresh": "^3.2.1",
+ "js-yaml": "^3.13.1",
+ "minimatch": "^3.0.4",
+ "strip-json-comments": "^3.1.1"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "4.3.4",
+ "dev": true,
+ "requires": {
+ "ms": "2.1.2"
+ }
+ },
+ "globals": {
+ "version": "13.13.0",
+ "dev": true,
+ "requires": {
+ "type-fest": "^0.20.2"
+ }
+ },
+ "js-yaml": {
+ "version": "3.14.1",
+ "dev": true,
+ "requires": {
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
+ }
+ },
+ "ms": {
+ "version": "2.1.2",
+ "dev": true
+ },
+ "strip-json-comments": {
+ "version": "3.1.1",
+ "dev": true
+ },
+ "type-fest": {
+ "version": "0.20.2",
+ "dev": true
+ }
+ }
+ },
+ "@google-cloud/common": {
+ "version": "0.32.1",
+ "requires": {
+ "@google-cloud/projectify": "^0.3.3",
+ "@google-cloud/promisify": "^0.4.0",
+ "@types/request": "^2.48.1",
+ "arrify": "^2.0.0",
+ "duplexify": "^3.6.0",
+ "ent": "^2.2.0",
+ "extend": "^3.0.2",
+ "google-auth-library": "^3.1.1",
+ "pify": "^4.0.1",
+ "retry-request": "^4.0.0",
+ "teeny-request": "^3.11.3"
+ },
+ "dependencies": {
+ "arrify": {
+ "version": "2.0.1"
+ }
+ }
+ },
+ "@google-cloud/paginator": {
+ "version": "0.2.0",
+ "requires": {
+ "arrify": "^1.0.1",
+ "extend": "^3.0.1",
+ "split-array-stream": "^2.0.0",
+ "stream-events": "^1.0.4"
+ }
+ },
+ "@google-cloud/projectify": {
+ "version": "0.3.3"
+ },
+ "@google-cloud/promisify": {
+ "version": "0.4.0"
+ },
+ "@google-cloud/storage": {
+ "version": "2.5.0",
+ "requires": {
+ "@google-cloud/common": "^0.32.0",
+ "@google-cloud/paginator": "^0.2.0",
+ "@google-cloud/promisify": "^0.4.0",
+ "arrify": "^1.0.0",
+ "async": "^2.0.1",
+ "compressible": "^2.0.12",
+ "concat-stream": "^2.0.0",
+ "date-and-time": "^0.6.3",
+ "duplexify": "^3.5.0",
+ "extend": "^3.0.0",
+ "gcs-resumable-upload": "^1.0.0",
+ "hash-stream-validation": "^0.2.1",
+ "mime": "^2.2.0",
+ "mime-types": "^2.0.8",
+ "onetime": "^5.1.0",
+ "pumpify": "^1.5.1",
+ "snakeize": "^0.1.0",
+ "stream-events": "^1.0.1",
+ "teeny-request": "^3.11.3",
+ "through2": "^3.0.0",
+ "xdg-basedir": "^3.0.0"
+ },
+ "dependencies": {
+ "mime": {
+ "version": "2.6.0"
+ }
+ }
+ },
+ "@humanwhocodes/config-array": {
+ "version": "0.5.0",
+ "dev": true,
+ "requires": {
+ "@humanwhocodes/object-schema": "^1.2.0",
+ "debug": "^4.1.1",
+ "minimatch": "^3.0.4"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "4.3.4",
+ "dev": true,
+ "requires": {
+ "ms": "2.1.2"
+ }
+ },
+ "ms": {
+ "version": "2.1.2",
+ "dev": true
+ }
+ }
+ },
+ "@humanwhocodes/object-schema": {
+ "version": "1.2.1",
+ "dev": true
+ },
+ "@istanbuljs/load-nyc-config": {
+ "version": "1.1.0",
+ "dev": true,
+ "requires": {
+ "camelcase": "^5.3.1",
+ "find-up": "^4.1.0",
+ "get-package-type": "^0.1.0",
+ "js-yaml": "^3.13.1",
+ "resolve-from": "^5.0.0"
+ },
+ "dependencies": {
+ "js-yaml": {
+ "version": "3.14.1",
+ "dev": true,
+ "requires": {
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
+ }
+ }
+ }
+ },
+ "@istanbuljs/schema": {
+ "version": "0.1.3",
+ "dev": true
+ },
+ "@jest/console": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "@jest/types": "^26.6.2",
+ "@types/node": "*",
+ "chalk": "^4.0.0",
+ "jest-message-util": "^26.6.2",
+ "jest-util": "^26.6.2",
+ "slash": "^3.0.0"
+ }
+ },
+ "@jest/core": {
+ "version": "26.6.3",
+ "dev": true,
+ "requires": {
+ "@jest/console": "^26.6.2",
+ "@jest/reporters": "^26.6.2",
+ "@jest/test-result": "^26.6.2",
+ "@jest/transform": "^26.6.2",
+ "@jest/types": "^26.6.2",
+ "@types/node": "*",
+ "ansi-escapes": "^4.2.1",
+ "chalk": "^4.0.0",
+ "exit": "^0.1.2",
+ "graceful-fs": "^4.2.4",
+ "jest-changed-files": "^26.6.2",
+ "jest-config": "^26.6.3",
+ "jest-haste-map": "^26.6.2",
+ "jest-message-util": "^26.6.2",
+ "jest-regex-util": "^26.0.0",
+ "jest-resolve": "^26.6.2",
+ "jest-resolve-dependencies": "^26.6.3",
+ "jest-runner": "^26.6.3",
+ "jest-runtime": "^26.6.3",
+ "jest-snapshot": "^26.6.2",
+ "jest-util": "^26.6.2",
+ "jest-validate": "^26.6.2",
+ "jest-watcher": "^26.6.2",
+ "micromatch": "^4.0.2",
+ "p-each-series": "^2.1.0",
+ "rimraf": "^3.0.0",
+ "slash": "^3.0.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "5.0.1",
+ "dev": true
+ },
+ "strip-ansi": {
+ "version": "6.0.1",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^5.0.1"
+ }
+ }
+ }
+ },
+ "@jest/environment": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "@jest/fake-timers": "^26.6.2",
+ "@jest/types": "^26.6.2",
+ "@types/node": "*",
+ "jest-mock": "^26.6.2"
+ }
+ },
+ "@jest/fake-timers": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "@jest/types": "^26.6.2",
+ "@sinonjs/fake-timers": "^6.0.1",
+ "@types/node": "*",
+ "jest-message-util": "^26.6.2",
+ "jest-mock": "^26.6.2",
+ "jest-util": "^26.6.2"
+ }
+ },
+ "@jest/globals": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "@jest/environment": "^26.6.2",
+ "@jest/types": "^26.6.2",
+ "expect": "^26.6.2"
+ }
+ },
+ "@jest/reporters": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "@bcoe/v8-coverage": "^0.2.3",
+ "@jest/console": "^26.6.2",
+ "@jest/test-result": "^26.6.2",
+ "@jest/transform": "^26.6.2",
+ "@jest/types": "^26.6.2",
+ "chalk": "^4.0.0",
+ "collect-v8-coverage": "^1.0.0",
+ "exit": "^0.1.2",
+ "glob": "^7.1.2",
+ "graceful-fs": "^4.2.4",
+ "istanbul-lib-coverage": "^3.0.0",
+ "istanbul-lib-instrument": "^4.0.3",
+ "istanbul-lib-report": "^3.0.0",
+ "istanbul-lib-source-maps": "^4.0.0",
+ "istanbul-reports": "^3.0.2",
+ "jest-haste-map": "^26.6.2",
+ "jest-resolve": "^26.6.2",
+ "jest-util": "^26.6.2",
+ "jest-worker": "^26.6.2",
+ "node-notifier": "^8.0.0",
+ "slash": "^3.0.0",
+ "source-map": "^0.6.0",
+ "string-length": "^4.0.1",
+ "terminal-link": "^2.0.0",
+ "v8-to-istanbul": "^7.0.0"
+ },
+ "dependencies": {
+ "istanbul-lib-instrument": {
+ "version": "4.0.3",
+ "dev": true,
+ "requires": {
+ "@babel/core": "^7.7.5",
+ "@istanbuljs/schema": "^0.1.2",
+ "istanbul-lib-coverage": "^3.0.0",
+ "semver": "^6.3.0"
+ }
+ },
+ "semver": {
+ "version": "6.3.0",
+ "dev": true
+ },
+ "source-map": {
+ "version": "0.6.1",
+ "dev": true
+ }
+ }
+ },
+ "@jest/source-map": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "callsites": "^3.0.0",
+ "graceful-fs": "^4.2.4",
+ "source-map": "^0.6.0"
+ },
+ "dependencies": {
+ "source-map": {
+ "version": "0.6.1",
+ "dev": true
+ }
+ }
+ },
+ "@jest/test-result": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "@jest/console": "^26.6.2",
+ "@jest/types": "^26.6.2",
+ "@types/istanbul-lib-coverage": "^2.0.0",
+ "collect-v8-coverage": "^1.0.0"
+ }
+ },
+ "@jest/test-sequencer": {
+ "version": "26.6.3",
+ "dev": true,
+ "requires": {
+ "@jest/test-result": "^26.6.2",
+ "graceful-fs": "^4.2.4",
+ "jest-haste-map": "^26.6.2",
+ "jest-runner": "^26.6.3",
+ "jest-runtime": "^26.6.3"
+ }
+ },
+ "@jest/transform": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "@babel/core": "^7.1.0",
+ "@jest/types": "^26.6.2",
+ "babel-plugin-istanbul": "^6.0.0",
+ "chalk": "^4.0.0",
+ "convert-source-map": "^1.4.0",
+ "fast-json-stable-stringify": "^2.0.0",
+ "graceful-fs": "^4.2.4",
+ "jest-haste-map": "^26.6.2",
+ "jest-regex-util": "^26.0.0",
+ "jest-util": "^26.6.2",
+ "micromatch": "^4.0.2",
+ "pirates": "^4.0.1",
+ "slash": "^3.0.0",
+ "source-map": "^0.6.1",
+ "write-file-atomic": "^3.0.0"
+ },
+ "dependencies": {
+ "source-map": {
+ "version": "0.6.1",
+ "dev": true
+ },
+ "write-file-atomic": {
+ "version": "3.0.3",
+ "dev": true,
+ "requires": {
+ "imurmurhash": "^0.1.4",
+ "is-typedarray": "^1.0.0",
+ "signal-exit": "^3.0.2",
+ "typedarray-to-buffer": "^3.1.5"
+ }
+ }
+ }
+ },
+ "@jest/types": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "@types/istanbul-lib-coverage": "^2.0.0",
+ "@types/istanbul-reports": "^3.0.0",
+ "@types/node": "*",
+ "@types/yargs": "^15.0.0",
+ "chalk": "^4.0.0"
+ }
+ },
+ "@jridgewell/resolve-uri": {
+ "version": "3.0.5",
+ "dev": true
+ },
+ "@jridgewell/sourcemap-codec": {
+ "version": "1.4.11",
+ "dev": true
+ },
+ "@jridgewell/trace-mapping": {
+ "version": "0.3.4",
+ "dev": true,
+ "requires": {
+ "@jridgewell/resolve-uri": "^3.0.3",
+ "@jridgewell/sourcemap-codec": "^1.4.10"
+ }
+ },
+ "@mapbox/node-pre-gyp": {
+ "version": "1.0.10",
+ "requires": {
+ "detect-libc": "^2.0.0",
+ "https-proxy-agent": "^5.0.0",
+ "make-dir": "^3.1.0",
+ "node-fetch": "^2.6.7",
+ "nopt": "^5.0.0",
+ "npmlog": "^5.0.1",
+ "rimraf": "^3.0.2",
+ "semver": "^7.3.5",
+ "tar": "^6.1.11"
+ },
+ "dependencies": {
+ "agent-base": {
+ "version": "6.0.2",
+ "requires": {
+ "debug": "4"
+ }
+ },
+ "ansi-regex": {
+ "version": "5.0.1"
+ },
+ "are-we-there-yet": {
+ "version": "2.0.0",
+ "requires": {
+ "delegates": "^1.0.0",
+ "readable-stream": "^3.6.0"
+ }
+ },
+ "chownr": {
+ "version": "2.0.0"
+ },
+ "debug": {
+ "version": "4.3.4",
+ "requires": {
+ "ms": "2.1.2"
+ }
+ },
+ "gauge": {
+ "version": "3.0.2",
+ "requires": {
+ "aproba": "^1.0.3 || ^2.0.0",
+ "color-support": "^1.1.2",
+ "console-control-strings": "^1.0.0",
+ "has-unicode": "^2.0.1",
+ "object-assign": "^4.1.1",
+ "signal-exit": "^3.0.0",
+ "string-width": "^4.2.3",
+ "strip-ansi": "^6.0.1",
+ "wide-align": "^1.1.2"
+ }
+ },
+ "https-proxy-agent": {
+ "version": "5.0.1",
+ "requires": {
+ "agent-base": "6",
+ "debug": "4"
+ }
+ },
+ "is-fullwidth-code-point": {
+ "version": "3.0.0"
+ },
+ "lru-cache": {
+ "version": "6.0.0",
+ "requires": {
+ "yallist": "^4.0.0"
+ }
+ },
+ "make-dir": {
+ "version": "3.1.0",
+ "requires": {
+ "semver": "^6.0.0"
+ },
+ "dependencies": {
+ "semver": {
+ "version": "6.3.0"
+ }
+ }
+ },
+ "mkdirp": {
+ "version": "1.0.4"
+ },
+ "ms": {
+ "version": "2.1.2"
+ },
+ "nopt": {
+ "version": "5.0.0",
+ "requires": {
+ "abbrev": "1"
+ }
+ },
+ "npmlog": {
+ "version": "5.0.1",
+ "requires": {
+ "are-we-there-yet": "^2.0.0",
+ "console-control-strings": "^1.1.0",
+ "gauge": "^3.0.0",
+ "set-blocking": "^2.0.0"
+ }
+ },
+ "readable-stream": {
+ "version": "3.6.0",
+ "requires": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ }
+ },
+ "safe-buffer": {
+ "version": "5.2.1"
+ },
+ "semver": {
+ "version": "7.3.8",
+ "requires": {
+ "lru-cache": "^6.0.0"
+ }
+ },
+ "string_decoder": {
+ "version": "1.3.0",
+ "requires": {
+ "safe-buffer": "~5.2.0"
+ }
+ },
+ "string-width": {
+ "version": "4.2.3",
+ "requires": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ }
+ },
+ "strip-ansi": {
+ "version": "6.0.1",
+ "requires": {
+ "ansi-regex": "^5.0.1"
+ }
+ },
+ "tar": {
+ "version": "6.1.11",
+ "requires": {
+ "chownr": "^2.0.0",
+ "fs-minipass": "^2.0.0",
+ "minipass": "^3.0.0",
+ "minizlib": "^2.1.1",
+ "mkdirp": "^1.0.3",
+ "yallist": "^4.0.0"
+ }
+ },
+ "yallist": {
+ "version": "4.0.0"
+ }
+ }
+ },
+ "@sindresorhus/is": {
+ "version": "2.1.1"
+ },
+ "@sinonjs/commons": {
+ "version": "1.8.3",
+ "dev": true,
+ "requires": {
+ "type-detect": "4.0.8"
+ }
+ },
+ "@sinonjs/fake-timers": {
+ "version": "6.0.1",
+ "dev": true,
+ "requires": {
+ "@sinonjs/commons": "^1.7.0"
+ }
+ },
+ "@szmarczak/http-timer": {
+ "version": "4.0.6",
+ "requires": {
+ "defer-to-connect": "^2.0.0"
+ }
+ },
+ "@tootallnate/once": {
+ "version": "1.1.2"
+ },
+ "@types/babel__core": {
+ "version": "7.1.19",
+ "dev": true,
+ "requires": {
+ "@babel/parser": "^7.1.0",
+ "@babel/types": "^7.0.0",
+ "@types/babel__generator": "*",
+ "@types/babel__template": "*",
+ "@types/babel__traverse": "*"
+ }
+ },
+ "@types/babel__generator": {
+ "version": "7.6.4",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.0.0"
+ }
+ },
+ "@types/babel__template": {
+ "version": "7.4.1",
+ "dev": true,
+ "requires": {
+ "@babel/parser": "^7.1.0",
+ "@babel/types": "^7.0.0"
+ }
+ },
+ "@types/babel__traverse": {
+ "version": "7.14.2",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.3.0"
+ }
+ },
+ "@types/body-parser": {
+ "version": "1.19.2",
+ "requires": {
+ "@types/connect": "*",
+ "@types/node": "*"
+ }
+ },
+ "@types/cacheable-request": {
+ "version": "6.0.2",
+ "requires": {
+ "@types/http-cache-semantics": "*",
+ "@types/keyv": "*",
+ "@types/node": "*",
+ "@types/responselike": "*"
+ }
+ },
+ "@types/caseless": {
+ "version": "0.12.2"
+ },
+ "@types/connect": {
+ "version": "3.4.35",
+ "requires": {
+ "@types/node": "*"
+ }
+ },
+ "@types/express": {
+ "version": "4.17.13",
+ "requires": {
+ "@types/body-parser": "*",
+ "@types/express-serve-static-core": "^4.17.18",
+ "@types/qs": "*",
+ "@types/serve-static": "*"
+ }
+ },
+ "@types/express-serve-static-core": {
+ "version": "4.17.28",
+ "requires": {
+ "@types/node": "*",
+ "@types/qs": "*",
+ "@types/range-parser": "*"
+ }
+ },
+ "@types/glob": {
+ "version": "7.2.0",
+ "dev": true,
+ "requires": {
+ "@types/minimatch": "*",
+ "@types/node": "*"
+ }
+ },
+ "@types/graceful-fs": {
+ "version": "4.1.5",
+ "dev": true,
+ "requires": {
+ "@types/node": "*"
+ }
+ },
+ "@types/html-minifier-terser": {
+ "version": "5.1.2",
+ "dev": true
+ },
+ "@types/http-cache-semantics": {
+ "version": "4.0.1"
+ },
+ "@types/istanbul-lib-coverage": {
+ "version": "2.0.4",
+ "dev": true
+ },
+ "@types/istanbul-lib-report": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "@types/istanbul-lib-coverage": "*"
+ }
+ },
+ "@types/istanbul-reports": {
+ "version": "3.0.1",
+ "dev": true,
+ "requires": {
+ "@types/istanbul-lib-report": "*"
+ }
+ },
+ "@types/json-schema": {
+ "version": "7.0.11",
+ "dev": true
+ },
+ "@types/keyv": {
+ "version": "3.1.4",
+ "requires": {
+ "@types/node": "*"
+ }
+ },
+ "@types/mime": {
+ "version": "1.3.2"
+ },
+ "@types/minimatch": {
+ "version": "3.0.5",
+ "dev": true
+ },
+ "@types/node": {
+ "version": "17.0.23"
+ },
+ "@types/normalize-package-data": {
+ "version": "2.4.1",
+ "dev": true
+ },
+ "@types/prettier": {
+ "version": "2.4.4",
+ "dev": true
+ },
+ "@types/qs": {
+ "version": "6.9.7"
+ },
+ "@types/range-parser": {
+ "version": "1.2.4"
+ },
+ "@types/request": {
+ "version": "2.48.8",
+ "requires": {
+ "@types/caseless": "*",
+ "@types/node": "*",
+ "@types/tough-cookie": "*",
+ "form-data": "^2.5.0"
+ },
+ "dependencies": {
+ "form-data": {
+ "version": "2.5.1",
+ "requires": {
+ "asynckit": "^0.4.0",
+ "combined-stream": "^1.0.6",
+ "mime-types": "^2.1.12"
+ }
+ }
+ }
+ },
+ "@types/responselike": {
+ "version": "1.0.0",
+ "requires": {
+ "@types/node": "*"
+ }
+ },
+ "@types/serve-static": {
+ "version": "1.13.10",
+ "requires": {
+ "@types/mime": "^1",
+ "@types/node": "*"
+ }
+ },
+ "@types/source-list-map": {
+ "version": "0.1.2",
+ "dev": true
+ },
+ "@types/stack-utils": {
+ "version": "2.0.1",
+ "dev": true
+ },
+ "@types/tapable": {
+ "version": "1.0.8",
+ "dev": true
+ },
+ "@types/tough-cookie": {
+ "version": "4.0.1"
+ },
+ "@types/uglify-js": {
+ "version": "3.13.1",
+ "dev": true,
+ "requires": {
+ "source-map": "^0.6.1"
+ },
+ "dependencies": {
+ "source-map": {
+ "version": "0.6.1",
+ "dev": true
+ }
+ }
+ },
+ "@types/webpack": {
+ "version": "4.41.32",
+ "dev": true,
+ "requires": {
+ "@types/node": "*",
+ "@types/tapable": "^1",
+ "@types/uglify-js": "*",
+ "@types/webpack-sources": "*",
+ "anymatch": "^3.0.0",
+ "source-map": "^0.6.0"
+ },
+ "dependencies": {
+ "source-map": {
+ "version": "0.6.1",
+ "dev": true
+ }
+ }
+ },
+ "@types/webpack-sources": {
+ "version": "3.2.0",
+ "dev": true,
+ "requires": {
+ "@types/node": "*",
+ "@types/source-list-map": "*",
+ "source-map": "^0.7.3"
+ },
+ "dependencies": {
+ "source-map": {
+ "version": "0.7.3",
+ "dev": true
+ }
+ }
+ },
+ "@types/yargs": {
+ "version": "15.0.14",
+ "dev": true,
+ "requires": {
+ "@types/yargs-parser": "*"
+ }
+ },
+ "@types/yargs-parser": {
+ "version": "21.0.0",
+ "dev": true
+ },
+ "@types/yauzl": {
+ "version": "2.10.0",
+ "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.0.tgz",
+ "integrity": "sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==",
+ "optional": true,
+ "requires": {
+ "@types/node": "*"
+ }
+ },
+ "@webassemblyjs/ast": {
+ "version": "1.9.0",
+ "dev": true,
+ "requires": {
+ "@webassemblyjs/helper-module-context": "1.9.0",
+ "@webassemblyjs/helper-wasm-bytecode": "1.9.0",
+ "@webassemblyjs/wast-parser": "1.9.0"
+ }
+ },
+ "@webassemblyjs/floating-point-hex-parser": {
+ "version": "1.9.0",
+ "dev": true
+ },
+ "@webassemblyjs/helper-api-error": {
+ "version": "1.9.0",
+ "dev": true
+ },
+ "@webassemblyjs/helper-buffer": {
+ "version": "1.9.0",
+ "dev": true
+ },
+ "@webassemblyjs/helper-code-frame": {
+ "version": "1.9.0",
+ "dev": true,
+ "requires": {
+ "@webassemblyjs/wast-printer": "1.9.0"
+ }
+ },
+ "@webassemblyjs/helper-fsm": {
+ "version": "1.9.0",
+ "dev": true
+ },
+ "@webassemblyjs/helper-module-context": {
+ "version": "1.9.0",
+ "dev": true,
+ "requires": {
+ "@webassemblyjs/ast": "1.9.0"
+ }
+ },
+ "@webassemblyjs/helper-wasm-bytecode": {
+ "version": "1.9.0",
+ "dev": true
+ },
+ "@webassemblyjs/helper-wasm-section": {
+ "version": "1.9.0",
+ "dev": true,
+ "requires": {
+ "@webassemblyjs/ast": "1.9.0",
+ "@webassemblyjs/helper-buffer": "1.9.0",
+ "@webassemblyjs/helper-wasm-bytecode": "1.9.0",
+ "@webassemblyjs/wasm-gen": "1.9.0"
+ }
+ },
+ "@webassemblyjs/ieee754": {
+ "version": "1.9.0",
+ "dev": true,
+ "requires": {
+ "@xtuc/ieee754": "^1.2.0"
+ }
+ },
+ "@webassemblyjs/leb128": {
+ "version": "1.9.0",
+ "dev": true,
+ "requires": {
+ "@xtuc/long": "4.2.2"
+ }
+ },
+ "@webassemblyjs/utf8": {
+ "version": "1.9.0",
+ "dev": true
+ },
+ "@webassemblyjs/wasm-edit": {
+ "version": "1.9.0",
+ "dev": true,
+ "requires": {
+ "@webassemblyjs/ast": "1.9.0",
+ "@webassemblyjs/helper-buffer": "1.9.0",
+ "@webassemblyjs/helper-wasm-bytecode": "1.9.0",
+ "@webassemblyjs/helper-wasm-section": "1.9.0",
+ "@webassemblyjs/wasm-gen": "1.9.0",
+ "@webassemblyjs/wasm-opt": "1.9.0",
+ "@webassemblyjs/wasm-parser": "1.9.0",
+ "@webassemblyjs/wast-printer": "1.9.0"
+ }
+ },
+ "@webassemblyjs/wasm-gen": {
+ "version": "1.9.0",
+ "dev": true,
+ "requires": {
+ "@webassemblyjs/ast": "1.9.0",
+ "@webassemblyjs/helper-wasm-bytecode": "1.9.0",
+ "@webassemblyjs/ieee754": "1.9.0",
+ "@webassemblyjs/leb128": "1.9.0",
+ "@webassemblyjs/utf8": "1.9.0"
+ }
+ },
+ "@webassemblyjs/wasm-opt": {
+ "version": "1.9.0",
+ "dev": true,
+ "requires": {
+ "@webassemblyjs/ast": "1.9.0",
+ "@webassemblyjs/helper-buffer": "1.9.0",
+ "@webassemblyjs/wasm-gen": "1.9.0",
+ "@webassemblyjs/wasm-parser": "1.9.0"
+ }
+ },
+ "@webassemblyjs/wasm-parser": {
+ "version": "1.9.0",
+ "dev": true,
+ "requires": {
+ "@webassemblyjs/ast": "1.9.0",
+ "@webassemblyjs/helper-api-error": "1.9.0",
+ "@webassemblyjs/helper-wasm-bytecode": "1.9.0",
+ "@webassemblyjs/ieee754": "1.9.0",
+ "@webassemblyjs/leb128": "1.9.0",
+ "@webassemblyjs/utf8": "1.9.0"
+ }
+ },
+ "@webassemblyjs/wast-parser": {
+ "version": "1.9.0",
+ "dev": true,
+ "requires": {
+ "@webassemblyjs/ast": "1.9.0",
+ "@webassemblyjs/floating-point-hex-parser": "1.9.0",
+ "@webassemblyjs/helper-api-error": "1.9.0",
+ "@webassemblyjs/helper-code-frame": "1.9.0",
+ "@webassemblyjs/helper-fsm": "1.9.0",
+ "@xtuc/long": "4.2.2"
+ }
+ },
+ "@webassemblyjs/wast-printer": {
+ "version": "1.9.0",
+ "dev": true,
+ "requires": {
+ "@webassemblyjs/ast": "1.9.0",
+ "@webassemblyjs/wast-parser": "1.9.0",
+ "@xtuc/long": "4.2.2"
+ }
+ },
+ "@xmldom/xmldom": {
+ "version": "0.7.5",
+ "dev": true
+ },
+ "@xtuc/ieee754": {
+ "version": "1.2.0",
+ "dev": true
+ },
+ "@xtuc/long": {
+ "version": "4.2.2",
+ "dev": true
+ },
+ "abab": {
+ "version": "2.0.5"
+ },
+ "abbrev": {
+ "version": "1.1.1"
+ },
+ "abort-controller": {
+ "version": "3.0.0",
+ "requires": {
+ "event-target-shim": "^5.0.0"
+ }
+ },
+ "abstract-logging": {
+ "version": "2.0.1"
+ },
+ "accept-language": {
+ "version": "3.0.18",
+ "requires": {
+ "bcp47": "^1.1.2",
+ "stable": "^0.1.6"
+ }
+ },
+ "accepts": {
+ "version": "1.3.8",
+ "requires": {
+ "mime-types": "~2.1.34",
+ "negotiator": "0.6.3"
+ }
+ },
+ "acorn": {
+ "version": "7.4.1"
+ },
+ "acorn-globals": {
+ "version": "6.0.0",
+ "requires": {
+ "acorn": "^7.1.1",
+ "acorn-walk": "^7.1.1"
+ }
+ },
+ "acorn-jsx": {
+ "version": "5.3.2",
+ "dev": true,
+ "requires": {}
+ },
+ "acorn-walk": {
+ "version": "7.2.0"
+ },
+ "agent-base": {
+ "version": "4.3.0",
+ "requires": {
+ "es6-promisify": "^5.0.0"
+ }
+ },
+ "ajv": {
+ "version": "6.12.6",
+ "requires": {
+ "fast-deep-equal": "^3.1.1",
+ "fast-json-stable-stringify": "^2.0.0",
+ "json-schema-traverse": "^0.4.1",
+ "uri-js": "^4.2.2"
+ }
+ },
+ "ajv-errors": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {}
+ },
+ "ajv-keywords": {
+ "version": "3.5.2",
+ "dev": true,
+ "requires": {}
+ },
+ "amdefine": {
+ "version": "1.0.1",
+ "dev": true
+ },
+ "angular-mocks": {
+ "version": "1.8.2",
+ "dev": true
+ },
+ "ansi-align": {
+ "version": "3.0.1",
+ "dev": true,
+ "requires": {
+ "string-width": "^4.1.0"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "5.0.1",
+ "dev": true
+ },
+ "is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "string-width": {
+ "version": "4.2.3",
+ "dev": true,
+ "requires": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ }
+ },
+ "strip-ansi": {
+ "version": "6.0.1",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^5.0.1"
+ }
+ }
+ }
+ },
+ "ansi-colors": {
+ "version": "4.1.1",
+ "dev": true
+ },
+ "ansi-escapes": {
+ "version": "4.3.2",
+ "dev": true,
+ "requires": {
+ "type-fest": "^0.21.3"
+ },
+ "dependencies": {
+ "type-fest": {
+ "version": "0.21.3",
+ "dev": true
+ }
+ }
+ },
+ "ansi-gray": {
+ "version": "0.1.1",
+ "dev": true,
+ "requires": {
+ "ansi-wrap": "0.1.0"
+ }
+ },
+ "ansi-html-community": {
+ "version": "0.0.8",
+ "dev": true
+ },
+ "ansi-regex": {
+ "version": "2.1.1"
+ },
+ "ansi-styles": {
+ "version": "4.3.0",
+ "requires": {
+ "color-convert": "^2.0.1"
+ }
+ },
+ "ansi-wrap": {
+ "version": "0.1.0",
+ "dev": true
+ },
+ "anymatch": {
+ "version": "3.1.2",
+ "dev": true,
+ "requires": {
+ "normalize-path": "^3.0.0",
+ "picomatch": "^2.0.4"
+ }
+ },
+ "append-buffer": {
+ "version": "1.0.2",
+ "dev": true,
+ "requires": {
+ "buffer-equal": "^1.0.0"
+ }
+ },
+ "aproba": {
+ "version": "1.2.0"
+ },
+ "archy": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "are-we-there-yet": {
+ "version": "1.1.7",
+ "dev": true,
+ "requires": {
+ "delegates": "^1.0.0",
+ "readable-stream": "^2.0.6"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ }
+ }
+ },
+ "argparse": {
+ "version": "1.0.10",
+ "requires": {
+ "sprintf-js": "~1.0.2"
+ },
+ "dependencies": {
+ "sprintf-js": {
+ "version": "1.0.3"
+ }
+ }
+ },
+ "arr-diff": {
+ "version": "4.0.0",
+ "dev": true
+ },
+ "arr-filter": {
+ "version": "1.1.2",
+ "dev": true,
+ "requires": {
+ "make-iterator": "^1.0.0"
+ }
+ },
+ "arr-flatten": {
+ "version": "1.1.0",
+ "dev": true
+ },
+ "arr-map": {
+ "version": "2.0.2",
+ "dev": true,
+ "requires": {
+ "make-iterator": "^1.0.0"
+ }
+ },
+ "arr-union": {
+ "version": "3.1.0",
+ "dev": true
+ },
+ "array-differ": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "array-each": {
+ "version": "1.0.1",
+ "dev": true
+ },
+ "array-find-index": {
+ "version": "1.0.2",
+ "dev": true
+ },
+ "array-flatten": {
+ "version": "1.1.1"
+ },
+ "array-initial": {
+ "version": "1.1.0",
+ "dev": true,
+ "requires": {
+ "array-slice": "^1.0.0",
+ "is-number": "^4.0.0"
+ },
+ "dependencies": {
+ "is-number": {
+ "version": "4.0.0",
+ "dev": true
+ }
+ }
+ },
+ "array-last": {
+ "version": "1.3.0",
+ "dev": true,
+ "requires": {
+ "is-number": "^4.0.0"
+ },
+ "dependencies": {
+ "is-number": {
+ "version": "4.0.0",
+ "dev": true
+ }
+ }
+ },
+ "array-slice": {
+ "version": "1.1.0",
+ "dev": true
+ },
+ "array-sort": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "default-compare": "^1.0.0",
+ "get-value": "^2.0.6",
+ "kind-of": "^5.0.2"
+ },
+ "dependencies": {
+ "kind-of": {
+ "version": "5.1.0",
+ "dev": true
+ }
+ }
+ },
+ "array-union": {
+ "version": "1.0.2",
+ "dev": true,
+ "requires": {
+ "array-uniq": "^1.0.1"
+ }
+ },
+ "array-uniq": {
+ "version": "1.0.3",
+ "dev": true
+ },
+ "array-unique": {
+ "version": "0.3.2",
+ "dev": true
+ },
+ "arrify": {
+ "version": "1.0.1"
+ },
+ "asn1": {
+ "version": "0.2.6",
+ "requires": {
+ "safer-buffer": "~2.1.0"
+ }
+ },
+ "asn1.js": {
+ "version": "5.4.1",
+ "dev": true,
+ "requires": {
+ "bn.js": "^4.0.0",
+ "inherits": "^2.0.1",
+ "minimalistic-assert": "^1.0.0",
+ "safer-buffer": "^2.1.0"
+ },
+ "dependencies": {
+ "bn.js": {
+ "version": "4.12.0",
+ "dev": true
+ }
+ }
+ },
+ "assert": {
+ "version": "1.5.0",
+ "dev": true,
+ "requires": {
+ "object-assign": "^4.1.1",
+ "util": "0.10.3"
+ },
+ "dependencies": {
+ "inherits": {
+ "version": "2.0.1",
+ "dev": true
+ },
+ "util": {
+ "version": "0.10.3",
+ "dev": true,
+ "requires": {
+ "inherits": "2.0.1"
+ }
+ }
+ }
+ },
+ "assert-plus": {
+ "version": "1.0.0"
+ },
+ "assign-symbols": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "ast-types": {
+ "version": "0.9.6",
+ "dev": true
+ },
+ "astral-regex": {
+ "version": "2.0.0",
+ "dev": true
+ },
+ "async": {
+ "version": "2.6.3",
+ "requires": {
+ "lodash": "^4.17.14"
+ }
+ },
+ "async-done": {
+ "version": "1.3.2",
+ "dev": true,
+ "requires": {
+ "end-of-stream": "^1.1.0",
+ "once": "^1.3.2",
+ "process-nextick-args": "^2.0.0",
+ "stream-exhaust": "^1.0.1"
+ }
+ },
+ "async-each": {
+ "version": "1.0.3",
+ "dev": true
+ },
+ "async-foreach": {
+ "version": "0.1.3",
+ "dev": true
+ },
+ "async-hook-jl": {
+ "version": "1.7.6",
+ "requires": {
+ "stack-chain": "^1.3.7"
+ }
+ },
+ "async-limiter": {
+ "version": "1.0.1",
+ "dev": true
+ },
+ "async-settle": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "async-done": "^1.2.2"
+ }
+ },
+ "asynckit": {
+ "version": "0.4.0"
+ },
+ "atob": {
+ "version": "2.1.2",
+ "dev": true
+ },
+ "aws-sdk": {
+ "version": "2.1102.0",
+ "requires": {
+ "buffer": "4.9.2",
+ "events": "1.1.1",
+ "ieee754": "1.1.13",
+ "jmespath": "0.16.0",
+ "querystring": "0.2.0",
+ "sax": "1.2.1",
+ "url": "0.10.3",
+ "uuid": "3.3.2",
+ "xml2js": "0.4.19"
+ },
+ "dependencies": {
+ "sax": {
+ "version": "1.2.1"
+ },
+ "uuid": {
+ "version": "3.3.2"
+ },
+ "xml2js": {
+ "version": "0.4.19",
+ "requires": {
+ "sax": ">=0.6.0",
+ "xmlbuilder": "~9.0.1"
+ }
+ },
+ "xmlbuilder": {
+ "version": "9.0.7"
+ }
+ }
+ },
+ "aws-sign2": {
+ "version": "0.7.0"
+ },
+ "aws4": {
+ "version": "1.11.0"
+ },
+ "axios": {
+ "version": "0.25.0",
+ "requires": {
+ "follow-redirects": "^1.14.7"
+ }
+ },
+ "babel-jest": {
+ "version": "26.6.3",
+ "dev": true,
+ "requires": {
+ "@jest/transform": "^26.6.2",
+ "@jest/types": "^26.6.2",
+ "@types/babel__core": "^7.1.7",
+ "babel-plugin-istanbul": "^6.0.0",
+ "babel-preset-jest": "^26.6.2",
+ "chalk": "^4.0.0",
+ "graceful-fs": "^4.2.4",
+ "slash": "^3.0.0"
+ }
+ },
+ "babel-loader": {
+ "version": "8.2.4",
+ "dev": true,
+ "requires": {
+ "find-cache-dir": "^3.3.1",
+ "loader-utils": "^2.0.0",
+ "make-dir": "^3.1.0",
+ "schema-utils": "^2.6.5"
+ },
+ "dependencies": {
+ "find-cache-dir": {
+ "version": "3.3.2",
+ "dev": true,
+ "requires": {
+ "commondir": "^1.0.1",
+ "make-dir": "^3.0.2",
+ "pkg-dir": "^4.1.0"
+ }
+ },
+ "make-dir": {
+ "version": "3.1.0",
+ "dev": true,
+ "requires": {
+ "semver": "^6.0.0"
+ }
+ },
+ "semver": {
+ "version": "6.3.0",
+ "dev": true
+ }
+ }
+ },
+ "babel-plugin-dynamic-import-node": {
+ "version": "2.3.3",
+ "dev": true,
+ "requires": {
+ "object.assign": "^4.1.0"
+ }
+ },
+ "babel-plugin-istanbul": {
+ "version": "6.1.1",
+ "dev": true,
+ "requires": {
+ "@babel/helper-plugin-utils": "^7.0.0",
+ "@istanbuljs/load-nyc-config": "^1.0.0",
+ "@istanbuljs/schema": "^0.1.2",
+ "istanbul-lib-instrument": "^5.0.4",
+ "test-exclude": "^6.0.0"
+ }
+ },
+ "babel-plugin-jest-hoist": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "@babel/template": "^7.3.3",
+ "@babel/types": "^7.3.3",
+ "@types/babel__core": "^7.0.0",
+ "@types/babel__traverse": "^7.0.6"
+ }
+ },
+ "babel-plugin-polyfill-corejs2": {
+ "version": "0.3.1",
+ "dev": true,
+ "requires": {
+ "@babel/compat-data": "^7.13.11",
+ "@babel/helper-define-polyfill-provider": "^0.3.1",
+ "semver": "^6.1.1"
+ },
+ "dependencies": {
+ "semver": {
+ "version": "6.3.0",
+ "dev": true
+ }
+ }
+ },
+ "babel-plugin-polyfill-corejs3": {
+ "version": "0.5.2",
+ "dev": true,
+ "requires": {
+ "@babel/helper-define-polyfill-provider": "^0.3.1",
+ "core-js-compat": "^3.21.0"
+ }
+ },
+ "babel-plugin-polyfill-regenerator": {
+ "version": "0.3.1",
+ "dev": true,
+ "requires": {
+ "@babel/helper-define-polyfill-provider": "^0.3.1"
+ }
+ },
+ "babel-preset-current-node-syntax": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "@babel/plugin-syntax-async-generators": "^7.8.4",
+ "@babel/plugin-syntax-bigint": "^7.8.3",
+ "@babel/plugin-syntax-class-properties": "^7.8.3",
+ "@babel/plugin-syntax-import-meta": "^7.8.3",
+ "@babel/plugin-syntax-json-strings": "^7.8.3",
+ "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3",
+ "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3",
+ "@babel/plugin-syntax-numeric-separator": "^7.8.3",
+ "@babel/plugin-syntax-object-rest-spread": "^7.8.3",
+ "@babel/plugin-syntax-optional-catch-binding": "^7.8.3",
+ "@babel/plugin-syntax-optional-chaining": "^7.8.3",
+ "@babel/plugin-syntax-top-level-await": "^7.8.3"
+ }
+ },
+ "babel-preset-jest": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "babel-plugin-jest-hoist": "^26.6.2",
+ "babel-preset-current-node-syntax": "^1.0.0"
+ }
+ },
+ "bach": {
+ "version": "1.2.0",
+ "dev": true,
+ "requires": {
+ "arr-filter": "^1.1.1",
+ "arr-flatten": "^1.0.1",
+ "arr-map": "^2.0.0",
+ "array-each": "^1.0.0",
+ "array-initial": "^1.0.0",
+ "array-last": "^1.1.1",
+ "async-done": "^1.2.2",
+ "async-settle": "^1.0.0",
+ "now-and-later": "^2.0.0"
+ }
+ },
+ "backoff": {
+ "version": "2.5.0",
+ "requires": {
+ "precond": "0.2"
+ }
+ },
+ "balanced-match": {
+ "version": "1.0.2"
+ },
+ "base": {
+ "version": "0.11.2",
+ "dev": true,
+ "requires": {
+ "cache-base": "^1.0.1",
+ "class-utils": "^0.3.5",
+ "component-emitter": "^1.2.1",
+ "define-property": "^1.0.0",
+ "isobject": "^3.0.1",
+ "mixin-deep": "^1.2.0",
+ "pascalcase": "^0.1.1"
+ },
+ "dependencies": {
+ "define-property": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "is-descriptor": "^1.0.0"
+ }
+ },
+ "is-accessor-descriptor": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "kind-of": "^6.0.0"
+ }
+ },
+ "is-data-descriptor": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "kind-of": "^6.0.0"
+ }
+ },
+ "is-descriptor": {
+ "version": "1.0.2",
+ "dev": true,
+ "requires": {
+ "is-accessor-descriptor": "^1.0.0",
+ "is-data-descriptor": "^1.0.0",
+ "kind-of": "^6.0.2"
+ }
+ }
+ }
+ },
+ "base64-js": {
+ "version": "1.0.2"
+ },
+ "batch": {
+ "version": "0.6.1",
+ "dev": true
+ },
+ "bcp47": {
+ "version": "1.1.2"
+ },
+ "bcrypt": {
+ "version": "5.1.0",
+ "requires": {
+ "@mapbox/node-pre-gyp": "^1.0.10",
+ "node-addon-api": "^5.0.0"
+ }
+ },
+ "bcrypt-pbkdf": {
+ "version": "1.0.2",
+ "requires": {
+ "tweetnacl": "^0.14.3"
+ }
+ },
+ "bcryptjs": {
+ "version": "2.4.3"
+ },
+ "beeper": {
+ "version": "1.1.1",
+ "dev": true
+ },
+ "big.js": {
+ "version": "5.2.2",
+ "dev": true
+ },
+ "bigdecimal": {
+ "version": "0.6.1"
+ },
+ "bignumber.js": {
+ "version": "9.0.2"
+ },
+ "binary-extensions": {
+ "version": "1.13.1",
+ "dev": true
+ },
+ "bl": {
+ "version": "2.2.1",
+ "requires": {
+ "readable-stream": "^2.3.5",
+ "safe-buffer": "^5.1.1"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0"
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ }
+ }
+ },
+ "block-stream": {
+ "version": "0.0.9",
+ "dev": true,
+ "requires": {
+ "inherits": "~2.0.0"
+ }
+ },
+ "bluebird": {
+ "version": "3.7.2"
+ },
+ "bmp-js": {
+ "version": "0.1.0"
+ },
+ "bn.js": {
+ "version": "5.2.0",
+ "dev": true
+ },
+ "body-parser": {
+ "version": "1.19.2",
+ "requires": {
+ "bytes": "3.1.2",
+ "content-type": "~1.0.4",
+ "debug": "2.6.9",
+ "depd": "~1.1.2",
+ "http-errors": "1.8.1",
+ "iconv-lite": "0.4.24",
+ "on-finished": "~2.3.0",
+ "qs": "6.9.7",
+ "raw-body": "2.4.3",
+ "type-is": "~1.6.18"
+ },
+ "dependencies": {
+ "bytes": {
+ "version": "3.1.2"
+ },
+ "depd": {
+ "version": "1.1.2"
+ }
+ }
+ },
+ "bonjour": {
+ "version": "3.5.0",
+ "dev": true,
+ "requires": {
+ "array-flatten": "^2.1.0",
+ "deep-equal": "^1.0.1",
+ "dns-equal": "^1.0.0",
+ "dns-txt": "^2.0.2",
+ "multicast-dns": "^6.0.1",
+ "multicast-dns-service-types": "^1.1.0"
+ },
+ "dependencies": {
+ "array-flatten": {
+ "version": "2.1.2",
+ "dev": true
+ }
+ }
+ },
+ "boolbase": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "bops": {
+ "version": "1.0.0",
+ "requires": {
+ "base64-js": "1.0.2",
+ "to-utf8": "0.0.1"
+ }
+ },
+ "bowser": {
+ "version": "2.9.0"
+ },
+ "boxen": {
+ "version": "5.1.2",
+ "dev": true,
+ "requires": {
+ "ansi-align": "^3.0.0",
+ "camelcase": "^6.2.0",
+ "chalk": "^4.1.0",
+ "cli-boxes": "^2.2.1",
+ "string-width": "^4.2.2",
+ "type-fest": "^0.20.2",
+ "widest-line": "^3.1.0",
+ "wrap-ansi": "^7.0.0"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "5.0.1",
+ "dev": true
+ },
+ "camelcase": {
+ "version": "6.3.0",
+ "dev": true
+ },
+ "is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "string-width": {
+ "version": "4.2.3",
+ "dev": true,
+ "requires": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ }
+ },
+ "strip-ansi": {
+ "version": "6.0.1",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^5.0.1"
+ }
+ },
+ "type-fest": {
+ "version": "0.20.2",
+ "dev": true
+ },
+ "wrap-ansi": {
+ "version": "7.0.0",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ }
+ }
+ }
+ },
+ "brace-expansion": {
+ "version": "1.1.11",
+ "requires": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "braces": {
+ "version": "3.0.2",
+ "dev": true,
+ "requires": {
+ "fill-range": "^7.0.1"
+ }
+ },
+ "brorand": {
+ "version": "1.1.0",
+ "dev": true
+ },
+ "browser-process-hrtime": {
+ "version": "1.0.0"
+ },
+ "browserify-aes": {
+ "version": "1.2.0",
+ "dev": true,
+ "requires": {
+ "buffer-xor": "^1.0.3",
+ "cipher-base": "^1.0.0",
+ "create-hash": "^1.1.0",
+ "evp_bytestokey": "^1.0.3",
+ "inherits": "^2.0.1",
+ "safe-buffer": "^5.0.1"
+ }
+ },
+ "browserify-cipher": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "browserify-aes": "^1.0.4",
+ "browserify-des": "^1.0.0",
+ "evp_bytestokey": "^1.0.0"
+ }
+ },
+ "browserify-des": {
+ "version": "1.0.2",
+ "dev": true,
+ "requires": {
+ "cipher-base": "^1.0.1",
+ "des.js": "^1.0.0",
+ "inherits": "^2.0.1",
+ "safe-buffer": "^5.1.2"
+ }
+ },
+ "browserify-rsa": {
+ "version": "4.1.0",
+ "dev": true,
+ "requires": {
+ "bn.js": "^5.0.0",
+ "randombytes": "^2.0.1"
+ }
+ },
+ "browserify-sign": {
+ "version": "4.2.1",
+ "dev": true,
+ "requires": {
+ "bn.js": "^5.1.1",
+ "browserify-rsa": "^4.0.1",
+ "create-hash": "^1.2.0",
+ "create-hmac": "^1.1.7",
+ "elliptic": "^6.5.3",
+ "inherits": "^2.0.4",
+ "parse-asn1": "^5.1.5",
+ "readable-stream": "^3.6.0",
+ "safe-buffer": "^5.2.0"
+ },
+ "dependencies": {
+ "readable-stream": {
+ "version": "3.6.0",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ }
+ },
+ "safe-buffer": {
+ "version": "5.2.1",
+ "dev": true
+ },
+ "string_decoder": {
+ "version": "1.3.0",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.2.0"
+ }
+ }
+ }
+ },
+ "browserify-zlib": {
+ "version": "0.2.0",
+ "dev": true,
+ "requires": {
+ "pako": "~1.0.5"
+ }
+ },
+ "browserslist": {
+ "version": "4.20.2",
+ "dev": true,
+ "requires": {
+ "caniuse-lite": "^1.0.30001317",
+ "electron-to-chromium": "^1.4.84",
+ "escalade": "^3.1.1",
+ "node-releases": "^2.0.2",
+ "picocolors": "^1.0.0"
+ }
+ },
+ "bser": {
+ "version": "2.1.1",
+ "dev": true,
+ "requires": {
+ "node-int64": "^0.4.0"
+ }
+ },
+ "btoa": {
+ "version": "1.2.1"
+ },
+ "buffer": {
+ "version": "4.9.2",
+ "requires": {
+ "base64-js": "^1.0.2",
+ "ieee754": "^1.1.4",
+ "isarray": "^1.0.0"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0"
+ }
+ }
+ },
+ "buffer-crc32": {
+ "version": "0.2.13",
+ "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz",
+ "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ=="
+ },
+ "buffer-equal": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "buffer-equal-constant-time": {
+ "version": "1.0.1"
+ },
+ "buffer-from": {
+ "version": "1.1.2"
+ },
+ "buffer-indexof": {
+ "version": "1.1.1",
+ "dev": true
+ },
+ "buffer-xor": {
+ "version": "1.0.3",
+ "dev": true
+ },
+ "bufferstreams": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "readable-stream": "^1.0.33"
+ }
+ },
+ "builtin-status-codes": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "bytes": {
+ "version": "3.0.0"
+ },
+ "cacache": {
+ "version": "12.0.4",
+ "dev": true,
+ "requires": {
+ "bluebird": "^3.5.5",
+ "chownr": "^1.1.1",
+ "figgy-pudding": "^3.5.1",
+ "glob": "^7.1.4",
+ "graceful-fs": "^4.1.15",
+ "infer-owner": "^1.0.3",
+ "lru-cache": "^5.1.1",
+ "mississippi": "^3.0.0",
+ "mkdirp": "^0.5.1",
+ "move-concurrently": "^1.0.1",
+ "promise-inflight": "^1.0.1",
+ "rimraf": "^2.6.3",
+ "ssri": "^6.0.1",
+ "unique-filename": "^1.1.1",
+ "y18n": "^4.0.0"
+ },
+ "dependencies": {
+ "rimraf": {
+ "version": "2.7.1",
+ "dev": true,
+ "requires": {
+ "glob": "^7.1.3"
+ }
+ }
+ }
+ },
+ "cache-base": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "collection-visit": "^1.0.0",
+ "component-emitter": "^1.2.1",
+ "get-value": "^2.0.6",
+ "has-value": "^1.0.0",
+ "isobject": "^3.0.1",
+ "set-value": "^2.0.0",
+ "to-object-path": "^0.3.0",
+ "union-value": "^1.0.0",
+ "unset-value": "^1.0.0"
+ }
+ },
+ "cacheable-lookup": {
+ "version": "2.0.1",
+ "requires": {
+ "@types/keyv": "^3.1.1",
+ "keyv": "^4.0.0"
+ }
+ },
+ "cacheable-request": {
+ "version": "7.0.2",
+ "requires": {
+ "clone-response": "^1.0.2",
+ "get-stream": "^5.1.0",
+ "http-cache-semantics": "^4.0.0",
+ "keyv": "^4.0.0",
+ "lowercase-keys": "^2.0.0",
+ "normalize-url": "^6.0.1",
+ "responselike": "^2.0.0"
+ }
+ },
+ "call-bind": {
+ "version": "1.0.2",
+ "requires": {
+ "function-bind": "^1.1.1",
+ "get-intrinsic": "^1.0.2"
+ }
+ },
+ "callsites": {
+ "version": "3.1.0",
+ "dev": true
+ },
+ "camel-case": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "no-case": "^2.2.0",
+ "upper-case": "^1.1.1"
+ }
+ },
+ "camelcase": {
+ "version": "5.3.1",
+ "dev": true
+ },
+ "camelcase-keys": {
+ "version": "2.1.0",
+ "dev": true,
+ "requires": {
+ "camelcase": "^2.0.0",
+ "map-obj": "^1.0.0"
+ },
+ "dependencies": {
+ "camelcase": {
+ "version": "2.1.1",
+ "dev": true
+ }
+ }
+ },
+ "camelize": {
+ "version": "1.0.0"
+ },
+ "caniuse-lite": {
+ "version": "1.0.30001320",
+ "dev": true
+ },
+ "canonical-json": {
+ "version": "0.0.4"
+ },
+ "capture-exit": {
+ "version": "2.0.0",
+ "dev": true,
+ "requires": {
+ "rsvp": "^4.8.4"
+ }
+ },
+ "caseless": {
+ "version": "0.12.0"
+ },
+ "chalk": {
+ "version": "4.1.2",
+ "requires": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ }
+ },
+ "char-regex": {
+ "version": "1.0.2",
+ "dev": true
+ },
+ "charenc": {
+ "version": "0.0.2"
+ },
+ "chokidar": {
+ "version": "2.1.8",
+ "dev": true,
+ "requires": {
+ "anymatch": "^2.0.0",
+ "async-each": "^1.0.1",
+ "braces": "^2.3.2",
+ "fsevents": "^1.2.7",
+ "glob-parent": "^3.1.0",
+ "inherits": "^2.0.3",
+ "is-binary-path": "^1.0.0",
+ "is-glob": "^4.0.0",
+ "normalize-path": "^3.0.0",
+ "path-is-absolute": "^1.0.0",
+ "readdirp": "^2.2.1",
+ "upath": "^1.1.1"
+ },
+ "dependencies": {
+ "anymatch": {
+ "version": "2.0.0",
+ "dev": true,
+ "requires": {
+ "micromatch": "^3.1.4",
+ "normalize-path": "^2.1.1"
+ },
+ "dependencies": {
+ "normalize-path": {
+ "version": "2.1.1",
+ "dev": true,
+ "requires": {
+ "remove-trailing-separator": "^1.0.1"
+ }
+ }
+ }
+ },
+ "braces": {
+ "version": "2.3.2",
+ "dev": true,
+ "requires": {
+ "arr-flatten": "^1.1.0",
+ "array-unique": "^0.3.2",
+ "extend-shallow": "^2.0.1",
+ "fill-range": "^4.0.0",
+ "isobject": "^3.0.1",
+ "repeat-element": "^1.1.2",
+ "snapdragon": "^0.8.1",
+ "snapdragon-node": "^2.0.1",
+ "split-string": "^3.0.2",
+ "to-regex": "^3.0.1"
+ },
+ "dependencies": {
+ "extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "requires": {
+ "is-extendable": "^0.1.0"
+ }
+ }
+ }
+ },
+ "fill-range": {
+ "version": "4.0.0",
+ "dev": true,
+ "requires": {
+ "extend-shallow": "^2.0.1",
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1",
+ "to-regex-range": "^2.1.0"
+ },
+ "dependencies": {
+ "extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "requires": {
+ "is-extendable": "^0.1.0"
+ }
+ }
+ }
+ },
+ "glob-parent": {
+ "version": "3.1.0",
+ "dev": true,
+ "requires": {
+ "is-glob": "^3.1.0",
+ "path-dirname": "^1.0.0"
+ },
+ "dependencies": {
+ "is-glob": {
+ "version": "3.1.0",
+ "dev": true,
+ "requires": {
+ "is-extglob": "^2.1.0"
+ }
+ }
+ }
+ },
+ "is-number": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "kind-of": "^3.0.2"
+ },
+ "dependencies": {
+ "kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "requires": {
+ "is-buffer": "^1.1.5"
+ }
+ }
+ }
+ },
+ "micromatch": {
+ "version": "3.1.10",
+ "dev": true,
+ "requires": {
+ "arr-diff": "^4.0.0",
+ "array-unique": "^0.3.2",
+ "braces": "^2.3.1",
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "extglob": "^2.0.4",
+ "fragment-cache": "^0.2.1",
+ "kind-of": "^6.0.2",
+ "nanomatch": "^1.2.9",
+ "object.pick": "^1.3.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.2"
+ }
+ },
+ "to-regex-range": {
+ "version": "2.1.1",
+ "dev": true,
+ "requires": {
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1"
+ }
+ }
+ }
+ },
+ "chownr": {
+ "version": "1.1.4"
+ },
+ "chrome-trace-event": {
+ "version": "1.0.3",
+ "dev": true
+ },
+ "ci-info": {
+ "version": "2.0.0",
+ "dev": true
+ },
+ "cipher-base": {
+ "version": "1.0.4",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.1",
+ "safe-buffer": "^5.0.1"
+ }
+ },
+ "cjs-module-lexer": {
+ "version": "0.6.0",
+ "dev": true
+ },
+ "class-utils": {
+ "version": "0.3.6",
+ "dev": true,
+ "requires": {
+ "arr-union": "^3.1.0",
+ "define-property": "^0.2.5",
+ "isobject": "^3.0.0",
+ "static-extend": "^0.1.1"
+ },
+ "dependencies": {
+ "define-property": {
+ "version": "0.2.5",
+ "dev": true,
+ "requires": {
+ "is-descriptor": "^0.1.0"
+ }
+ }
+ }
+ },
+ "cldrjs": {
+ "version": "0.5.5"
+ },
+ "clean-css": {
+ "version": "4.2.4",
+ "dev": true,
+ "requires": {
+ "source-map": "~0.6.0"
+ },
+ "dependencies": {
+ "source-map": {
+ "version": "0.6.1",
+ "dev": true
+ }
+ }
+ },
+ "cli-boxes": {
+ "version": "2.2.1",
+ "dev": true
+ },
+ "cliui": {
+ "version": "6.0.0",
+ "dev": true,
+ "requires": {
+ "string-width": "^4.2.0",
+ "strip-ansi": "^6.0.0",
+ "wrap-ansi": "^6.2.0"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "5.0.1",
+ "dev": true
+ },
+ "is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "string-width": {
+ "version": "4.2.3",
+ "dev": true,
+ "requires": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ }
+ },
+ "strip-ansi": {
+ "version": "6.0.1",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^5.0.1"
+ }
+ }
+ }
+ },
+ "clone": {
+ "version": "2.1.2",
+ "dev": true
+ },
+ "clone-buffer": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "clone-deep": {
+ "version": "4.0.1",
+ "dev": true,
+ "requires": {
+ "is-plain-object": "^2.0.4",
+ "kind-of": "^6.0.2",
+ "shallow-clone": "^3.0.0"
+ },
+ "dependencies": {
+ "is-plain-object": {
+ "version": "2.0.4",
+ "dev": true,
+ "requires": {
+ "isobject": "^3.0.1"
+ }
+ }
+ }
+ },
+ "clone-response": {
+ "version": "1.0.2",
+ "requires": {
+ "mimic-response": "^1.0.0"
+ },
+ "dependencies": {
+ "mimic-response": {
+ "version": "1.0.1"
+ }
+ }
+ },
+ "clone-stats": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "cloneable-readable": {
+ "version": "1.1.3",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.1",
+ "process-nextick-args": "^2.0.0",
+ "readable-stream": "^2.3.5"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ }
+ }
+ },
+ "cls-hooked": {
+ "version": "4.2.2",
+ "requires": {
+ "async-hook-jl": "^1.7.6",
+ "emitter-listener": "^1.0.1",
+ "semver": "^5.4.1"
+ },
+ "dependencies": {
+ "semver": {
+ "version": "5.7.1"
+ }
+ }
+ },
+ "co": {
+ "version": "4.6.0",
+ "dev": true
+ },
+ "code-point-at": {
+ "version": "1.1.0"
+ },
+ "collect-v8-coverage": {
+ "version": "1.0.1",
+ "dev": true
+ },
+ "collection-map": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "arr-map": "^2.0.2",
+ "for-own": "^1.0.0",
+ "make-iterator": "^1.0.0"
+ }
+ },
+ "collection-visit": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "map-visit": "^1.0.0",
+ "object-visit": "^1.0.0"
+ }
+ },
+ "color": {
+ "version": "4.2.3",
+ "requires": {
+ "color-convert": "^2.0.1",
+ "color-string": "^1.9.0"
+ }
+ },
+ "color-convert": {
+ "version": "2.0.1",
+ "requires": {
+ "color-name": "~1.1.4"
+ }
+ },
+ "color-name": {
+ "version": "1.1.4"
+ },
+ "color-string": {
+ "version": "1.9.1",
+ "requires": {
+ "color-name": "^1.0.0",
+ "simple-swizzle": "^0.2.2"
+ }
+ },
+ "color-support": {
+ "version": "1.1.3"
+ },
+ "colors": {
+ "version": "1.4.0",
+ "dev": true
+ },
+ "combined-stream": {
+ "version": "1.0.8",
+ "requires": {
+ "delayed-stream": "~1.0.0"
+ }
+ },
+ "commander": {
+ "version": "2.20.3"
+ },
+ "commondir": {
+ "version": "1.0.1"
+ },
+ "component-emitter": {
+ "version": "1.3.0",
+ "dev": true
+ },
+ "compressible": {
+ "version": "2.0.18",
+ "requires": {
+ "mime-db": ">= 1.43.0 < 2"
+ }
+ },
+ "compression": {
+ "version": "1.7.4",
+ "requires": {
+ "accepts": "~1.3.5",
+ "bytes": "3.0.0",
+ "compressible": "~2.0.16",
+ "debug": "2.6.9",
+ "on-headers": "~1.0.2",
+ "safe-buffer": "5.1.2",
+ "vary": "~1.1.2"
+ }
+ },
+ "concat-map": {
+ "version": "0.0.1"
+ },
+ "concat-stream": {
+ "version": "2.0.0",
+ "requires": {
+ "buffer-from": "^1.0.0",
+ "inherits": "^2.0.3",
+ "readable-stream": "^3.0.2",
+ "typedarray": "^0.0.6"
+ },
+ "dependencies": {
+ "readable-stream": {
+ "version": "3.6.0",
+ "requires": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ }
+ },
+ "safe-buffer": {
+ "version": "5.2.1"
+ },
+ "string_decoder": {
+ "version": "1.3.0",
+ "requires": {
+ "safe-buffer": "~5.2.0"
+ }
+ }
+ }
+ },
+ "concat-with-sourcemaps": {
+ "version": "1.1.0",
+ "dev": true,
+ "requires": {
+ "source-map": "^0.6.1"
+ },
+ "dependencies": {
+ "source-map": {
+ "version": "0.6.1",
+ "dev": true
+ }
+ }
+ },
+ "configstore": {
+ "version": "4.0.0",
+ "requires": {
+ "dot-prop": "^4.1.0",
+ "graceful-fs": "^4.1.2",
+ "make-dir": "^1.0.0",
+ "unique-string": "^1.0.0",
+ "write-file-atomic": "^2.0.0",
+ "xdg-basedir": "^3.0.0"
+ }
+ },
+ "connect-history-api-fallback": {
+ "version": "1.6.0",
+ "dev": true
+ },
+ "console-browserify": {
+ "version": "1.2.0",
+ "dev": true
+ },
+ "console-control-strings": {
+ "version": "1.1.0"
+ },
+ "consolidate": {
+ "version": "0.15.1",
+ "dev": true,
+ "requires": {
+ "bluebird": "^3.1.1"
+ }
+ },
+ "constants-browserify": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "content-disposition": {
+ "version": "0.5.4",
+ "requires": {
+ "safe-buffer": "5.2.1"
+ },
+ "dependencies": {
+ "safe-buffer": {
+ "version": "5.2.1"
+ }
+ }
+ },
+ "content-security-policy-builder": {
+ "version": "2.1.0"
+ },
+ "content-type": {
+ "version": "1.0.4"
+ },
+ "convert-source-map": {
+ "version": "1.8.0",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.1"
+ }
+ },
+ "cookie": {
+ "version": "0.4.2"
+ },
+ "cookie-signature": {
+ "version": "1.0.6"
+ },
+ "copy-concurrently": {
+ "version": "1.0.5",
+ "dev": true,
+ "requires": {
+ "aproba": "^1.1.1",
+ "fs-write-stream-atomic": "^1.0.8",
+ "iferr": "^0.1.5",
+ "mkdirp": "^0.5.1",
+ "rimraf": "^2.5.4",
+ "run-queue": "^1.0.0"
+ },
+ "dependencies": {
+ "rimraf": {
+ "version": "2.7.1",
+ "dev": true,
+ "requires": {
+ "glob": "^7.1.3"
+ }
+ }
+ }
+ },
+ "copy-descriptor": {
+ "version": "0.1.1",
+ "dev": true
+ },
+ "copy-props": {
+ "version": "2.0.5",
+ "dev": true,
+ "requires": {
+ "each-props": "^1.3.2",
+ "is-plain-object": "^5.0.0"
+ }
+ },
+ "core-js": {
+ "version": "3.21.1",
+ "dev": true
+ },
+ "core-js-compat": {
+ "version": "3.21.1",
+ "dev": true,
+ "requires": {
+ "browserslist": "^4.19.1",
+ "semver": "7.0.0"
+ },
+ "dependencies": {
+ "semver": {
+ "version": "7.0.0",
+ "dev": true
+ }
+ }
+ },
+ "core-js-pure": {
+ "version": "3.21.1"
+ },
+ "core-util-is": {
+ "version": "1.0.3"
+ },
+ "create-ecdh": {
+ "version": "4.0.4",
+ "dev": true,
+ "requires": {
+ "bn.js": "^4.1.0",
+ "elliptic": "^6.5.3"
+ },
+ "dependencies": {
+ "bn.js": {
+ "version": "4.12.0",
+ "dev": true
+ }
+ }
+ },
+ "create-hash": {
+ "version": "1.2.0",
+ "dev": true,
+ "requires": {
+ "cipher-base": "^1.0.1",
+ "inherits": "^2.0.1",
+ "md5.js": "^1.3.4",
+ "ripemd160": "^2.0.1",
+ "sha.js": "^2.4.0"
+ }
+ },
+ "create-hmac": {
+ "version": "1.1.7",
+ "dev": true,
+ "requires": {
+ "cipher-base": "^1.0.3",
+ "create-hash": "^1.1.0",
+ "inherits": "^2.0.1",
+ "ripemd160": "^2.0.0",
+ "safe-buffer": "^5.0.1",
+ "sha.js": "^2.4.8"
+ }
+ },
+ "cross-fetch": {
+ "version": "3.1.5",
+ "requires": {
+ "node-fetch": "2.6.7"
+ }
+ },
+ "cross-spawn": {
+ "version": "7.0.3",
+ "requires": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ }
+ },
+ "crypt": {
+ "version": "0.0.2"
+ },
+ "crypto-browserify": {
+ "version": "3.12.0",
+ "dev": true,
+ "requires": {
+ "browserify-cipher": "^1.0.0",
+ "browserify-sign": "^4.0.0",
+ "create-ecdh": "^4.0.0",
+ "create-hash": "^1.1.0",
+ "create-hmac": "^1.1.0",
+ "diffie-hellman": "^5.0.0",
+ "inherits": "^2.0.1",
+ "pbkdf2": "^3.0.3",
+ "public-encrypt": "^4.0.0",
+ "randombytes": "^2.0.0",
+ "randomfill": "^1.0.3"
+ }
+ },
+ "crypto-random-string": {
+ "version": "1.0.0"
+ },
+ "css-loader": {
+ "version": "2.1.1",
+ "dev": true,
+ "requires": {
+ "camelcase": "^5.2.0",
+ "icss-utils": "^4.1.0",
+ "loader-utils": "^1.2.3",
+ "normalize-path": "^3.0.0",
+ "postcss": "^7.0.14",
+ "postcss-modules-extract-imports": "^2.0.0",
+ "postcss-modules-local-by-default": "^2.0.6",
+ "postcss-modules-scope": "^2.1.0",
+ "postcss-modules-values": "^2.0.0",
+ "postcss-value-parser": "^3.3.0",
+ "schema-utils": "^1.0.0"
+ },
+ "dependencies": {
+ "json5": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "minimist": "^1.2.0"
+ }
+ },
+ "loader-utils": {
+ "version": "1.4.0",
+ "dev": true,
+ "requires": {
+ "big.js": "^5.2.2",
+ "emojis-list": "^3.0.0",
+ "json5": "^1.0.1"
+ }
+ },
+ "schema-utils": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "ajv": "^6.1.0",
+ "ajv-errors": "^1.0.0",
+ "ajv-keywords": "^3.1.0"
+ }
+ }
+ }
+ },
+ "cssesc": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "cssom": {
+ "version": "0.4.4"
+ },
+ "cssstyle": {
+ "version": "2.3.0",
+ "requires": {
+ "cssom": "~0.3.6"
+ },
+ "dependencies": {
+ "cssom": {
+ "version": "0.3.8"
+ }
+ }
+ },
+ "currently-unhandled": {
+ "version": "0.4.1",
+ "dev": true,
+ "requires": {
+ "array-find-index": "^1.0.1"
+ }
+ },
+ "cyclist": {
+ "version": "1.0.1",
+ "dev": true
+ },
+ "d": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "es5-ext": "^0.10.50",
+ "type": "^1.0.1"
+ }
+ },
+ "dargs": {
+ "version": "5.1.0",
+ "dev": true
+ },
+ "dashdash": {
+ "version": "1.14.1",
+ "requires": {
+ "assert-plus": "^1.0.0"
+ }
+ },
+ "dasherize": {
+ "version": "2.0.0"
+ },
+ "data-urls": {
+ "version": "2.0.0",
+ "requires": {
+ "abab": "^2.0.3",
+ "whatwg-mimetype": "^2.3.0",
+ "whatwg-url": "^8.0.0"
+ },
+ "dependencies": {
+ "tr46": {
+ "version": "2.1.0",
+ "requires": {
+ "punycode": "^2.1.1"
+ }
+ },
+ "webidl-conversions": {
+ "version": "6.1.0"
+ },
+ "whatwg-url": {
+ "version": "8.7.0",
+ "requires": {
+ "lodash": "^4.7.0",
+ "tr46": "^2.1.0",
+ "webidl-conversions": "^6.1.0"
+ }
+ }
+ }
+ },
+ "date-and-time": {
+ "version": "0.6.3"
+ },
+ "date-format": {
+ "version": "4.0.14"
+ },
+ "dateformat": {
+ "version": "2.2.0",
+ "dev": true
+ },
+ "debug": {
+ "version": "2.6.9",
+ "requires": {
+ "ms": "2.0.0"
+ }
+ },
+ "decamelize": {
+ "version": "1.2.0",
+ "dev": true
+ },
+ "decimal.js": {
+ "version": "10.3.1"
+ },
+ "decode-uri-component": {
+ "version": "0.2.0",
+ "dev": true
+ },
+ "decompress-response": {
+ "version": "5.0.0",
+ "requires": {
+ "mimic-response": "^2.0.0"
+ }
+ },
+ "deep-equal": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "is-arguments": "^1.0.4",
+ "is-date-object": "^1.0.1",
+ "is-regex": "^1.0.4",
+ "object-is": "^1.0.1",
+ "object-keys": "^1.1.1",
+ "regexp.prototype.flags": "^1.2.0"
+ }
+ },
+ "deep-extend": {
+ "version": "0.6.0"
+ },
+ "deep-is": {
+ "version": "0.1.4"
+ },
+ "deepmerge": {
+ "version": "4.2.2"
+ },
+ "default-compare": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "kind-of": "^5.0.2"
+ },
+ "dependencies": {
+ "kind-of": {
+ "version": "5.1.0",
+ "dev": true
+ }
+ }
+ },
+ "default-gateway": {
+ "version": "4.2.0",
+ "dev": true,
+ "requires": {
+ "execa": "^1.0.0",
+ "ip-regex": "^2.1.0"
+ },
+ "dependencies": {
+ "cross-spawn": {
+ "version": "6.0.5",
+ "dev": true,
+ "requires": {
+ "nice-try": "^1.0.4",
+ "path-key": "^2.0.1",
+ "semver": "^5.5.0",
+ "shebang-command": "^1.2.0",
+ "which": "^1.2.9"
+ }
+ },
+ "execa": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "cross-spawn": "^6.0.0",
+ "get-stream": "^4.0.0",
+ "is-stream": "^1.1.0",
+ "npm-run-path": "^2.0.0",
+ "p-finally": "^1.0.0",
+ "signal-exit": "^3.0.0",
+ "strip-eof": "^1.0.0"
+ }
+ },
+ "get-stream": {
+ "version": "4.1.0",
+ "dev": true,
+ "requires": {
+ "pump": "^3.0.0"
+ }
+ },
+ "is-stream": {
+ "version": "1.1.0",
+ "dev": true
+ },
+ "npm-run-path": {
+ "version": "2.0.2",
+ "dev": true,
+ "requires": {
+ "path-key": "^2.0.0"
+ }
+ },
+ "path-key": {
+ "version": "2.0.1",
+ "dev": true
+ },
+ "semver": {
+ "version": "5.7.1",
+ "dev": true
+ },
+ "shebang-command": {
+ "version": "1.2.0",
+ "dev": true,
+ "requires": {
+ "shebang-regex": "^1.0.0"
+ }
+ },
+ "shebang-regex": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "which": {
+ "version": "1.3.1",
+ "dev": true,
+ "requires": {
+ "isexe": "^2.0.0"
+ }
+ }
+ }
+ },
+ "default-resolution": {
+ "version": "2.0.0",
+ "dev": true
+ },
+ "defer-to-connect": {
+ "version": "2.0.1"
+ },
+ "define-properties": {
+ "version": "1.1.3",
+ "dev": true,
+ "requires": {
+ "object-keys": "^1.0.12"
+ }
+ },
+ "define-property": {
+ "version": "2.0.2",
+ "dev": true,
+ "requires": {
+ "is-descriptor": "^1.0.2",
+ "isobject": "^3.0.1"
+ },
+ "dependencies": {
+ "is-accessor-descriptor": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "kind-of": "^6.0.0"
+ }
+ },
+ "is-data-descriptor": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "kind-of": "^6.0.0"
+ }
+ },
+ "is-descriptor": {
+ "version": "1.0.2",
+ "dev": true,
+ "requires": {
+ "is-accessor-descriptor": "^1.0.0",
+ "is-data-descriptor": "^1.0.0",
+ "kind-of": "^6.0.2"
+ }
+ }
+ }
+ },
+ "del": {
+ "version": "2.2.2",
+ "dev": true,
+ "requires": {
+ "globby": "^5.0.0",
+ "is-path-cwd": "^1.0.0",
+ "is-path-in-cwd": "^1.0.0",
+ "object-assign": "^4.0.1",
+ "pify": "^2.0.0",
+ "pinkie-promise": "^2.0.0",
+ "rimraf": "^2.2.8"
+ },
+ "dependencies": {
+ "pify": {
+ "version": "2.3.0",
+ "dev": true
+ },
+ "rimraf": {
+ "version": "2.7.1",
+ "dev": true,
+ "requires": {
+ "glob": "^7.1.3"
+ }
+ }
+ }
+ },
+ "delayed-stream": {
+ "version": "1.0.0"
+ },
+ "delegates": {
+ "version": "1.0.0"
+ },
+ "denque": {
+ "version": "1.5.1",
+ "dev": true
+ },
+ "depd": {
+ "version": "2.0.0"
+ },
+ "deprecate": {
+ "version": "1.1.1",
+ "dev": true
+ },
+ "des.js": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.1",
+ "minimalistic-assert": "^1.0.0"
+ }
+ },
+ "destroy": {
+ "version": "1.0.4"
+ },
+ "detect-file": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "detect-libc": {
+ "version": "2.0.1"
+ },
+ "detect-newline": {
+ "version": "3.1.0",
+ "dev": true
+ },
+ "detect-node": {
+ "version": "2.1.0",
+ "dev": true
+ },
+ "devtools-protocol": {
+ "version": "0.0.1045489",
+ "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1045489.tgz",
+ "integrity": "sha512-D+PTmWulkuQW4D1NTiCRCFxF7pQPn0hgp4YyX4wAQ6xYXKOadSWPR3ENGDQ47MW/Ewc9v2rpC/UEEGahgBYpSQ=="
+ },
+ "diff": {
+ "version": "1.4.0"
+ },
+ "diff-sequences": {
+ "version": "26.6.2",
+ "dev": true
+ },
+ "diffie-hellman": {
+ "version": "5.0.3",
+ "dev": true,
+ "requires": {
+ "bn.js": "^4.1.0",
+ "miller-rabin": "^4.0.0",
+ "randombytes": "^2.0.0"
+ },
+ "dependencies": {
+ "bn.js": {
+ "version": "4.12.0",
+ "dev": true
+ }
+ }
+ },
+ "dns-equal": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "dns-packet": {
+ "version": "1.3.4",
+ "dev": true,
+ "requires": {
+ "ip": "^1.1.0",
+ "safe-buffer": "^5.0.1"
+ }
+ },
+ "dns-txt": {
+ "version": "2.0.2",
+ "dev": true,
+ "requires": {
+ "buffer-indexof": "^1.0.0"
+ }
+ },
+ "doctrine": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "esutils": "^2.0.2"
+ }
+ },
+ "dom-converter": {
+ "version": "0.2.0",
+ "dev": true,
+ "requires": {
+ "utila": "~0.4"
+ }
+ },
+ "dom-serializer": {
+ "version": "0.2.2",
+ "requires": {
+ "domelementtype": "^2.0.1",
+ "entities": "^2.0.0"
+ },
+ "dependencies": {
+ "domelementtype": {
+ "version": "2.2.0"
+ },
+ "entities": {
+ "version": "2.2.0"
+ }
+ }
+ },
+ "domain-browser": {
+ "version": "1.2.0",
+ "dev": true
+ },
+ "domelementtype": {
+ "version": "1.3.1"
+ },
+ "domexception": {
+ "version": "2.0.1",
+ "requires": {
+ "webidl-conversions": "^5.0.0"
+ },
+ "dependencies": {
+ "webidl-conversions": {
+ "version": "5.0.0"
+ }
+ }
+ },
+ "domhandler": {
+ "version": "2.4.2",
+ "requires": {
+ "domelementtype": "1"
+ }
+ },
+ "domutils": {
+ "version": "1.7.0",
+ "requires": {
+ "dom-serializer": "0",
+ "domelementtype": "1"
+ }
+ },
+ "dont-sniff-mimetype": {
+ "version": "1.1.0"
+ },
+ "dot-case": {
+ "version": "3.0.4",
+ "dev": true,
+ "requires": {
+ "no-case": "^3.0.4",
+ "tslib": "^2.0.3"
+ },
+ "dependencies": {
+ "lower-case": {
+ "version": "2.0.2",
+ "dev": true,
+ "requires": {
+ "tslib": "^2.0.3"
+ }
+ },
+ "no-case": {
+ "version": "3.0.4",
+ "dev": true,
+ "requires": {
+ "lower-case": "^2.0.2",
+ "tslib": "^2.0.3"
+ }
+ }
+ }
+ },
+ "dot-prop": {
+ "version": "4.2.1",
+ "requires": {
+ "is-obj": "^1.0.0"
+ }
+ },
+ "duplex": {
+ "version": "1.0.0"
+ },
+ "duplex-child-process": {
+ "version": "0.0.5"
+ },
+ "duplexer": {
+ "version": "0.0.4"
+ },
+ "duplexer2": {
+ "version": "0.0.2",
+ "dev": true,
+ "requires": {
+ "readable-stream": "~1.1.9"
+ }
+ },
+ "duplexer3": {
+ "version": "0.1.4"
+ },
+ "duplexify": {
+ "version": "3.7.1",
+ "requires": {
+ "end-of-stream": "^1.0.0",
+ "inherits": "^2.0.1",
+ "readable-stream": "^2.0.0",
+ "stream-shift": "^1.0.0"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0"
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ }
+ }
+ },
+ "each-props": {
+ "version": "1.3.2",
+ "dev": true,
+ "requires": {
+ "is-plain-object": "^2.0.1",
+ "object.defaults": "^1.1.0"
+ },
+ "dependencies": {
+ "is-plain-object": {
+ "version": "2.0.4",
+ "dev": true,
+ "requires": {
+ "isobject": "^3.0.1"
+ }
+ }
+ }
+ },
+ "ecc-jsbn": {
+ "version": "0.1.2",
+ "requires": {
+ "jsbn": "~0.1.0",
+ "safer-buffer": "^2.1.0"
+ }
+ },
+ "ecdsa-sig-formatter": {
+ "version": "1.0.11",
+ "requires": {
+ "safe-buffer": "^5.0.1"
+ }
+ },
+ "ee-first": {
+ "version": "1.1.1"
+ },
+ "ejs": {
+ "version": "2.7.4"
+ },
+ "electron-to-chromium": {
+ "version": "1.4.96",
+ "dev": true
+ },
+ "elliptic": {
+ "version": "6.5.4",
+ "dev": true,
+ "requires": {
+ "bn.js": "^4.11.9",
+ "brorand": "^1.1.0",
+ "hash.js": "^1.0.0",
+ "hmac-drbg": "^1.0.1",
+ "inherits": "^2.0.4",
+ "minimalistic-assert": "^1.0.1",
+ "minimalistic-crypto-utils": "^1.0.1"
+ },
+ "dependencies": {
+ "bn.js": {
+ "version": "4.12.0",
+ "dev": true
+ }
+ }
+ },
+ "emitter-listener": {
+ "version": "1.1.2",
+ "requires": {
+ "shimmer": "^1.2.0"
+ }
+ },
+ "emittery": {
+ "version": "0.7.2",
+ "dev": true
+ },
+ "emoji-regex": {
+ "version": "8.0.0"
+ },
+ "emojis-list": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "encodeurl": {
+ "version": "1.0.2"
+ },
+ "encoding-japanese": {
+ "version": "1.0.30"
+ },
+ "end-of-stream": {
+ "version": "1.4.4",
+ "requires": {
+ "once": "^1.4.0"
+ }
+ },
+ "enhanced-resolve": {
+ "version": "4.5.0",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "^4.1.2",
+ "memory-fs": "^0.5.0",
+ "tapable": "^1.0.0"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "memory-fs": {
+ "version": "0.5.0",
+ "dev": true,
+ "requires": {
+ "errno": "^0.1.3",
+ "readable-stream": "^2.0.1"
+ }
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ }
+ }
+ },
+ "enquirer": {
+ "version": "2.3.6",
+ "dev": true,
+ "requires": {
+ "ansi-colors": "^4.1.1"
+ }
+ },
+ "ent": {
+ "version": "2.2.0"
+ },
+ "entities": {
+ "version": "1.1.2"
+ },
+ "errno": {
+ "version": "0.1.8",
+ "dev": true,
+ "requires": {
+ "prr": "~1.0.1"
+ }
+ },
+ "error-ex": {
+ "version": "1.3.2",
+ "dev": true,
+ "requires": {
+ "is-arrayish": "^0.2.1"
+ },
+ "dependencies": {
+ "is-arrayish": {
+ "version": "0.2.1",
+ "dev": true
+ }
+ }
+ },
+ "errs": {
+ "version": "0.3.2"
+ },
+ "es-abstract": {
+ "version": "1.19.2",
+ "dev": true,
+ "requires": {
+ "call-bind": "^1.0.2",
+ "es-to-primitive": "^1.2.1",
+ "function-bind": "^1.1.1",
+ "get-intrinsic": "^1.1.1",
+ "get-symbol-description": "^1.0.0",
+ "has": "^1.0.3",
+ "has-symbols": "^1.0.3",
+ "internal-slot": "^1.0.3",
+ "is-callable": "^1.2.4",
+ "is-negative-zero": "^2.0.2",
+ "is-regex": "^1.1.4",
+ "is-shared-array-buffer": "^1.0.1",
+ "is-string": "^1.0.7",
+ "is-weakref": "^1.0.2",
+ "object-inspect": "^1.12.0",
+ "object-keys": "^1.1.1",
+ "object.assign": "^4.1.2",
+ "string.prototype.trimend": "^1.0.4",
+ "string.prototype.trimstart": "^1.0.4",
+ "unbox-primitive": "^1.0.1"
+ }
+ },
+ "es-to-primitive": {
+ "version": "1.2.1",
+ "dev": true,
+ "requires": {
+ "is-callable": "^1.1.4",
+ "is-date-object": "^1.0.1",
+ "is-symbol": "^1.0.2"
+ }
+ },
+ "es5-ext": {
+ "version": "0.10.59",
+ "dev": true,
+ "requires": {
+ "es6-iterator": "^2.0.3",
+ "es6-symbol": "^3.1.3",
+ "next-tick": "^1.1.0"
+ }
+ },
+ "es6-iterator": {
+ "version": "2.0.3",
+ "dev": true,
+ "requires": {
+ "d": "1",
+ "es5-ext": "^0.10.35",
+ "es6-symbol": "^3.1.1"
+ }
+ },
+ "es6-promise": {
+ "version": "4.2.8"
+ },
+ "es6-promisify": {
+ "version": "5.0.0",
+ "requires": {
+ "es6-promise": "^4.0.3"
+ }
+ },
+ "es6-symbol": {
+ "version": "3.1.3",
+ "dev": true,
+ "requires": {
+ "d": "^1.0.1",
+ "ext": "^1.1.2"
+ }
+ },
+ "es6-templates": {
+ "version": "0.2.3",
+ "dev": true,
+ "requires": {
+ "recast": "~0.11.12",
+ "through": "~2.3.6"
+ }
+ },
+ "es6-weak-map": {
+ "version": "2.0.3",
+ "dev": true,
+ "requires": {
+ "d": "1",
+ "es5-ext": "^0.10.46",
+ "es6-iterator": "^2.0.3",
+ "es6-symbol": "^3.1.1"
+ }
+ },
+ "escalade": {
+ "version": "3.1.1",
+ "dev": true
+ },
+ "escape-goat": {
+ "version": "2.1.1",
+ "dev": true
+ },
+ "escape-html": {
+ "version": "1.0.3"
+ },
+ "escape-string-regexp": {
+ "version": "2.0.0"
+ },
+ "escodegen": {
+ "version": "2.0.0",
+ "requires": {
+ "esprima": "^4.0.1",
+ "estraverse": "^5.2.0",
+ "esutils": "^2.0.2",
+ "optionator": "^0.8.1",
+ "source-map": "~0.6.1"
+ },
+ "dependencies": {
+ "estraverse": {
+ "version": "5.3.0"
+ },
+ "levn": {
+ "version": "0.3.0",
+ "requires": {
+ "prelude-ls": "~1.1.2",
+ "type-check": "~0.3.2"
+ }
+ },
+ "optionator": {
+ "version": "0.8.3",
+ "requires": {
+ "deep-is": "~0.1.3",
+ "fast-levenshtein": "~2.0.6",
+ "levn": "~0.3.0",
+ "prelude-ls": "~1.1.2",
+ "type-check": "~0.3.2",
+ "word-wrap": "~1.2.3"
+ }
+ },
+ "prelude-ls": {
+ "version": "1.1.2"
+ },
+ "source-map": {
+ "version": "0.6.1",
+ "optional": true
+ },
+ "type-check": {
+ "version": "0.3.2",
+ "requires": {
+ "prelude-ls": "~1.1.2"
+ }
+ }
+ }
+ },
+ "eslint": {
+ "version": "7.32.0",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "7.12.11",
+ "@eslint/eslintrc": "^0.4.3",
+ "@humanwhocodes/config-array": "^0.5.0",
+ "ajv": "^6.10.0",
+ "chalk": "^4.0.0",
+ "cross-spawn": "^7.0.2",
+ "debug": "^4.0.1",
+ "doctrine": "^3.0.0",
+ "enquirer": "^2.3.5",
+ "escape-string-regexp": "^4.0.0",
+ "eslint-scope": "^5.1.1",
+ "eslint-utils": "^2.1.0",
+ "eslint-visitor-keys": "^2.0.0",
+ "espree": "^7.3.1",
+ "esquery": "^1.4.0",
+ "esutils": "^2.0.2",
+ "fast-deep-equal": "^3.1.3",
+ "file-entry-cache": "^6.0.1",
+ "functional-red-black-tree": "^1.0.1",
+ "glob-parent": "^5.1.2",
+ "globals": "^13.6.0",
+ "ignore": "^4.0.6",
+ "import-fresh": "^3.0.0",
+ "imurmurhash": "^0.1.4",
+ "is-glob": "^4.0.0",
+ "js-yaml": "^3.13.1",
+ "json-stable-stringify-without-jsonify": "^1.0.1",
+ "levn": "^0.4.1",
+ "lodash.merge": "^4.6.2",
+ "minimatch": "^3.0.4",
+ "natural-compare": "^1.4.0",
+ "optionator": "^0.9.1",
+ "progress": "^2.0.0",
+ "regexpp": "^3.1.0",
+ "semver": "^7.2.1",
+ "strip-ansi": "^6.0.0",
+ "strip-json-comments": "^3.1.0",
+ "table": "^6.0.9",
+ "text-table": "^0.2.0",
+ "v8-compile-cache": "^2.0.3"
+ },
+ "dependencies": {
+ "@babel/code-frame": {
+ "version": "7.12.11",
+ "dev": true,
+ "requires": {
+ "@babel/highlight": "^7.10.4"
+ }
+ },
+ "ansi-regex": {
+ "version": "5.0.1",
+ "dev": true
+ },
+ "debug": {
+ "version": "4.3.4",
+ "dev": true,
+ "requires": {
+ "ms": "2.1.2"
+ }
+ },
+ "escape-string-regexp": {
+ "version": "4.0.0",
+ "dev": true
+ },
+ "globals": {
+ "version": "13.13.0",
+ "dev": true,
+ "requires": {
+ "type-fest": "^0.20.2"
+ }
+ },
+ "js-yaml": {
+ "version": "3.14.1",
+ "dev": true,
+ "requires": {
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
+ }
+ },
+ "lru-cache": {
+ "version": "6.0.0",
+ "dev": true,
+ "requires": {
+ "yallist": "^4.0.0"
+ }
+ },
+ "ms": {
+ "version": "2.1.2",
+ "dev": true
+ },
+ "semver": {
+ "version": "7.3.5",
+ "dev": true,
+ "requires": {
+ "lru-cache": "^6.0.0"
+ }
+ },
+ "strip-ansi": {
+ "version": "6.0.1",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^5.0.1"
+ }
+ },
+ "strip-json-comments": {
+ "version": "3.1.1",
+ "dev": true
+ },
+ "type-fest": {
+ "version": "0.20.2",
+ "dev": true
+ },
+ "yallist": {
+ "version": "4.0.0",
+ "dev": true
+ }
+ }
+ },
+ "eslint-config-google": {
+ "version": "0.11.0",
+ "dev": true,
+ "requires": {}
+ },
+ "eslint-plugin-jasmine": {
+ "version": "2.10.1",
+ "dev": true
+ },
+ "eslint-scope": {
+ "version": "5.1.1",
+ "dev": true,
+ "requires": {
+ "esrecurse": "^4.3.0",
+ "estraverse": "^4.1.1"
+ }
+ },
+ "eslint-utils": {
+ "version": "2.1.0",
+ "dev": true,
+ "requires": {
+ "eslint-visitor-keys": "^1.1.0"
+ },
+ "dependencies": {
+ "eslint-visitor-keys": {
+ "version": "1.3.0",
+ "dev": true
+ }
+ }
+ },
+ "eslint-visitor-keys": {
+ "version": "2.1.0",
+ "dev": true
+ },
+ "espree": {
+ "version": "7.3.1",
+ "dev": true,
+ "requires": {
+ "acorn": "^7.4.0",
+ "acorn-jsx": "^5.3.1",
+ "eslint-visitor-keys": "^1.3.0"
+ },
+ "dependencies": {
+ "eslint-visitor-keys": {
+ "version": "1.3.0",
+ "dev": true
+ }
+ }
+ },
+ "esprima": {
+ "version": "4.0.1"
+ },
+ "esquery": {
+ "version": "1.4.0",
+ "dev": true,
+ "requires": {
+ "estraverse": "^5.1.0"
+ },
+ "dependencies": {
+ "estraverse": {
+ "version": "5.3.0",
+ "dev": true
+ }
+ }
+ },
+ "esrecurse": {
+ "version": "4.3.0",
+ "dev": true,
+ "requires": {
+ "estraverse": "^5.2.0"
+ },
+ "dependencies": {
+ "estraverse": {
+ "version": "5.3.0",
+ "dev": true
+ }
+ }
+ },
+ "estraverse": {
+ "version": "4.3.0"
+ },
+ "esutils": {
+ "version": "2.0.3"
+ },
+ "etag": {
+ "version": "1.8.1"
+ },
+ "event-target-shim": {
+ "version": "5.0.1"
+ },
+ "eventemitter2": {
+ "version": "5.0.1"
+ },
+ "eventemitter3": {
+ "version": "4.0.7",
+ "dev": true
+ },
+ "events": {
+ "version": "1.1.1"
+ },
+ "eventsource": {
+ "version": "1.1.0",
+ "dev": true,
+ "requires": {
+ "original": "^1.0.0"
+ }
+ },
+ "evp_bytestokey": {
+ "version": "1.0.3",
+ "dev": true,
+ "requires": {
+ "md5.js": "^1.3.4",
+ "safe-buffer": "^5.1.1"
+ }
+ },
+ "exec-sh": {
+ "version": "0.3.6",
+ "dev": true
+ },
+ "execa": {
+ "version": "4.1.0",
+ "requires": {
+ "cross-spawn": "^7.0.0",
+ "get-stream": "^5.0.0",
+ "human-signals": "^1.1.1",
+ "is-stream": "^2.0.0",
+ "merge-stream": "^2.0.0",
+ "npm-run-path": "^4.0.0",
+ "onetime": "^5.1.0",
+ "signal-exit": "^3.0.2",
+ "strip-final-newline": "^2.0.0"
+ },
+ "dependencies": {
+ "merge-stream": {
+ "version": "2.0.0"
+ }
+ }
+ },
+ "exit": {
+ "version": "0.1.2",
+ "dev": true
+ },
+ "expand-brackets": {
+ "version": "2.1.4",
+ "dev": true,
+ "requires": {
+ "debug": "^2.3.3",
+ "define-property": "^0.2.5",
+ "extend-shallow": "^2.0.1",
+ "posix-character-classes": "^0.1.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.1"
+ },
+ "dependencies": {
+ "define-property": {
+ "version": "0.2.5",
+ "dev": true,
+ "requires": {
+ "is-descriptor": "^0.1.0"
+ }
+ },
+ "extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "requires": {
+ "is-extendable": "^0.1.0"
+ }
+ }
+ }
+ },
+ "expand-template": {
+ "version": "2.0.3"
+ },
+ "expand-tilde": {
+ "version": "2.0.2",
+ "dev": true,
+ "requires": {
+ "homedir-polyfill": "^1.0.1"
+ }
+ },
+ "expect": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "@jest/types": "^26.6.2",
+ "ansi-styles": "^4.0.0",
+ "jest-get-type": "^26.3.0",
+ "jest-matcher-utils": "^26.6.2",
+ "jest-message-util": "^26.6.2",
+ "jest-regex-util": "^26.0.0"
+ }
+ },
+ "express": {
+ "version": "4.17.3",
+ "requires": {
+ "accepts": "~1.3.8",
+ "array-flatten": "1.1.1",
+ "body-parser": "1.19.2",
+ "content-disposition": "0.5.4",
+ "content-type": "~1.0.4",
+ "cookie": "0.4.2",
+ "cookie-signature": "1.0.6",
+ "debug": "2.6.9",
+ "depd": "~1.1.2",
+ "encodeurl": "~1.0.2",
+ "escape-html": "~1.0.3",
+ "etag": "~1.8.1",
+ "finalhandler": "~1.1.2",
+ "fresh": "0.5.2",
+ "merge-descriptors": "1.0.1",
+ "methods": "~1.1.2",
+ "on-finished": "~2.3.0",
+ "parseurl": "~1.3.3",
+ "path-to-regexp": "0.1.7",
+ "proxy-addr": "~2.0.7",
+ "qs": "6.9.7",
+ "range-parser": "~1.2.1",
+ "safe-buffer": "5.2.1",
+ "send": "0.17.2",
+ "serve-static": "1.14.2",
+ "setprototypeof": "1.2.0",
+ "statuses": "~1.5.0",
+ "type-is": "~1.6.18",
+ "utils-merge": "1.0.1",
+ "vary": "~1.1.2"
+ },
+ "dependencies": {
+ "depd": {
+ "version": "1.1.2"
+ },
+ "safe-buffer": {
+ "version": "5.2.1"
+ }
+ }
+ },
+ "ext": {
+ "version": "1.6.0",
+ "dev": true,
+ "requires": {
+ "type": "^2.5.0"
+ },
+ "dependencies": {
+ "type": {
+ "version": "2.6.0",
+ "dev": true
+ }
+ }
+ },
+ "extend": {
+ "version": "3.0.2"
+ },
+ "extend-shallow": {
+ "version": "3.0.2",
+ "dev": true,
+ "requires": {
+ "assign-symbols": "^1.0.0",
+ "is-extendable": "^1.0.1"
+ },
+ "dependencies": {
+ "is-extendable": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "is-plain-object": "^2.0.4"
+ }
+ },
+ "is-plain-object": {
+ "version": "2.0.4",
+ "dev": true,
+ "requires": {
+ "isobject": "^3.0.1"
+ }
+ }
+ }
+ },
+ "extglob": {
+ "version": "2.0.4",
+ "dev": true,
+ "requires": {
+ "array-unique": "^0.3.2",
+ "define-property": "^1.0.0",
+ "expand-brackets": "^2.1.4",
+ "extend-shallow": "^2.0.1",
+ "fragment-cache": "^0.2.1",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.1"
+ },
+ "dependencies": {
+ "define-property": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "is-descriptor": "^1.0.0"
+ }
+ },
+ "extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "requires": {
+ "is-extendable": "^0.1.0"
+ }
+ },
+ "is-accessor-descriptor": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "kind-of": "^6.0.0"
+ }
+ },
+ "is-data-descriptor": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "kind-of": "^6.0.0"
+ }
+ },
+ "is-descriptor": {
+ "version": "1.0.2",
+ "dev": true,
+ "requires": {
+ "is-accessor-descriptor": "^1.0.0",
+ "is-data-descriptor": "^1.0.0",
+ "kind-of": "^6.0.2"
+ }
+ }
+ }
+ },
+ "extract-zip": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz",
+ "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==",
+ "requires": {
+ "@types/yauzl": "^2.9.1",
+ "debug": "^4.1.1",
+ "get-stream": "^5.1.0",
+ "yauzl": "^2.10.0"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "4.3.4",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
+ "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
+ "requires": {
+ "ms": "2.1.2"
+ }
+ },
+ "ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
+ }
+ }
+ },
+ "extsprintf": {
+ "version": "1.4.1"
+ },
+ "eyes": {
+ "version": "0.1.8"
+ },
+ "fancy-log": {
+ "version": "1.3.3",
+ "dev": true,
+ "requires": {
+ "ansi-gray": "^0.1.1",
+ "color-support": "^1.1.3",
+ "parse-node-version": "^1.0.0",
+ "time-stamp": "^1.0.0"
+ }
+ },
+ "fast-deep-equal": {
+ "version": "3.1.3"
+ },
+ "fast-json-patch": {
+ "version": "2.2.1",
+ "requires": {
+ "fast-deep-equal": "^2.0.1"
+ },
+ "dependencies": {
+ "fast-deep-equal": {
+ "version": "2.0.1"
+ }
+ }
+ },
+ "fast-json-stable-stringify": {
+ "version": "2.1.0"
+ },
+ "fast-levenshtein": {
+ "version": "2.0.6"
+ },
+ "fast-safe-stringify": {
+ "version": "2.1.1"
+ },
+ "fast-text-encoding": {
+ "version": "1.0.3"
+ },
+ "fastparse": {
+ "version": "1.1.2",
+ "dev": true
+ },
+ "faye-websocket": {
+ "version": "0.11.4",
+ "dev": true,
+ "requires": {
+ "websocket-driver": ">=0.5.1"
+ }
+ },
+ "fb-watchman": {
+ "version": "2.0.1",
+ "dev": true,
+ "requires": {
+ "bser": "2.1.1"
+ }
+ },
+ "fd-slicer": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",
+ "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==",
+ "requires": {
+ "pend": "~1.2.0"
+ }
+ },
+ "feature-policy": {
+ "version": "0.3.0"
+ },
+ "figgy-pudding": {
+ "version": "3.5.2",
+ "dev": true
+ },
+ "file-entry-cache": {
+ "version": "6.0.1",
+ "dev": true,
+ "requires": {
+ "flat-cache": "^3.0.4"
+ }
+ },
+ "file-loader": {
+ "version": "1.1.11",
+ "dev": true,
+ "requires": {
+ "loader-utils": "^1.0.2",
+ "schema-utils": "^0.4.5"
+ },
+ "dependencies": {
+ "json5": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "minimist": "^1.2.0"
+ }
+ },
+ "loader-utils": {
+ "version": "1.4.0",
+ "dev": true,
+ "requires": {
+ "big.js": "^5.2.2",
+ "emojis-list": "^3.0.0",
+ "json5": "^1.0.1"
+ }
+ },
+ "schema-utils": {
+ "version": "0.4.7",
+ "dev": true,
+ "requires": {
+ "ajv": "^6.1.0",
+ "ajv-keywords": "^3.1.0"
+ }
+ }
+ }
+ },
+ "file-type": {
+ "version": "10.11.0"
+ },
+ "filed-mimefix": {
+ "version": "0.1.3",
+ "requires": {
+ "mime": "^1.4.0"
+ }
+ },
+ "filelist": {
+ "version": "1.0.2",
+ "requires": {
+ "minimatch": "^3.0.4"
+ }
+ },
+ "fill-range": {
+ "version": "7.0.1",
+ "dev": true,
+ "requires": {
+ "to-regex-range": "^5.0.1"
+ }
+ },
+ "finalhandler": {
+ "version": "1.1.2",
+ "requires": {
+ "debug": "2.6.9",
+ "encodeurl": "~1.0.2",
+ "escape-html": "~1.0.3",
+ "on-finished": "~2.3.0",
+ "parseurl": "~1.3.3",
+ "statuses": "~1.5.0",
+ "unpipe": "~1.0.0"
+ }
+ },
+ "find-cache-dir": {
+ "version": "2.1.0",
+ "dev": true,
+ "requires": {
+ "commondir": "^1.0.1",
+ "make-dir": "^2.0.0",
+ "pkg-dir": "^3.0.0"
+ },
+ "dependencies": {
+ "find-up": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "locate-path": "^3.0.0"
+ }
+ },
+ "locate-path": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "p-locate": "^3.0.0",
+ "path-exists": "^3.0.0"
+ }
+ },
+ "make-dir": {
+ "version": "2.1.0",
+ "dev": true,
+ "requires": {
+ "pify": "^4.0.1",
+ "semver": "^5.6.0"
+ }
+ },
+ "p-locate": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "p-limit": "^2.0.0"
+ }
+ },
+ "path-exists": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "pkg-dir": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "find-up": "^3.0.0"
+ }
+ },
+ "semver": {
+ "version": "5.7.1",
+ "dev": true
+ }
+ }
+ },
+ "find-up": {
+ "version": "4.1.0",
+ "dev": true,
+ "requires": {
+ "locate-path": "^5.0.0",
+ "path-exists": "^4.0.0"
+ }
+ },
+ "findup-sync": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "detect-file": "^1.0.0",
+ "is-glob": "^4.0.0",
+ "micromatch": "^3.0.4",
+ "resolve-dir": "^1.0.1"
+ },
+ "dependencies": {
+ "braces": {
+ "version": "2.3.2",
+ "dev": true,
+ "requires": {
+ "arr-flatten": "^1.1.0",
+ "array-unique": "^0.3.2",
+ "extend-shallow": "^2.0.1",
+ "fill-range": "^4.0.0",
+ "isobject": "^3.0.1",
+ "repeat-element": "^1.1.2",
+ "snapdragon": "^0.8.1",
+ "snapdragon-node": "^2.0.1",
+ "split-string": "^3.0.2",
+ "to-regex": "^3.0.1"
+ },
+ "dependencies": {
+ "extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "requires": {
+ "is-extendable": "^0.1.0"
+ }
+ }
+ }
+ },
+ "fill-range": {
+ "version": "4.0.0",
+ "dev": true,
+ "requires": {
+ "extend-shallow": "^2.0.1",
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1",
+ "to-regex-range": "^2.1.0"
+ },
+ "dependencies": {
+ "extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "requires": {
+ "is-extendable": "^0.1.0"
+ }
+ }
+ }
+ },
+ "is-number": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "kind-of": "^3.0.2"
+ },
+ "dependencies": {
+ "kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "requires": {
+ "is-buffer": "^1.1.5"
+ }
+ }
+ }
+ },
+ "micromatch": {
+ "version": "3.1.10",
+ "dev": true,
+ "requires": {
+ "arr-diff": "^4.0.0",
+ "array-unique": "^0.3.2",
+ "braces": "^2.3.1",
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "extglob": "^2.0.4",
+ "fragment-cache": "^0.2.1",
+ "kind-of": "^6.0.2",
+ "nanomatch": "^1.2.9",
+ "object.pick": "^1.3.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.2"
+ }
+ },
+ "to-regex-range": {
+ "version": "2.1.1",
+ "dev": true,
+ "requires": {
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1"
+ }
+ }
+ }
+ },
+ "fined": {
+ "version": "1.2.0",
+ "dev": true,
+ "requires": {
+ "expand-tilde": "^2.0.2",
+ "is-plain-object": "^2.0.3",
+ "object.defaults": "^1.1.0",
+ "object.pick": "^1.2.0",
+ "parse-filepath": "^1.0.1"
+ },
+ "dependencies": {
+ "is-plain-object": {
+ "version": "2.0.4",
+ "dev": true,
+ "requires": {
+ "isobject": "^3.0.1"
+ }
+ }
+ }
+ },
+ "flagged-respawn": {
+ "version": "1.0.1",
+ "dev": true
+ },
+ "flat-cache": {
+ "version": "3.0.4",
+ "dev": true,
+ "requires": {
+ "flatted": "^3.1.0",
+ "rimraf": "^3.0.2"
+ }
+ },
+ "flatted": {
+ "version": "3.2.7"
+ },
+ "flush-write-stream": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.3",
+ "readable-stream": "^2.3.6"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ }
+ }
+ },
+ "follow-redirects": {
+ "version": "1.14.9"
+ },
+ "for-in": {
+ "version": "1.0.2",
+ "dev": true
+ },
+ "for-own": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "for-in": "^1.0.1"
+ }
+ },
+ "forever-agent": {
+ "version": "0.6.1"
+ },
+ "form-data": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
+ "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
+ "requires": {
+ "asynckit": "^0.4.0",
+ "combined-stream": "^1.0.8",
+ "mime-types": "^2.1.12"
+ }
+ },
+ "form-data-encoder": {
+ "version": "1.7.2"
+ },
+ "formdata-node": {
+ "version": "4.3.2",
+ "requires": {
+ "node-domexception": "1.0.0",
+ "web-streams-polyfill": "4.0.0-beta.1"
+ }
+ },
+ "formidable": {
+ "version": "1.2.6"
+ },
+ "forwarded": {
+ "version": "0.2.0"
+ },
+ "fragment-cache": {
+ "version": "0.2.1",
+ "dev": true,
+ "requires": {
+ "map-cache": "^0.2.2"
+ }
+ },
+ "fresh": {
+ "version": "0.5.2"
+ },
+ "from2": {
+ "version": "2.3.0",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.1",
+ "readable-stream": "^2.0.0"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ }
+ }
+ },
+ "fs-constants": {
+ "version": "1.0.0"
+ },
+ "fs-extra": {
+ "version": "5.0.0",
+ "requires": {
+ "graceful-fs": "^4.1.2",
+ "jsonfile": "^4.0.0",
+ "universalify": "^0.1.0"
+ }
+ },
+ "fs-minipass": {
+ "version": "2.1.0",
+ "requires": {
+ "minipass": "^3.0.0"
+ }
+ },
+ "fs-mkdirp-stream": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "^4.1.11",
+ "through2": "^2.0.3"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "through2": {
+ "version": "2.0.5",
+ "dev": true,
+ "requires": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "xtend": {
+ "version": "4.0.2",
+ "dev": true
+ }
+ }
+ },
+ "fs-readfile-promise": {
+ "version": "3.0.1",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "^4.1.11"
+ }
+ },
+ "fs-write-stream-atomic": {
+ "version": "1.0.10",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "^4.1.2",
+ "iferr": "^0.1.5",
+ "imurmurhash": "^0.1.4",
+ "readable-stream": "1 || 2"
+ }
+ },
+ "fs.realpath": {
+ "version": "1.0.0"
+ },
+ "fstream": {
+ "version": "1.0.12",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "^4.1.2",
+ "inherits": "~2.0.0",
+ "mkdirp": ">=0.5 0",
+ "rimraf": "2"
+ },
+ "dependencies": {
+ "rimraf": {
+ "version": "2.7.1",
+ "dev": true,
+ "requires": {
+ "glob": "^7.1.3"
+ }
+ }
+ }
+ },
+ "ftps": {
+ "version": "1.2.0",
+ "requires": {
+ "duplex-child-process": "0.0.5",
+ "lodash": "^4.4.0"
+ }
+ },
+ "function-bind": {
+ "version": "1.1.1"
+ },
+ "functional-red-black-tree": {
+ "version": "1.0.1",
+ "dev": true
+ },
+ "g11n-pipeline": {
+ "version": "2.0.6",
+ "requires": {
+ "swagger-client": "^3.8.3"
+ }
+ },
+ "gauge": {
+ "version": "2.7.4",
+ "dev": true,
+ "requires": {
+ "aproba": "^1.0.3",
+ "console-control-strings": "^1.0.0",
+ "has-unicode": "^2.0.0",
+ "object-assign": "^4.1.0",
+ "signal-exit": "^3.0.0",
+ "string-width": "^1.0.1",
+ "strip-ansi": "^3.0.1",
+ "wide-align": "^1.1.0"
+ }
+ },
+ "gaxios": {
+ "version": "1.8.4",
+ "requires": {
+ "abort-controller": "^3.0.0",
+ "extend": "^3.0.2",
+ "https-proxy-agent": "^2.2.1",
+ "node-fetch": "^2.3.0"
+ }
+ },
+ "gaze": {
+ "version": "1.1.3",
+ "dev": true,
+ "requires": {
+ "globule": "^1.0.0"
+ }
+ },
+ "gcp-metadata": {
+ "version": "1.0.0",
+ "requires": {
+ "gaxios": "^1.0.2",
+ "json-bigint": "^0.3.0"
+ }
+ },
+ "gcs-resumable-upload": {
+ "version": "1.1.0",
+ "requires": {
+ "abort-controller": "^2.0.2",
+ "configstore": "^4.0.0",
+ "gaxios": "^1.5.0",
+ "google-auth-library": "^3.0.0",
+ "pumpify": "^1.5.1",
+ "stream-events": "^1.0.4"
+ },
+ "dependencies": {
+ "abort-controller": {
+ "version": "2.0.3",
+ "requires": {
+ "event-target-shim": "^5.0.0"
+ }
+ }
+ }
+ },
+ "generate-function": {
+ "version": "2.3.1",
+ "dev": true,
+ "requires": {
+ "is-property": "^1.0.2"
+ }
+ },
+ "gensync": {
+ "version": "1.0.0-beta.2",
+ "dev": true
+ },
+ "get-caller-file": {
+ "version": "2.0.5",
+ "dev": true
+ },
+ "get-intrinsic": {
+ "version": "1.1.1",
+ "requires": {
+ "function-bind": "^1.1.1",
+ "has": "^1.0.3",
+ "has-symbols": "^1.0.1"
+ }
+ },
+ "get-package-type": {
+ "version": "0.1.0",
+ "dev": true
+ },
+ "get-stdin": {
+ "version": "4.0.1",
+ "dev": true
+ },
+ "get-stream": {
+ "version": "5.2.0",
+ "requires": {
+ "pump": "^3.0.0"
+ }
+ },
+ "get-symbol-description": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "call-bind": "^1.0.2",
+ "get-intrinsic": "^1.1.1"
+ }
+ },
+ "get-value": {
+ "version": "2.0.6",
+ "dev": true
+ },
+ "getpass": {
+ "version": "0.1.7",
+ "requires": {
+ "assert-plus": "^1.0.0"
+ }
+ },
+ "github-from-package": {
+ "version": "0.0.0"
+ },
+ "glob": {
+ "version": "7.2.0",
+ "requires": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.0.4",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ }
+ },
+ "glob-parent": {
+ "version": "5.1.2",
+ "dev": true,
+ "requires": {
+ "is-glob": "^4.0.1"
+ }
+ },
+ "glob-stream": {
+ "version": "6.1.0",
+ "dev": true,
+ "requires": {
+ "extend": "^3.0.0",
+ "glob": "^7.1.1",
+ "glob-parent": "^3.1.0",
+ "is-negated-glob": "^1.0.0",
+ "ordered-read-streams": "^1.0.0",
+ "pumpify": "^1.3.5",
+ "readable-stream": "^2.1.5",
+ "remove-trailing-separator": "^1.0.1",
+ "to-absolute-glob": "^2.0.0",
+ "unique-stream": "^2.0.2"
+ },
+ "dependencies": {
+ "glob-parent": {
+ "version": "3.1.0",
+ "dev": true,
+ "requires": {
+ "is-glob": "^3.1.0",
+ "path-dirname": "^1.0.0"
+ }
+ },
+ "is-glob": {
+ "version": "3.1.0",
+ "dev": true,
+ "requires": {
+ "is-extglob": "^2.1.0"
+ }
+ },
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ }
+ }
+ },
+ "glob-watcher": {
+ "version": "5.0.5",
+ "dev": true,
+ "requires": {
+ "anymatch": "^2.0.0",
+ "async-done": "^1.2.0",
+ "chokidar": "^2.0.0",
+ "is-negated-glob": "^1.0.0",
+ "just-debounce": "^1.0.0",
+ "normalize-path": "^3.0.0",
+ "object.defaults": "^1.1.0"
+ },
+ "dependencies": {
+ "anymatch": {
+ "version": "2.0.0",
+ "dev": true,
+ "requires": {
+ "micromatch": "^3.1.4",
+ "normalize-path": "^2.1.1"
+ },
+ "dependencies": {
+ "normalize-path": {
+ "version": "2.1.1",
+ "dev": true,
+ "requires": {
+ "remove-trailing-separator": "^1.0.1"
+ }
+ }
+ }
+ },
+ "braces": {
+ "version": "2.3.2",
+ "dev": true,
+ "requires": {
+ "arr-flatten": "^1.1.0",
+ "array-unique": "^0.3.2",
+ "extend-shallow": "^2.0.1",
+ "fill-range": "^4.0.0",
+ "isobject": "^3.0.1",
+ "repeat-element": "^1.1.2",
+ "snapdragon": "^0.8.1",
+ "snapdragon-node": "^2.0.1",
+ "split-string": "^3.0.2",
+ "to-regex": "^3.0.1"
+ },
+ "dependencies": {
+ "extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "requires": {
+ "is-extendable": "^0.1.0"
+ }
+ }
+ }
+ },
+ "fill-range": {
+ "version": "4.0.0",
+ "dev": true,
+ "requires": {
+ "extend-shallow": "^2.0.1",
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1",
+ "to-regex-range": "^2.1.0"
+ },
+ "dependencies": {
+ "extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "requires": {
+ "is-extendable": "^0.1.0"
+ }
+ }
+ }
+ },
+ "is-number": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "kind-of": "^3.0.2"
+ },
+ "dependencies": {
+ "kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "requires": {
+ "is-buffer": "^1.1.5"
+ }
+ }
+ }
+ },
+ "micromatch": {
+ "version": "3.1.10",
+ "dev": true,
+ "requires": {
+ "arr-diff": "^4.0.0",
+ "array-unique": "^0.3.2",
+ "braces": "^2.3.1",
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "extglob": "^2.0.4",
+ "fragment-cache": "^0.2.1",
+ "kind-of": "^6.0.2",
+ "nanomatch": "^1.2.9",
+ "object.pick": "^1.3.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.2"
+ }
+ },
+ "to-regex-range": {
+ "version": "2.1.1",
+ "dev": true,
+ "requires": {
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1"
+ }
+ }
+ }
+ },
+ "global-dirs": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "ini": "2.0.0"
+ },
+ "dependencies": {
+ "ini": {
+ "version": "2.0.0",
+ "dev": true
+ }
+ }
+ },
+ "global-modules": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "global-prefix": "^1.0.1",
+ "is-windows": "^1.0.1",
+ "resolve-dir": "^1.0.0"
+ }
+ },
+ "global-prefix": {
+ "version": "1.0.2",
+ "dev": true,
+ "requires": {
+ "expand-tilde": "^2.0.2",
+ "homedir-polyfill": "^1.0.1",
+ "ini": "^1.3.4",
+ "is-windows": "^1.0.1",
+ "which": "^1.2.14"
+ },
+ "dependencies": {
+ "which": {
+ "version": "1.3.1",
+ "dev": true,
+ "requires": {
+ "isexe": "^2.0.0"
+ }
+ }
+ }
+ },
+ "globalize": {
+ "version": "1.7.0",
+ "requires": {
+ "cldrjs": "^0.5.4"
+ }
+ },
+ "globals": {
+ "version": "11.12.0",
+ "dev": true
+ },
+ "globby": {
+ "version": "5.0.0",
+ "dev": true,
+ "requires": {
+ "array-union": "^1.0.1",
+ "arrify": "^1.0.0",
+ "glob": "^7.0.3",
+ "object-assign": "^4.0.1",
+ "pify": "^2.0.0",
+ "pinkie-promise": "^2.0.0"
+ },
+ "dependencies": {
+ "pify": {
+ "version": "2.3.0",
+ "dev": true
+ }
+ }
+ },
+ "globule": {
+ "version": "1.3.3",
+ "dev": true,
+ "requires": {
+ "glob": "~7.1.1",
+ "lodash": "~4.17.10",
+ "minimatch": "~3.0.2"
+ },
+ "dependencies": {
+ "glob": {
+ "version": "7.1.7",
+ "dev": true,
+ "requires": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.0.4",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ }
+ },
+ "minimatch": {
+ "version": "3.0.8",
+ "dev": true,
+ "requires": {
+ "brace-expansion": "^1.1.7"
+ }
+ }
+ }
+ },
+ "glogg": {
+ "version": "1.0.2",
+ "dev": true,
+ "requires": {
+ "sparkles": "^1.0.0"
+ }
+ },
+ "google-auth-library": {
+ "version": "3.1.2",
+ "requires": {
+ "base64-js": "^1.3.0",
+ "fast-text-encoding": "^1.0.0",
+ "gaxios": "^1.2.1",
+ "gcp-metadata": "^1.0.0",
+ "gtoken": "^2.3.2",
+ "https-proxy-agent": "^2.2.1",
+ "jws": "^3.1.5",
+ "lru-cache": "^5.0.0",
+ "semver": "^5.5.0"
+ },
+ "dependencies": {
+ "base64-js": {
+ "version": "1.5.1"
+ },
+ "semver": {
+ "version": "5.7.1"
+ }
+ }
+ },
+ "google-p12-pem": {
+ "version": "1.0.5",
+ "requires": {
+ "node-forge": "^0.10.0",
+ "pify": "^4.0.0"
+ }
+ },
+ "got": {
+ "version": "10.7.0",
+ "requires": {
+ "@sindresorhus/is": "^2.0.0",
+ "@szmarczak/http-timer": "^4.0.0",
+ "@types/cacheable-request": "^6.0.1",
+ "cacheable-lookup": "^2.0.0",
+ "cacheable-request": "^7.0.1",
+ "decompress-response": "^5.0.0",
+ "duplexer3": "^0.1.4",
+ "get-stream": "^5.0.0",
+ "lowercase-keys": "^2.0.0",
+ "mimic-response": "^2.1.0",
+ "p-cancelable": "^2.0.0",
+ "p-event": "^4.0.0",
+ "responselike": "^2.0.0",
+ "to-readable-stream": "^2.0.0",
+ "type-fest": "^0.10.0"
+ }
+ },
+ "graceful-fs": {
+ "version": "4.2.9"
+ },
+ "growl": {
+ "version": "1.9.2"
+ },
+ "growly": {
+ "version": "1.3.0",
+ "dev": true,
+ "optional": true
+ },
+ "gtoken": {
+ "version": "2.3.3",
+ "requires": {
+ "gaxios": "^1.0.4",
+ "google-p12-pem": "^1.0.0",
+ "jws": "^3.1.5",
+ "mime": "^2.2.0",
+ "pify": "^4.0.0"
+ },
+ "dependencies": {
+ "mime": {
+ "version": "2.6.0"
+ }
+ }
+ },
+ "gulp": {
+ "version": "4.0.2",
+ "dev": true,
+ "requires": {
+ "glob-watcher": "^5.0.3",
+ "gulp-cli": "^2.2.0",
+ "undertaker": "^1.2.1",
+ "vinyl-fs": "^3.0.0"
+ },
+ "dependencies": {
+ "ansi-colors": {
+ "version": "1.1.0",
+ "dev": true,
+ "requires": {
+ "ansi-wrap": "^0.1.0"
+ }
+ },
+ "camelcase": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "cliui": {
+ "version": "3.2.0",
+ "dev": true,
+ "requires": {
+ "string-width": "^1.0.1",
+ "strip-ansi": "^3.0.1",
+ "wrap-ansi": "^2.0.0"
+ }
+ },
+ "concat-stream": {
+ "version": "1.6.2",
+ "dev": true,
+ "requires": {
+ "buffer-from": "^1.0.0",
+ "inherits": "^2.0.3",
+ "readable-stream": "^2.2.2",
+ "typedarray": "^0.0.6"
+ }
+ },
+ "get-caller-file": {
+ "version": "1.0.3",
+ "dev": true
+ },
+ "gulp-cli": {
+ "version": "2.3.0",
+ "dev": true,
+ "requires": {
+ "ansi-colors": "^1.0.1",
+ "archy": "^1.0.0",
+ "array-sort": "^1.0.0",
+ "color-support": "^1.1.3",
+ "concat-stream": "^1.6.0",
+ "copy-props": "^2.0.1",
+ "fancy-log": "^1.3.2",
+ "gulplog": "^1.0.0",
+ "interpret": "^1.4.0",
+ "isobject": "^3.0.1",
+ "liftoff": "^3.1.0",
+ "matchdep": "^2.0.0",
+ "mute-stdout": "^1.0.0",
+ "pretty-hrtime": "^1.0.0",
+ "replace-homedir": "^1.0.0",
+ "semver-greatest-satisfied-range": "^1.1.0",
+ "v8flags": "^3.2.0",
+ "yargs": "^7.1.0"
+ }
+ },
+ "invert-kv": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "lcid": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "invert-kv": "^1.0.0"
+ }
+ },
+ "os-locale": {
+ "version": "1.4.0",
+ "dev": true,
+ "requires": {
+ "lcid": "^1.0.0"
+ }
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "require-main-filename": {
+ "version": "1.0.1",
+ "dev": true
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "which-module": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "wrap-ansi": {
+ "version": "2.1.0",
+ "dev": true,
+ "requires": {
+ "string-width": "^1.0.1",
+ "strip-ansi": "^3.0.1"
+ }
+ },
+ "y18n": {
+ "version": "3.2.2",
+ "dev": true
+ },
+ "yargs": {
+ "version": "7.1.2",
+ "dev": true,
+ "requires": {
+ "camelcase": "^3.0.0",
+ "cliui": "^3.2.0",
+ "decamelize": "^1.1.1",
+ "get-caller-file": "^1.0.1",
+ "os-locale": "^1.4.0",
+ "read-pkg-up": "^1.0.1",
+ "require-directory": "^2.1.1",
+ "require-main-filename": "^1.0.1",
+ "set-blocking": "^2.0.0",
+ "string-width": "^1.0.2",
+ "which-module": "^1.0.0",
+ "y18n": "^3.2.1",
+ "yargs-parser": "^5.0.1"
+ }
+ },
+ "yargs-parser": {
+ "version": "5.0.1",
+ "dev": true,
+ "requires": {
+ "camelcase": "^3.0.0",
+ "object.assign": "^4.1.0"
+ }
+ }
+ }
+ },
+ "gulp-concat": {
+ "version": "2.6.1",
+ "dev": true,
+ "requires": {
+ "concat-with-sourcemaps": "^1.0.0",
+ "through2": "^2.0.0",
+ "vinyl": "^2.0.0"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "through2": {
+ "version": "2.0.5",
+ "dev": true,
+ "requires": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "xtend": {
+ "version": "4.0.2",
+ "dev": true
+ }
+ }
+ },
+ "gulp-env": {
+ "version": "0.4.0",
+ "dev": true,
+ "requires": {
+ "ini": "^1.3.4",
+ "through2": "^2.0.0"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "through2": {
+ "version": "2.0.5",
+ "dev": true,
+ "requires": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "xtend": {
+ "version": "4.0.2",
+ "dev": true
+ }
+ }
+ },
+ "gulp-file": {
+ "version": "0.4.0",
+ "dev": true,
+ "requires": {
+ "through2": "^0.4.1",
+ "vinyl": "^2.1.0"
+ },
+ "dependencies": {
+ "object-keys": {
+ "version": "0.4.0",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "1.0.34",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.1",
+ "isarray": "0.0.1",
+ "string_decoder": "~0.10.x"
+ }
+ },
+ "through2": {
+ "version": "0.4.2",
+ "dev": true,
+ "requires": {
+ "readable-stream": "~1.0.17",
+ "xtend": "~2.1.1"
+ }
+ },
+ "xtend": {
+ "version": "2.1.2",
+ "dev": true,
+ "requires": {
+ "object-keys": "~0.4.0"
+ }
+ }
+ }
+ },
+ "gulp-install": {
+ "version": "1.1.0",
+ "dev": true,
+ "requires": {
+ "dargs": "^5.1.0",
+ "gulp-util": "^3.0.7",
+ "lodash.groupby": "^4.6.0",
+ "p-queue": "^1.0.0",
+ "through2": "^2.0.3",
+ "which": "^1.2.14"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "through2": {
+ "version": "2.0.5",
+ "dev": true,
+ "requires": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "which": {
+ "version": "1.3.1",
+ "dev": true,
+ "requires": {
+ "isexe": "^2.0.0"
+ }
+ },
+ "xtend": {
+ "version": "4.0.2",
+ "dev": true
+ }
+ }
+ },
+ "gulp-merge-json": {
+ "version": "1.3.1",
+ "dev": true,
+ "requires": {
+ "deprecate": "^1.0.0",
+ "json5": "^1.0.1",
+ "lodash.mergewith": "^4.6.1",
+ "plugin-error": "^1.0.1",
+ "through": "^2.3.8",
+ "vinyl": "^2.1.0"
+ },
+ "dependencies": {
+ "json5": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "minimist": "^1.2.0"
+ }
+ }
+ }
+ },
+ "gulp-nodemon": {
+ "version": "2.5.0",
+ "dev": true,
+ "requires": {
+ "colors": "^1.2.1",
+ "gulp": "^4.0.0",
+ "nodemon": "^2.0.2"
+ },
+ "dependencies": {
+ "binary-extensions": {
+ "version": "2.2.0",
+ "dev": true
+ },
+ "chokidar": {
+ "version": "3.5.3",
+ "dev": true,
+ "requires": {
+ "anymatch": "~3.1.2",
+ "braces": "~3.0.2",
+ "fsevents": "~2.3.2",
+ "glob-parent": "~5.1.2",
+ "is-binary-path": "~2.1.0",
+ "is-glob": "~4.0.1",
+ "normalize-path": "~3.0.0",
+ "readdirp": "~3.6.0"
+ }
+ },
+ "debug": {
+ "version": "3.2.7",
+ "dev": true,
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "has-flag": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "is-binary-path": {
+ "version": "2.1.0",
+ "dev": true,
+ "requires": {
+ "binary-extensions": "^2.0.0"
+ }
+ },
+ "ms": {
+ "version": "2.1.3",
+ "dev": true
+ },
+ "nodemon": {
+ "version": "2.0.15",
+ "dev": true,
+ "requires": {
+ "chokidar": "^3.5.2",
+ "debug": "^3.2.7",
+ "ignore-by-default": "^1.0.1",
+ "minimatch": "^3.0.4",
+ "pstree.remy": "^1.1.8",
+ "semver": "^5.7.1",
+ "supports-color": "^5.5.0",
+ "touch": "^3.1.0",
+ "undefsafe": "^2.0.5",
+ "update-notifier": "^5.1.0"
+ }
+ },
+ "readdirp": {
+ "version": "3.6.0",
+ "dev": true,
+ "requires": {
+ "picomatch": "^2.2.1"
+ }
+ },
+ "semver": {
+ "version": "5.7.1",
+ "dev": true
+ },
+ "supports-color": {
+ "version": "5.5.0",
+ "dev": true,
+ "requires": {
+ "has-flag": "^3.0.0"
+ }
+ }
+ }
+ },
+ "gulp-print": {
+ "version": "2.0.1",
+ "dev": true,
+ "requires": {
+ "gulp-util": "^3.0.6",
+ "map-stream": "~0.0.6"
+ }
+ },
+ "gulp-util": {
+ "version": "3.0.8",
+ "dev": true,
+ "requires": {
+ "array-differ": "^1.0.0",
+ "array-uniq": "^1.0.2",
+ "beeper": "^1.0.0",
+ "chalk": "^1.0.0",
+ "dateformat": "^2.0.0",
+ "fancy-log": "^1.1.0",
+ "gulplog": "^1.0.0",
+ "has-gulplog": "^0.1.0",
+ "lodash._reescape": "^3.0.0",
+ "lodash._reevaluate": "^3.0.0",
+ "lodash._reinterpolate": "^3.0.0",
+ "lodash.template": "^3.0.0",
+ "minimist": "^1.1.0",
+ "multipipe": "^0.1.2",
+ "object-assign": "^3.0.0",
+ "replace-ext": "0.0.1",
+ "through2": "^2.0.0",
+ "vinyl": "^0.5.0"
+ },
+ "dependencies": {
+ "ansi-styles": {
+ "version": "2.2.1",
+ "dev": true
+ },
+ "chalk": {
+ "version": "1.1.3",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^2.2.1",
+ "escape-string-regexp": "^1.0.2",
+ "has-ansi": "^2.0.0",
+ "strip-ansi": "^3.0.0",
+ "supports-color": "^2.0.0"
+ }
+ },
+ "clone": {
+ "version": "1.0.4",
+ "dev": true
+ },
+ "clone-stats": {
+ "version": "0.0.1",
+ "dev": true
+ },
+ "escape-string-regexp": {
+ "version": "1.0.5",
+ "dev": true
+ },
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "lodash.template": {
+ "version": "3.6.2",
+ "dev": true,
+ "requires": {
+ "lodash._basecopy": "^3.0.0",
+ "lodash._basetostring": "^3.0.0",
+ "lodash._basevalues": "^3.0.0",
+ "lodash._isiterateecall": "^3.0.0",
+ "lodash._reinterpolate": "^3.0.0",
+ "lodash.escape": "^3.0.0",
+ "lodash.keys": "^3.0.0",
+ "lodash.restparam": "^3.0.0",
+ "lodash.templatesettings": "^3.0.0"
+ }
+ },
+ "lodash.templatesettings": {
+ "version": "3.1.1",
+ "dev": true,
+ "requires": {
+ "lodash._reinterpolate": "^3.0.0",
+ "lodash.escape": "^3.0.0"
+ }
+ },
+ "object-assign": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "replace-ext": {
+ "version": "0.0.1",
+ "dev": true
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "supports-color": {
+ "version": "2.0.0",
+ "dev": true
+ },
+ "through2": {
+ "version": "2.0.5",
+ "dev": true,
+ "requires": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "vinyl": {
+ "version": "0.5.3",
+ "dev": true,
+ "requires": {
+ "clone": "^1.0.0",
+ "clone-stats": "^0.0.1",
+ "replace-ext": "0.0.1"
+ }
+ },
+ "xtend": {
+ "version": "4.0.2",
+ "dev": true
+ }
+ }
+ },
+ "gulp-wrap": {
+ "version": "0.15.0",
+ "dev": true,
+ "requires": {
+ "consolidate": "^0.15.1",
+ "es6-promise": "^4.2.6",
+ "fs-readfile-promise": "^3.0.1",
+ "js-yaml": "^3.13.0",
+ "lodash": "^4.17.11",
+ "node.extend": "2.0.2",
+ "plugin-error": "^1.0.1",
+ "through2": "^3.0.1",
+ "tryit": "^1.0.1",
+ "vinyl-bufferstream": "^1.0.1"
+ },
+ "dependencies": {
+ "js-yaml": {
+ "version": "3.14.1",
+ "dev": true,
+ "requires": {
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
+ }
+ }
+ }
+ },
+ "gulp-yaml": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "bufferstreams": "1.1.0",
+ "gulp-util": "^3.0.6",
+ "js-yaml": "^3.4.3",
+ "through2": "^2.0.0",
+ "xtend": "^4.0.0"
+ },
+ "dependencies": {
+ "bufferstreams": {
+ "version": "1.1.0",
+ "dev": true,
+ "requires": {
+ "readable-stream": "^2.0.2"
+ }
+ },
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "js-yaml": {
+ "version": "3.14.1",
+ "dev": true,
+ "requires": {
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
+ }
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "through2": {
+ "version": "2.0.5",
+ "dev": true,
+ "requires": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "xtend": {
+ "version": "4.0.2",
+ "dev": true
+ }
+ }
+ },
+ "gulplog": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "glogg": "^1.0.0"
+ }
+ },
+ "handle-thing": {
+ "version": "2.0.1",
+ "dev": true
+ },
+ "har-schema": {
+ "version": "2.0.0"
+ },
+ "har-validator": {
+ "version": "5.1.5",
+ "requires": {
+ "ajv": "^6.12.3",
+ "har-schema": "^2.0.0"
+ }
+ },
+ "harmony-reflect": {
+ "version": "1.6.2",
+ "dev": true
+ },
+ "has": {
+ "version": "1.0.3",
+ "requires": {
+ "function-bind": "^1.1.1"
+ }
+ },
+ "has-ansi": {
+ "version": "2.0.0",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^2.0.0"
+ }
+ },
+ "has-bigints": {
+ "version": "1.0.1",
+ "dev": true
+ },
+ "has-flag": {
+ "version": "4.0.0"
+ },
+ "has-gulplog": {
+ "version": "0.1.0",
+ "dev": true,
+ "requires": {
+ "sparkles": "^1.0.0"
+ }
+ },
+ "has-symbols": {
+ "version": "1.0.3"
+ },
+ "has-tostringtag": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "has-symbols": "^1.0.2"
+ }
+ },
+ "has-unicode": {
+ "version": "2.0.1"
+ },
+ "has-value": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "get-value": "^2.0.6",
+ "has-values": "^1.0.0",
+ "isobject": "^3.0.0"
+ }
+ },
+ "has-values": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "is-number": "^3.0.0",
+ "kind-of": "^4.0.0"
+ },
+ "dependencies": {
+ "is-number": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "kind-of": "^3.0.2"
+ },
+ "dependencies": {
+ "kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "requires": {
+ "is-buffer": "^1.1.5"
+ }
+ }
+ }
+ },
+ "kind-of": {
+ "version": "4.0.0",
+ "dev": true,
+ "requires": {
+ "is-buffer": "^1.1.5"
+ }
+ }
+ }
+ },
+ "has-yarn": {
+ "version": "2.1.0",
+ "dev": true
+ },
+ "hash-base": {
+ "version": "3.1.0",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.4",
+ "readable-stream": "^3.6.0",
+ "safe-buffer": "^5.2.0"
+ },
+ "dependencies": {
+ "readable-stream": {
+ "version": "3.6.0",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ }
+ },
+ "safe-buffer": {
+ "version": "5.2.1",
+ "dev": true
+ },
+ "string_decoder": {
+ "version": "1.3.0",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.2.0"
+ }
+ }
+ }
+ },
+ "hash-stream-validation": {
+ "version": "0.2.4"
+ },
+ "hash.js": {
+ "version": "1.1.7",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.3",
+ "minimalistic-assert": "^1.0.1"
+ }
+ },
+ "he": {
+ "version": "1.2.0"
+ },
+ "helmet": {
+ "version": "3.23.3",
+ "requires": {
+ "depd": "2.0.0",
+ "dont-sniff-mimetype": "1.1.0",
+ "feature-policy": "0.3.0",
+ "helmet-crossdomain": "0.4.0",
+ "helmet-csp": "2.10.0",
+ "hide-powered-by": "1.1.0",
+ "hpkp": "2.0.0",
+ "hsts": "2.2.0",
+ "nocache": "2.1.0",
+ "referrer-policy": "1.2.0",
+ "x-xss-protection": "1.3.0"
+ }
+ },
+ "helmet-crossdomain": {
+ "version": "0.4.0"
+ },
+ "helmet-csp": {
+ "version": "2.10.0",
+ "requires": {
+ "bowser": "2.9.0",
+ "camelize": "1.0.0",
+ "content-security-policy-builder": "2.1.0",
+ "dasherize": "2.0.0"
+ }
+ },
+ "hide-powered-by": {
+ "version": "1.1.0"
+ },
+ "hmac-drbg": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "hash.js": "^1.0.3",
+ "minimalistic-assert": "^1.0.0",
+ "minimalistic-crypto-utils": "^1.0.1"
+ }
+ },
+ "homedir-polyfill": {
+ "version": "1.0.3",
+ "dev": true,
+ "requires": {
+ "parse-passwd": "^1.0.0"
+ }
+ },
+ "hosted-git-info": {
+ "version": "2.8.9",
+ "dev": true
+ },
+ "hpack.js": {
+ "version": "2.1.6",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.1",
+ "obuf": "^1.0.0",
+ "readable-stream": "^2.0.1",
+ "wbuf": "^1.1.0"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ }
+ }
+ },
+ "hpkp": {
+ "version": "2.0.0"
+ },
+ "hsts": {
+ "version": "2.2.0",
+ "requires": {
+ "depd": "2.0.0"
+ }
+ },
+ "html-encoding-sniffer": {
+ "version": "2.0.1",
+ "requires": {
+ "whatwg-encoding": "^1.0.5"
+ }
+ },
+ "html-entities": {
+ "version": "1.4.0",
+ "dev": true
+ },
+ "html-escaper": {
+ "version": "2.0.2",
+ "dev": true
+ },
+ "html-loader": {
+ "version": "0.4.5",
+ "dev": true,
+ "requires": {
+ "es6-templates": "^0.2.2",
+ "fastparse": "^1.1.1",
+ "html-minifier": "^3.0.1",
+ "loader-utils": "^1.0.2",
+ "object-assign": "^4.1.0"
+ },
+ "dependencies": {
+ "json5": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "minimist": "^1.2.0"
+ }
+ },
+ "loader-utils": {
+ "version": "1.4.0",
+ "dev": true,
+ "requires": {
+ "big.js": "^5.2.2",
+ "emojis-list": "^3.0.0",
+ "json5": "^1.0.1"
+ }
+ }
+ }
+ },
+ "html-loader-jest": {
+ "version": "0.2.1",
+ "dev": true,
+ "requires": {
+ "html-loader": "^0.5.1"
+ },
+ "dependencies": {
+ "html-loader": {
+ "version": "0.5.5",
+ "dev": true,
+ "requires": {
+ "es6-templates": "^0.2.3",
+ "fastparse": "^1.1.1",
+ "html-minifier": "^3.5.8",
+ "loader-utils": "^1.1.0",
+ "object-assign": "^4.1.1"
+ }
+ },
+ "json5": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "minimist": "^1.2.0"
+ }
+ },
+ "loader-utils": {
+ "version": "1.4.0",
+ "dev": true,
+ "requires": {
+ "big.js": "^5.2.2",
+ "emojis-list": "^3.0.0",
+ "json5": "^1.0.1"
+ }
+ }
+ }
+ },
+ "html-minifier": {
+ "version": "3.5.21",
+ "dev": true,
+ "requires": {
+ "camel-case": "3.0.x",
+ "clean-css": "4.2.x",
+ "commander": "2.17.x",
+ "he": "1.2.x",
+ "param-case": "2.1.x",
+ "relateurl": "0.2.x",
+ "uglify-js": "3.4.x"
+ },
+ "dependencies": {
+ "commander": {
+ "version": "2.17.1",
+ "dev": true
+ }
+ }
+ },
+ "html-minifier-terser": {
+ "version": "5.1.1",
+ "dev": true,
+ "requires": {
+ "camel-case": "^4.1.1",
+ "clean-css": "^4.2.3",
+ "commander": "^4.1.1",
+ "he": "^1.2.0",
+ "param-case": "^3.0.3",
+ "relateurl": "^0.2.7",
+ "terser": "^4.6.3"
+ },
+ "dependencies": {
+ "camel-case": {
+ "version": "4.1.2",
+ "dev": true,
+ "requires": {
+ "pascal-case": "^3.1.2",
+ "tslib": "^2.0.3"
+ }
+ },
+ "commander": {
+ "version": "4.1.1",
+ "dev": true
+ },
+ "param-case": {
+ "version": "3.0.4",
+ "dev": true,
+ "requires": {
+ "dot-case": "^3.0.4",
+ "tslib": "^2.0.3"
+ }
+ }
+ }
+ },
+ "html-to-text": {
+ "version": "5.1.1",
+ "requires": {
+ "he": "^1.2.0",
+ "htmlparser2": "^3.10.1",
+ "lodash": "^4.17.11",
+ "minimist": "^1.2.0"
+ }
+ },
+ "html-webpack-plugin": {
+ "version": "4.5.2",
+ "dev": true,
+ "requires": {
+ "@types/html-minifier-terser": "^5.0.0",
+ "@types/tapable": "^1.0.5",
+ "@types/webpack": "^4.41.8",
+ "html-minifier-terser": "^5.0.1",
+ "loader-utils": "^1.2.3",
+ "lodash": "^4.17.20",
+ "pretty-error": "^2.1.1",
+ "tapable": "^1.1.3",
+ "util.promisify": "1.0.0"
+ },
+ "dependencies": {
+ "json5": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "minimist": "^1.2.0"
+ }
+ },
+ "loader-utils": {
+ "version": "1.4.0",
+ "dev": true,
+ "requires": {
+ "big.js": "^5.2.2",
+ "emojis-list": "^3.0.0",
+ "json5": "^1.0.1"
+ }
+ }
+ }
+ },
+ "htmlparser2": {
+ "version": "3.10.1",
+ "requires": {
+ "domelementtype": "^1.3.1",
+ "domhandler": "^2.3.0",
+ "domutils": "^1.5.1",
+ "entities": "^1.1.1",
+ "inherits": "^2.0.1",
+ "readable-stream": "^3.1.1"
+ },
+ "dependencies": {
+ "readable-stream": {
+ "version": "3.6.0",
+ "requires": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ }
+ },
+ "safe-buffer": {
+ "version": "5.2.1"
+ },
+ "string_decoder": {
+ "version": "1.3.0",
+ "requires": {
+ "safe-buffer": "~5.2.0"
+ }
+ }
+ }
+ },
+ "http-cache-semantics": {
+ "version": "4.1.0"
+ },
+ "http-deceiver": {
+ "version": "1.2.7",
+ "dev": true
+ },
+ "http-errors": {
+ "version": "1.8.1",
+ "requires": {
+ "depd": "~1.1.2",
+ "inherits": "2.0.4",
+ "setprototypeof": "1.2.0",
+ "statuses": ">= 1.5.0 < 2",
+ "toidentifier": "1.0.1"
+ },
+ "dependencies": {
+ "depd": {
+ "version": "1.1.2"
+ }
+ }
+ },
+ "http-parser-js": {
+ "version": "0.5.6",
+ "dev": true
+ },
+ "http-proxy": {
+ "version": "1.18.1",
+ "dev": true,
+ "requires": {
+ "eventemitter3": "^4.0.0",
+ "follow-redirects": "^1.0.0",
+ "requires-port": "^1.0.0"
+ }
+ },
+ "http-proxy-agent": {
+ "version": "4.0.1",
+ "requires": {
+ "@tootallnate/once": "1",
+ "agent-base": "6",
+ "debug": "4"
+ },
+ "dependencies": {
+ "agent-base": {
+ "version": "6.0.2",
+ "requires": {
+ "debug": "4"
+ }
+ },
+ "debug": {
+ "version": "4.3.4",
+ "requires": {
+ "ms": "2.1.2"
+ }
+ },
+ "ms": {
+ "version": "2.1.2"
+ }
+ }
+ },
+ "http-proxy-middleware": {
+ "version": "0.19.1",
+ "dev": true,
+ "requires": {
+ "http-proxy": "^1.17.0",
+ "is-glob": "^4.0.0",
+ "lodash": "^4.17.11",
+ "micromatch": "^3.1.10"
+ },
+ "dependencies": {
+ "braces": {
+ "version": "2.3.2",
+ "dev": true,
+ "requires": {
+ "arr-flatten": "^1.1.0",
+ "array-unique": "^0.3.2",
+ "extend-shallow": "^2.0.1",
+ "fill-range": "^4.0.0",
+ "isobject": "^3.0.1",
+ "repeat-element": "^1.1.2",
+ "snapdragon": "^0.8.1",
+ "snapdragon-node": "^2.0.1",
+ "split-string": "^3.0.2",
+ "to-regex": "^3.0.1"
+ },
+ "dependencies": {
+ "extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "requires": {
+ "is-extendable": "^0.1.0"
+ }
+ }
+ }
+ },
+ "fill-range": {
+ "version": "4.0.0",
+ "dev": true,
+ "requires": {
+ "extend-shallow": "^2.0.1",
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1",
+ "to-regex-range": "^2.1.0"
+ },
+ "dependencies": {
+ "extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "requires": {
+ "is-extendable": "^0.1.0"
+ }
+ }
+ }
+ },
+ "is-number": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "kind-of": "^3.0.2"
+ },
+ "dependencies": {
+ "kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "requires": {
+ "is-buffer": "^1.1.5"
+ }
+ }
+ }
+ },
+ "micromatch": {
+ "version": "3.1.10",
+ "dev": true,
+ "requires": {
+ "arr-diff": "^4.0.0",
+ "array-unique": "^0.3.2",
+ "braces": "^2.3.1",
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "extglob": "^2.0.4",
+ "fragment-cache": "^0.2.1",
+ "kind-of": "^6.0.2",
+ "nanomatch": "^1.2.9",
+ "object.pick": "^1.3.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.2"
+ }
+ },
+ "to-regex-range": {
+ "version": "2.1.1",
+ "dev": true,
+ "requires": {
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1"
+ }
+ }
+ }
+ },
+ "http-signature": {
+ "version": "1.2.0",
+ "requires": {
+ "assert-plus": "^1.0.0",
+ "jsprim": "^1.2.2",
+ "sshpk": "^1.7.0"
+ }
+ },
+ "http-status": {
+ "version": "1.5.0"
+ },
+ "httpntlm": {
+ "version": "1.6.1",
+ "requires": {
+ "httpreq": ">=0.4.22",
+ "underscore": "~1.7.0"
+ }
+ },
+ "httpreq": {
+ "version": "0.5.2"
+ },
+ "https-browserify": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "https-proxy-agent": {
+ "version": "2.2.4",
+ "requires": {
+ "agent-base": "^4.3.0",
+ "debug": "^3.1.0"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "3.2.7",
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "ms": {
+ "version": "2.1.3"
+ }
+ }
+ },
+ "human-signals": {
+ "version": "1.1.1"
+ },
+ "i18n": {
+ "version": "0.8.6",
+ "requires": {
+ "debug": "*",
+ "make-plural": "^6.0.1",
+ "math-interval-parser": "^2.0.1",
+ "messageformat": "^2.3.0",
+ "mustache": "*",
+ "sprintf-js": "^1.1.2"
+ }
+ },
+ "iconv-lite": {
+ "version": "0.4.24",
+ "requires": {
+ "safer-buffer": ">= 2.1.2 < 3"
+ }
+ },
+ "icss-replace-symbols": {
+ "version": "1.1.0",
+ "dev": true
+ },
+ "icss-utils": {
+ "version": "4.1.1",
+ "dev": true,
+ "requires": {
+ "postcss": "^7.0.14"
+ }
+ },
+ "identity-obj-proxy": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "harmony-reflect": "^1.4.6"
+ }
+ },
+ "ieee754": {
+ "version": "1.1.13"
+ },
+ "iferr": {
+ "version": "0.1.5",
+ "dev": true
+ },
+ "ignore": {
+ "version": "4.0.6",
+ "dev": true
+ },
+ "ignore-by-default": {
+ "version": "1.0.1",
+ "dev": true
+ },
+ "image-type": {
+ "version": "4.1.0",
+ "requires": {
+ "file-type": "^10.10.0"
+ }
+ },
+ "imap": {
+ "version": "0.8.19",
+ "requires": {
+ "readable-stream": "1.1.x",
+ "utf7": ">=1.0.2"
+ }
+ },
+ "immediate": {
+ "version": "3.0.6"
+ },
+ "import-fresh": {
+ "version": "3.3.0",
+ "dev": true,
+ "requires": {
+ "parent-module": "^1.0.0",
+ "resolve-from": "^4.0.0"
+ },
+ "dependencies": {
+ "resolve-from": {
+ "version": "4.0.0",
+ "dev": true
+ }
+ }
+ },
+ "import-lazy": {
+ "version": "2.1.0",
+ "dev": true
+ },
+ "import-local": {
+ "version": "3.1.0",
+ "dev": true,
+ "requires": {
+ "pkg-dir": "^4.2.0",
+ "resolve-cwd": "^3.0.0"
+ }
+ },
+ "imurmurhash": {
+ "version": "0.1.4"
+ },
+ "in-publish": {
+ "version": "2.0.1",
+ "dev": true
+ },
+ "indent-string": {
+ "version": "2.1.0",
+ "dev": true,
+ "requires": {
+ "repeating": "^2.0.0"
+ }
+ },
+ "infer-owner": {
+ "version": "1.0.4",
+ "dev": true
+ },
+ "inflection": {
+ "version": "1.13.2"
+ },
+ "inflight": {
+ "version": "1.0.6",
+ "requires": {
+ "once": "^1.3.0",
+ "wrappy": "1"
+ }
+ },
+ "inherits": {
+ "version": "2.0.4"
+ },
+ "ini": {
+ "version": "1.3.8"
+ },
+ "internal-ip": {
+ "version": "4.3.0",
+ "dev": true,
+ "requires": {
+ "default-gateway": "^4.2.0",
+ "ipaddr.js": "^1.9.0"
+ }
+ },
+ "internal-slot": {
+ "version": "1.0.3",
+ "dev": true,
+ "requires": {
+ "get-intrinsic": "^1.1.0",
+ "has": "^1.0.3",
+ "side-channel": "^1.0.4"
+ }
+ },
+ "interpret": {
+ "version": "1.4.0",
+ "dev": true
+ },
+ "invert-kv": {
+ "version": "3.0.1"
+ },
+ "ip": {
+ "version": "1.1.5"
+ },
+ "ip-regex": {
+ "version": "2.1.0",
+ "dev": true
+ },
+ "ipaddr.js": {
+ "version": "1.9.1"
+ },
+ "is": {
+ "version": "3.3.0",
+ "dev": true
+ },
+ "is-absolute": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "is-relative": "^1.0.0",
+ "is-windows": "^1.0.1"
+ }
+ },
+ "is-absolute-url": {
+ "version": "3.0.3",
+ "dev": true
+ },
+ "is-accessor-descriptor": {
+ "version": "0.1.6",
+ "dev": true,
+ "requires": {
+ "kind-of": "^3.0.2"
+ },
+ "dependencies": {
+ "kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "requires": {
+ "is-buffer": "^1.1.5"
+ }
+ }
+ }
+ },
+ "is-arguments": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "call-bind": "^1.0.2",
+ "has-tostringtag": "^1.0.0"
+ }
+ },
+ "is-arrayish": {
+ "version": "0.3.2"
+ },
+ "is-bigint": {
+ "version": "1.0.4",
+ "dev": true,
+ "requires": {
+ "has-bigints": "^1.0.1"
+ }
+ },
+ "is-binary-path": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "binary-extensions": "^1.0.0"
+ }
+ },
+ "is-boolean-object": {
+ "version": "1.1.2",
+ "dev": true,
+ "requires": {
+ "call-bind": "^1.0.2",
+ "has-tostringtag": "^1.0.0"
+ }
+ },
+ "is-buffer": {
+ "version": "1.1.6"
+ },
+ "is-callable": {
+ "version": "1.2.4",
+ "dev": true
+ },
+ "is-ci": {
+ "version": "2.0.0",
+ "dev": true,
+ "requires": {
+ "ci-info": "^2.0.0"
+ }
+ },
+ "is-core-module": {
+ "version": "2.8.1",
+ "dev": true,
+ "requires": {
+ "has": "^1.0.3"
+ }
+ },
+ "is-data-descriptor": {
+ "version": "0.1.4",
+ "dev": true,
+ "requires": {
+ "kind-of": "^3.0.2"
+ },
+ "dependencies": {
+ "kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "requires": {
+ "is-buffer": "^1.1.5"
+ }
+ }
+ }
+ },
+ "is-date-object": {
+ "version": "1.0.5",
+ "dev": true,
+ "requires": {
+ "has-tostringtag": "^1.0.0"
+ }
+ },
+ "is-descriptor": {
+ "version": "0.1.6",
+ "dev": true,
+ "requires": {
+ "is-accessor-descriptor": "^0.1.6",
+ "is-data-descriptor": "^0.1.4",
+ "kind-of": "^5.0.0"
+ },
+ "dependencies": {
+ "kind-of": {
+ "version": "5.1.0",
+ "dev": true
+ }
+ }
+ },
+ "is-docker": {
+ "version": "2.2.1",
+ "dev": true,
+ "optional": true
+ },
+ "is-extendable": {
+ "version": "0.1.1",
+ "dev": true
+ },
+ "is-extglob": {
+ "version": "2.1.1",
+ "dev": true
+ },
+ "is-finite": {
+ "version": "1.1.0",
+ "dev": true
+ },
+ "is-fullwidth-code-point": {
+ "version": "1.0.0",
+ "requires": {
+ "number-is-nan": "^1.0.0"
+ }
+ },
+ "is-generator-fn": {
+ "version": "2.1.0",
+ "dev": true
+ },
+ "is-glob": {
+ "version": "4.0.3",
+ "dev": true,
+ "requires": {
+ "is-extglob": "^2.1.1"
+ }
+ },
+ "is-installed-globally": {
+ "version": "0.4.0",
+ "dev": true,
+ "requires": {
+ "global-dirs": "^3.0.0",
+ "is-path-inside": "^3.0.2"
+ },
+ "dependencies": {
+ "is-path-inside": {
+ "version": "3.0.3",
+ "dev": true
+ }
+ }
+ },
+ "is-negated-glob": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "is-negative-zero": {
+ "version": "2.0.2",
+ "dev": true
+ },
+ "is-npm": {
+ "version": "5.0.0",
+ "dev": true
+ },
+ "is-number": {
+ "version": "7.0.0",
+ "dev": true
+ },
+ "is-number-object": {
+ "version": "1.0.6",
+ "dev": true,
+ "requires": {
+ "has-tostringtag": "^1.0.0"
+ }
+ },
+ "is-obj": {
+ "version": "1.0.1"
+ },
+ "is-path-cwd": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "is-path-in-cwd": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "is-path-inside": "^1.0.0"
+ }
+ },
+ "is-path-inside": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "path-is-inside": "^1.0.1"
+ }
+ },
+ "is-plain-object": {
+ "version": "5.0.0"
+ },
+ "is-potential-custom-element-name": {
+ "version": "1.0.1"
+ },
+ "is-property": {
+ "version": "1.0.2",
+ "dev": true
+ },
+ "is-regex": {
+ "version": "1.1.4",
+ "dev": true,
+ "requires": {
+ "call-bind": "^1.0.2",
+ "has-tostringtag": "^1.0.0"
+ }
+ },
+ "is-relative": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "is-unc-path": "^1.0.0"
+ }
+ },
+ "is-shared-array-buffer": {
+ "version": "1.0.1",
+ "dev": true
+ },
+ "is-stream": {
+ "version": "2.0.1"
+ },
+ "is-stream-ended": {
+ "version": "0.1.4"
+ },
+ "is-string": {
+ "version": "1.0.7",
+ "dev": true,
+ "requires": {
+ "has-tostringtag": "^1.0.0"
+ }
+ },
+ "is-symbol": {
+ "version": "1.0.4",
+ "dev": true,
+ "requires": {
+ "has-symbols": "^1.0.2"
+ }
+ },
+ "is-typedarray": {
+ "version": "1.0.0"
+ },
+ "is-unc-path": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "unc-path-regex": "^0.1.2"
+ }
+ },
+ "is-utf8": {
+ "version": "0.2.1",
+ "dev": true
+ },
+ "is-valid-glob": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "is-weakref": {
+ "version": "1.0.2",
+ "dev": true,
+ "requires": {
+ "call-bind": "^1.0.2"
+ }
+ },
+ "is-windows": {
+ "version": "1.0.2",
+ "dev": true
+ },
+ "is-wsl": {
+ "version": "2.2.0",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "is-docker": "^2.0.0"
+ }
+ },
+ "is-yarn-global": {
+ "version": "0.3.0",
+ "dev": true
+ },
+ "isarray": {
+ "version": "0.0.1"
+ },
+ "isemail": {
+ "version": "3.2.0",
+ "requires": {
+ "punycode": "2.x.x"
+ }
+ },
+ "isexe": {
+ "version": "2.0.0"
+ },
+ "isobject": {
+ "version": "3.0.1"
+ },
+ "isstream": {
+ "version": "0.1.2"
+ },
+ "istanbul-lib-coverage": {
+ "version": "3.2.0",
+ "dev": true
+ },
+ "istanbul-lib-instrument": {
+ "version": "5.1.0",
+ "dev": true,
+ "requires": {
+ "@babel/core": "^7.12.3",
+ "@babel/parser": "^7.14.7",
+ "@istanbuljs/schema": "^0.1.2",
+ "istanbul-lib-coverage": "^3.2.0",
+ "semver": "^6.3.0"
+ },
+ "dependencies": {
+ "semver": {
+ "version": "6.3.0",
+ "dev": true
+ }
+ }
+ },
+ "istanbul-lib-report": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "istanbul-lib-coverage": "^3.0.0",
+ "make-dir": "^3.0.0",
+ "supports-color": "^7.1.0"
+ },
+ "dependencies": {
+ "make-dir": {
+ "version": "3.1.0",
+ "dev": true,
+ "requires": {
+ "semver": "^6.0.0"
+ }
+ },
+ "semver": {
+ "version": "6.3.0",
+ "dev": true
+ }
+ }
+ },
+ "istanbul-lib-source-maps": {
+ "version": "4.0.1",
+ "dev": true,
+ "requires": {
+ "debug": "^4.1.1",
+ "istanbul-lib-coverage": "^3.0.0",
+ "source-map": "^0.6.1"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "4.3.4",
+ "dev": true,
+ "requires": {
+ "ms": "2.1.2"
+ }
+ },
+ "ms": {
+ "version": "2.1.2",
+ "dev": true
+ },
+ "source-map": {
+ "version": "0.6.1",
+ "dev": true
+ }
+ }
+ },
+ "istanbul-reports": {
+ "version": "3.1.4",
+ "dev": true,
+ "requires": {
+ "html-escaper": "^2.0.0",
+ "istanbul-lib-report": "^3.0.0"
+ }
+ },
+ "jade": {
+ "version": "0.26.3",
+ "requires": {
+ "commander": "0.6.1",
+ "mkdirp": "0.3.0"
+ },
+ "dependencies": {
+ "commander": {
+ "version": "0.6.1"
+ },
+ "mkdirp": {
+ "version": "0.3.0"
+ }
+ }
+ },
+ "jake": {
+ "version": "10.8.4",
+ "requires": {
+ "async": "0.9.x",
+ "chalk": "^4.0.2",
+ "filelist": "^1.0.1",
+ "minimatch": "^3.0.4"
+ },
+ "dependencies": {
+ "async": {
+ "version": "0.9.2"
+ }
+ }
+ },
+ "jasmine": {
+ "version": "4.5.0",
+ "resolved": "https://registry.npmjs.org/jasmine/-/jasmine-4.5.0.tgz",
+ "integrity": "sha512-9olGRvNZyADIwYL9XBNBst5BTU/YaePzuddK+YRslc7rI9MdTIE4r3xaBKbv2GEmzYYUfMOdTR8/i6JfLZaxSQ==",
+ "dev": true,
+ "requires": {
+ "glob": "^7.1.6",
+ "jasmine-core": "^4.5.0"
+ }
+ },
+ "jasmine-core": {
+ "version": "4.5.0",
+ "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-4.5.0.tgz",
+ "integrity": "sha512-9PMzyvhtocxb3aXJVOPqBDswdgyAeSB81QnLop4npOpbqnheaTEwPc9ZloQeVswugPManznQBjD8kWDTjlnHuw==",
+ "dev": true
+ },
+ "jasmine-reporters": {
+ "version": "2.5.0",
+ "dev": true,
+ "requires": {
+ "@xmldom/xmldom": "^0.7.3",
+ "mkdirp": "^1.0.4"
+ },
+ "dependencies": {
+ "mkdirp": {
+ "version": "1.0.4",
+ "dev": true
+ }
+ }
+ },
+ "jasmine-spec-reporter": {
+ "version": "7.0.0",
+ "dev": true,
+ "requires": {
+ "colors": "1.4.0"
+ }
+ },
+ "jayson": {
+ "version": "2.1.2",
+ "requires": {
+ "@types/node": "^10.3.5",
+ "commander": "^2.12.2",
+ "es6-promisify": "^5.0.0",
+ "eyes": "^0.1.8",
+ "json-stringify-safe": "^5.0.1",
+ "JSONStream": "^1.3.1",
+ "lodash": "^4.17.11",
+ "uuid": "^3.2.1"
+ },
+ "dependencies": {
+ "@types/node": {
+ "version": "10.17.60"
+ }
+ }
+ },
+ "jest": {
+ "version": "26.6.3",
+ "dev": true,
+ "requires": {
+ "@jest/core": "^26.6.3",
+ "import-local": "^3.0.2",
+ "jest-cli": "^26.6.3"
+ },
+ "dependencies": {
+ "jest-cli": {
+ "version": "26.6.3",
+ "dev": true,
+ "requires": {
+ "@jest/core": "^26.6.3",
+ "@jest/test-result": "^26.6.2",
+ "@jest/types": "^26.6.2",
+ "chalk": "^4.0.0",
+ "exit": "^0.1.2",
+ "graceful-fs": "^4.2.4",
+ "import-local": "^3.0.2",
+ "is-ci": "^2.0.0",
+ "jest-config": "^26.6.3",
+ "jest-util": "^26.6.2",
+ "jest-validate": "^26.6.2",
+ "prompts": "^2.0.1",
+ "yargs": "^15.4.1"
+ }
+ }
+ }
+ },
+ "jest-changed-files": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "@jest/types": "^26.6.2",
+ "execa": "^4.0.0",
+ "throat": "^5.0.0"
+ }
+ },
+ "jest-config": {
+ "version": "26.6.3",
+ "dev": true,
+ "requires": {
+ "@babel/core": "^7.1.0",
+ "@jest/test-sequencer": "^26.6.3",
+ "@jest/types": "^26.6.2",
+ "babel-jest": "^26.6.3",
+ "chalk": "^4.0.0",
+ "deepmerge": "^4.2.2",
+ "glob": "^7.1.1",
+ "graceful-fs": "^4.2.4",
+ "jest-environment-jsdom": "^26.6.2",
+ "jest-environment-node": "^26.6.2",
+ "jest-get-type": "^26.3.0",
+ "jest-jasmine2": "^26.6.3",
+ "jest-regex-util": "^26.0.0",
+ "jest-resolve": "^26.6.2",
+ "jest-util": "^26.6.2",
+ "jest-validate": "^26.6.2",
+ "micromatch": "^4.0.2",
+ "pretty-format": "^26.6.2"
+ }
+ },
+ "jest-diff": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "chalk": "^4.0.0",
+ "diff-sequences": "^26.6.2",
+ "jest-get-type": "^26.3.0",
+ "pretty-format": "^26.6.2"
+ }
+ },
+ "jest-docblock": {
+ "version": "26.0.0",
+ "dev": true,
+ "requires": {
+ "detect-newline": "^3.0.0"
+ }
+ },
+ "jest-each": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "@jest/types": "^26.6.2",
+ "chalk": "^4.0.0",
+ "jest-get-type": "^26.3.0",
+ "jest-util": "^26.6.2",
+ "pretty-format": "^26.6.2"
+ }
+ },
+ "jest-environment-jsdom": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "@jest/environment": "^26.6.2",
+ "@jest/fake-timers": "^26.6.2",
+ "@jest/types": "^26.6.2",
+ "@types/node": "*",
+ "jest-mock": "^26.6.2",
+ "jest-util": "^26.6.2",
+ "jsdom": "^16.4.0"
+ }
+ },
+ "jest-environment-node": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "@jest/environment": "^26.6.2",
+ "@jest/fake-timers": "^26.6.2",
+ "@jest/types": "^26.6.2",
+ "@types/node": "*",
+ "jest-mock": "^26.6.2",
+ "jest-util": "^26.6.2"
+ }
+ },
+ "jest-get-type": {
+ "version": "26.3.0",
+ "dev": true
+ },
+ "jest-haste-map": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "@jest/types": "^26.6.2",
+ "@types/graceful-fs": "^4.1.2",
+ "@types/node": "*",
+ "anymatch": "^3.0.3",
+ "fb-watchman": "^2.0.0",
+ "fsevents": "^2.1.2",
+ "graceful-fs": "^4.2.4",
+ "jest-regex-util": "^26.0.0",
+ "jest-serializer": "^26.6.2",
+ "jest-util": "^26.6.2",
+ "jest-worker": "^26.6.2",
+ "micromatch": "^4.0.2",
+ "sane": "^4.0.3",
+ "walker": "^1.0.7"
+ }
+ },
+ "jest-jasmine2": {
+ "version": "26.6.3",
+ "dev": true,
+ "requires": {
+ "@babel/traverse": "^7.1.0",
+ "@jest/environment": "^26.6.2",
+ "@jest/source-map": "^26.6.2",
+ "@jest/test-result": "^26.6.2",
+ "@jest/types": "^26.6.2",
+ "@types/node": "*",
+ "chalk": "^4.0.0",
+ "co": "^4.6.0",
+ "expect": "^26.6.2",
+ "is-generator-fn": "^2.0.0",
+ "jest-each": "^26.6.2",
+ "jest-matcher-utils": "^26.6.2",
+ "jest-message-util": "^26.6.2",
+ "jest-runtime": "^26.6.3",
+ "jest-snapshot": "^26.6.2",
+ "jest-util": "^26.6.2",
+ "pretty-format": "^26.6.2",
+ "throat": "^5.0.0"
+ }
+ },
+ "jest-junit": {
+ "version": "8.0.0",
+ "dev": true,
+ "requires": {
+ "jest-validate": "^24.0.0",
+ "mkdirp": "^0.5.1",
+ "strip-ansi": "^4.0.0",
+ "xml": "^1.0.1"
+ },
+ "dependencies": {
+ "@jest/types": {
+ "version": "24.9.0",
+ "dev": true,
+ "requires": {
+ "@types/istanbul-lib-coverage": "^2.0.0",
+ "@types/istanbul-reports": "^1.1.1",
+ "@types/yargs": "^13.0.0"
+ }
+ },
+ "@types/istanbul-reports": {
+ "version": "1.1.2",
+ "dev": true,
+ "requires": {
+ "@types/istanbul-lib-coverage": "*",
+ "@types/istanbul-lib-report": "*"
+ }
+ },
+ "@types/yargs": {
+ "version": "13.0.12",
+ "dev": true,
+ "requires": {
+ "@types/yargs-parser": "*"
+ }
+ },
+ "ansi-regex": {
+ "version": "4.1.1",
+ "dev": true
+ },
+ "ansi-styles": {
+ "version": "3.2.1",
+ "dev": true,
+ "requires": {
+ "color-convert": "^1.9.0"
+ }
+ },
+ "chalk": {
+ "version": "2.4.2",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^3.2.1",
+ "escape-string-regexp": "^1.0.5",
+ "supports-color": "^5.3.0"
+ }
+ },
+ "color-convert": {
+ "version": "1.9.3",
+ "dev": true,
+ "requires": {
+ "color-name": "1.1.3"
+ }
+ },
+ "color-name": {
+ "version": "1.1.3",
+ "dev": true
+ },
+ "escape-string-regexp": {
+ "version": "1.0.5",
+ "dev": true
+ },
+ "has-flag": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "jest-get-type": {
+ "version": "24.9.0",
+ "dev": true
+ },
+ "jest-validate": {
+ "version": "24.9.0",
+ "dev": true,
+ "requires": {
+ "@jest/types": "^24.9.0",
+ "camelcase": "^5.3.1",
+ "chalk": "^2.0.1",
+ "jest-get-type": "^24.9.0",
+ "leven": "^3.1.0",
+ "pretty-format": "^24.9.0"
+ }
+ },
+ "pretty-format": {
+ "version": "24.9.0",
+ "dev": true,
+ "requires": {
+ "@jest/types": "^24.9.0",
+ "ansi-regex": "^4.0.0",
+ "ansi-styles": "^3.2.0",
+ "react-is": "^16.8.4"
+ }
+ },
+ "react-is": {
+ "version": "16.13.1",
+ "dev": true
+ },
+ "strip-ansi": {
+ "version": "4.0.0",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^3.0.0"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "3.0.1",
+ "dev": true
+ }
+ }
+ },
+ "supports-color": {
+ "version": "5.5.0",
+ "dev": true,
+ "requires": {
+ "has-flag": "^3.0.0"
+ }
+ }
+ }
+ },
+ "jest-leak-detector": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "jest-get-type": "^26.3.0",
+ "pretty-format": "^26.6.2"
+ }
+ },
+ "jest-matcher-utils": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "chalk": "^4.0.0",
+ "jest-diff": "^26.6.2",
+ "jest-get-type": "^26.3.0",
+ "pretty-format": "^26.6.2"
+ }
+ },
+ "jest-message-util": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.0.0",
+ "@jest/types": "^26.6.2",
+ "@types/stack-utils": "^2.0.0",
+ "chalk": "^4.0.0",
+ "graceful-fs": "^4.2.4",
+ "micromatch": "^4.0.2",
+ "pretty-format": "^26.6.2",
+ "slash": "^3.0.0",
+ "stack-utils": "^2.0.2"
+ }
+ },
+ "jest-mock": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "@jest/types": "^26.6.2",
+ "@types/node": "*"
+ }
+ },
+ "jest-pnp-resolver": {
+ "version": "1.2.2",
+ "dev": true,
+ "requires": {}
+ },
+ "jest-regex-util": {
+ "version": "26.0.0",
+ "dev": true
+ },
+ "jest-resolve": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "@jest/types": "^26.6.2",
+ "chalk": "^4.0.0",
+ "graceful-fs": "^4.2.4",
+ "jest-pnp-resolver": "^1.2.2",
+ "jest-util": "^26.6.2",
+ "read-pkg-up": "^7.0.1",
+ "resolve": "^1.18.1",
+ "slash": "^3.0.0"
+ },
+ "dependencies": {
+ "parse-json": {
+ "version": "5.2.0",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.0.0",
+ "error-ex": "^1.3.1",
+ "json-parse-even-better-errors": "^2.3.0",
+ "lines-and-columns": "^1.1.6"
+ }
+ },
+ "read-pkg": {
+ "version": "5.2.0",
+ "dev": true,
+ "requires": {
+ "@types/normalize-package-data": "^2.4.0",
+ "normalize-package-data": "^2.5.0",
+ "parse-json": "^5.0.0",
+ "type-fest": "^0.6.0"
+ },
+ "dependencies": {
+ "type-fest": {
+ "version": "0.6.0",
+ "dev": true
+ }
+ }
+ },
+ "read-pkg-up": {
+ "version": "7.0.1",
+ "dev": true,
+ "requires": {
+ "find-up": "^4.1.0",
+ "read-pkg": "^5.2.0",
+ "type-fest": "^0.8.1"
+ }
+ },
+ "type-fest": {
+ "version": "0.8.1",
+ "dev": true
+ }
+ }
+ },
+ "jest-resolve-dependencies": {
+ "version": "26.6.3",
+ "dev": true,
+ "requires": {
+ "@jest/types": "^26.6.2",
+ "jest-regex-util": "^26.0.0",
+ "jest-snapshot": "^26.6.2"
+ }
+ },
+ "jest-runner": {
+ "version": "26.6.3",
+ "dev": true,
+ "requires": {
+ "@jest/console": "^26.6.2",
+ "@jest/environment": "^26.6.2",
+ "@jest/test-result": "^26.6.2",
+ "@jest/types": "^26.6.2",
+ "@types/node": "*",
+ "chalk": "^4.0.0",
+ "emittery": "^0.7.1",
+ "exit": "^0.1.2",
+ "graceful-fs": "^4.2.4",
+ "jest-config": "^26.6.3",
+ "jest-docblock": "^26.0.0",
+ "jest-haste-map": "^26.6.2",
+ "jest-leak-detector": "^26.6.2",
+ "jest-message-util": "^26.6.2",
+ "jest-resolve": "^26.6.2",
+ "jest-runtime": "^26.6.3",
+ "jest-util": "^26.6.2",
+ "jest-worker": "^26.6.2",
+ "source-map-support": "^0.5.6",
+ "throat": "^5.0.0"
+ }
+ },
+ "jest-runtime": {
+ "version": "26.6.3",
+ "dev": true,
+ "requires": {
+ "@jest/console": "^26.6.2",
+ "@jest/environment": "^26.6.2",
+ "@jest/fake-timers": "^26.6.2",
+ "@jest/globals": "^26.6.2",
+ "@jest/source-map": "^26.6.2",
+ "@jest/test-result": "^26.6.2",
+ "@jest/transform": "^26.6.2",
+ "@jest/types": "^26.6.2",
+ "@types/yargs": "^15.0.0",
+ "chalk": "^4.0.0",
+ "cjs-module-lexer": "^0.6.0",
+ "collect-v8-coverage": "^1.0.0",
+ "exit": "^0.1.2",
+ "glob": "^7.1.3",
+ "graceful-fs": "^4.2.4",
+ "jest-config": "^26.6.3",
+ "jest-haste-map": "^26.6.2",
+ "jest-message-util": "^26.6.2",
+ "jest-mock": "^26.6.2",
+ "jest-regex-util": "^26.0.0",
+ "jest-resolve": "^26.6.2",
+ "jest-snapshot": "^26.6.2",
+ "jest-util": "^26.6.2",
+ "jest-validate": "^26.6.2",
+ "slash": "^3.0.0",
+ "strip-bom": "^4.0.0",
+ "yargs": "^15.4.1"
+ },
+ "dependencies": {
+ "strip-bom": {
+ "version": "4.0.0",
+ "dev": true
+ }
+ }
+ },
+ "jest-serializer": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "@types/node": "*",
+ "graceful-fs": "^4.2.4"
+ }
+ },
+ "jest-snapshot": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "@babel/types": "^7.0.0",
+ "@jest/types": "^26.6.2",
+ "@types/babel__traverse": "^7.0.4",
+ "@types/prettier": "^2.0.0",
+ "chalk": "^4.0.0",
+ "expect": "^26.6.2",
+ "graceful-fs": "^4.2.4",
+ "jest-diff": "^26.6.2",
+ "jest-get-type": "^26.3.0",
+ "jest-haste-map": "^26.6.2",
+ "jest-matcher-utils": "^26.6.2",
+ "jest-message-util": "^26.6.2",
+ "jest-resolve": "^26.6.2",
+ "natural-compare": "^1.4.0",
+ "pretty-format": "^26.6.2",
+ "semver": "^7.3.2"
+ },
+ "dependencies": {
+ "lru-cache": {
+ "version": "6.0.0",
+ "dev": true,
+ "requires": {
+ "yallist": "^4.0.0"
+ }
+ },
+ "semver": {
+ "version": "7.3.5",
+ "dev": true,
+ "requires": {
+ "lru-cache": "^6.0.0"
+ }
+ },
+ "yallist": {
+ "version": "4.0.0",
+ "dev": true
+ }
+ }
+ },
+ "jest-util": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "@jest/types": "^26.6.2",
+ "@types/node": "*",
+ "chalk": "^4.0.0",
+ "graceful-fs": "^4.2.4",
+ "is-ci": "^2.0.0",
+ "micromatch": "^4.0.2"
+ }
+ },
+ "jest-validate": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "@jest/types": "^26.6.2",
+ "camelcase": "^6.0.0",
+ "chalk": "^4.0.0",
+ "jest-get-type": "^26.3.0",
+ "leven": "^3.1.0",
+ "pretty-format": "^26.6.2"
+ },
+ "dependencies": {
+ "camelcase": {
+ "version": "6.3.0",
+ "dev": true
+ }
+ }
+ },
+ "jest-watcher": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "@jest/test-result": "^26.6.2",
+ "@jest/types": "^26.6.2",
+ "@types/node": "*",
+ "ansi-escapes": "^4.2.1",
+ "chalk": "^4.0.0",
+ "jest-util": "^26.6.2",
+ "string-length": "^4.0.1"
+ }
+ },
+ "jest-worker": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "@types/node": "*",
+ "merge-stream": "^2.0.0",
+ "supports-color": "^7.0.0"
+ },
+ "dependencies": {
+ "merge-stream": {
+ "version": "2.0.0",
+ "dev": true
+ }
+ }
+ },
+ "jmespath": {
+ "version": "0.16.0"
+ },
+ "js-base64": {
+ "version": "2.6.4",
+ "dev": true
+ },
+ "js-tokens": {
+ "version": "4.0.0",
+ "dev": true
+ },
+ "js-yaml": {
+ "version": "4.1.0",
+ "requires": {
+ "argparse": "^2.0.1"
+ },
+ "dependencies": {
+ "argparse": {
+ "version": "2.0.1"
+ }
+ }
+ },
+ "js2xmlparser": {
+ "version": "3.0.0",
+ "requires": {
+ "xmlcreate": "^1.0.1"
+ }
+ },
+ "jsbarcode": {
+ "version": "3.11.5",
+ "resolved": "https://registry.npmjs.org/jsbarcode/-/jsbarcode-3.11.5.tgz",
+ "integrity": "sha512-zv3KsH51zD00I/LrFzFSM6dst7rDn0vIMzaiZFL7qusTjPZiPtxg3zxetp0RR7obmjTw4f6NyGgbdkBCgZUIrA=="
+ },
+ "jsbn": {
+ "version": "0.1.1"
+ },
+ "jsdom": {
+ "version": "16.7.0",
+ "requires": {
+ "abab": "^2.0.5",
+ "acorn": "^8.2.4",
+ "acorn-globals": "^6.0.0",
+ "cssom": "^0.4.4",
+ "cssstyle": "^2.3.0",
+ "data-urls": "^2.0.0",
+ "decimal.js": "^10.2.1",
+ "domexception": "^2.0.1",
+ "escodegen": "^2.0.0",
+ "form-data": "^3.0.0",
+ "html-encoding-sniffer": "^2.0.1",
+ "http-proxy-agent": "^4.0.1",
+ "https-proxy-agent": "^5.0.0",
+ "is-potential-custom-element-name": "^1.0.1",
+ "nwsapi": "^2.2.0",
+ "parse5": "6.0.1",
+ "saxes": "^5.0.1",
+ "symbol-tree": "^3.2.4",
+ "tough-cookie": "^4.0.0",
+ "w3c-hr-time": "^1.0.2",
+ "w3c-xmlserializer": "^2.0.0",
+ "webidl-conversions": "^6.1.0",
+ "whatwg-encoding": "^1.0.5",
+ "whatwg-mimetype": "^2.3.0",
+ "whatwg-url": "^8.5.0",
+ "ws": "^7.4.6",
+ "xml-name-validator": "^3.0.0"
+ },
+ "dependencies": {
+ "acorn": {
+ "version": "8.7.0"
+ },
+ "agent-base": {
+ "version": "6.0.2",
+ "requires": {
+ "debug": "4"
+ }
+ },
+ "debug": {
+ "version": "4.3.4",
+ "requires": {
+ "ms": "2.1.2"
+ }
+ },
+ "form-data": {
+ "version": "3.0.1",
+ "requires": {
+ "asynckit": "^0.4.0",
+ "combined-stream": "^1.0.8",
+ "mime-types": "^2.1.12"
+ }
+ },
+ "https-proxy-agent": {
+ "version": "5.0.0",
+ "requires": {
+ "agent-base": "6",
+ "debug": "4"
+ }
+ },
+ "ms": {
+ "version": "2.1.2"
+ },
+ "tough-cookie": {
+ "version": "4.0.0",
+ "requires": {
+ "psl": "^1.1.33",
+ "punycode": "^2.1.1",
+ "universalify": "^0.1.2"
+ }
+ },
+ "tr46": {
+ "version": "2.1.0",
+ "requires": {
+ "punycode": "^2.1.1"
+ }
+ },
+ "webidl-conversions": {
+ "version": "6.1.0"
+ },
+ "whatwg-url": {
+ "version": "8.7.0",
+ "requires": {
+ "lodash": "^4.7.0",
+ "tr46": "^2.1.0",
+ "webidl-conversions": "^6.1.0"
+ }
+ }
+ }
+ },
+ "jsesc": {
+ "version": "2.5.2",
+ "dev": true
+ },
+ "json-bigint": {
+ "version": "0.3.1",
+ "requires": {
+ "bignumber.js": "^9.0.0"
+ }
+ },
+ "json-buffer": {
+ "version": "3.0.1"
+ },
+ "json-loader": {
+ "version": "0.5.7",
+ "dev": true
+ },
+ "json-parse-better-errors": {
+ "version": "1.0.2",
+ "dev": true
+ },
+ "json-parse-even-better-errors": {
+ "version": "2.3.1",
+ "dev": true
+ },
+ "json-schema": {
+ "version": "0.4.0"
+ },
+ "json-schema-traverse": {
+ "version": "0.4.1"
+ },
+ "json-stable-stringify-without-jsonify": {
+ "version": "1.0.1",
+ "dev": true
+ },
+ "json-stringify-safe": {
+ "version": "5.0.1"
+ },
+ "json5": {
+ "version": "2.2.1",
+ "dev": true
+ },
+ "jsonfile": {
+ "version": "4.0.0",
+ "requires": {
+ "graceful-fs": "^4.1.6"
+ }
+ },
+ "jsonparse": {
+ "version": "1.3.1"
+ },
+ "JSONStream": {
+ "version": "1.3.5",
+ "requires": {
+ "jsonparse": "^1.2.0",
+ "through": ">=2.2.7 <3"
+ }
+ },
+ "jsprim": {
+ "version": "1.4.2",
+ "requires": {
+ "assert-plus": "1.0.0",
+ "extsprintf": "1.3.0",
+ "json-schema": "0.4.0",
+ "verror": "1.10.0"
+ },
+ "dependencies": {
+ "core-util-is": {
+ "version": "1.0.2"
+ },
+ "extsprintf": {
+ "version": "1.3.0"
+ },
+ "verror": {
+ "version": "1.10.0",
+ "requires": {
+ "assert-plus": "^1.0.0",
+ "core-util-is": "1.0.2",
+ "extsprintf": "^1.2.0"
+ }
+ }
+ }
+ },
+ "jszip": {
+ "version": "3.10.0",
+ "requires": {
+ "lie": "~3.3.0",
+ "pako": "~1.0.2",
+ "readable-stream": "~2.3.6",
+ "setimmediate": "^1.0.5"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0"
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ }
+ }
+ },
+ "just-debounce": {
+ "version": "1.1.0",
+ "dev": true
+ },
+ "jwa": {
+ "version": "1.4.1",
+ "requires": {
+ "buffer-equal-constant-time": "1.0.1",
+ "ecdsa-sig-formatter": "1.0.11",
+ "safe-buffer": "^5.0.1"
+ }
+ },
+ "jws": {
+ "version": "3.2.2",
+ "requires": {
+ "jwa": "^1.4.1",
+ "safe-buffer": "^5.0.1"
+ }
+ },
+ "keyv": {
+ "version": "4.1.1",
+ "requires": {
+ "json-buffer": "3.0.1"
+ }
+ },
+ "killable": {
+ "version": "1.0.1",
+ "dev": true
+ },
+ "kind-of": {
+ "version": "6.0.3",
+ "dev": true
+ },
+ "kleur": {
+ "version": "3.0.3",
+ "dev": true
+ },
+ "last-run": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "default-resolution": "^2.0.0",
+ "es6-weak-map": "^2.0.1"
+ }
+ },
+ "latest-version": {
+ "version": "5.1.0",
+ "dev": true,
+ "requires": {
+ "package-json": "^6.3.0"
+ }
+ },
+ "lazystream": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "readable-stream": "^2.0.5"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ }
+ }
+ },
+ "lcid": {
+ "version": "3.1.1",
+ "requires": {
+ "invert-kv": "^3.0.0"
+ }
+ },
+ "ldap-filter": {
+ "version": "0.3.3",
+ "requires": {
+ "assert-plus": "^1.0.0"
+ }
+ },
+ "ldapjs": {
+ "version": "2.3.2",
+ "requires": {
+ "abstract-logging": "^2.0.0",
+ "asn1": "^0.2.4",
+ "assert-plus": "^1.0.0",
+ "backoff": "^2.5.0",
+ "ldap-filter": "^0.3.3",
+ "once": "^1.4.0",
+ "vasync": "^2.2.0",
+ "verror": "^1.8.1"
+ }
+ },
+ "lead": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "flush-write-stream": "^1.0.2"
+ }
+ },
+ "leven": {
+ "version": "3.1.0",
+ "dev": true
+ },
+ "levn": {
+ "version": "0.4.1",
+ "dev": true,
+ "requires": {
+ "prelude-ls": "^1.2.1",
+ "type-check": "~0.4.0"
+ }
+ },
+ "libbase64": {
+ "version": "1.2.1"
+ },
+ "libmime": {
+ "version": "5.0.0",
+ "requires": {
+ "encoding-japanese": "1.0.30",
+ "iconv-lite": "0.6.2",
+ "libbase64": "1.2.1",
+ "libqp": "1.1.0"
+ },
+ "dependencies": {
+ "iconv-lite": {
+ "version": "0.6.2",
+ "requires": {
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
+ }
+ }
+ }
+ },
+ "liboneandone": {
+ "version": "1.2.0",
+ "requires": {
+ "mocha": "^2.5.3",
+ "request": "^2.74.0"
+ }
+ },
+ "libqp": {
+ "version": "1.1.0"
+ },
+ "lie": {
+ "version": "3.3.0",
+ "requires": {
+ "immediate": "~3.0.5"
+ }
+ },
+ "liftoff": {
+ "version": "3.1.0",
+ "dev": true,
+ "requires": {
+ "extend": "^3.0.0",
+ "findup-sync": "^3.0.0",
+ "fined": "^1.0.1",
+ "flagged-respawn": "^1.0.0",
+ "is-plain-object": "^2.0.4",
+ "object.map": "^1.0.0",
+ "rechoir": "^0.6.2",
+ "resolve": "^1.1.7"
+ },
+ "dependencies": {
+ "is-plain-object": {
+ "version": "2.0.4",
+ "dev": true,
+ "requires": {
+ "isobject": "^3.0.1"
+ }
+ }
+ }
+ },
+ "lines-and-columns": {
+ "version": "1.2.4",
+ "dev": true
+ },
+ "linkify-it": {
+ "version": "3.0.2",
+ "requires": {
+ "uc.micro": "^1.0.1"
+ }
+ },
+ "load-json-file": {
+ "version": "1.1.0",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "^4.1.2",
+ "parse-json": "^2.2.0",
+ "pify": "^2.0.0",
+ "pinkie-promise": "^2.0.0",
+ "strip-bom": "^2.0.0"
+ },
+ "dependencies": {
+ "pify": {
+ "version": "2.3.0",
+ "dev": true
+ },
+ "strip-bom": {
+ "version": "2.0.0",
+ "dev": true,
+ "requires": {
+ "is-utf8": "^0.2.0"
+ }
+ }
+ }
+ },
+ "loader-runner": {
+ "version": "2.4.0",
+ "dev": true
+ },
+ "loader-utils": {
+ "version": "2.0.2",
+ "dev": true,
+ "requires": {
+ "big.js": "^5.2.2",
+ "emojis-list": "^3.0.0",
+ "json5": "^2.1.2"
+ }
+ },
+ "locate-path": {
+ "version": "5.0.0",
+ "dev": true,
+ "requires": {
+ "p-locate": "^4.1.0"
+ }
+ },
+ "lodash": {
+ "version": "4.17.21"
+ },
+ "lodash._basecopy": {
+ "version": "3.0.1",
+ "dev": true
+ },
+ "lodash._basetostring": {
+ "version": "3.0.1",
+ "dev": true
+ },
+ "lodash._basevalues": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "lodash._getnative": {
+ "version": "3.9.1",
+ "dev": true
+ },
+ "lodash._isiterateecall": {
+ "version": "3.0.9",
+ "dev": true
+ },
+ "lodash._reescape": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "lodash._reevaluate": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "lodash._reinterpolate": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "lodash._root": {
+ "version": "3.0.1",
+ "dev": true
+ },
+ "lodash.debounce": {
+ "version": "4.0.8",
+ "dev": true
+ },
+ "lodash.escape": {
+ "version": "3.2.0",
+ "dev": true,
+ "requires": {
+ "lodash._root": "^3.0.0"
+ }
+ },
+ "lodash.groupby": {
+ "version": "4.6.0",
+ "dev": true
+ },
+ "lodash.isarguments": {
+ "version": "3.1.0",
+ "dev": true
+ },
+ "lodash.isarray": {
+ "version": "3.0.4",
+ "dev": true
+ },
+ "lodash.keys": {
+ "version": "3.1.2",
+ "dev": true,
+ "requires": {
+ "lodash._getnative": "^3.0.0",
+ "lodash.isarguments": "^3.0.0",
+ "lodash.isarray": "^3.0.0"
+ }
+ },
+ "lodash.merge": {
+ "version": "4.6.2",
+ "dev": true
+ },
+ "lodash.mergewith": {
+ "version": "4.6.2",
+ "dev": true
+ },
+ "lodash.restparam": {
+ "version": "3.6.1",
+ "dev": true
+ },
+ "lodash.truncate": {
+ "version": "4.4.2",
+ "dev": true
+ },
+ "log4js": {
+ "version": "6.7.0",
+ "requires": {
+ "date-format": "^4.0.14",
+ "debug": "^4.3.4",
+ "flatted": "^3.2.7",
+ "rfdc": "^1.3.0",
+ "streamroller": "^3.1.3"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "4.3.4",
+ "requires": {
+ "ms": "2.1.2"
+ }
+ },
+ "ms": {
+ "version": "2.1.2"
+ }
+ }
+ },
+ "loglevel": {
+ "version": "1.8.0",
+ "dev": true
+ },
+ "long": {
+ "version": "4.0.0",
+ "dev": true
+ },
+ "loopback": {
+ "version": "3.28.0",
+ "requires": {
+ "async": "^2.0.1",
+ "bcryptjs": "^2.1.0",
+ "bluebird": "^3.1.1",
+ "body-parser": "^1.12.0",
+ "canonical-json": "0.0.4",
+ "debug": "^2.1.2",
+ "depd": "^1.0.0",
+ "ejs": "^2.3.1",
+ "express": "^4.14.0",
+ "inflection": "^1.6.0",
+ "isemail": "^3.2.0",
+ "loopback-connector-remote": "^3.0.0",
+ "loopback-datasource-juggler": "^3.28.0",
+ "loopback-filters": "^1.0.0",
+ "loopback-phase": "^3.0.0",
+ "nodemailer": "^6.4.16",
+ "nodemailer-direct-transport": "^3.3.2",
+ "nodemailer-stub-transport": "^1.1.0",
+ "serve-favicon": "^2.2.0",
+ "stable": "^0.1.5",
+ "strong-globalize": "^4.1.1",
+ "strong-remoting": "^3.11.0",
+ "uid2": "0.0.3",
+ "underscore.string": "^3.3.5"
+ },
+ "dependencies": {
+ "depd": {
+ "version": "1.1.2"
+ }
+ }
+ },
+ "loopback-boot": {
+ "version": "3.3.1",
+ "requires": {
+ "async": "^2.4.0",
+ "bluebird": "^3.5.3",
+ "commondir": "^1.0.1",
+ "debug": "^4.1.1",
+ "lodash": "^4.17.11",
+ "semver": "^5.1.0",
+ "strong-globalize": "^4.1.1",
+ "toposort": "^2.0.2"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "4.3.4",
+ "requires": {
+ "ms": "2.1.2"
+ }
+ },
+ "ms": {
+ "version": "2.1.2"
+ }
+ }
+ },
+ "loopback-component-explorer": {
+ "version": "6.5.1",
+ "requires": {
+ "debug": "^3.1.0",
+ "lodash": "^4.17.11",
+ "loopback-swagger": "^5.0.0",
+ "strong-globalize": "^4.1.1",
+ "swagger-ui": "^2.2.5"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "3.2.7",
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "ms": {
+ "version": "2.1.3"
+ }
+ }
+ },
+ "loopback-component-storage": {
+ "version": "3.6.1",
+ "requires": {
+ "async": "^2.6.1",
+ "debug": "^3.1.0",
+ "formidable": "^1.2.1",
+ "pkgcloud": "^2.0.0",
+ "strong-globalize": "^4.1.1",
+ "uuid": "^3.2.1"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "3.2.7",
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "ms": {
+ "version": "2.1.3"
+ }
+ }
+ },
+ "loopback-connector": {
+ "version": "4.11.1",
+ "requires": {
+ "async": "^3.2.0",
+ "bluebird": "^3.7.2",
+ "debug": "^4.1.1",
+ "msgpack5": "^4.2.0",
+ "strong-globalize": "^5.1.0",
+ "uuid": "^7.0.3"
+ },
+ "dependencies": {
+ "async": {
+ "version": "3.2.3"
+ },
+ "debug": {
+ "version": "4.3.4",
+ "requires": {
+ "ms": "2.1.2"
+ }
+ },
+ "ms": {
+ "version": "2.1.2"
+ },
+ "strong-globalize": {
+ "version": "5.1.0",
+ "requires": {
+ "accept-language": "^3.0.18",
+ "debug": "^4.1.1",
+ "globalize": "^1.5.0",
+ "lodash": "^4.17.15",
+ "md5": "^2.2.1",
+ "mkdirp": "^0.5.5",
+ "os-locale": "^5.0.0",
+ "yamljs": "^0.3.0"
+ }
+ },
+ "uuid": {
+ "version": "7.0.3"
+ }
+ }
+ },
+ "loopback-connector-mysql": {
+ "version": "5.4.4",
+ "requires": {
+ "async": "^2.6.1",
+ "debug": "^3.1.0",
+ "lodash": "^4.17.11",
+ "loopback-connector": "^4.0.0",
+ "mysql": "^2.11.1",
+ "strong-globalize": "^5.0.5"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "3.2.7",
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "ms": {
+ "version": "2.1.3"
+ },
+ "strong-globalize": {
+ "version": "5.1.0",
+ "requires": {
+ "accept-language": "^3.0.18",
+ "debug": "^4.1.1",
+ "globalize": "^1.5.0",
+ "lodash": "^4.17.15",
+ "md5": "^2.2.1",
+ "mkdirp": "^0.5.5",
+ "os-locale": "^5.0.0",
+ "yamljs": "^0.3.0"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "4.3.4",
+ "requires": {
+ "ms": "2.1.2"
+ }
+ },
+ "ms": {
+ "version": "2.1.2"
+ }
+ }
+ }
+ }
+ },
+ "loopback-connector-remote": {
+ "version": "3.4.1",
+ "requires": {
+ "loopback-datasource-juggler": "^3.0.0",
+ "strong-remoting": "^3.0.0"
+ }
+ },
+ "loopback-context": {
+ "version": "3.5.2",
+ "requires": {
+ "cls-hooked": "^4.2.0"
+ }
+ },
+ "loopback-datasource-juggler": {
+ "version": "3.36.1",
+ "requires": {
+ "async": "^2.6.0",
+ "bluebird": "^3.1.1",
+ "debug": "^3.1.0",
+ "depd": "^1.0.0",
+ "inflection": "^1.6.0",
+ "lodash": "^4.17.4",
+ "loopback-connector": "^4.4.0",
+ "minimatch": "^3.0.3",
+ "qs": "^6.5.0",
+ "shortid": "^2.2.6",
+ "strong-globalize": "^4.1.1",
+ "traverse": "^0.6.6",
+ "uuid": "^3.0.1"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "3.2.7",
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "depd": {
+ "version": "1.1.2"
+ },
+ "ms": {
+ "version": "2.1.3"
+ }
+ }
+ },
+ "loopback-datatype-geopoint": {
+ "version": "1.0.0"
+ },
+ "loopback-filters": {
+ "version": "1.1.1",
+ "requires": {
+ "debug": "^3.1.0"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "3.2.7",
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "ms": {
+ "version": "2.1.3"
+ }
+ }
+ },
+ "loopback-phase": {
+ "version": "3.4.0",
+ "requires": {
+ "async": "^2.6.1",
+ "debug": "^3.1.0",
+ "strong-globalize": "^4.1.1"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "3.2.7",
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "ms": {
+ "version": "2.1.3"
+ }
+ }
+ },
+ "loopback-swagger": {
+ "version": "5.9.0",
+ "requires": {
+ "async": "^2.1.4",
+ "debug": "^3.1.0",
+ "ejs": "^2.5.5",
+ "lodash": "^4.17.11",
+ "strong-globalize": "^4.1.1"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "3.2.7",
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "ms": {
+ "version": "2.1.3"
+ }
+ }
+ },
+ "loud-rejection": {
+ "version": "1.6.0",
+ "dev": true,
+ "requires": {
+ "currently-unhandled": "^0.4.1",
+ "signal-exit": "^3.0.0"
+ }
+ },
+ "lower-case": {
+ "version": "1.1.4",
+ "dev": true
+ },
+ "lowercase-keys": {
+ "version": "2.0.0"
+ },
+ "lru-cache": {
+ "version": "5.1.1",
+ "requires": {
+ "yallist": "^3.0.2"
+ }
+ },
+ "mailparser": {
+ "version": "2.8.1",
+ "requires": {
+ "encoding-japanese": "1.0.30",
+ "he": "1.2.0",
+ "html-to-text": "5.1.1",
+ "iconv-lite": "0.6.2",
+ "libmime": "5.0.0",
+ "linkify-it": "3.0.2",
+ "mailsplit": "5.0.0",
+ "nodemailer": "6.4.11",
+ "tlds": "1.208.0"
+ },
+ "dependencies": {
+ "iconv-lite": {
+ "version": "0.6.2",
+ "requires": {
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
+ }
+ },
+ "nodemailer": {
+ "version": "6.4.11"
+ }
+ }
+ },
+ "mailsplit": {
+ "version": "5.0.0",
+ "requires": {
+ "libbase64": "1.2.1",
+ "libmime": "4.2.1",
+ "libqp": "1.1.0"
+ },
+ "dependencies": {
+ "iconv-lite": {
+ "version": "0.5.0",
+ "requires": {
+ "safer-buffer": ">= 2.1.2 < 3"
+ }
+ },
+ "libmime": {
+ "version": "4.2.1",
+ "requires": {
+ "encoding-japanese": "1.0.30",
+ "iconv-lite": "0.5.0",
+ "libbase64": "1.2.1",
+ "libqp": "1.1.0"
+ }
+ }
+ }
+ },
+ "make-dir": {
+ "version": "1.3.0",
+ "requires": {
+ "pify": "^3.0.0"
+ },
+ "dependencies": {
+ "pify": {
+ "version": "3.0.0"
+ }
+ }
+ },
+ "make-iterator": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "kind-of": "^6.0.2"
+ }
+ },
+ "make-plural": {
+ "version": "6.2.2"
+ },
+ "makeerror": {
+ "version": "1.0.12",
+ "dev": true,
+ "requires": {
+ "tmpl": "1.0.5"
+ }
+ },
+ "map-age-cleaner": {
+ "version": "0.1.3",
+ "requires": {
+ "p-defer": "^1.0.0"
+ }
+ },
+ "map-cache": {
+ "version": "0.2.2",
+ "dev": true
+ },
+ "map-obj": {
+ "version": "1.0.1",
+ "dev": true
+ },
+ "map-stream": {
+ "version": "0.0.7",
+ "dev": true
+ },
+ "map-visit": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "object-visit": "^1.0.0"
+ }
+ },
+ "matchdep": {
+ "version": "2.0.0",
+ "dev": true,
+ "requires": {
+ "findup-sync": "^2.0.0",
+ "micromatch": "^3.0.4",
+ "resolve": "^1.4.0",
+ "stack-trace": "0.0.10"
+ },
+ "dependencies": {
+ "braces": {
+ "version": "2.3.2",
+ "dev": true,
+ "requires": {
+ "arr-flatten": "^1.1.0",
+ "array-unique": "^0.3.2",
+ "extend-shallow": "^2.0.1",
+ "fill-range": "^4.0.0",
+ "isobject": "^3.0.1",
+ "repeat-element": "^1.1.2",
+ "snapdragon": "^0.8.1",
+ "snapdragon-node": "^2.0.1",
+ "split-string": "^3.0.2",
+ "to-regex": "^3.0.1"
+ },
+ "dependencies": {
+ "extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "requires": {
+ "is-extendable": "^0.1.0"
+ }
+ }
+ }
+ },
+ "fill-range": {
+ "version": "4.0.0",
+ "dev": true,
+ "requires": {
+ "extend-shallow": "^2.0.1",
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1",
+ "to-regex-range": "^2.1.0"
+ },
+ "dependencies": {
+ "extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "requires": {
+ "is-extendable": "^0.1.0"
+ }
+ }
+ }
+ },
+ "findup-sync": {
+ "version": "2.0.0",
+ "dev": true,
+ "requires": {
+ "detect-file": "^1.0.0",
+ "is-glob": "^3.1.0",
+ "micromatch": "^3.0.4",
+ "resolve-dir": "^1.0.1"
+ }
+ },
+ "is-glob": {
+ "version": "3.1.0",
+ "dev": true,
+ "requires": {
+ "is-extglob": "^2.1.0"
+ }
+ },
+ "is-number": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "kind-of": "^3.0.2"
+ },
+ "dependencies": {
+ "kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "requires": {
+ "is-buffer": "^1.1.5"
+ }
+ }
+ }
+ },
+ "micromatch": {
+ "version": "3.1.10",
+ "dev": true,
+ "requires": {
+ "arr-diff": "^4.0.0",
+ "array-unique": "^0.3.2",
+ "braces": "^2.3.1",
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "extglob": "^2.0.4",
+ "fragment-cache": "^0.2.1",
+ "kind-of": "^6.0.2",
+ "nanomatch": "^1.2.9",
+ "object.pick": "^1.3.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.2"
+ }
+ },
+ "to-regex-range": {
+ "version": "2.1.1",
+ "dev": true,
+ "requires": {
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1"
+ }
+ }
+ }
+ },
+ "math-interval-parser": {
+ "version": "2.0.1"
+ },
+ "md5": {
+ "version": "2.3.0",
+ "requires": {
+ "charenc": "0.0.2",
+ "crypt": "0.0.2",
+ "is-buffer": "~1.1.6"
+ }
+ },
+ "md5.js": {
+ "version": "1.3.5",
+ "dev": true,
+ "requires": {
+ "hash-base": "^3.0.0",
+ "inherits": "^2.0.1",
+ "safe-buffer": "^5.1.2"
+ }
+ },
+ "media-typer": {
+ "version": "0.3.0"
+ },
+ "mem": {
+ "version": "5.1.1",
+ "requires": {
+ "map-age-cleaner": "^0.1.3",
+ "mimic-fn": "^2.1.0",
+ "p-is-promise": "^2.1.0"
+ }
+ },
+ "memory-fs": {
+ "version": "0.4.1",
+ "dev": true,
+ "requires": {
+ "errno": "^0.1.3",
+ "readable-stream": "^2.0.1"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ }
+ }
+ },
+ "meow": {
+ "version": "3.7.0",
+ "dev": true,
+ "requires": {
+ "camelcase-keys": "^2.0.0",
+ "decamelize": "^1.1.2",
+ "loud-rejection": "^1.0.0",
+ "map-obj": "^1.0.1",
+ "minimist": "^1.1.3",
+ "normalize-package-data": "^2.3.4",
+ "object-assign": "^4.0.1",
+ "read-pkg-up": "^1.0.1",
+ "redent": "^1.0.0",
+ "trim-newlines": "^1.0.0"
+ }
+ },
+ "merge-descriptors": {
+ "version": "1.0.1"
+ },
+ "merge-stream": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "readable-stream": "^2.0.1"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ }
+ }
+ },
+ "messageformat": {
+ "version": "2.3.0",
+ "requires": {
+ "make-plural": "^4.3.0",
+ "messageformat-formatters": "^2.0.1",
+ "messageformat-parser": "^4.1.2"
+ },
+ "dependencies": {
+ "make-plural": {
+ "version": "4.3.0",
+ "requires": {
+ "minimist": "^1.2.0"
+ }
+ }
+ }
+ },
+ "messageformat-formatters": {
+ "version": "2.0.1"
+ },
+ "messageformat-parser": {
+ "version": "4.1.3"
+ },
+ "methods": {
+ "version": "1.1.2"
+ },
+ "micromatch": {
+ "version": "4.0.5",
+ "dev": true,
+ "requires": {
+ "braces": "^3.0.2",
+ "picomatch": "^2.3.1"
+ }
+ },
+ "miller-rabin": {
+ "version": "4.0.1",
+ "dev": true,
+ "requires": {
+ "bn.js": "^4.0.0",
+ "brorand": "^1.0.1"
+ },
+ "dependencies": {
+ "bn.js": {
+ "version": "4.12.0",
+ "dev": true
+ }
+ }
+ },
+ "mime": {
+ "version": "1.6.0"
+ },
+ "mime-db": {
+ "version": "1.52.0"
+ },
+ "mime-types": {
+ "version": "2.1.35",
+ "requires": {
+ "mime-db": "1.52.0"
+ }
+ },
+ "mimic-fn": {
+ "version": "2.1.0"
+ },
+ "mimic-response": {
+ "version": "2.1.0"
+ },
+ "minimalistic-assert": {
+ "version": "1.0.1",
+ "dev": true
+ },
+ "minimalistic-crypto-utils": {
+ "version": "1.0.1",
+ "dev": true
+ },
+ "minimatch": {
+ "version": "3.1.2",
+ "requires": {
+ "brace-expansion": "^1.1.7"
+ }
+ },
+ "minimist": {
+ "version": "1.2.6"
+ },
+ "minipass": {
+ "version": "3.3.4",
+ "requires": {
+ "yallist": "^4.0.0"
+ },
+ "dependencies": {
+ "yallist": {
+ "version": "4.0.0"
+ }
+ }
+ },
+ "minizlib": {
+ "version": "2.1.2",
+ "requires": {
+ "minipass": "^3.0.0",
+ "yallist": "^4.0.0"
+ },
+ "dependencies": {
+ "yallist": {
+ "version": "4.0.0"
+ }
+ }
+ },
+ "mississippi": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "concat-stream": "^1.5.0",
+ "duplexify": "^3.4.2",
+ "end-of-stream": "^1.1.0",
+ "flush-write-stream": "^1.0.0",
+ "from2": "^2.1.0",
+ "parallel-transform": "^1.1.0",
+ "pump": "^3.0.0",
+ "pumpify": "^1.3.3",
+ "stream-each": "^1.1.0",
+ "through2": "^2.0.0"
+ },
+ "dependencies": {
+ "concat-stream": {
+ "version": "1.6.2",
+ "dev": true,
+ "requires": {
+ "buffer-from": "^1.0.0",
+ "inherits": "^2.0.3",
+ "readable-stream": "^2.2.2",
+ "typedarray": "^0.0.6"
+ }
+ },
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "through2": {
+ "version": "2.0.5",
+ "dev": true,
+ "requires": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "xtend": {
+ "version": "4.0.2",
+ "dev": true
+ }
+ }
+ },
+ "mixin-deep": {
+ "version": "1.3.2",
+ "dev": true,
+ "requires": {
+ "for-in": "^1.0.2",
+ "is-extendable": "^1.0.1"
+ },
+ "dependencies": {
+ "is-extendable": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "is-plain-object": "^2.0.4"
+ }
+ },
+ "is-plain-object": {
+ "version": "2.0.4",
+ "dev": true,
+ "requires": {
+ "isobject": "^3.0.1"
+ }
+ }
+ }
+ },
+ "mkdirp": {
+ "version": "0.5.6",
+ "requires": {
+ "minimist": "^1.2.6"
+ }
+ },
+ "mkdirp-classic": {
+ "version": "0.5.3"
+ },
+ "mktmpdir": {
+ "version": "0.1.1",
+ "requires": {
+ "rimraf": "~2.2.8"
+ },
+ "dependencies": {
+ "rimraf": {
+ "version": "2.2.8"
+ }
+ }
+ },
+ "mocha": {
+ "version": "2.5.3",
+ "requires": {
+ "commander": "2.3.0",
+ "debug": "2.2.0",
+ "diff": "1.4.0",
+ "escape-string-regexp": "1.0.2",
+ "glob": "3.2.11",
+ "growl": "1.9.2",
+ "jade": "0.26.3",
+ "mkdirp": "0.5.1",
+ "supports-color": "1.2.0",
+ "to-iso-string": "0.0.2"
+ },
+ "dependencies": {
+ "commander": {
+ "version": "2.3.0"
+ },
+ "debug": {
+ "version": "2.2.0",
+ "requires": {
+ "ms": "0.7.1"
+ }
+ },
+ "escape-string-regexp": {
+ "version": "1.0.2"
+ },
+ "glob": {
+ "version": "3.2.11",
+ "requires": {
+ "inherits": "2",
+ "minimatch": "0.3"
+ }
+ },
+ "lru-cache": {
+ "version": "2.7.3"
+ },
+ "minimatch": {
+ "version": "0.3.0",
+ "requires": {
+ "lru-cache": "2",
+ "sigmund": "~1.0.0"
+ }
+ },
+ "minimist": {
+ "version": "0.0.8"
+ },
+ "mkdirp": {
+ "version": "0.5.1",
+ "requires": {
+ "minimist": "0.0.8"
+ }
+ },
+ "ms": {
+ "version": "0.7.1"
+ },
+ "supports-color": {
+ "version": "1.2.0"
+ }
+ }
+ },
+ "move-concurrently": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "aproba": "^1.1.1",
+ "copy-concurrently": "^1.0.0",
+ "fs-write-stream-atomic": "^1.0.8",
+ "mkdirp": "^0.5.1",
+ "rimraf": "^2.5.4",
+ "run-queue": "^1.0.3"
+ },
+ "dependencies": {
+ "rimraf": {
+ "version": "2.7.1",
+ "dev": true,
+ "requires": {
+ "glob": "^7.1.3"
+ }
+ }
+ }
+ },
+ "ms": {
+ "version": "2.0.0"
+ },
+ "msgpack-js": {
+ "version": "0.3.0",
+ "requires": {
+ "bops": "~0.0.6"
+ },
+ "dependencies": {
+ "base64-js": {
+ "version": "0.0.2"
+ },
+ "bops": {
+ "version": "0.0.7",
+ "requires": {
+ "base64-js": "0.0.2",
+ "to-utf8": "0.0.1"
+ }
+ }
+ }
+ },
+ "msgpack-stream": {
+ "version": "0.0.13",
+ "requires": {
+ "bops": "1.0.0",
+ "msgpack-js": "0.3.0",
+ "through": "2.3.4"
+ },
+ "dependencies": {
+ "through": {
+ "version": "2.3.4"
+ }
+ }
+ },
+ "msgpack5": {
+ "version": "4.5.1",
+ "requires": {
+ "bl": "^2.0.1",
+ "inherits": "^2.0.3",
+ "readable-stream": "^2.3.6",
+ "safe-buffer": "^5.1.2"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0"
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ }
+ }
+ },
+ "multicast-dns": {
+ "version": "6.2.3",
+ "dev": true,
+ "requires": {
+ "dns-packet": "^1.3.1",
+ "thunky": "^1.0.2"
+ }
+ },
+ "multicast-dns-service-types": {
+ "version": "1.1.0",
+ "dev": true
+ },
+ "multipipe": {
+ "version": "0.1.2",
+ "dev": true,
+ "requires": {
+ "duplexer2": "0.0.2"
+ }
+ },
+ "mustache": {
+ "version": "4.2.0"
+ },
+ "mute-stdout": {
+ "version": "1.0.1",
+ "dev": true
+ },
+ "mux-demux": {
+ "version": "3.7.9",
+ "requires": {
+ "duplex": "~1.0.0",
+ "json-buffer": "~2.0.4",
+ "msgpack-stream": "~0.0.10",
+ "stream-combiner": "0.0.2",
+ "stream-serializer": "~1.1.1",
+ "through": "~2.3.1",
+ "xtend": "~1.0.3"
+ },
+ "dependencies": {
+ "json-buffer": {
+ "version": "2.0.11"
+ }
+ }
+ },
+ "mysql": {
+ "version": "2.18.1",
+ "requires": {
+ "bignumber.js": "9.0.0",
+ "readable-stream": "2.3.7",
+ "safe-buffer": "5.1.2",
+ "sqlstring": "2.3.1"
+ },
+ "dependencies": {
+ "bignumber.js": {
+ "version": "9.0.0"
+ },
+ "isarray": {
+ "version": "1.0.0"
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ }
+ }
+ },
+ "mysql2": {
+ "version": "1.7.0",
+ "dev": true,
+ "requires": {
+ "denque": "^1.4.1",
+ "generate-function": "^2.3.1",
+ "iconv-lite": "^0.5.0",
+ "long": "^4.0.0",
+ "lru-cache": "^5.1.1",
+ "named-placeholders": "^1.1.2",
+ "seq-queue": "^0.0.5",
+ "sqlstring": "^2.3.1"
+ },
+ "dependencies": {
+ "iconv-lite": {
+ "version": "0.5.2",
+ "dev": true,
+ "requires": {
+ "safer-buffer": ">= 2.1.2 < 3"
+ }
+ }
+ }
+ },
+ "named-placeholders": {
+ "version": "1.1.2",
+ "dev": true,
+ "requires": {
+ "lru-cache": "^4.1.3"
+ },
+ "dependencies": {
+ "lru-cache": {
+ "version": "4.1.5",
+ "dev": true,
+ "requires": {
+ "pseudomap": "^1.0.2",
+ "yallist": "^2.1.2"
+ }
+ },
+ "yallist": {
+ "version": "2.1.2",
+ "dev": true
+ }
+ }
+ },
+ "nan": {
+ "version": "2.15.0",
+ "dev": true
+ },
+ "nanoid": {
+ "version": "2.1.11"
+ },
+ "nanomatch": {
+ "version": "1.2.13",
+ "dev": true,
+ "requires": {
+ "arr-diff": "^4.0.0",
+ "array-unique": "^0.3.2",
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "fragment-cache": "^0.2.1",
+ "is-windows": "^1.0.2",
+ "kind-of": "^6.0.2",
+ "object.pick": "^1.3.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.1"
+ }
+ },
+ "napi-build-utils": {
+ "version": "1.0.2"
+ },
+ "natural-compare": {
+ "version": "1.4.0",
+ "dev": true
+ },
+ "negotiator": {
+ "version": "0.6.3"
+ },
+ "neo-async": {
+ "version": "2.6.2",
+ "dev": true
+ },
+ "next-tick": {
+ "version": "1.1.0",
+ "dev": true
+ },
+ "nice-try": {
+ "version": "1.0.5"
+ },
+ "no-case": {
+ "version": "2.3.2",
+ "dev": true,
+ "requires": {
+ "lower-case": "^1.1.1"
+ }
+ },
+ "nocache": {
+ "version": "2.1.0"
+ },
+ "node-abi": {
+ "version": "3.28.0",
+ "requires": {
+ "semver": "^7.3.5"
+ },
+ "dependencies": {
+ "lru-cache": {
+ "version": "6.0.0",
+ "requires": {
+ "yallist": "^4.0.0"
+ }
+ },
+ "semver": {
+ "version": "7.3.8",
+ "requires": {
+ "lru-cache": "^6.0.0"
+ }
+ },
+ "yallist": {
+ "version": "4.0.0"
+ }
+ }
+ },
+ "node-addon-api": {
+ "version": "5.0.0"
+ },
+ "node-domexception": {
+ "version": "1.0.0"
+ },
+ "node-fetch": {
+ "version": "2.6.7",
+ "requires": {
+ "whatwg-url": "^5.0.0"
+ }
+ },
+ "node-forge": {
+ "version": "0.10.0"
+ },
+ "node-gyp": {
+ "version": "3.8.0",
+ "dev": true,
+ "requires": {
+ "fstream": "^1.0.0",
+ "glob": "^7.0.3",
+ "graceful-fs": "^4.1.2",
+ "mkdirp": "^0.5.0",
+ "nopt": "2 || 3",
+ "npmlog": "0 || 1 || 2 || 3 || 4",
+ "osenv": "0",
+ "request": "^2.87.0",
+ "rimraf": "2",
+ "semver": "~5.3.0",
+ "tar": "^2.0.0",
+ "which": "1"
+ },
+ "dependencies": {
+ "nopt": {
+ "version": "3.0.6",
+ "dev": true,
+ "requires": {
+ "abbrev": "1"
+ }
+ },
+ "rimraf": {
+ "version": "2.7.1",
+ "dev": true,
+ "requires": {
+ "glob": "^7.1.3"
+ }
+ },
+ "which": {
+ "version": "1.3.1",
+ "dev": true,
+ "requires": {
+ "isexe": "^2.0.0"
+ }
+ }
+ }
+ },
+ "node-int64": {
+ "version": "0.4.0",
+ "dev": true
+ },
+ "node-libs-browser": {
+ "version": "2.2.1",
+ "dev": true,
+ "requires": {
+ "assert": "^1.1.1",
+ "browserify-zlib": "^0.2.0",
+ "buffer": "^4.3.0",
+ "console-browserify": "^1.1.0",
+ "constants-browserify": "^1.0.0",
+ "crypto-browserify": "^3.11.0",
+ "domain-browser": "^1.1.1",
+ "events": "^3.0.0",
+ "https-browserify": "^1.0.0",
+ "os-browserify": "^0.3.0",
+ "path-browserify": "0.0.1",
+ "process": "^0.11.10",
+ "punycode": "^1.2.4",
+ "querystring-es3": "^0.2.0",
+ "readable-stream": "^2.3.3",
+ "stream-browserify": "^2.0.1",
+ "stream-http": "^2.7.2",
+ "string_decoder": "^1.0.0",
+ "timers-browserify": "^2.0.4",
+ "tty-browserify": "0.0.0",
+ "url": "^0.11.0",
+ "util": "^0.11.0",
+ "vm-browserify": "^1.0.1"
+ },
+ "dependencies": {
+ "events": {
+ "version": "3.3.0",
+ "dev": true
+ },
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "punycode": {
+ "version": "1.4.1",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ },
+ "dependencies": {
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ }
+ }
+ },
+ "string_decoder": {
+ "version": "1.3.0",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.2.0"
+ },
+ "dependencies": {
+ "safe-buffer": {
+ "version": "5.2.1",
+ "dev": true
+ }
+ }
+ },
+ "url": {
+ "version": "0.11.0",
+ "dev": true,
+ "requires": {
+ "punycode": "1.3.2",
+ "querystring": "0.2.0"
+ },
+ "dependencies": {
+ "punycode": {
+ "version": "1.3.2",
+ "dev": true
+ }
+ }
+ }
+ }
+ },
+ "node-notifier": {
+ "version": "8.0.2",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "growly": "^1.3.0",
+ "is-wsl": "^2.2.0",
+ "semver": "^7.3.2",
+ "shellwords": "^0.1.1",
+ "uuid": "^8.3.0",
+ "which": "^2.0.2"
+ },
+ "dependencies": {
+ "lru-cache": {
+ "version": "6.0.0",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "yallist": "^4.0.0"
+ }
+ },
+ "semver": {
+ "version": "7.3.5",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "lru-cache": "^6.0.0"
+ }
+ },
+ "uuid": {
+ "version": "8.3.2",
+ "dev": true,
+ "optional": true
+ },
+ "yallist": {
+ "version": "4.0.0",
+ "dev": true,
+ "optional": true
+ }
+ }
+ },
+ "node-releases": {
+ "version": "2.0.2",
+ "dev": true
+ },
+ "node-sass": {
+ "version": "4.14.1",
+ "dev": true,
+ "requires": {
+ "async-foreach": "^0.1.3",
+ "chalk": "^1.1.1",
+ "cross-spawn": "^3.0.0",
+ "gaze": "^1.0.0",
+ "get-stdin": "^4.0.1",
+ "glob": "^7.0.3",
+ "in-publish": "^2.0.0",
+ "lodash": "^4.17.15",
+ "meow": "^3.7.0",
+ "mkdirp": "^0.5.1",
+ "nan": "^2.13.2",
+ "node-gyp": "^3.8.0",
+ "npmlog": "^4.0.0",
+ "request": "^2.88.0",
+ "sass-graph": "2.2.5",
+ "stdout-stream": "^1.4.0",
+ "true-case-path": "^1.0.2"
+ },
+ "dependencies": {
+ "ansi-styles": {
+ "version": "2.2.1",
+ "dev": true
+ },
+ "chalk": {
+ "version": "1.1.3",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^2.2.1",
+ "escape-string-regexp": "^1.0.2",
+ "has-ansi": "^2.0.0",
+ "strip-ansi": "^3.0.0",
+ "supports-color": "^2.0.0"
+ }
+ },
+ "cross-spawn": {
+ "version": "3.0.1",
+ "dev": true,
+ "requires": {
+ "lru-cache": "^4.0.1",
+ "which": "^1.2.9"
+ }
+ },
+ "escape-string-regexp": {
+ "version": "1.0.5",
+ "dev": true
+ },
+ "lru-cache": {
+ "version": "4.1.5",
+ "dev": true,
+ "requires": {
+ "pseudomap": "^1.0.2",
+ "yallist": "^2.1.2"
+ }
+ },
+ "supports-color": {
+ "version": "2.0.0",
+ "dev": true
+ },
+ "which": {
+ "version": "1.3.1",
+ "dev": true,
+ "requires": {
+ "isexe": "^2.0.0"
+ }
+ },
+ "yallist": {
+ "version": "2.1.2",
+ "dev": true
+ }
+ }
+ },
+ "node-ssh": {
+ "version": "11.1.1",
+ "requires": {
+ "make-dir": "^3.1.0",
+ "sb-promise-queue": "^2.1.0",
+ "sb-scandir": "^3.1.0",
+ "shell-escape": "^0.2.0",
+ "ssh2": "^0.8.9"
+ },
+ "dependencies": {
+ "make-dir": {
+ "version": "3.1.0",
+ "requires": {
+ "semver": "^6.0.0"
+ }
+ },
+ "semver": {
+ "version": "6.3.0"
+ }
+ }
+ },
+ "node.extend": {
+ "version": "2.0.2",
+ "dev": true,
+ "requires": {
+ "has": "^1.0.3",
+ "is": "^3.2.1"
+ }
+ },
+ "nodemailer": {
+ "version": "6.7.3"
+ },
+ "nodemailer-direct-transport": {
+ "version": "3.3.2",
+ "requires": {
+ "nodemailer-shared": "1.1.0",
+ "smtp-connection": "2.12.0"
+ }
+ },
+ "nodemailer-fetch": {
+ "version": "1.6.0"
+ },
+ "nodemailer-shared": {
+ "version": "1.1.0",
+ "requires": {
+ "nodemailer-fetch": "1.6.0"
+ }
+ },
+ "nodemailer-stub-transport": {
+ "version": "1.1.0"
+ },
+ "nodemon": {
+ "version": "2.0.19",
+ "dev": true,
+ "requires": {
+ "chokidar": "^3.5.2",
+ "debug": "^3.2.7",
+ "ignore-by-default": "^1.0.1",
+ "minimatch": "^3.0.4",
+ "pstree.remy": "^1.1.8",
+ "semver": "^5.7.1",
+ "simple-update-notifier": "^1.0.7",
+ "supports-color": "^5.5.0",
+ "touch": "^3.1.0",
+ "undefsafe": "^2.0.5"
+ },
+ "dependencies": {
+ "binary-extensions": {
+ "version": "2.2.0",
+ "dev": true
+ },
+ "chokidar": {
+ "version": "3.5.3",
+ "dev": true,
+ "requires": {
+ "anymatch": "~3.1.2",
+ "braces": "~3.0.2",
+ "fsevents": "~2.3.2",
+ "glob-parent": "~5.1.2",
+ "is-binary-path": "~2.1.0",
+ "is-glob": "~4.0.1",
+ "normalize-path": "~3.0.0",
+ "readdirp": "~3.6.0"
+ }
+ },
+ "debug": {
+ "version": "3.2.7",
+ "dev": true,
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "has-flag": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "is-binary-path": {
+ "version": "2.1.0",
+ "dev": true,
+ "requires": {
+ "binary-extensions": "^2.0.0"
+ }
+ },
+ "ms": {
+ "version": "2.1.3",
+ "dev": true
+ },
+ "readdirp": {
+ "version": "3.6.0",
+ "dev": true,
+ "requires": {
+ "picomatch": "^2.2.1"
+ }
+ },
+ "semver": {
+ "version": "5.7.1",
+ "dev": true
+ },
+ "supports-color": {
+ "version": "5.5.0",
+ "dev": true,
+ "requires": {
+ "has-flag": "^3.0.0"
+ }
+ }
+ }
+ },
+ "nopt": {
+ "version": "1.0.10",
+ "dev": true,
+ "requires": {
+ "abbrev": "1"
+ }
+ },
+ "normalize-package-data": {
+ "version": "2.5.0",
+ "dev": true,
+ "requires": {
+ "hosted-git-info": "^2.1.4",
+ "resolve": "^1.10.0",
+ "semver": "2 || 3 || 4 || 5",
+ "validate-npm-package-license": "^3.0.1"
+ }
+ },
+ "normalize-path": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "normalize-url": {
+ "version": "6.1.0"
+ },
+ "now-and-later": {
+ "version": "2.0.1",
+ "dev": true,
+ "requires": {
+ "once": "^1.3.2"
+ }
+ },
+ "npm-run-path": {
+ "version": "4.0.1",
+ "requires": {
+ "path-key": "^3.0.0"
+ }
+ },
+ "npmlog": {
+ "version": "4.1.2",
+ "dev": true,
+ "requires": {
+ "are-we-there-yet": "~1.1.2",
+ "console-control-strings": "~1.1.0",
+ "gauge": "~2.7.3",
+ "set-blocking": "~2.0.0"
+ }
+ },
+ "number-is-nan": {
+ "version": "1.0.1"
+ },
+ "nwsapi": {
+ "version": "2.2.0"
+ },
+ "oauth-sign": {
+ "version": "0.9.0"
+ },
+ "object-assign": {
+ "version": "4.1.1"
+ },
+ "object-copy": {
+ "version": "0.1.0",
+ "dev": true,
+ "requires": {
+ "copy-descriptor": "^0.1.0",
+ "define-property": "^0.2.5",
+ "kind-of": "^3.0.3"
+ },
+ "dependencies": {
+ "define-property": {
+ "version": "0.2.5",
+ "dev": true,
+ "requires": {
+ "is-descriptor": "^0.1.0"
+ }
+ },
+ "kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "requires": {
+ "is-buffer": "^1.1.5"
+ }
+ }
+ }
+ },
+ "object-diff": {
+ "version": "0.0.4"
+ },
+ "object-inspect": {
+ "version": "1.12.0"
+ },
+ "object-is": {
+ "version": "1.1.5",
+ "dev": true,
+ "requires": {
+ "call-bind": "^1.0.2",
+ "define-properties": "^1.1.3"
+ }
+ },
+ "object-keys": {
+ "version": "1.1.1",
+ "dev": true
+ },
+ "object-visit": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "isobject": "^3.0.0"
+ }
+ },
+ "object.assign": {
+ "version": "4.1.2",
+ "dev": true,
+ "requires": {
+ "call-bind": "^1.0.0",
+ "define-properties": "^1.1.3",
+ "has-symbols": "^1.0.1",
+ "object-keys": "^1.1.1"
+ }
+ },
+ "object.defaults": {
+ "version": "1.1.0",
+ "dev": true,
+ "requires": {
+ "array-each": "^1.0.1",
+ "array-slice": "^1.0.0",
+ "for-own": "^1.0.0",
+ "isobject": "^3.0.0"
+ }
+ },
+ "object.getownpropertydescriptors": {
+ "version": "2.1.3",
+ "dev": true,
+ "requires": {
+ "call-bind": "^1.0.2",
+ "define-properties": "^1.1.3",
+ "es-abstract": "^1.19.1"
+ }
+ },
+ "object.map": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "for-own": "^1.0.0",
+ "make-iterator": "^1.0.0"
+ }
+ },
+ "object.pick": {
+ "version": "1.3.0",
+ "requires": {
+ "isobject": "^3.0.1"
+ }
+ },
+ "object.reduce": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "for-own": "^1.0.0",
+ "make-iterator": "^1.0.0"
+ }
+ },
+ "obuf": {
+ "version": "1.1.2",
+ "dev": true
+ },
+ "on-finished": {
+ "version": "2.3.0",
+ "requires": {
+ "ee-first": "1.1.1"
+ }
+ },
+ "on-headers": {
+ "version": "1.0.2"
+ },
+ "once": {
+ "version": "1.4.0",
+ "requires": {
+ "wrappy": "1"
+ }
+ },
+ "onetime": {
+ "version": "5.1.2",
+ "requires": {
+ "mimic-fn": "^2.1.0"
+ }
+ },
+ "opn": {
+ "version": "5.5.0",
+ "dev": true,
+ "requires": {
+ "is-wsl": "^1.1.0"
+ },
+ "dependencies": {
+ "is-wsl": {
+ "version": "1.1.0",
+ "dev": true
+ }
+ }
+ },
+ "optional": {
+ "version": "0.1.4"
+ },
+ "optionator": {
+ "version": "0.9.1",
+ "dev": true,
+ "requires": {
+ "deep-is": "^0.1.3",
+ "fast-levenshtein": "^2.0.6",
+ "levn": "^0.4.1",
+ "prelude-ls": "^1.2.1",
+ "type-check": "^0.4.0",
+ "word-wrap": "^1.2.3"
+ }
+ },
+ "options": {
+ "version": "0.0.6"
+ },
+ "ordered-read-streams": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "readable-stream": "^2.0.1"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ }
+ }
+ },
+ "original": {
+ "version": "1.0.2",
+ "dev": true,
+ "requires": {
+ "url-parse": "^1.4.3"
+ }
+ },
+ "os-browserify": {
+ "version": "0.3.0",
+ "dev": true
+ },
+ "os-homedir": {
+ "version": "1.0.2",
+ "dev": true
+ },
+ "os-locale": {
+ "version": "5.0.0",
+ "requires": {
+ "execa": "^4.0.0",
+ "lcid": "^3.0.0",
+ "mem": "^5.0.0"
+ }
+ },
+ "os-tmpdir": {
+ "version": "1.0.2",
+ "dev": true
+ },
+ "osenv": {
+ "version": "0.1.5",
+ "dev": true,
+ "requires": {
+ "os-homedir": "^1.0.0",
+ "os-tmpdir": "^1.0.0"
+ }
+ },
+ "p-cancelable": {
+ "version": "2.1.1"
+ },
+ "p-defer": {
+ "version": "1.0.0"
+ },
+ "p-each-series": {
+ "version": "2.2.0",
+ "dev": true
+ },
+ "p-event": {
+ "version": "4.2.0",
+ "requires": {
+ "p-timeout": "^3.1.0"
+ }
+ },
+ "p-finally": {
+ "version": "1.0.0"
+ },
+ "p-is-promise": {
+ "version": "2.1.0"
+ },
+ "p-limit": {
+ "version": "2.3.0",
+ "dev": true,
+ "requires": {
+ "p-try": "^2.0.0"
+ }
+ },
+ "p-locate": {
+ "version": "4.1.0",
+ "dev": true,
+ "requires": {
+ "p-limit": "^2.2.0"
+ }
+ },
+ "p-map": {
+ "version": "2.1.0",
+ "dev": true
+ },
+ "p-queue": {
+ "version": "1.2.0",
+ "dev": true
+ },
+ "p-retry": {
+ "version": "3.0.1",
+ "dev": true,
+ "requires": {
+ "retry": "^0.12.0"
+ }
+ },
+ "p-timeout": {
+ "version": "3.2.0",
+ "requires": {
+ "p-finally": "^1.0.0"
+ }
+ },
+ "p-try": {
+ "version": "2.2.0"
+ },
+ "package-json": {
+ "version": "6.5.0",
+ "dev": true,
+ "requires": {
+ "got": "^9.6.0",
+ "registry-auth-token": "^4.0.0",
+ "registry-url": "^5.0.0",
+ "semver": "^6.2.0"
+ },
+ "dependencies": {
+ "@sindresorhus/is": {
+ "version": "0.14.0",
+ "dev": true
+ },
+ "@szmarczak/http-timer": {
+ "version": "1.1.2",
+ "dev": true,
+ "requires": {
+ "defer-to-connect": "^1.0.1"
+ }
+ },
+ "cacheable-request": {
+ "version": "6.1.0",
+ "dev": true,
+ "requires": {
+ "clone-response": "^1.0.2",
+ "get-stream": "^5.1.0",
+ "http-cache-semantics": "^4.0.0",
+ "keyv": "^3.0.0",
+ "lowercase-keys": "^2.0.0",
+ "normalize-url": "^4.1.0",
+ "responselike": "^1.0.2"
+ },
+ "dependencies": {
+ "get-stream": {
+ "version": "5.2.0",
+ "dev": true,
+ "requires": {
+ "pump": "^3.0.0"
+ }
+ },
+ "lowercase-keys": {
+ "version": "2.0.0",
+ "dev": true
+ }
+ }
+ },
+ "decompress-response": {
+ "version": "3.3.0",
+ "dev": true,
+ "requires": {
+ "mimic-response": "^1.0.0"
+ }
+ },
+ "defer-to-connect": {
+ "version": "1.1.3",
+ "dev": true
+ },
+ "get-stream": {
+ "version": "4.1.0",
+ "dev": true,
+ "requires": {
+ "pump": "^3.0.0"
+ }
+ },
+ "got": {
+ "version": "9.6.0",
+ "dev": true,
+ "requires": {
+ "@sindresorhus/is": "^0.14.0",
+ "@szmarczak/http-timer": "^1.1.2",
+ "cacheable-request": "^6.0.0",
+ "decompress-response": "^3.3.0",
+ "duplexer3": "^0.1.4",
+ "get-stream": "^4.1.0",
+ "lowercase-keys": "^1.0.1",
+ "mimic-response": "^1.0.1",
+ "p-cancelable": "^1.0.0",
+ "to-readable-stream": "^1.0.0",
+ "url-parse-lax": "^3.0.0"
+ }
+ },
+ "json-buffer": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "keyv": {
+ "version": "3.1.0",
+ "dev": true,
+ "requires": {
+ "json-buffer": "3.0.0"
+ }
+ },
+ "lowercase-keys": {
+ "version": "1.0.1",
+ "dev": true
+ },
+ "mimic-response": {
+ "version": "1.0.1",
+ "dev": true
+ },
+ "normalize-url": {
+ "version": "4.5.1",
+ "dev": true
+ },
+ "p-cancelable": {
+ "version": "1.1.0",
+ "dev": true
+ },
+ "responselike": {
+ "version": "1.0.2",
+ "dev": true,
+ "requires": {
+ "lowercase-keys": "^1.0.0"
+ }
+ },
+ "semver": {
+ "version": "6.3.0",
+ "dev": true
+ },
+ "to-readable-stream": {
+ "version": "1.0.0",
+ "dev": true
+ }
+ }
+ },
+ "pako": {
+ "version": "1.0.11"
+ },
+ "parallel-transform": {
+ "version": "1.2.0",
+ "dev": true,
+ "requires": {
+ "cyclist": "^1.0.1",
+ "inherits": "^2.0.3",
+ "readable-stream": "^2.1.5"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ }
+ }
+ },
+ "param-case": {
+ "version": "2.1.1",
+ "dev": true,
+ "requires": {
+ "no-case": "^2.2.0"
+ }
+ },
+ "parent-module": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "callsites": "^3.0.0"
+ }
+ },
+ "parse-asn1": {
+ "version": "5.1.6",
+ "dev": true,
+ "requires": {
+ "asn1.js": "^5.2.0",
+ "browserify-aes": "^1.0.0",
+ "evp_bytestokey": "^1.0.0",
+ "pbkdf2": "^3.0.3",
+ "safe-buffer": "^5.1.1"
+ }
+ },
+ "parse-filepath": {
+ "version": "1.0.2",
+ "dev": true,
+ "requires": {
+ "is-absolute": "^1.0.0",
+ "map-cache": "^0.2.0",
+ "path-root": "^0.1.1"
+ }
+ },
+ "parse-json": {
+ "version": "2.2.0",
+ "dev": true,
+ "requires": {
+ "error-ex": "^1.2.0"
+ }
+ },
+ "parse-node-version": {
+ "version": "1.0.1",
+ "dev": true
+ },
+ "parse-passwd": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "parse5": {
+ "version": "6.0.1"
+ },
+ "parseurl": {
+ "version": "1.3.3"
+ },
+ "pascal-case": {
+ "version": "3.1.2",
+ "dev": true,
+ "requires": {
+ "no-case": "^3.0.4",
+ "tslib": "^2.0.3"
+ },
+ "dependencies": {
+ "lower-case": {
+ "version": "2.0.2",
+ "dev": true,
+ "requires": {
+ "tslib": "^2.0.3"
+ }
+ },
+ "no-case": {
+ "version": "3.0.4",
+ "dev": true,
+ "requires": {
+ "lower-case": "^2.0.2",
+ "tslib": "^2.0.3"
+ }
+ }
+ }
+ },
+ "pascalcase": {
+ "version": "0.1.1",
+ "dev": true
+ },
+ "path-browserify": {
+ "version": "0.0.1",
+ "dev": true
+ },
+ "path-dirname": {
+ "version": "1.0.2",
+ "dev": true
+ },
+ "path-exists": {
+ "version": "4.0.0",
+ "dev": true
+ },
+ "path-is-absolute": {
+ "version": "1.0.1"
+ },
+ "path-is-inside": {
+ "version": "1.0.2",
+ "dev": true
+ },
+ "path-key": {
+ "version": "3.1.1"
+ },
+ "path-parse": {
+ "version": "1.0.7",
+ "dev": true
+ },
+ "path-root": {
+ "version": "0.1.1",
+ "dev": true,
+ "requires": {
+ "path-root-regex": "^0.1.0"
+ }
+ },
+ "path-root-regex": {
+ "version": "0.1.2",
+ "dev": true
+ },
+ "path-to-regexp": {
+ "version": "0.1.7"
+ },
+ "path-type": {
+ "version": "1.1.0",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "^4.1.2",
+ "pify": "^2.0.0",
+ "pinkie-promise": "^2.0.0"
+ },
+ "dependencies": {
+ "pify": {
+ "version": "2.3.0",
+ "dev": true
+ }
+ }
+ },
+ "pbkdf2": {
+ "version": "3.1.2",
+ "dev": true,
+ "requires": {
+ "create-hash": "^1.1.2",
+ "create-hmac": "^1.1.4",
+ "ripemd160": "^2.0.1",
+ "safe-buffer": "^5.0.1",
+ "sha.js": "^2.4.8"
+ }
+ },
+ "pend": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",
+ "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg=="
+ },
+ "performance-now": {
+ "version": "2.1.0"
+ },
+ "picocolors": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "picomatch": {
+ "version": "2.3.1",
+ "dev": true
+ },
+ "pify": {
+ "version": "4.0.1"
+ },
+ "pinkie": {
+ "version": "2.0.4",
+ "dev": true
+ },
+ "pinkie-promise": {
+ "version": "2.0.1",
+ "dev": true,
+ "requires": {
+ "pinkie": "^2.0.0"
+ }
+ },
+ "pirates": {
+ "version": "4.0.5",
+ "dev": true
+ },
+ "pkg-dir": {
+ "version": "4.2.0",
+ "dev": true,
+ "requires": {
+ "find-up": "^4.0.0"
+ }
+ },
+ "pkgcloud": {
+ "version": "2.2.0",
+ "requires": {
+ "@google-cloud/storage": "^2.4.3",
+ "async": "^2.6.1",
+ "aws-sdk": "^2.382.0",
+ "errs": "^0.3.2",
+ "eventemitter2": "^5.0.1",
+ "fast-json-patch": "^2.1.0",
+ "filed-mimefix": "^0.1.3",
+ "ip": "^1.1.5",
+ "liboneandone": "^1.2.0",
+ "lodash": "^4.17.10",
+ "mime": "^2.4.1",
+ "qs": "^6.5.2",
+ "request": "^2.88.0",
+ "through2": "^3.0.1",
+ "url-join": "^4.0.0",
+ "xml2js": "^0.4.19"
+ },
+ "dependencies": {
+ "mime": {
+ "version": "2.6.0"
+ }
+ }
+ },
+ "plugin-error": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "ansi-colors": "^1.0.1",
+ "arr-diff": "^4.0.0",
+ "arr-union": "^3.1.0",
+ "extend-shallow": "^3.0.2"
+ },
+ "dependencies": {
+ "ansi-colors": {
+ "version": "1.1.0",
+ "dev": true,
+ "requires": {
+ "ansi-wrap": "^0.1.0"
+ }
+ }
+ }
+ },
+ "portfinder": {
+ "version": "1.0.28",
+ "dev": true,
+ "requires": {
+ "async": "^2.6.2",
+ "debug": "^3.1.1",
+ "mkdirp": "^0.5.5"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "3.2.7",
+ "dev": true,
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "ms": {
+ "version": "2.1.3",
+ "dev": true
+ }
+ }
+ },
+ "posix-character-classes": {
+ "version": "0.1.1",
+ "dev": true
+ },
+ "posix-getopt": {
+ "version": "1.2.1"
+ },
+ "postcss": {
+ "version": "7.0.39",
+ "dev": true,
+ "requires": {
+ "picocolors": "^0.2.1",
+ "source-map": "^0.6.1"
+ },
+ "dependencies": {
+ "picocolors": {
+ "version": "0.2.1",
+ "dev": true
+ },
+ "source-map": {
+ "version": "0.6.1",
+ "dev": true
+ }
+ }
+ },
+ "postcss-modules-extract-imports": {
+ "version": "2.0.0",
+ "dev": true,
+ "requires": {
+ "postcss": "^7.0.5"
+ }
+ },
+ "postcss-modules-local-by-default": {
+ "version": "2.0.6",
+ "dev": true,
+ "requires": {
+ "postcss": "^7.0.6",
+ "postcss-selector-parser": "^6.0.0",
+ "postcss-value-parser": "^3.3.1"
+ }
+ },
+ "postcss-modules-scope": {
+ "version": "2.2.0",
+ "dev": true,
+ "requires": {
+ "postcss": "^7.0.6",
+ "postcss-selector-parser": "^6.0.0"
+ }
+ },
+ "postcss-modules-values": {
+ "version": "2.0.0",
+ "dev": true,
+ "requires": {
+ "icss-replace-symbols": "^1.1.0",
+ "postcss": "^7.0.6"
+ }
+ },
+ "postcss-selector-parser": {
+ "version": "6.0.9",
+ "dev": true,
+ "requires": {
+ "cssesc": "^3.0.0",
+ "util-deprecate": "^1.0.2"
+ }
+ },
+ "postcss-value-parser": {
+ "version": "3.3.1",
+ "dev": true
+ },
+ "prebuild-install": {
+ "version": "7.1.1",
+ "requires": {
+ "detect-libc": "^2.0.0",
+ "expand-template": "^2.0.3",
+ "github-from-package": "0.0.0",
+ "minimist": "^1.2.3",
+ "mkdirp-classic": "^0.5.3",
+ "napi-build-utils": "^1.0.1",
+ "node-abi": "^3.3.0",
+ "pump": "^3.0.0",
+ "rc": "^1.2.7",
+ "simple-get": "^4.0.0",
+ "tar-fs": "^2.0.0",
+ "tunnel-agent": "^0.6.0"
+ }
+ },
+ "precond": {
+ "version": "0.2.3"
+ },
+ "prelude-ls": {
+ "version": "1.2.1",
+ "dev": true
+ },
+ "prepend-http": {
+ "version": "2.0.0",
+ "dev": true
+ },
+ "pretty-error": {
+ "version": "2.1.2",
+ "dev": true,
+ "requires": {
+ "lodash": "^4.17.20",
+ "renderkid": "^2.0.4"
+ }
+ },
+ "pretty-format": {
+ "version": "26.6.2",
+ "dev": true,
+ "requires": {
+ "@jest/types": "^26.6.2",
+ "ansi-regex": "^5.0.0",
+ "ansi-styles": "^4.0.0",
+ "react-is": "^17.0.1"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "5.0.1",
+ "dev": true
+ }
+ }
+ },
+ "pretty-hrtime": {
+ "version": "1.0.3",
+ "dev": true
+ },
+ "private": {
+ "version": "0.1.8",
+ "dev": true
+ },
+ "process": {
+ "version": "0.11.10",
+ "dev": true
+ },
+ "process-nextick-args": {
+ "version": "2.0.1"
+ },
+ "progress": {
+ "version": "2.0.3"
+ },
+ "promise-inflight": {
+ "version": "1.0.1",
+ "dev": true
+ },
+ "prompts": {
+ "version": "2.4.2",
+ "dev": true,
+ "requires": {
+ "kleur": "^3.0.3",
+ "sisteransi": "^1.0.5"
+ }
+ },
+ "proxy-addr": {
+ "version": "2.0.7",
+ "requires": {
+ "forwarded": "0.2.0",
+ "ipaddr.js": "1.9.1"
+ }
+ },
+ "proxy-from-env": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
+ "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="
+ },
+ "prr": {
+ "version": "1.0.1",
+ "dev": true
+ },
+ "pseudomap": {
+ "version": "1.0.2"
+ },
+ "psl": {
+ "version": "1.8.0"
+ },
+ "pstree.remy": {
+ "version": "1.1.8",
+ "dev": true
+ },
+ "public-encrypt": {
+ "version": "4.0.3",
+ "dev": true,
+ "requires": {
+ "bn.js": "^4.1.0",
+ "browserify-rsa": "^4.0.0",
+ "create-hash": "^1.1.0",
+ "parse-asn1": "^5.0.0",
+ "randombytes": "^2.0.1",
+ "safe-buffer": "^5.1.2"
+ },
+ "dependencies": {
+ "bn.js": {
+ "version": "4.12.0",
+ "dev": true
+ }
+ }
+ },
+ "pump": {
+ "version": "3.0.0",
+ "requires": {
+ "end-of-stream": "^1.1.0",
+ "once": "^1.3.1"
+ }
+ },
+ "pumpify": {
+ "version": "1.5.1",
+ "requires": {
+ "duplexify": "^3.6.0",
+ "inherits": "^2.0.3",
+ "pump": "^2.0.0"
+ },
+ "dependencies": {
+ "pump": {
+ "version": "2.0.1",
+ "requires": {
+ "end-of-stream": "^1.1.0",
+ "once": "^1.3.1"
+ }
+ }
+ }
+ },
+ "punycode": {
+ "version": "2.1.1"
+ },
+ "pupa": {
+ "version": "2.1.1",
+ "dev": true,
+ "requires": {
+ "escape-goat": "^2.0.0"
+ }
+ },
+ "puppeteer": {
+ "version": "18.2.1",
+ "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-18.2.1.tgz",
+ "integrity": "sha512-7+UhmYa7wxPh2oMRwA++k8UGVDxh3YdWFB52r9C3tM81T6BU7cuusUSxImz0GEYSOYUKk/YzIhkQ6+vc0gHbxQ==",
+ "requires": {
+ "https-proxy-agent": "5.0.1",
+ "progress": "2.0.3",
+ "proxy-from-env": "1.1.0",
+ "puppeteer-core": "18.2.1"
+ },
+ "dependencies": {
+ "agent-base": {
+ "version": "6.0.2",
+ "requires": {
+ "debug": "4"
+ }
+ },
+ "debug": {
+ "version": "4.3.4",
+ "requires": {
+ "ms": "2.1.2"
+ }
+ },
+ "https-proxy-agent": {
+ "version": "5.0.1",
+ "requires": {
+ "agent-base": "6",
+ "debug": "4"
+ }
+ },
+ "ms": {
+ "version": "2.1.2"
+ }
+ }
+ },
+ "puppeteer-cluster": {
+ "version": "0.23.0",
+ "requires": {
+ "debug": "^4.3.3"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "4.3.4",
+ "requires": {
+ "ms": "2.1.2"
+ }
+ },
+ "ms": {
+ "version": "2.1.2"
+ }
+ }
+ },
+ "puppeteer-core": {
+ "version": "18.2.1",
+ "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-18.2.1.tgz",
+ "integrity": "sha512-MRtTAZfQTluz3U2oU/X2VqVWPcR1+94nbA2V6ZrSZRVEwLqZ8eclZ551qGFQD/vD2PYqHJwWOW/fpC721uznVw==",
+ "requires": {
+ "cross-fetch": "3.1.5",
+ "debug": "4.3.4",
+ "devtools-protocol": "0.0.1045489",
+ "extract-zip": "2.0.1",
+ "https-proxy-agent": "5.0.1",
+ "proxy-from-env": "1.1.0",
+ "rimraf": "3.0.2",
+ "tar-fs": "2.1.1",
+ "unbzip2-stream": "1.4.3",
+ "ws": "8.9.0"
+ },
+ "dependencies": {
+ "agent-base": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
+ "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
+ "requires": {
+ "debug": "4"
+ }
+ },
+ "debug": {
+ "version": "4.3.4",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
+ "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
+ "requires": {
+ "ms": "2.1.2"
+ }
+ },
+ "https-proxy-agent": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
+ "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
+ "requires": {
+ "agent-base": "6",
+ "debug": "4"
+ }
+ },
+ "ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
+ },
+ "ws": {
+ "version": "8.9.0",
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.9.0.tgz",
+ "integrity": "sha512-Ja7nszREasGaYUYCI2k4lCKIRTt+y7XuqVoHR44YpI49TtryyqbqvDMn5eqfW7e6HzTukDRIsXqzVHScqRcafg==",
+ "requires": {}
+ }
+ }
+ },
+ "qs": {
+ "version": "6.9.7"
+ },
+ "querystring": {
+ "version": "0.2.0"
+ },
+ "querystring-es3": {
+ "version": "0.2.1",
+ "dev": true
+ },
+ "querystringify": {
+ "version": "2.2.0",
+ "dev": true
+ },
+ "randombytes": {
+ "version": "2.1.0",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "^5.1.0"
+ }
+ },
+ "randomfill": {
+ "version": "1.0.4",
+ "dev": true,
+ "requires": {
+ "randombytes": "^2.0.5",
+ "safe-buffer": "^5.1.0"
+ }
+ },
+ "range-parser": {
+ "version": "1.2.1"
+ },
+ "raw-body": {
+ "version": "2.4.3",
+ "requires": {
+ "bytes": "3.1.2",
+ "http-errors": "1.8.1",
+ "iconv-lite": "0.4.24",
+ "unpipe": "1.0.0"
+ },
+ "dependencies": {
+ "bytes": {
+ "version": "3.1.2"
+ }
+ }
+ },
+ "raw-loader": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "loader-utils": "^1.1.0",
+ "schema-utils": "^1.0.0"
+ },
+ "dependencies": {
+ "json5": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "minimist": "^1.2.0"
+ }
+ },
+ "loader-utils": {
+ "version": "1.4.0",
+ "dev": true,
+ "requires": {
+ "big.js": "^5.2.2",
+ "emojis-list": "^3.0.0",
+ "json5": "^1.0.1"
+ }
+ },
+ "schema-utils": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "ajv": "^6.1.0",
+ "ajv-errors": "^1.0.0",
+ "ajv-keywords": "^3.1.0"
+ }
+ }
+ }
+ },
+ "rc": {
+ "version": "1.2.8",
+ "requires": {
+ "deep-extend": "^0.6.0",
+ "ini": "~1.3.0",
+ "minimist": "^1.2.0",
+ "strip-json-comments": "~2.0.1"
+ }
+ },
+ "react-is": {
+ "version": "17.0.2",
+ "dev": true
+ },
+ "read-chunk": {
+ "version": "3.2.0",
+ "requires": {
+ "pify": "^4.0.1",
+ "with-open-file": "^0.1.6"
+ }
+ },
+ "read-pkg": {
+ "version": "1.1.0",
+ "dev": true,
+ "requires": {
+ "load-json-file": "^1.0.0",
+ "normalize-package-data": "^2.3.2",
+ "path-type": "^1.0.0"
+ }
+ },
+ "read-pkg-up": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "find-up": "^1.0.0",
+ "read-pkg": "^1.0.0"
+ },
+ "dependencies": {
+ "find-up": {
+ "version": "1.1.2",
+ "dev": true,
+ "requires": {
+ "path-exists": "^2.0.0",
+ "pinkie-promise": "^2.0.0"
+ }
+ },
+ "path-exists": {
+ "version": "2.1.0",
+ "dev": true,
+ "requires": {
+ "pinkie-promise": "^2.0.0"
+ }
+ }
+ }
+ },
+ "readable-stream": {
+ "version": "1.1.14",
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.1",
+ "isarray": "0.0.1",
+ "string_decoder": "~0.10.x"
+ }
+ },
+ "readdirp": {
+ "version": "2.2.1",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "^4.1.11",
+ "micromatch": "^3.1.10",
+ "readable-stream": "^2.0.2"
+ },
+ "dependencies": {
+ "braces": {
+ "version": "2.3.2",
+ "dev": true,
+ "requires": {
+ "arr-flatten": "^1.1.0",
+ "array-unique": "^0.3.2",
+ "extend-shallow": "^2.0.1",
+ "fill-range": "^4.0.0",
+ "isobject": "^3.0.1",
+ "repeat-element": "^1.1.2",
+ "snapdragon": "^0.8.1",
+ "snapdragon-node": "^2.0.1",
+ "split-string": "^3.0.2",
+ "to-regex": "^3.0.1"
+ },
+ "dependencies": {
+ "extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "requires": {
+ "is-extendable": "^0.1.0"
+ }
+ }
+ }
+ },
+ "fill-range": {
+ "version": "4.0.0",
+ "dev": true,
+ "requires": {
+ "extend-shallow": "^2.0.1",
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1",
+ "to-regex-range": "^2.1.0"
+ },
+ "dependencies": {
+ "extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "requires": {
+ "is-extendable": "^0.1.0"
+ }
+ }
+ }
+ },
+ "is-number": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "kind-of": "^3.0.2"
+ },
+ "dependencies": {
+ "kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "requires": {
+ "is-buffer": "^1.1.5"
+ }
+ }
+ }
+ },
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "micromatch": {
+ "version": "3.1.10",
+ "dev": true,
+ "requires": {
+ "arr-diff": "^4.0.0",
+ "array-unique": "^0.3.2",
+ "braces": "^2.3.1",
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "extglob": "^2.0.4",
+ "fragment-cache": "^0.2.1",
+ "kind-of": "^6.0.2",
+ "nanomatch": "^1.2.9",
+ "object.pick": "^1.3.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.2"
+ }
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "to-regex-range": {
+ "version": "2.1.1",
+ "dev": true,
+ "requires": {
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1"
+ }
+ }
+ }
+ },
+ "recast": {
+ "version": "0.11.23",
+ "dev": true,
+ "requires": {
+ "ast-types": "0.9.6",
+ "esprima": "~3.1.0",
+ "private": "~0.1.5",
+ "source-map": "~0.5.0"
+ },
+ "dependencies": {
+ "esprima": {
+ "version": "3.1.3",
+ "dev": true
+ }
+ }
+ },
+ "rechoir": {
+ "version": "0.6.2",
+ "dev": true,
+ "requires": {
+ "resolve": "^1.1.6"
+ }
+ },
+ "redent": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "indent-string": "^2.1.0",
+ "strip-indent": "^1.0.1"
+ }
+ },
+ "referrer-policy": {
+ "version": "1.2.0"
+ },
+ "regenerate": {
+ "version": "1.4.2",
+ "dev": true
+ },
+ "regenerate-unicode-properties": {
+ "version": "10.0.1",
+ "dev": true,
+ "requires": {
+ "regenerate": "^1.4.2"
+ }
+ },
+ "regenerator-runtime": {
+ "version": "0.13.9"
+ },
+ "regenerator-transform": {
+ "version": "0.14.5",
+ "dev": true,
+ "requires": {
+ "@babel/runtime": "^7.8.4"
+ }
+ },
+ "regex-not": {
+ "version": "1.0.2",
+ "dev": true,
+ "requires": {
+ "extend-shallow": "^3.0.2",
+ "safe-regex": "^1.1.0"
+ }
+ },
+ "regexp.prototype.flags": {
+ "version": "1.4.1",
+ "dev": true,
+ "requires": {
+ "call-bind": "^1.0.2",
+ "define-properties": "^1.1.3"
+ }
+ },
+ "regexpp": {
+ "version": "3.2.0",
+ "dev": true
+ },
+ "regexpu-core": {
+ "version": "5.0.1",
+ "dev": true,
+ "requires": {
+ "regenerate": "^1.4.2",
+ "regenerate-unicode-properties": "^10.0.1",
+ "regjsgen": "^0.6.0",
+ "regjsparser": "^0.8.2",
+ "unicode-match-property-ecmascript": "^2.0.0",
+ "unicode-match-property-value-ecmascript": "^2.0.0"
+ }
+ },
+ "registry-auth-token": {
+ "version": "4.2.1",
+ "dev": true,
+ "requires": {
+ "rc": "^1.2.8"
+ }
+ },
+ "registry-url": {
+ "version": "5.1.0",
+ "dev": true,
+ "requires": {
+ "rc": "^1.2.8"
+ }
+ },
+ "regjsgen": {
+ "version": "0.6.0",
+ "dev": true
+ },
+ "regjsparser": {
+ "version": "0.8.4",
+ "dev": true,
+ "requires": {
+ "jsesc": "~0.5.0"
+ },
+ "dependencies": {
+ "jsesc": {
+ "version": "0.5.0",
+ "dev": true
+ }
+ }
+ },
+ "relateurl": {
+ "version": "0.2.7",
+ "dev": true
+ },
+ "remove-bom-buffer": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "is-buffer": "^1.1.5",
+ "is-utf8": "^0.2.1"
+ }
+ },
+ "remove-bom-stream": {
+ "version": "1.2.0",
+ "dev": true,
+ "requires": {
+ "remove-bom-buffer": "^3.0.0",
+ "safe-buffer": "^5.1.0",
+ "through2": "^2.0.3"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "through2": {
+ "version": "2.0.5",
+ "dev": true,
+ "requires": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "xtend": {
+ "version": "4.0.2",
+ "dev": true
+ }
+ }
+ },
+ "remove-trailing-separator": {
+ "version": "1.1.0",
+ "dev": true
+ },
+ "renderkid": {
+ "version": "2.0.7",
+ "dev": true,
+ "requires": {
+ "css-select": "^4.1.3",
+ "dom-converter": "^0.2.0",
+ "htmlparser2": "^6.1.0",
+ "lodash": "^4.17.21",
+ "strip-ansi": "^3.0.1"
+ },
+ "dependencies": {
+ "css-select": {
+ "version": "4.3.0",
+ "dev": true,
+ "requires": {
+ "boolbase": "^1.0.0",
+ "css-what": "^6.0.1",
+ "domhandler": "^4.3.1",
+ "domutils": "^2.8.0",
+ "nth-check": "^2.0.1"
+ }
+ },
+ "css-what": {
+ "version": "6.0.1",
+ "dev": true
+ },
+ "dom-serializer": {
+ "version": "1.3.2",
+ "dev": true,
+ "requires": {
+ "domelementtype": "^2.0.1",
+ "domhandler": "^4.2.0",
+ "entities": "^2.0.0"
+ }
+ },
+ "domelementtype": {
+ "version": "2.2.0",
+ "dev": true
+ },
+ "domhandler": {
+ "version": "4.3.1",
+ "dev": true,
+ "requires": {
+ "domelementtype": "^2.2.0"
+ }
+ },
+ "domutils": {
+ "version": "2.8.0",
+ "dev": true,
+ "requires": {
+ "dom-serializer": "^1.0.1",
+ "domelementtype": "^2.2.0",
+ "domhandler": "^4.2.0"
+ }
+ },
+ "entities": {
+ "version": "2.2.0",
+ "dev": true
+ },
+ "htmlparser2": {
+ "version": "6.1.0",
+ "dev": true,
+ "requires": {
+ "domelementtype": "^2.0.1",
+ "domhandler": "^4.0.0",
+ "domutils": "^2.5.2",
+ "entities": "^2.0.0"
+ }
+ },
+ "nth-check": {
+ "version": "2.0.1",
+ "dev": true,
+ "requires": {
+ "boolbase": "^1.0.0"
+ }
+ }
+ }
+ },
+ "repeat-element": {
+ "version": "1.1.4",
+ "dev": true
+ },
+ "repeat-string": {
+ "version": "1.6.1",
+ "dev": true
+ },
+ "repeating": {
+ "version": "2.0.1",
+ "dev": true,
+ "requires": {
+ "is-finite": "^1.0.0"
+ }
+ },
+ "replace-ext": {
+ "version": "1.0.1",
+ "dev": true
+ },
+ "replace-homedir": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "homedir-polyfill": "^1.0.1",
+ "is-absolute": "^1.0.0",
+ "remove-trailing-separator": "^1.1.0"
+ }
+ },
+ "request": {
+ "version": "2.88.2",
+ "requires": {
+ "aws-sign2": "~0.7.0",
+ "aws4": "^1.8.0",
+ "caseless": "~0.12.0",
+ "combined-stream": "~1.0.6",
+ "extend": "~3.0.2",
+ "forever-agent": "~0.6.1",
+ "form-data": "~2.3.2",
+ "har-validator": "~5.1.3",
+ "http-signature": "~1.2.0",
+ "is-typedarray": "~1.0.0",
+ "isstream": "~0.1.2",
+ "json-stringify-safe": "~5.0.1",
+ "mime-types": "~2.1.19",
+ "oauth-sign": "~0.9.0",
+ "performance-now": "^2.1.0",
+ "qs": "~6.5.2",
+ "safe-buffer": "^5.1.2",
+ "tough-cookie": "~2.5.0",
+ "tunnel-agent": "^0.6.0",
+ "uuid": "^3.3.2"
+ },
+ "dependencies": {
+ "form-data": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz",
+ "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==",
+ "requires": {
+ "asynckit": "^0.4.0",
+ "combined-stream": "^1.0.6",
+ "mime-types": "^2.1.12"
+ }
+ },
+ "qs": {
+ "version": "6.5.3"
+ }
+ }
+ },
+ "require-directory": {
+ "version": "2.1.1",
+ "dev": true
+ },
+ "require-from-string": {
+ "version": "2.0.2",
+ "dev": true
+ },
+ "require-main-filename": {
+ "version": "2.0.0",
+ "dev": true
+ },
+ "require-yaml": {
+ "version": "0.0.1",
+ "requires": {
+ "js-yaml": ""
+ }
+ },
+ "requires-port": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "resolve": {
+ "version": "1.22.0",
+ "dev": true,
+ "requires": {
+ "is-core-module": "^2.8.1",
+ "path-parse": "^1.0.7",
+ "supports-preserve-symlinks-flag": "^1.0.0"
+ }
+ },
+ "resolve-cwd": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "resolve-from": "^5.0.0"
+ }
+ },
+ "resolve-dir": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "expand-tilde": "^2.0.0",
+ "global-modules": "^1.0.0"
+ }
+ },
+ "resolve-from": {
+ "version": "5.0.0",
+ "dev": true
+ },
+ "resolve-options": {
+ "version": "1.1.0",
+ "dev": true,
+ "requires": {
+ "value-or-function": "^3.0.0"
+ }
+ },
+ "resolve-url": {
+ "version": "0.2.1",
+ "dev": true
+ },
+ "responselike": {
+ "version": "2.0.0",
+ "requires": {
+ "lowercase-keys": "^2.0.0"
+ }
+ },
+ "ret": {
+ "version": "0.1.15",
+ "dev": true
+ },
+ "retry": {
+ "version": "0.12.0",
+ "dev": true
+ },
+ "retry-request": {
+ "version": "4.2.2",
+ "requires": {
+ "debug": "^4.1.1",
+ "extend": "^3.0.2"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "4.3.4",
+ "requires": {
+ "ms": "2.1.2"
+ }
+ },
+ "ms": {
+ "version": "2.1.2"
+ }
+ }
+ },
+ "rfdc": {
+ "version": "1.3.0"
+ },
+ "rimraf": {
+ "version": "3.0.2",
+ "requires": {
+ "glob": "^7.1.3"
+ }
+ },
+ "ripemd160": {
+ "version": "2.0.2",
+ "dev": true,
+ "requires": {
+ "hash-base": "^3.0.0",
+ "inherits": "^2.0.1"
+ }
+ },
+ "rsvp": {
+ "version": "4.8.5",
+ "dev": true
+ },
+ "run-queue": {
+ "version": "1.0.3",
+ "dev": true,
+ "requires": {
+ "aproba": "^1.1.1"
+ }
+ },
+ "safe-buffer": {
+ "version": "5.1.2"
+ },
+ "safe-regex": {
+ "version": "1.1.0",
+ "dev": true,
+ "requires": {
+ "ret": "~0.1.10"
+ }
+ },
+ "safer-buffer": {
+ "version": "2.1.2"
+ },
+ "sane": {
+ "version": "4.1.0",
+ "dev": true,
+ "requires": {
+ "@cnakazawa/watch": "^1.0.3",
+ "anymatch": "^2.0.0",
+ "capture-exit": "^2.0.0",
+ "exec-sh": "^0.3.2",
+ "execa": "^1.0.0",
+ "fb-watchman": "^2.0.0",
+ "micromatch": "^3.1.4",
+ "minimist": "^1.1.1",
+ "walker": "~1.0.5"
+ },
+ "dependencies": {
+ "anymatch": {
+ "version": "2.0.0",
+ "dev": true,
+ "requires": {
+ "micromatch": "^3.1.4",
+ "normalize-path": "^2.1.1"
+ }
+ },
+ "braces": {
+ "version": "2.3.2",
+ "dev": true,
+ "requires": {
+ "arr-flatten": "^1.1.0",
+ "array-unique": "^0.3.2",
+ "extend-shallow": "^2.0.1",
+ "fill-range": "^4.0.0",
+ "isobject": "^3.0.1",
+ "repeat-element": "^1.1.2",
+ "snapdragon": "^0.8.1",
+ "snapdragon-node": "^2.0.1",
+ "split-string": "^3.0.2",
+ "to-regex": "^3.0.1"
+ },
+ "dependencies": {
+ "extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "requires": {
+ "is-extendable": "^0.1.0"
+ }
+ }
+ }
+ },
+ "cross-spawn": {
+ "version": "6.0.5",
+ "dev": true,
+ "requires": {
+ "nice-try": "^1.0.4",
+ "path-key": "^2.0.1",
+ "semver": "^5.5.0",
+ "shebang-command": "^1.2.0",
+ "which": "^1.2.9"
+ }
+ },
+ "execa": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "cross-spawn": "^6.0.0",
+ "get-stream": "^4.0.0",
+ "is-stream": "^1.1.0",
+ "npm-run-path": "^2.0.0",
+ "p-finally": "^1.0.0",
+ "signal-exit": "^3.0.0",
+ "strip-eof": "^1.0.0"
+ }
+ },
+ "fill-range": {
+ "version": "4.0.0",
+ "dev": true,
+ "requires": {
+ "extend-shallow": "^2.0.1",
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1",
+ "to-regex-range": "^2.1.0"
+ },
+ "dependencies": {
+ "extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "requires": {
+ "is-extendable": "^0.1.0"
+ }
+ }
+ }
+ },
+ "get-stream": {
+ "version": "4.1.0",
+ "dev": true,
+ "requires": {
+ "pump": "^3.0.0"
+ }
+ },
+ "is-number": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "kind-of": "^3.0.2"
+ },
+ "dependencies": {
+ "kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "requires": {
+ "is-buffer": "^1.1.5"
+ }
+ }
+ }
+ },
+ "is-stream": {
+ "version": "1.1.0",
+ "dev": true
+ },
+ "micromatch": {
+ "version": "3.1.10",
+ "dev": true,
+ "requires": {
+ "arr-diff": "^4.0.0",
+ "array-unique": "^0.3.2",
+ "braces": "^2.3.1",
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "extglob": "^2.0.4",
+ "fragment-cache": "^0.2.1",
+ "kind-of": "^6.0.2",
+ "nanomatch": "^1.2.9",
+ "object.pick": "^1.3.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.2"
+ }
+ },
+ "normalize-path": {
+ "version": "2.1.1",
+ "dev": true,
+ "requires": {
+ "remove-trailing-separator": "^1.0.1"
+ }
+ },
+ "npm-run-path": {
+ "version": "2.0.2",
+ "dev": true,
+ "requires": {
+ "path-key": "^2.0.0"
+ }
+ },
+ "path-key": {
+ "version": "2.0.1",
+ "dev": true
+ },
+ "semver": {
+ "version": "5.7.1",
+ "dev": true
+ },
+ "shebang-command": {
+ "version": "1.2.0",
+ "dev": true,
+ "requires": {
+ "shebang-regex": "^1.0.0"
+ }
+ },
+ "shebang-regex": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "to-regex-range": {
+ "version": "2.1.1",
+ "dev": true,
+ "requires": {
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1"
+ }
+ },
+ "which": {
+ "version": "1.3.1",
+ "dev": true,
+ "requires": {
+ "isexe": "^2.0.0"
+ }
+ }
+ }
+ },
+ "sass-graph": {
+ "version": "2.2.5",
+ "dev": true,
+ "requires": {
+ "glob": "^7.0.0",
+ "lodash": "^4.0.0",
+ "scss-tokenizer": "^0.2.3",
+ "yargs": "^13.3.2"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "4.1.1",
+ "dev": true
+ },
+ "ansi-styles": {
+ "version": "3.2.1",
+ "dev": true,
+ "requires": {
+ "color-convert": "^1.9.0"
+ }
+ },
+ "cliui": {
+ "version": "5.0.0",
+ "dev": true,
+ "requires": {
+ "string-width": "^3.1.0",
+ "strip-ansi": "^5.2.0",
+ "wrap-ansi": "^5.1.0"
+ }
+ },
+ "color-convert": {
+ "version": "1.9.3",
+ "dev": true,
+ "requires": {
+ "color-name": "1.1.3"
+ }
+ },
+ "color-name": {
+ "version": "1.1.3",
+ "dev": true
+ },
+ "emoji-regex": {
+ "version": "7.0.3",
+ "dev": true
+ },
+ "find-up": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "locate-path": "^3.0.0"
+ }
+ },
+ "is-fullwidth-code-point": {
+ "version": "2.0.0",
+ "dev": true
+ },
+ "locate-path": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "p-locate": "^3.0.0",
+ "path-exists": "^3.0.0"
+ }
+ },
+ "p-locate": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "p-limit": "^2.0.0"
+ }
+ },
+ "path-exists": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "string-width": {
+ "version": "3.1.0",
+ "dev": true,
+ "requires": {
+ "emoji-regex": "^7.0.1",
+ "is-fullwidth-code-point": "^2.0.0",
+ "strip-ansi": "^5.1.0"
+ }
+ },
+ "strip-ansi": {
+ "version": "5.2.0",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^4.1.0"
+ }
+ },
+ "wrap-ansi": {
+ "version": "5.1.0",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^3.2.0",
+ "string-width": "^3.0.0",
+ "strip-ansi": "^5.0.0"
+ }
+ },
+ "yargs": {
+ "version": "13.3.2",
+ "dev": true,
+ "requires": {
+ "cliui": "^5.0.0",
+ "find-up": "^3.0.0",
+ "get-caller-file": "^2.0.1",
+ "require-directory": "^2.1.1",
+ "require-main-filename": "^2.0.0",
+ "set-blocking": "^2.0.0",
+ "string-width": "^3.0.0",
+ "which-module": "^2.0.0",
+ "y18n": "^4.0.0",
+ "yargs-parser": "^13.1.2"
+ }
+ },
+ "yargs-parser": {
+ "version": "13.1.2",
+ "dev": true,
+ "requires": {
+ "camelcase": "^5.0.0",
+ "decamelize": "^1.2.0"
+ }
+ }
+ }
+ },
+ "sass-loader": {
+ "version": "7.3.1",
+ "dev": true,
+ "requires": {
+ "clone-deep": "^4.0.1",
+ "loader-utils": "^1.0.1",
+ "neo-async": "^2.5.0",
+ "pify": "^4.0.1",
+ "semver": "^6.3.0"
+ },
+ "dependencies": {
+ "json5": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "minimist": "^1.2.0"
+ }
+ },
+ "loader-utils": {
+ "version": "1.4.0",
+ "dev": true,
+ "requires": {
+ "big.js": "^5.2.2",
+ "emojis-list": "^3.0.0",
+ "json5": "^1.0.1"
+ }
+ },
+ "semver": {
+ "version": "6.3.0",
+ "dev": true
+ }
+ }
+ },
+ "sax": {
+ "version": "1.2.4"
+ },
+ "saxes": {
+ "version": "5.0.1",
+ "requires": {
+ "xmlchars": "^2.2.0"
+ }
+ },
+ "sb-promise-queue": {
+ "version": "2.1.0"
+ },
+ "sb-scandir": {
+ "version": "3.1.0",
+ "requires": {
+ "sb-promise-queue": "^2.1.0"
+ }
+ },
+ "schema-utils": {
+ "version": "2.7.1",
+ "dev": true,
+ "requires": {
+ "@types/json-schema": "^7.0.5",
+ "ajv": "^6.12.4",
+ "ajv-keywords": "^3.5.2"
+ }
+ },
+ "scss-tokenizer": {
+ "version": "0.2.3",
+ "dev": true,
+ "requires": {
+ "js-base64": "^2.1.8",
+ "source-map": "^0.4.2"
+ },
+ "dependencies": {
+ "source-map": {
+ "version": "0.4.4",
+ "dev": true,
+ "requires": {
+ "amdefine": ">=0.0.4"
+ }
+ }
+ }
+ },
+ "select-hose": {
+ "version": "2.0.0",
+ "dev": true
+ },
+ "selfsigned": {
+ "version": "1.10.14",
+ "dev": true,
+ "requires": {
+ "node-forge": "^0.10.0"
+ }
+ },
+ "semver": {
+ "version": "5.3.0"
+ },
+ "semver-diff": {
+ "version": "3.1.1",
+ "dev": true,
+ "requires": {
+ "semver": "^6.3.0"
+ },
+ "dependencies": {
+ "semver": {
+ "version": "6.3.0",
+ "dev": true
+ }
+ }
+ },
+ "semver-greatest-satisfied-range": {
+ "version": "1.1.0",
+ "dev": true,
+ "requires": {
+ "sver-compat": "^1.5.0"
+ }
+ },
+ "send": {
+ "version": "0.17.2",
+ "requires": {
+ "debug": "2.6.9",
+ "depd": "~1.1.2",
+ "destroy": "~1.0.4",
+ "encodeurl": "~1.0.2",
+ "escape-html": "~1.0.3",
+ "etag": "~1.8.1",
+ "fresh": "0.5.2",
+ "http-errors": "1.8.1",
+ "mime": "1.6.0",
+ "ms": "2.1.3",
+ "on-finished": "~2.3.0",
+ "range-parser": "~1.2.1",
+ "statuses": "~1.5.0"
+ },
+ "dependencies": {
+ "depd": {
+ "version": "1.1.2"
+ },
+ "ms": {
+ "version": "2.1.3"
+ }
+ }
+ },
+ "seq-queue": {
+ "version": "0.0.5",
+ "dev": true
+ },
+ "serve-favicon": {
+ "version": "2.5.0",
+ "requires": {
+ "etag": "~1.8.1",
+ "fresh": "0.5.2",
+ "ms": "2.1.1",
+ "parseurl": "~1.3.2",
+ "safe-buffer": "5.1.1"
+ },
+ "dependencies": {
+ "ms": {
+ "version": "2.1.1"
+ },
+ "safe-buffer": {
+ "version": "5.1.1"
+ }
+ }
+ },
+ "serve-index": {
+ "version": "1.9.1",
+ "dev": true,
+ "requires": {
+ "accepts": "~1.3.4",
+ "batch": "0.6.1",
+ "debug": "2.6.9",
+ "escape-html": "~1.0.3",
+ "http-errors": "~1.6.2",
+ "mime-types": "~2.1.17",
+ "parseurl": "~1.3.2"
+ },
+ "dependencies": {
+ "depd": {
+ "version": "1.1.2",
+ "dev": true
+ },
+ "http-errors": {
+ "version": "1.6.3",
+ "dev": true,
+ "requires": {
+ "depd": "~1.1.2",
+ "inherits": "2.0.3",
+ "setprototypeof": "1.1.0",
+ "statuses": ">= 1.4.0 < 2"
+ }
+ },
+ "inherits": {
+ "version": "2.0.3",
+ "dev": true
+ },
+ "setprototypeof": {
+ "version": "1.1.0",
+ "dev": true
+ }
+ }
+ },
+ "serve-static": {
+ "version": "1.14.2",
+ "requires": {
+ "encodeurl": "~1.0.2",
+ "escape-html": "~1.0.3",
+ "parseurl": "~1.3.3",
+ "send": "0.17.2"
+ }
+ },
+ "set-blocking": {
+ "version": "2.0.0"
+ },
+ "set-value": {
+ "version": "2.0.1",
+ "dev": true,
+ "requires": {
+ "extend-shallow": "^2.0.1",
+ "is-extendable": "^0.1.1",
+ "is-plain-object": "^2.0.3",
+ "split-string": "^3.0.1"
+ },
+ "dependencies": {
+ "extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "requires": {
+ "is-extendable": "^0.1.0"
+ }
+ },
+ "is-plain-object": {
+ "version": "2.0.4",
+ "dev": true,
+ "requires": {
+ "isobject": "^3.0.1"
+ }
+ }
+ }
+ },
+ "setimmediate": {
+ "version": "1.0.5"
+ },
+ "setprototypeof": {
+ "version": "1.2.0"
+ },
+ "sha.js": {
+ "version": "2.4.11",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.1",
+ "safe-buffer": "^5.0.1"
+ }
+ },
+ "shallow-clone": {
+ "version": "3.0.1",
+ "dev": true,
+ "requires": {
+ "kind-of": "^6.0.2"
+ }
+ },
+ "sharp": {
+ "version": "0.31.2",
+ "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.31.2.tgz",
+ "integrity": "sha512-DUdNVEXgS5A97cTagSLIIp8dUZ/lZtk78iNVZgHdHbx1qnQR7JAHY0BnXnwwH39Iw+VKhO08CTYhIg0p98vQ5Q==",
+ "requires": {
+ "color": "^4.2.3",
+ "detect-libc": "^2.0.1",
+ "node-addon-api": "^5.0.0",
+ "prebuild-install": "^7.1.1",
+ "semver": "^7.3.8",
+ "simple-get": "^4.0.1",
+ "tar-fs": "^2.1.1",
+ "tunnel-agent": "^0.6.0"
+ },
+ "dependencies": {
+ "lru-cache": {
+ "version": "6.0.0",
+ "requires": {
+ "yallist": "^4.0.0"
+ }
+ },
+ "semver": {
+ "version": "7.3.8",
+ "requires": {
+ "lru-cache": "^6.0.0"
+ }
+ },
+ "yallist": {
+ "version": "4.0.0"
+ }
+ }
+ },
+ "shebang-command": {
+ "version": "2.0.0",
+ "requires": {
+ "shebang-regex": "^3.0.0"
+ }
+ },
+ "shebang-regex": {
+ "version": "3.0.0"
+ },
+ "shell-escape": {
+ "version": "0.2.0"
+ },
+ "shellwords": {
+ "version": "0.1.1",
+ "dev": true,
+ "optional": true
+ },
+ "shimmer": {
+ "version": "1.2.1"
+ },
+ "shortid": {
+ "version": "2.2.16",
+ "requires": {
+ "nanoid": "^2.1.0"
+ }
+ },
+ "side-channel": {
+ "version": "1.0.4",
+ "requires": {
+ "call-bind": "^1.0.0",
+ "get-intrinsic": "^1.0.2",
+ "object-inspect": "^1.9.0"
+ }
+ },
+ "sigmund": {
+ "version": "1.0.1"
+ },
+ "signal-exit": {
+ "version": "3.0.7"
+ },
+ "simple-concat": {
+ "version": "1.0.1"
+ },
+ "simple-get": {
+ "version": "4.0.1",
+ "requires": {
+ "decompress-response": "^6.0.0",
+ "once": "^1.3.1",
+ "simple-concat": "^1.0.0"
+ },
+ "dependencies": {
+ "decompress-response": {
+ "version": "6.0.0",
+ "requires": {
+ "mimic-response": "^3.1.0"
+ }
+ },
+ "mimic-response": {
+ "version": "3.1.0"
+ }
+ }
+ },
+ "simple-swizzle": {
+ "version": "0.2.2",
+ "requires": {
+ "is-arrayish": "^0.3.1"
+ }
+ },
+ "simple-update-notifier": {
+ "version": "1.0.7",
+ "dev": true,
+ "requires": {
+ "semver": "~7.0.0"
+ },
+ "dependencies": {
+ "semver": {
+ "version": "7.0.0",
+ "dev": true
+ }
+ }
+ },
+ "sisteransi": {
+ "version": "1.0.5",
+ "dev": true
+ },
+ "slash": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "slice-ansi": {
+ "version": "4.0.0",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^4.0.0",
+ "astral-regex": "^2.0.0",
+ "is-fullwidth-code-point": "^3.0.0"
+ },
+ "dependencies": {
+ "is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "dev": true
+ }
+ }
+ },
+ "smbhash": {
+ "version": "0.0.1",
+ "requires": {
+ "bigdecimal": ">= 0.6.0"
+ }
+ },
+ "smtp-connection": {
+ "version": "2.12.0",
+ "requires": {
+ "httpntlm": "1.6.1",
+ "nodemailer-shared": "1.1.0"
+ }
+ },
+ "snakeize": {
+ "version": "0.1.0"
+ },
+ "snapdragon": {
+ "version": "0.8.2",
+ "dev": true,
+ "requires": {
+ "base": "^0.11.1",
+ "debug": "^2.2.0",
+ "define-property": "^0.2.5",
+ "extend-shallow": "^2.0.1",
+ "map-cache": "^0.2.2",
+ "source-map": "^0.5.6",
+ "source-map-resolve": "^0.5.0",
+ "use": "^3.1.0"
+ },
+ "dependencies": {
+ "define-property": {
+ "version": "0.2.5",
+ "dev": true,
+ "requires": {
+ "is-descriptor": "^0.1.0"
+ }
+ },
+ "extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "requires": {
+ "is-extendable": "^0.1.0"
+ }
+ }
+ }
+ },
+ "snapdragon-node": {
+ "version": "2.1.1",
+ "dev": true,
+ "requires": {
+ "define-property": "^1.0.0",
+ "isobject": "^3.0.0",
+ "snapdragon-util": "^3.0.1"
+ },
+ "dependencies": {
+ "define-property": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "is-descriptor": "^1.0.0"
+ }
+ },
+ "is-accessor-descriptor": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "kind-of": "^6.0.0"
+ }
+ },
+ "is-data-descriptor": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "kind-of": "^6.0.0"
+ }
+ },
+ "is-descriptor": {
+ "version": "1.0.2",
+ "dev": true,
+ "requires": {
+ "is-accessor-descriptor": "^1.0.0",
+ "is-data-descriptor": "^1.0.0",
+ "kind-of": "^6.0.2"
+ }
+ }
+ }
+ },
+ "snapdragon-util": {
+ "version": "3.0.1",
+ "dev": true,
+ "requires": {
+ "kind-of": "^3.2.0"
+ },
+ "dependencies": {
+ "kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "requires": {
+ "is-buffer": "^1.1.5"
+ }
+ }
+ }
+ },
+ "sockjs": {
+ "version": "0.3.24",
+ "dev": true,
+ "requires": {
+ "faye-websocket": "^0.11.3",
+ "uuid": "^8.3.2",
+ "websocket-driver": "^0.7.4"
+ },
+ "dependencies": {
+ "uuid": {
+ "version": "8.3.2",
+ "dev": true
+ }
+ }
+ },
+ "sockjs-client": {
+ "version": "1.6.0",
+ "dev": true,
+ "requires": {
+ "debug": "^3.2.7",
+ "eventsource": "^1.1.0",
+ "faye-websocket": "^0.11.4",
+ "inherits": "^2.0.4",
+ "url-parse": "^1.5.10"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "3.2.7",
+ "dev": true,
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "ms": {
+ "version": "2.1.3",
+ "dev": true
+ }
+ }
+ },
+ "source-list-map": {
+ "version": "2.0.1",
+ "dev": true
+ },
+ "source-map": {
+ "version": "0.5.6",
+ "dev": true
+ },
+ "source-map-resolve": {
+ "version": "0.5.3",
+ "dev": true,
+ "requires": {
+ "atob": "^2.1.2",
+ "decode-uri-component": "^0.2.0",
+ "resolve-url": "^0.2.1",
+ "source-map-url": "^0.4.0",
+ "urix": "^0.1.0"
+ }
+ },
+ "source-map-support": {
+ "version": "0.5.21",
+ "dev": true,
+ "requires": {
+ "buffer-from": "^1.0.0",
+ "source-map": "^0.6.0"
+ },
+ "dependencies": {
+ "source-map": {
+ "version": "0.6.1",
+ "dev": true
+ }
+ }
+ },
+ "source-map-url": {
+ "version": "0.4.1",
+ "dev": true
+ },
+ "sparkles": {
+ "version": "1.0.1",
+ "dev": true
+ },
+ "spdx-correct": {
+ "version": "3.1.1",
+ "dev": true,
+ "requires": {
+ "spdx-expression-parse": "^3.0.0",
+ "spdx-license-ids": "^3.0.0"
+ }
+ },
+ "spdx-exceptions": {
+ "version": "2.3.0",
+ "dev": true
+ },
+ "spdx-expression-parse": {
+ "version": "3.0.1",
+ "dev": true,
+ "requires": {
+ "spdx-exceptions": "^2.1.0",
+ "spdx-license-ids": "^3.0.0"
+ }
+ },
+ "spdx-license-ids": {
+ "version": "3.0.11",
+ "dev": true
+ },
+ "spdy": {
+ "version": "4.0.2",
+ "dev": true,
+ "requires": {
+ "debug": "^4.1.0",
+ "handle-thing": "^2.0.0",
+ "http-deceiver": "^1.2.7",
+ "select-hose": "^2.0.0",
+ "spdy-transport": "^3.0.0"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "4.3.4",
+ "dev": true,
+ "requires": {
+ "ms": "2.1.2"
+ }
+ },
+ "ms": {
+ "version": "2.1.2",
+ "dev": true
+ }
+ }
+ },
+ "spdy-transport": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "debug": "^4.1.0",
+ "detect-node": "^2.0.4",
+ "hpack.js": "^2.1.6",
+ "obuf": "^1.1.2",
+ "readable-stream": "^3.0.6",
+ "wbuf": "^1.7.3"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "4.3.4",
+ "dev": true,
+ "requires": {
+ "ms": "2.1.2"
+ }
+ },
+ "ms": {
+ "version": "2.1.2",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "3.6.0",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ }
+ },
+ "safe-buffer": {
+ "version": "5.2.1",
+ "dev": true
+ },
+ "string_decoder": {
+ "version": "1.3.0",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.2.0"
+ }
+ }
+ }
+ },
+ "split-array-stream": {
+ "version": "2.0.0",
+ "requires": {
+ "is-stream-ended": "^0.1.4"
+ }
+ },
+ "split-string": {
+ "version": "3.1.0",
+ "dev": true,
+ "requires": {
+ "extend-shallow": "^3.0.0"
+ }
+ },
+ "sprintf-js": {
+ "version": "1.1.2"
+ },
+ "sqlstring": {
+ "version": "2.3.1"
+ },
+ "sse": {
+ "version": "0.0.8",
+ "requires": {
+ "options": "0.0.6"
+ }
+ },
+ "ssh2": {
+ "version": "0.8.9",
+ "requires": {
+ "ssh2-streams": "~0.4.10"
+ }
+ },
+ "ssh2-streams": {
+ "version": "0.4.10",
+ "requires": {
+ "asn1": "~0.2.0",
+ "bcrypt-pbkdf": "^1.0.2",
+ "streamsearch": "~0.1.2"
+ }
+ },
+ "sshpk": {
+ "version": "1.17.0",
+ "requires": {
+ "asn1": "~0.2.3",
+ "assert-plus": "^1.0.0",
+ "bcrypt-pbkdf": "^1.0.0",
+ "dashdash": "^1.12.0",
+ "ecc-jsbn": "~0.1.1",
+ "getpass": "^0.1.1",
+ "jsbn": "~0.1.0",
+ "safer-buffer": "^2.0.2",
+ "tweetnacl": "~0.14.0"
+ }
+ },
+ "ssri": {
+ "version": "6.0.2",
+ "dev": true,
+ "requires": {
+ "figgy-pudding": "^3.5.1"
+ }
+ },
+ "stable": {
+ "version": "0.1.8"
+ },
+ "stack-chain": {
+ "version": "1.3.7"
+ },
+ "stack-trace": {
+ "version": "0.0.10",
+ "dev": true
+ },
+ "stack-utils": {
+ "version": "2.0.5",
+ "dev": true,
+ "requires": {
+ "escape-string-regexp": "^2.0.0"
+ }
+ },
+ "static-extend": {
+ "version": "0.1.2",
+ "dev": true,
+ "requires": {
+ "define-property": "^0.2.5",
+ "object-copy": "^0.1.0"
+ },
+ "dependencies": {
+ "define-property": {
+ "version": "0.2.5",
+ "dev": true,
+ "requires": {
+ "is-descriptor": "^0.1.0"
+ }
+ }
+ }
+ },
+ "statuses": {
+ "version": "1.5.0"
+ },
+ "stdout-stream": {
+ "version": "1.4.1",
+ "dev": true,
+ "requires": {
+ "readable-stream": "^2.0.1"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ }
+ }
+ },
+ "stream-browserify": {
+ "version": "2.0.2",
+ "dev": true,
+ "requires": {
+ "inherits": "~2.0.1",
+ "readable-stream": "^2.0.2"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ }
+ }
+ },
+ "stream-combiner": {
+ "version": "0.0.2",
+ "requires": {
+ "duplexer": "~0.0.3"
+ }
+ },
+ "stream-each": {
+ "version": "1.2.3",
+ "dev": true,
+ "requires": {
+ "end-of-stream": "^1.1.0",
+ "stream-shift": "^1.0.0"
+ }
+ },
+ "stream-events": {
+ "version": "1.0.5",
+ "requires": {
+ "stubs": "^3.0.0"
+ }
+ },
+ "stream-exhaust": {
+ "version": "1.0.2",
+ "dev": true
+ },
+ "stream-http": {
+ "version": "2.8.3",
+ "dev": true,
+ "requires": {
+ "builtin-status-codes": "^3.0.0",
+ "inherits": "^2.0.1",
+ "readable-stream": "^2.3.6",
+ "to-arraybuffer": "^1.0.0",
+ "xtend": "^4.0.0"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "xtend": {
+ "version": "4.0.2",
+ "dev": true
+ }
+ }
+ },
+ "stream-serializer": {
+ "version": "1.1.2"
+ },
+ "stream-shift": {
+ "version": "1.0.1"
+ },
+ "streamroller": {
+ "version": "3.1.3",
+ "requires": {
+ "date-format": "^4.0.14",
+ "debug": "^4.3.4",
+ "fs-extra": "^8.1.0"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "4.3.4",
+ "requires": {
+ "ms": "2.1.2"
+ }
+ },
+ "fs-extra": {
+ "version": "8.1.0",
+ "requires": {
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^4.0.0",
+ "universalify": "^0.1.0"
+ }
+ },
+ "ms": {
+ "version": "2.1.2"
+ }
+ }
+ },
+ "streamsearch": {
+ "version": "0.1.2"
+ },
+ "string_decoder": {
+ "version": "0.10.31"
+ },
+ "string-length": {
+ "version": "4.0.2",
+ "dev": true,
+ "requires": {
+ "char-regex": "^1.0.2",
+ "strip-ansi": "^6.0.0"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "5.0.1",
+ "dev": true
+ },
+ "strip-ansi": {
+ "version": "6.0.1",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^5.0.1"
+ }
+ }
+ }
+ },
+ "string-width": {
+ "version": "1.0.2",
+ "requires": {
+ "code-point-at": "^1.0.0",
+ "is-fullwidth-code-point": "^1.0.0",
+ "strip-ansi": "^3.0.0"
+ }
+ },
+ "string.prototype.trimend": {
+ "version": "1.0.4",
+ "dev": true,
+ "requires": {
+ "call-bind": "^1.0.2",
+ "define-properties": "^1.1.3"
+ }
+ },
+ "string.prototype.trimstart": {
+ "version": "1.0.4",
+ "dev": true,
+ "requires": {
+ "call-bind": "^1.0.2",
+ "define-properties": "^1.1.3"
+ }
+ },
+ "strip-ansi": {
+ "version": "3.0.1",
+ "requires": {
+ "ansi-regex": "^2.0.0"
+ }
+ },
+ "strip-eof": {
+ "version": "1.0.0"
+ },
+ "strip-final-newline": {
+ "version": "2.0.0"
+ },
+ "strip-indent": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "get-stdin": "^4.0.1"
+ }
+ },
+ "strip-json-comments": {
+ "version": "2.0.1"
+ },
+ "strong-error-handler": {
+ "version": "2.3.2",
+ "requires": {
+ "accepts": "^1.3.3",
+ "debug": "^2.2.0",
+ "ejs": "^2.5.7",
+ "http-status": "^1.0.0",
+ "js2xmlparser": "^3.0.0",
+ "strong-globalize": "^3.1.0"
+ },
+ "dependencies": {
+ "cross-spawn": {
+ "version": "5.1.0",
+ "requires": {
+ "lru-cache": "^4.0.1",
+ "shebang-command": "^1.2.0",
+ "which": "^1.2.9"
+ }
+ },
+ "execa": {
+ "version": "0.7.0",
+ "requires": {
+ "cross-spawn": "^5.0.1",
+ "get-stream": "^3.0.0",
+ "is-stream": "^1.1.0",
+ "npm-run-path": "^2.0.0",
+ "p-finally": "^1.0.0",
+ "signal-exit": "^3.0.0",
+ "strip-eof": "^1.0.0"
+ }
+ },
+ "get-stream": {
+ "version": "3.0.0"
+ },
+ "invert-kv": {
+ "version": "1.0.0"
+ },
+ "is-stream": {
+ "version": "1.1.0"
+ },
+ "lcid": {
+ "version": "1.0.0",
+ "requires": {
+ "invert-kv": "^1.0.0"
+ }
+ },
+ "lru-cache": {
+ "version": "4.1.5",
+ "requires": {
+ "pseudomap": "^1.0.2",
+ "yallist": "^2.1.2"
+ }
+ },
+ "mem": {
+ "version": "1.1.0",
+ "requires": {
+ "mimic-fn": "^1.0.0"
+ }
+ },
+ "mimic-fn": {
+ "version": "1.2.0"
+ },
+ "ms": {
+ "version": "2.1.3"
+ },
+ "npm-run-path": {
+ "version": "2.0.2",
+ "requires": {
+ "path-key": "^2.0.0"
+ }
+ },
+ "os-locale": {
+ "version": "2.1.0",
+ "requires": {
+ "execa": "^0.7.0",
+ "lcid": "^1.0.0",
+ "mem": "^1.1.0"
+ }
+ },
+ "path-key": {
+ "version": "2.0.1"
+ },
+ "shebang-command": {
+ "version": "1.2.0",
+ "requires": {
+ "shebang-regex": "^1.0.0"
+ }
+ },
+ "shebang-regex": {
+ "version": "1.0.0"
+ },
+ "strong-globalize": {
+ "version": "3.3.0",
+ "requires": {
+ "accept-language": "^3.0.18",
+ "async": "^2.4.1",
+ "debug": "^3.1.0",
+ "esprima": "^4.0.0",
+ "estraverse": "^4.2.0",
+ "g11n-pipeline": "^2.0.1",
+ "globalize": "^1.3.0",
+ "htmlparser2": "^3.9.2",
+ "lodash": "^4.17.4",
+ "md5": "^2.2.1",
+ "mkdirp": "^0.5.1",
+ "mktmpdir": "^0.1.1",
+ "optional": "^0.1.3",
+ "os-locale": "^2.0.0",
+ "posix-getopt": "^1.2.0",
+ "word-count": "^0.2.2",
+ "xtend": "^4.0.1",
+ "yamljs": "^0.3.0"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "3.2.7",
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ }
+ }
+ },
+ "which": {
+ "version": "1.3.1",
+ "requires": {
+ "isexe": "^2.0.0"
+ }
+ },
+ "xtend": {
+ "version": "4.0.2"
+ },
+ "yallist": {
+ "version": "2.1.2"
+ }
+ }
+ },
+ "strong-globalize": {
+ "version": "4.1.3",
+ "requires": {
+ "accept-language": "^3.0.18",
+ "debug": "^4.1.1",
+ "globalize": "^1.4.2",
+ "lodash": "^4.17.4",
+ "md5": "^2.2.1",
+ "mkdirp": "^0.5.1",
+ "os-locale": "^3.1.0",
+ "yamljs": "^0.3.0"
+ },
+ "dependencies": {
+ "cross-spawn": {
+ "version": "6.0.5",
+ "requires": {
+ "nice-try": "^1.0.4",
+ "path-key": "^2.0.1",
+ "semver": "^5.5.0",
+ "shebang-command": "^1.2.0",
+ "which": "^1.2.9"
+ }
+ },
+ "debug": {
+ "version": "4.3.4",
+ "requires": {
+ "ms": "2.1.2"
+ }
+ },
+ "execa": {
+ "version": "1.0.0",
+ "requires": {
+ "cross-spawn": "^6.0.0",
+ "get-stream": "^4.0.0",
+ "is-stream": "^1.1.0",
+ "npm-run-path": "^2.0.0",
+ "p-finally": "^1.0.0",
+ "signal-exit": "^3.0.0",
+ "strip-eof": "^1.0.0"
+ }
+ },
+ "get-stream": {
+ "version": "4.1.0",
+ "requires": {
+ "pump": "^3.0.0"
+ }
+ },
+ "invert-kv": {
+ "version": "2.0.0"
+ },
+ "is-stream": {
+ "version": "1.1.0"
+ },
+ "lcid": {
+ "version": "2.0.0",
+ "requires": {
+ "invert-kv": "^2.0.0"
+ }
+ },
+ "mem": {
+ "version": "4.3.0",
+ "requires": {
+ "map-age-cleaner": "^0.1.1",
+ "mimic-fn": "^2.0.0",
+ "p-is-promise": "^2.0.0"
+ }
+ },
+ "ms": {
+ "version": "2.1.2"
+ },
+ "npm-run-path": {
+ "version": "2.0.2",
+ "requires": {
+ "path-key": "^2.0.0"
+ }
+ },
+ "os-locale": {
+ "version": "3.1.0",
+ "requires": {
+ "execa": "^1.0.0",
+ "lcid": "^2.0.0",
+ "mem": "^4.0.0"
+ }
+ },
+ "path-key": {
+ "version": "2.0.1"
+ },
+ "semver": {
+ "version": "5.7.1"
+ },
+ "shebang-command": {
+ "version": "1.2.0",
+ "requires": {
+ "shebang-regex": "^1.0.0"
+ }
+ },
+ "shebang-regex": {
+ "version": "1.0.0"
+ },
+ "which": {
+ "version": "1.3.1",
+ "requires": {
+ "isexe": "^2.0.0"
+ }
+ }
+ }
+ },
+ "strong-remoting": {
+ "version": "3.17.0",
+ "requires": {
+ "async": "^3.1.0",
+ "body-parser": "^1.12.4",
+ "debug": "^4.1.1",
+ "depd": "^2.0.0",
+ "escape-string-regexp": "^2.0.0",
+ "eventemitter2": "^5.0.1",
+ "express": "4.x",
+ "inflection": "^1.7.1",
+ "jayson": "^2.0.5",
+ "js2xmlparser": "^3.0.0",
+ "loopback-datatype-geopoint": "^1.0.0",
+ "loopback-phase": "^3.1.0",
+ "mux-demux": "^3.7.9",
+ "qs": "^6.2.1",
+ "request": "^2.83.0",
+ "sse": "0.0.8",
+ "strong-error-handler": "^3.0.0",
+ "strong-globalize": "^5.0.2",
+ "traverse": "^0.6.6",
+ "xml2js": "^0.4.8"
+ },
+ "dependencies": {
+ "async": {
+ "version": "3.2.3"
+ },
+ "debug": {
+ "version": "4.3.4",
+ "requires": {
+ "ms": "2.1.2"
+ }
+ },
+ "ejs": {
+ "version": "3.1.6",
+ "requires": {
+ "jake": "^10.6.1"
+ }
+ },
+ "mkdirp": {
+ "version": "1.0.4"
+ },
+ "ms": {
+ "version": "2.1.2"
+ },
+ "strong-error-handler": {
+ "version": "3.5.0",
+ "requires": {
+ "@types/express": "^4.16.0",
+ "accepts": "^1.3.3",
+ "debug": "^4.1.1",
+ "ejs": "^3.1.3",
+ "fast-safe-stringify": "^2.0.6",
+ "http-status": "^1.1.2",
+ "js2xmlparser": "^4.0.0",
+ "strong-globalize": "^6.0.1"
+ },
+ "dependencies": {
+ "js2xmlparser": {
+ "version": "4.0.2",
+ "requires": {
+ "xmlcreate": "^2.0.4"
+ }
+ },
+ "strong-globalize": {
+ "version": "6.0.5",
+ "requires": {
+ "accept-language": "^3.0.18",
+ "debug": "^4.2.0",
+ "globalize": "^1.6.0",
+ "lodash": "^4.17.20",
+ "md5": "^2.3.0",
+ "mkdirp": "^1.0.4",
+ "os-locale": "^5.0.0",
+ "yamljs": "^0.3.0"
+ }
+ }
+ }
+ },
+ "strong-globalize": {
+ "version": "5.1.0",
+ "requires": {
+ "accept-language": "^3.0.18",
+ "debug": "^4.1.1",
+ "globalize": "^1.5.0",
+ "lodash": "^4.17.15",
+ "md5": "^2.2.1",
+ "mkdirp": "^0.5.5",
+ "os-locale": "^5.0.0",
+ "yamljs": "^0.3.0"
+ },
+ "dependencies": {
+ "mkdirp": {
+ "version": "0.5.6",
+ "requires": {
+ "minimist": "^1.2.6"
+ }
+ }
+ }
+ },
+ "xmlcreate": {
+ "version": "2.0.4"
+ }
+ }
+ },
+ "stubs": {
+ "version": "3.0.0"
+ },
+ "style-loader": {
+ "version": "0.23.1",
+ "dev": true,
+ "requires": {
+ "loader-utils": "^1.1.0",
+ "schema-utils": "^1.0.0"
+ },
+ "dependencies": {
+ "json5": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "minimist": "^1.2.0"
+ }
+ },
+ "loader-utils": {
+ "version": "1.4.0",
+ "dev": true,
+ "requires": {
+ "big.js": "^5.2.2",
+ "emojis-list": "^3.0.0",
+ "json5": "^1.0.1"
+ }
+ },
+ "schema-utils": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "ajv": "^6.1.0",
+ "ajv-errors": "^1.0.0",
+ "ajv-keywords": "^3.1.0"
+ }
+ }
+ }
+ },
+ "supports-color": {
+ "version": "7.2.0",
+ "requires": {
+ "has-flag": "^4.0.0"
+ }
+ },
+ "supports-hyperlinks": {
+ "version": "2.2.0",
+ "dev": true,
+ "requires": {
+ "has-flag": "^4.0.0",
+ "supports-color": "^7.0.0"
+ }
+ },
+ "supports-preserve-symlinks-flag": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "sver-compat": {
+ "version": "1.5.0",
+ "dev": true,
+ "requires": {
+ "es6-iterator": "^2.0.1",
+ "es6-symbol": "^3.1.1"
+ }
+ },
+ "swagger-client": {
+ "version": "3.18.4",
+ "requires": {
+ "@babel/runtime-corejs3": "^7.11.2",
+ "btoa": "^1.2.1",
+ "cookie": "~0.4.1",
+ "cross-fetch": "^3.1.5",
+ "deepmerge": "~4.2.2",
+ "fast-json-patch": "^3.0.0-1",
+ "form-data-encoder": "^1.4.3",
+ "formdata-node": "^4.0.0",
+ "is-plain-object": "^5.0.0",
+ "js-yaml": "^4.1.0",
+ "lodash": "^4.17.21",
+ "qs": "^6.10.2",
+ "traverse": "~0.6.6",
+ "url": "~0.11.0"
+ },
+ "dependencies": {
+ "fast-json-patch": {
+ "version": "3.1.1"
+ },
+ "punycode": {
+ "version": "1.3.2"
+ },
+ "qs": {
+ "version": "6.10.3",
+ "requires": {
+ "side-channel": "^1.0.4"
+ }
+ },
+ "url": {
+ "version": "0.11.0",
+ "requires": {
+ "punycode": "1.3.2",
+ "querystring": "0.2.0"
+ }
+ }
+ }
+ },
+ "swagger-ui": {
+ "version": "2.2.10"
+ },
+ "symbol-tree": {
+ "version": "3.2.4"
+ },
+ "table": {
+ "version": "6.8.0",
+ "dev": true,
+ "requires": {
+ "ajv": "^8.0.1",
+ "lodash.truncate": "^4.4.2",
+ "slice-ansi": "^4.0.0",
+ "string-width": "^4.2.3",
+ "strip-ansi": "^6.0.1"
+ },
+ "dependencies": {
+ "ajv": {
+ "version": "8.11.0",
+ "dev": true,
+ "requires": {
+ "fast-deep-equal": "^3.1.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2",
+ "uri-js": "^4.2.2"
+ }
+ },
+ "ansi-regex": {
+ "version": "5.0.1",
+ "dev": true
+ },
+ "is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "json-schema-traverse": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "string-width": {
+ "version": "4.2.3",
+ "dev": true,
+ "requires": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ }
+ },
+ "strip-ansi": {
+ "version": "6.0.1",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^5.0.1"
+ }
+ }
+ }
+ },
+ "tapable": {
+ "version": "1.1.3",
+ "dev": true
+ },
+ "tar": {
+ "version": "2.2.2",
+ "dev": true,
+ "requires": {
+ "block-stream": "*",
+ "fstream": "^1.0.12",
+ "inherits": "2"
+ }
+ },
+ "tar-fs": {
+ "version": "2.1.1",
+ "requires": {
+ "chownr": "^1.1.1",
+ "mkdirp-classic": "^0.5.2",
+ "pump": "^3.0.0",
+ "tar-stream": "^2.1.4"
+ }
+ },
+ "tar-stream": {
+ "version": "2.2.0",
+ "requires": {
+ "bl": "^4.0.3",
+ "end-of-stream": "^1.4.1",
+ "fs-constants": "^1.0.0",
+ "inherits": "^2.0.3",
+ "readable-stream": "^3.1.1"
+ },
+ "dependencies": {
+ "base64-js": {
+ "version": "1.5.1"
+ },
+ "bl": {
+ "version": "4.1.0",
+ "requires": {
+ "buffer": "^5.5.0",
+ "inherits": "^2.0.4",
+ "readable-stream": "^3.4.0"
+ }
+ },
+ "buffer": {
+ "version": "5.7.1",
+ "requires": {
+ "base64-js": "^1.3.1",
+ "ieee754": "^1.1.13"
+ }
+ },
+ "readable-stream": {
+ "version": "3.6.0",
+ "requires": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ }
+ },
+ "safe-buffer": {
+ "version": "5.2.1"
+ },
+ "string_decoder": {
+ "version": "1.3.0",
+ "requires": {
+ "safe-buffer": "~5.2.0"
+ }
+ }
+ }
+ },
+ "teeny-request": {
+ "version": "3.11.3",
+ "requires": {
+ "https-proxy-agent": "^2.2.1",
+ "node-fetch": "^2.2.0",
+ "uuid": "^3.3.2"
+ }
+ },
+ "terminal-link": {
+ "version": "2.1.1",
+ "dev": true,
+ "requires": {
+ "ansi-escapes": "^4.2.1",
+ "supports-hyperlinks": "^2.0.0"
+ }
+ },
+ "terser": {
+ "version": "4.8.0",
+ "dev": true,
+ "requires": {
+ "commander": "^2.20.0",
+ "source-map": "~0.6.1",
+ "source-map-support": "~0.5.12"
+ },
+ "dependencies": {
+ "source-map": {
+ "version": "0.6.1",
+ "dev": true
+ }
+ }
+ },
+ "terser-webpack-plugin": {
+ "version": "1.4.5",
+ "dev": true,
+ "requires": {
+ "cacache": "^12.0.2",
+ "find-cache-dir": "^2.1.0",
+ "is-wsl": "^1.1.0",
+ "schema-utils": "^1.0.0",
+ "serialize-javascript": "^4.0.0",
+ "source-map": "^0.6.1",
+ "terser": "^4.1.2",
+ "webpack-sources": "^1.4.0",
+ "worker-farm": "^1.7.0"
+ },
+ "dependencies": {
+ "is-wsl": {
+ "version": "1.1.0",
+ "dev": true
+ },
+ "schema-utils": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "ajv": "^6.1.0",
+ "ajv-errors": "^1.0.0",
+ "ajv-keywords": "^3.1.0"
+ }
+ },
+ "serialize-javascript": {
+ "version": "4.0.0",
+ "dev": true,
+ "requires": {
+ "randombytes": "^2.1.0"
+ }
+ },
+ "source-map": {
+ "version": "0.6.1",
+ "dev": true
+ }
+ }
+ },
+ "test-exclude": {
+ "version": "6.0.0",
+ "dev": true,
+ "requires": {
+ "@istanbuljs/schema": "^0.1.2",
+ "glob": "^7.1.4",
+ "minimatch": "^3.0.4"
+ }
+ },
+ "text-table": {
+ "version": "0.2.0",
+ "dev": true
+ },
+ "throat": {
+ "version": "5.0.0",
+ "dev": true
+ },
+ "through": {
+ "version": "2.3.8"
+ },
+ "through2": {
+ "version": "3.0.2",
+ "requires": {
+ "inherits": "^2.0.4",
+ "readable-stream": "2 || 3"
+ },
+ "dependencies": {
+ "readable-stream": {
+ "version": "3.6.0",
+ "requires": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ }
+ },
+ "safe-buffer": {
+ "version": "5.2.1"
+ },
+ "string_decoder": {
+ "version": "1.3.0",
+ "requires": {
+ "safe-buffer": "~5.2.0"
+ }
+ }
+ }
+ },
+ "through2-filter": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "through2": "~2.0.0",
+ "xtend": "~4.0.0"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "through2": {
+ "version": "2.0.5",
+ "dev": true,
+ "requires": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "xtend": {
+ "version": "4.0.2",
+ "dev": true
+ }
+ }
+ },
+ "thunky": {
+ "version": "1.1.0",
+ "dev": true
+ },
+ "time-stamp": {
+ "version": "1.1.0",
+ "dev": true
+ },
+ "timers-browserify": {
+ "version": "2.0.12",
+ "dev": true,
+ "requires": {
+ "setimmediate": "^1.0.4"
+ }
+ },
+ "tlds": {
+ "version": "1.208.0"
+ },
+ "tmpl": {
+ "version": "1.0.5",
+ "dev": true
+ },
+ "to-absolute-glob": {
+ "version": "2.0.2",
+ "dev": true,
+ "requires": {
+ "is-absolute": "^1.0.0",
+ "is-negated-glob": "^1.0.0"
+ }
+ },
+ "to-arraybuffer": {
+ "version": "1.0.1",
+ "dev": true
+ },
+ "to-fast-properties": {
+ "version": "2.0.0",
+ "dev": true
+ },
+ "to-iso-string": {
+ "version": "0.0.2"
+ },
+ "to-object-path": {
+ "version": "0.3.0",
+ "dev": true,
+ "requires": {
+ "kind-of": "^3.0.2"
+ },
+ "dependencies": {
+ "kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "requires": {
+ "is-buffer": "^1.1.5"
+ }
+ }
+ }
+ },
+ "to-readable-stream": {
+ "version": "2.1.0"
+ },
+ "to-regex": {
+ "version": "3.0.2",
+ "dev": true,
+ "requires": {
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "regex-not": "^1.0.2",
+ "safe-regex": "^1.1.0"
+ }
+ },
+ "to-regex-range": {
+ "version": "5.0.1",
+ "dev": true,
+ "requires": {
+ "is-number": "^7.0.0"
+ }
+ },
+ "to-through": {
+ "version": "2.0.0",
+ "dev": true,
+ "requires": {
+ "through2": "^2.0.3"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "through2": {
+ "version": "2.0.5",
+ "dev": true,
+ "requires": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "xtend": {
+ "version": "4.0.2",
+ "dev": true
+ }
+ }
+ },
+ "to-utf8": {
+ "version": "0.0.1"
+ },
+ "toidentifier": {
+ "version": "1.0.1"
+ },
+ "toposort": {
+ "version": "2.0.2"
+ },
+ "touch": {
+ "version": "3.1.0",
+ "dev": true,
+ "requires": {
+ "nopt": "~1.0.10"
+ }
+ },
+ "tough-cookie": {
+ "version": "2.5.0",
+ "requires": {
+ "psl": "^1.1.28",
+ "punycode": "^2.1.1"
+ }
+ },
+ "tr46": {
+ "version": "0.0.3"
+ },
+ "traverse": {
+ "version": "0.6.6"
+ },
+ "trim-newlines": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "true-case-path": {
+ "version": "1.0.3",
+ "dev": true,
+ "requires": {
+ "glob": "^7.1.2"
+ }
+ },
+ "tryit": {
+ "version": "1.0.3",
+ "dev": true
+ },
+ "tslib": {
+ "version": "2.3.1",
+ "dev": true
+ },
+ "tty-browserify": {
+ "version": "0.0.0",
+ "dev": true
+ },
+ "tunnel-agent": {
+ "version": "0.6.0",
+ "requires": {
+ "safe-buffer": "^5.0.1"
+ }
+ },
+ "tweetnacl": {
+ "version": "0.14.5"
+ },
+ "type": {
+ "version": "1.2.0",
+ "dev": true
+ },
+ "type-check": {
+ "version": "0.4.0",
+ "dev": true,
+ "requires": {
+ "prelude-ls": "^1.2.1"
+ }
+ },
+ "type-detect": {
+ "version": "4.0.8",
+ "dev": true
+ },
+ "type-fest": {
+ "version": "0.10.0"
+ },
+ "type-is": {
+ "version": "1.6.18",
+ "requires": {
+ "media-typer": "0.3.0",
+ "mime-types": "~2.1.24"
+ }
+ },
+ "typedarray": {
+ "version": "0.0.6"
+ },
+ "typedarray-to-buffer": {
+ "version": "3.1.5",
+ "dev": true,
+ "requires": {
+ "is-typedarray": "^1.0.0"
+ }
+ },
+ "uc.micro": {
+ "version": "1.0.6"
+ },
+ "uglify-js": {
+ "version": "3.4.10",
+ "dev": true,
+ "requires": {
+ "commander": "~2.19.0",
+ "source-map": "~0.6.1"
+ },
+ "dependencies": {
+ "commander": {
+ "version": "2.19.0",
+ "dev": true
+ },
+ "source-map": {
+ "version": "0.6.1",
+ "dev": true
+ }
+ }
+ },
+ "uid2": {
+ "version": "0.0.3"
+ },
+ "unbox-primitive": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "function-bind": "^1.1.1",
+ "has-bigints": "^1.0.1",
+ "has-symbols": "^1.0.2",
+ "which-boxed-primitive": "^1.0.2"
+ }
+ },
+ "unbzip2-stream": {
+ "version": "1.4.3",
+ "resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz",
+ "integrity": "sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==",
+ "requires": {
+ "buffer": "^5.2.1",
+ "through": "^2.3.8"
+ },
+ "dependencies": {
+ "base64-js": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA=="
+ },
+ "buffer": {
+ "version": "5.7.1",
+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
+ "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
+ "requires": {
+ "base64-js": "^1.3.1",
+ "ieee754": "^1.1.13"
+ }
+ }
+ }
+ },
+ "unc-path-regex": {
+ "version": "0.1.2",
+ "dev": true
+ },
+ "undefsafe": {
+ "version": "2.0.5",
+ "dev": true
+ },
+ "underscore": {
+ "version": "1.7.0"
+ },
+ "underscore.string": {
+ "version": "3.3.6",
+ "requires": {
+ "sprintf-js": "^1.1.1",
+ "util-deprecate": "^1.0.2"
+ }
+ },
+ "undertaker": {
+ "version": "1.3.0",
+ "dev": true,
+ "requires": {
+ "arr-flatten": "^1.0.1",
+ "arr-map": "^2.0.0",
+ "bach": "^1.0.0",
+ "collection-map": "^1.0.0",
+ "es6-weak-map": "^2.0.1",
+ "fast-levenshtein": "^1.0.0",
+ "last-run": "^1.1.0",
+ "object.defaults": "^1.0.0",
+ "object.reduce": "^1.0.0",
+ "undertaker-registry": "^1.0.0"
+ },
+ "dependencies": {
+ "fast-levenshtein": {
+ "version": "1.1.4",
+ "dev": true
+ }
+ }
+ },
+ "undertaker-registry": {
+ "version": "1.0.1",
+ "dev": true
+ },
+ "unicode-canonical-property-names-ecmascript": {
+ "version": "2.0.0",
+ "dev": true
+ },
+ "unicode-match-property-ecmascript": {
+ "version": "2.0.0",
+ "dev": true,
+ "requires": {
+ "unicode-canonical-property-names-ecmascript": "^2.0.0",
+ "unicode-property-aliases-ecmascript": "^2.0.0"
+ }
+ },
+ "unicode-match-property-value-ecmascript": {
+ "version": "2.0.0",
+ "dev": true
+ },
+ "unicode-property-aliases-ecmascript": {
+ "version": "2.0.0",
+ "dev": true
+ },
+ "union-value": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "arr-union": "^3.1.0",
+ "get-value": "^2.0.6",
+ "is-extendable": "^0.1.1",
+ "set-value": "^2.0.1"
+ }
+ },
+ "unique-filename": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "unique-slug": "^2.0.0"
+ }
+ },
+ "unique-slug": {
+ "version": "2.0.2",
+ "dev": true,
+ "requires": {
+ "imurmurhash": "^0.1.4"
+ }
+ },
+ "unique-stream": {
+ "version": "2.3.1",
+ "dev": true,
+ "requires": {
+ "json-stable-stringify-without-jsonify": "^1.0.1",
+ "through2-filter": "^3.0.0"
+ }
+ },
+ "unique-string": {
+ "version": "1.0.0",
+ "requires": {
+ "crypto-random-string": "^1.0.0"
+ }
+ },
+ "universalify": {
+ "version": "0.1.2"
+ },
+ "unpipe": {
+ "version": "1.0.0"
+ },
+ "unset-value": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "has-value": "^0.3.1",
+ "isobject": "^3.0.0"
+ },
+ "dependencies": {
+ "has-value": {
+ "version": "0.3.1",
+ "dev": true,
+ "requires": {
+ "get-value": "^2.0.3",
+ "has-values": "^0.1.4",
+ "isobject": "^2.0.0"
+ },
+ "dependencies": {
+ "isobject": {
+ "version": "2.1.0",
+ "dev": true,
+ "requires": {
+ "isarray": "1.0.0"
+ }
+ }
+ }
+ },
+ "has-values": {
+ "version": "0.1.4",
+ "dev": true
+ },
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ }
+ }
+ },
+ "upath": {
+ "version": "1.2.0",
+ "dev": true
+ },
+ "update-notifier": {
+ "version": "5.1.0",
+ "dev": true,
+ "requires": {
+ "boxen": "^5.0.0",
+ "chalk": "^4.1.0",
+ "configstore": "^5.0.1",
+ "has-yarn": "^2.1.0",
+ "import-lazy": "^2.1.0",
+ "is-ci": "^2.0.0",
+ "is-installed-globally": "^0.4.0",
+ "is-npm": "^5.0.0",
+ "is-yarn-global": "^0.3.0",
+ "latest-version": "^5.1.0",
+ "pupa": "^2.1.1",
+ "semver": "^7.3.4",
+ "semver-diff": "^3.1.1",
+ "xdg-basedir": "^4.0.0"
+ },
+ "dependencies": {
+ "configstore": {
+ "version": "5.0.1",
+ "dev": true,
+ "requires": {
+ "dot-prop": "^5.2.0",
+ "graceful-fs": "^4.1.2",
+ "make-dir": "^3.0.0",
+ "unique-string": "^2.0.0",
+ "write-file-atomic": "^3.0.0",
+ "xdg-basedir": "^4.0.0"
+ }
+ },
+ "crypto-random-string": {
+ "version": "2.0.0",
+ "dev": true
+ },
+ "dot-prop": {
+ "version": "5.3.0",
+ "dev": true,
+ "requires": {
+ "is-obj": "^2.0.0"
+ }
+ },
+ "is-obj": {
+ "version": "2.0.0",
+ "dev": true
+ },
+ "lru-cache": {
+ "version": "6.0.0",
+ "dev": true,
+ "requires": {
+ "yallist": "^4.0.0"
+ }
+ },
+ "make-dir": {
+ "version": "3.1.0",
+ "dev": true,
+ "requires": {
+ "semver": "^6.0.0"
+ },
+ "dependencies": {
+ "semver": {
+ "version": "6.3.0",
+ "dev": true
+ }
+ }
+ },
+ "semver": {
+ "version": "7.3.5",
+ "dev": true,
+ "requires": {
+ "lru-cache": "^6.0.0"
+ }
+ },
+ "unique-string": {
+ "version": "2.0.0",
+ "dev": true,
+ "requires": {
+ "crypto-random-string": "^2.0.0"
+ }
+ },
+ "write-file-atomic": {
+ "version": "3.0.3",
+ "dev": true,
+ "requires": {
+ "imurmurhash": "^0.1.4",
+ "is-typedarray": "^1.0.0",
+ "signal-exit": "^3.0.2",
+ "typedarray-to-buffer": "^3.1.5"
+ }
+ },
+ "xdg-basedir": {
+ "version": "4.0.0",
+ "dev": true
+ },
+ "yallist": {
+ "version": "4.0.0",
+ "dev": true
+ }
+ }
+ },
+ "upper-case": {
+ "version": "1.1.3",
+ "dev": true
+ },
+ "uri-js": {
+ "version": "4.4.1",
+ "requires": {
+ "punycode": "^2.1.0"
+ }
+ },
+ "urix": {
+ "version": "0.1.0",
+ "dev": true
+ },
+ "url": {
+ "version": "0.10.3",
+ "requires": {
+ "punycode": "1.3.2",
+ "querystring": "0.2.0"
+ },
+ "dependencies": {
+ "punycode": {
+ "version": "1.3.2"
+ }
+ }
+ },
+ "url-join": {
+ "version": "4.0.1"
+ },
+ "url-parse": {
+ "version": "1.5.10",
+ "dev": true,
+ "requires": {
+ "querystringify": "^2.1.1",
+ "requires-port": "^1.0.0"
+ }
+ },
+ "url-parse-lax": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "prepend-http": "^2.0.0"
+ }
+ },
+ "use": {
+ "version": "3.1.1",
+ "dev": true
+ },
+ "utf7": {
+ "version": "1.0.2",
+ "requires": {
+ "semver": "~5.3.0"
+ }
+ },
+ "util": {
+ "version": "0.11.1",
+ "dev": true,
+ "requires": {
+ "inherits": "2.0.3"
+ },
+ "dependencies": {
+ "inherits": {
+ "version": "2.0.3",
+ "dev": true
+ }
+ }
+ },
+ "util-deprecate": {
+ "version": "1.0.2"
+ },
+ "util.promisify": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "define-properties": "^1.1.2",
+ "object.getownpropertydescriptors": "^2.0.3"
+ }
+ },
+ "utila": {
+ "version": "0.4.0",
+ "dev": true
+ },
+ "utils-merge": {
+ "version": "1.0.1"
+ },
+ "uuid": {
+ "version": "3.4.0"
+ },
+ "v8-compile-cache": {
+ "version": "2.3.0",
+ "dev": true
+ },
+ "v8-to-istanbul": {
+ "version": "7.1.2",
+ "dev": true,
+ "requires": {
+ "@types/istanbul-lib-coverage": "^2.0.1",
+ "convert-source-map": "^1.6.0",
+ "source-map": "^0.7.3"
+ },
+ "dependencies": {
+ "source-map": {
+ "version": "0.7.3",
+ "dev": true
+ }
+ }
+ },
+ "v8flags": {
+ "version": "3.2.0",
+ "dev": true,
+ "requires": {
+ "homedir-polyfill": "^1.0.1"
+ }
+ },
+ "validate-npm-package-license": {
+ "version": "3.0.4",
+ "dev": true,
+ "requires": {
+ "spdx-correct": "^3.0.0",
+ "spdx-expression-parse": "^3.0.0"
+ }
+ },
+ "value-or-function": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "vary": {
+ "version": "1.1.2"
+ },
+ "vasync": {
+ "version": "2.2.1",
+ "requires": {
+ "verror": "1.10.0"
+ },
+ "dependencies": {
+ "core-util-is": {
+ "version": "1.0.2"
+ },
+ "verror": {
+ "version": "1.10.0",
+ "requires": {
+ "assert-plus": "^1.0.0",
+ "core-util-is": "1.0.2",
+ "extsprintf": "^1.2.0"
+ }
+ }
+ }
+ },
+ "verror": {
+ "version": "1.10.1",
+ "requires": {
+ "assert-plus": "^1.0.0",
+ "core-util-is": "1.0.2",
+ "extsprintf": "^1.2.0"
+ },
+ "dependencies": {
+ "core-util-is": {
+ "version": "1.0.2"
+ }
+ }
+ },
+ "vinyl": {
+ "version": "2.2.1",
+ "dev": true,
+ "requires": {
+ "clone": "^2.1.1",
+ "clone-buffer": "^1.0.0",
+ "clone-stats": "^1.0.0",
+ "cloneable-readable": "^1.0.0",
+ "remove-trailing-separator": "^1.0.1",
+ "replace-ext": "^1.0.0"
+ }
+ },
+ "vinyl-bufferstream": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "bufferstreams": "1.0.1"
+ }
+ },
+ "vinyl-fs": {
+ "version": "3.0.3",
+ "dev": true,
+ "requires": {
+ "fs-mkdirp-stream": "^1.0.0",
+ "glob-stream": "^6.1.0",
+ "graceful-fs": "^4.0.0",
+ "is-valid-glob": "^1.0.0",
+ "lazystream": "^1.0.0",
+ "lead": "^1.0.0",
+ "object.assign": "^4.0.4",
+ "pumpify": "^1.3.5",
+ "readable-stream": "^2.3.3",
+ "remove-bom-buffer": "^3.0.0",
+ "remove-bom-stream": "^1.2.0",
+ "resolve-options": "^1.1.0",
+ "through2": "^2.0.0",
+ "to-through": "^2.0.0",
+ "value-or-function": "^3.0.0",
+ "vinyl": "^2.0.0",
+ "vinyl-sourcemap": "^1.1.0"
+ },
+ "dependencies": {
+ "isarray": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "readable-stream": {
+ "version": "2.3.7",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "through2": {
+ "version": "2.0.5",
+ "dev": true,
+ "requires": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "xtend": {
+ "version": "4.0.2",
+ "dev": true
+ }
+ }
+ },
+ "vinyl-sourcemap": {
+ "version": "1.1.0",
+ "dev": true,
+ "requires": {
+ "append-buffer": "^1.0.2",
+ "convert-source-map": "^1.5.0",
+ "graceful-fs": "^4.1.6",
+ "normalize-path": "^2.1.1",
+ "now-and-later": "^2.0.0",
+ "remove-bom-buffer": "^3.0.0",
+ "vinyl": "^2.0.0"
+ },
+ "dependencies": {
+ "normalize-path": {
+ "version": "2.1.1",
+ "dev": true,
+ "requires": {
+ "remove-trailing-separator": "^1.0.1"
+ }
+ }
+ }
+ },
+ "vm-browserify": {
+ "version": "1.1.2",
+ "dev": true
+ },
+ "vn-loopback": {
+ "version": "file:loopback"
+ },
+ "vn-print": {
+ "version": "file:print",
+ "requires": {
+ "fs-extra": "^7.0.1",
+ "intl": "^1.2.5",
+ "js-yaml": "^3.13.1",
+ "jsbarcode": "^3.11.5",
+ "jsonexport": "^3.2.0",
+ "juice": "^5.2.0",
+ "log4js": "^6.7.0",
+ "mysql2": "^1.7.0",
+ "nodemailer": "^4.7.0",
+ "puppeteer-cluster": "^0.23.0",
+ "qrcode": "^1.4.2",
+ "strftime": "^0.10.0",
+ "vue": "^2.6.10",
+ "vue-i18n": "^8.15.0",
+ "vue-server-renderer": "^2.6.10",
+ "xmldom": "^0.6.0"
+ },
+ "dependencies": {
+ "@babel/parser": {
+ "version": "7.19.3"
+ },
+ "@vue/compiler-sfc": {
+ "version": "2.7.10",
+ "requires": {
+ "@babel/parser": "^7.18.4",
+ "postcss": "^8.4.14",
+ "source-map": "^0.6.1"
+ }
+ },
+ "ajv": {
+ "version": "6.12.6",
+ "requires": {
+ "fast-deep-equal": "^3.1.1",
+ "fast-json-stable-stringify": "^2.0.0",
+ "json-schema-traverse": "^0.4.1",
+ "uri-js": "^4.2.2"
+ }
+ },
+ "ansi-regex": {
+ "version": "5.0.1"
+ },
+ "ansi-styles": {
+ "version": "3.2.1",
+ "requires": {
+ "color-convert": "^1.9.0"
+ }
+ },
+ "argparse": {
+ "version": "1.0.10",
+ "requires": {
+ "sprintf-js": "~1.0.2"
+ }
+ },
+ "asn1": {
+ "version": "0.2.6",
+ "requires": {
+ "safer-buffer": "~2.1.0"
+ }
+ },
+ "assert-plus": {
+ "version": "1.0.0"
+ },
+ "async": {
+ "version": "3.2.4"
+ },
+ "asynckit": {
+ "version": "0.4.0"
+ },
+ "aws-sign2": {
+ "version": "0.7.0"
+ },
+ "aws4": {
+ "version": "1.11.0"
+ },
+ "bcrypt-pbkdf": {
+ "version": "1.0.2",
+ "requires": {
+ "tweetnacl": "^0.14.3"
+ }
+ },
+ "boolbase": {
+ "version": "1.0.0"
+ },
+ "camelcase": {
+ "version": "5.3.1"
+ },
+ "caseless": {
+ "version": "0.12.0"
+ },
+ "chalk": {
+ "version": "2.4.2",
+ "requires": {
+ "ansi-styles": "^3.2.1",
+ "escape-string-regexp": "^1.0.5",
+ "supports-color": "^5.3.0"
+ }
+ },
+ "cheerio": {
+ "version": "0.22.0",
+ "requires": {
+ "css-select": "~1.2.0",
+ "dom-serializer": "~0.1.0",
+ "entities": "~1.1.1",
+ "htmlparser2": "^3.9.1",
+ "lodash.assignin": "^4.0.9",
+ "lodash.bind": "^4.1.4",
+ "lodash.defaults": "^4.0.1",
+ "lodash.filter": "^4.4.0",
+ "lodash.flatten": "^4.2.0",
+ "lodash.foreach": "^4.3.0",
+ "lodash.map": "^4.4.0",
+ "lodash.merge": "^4.4.0",
+ "lodash.pick": "^4.2.1",
+ "lodash.reduce": "^4.4.0",
+ "lodash.reject": "^4.4.0",
+ "lodash.some": "^4.4.0"
+ }
+ },
+ "cliui": {
+ "version": "6.0.0",
+ "requires": {
+ "string-width": "^4.2.0",
+ "strip-ansi": "^6.0.0",
+ "wrap-ansi": "^6.2.0"
+ }
+ },
+ "color-convert": {
+ "version": "1.9.3",
+ "requires": {
+ "color-name": "1.1.3"
+ }
+ },
+ "color-name": {
+ "version": "1.1.3"
+ },
+ "combined-stream": {
+ "version": "1.0.8",
+ "requires": {
+ "delayed-stream": "~1.0.0"
+ }
+ },
+ "commander": {
+ "version": "2.20.3"
+ },
+ "core-util-is": {
+ "version": "1.0.2"
+ },
+ "cross-spawn": {
+ "version": "6.0.5",
+ "requires": {
+ "nice-try": "^1.0.4",
+ "path-key": "^2.0.1",
+ "semver": "^5.5.0",
+ "shebang-command": "^1.2.0",
+ "which": "^1.2.9"
+ }
+ },
+ "css-select": {
+ "version": "1.2.0",
+ "requires": {
+ "boolbase": "~1.0.0",
+ "css-what": "2.1",
+ "domutils": "1.5.1",
+ "nth-check": "~1.0.1"
+ }
+ },
+ "css-what": {
+ "version": "2.1.3"
+ },
+ "csstype": {
+ "version": "3.1.1"
+ },
+ "dashdash": {
+ "version": "1.14.1",
+ "requires": {
+ "assert-plus": "^1.0.0"
+ }
+ },
+ "datauri": {
+ "version": "2.0.0",
+ "requires": {
+ "image-size": "^0.7.3",
+ "mimer": "^1.0.0"
+ }
+ },
+ "decamelize": {
+ "version": "1.2.0"
+ },
+ "deep-extend": {
+ "version": "0.6.0"
+ },
+ "delayed-stream": {
+ "version": "1.0.0"
+ },
+ "denque": {
+ "version": "1.5.1"
+ },
+ "dijkstrajs": {
+ "version": "1.0.2"
+ },
+ "dom-serializer": {
+ "version": "0.1.1",
+ "requires": {
+ "domelementtype": "^1.3.0",
+ "entities": "^1.1.1"
+ }
+ },
+ "domelementtype": {
+ "version": "1.3.1"
+ },
+ "domhandler": {
+ "version": "2.4.2",
+ "requires": {
+ "domelementtype": "1"
+ }
+ },
+ "domutils": {
+ "version": "1.5.1",
+ "requires": {
+ "dom-serializer": "0",
+ "domelementtype": "1"
+ }
+ },
+ "ecc-jsbn": {
+ "version": "0.1.2",
+ "requires": {
+ "jsbn": "~0.1.0",
+ "safer-buffer": "^2.1.0"
+ }
+ },
+ "emoji-regex": {
+ "version": "8.0.0"
+ },
+ "encode-utf8": {
+ "version": "1.0.3"
+ },
+ "entities": {
+ "version": "1.1.2"
+ },
+ "escape-string-regexp": {
+ "version": "1.0.5"
+ },
+ "esprima": {
+ "version": "4.0.1"
+ },
+ "extend": {
+ "version": "3.0.2"
+ },
+ "extsprintf": {
+ "version": "1.3.0"
+ },
+ "fast-deep-equal": {
+ "version": "3.1.3"
+ },
+ "fast-json-stable-stringify": {
+ "version": "2.1.0"
+ },
+ "find-up": {
+ "version": "4.1.0",
+ "requires": {
+ "locate-path": "^5.0.0",
+ "path-exists": "^4.0.0"
+ }
+ },
+ "forever-agent": {
+ "version": "0.6.1"
+ },
+ "form-data": {
+ "version": "2.3.3",
+ "requires": {
+ "asynckit": "^0.4.0",
+ "combined-stream": "^1.0.6",
+ "mime-types": "^2.1.12"
+ }
+ },
+ "fs-extra": {
+ "version": "7.0.1",
+ "requires": {
+ "graceful-fs": "^4.1.2",
+ "jsonfile": "^4.0.0",
+ "universalify": "^0.1.0"
+ }
+ },
+ "function-bind": {
+ "version": "1.1.1"
+ },
+ "generate-function": {
+ "version": "2.3.1",
+ "requires": {
+ "is-property": "^1.0.2"
+ }
+ },
+ "get-caller-file": {
+ "version": "2.0.5"
+ },
+ "getpass": {
+ "version": "0.1.7",
+ "requires": {
+ "assert-plus": "^1.0.0"
+ }
+ },
+ "graceful-fs": {
+ "version": "4.2.10"
+ },
+ "har-schema": {
+ "version": "2.0.0"
+ },
+ "har-validator": {
+ "version": "5.1.5",
+ "requires": {
+ "ajv": "^6.12.3",
+ "har-schema": "^2.0.0"
+ }
+ },
+ "has": {
+ "version": "1.0.3",
+ "requires": {
+ "function-bind": "^1.1.1"
+ }
+ },
+ "has-flag": {
+ "version": "3.0.0"
+ },
+ "hash-sum": {
+ "version": "2.0.0"
+ },
+ "he": {
+ "version": "1.2.0"
+ },
+ "htmlparser2": {
+ "version": "3.10.1",
+ "requires": {
+ "domelementtype": "^1.3.1",
+ "domhandler": "^2.3.0",
+ "domutils": "^1.5.1",
+ "entities": "^1.1.1",
+ "inherits": "^2.0.1",
+ "readable-stream": "^3.1.1"
+ }
+ },
+ "http-signature": {
+ "version": "1.2.0",
+ "requires": {
+ "assert-plus": "^1.0.0",
+ "jsprim": "^1.2.2",
+ "sshpk": "^1.7.0"
+ }
+ },
+ "iconv-lite": {
+ "version": "0.5.2",
+ "requires": {
+ "safer-buffer": ">= 2.1.2 < 3"
+ }
+ },
+ "image-size": {
+ "version": "0.7.5"
+ },
+ "inherits": {
+ "version": "2.0.4"
+ },
+ "intl": {
+ "version": "1.2.5"
+ },
+ "is-core-module": {
+ "version": "2.10.0",
+ "requires": {
+ "has": "^1.0.3"
+ }
+ },
+ "is-fullwidth-code-point": {
+ "version": "3.0.0"
+ },
+ "is-property": {
+ "version": "1.0.2"
+ },
+ "is-typedarray": {
+ "version": "1.0.0"
+ },
+ "isexe": {
+ "version": "2.0.0"
+ },
+ "isstream": {
+ "version": "0.1.2"
+ },
+ "js-yaml": {
+ "version": "3.14.1",
+ "requires": {
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
+ }
+ },
+ "jsbn": {
+ "version": "0.1.1"
+ },
+ "json-schema": {
+ "version": "0.4.0"
+ },
+ "json-schema-traverse": {
+ "version": "0.4.1"
+ },
+ "json-stringify-safe": {
+ "version": "5.0.1"
+ },
+ "jsonexport": {
+ "version": "3.2.0"
+ },
+ "jsonfile": {
+ "version": "4.0.0",
+ "requires": {
+ "graceful-fs": "^4.1.6"
+ }
+ },
+ "jsprim": {
+ "version": "1.4.2",
+ "requires": {
+ "assert-plus": "1.0.0",
+ "extsprintf": "1.3.0",
+ "json-schema": "0.4.0",
+ "verror": "1.10.0"
+ }
+ },
+ "juice": {
+ "version": "5.2.0",
+ "requires": {
+ "cheerio": "^0.22.0",
+ "commander": "^2.15.1",
+ "cross-spawn": "^6.0.5",
+ "deep-extend": "^0.6.0",
+ "mensch": "^0.3.3",
+ "slick": "^1.12.2",
+ "web-resource-inliner": "^4.3.1"
+ }
+ },
+ "locate-path": {
+ "version": "5.0.0",
+ "requires": {
+ "p-locate": "^4.1.0"
+ }
+ },
+ "lodash._reinterpolate": {
+ "version": "3.0.0"
+ },
+ "lodash.assignin": {
+ "version": "4.2.0"
+ },
+ "lodash.bind": {
+ "version": "4.2.1"
+ },
+ "lodash.defaults": {
+ "version": "4.2.0"
+ },
+ "lodash.filter": {
+ "version": "4.6.0"
+ },
+ "lodash.flatten": {
+ "version": "4.4.0"
+ },
+ "lodash.foreach": {
+ "version": "4.5.0"
+ },
+ "lodash.map": {
+ "version": "4.6.0"
+ },
+ "lodash.merge": {
+ "version": "4.6.2"
+ },
+ "lodash.pick": {
+ "version": "4.4.0"
+ },
+ "lodash.reduce": {
+ "version": "4.6.0"
+ },
+ "lodash.reject": {
+ "version": "4.6.0"
+ },
+ "lodash.some": {
+ "version": "4.6.0"
+ },
+ "lodash.template": {
+ "version": "4.5.0",
+ "requires": {
+ "lodash._reinterpolate": "^3.0.0",
+ "lodash.templatesettings": "^4.0.0"
+ }
+ },
+ "lodash.templatesettings": {
+ "version": "4.2.0",
+ "requires": {
+ "lodash._reinterpolate": "^3.0.0"
+ }
+ },
+ "lodash.unescape": {
+ "version": "4.0.1"
+ },
+ "lodash.uniq": {
+ "version": "4.5.0"
+ },
+ "long": {
+ "version": "4.0.0"
+ },
+ "lru-cache": {
+ "version": "5.1.1",
+ "requires": {
+ "yallist": "^3.0.2"
+ }
+ },
+ "mensch": {
+ "version": "0.3.4"
+ },
+ "mime-db": {
+ "version": "1.52.0"
+ },
+ "mime-types": {
+ "version": "2.1.35",
+ "requires": {
+ "mime-db": "1.52.0"
+ }
+ },
+ "mimer": {
+ "version": "1.1.1"
+ },
+ "mysql2": {
+ "version": "1.7.0",
+ "requires": {
+ "denque": "^1.4.1",
+ "generate-function": "^2.3.1",
+ "iconv-lite": "^0.5.0",
+ "long": "^4.0.0",
+ "lru-cache": "^5.1.1",
+ "named-placeholders": "^1.1.2",
+ "seq-queue": "^0.0.5",
+ "sqlstring": "^2.3.1"
+ }
+ },
+ "named-placeholders": {
+ "version": "1.1.2",
+ "requires": {
+ "lru-cache": "^4.1.3"
+ },
+ "dependencies": {
+ "lru-cache": {
+ "version": "4.1.5",
+ "requires": {
+ "pseudomap": "^1.0.2",
+ "yallist": "^2.1.2"
+ }
+ },
+ "yallist": {
+ "version": "2.1.2"
+ }
+ }
+ },
+ "nanoid": {
+ "version": "3.3.4"
+ },
+ "nice-try": {
+ "version": "1.0.5"
+ },
+ "nodemailer": {
+ "version": "4.7.0"
+ },
+ "nth-check": {
+ "version": "1.0.2",
+ "requires": {
+ "boolbase": "~1.0.0"
+ }
+ },
+ "oauth-sign": {
+ "version": "0.9.0"
+ },
+ "p-limit": {
+ "version": "2.3.0",
+ "requires": {
+ "p-try": "^2.0.0"
+ }
+ },
+ "p-locate": {
+ "version": "4.1.0",
+ "requires": {
+ "p-limit": "^2.2.0"
+ }
+ },
+ "p-try": {
+ "version": "2.2.0"
+ },
+ "path-exists": {
+ "version": "4.0.0"
+ },
+ "path-key": {
+ "version": "2.0.1"
+ },
+ "path-parse": {
+ "version": "1.0.7"
+ },
+ "performance-now": {
+ "version": "2.1.0"
+ },
+ "picocolors": {
+ "version": "1.0.0"
+ },
+ "pngjs": {
+ "version": "5.0.0"
+ },
+ "postcss": {
+ "version": "8.4.17",
+ "requires": {
+ "nanoid": "^3.3.4",
+ "picocolors": "^1.0.0",
+ "source-map-js": "^1.0.2"
+ }
+ },
+ "pseudomap": {
+ "version": "1.0.2"
+ },
+ "psl": {
+ "version": "1.9.0"
+ },
+ "punycode": {
+ "version": "2.1.1"
+ },
+ "qrcode": {
+ "version": "1.5.1",
+ "requires": {
+ "dijkstrajs": "^1.0.1",
+ "encode-utf8": "^1.0.3",
+ "pngjs": "^5.0.0",
+ "yargs": "^15.3.1"
+ }
+ },
+ "qs": {
+ "version": "6.5.3"
+ },
+ "randombytes": {
+ "version": "2.1.0",
+ "requires": {
+ "safe-buffer": "^5.1.0"
+ }
+ },
+ "readable-stream": {
+ "version": "3.6.0",
+ "requires": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ }
+ },
+ "request": {
+ "version": "2.88.2",
+ "requires": {
+ "aws-sign2": "~0.7.0",
+ "aws4": "^1.8.0",
+ "caseless": "~0.12.0",
+ "combined-stream": "~1.0.6",
+ "extend": "~3.0.2",
+ "forever-agent": "~0.6.1",
+ "form-data": "~2.3.2",
+ "har-validator": "~5.1.3",
+ "http-signature": "~1.2.0",
+ "is-typedarray": "~1.0.0",
+ "isstream": "~0.1.2",
+ "json-stringify-safe": "~5.0.1",
+ "mime-types": "~2.1.19",
+ "oauth-sign": "~0.9.0",
+ "performance-now": "^2.1.0",
+ "qs": "~6.5.2",
+ "safe-buffer": "^5.1.2",
+ "tough-cookie": "~2.5.0",
+ "tunnel-agent": "^0.6.0",
+ "uuid": "^3.3.2"
+ }
+ },
+ "require-directory": {
+ "version": "2.1.1"
+ },
+ "require-main-filename": {
+ "version": "2.0.0"
+ },
+ "resolve": {
+ "version": "1.22.1",
+ "requires": {
+ "is-core-module": "^2.9.0",
+ "path-parse": "^1.0.7",
+ "supports-preserve-symlinks-flag": "^1.0.0"
+ }
+ },
+ "safe-buffer": {
+ "version": "5.2.1"
+ },
+ "safer-buffer": {
+ "version": "2.1.2"
+ },
+ "semver": {
+ "version": "5.7.1"
+ },
+ "seq-queue": {
+ "version": "0.0.5"
+ },
+ "serialize-javascript": {
+ "version": "6.0.0",
+ "requires": {
+ "randombytes": "^2.1.0"
+ }
+ },
+ "set-blocking": {
+ "version": "2.0.0"
+ },
+ "shebang-command": {
+ "version": "1.2.0",
+ "requires": {
+ "shebang-regex": "^1.0.0"
+ }
+ },
+ "shebang-regex": {
+ "version": "1.0.0"
+ },
+ "slick": {
+ "version": "1.12.2"
+ },
+ "source-map": {
+ "version": "0.6.1"
+ },
+ "source-map-js": {
+ "version": "1.0.2"
+ },
+ "sprintf-js": {
+ "version": "1.0.3"
+ },
+ "sqlstring": {
+ "version": "2.3.3"
+ },
+ "sshpk": {
+ "version": "1.17.0",
+ "requires": {
+ "asn1": "~0.2.3",
+ "assert-plus": "^1.0.0",
+ "bcrypt-pbkdf": "^1.0.0",
+ "dashdash": "^1.12.0",
+ "ecc-jsbn": "~0.1.1",
+ "getpass": "^0.1.1",
+ "jsbn": "~0.1.0",
+ "safer-buffer": "^2.0.2",
+ "tweetnacl": "~0.14.0"
+ }
+ },
+ "strftime": {
+ "version": "0.10.1"
+ },
+ "string_decoder": {
+ "version": "1.3.0",
+ "requires": {
+ "safe-buffer": "~5.2.0"
+ }
+ },
+ "string-width": {
+ "version": "4.2.3",
+ "requires": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ }
+ },
+ "strip-ansi": {
+ "version": "6.0.1",
+ "requires": {
+ "ansi-regex": "^5.0.1"
+ }
+ },
+ "supports-color": {
+ "version": "5.5.0",
+ "requires": {
+ "has-flag": "^3.0.0"
+ }
+ },
+ "supports-preserve-symlinks-flag": {
+ "version": "1.0.0"
+ },
+ "tough-cookie": {
+ "version": "2.5.0",
+ "requires": {
+ "psl": "^1.1.28",
+ "punycode": "^2.1.1"
+ }
+ },
+ "tunnel-agent": {
+ "version": "0.6.0",
+ "requires": {
+ "safe-buffer": "^5.0.1"
+ }
+ },
+ "tweetnacl": {
+ "version": "0.14.5"
+ },
+ "universalify": {
+ "version": "0.1.2"
+ },
+ "uri-js": {
+ "version": "4.4.1",
+ "requires": {
+ "punycode": "^2.1.0"
+ }
+ },
+ "util-deprecate": {
+ "version": "1.0.2"
+ },
+ "uuid": {
+ "version": "3.4.0"
+ },
+ "valid-data-url": {
+ "version": "2.0.0"
+ },
+ "verror": {
+ "version": "1.10.0",
+ "requires": {
+ "assert-plus": "^1.0.0",
+ "core-util-is": "1.0.2",
+ "extsprintf": "^1.2.0"
+ }
+ },
+ "vue": {
+ "version": "2.7.10",
+ "requires": {
+ "@vue/compiler-sfc": "2.7.10",
+ "csstype": "^3.1.0"
+ }
+ },
+ "vue-i18n": {
+ "version": "8.27.2"
+ },
+ "vue-server-renderer": {
+ "version": "2.7.10",
+ "requires": {
+ "chalk": "^4.1.2",
+ "hash-sum": "^2.0.0",
+ "he": "^1.2.0",
+ "lodash.template": "^4.5.0",
+ "lodash.uniq": "^4.5.0",
+ "resolve": "^1.22.0",
+ "serialize-javascript": "^6.0.0",
+ "source-map": "0.5.6"
+ },
+ "dependencies": {
+ "ansi-styles": {
+ "version": "4.3.0",
+ "requires": {
+ "color-convert": "^2.0.1"
+ }
+ },
+ "chalk": {
+ "version": "4.1.2",
+ "requires": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ }
+ },
+ "color-convert": {
+ "version": "2.0.1",
+ "requires": {
+ "color-name": "~1.1.4"
+ }
+ },
+ "color-name": {
+ "version": "1.1.4"
+ },
+ "has-flag": {
+ "version": "4.0.0"
+ },
+ "source-map": {
+ "version": "0.5.6"
+ },
+ "supports-color": {
+ "version": "7.2.0",
+ "requires": {
+ "has-flag": "^4.0.0"
+ }
+ }
+ }
+ },
+ "web-resource-inliner": {
+ "version": "4.3.4",
+ "requires": {
+ "async": "^3.1.0",
+ "chalk": "^2.4.2",
+ "datauri": "^2.0.0",
+ "htmlparser2": "^4.0.0",
+ "lodash.unescape": "^4.0.1",
+ "request": "^2.88.0",
+ "safer-buffer": "^2.1.2",
+ "valid-data-url": "^2.0.0",
+ "xtend": "^4.0.2"
+ },
+ "dependencies": {
+ "dom-serializer": {
+ "version": "1.4.1",
+ "requires": {
+ "domelementtype": "^2.0.1",
+ "domhandler": "^4.2.0",
+ "entities": "^2.0.0"
+ },
+ "dependencies": {
+ "domhandler": {
+ "version": "4.3.1",
+ "requires": {
+ "domelementtype": "^2.2.0"
+ }
+ }
+ }
+ },
+ "domelementtype": {
+ "version": "2.3.0"
+ },
+ "domhandler": {
+ "version": "3.3.0",
+ "requires": {
+ "domelementtype": "^2.0.1"
+ }
+ },
+ "domutils": {
+ "version": "2.8.0",
+ "requires": {
+ "dom-serializer": "^1.0.1",
+ "domelementtype": "^2.2.0",
+ "domhandler": "^4.2.0"
+ },
+ "dependencies": {
+ "domhandler": {
+ "version": "4.3.1",
+ "requires": {
+ "domelementtype": "^2.2.0"
+ }
+ }
+ }
+ },
+ "entities": {
+ "version": "2.2.0"
+ },
+ "htmlparser2": {
+ "version": "4.1.0",
+ "requires": {
+ "domelementtype": "^2.0.1",
+ "domhandler": "^3.0.0",
+ "domutils": "^2.0.0",
+ "entities": "^2.0.0"
+ }
+ }
+ }
+ },
+ "which": {
+ "version": "1.3.1",
+ "requires": {
+ "isexe": "^2.0.0"
+ }
+ },
+ "which-module": {
+ "version": "2.0.0"
+ },
+ "wrap-ansi": {
+ "version": "6.2.0",
+ "requires": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "dependencies": {
+ "ansi-styles": {
+ "version": "4.3.0",
+ "requires": {
+ "color-convert": "^2.0.1"
+ }
+ },
+ "color-convert": {
+ "version": "2.0.1",
+ "requires": {
+ "color-name": "~1.1.4"
+ }
+ },
+ "color-name": {
+ "version": "1.1.4"
+ }
+ }
+ },
+ "xtend": {
+ "version": "4.0.2"
+ },
+ "y18n": {
+ "version": "4.0.3"
+ },
+ "yallist": {
+ "version": "3.1.1"
+ },
+ "yargs": {
+ "version": "15.4.1",
+ "requires": {
+ "cliui": "^6.0.0",
+ "decamelize": "^1.2.0",
+ "find-up": "^4.1.0",
+ "get-caller-file": "^2.0.1",
+ "require-directory": "^2.1.1",
+ "require-main-filename": "^2.0.0",
+ "set-blocking": "^2.0.0",
+ "string-width": "^4.2.0",
+ "which-module": "^2.0.0",
+ "y18n": "^4.0.0",
+ "yargs-parser": "^18.1.2"
+ }
+ },
+ "yargs-parser": {
+ "version": "18.1.3",
+ "requires": {
+ "camelcase": "^5.0.0",
+ "decamelize": "^1.2.0"
+ }
+ }
+ }
+ },
+ "w3c-hr-time": {
+ "version": "1.0.2",
+ "requires": {
+ "browser-process-hrtime": "^1.0.0"
+ }
+ },
+ "w3c-xmlserializer": {
+ "version": "2.0.0",
+ "requires": {
+ "xml-name-validator": "^3.0.0"
+ }
+ },
+ "walker": {
+ "version": "1.0.8",
+ "dev": true,
+ "requires": {
+ "makeerror": "1.0.12"
+ }
+ },
+ "watchpack": {
+ "version": "1.7.5",
+ "dev": true,
+ "requires": {
+ "chokidar": "^3.4.1",
+ "graceful-fs": "^4.1.2",
+ "neo-async": "^2.5.0",
+ "watchpack-chokidar2": "^2.0.1"
+ },
+ "dependencies": {
+ "binary-extensions": {
+ "version": "2.2.0",
+ "dev": true,
+ "optional": true
+ },
+ "chokidar": {
+ "version": "3.5.3",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "anymatch": "~3.1.2",
+ "braces": "~3.0.2",
+ "fsevents": "~2.3.2",
+ "glob-parent": "~5.1.2",
+ "is-binary-path": "~2.1.0",
+ "is-glob": "~4.0.1",
+ "normalize-path": "~3.0.0",
+ "readdirp": "~3.6.0"
+ }
+ },
+ "is-binary-path": {
+ "version": "2.1.0",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "binary-extensions": "^2.0.0"
+ }
+ },
+ "readdirp": {
+ "version": "3.6.0",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "picomatch": "^2.2.1"
+ }
+ }
+ }
+ },
+ "watchpack-chokidar2": {
+ "version": "2.0.1",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "chokidar": "^2.1.8"
+ }
+ },
+ "wbuf": {
+ "version": "1.7.3",
+ "dev": true,
+ "requires": {
+ "minimalistic-assert": "^1.0.0"
+ }
+ },
+ "web-streams-polyfill": {
+ "version": "4.0.0-beta.1"
+ },
+ "webidl-conversions": {
+ "version": "3.0.1"
+ },
+ "webpack": {
+ "version": "4.46.0",
+ "dev": true,
+ "requires": {
+ "@webassemblyjs/ast": "1.9.0",
+ "@webassemblyjs/helper-module-context": "1.9.0",
+ "@webassemblyjs/wasm-edit": "1.9.0",
+ "@webassemblyjs/wasm-parser": "1.9.0",
+ "acorn": "^6.4.1",
+ "ajv": "^6.10.2",
+ "ajv-keywords": "^3.4.1",
+ "chrome-trace-event": "^1.0.2",
+ "enhanced-resolve": "^4.5.0",
+ "eslint-scope": "^4.0.3",
+ "json-parse-better-errors": "^1.0.2",
+ "loader-runner": "^2.4.0",
+ "loader-utils": "^1.2.3",
+ "memory-fs": "^0.4.1",
+ "micromatch": "^3.1.10",
+ "mkdirp": "^0.5.3",
+ "neo-async": "^2.6.1",
+ "node-libs-browser": "^2.2.1",
+ "schema-utils": "^1.0.0",
+ "tapable": "^1.1.3",
+ "terser-webpack-plugin": "^1.4.3",
+ "watchpack": "^1.7.4",
+ "webpack-sources": "^1.4.1"
+ },
+ "dependencies": {
+ "acorn": {
+ "version": "6.4.2",
+ "dev": true
+ },
+ "braces": {
+ "version": "2.3.2",
+ "dev": true,
+ "requires": {
+ "arr-flatten": "^1.1.0",
+ "array-unique": "^0.3.2",
+ "extend-shallow": "^2.0.1",
+ "fill-range": "^4.0.0",
+ "isobject": "^3.0.1",
+ "repeat-element": "^1.1.2",
+ "snapdragon": "^0.8.1",
+ "snapdragon-node": "^2.0.1",
+ "split-string": "^3.0.2",
+ "to-regex": "^3.0.1"
+ },
+ "dependencies": {
+ "extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "requires": {
+ "is-extendable": "^0.1.0"
+ }
+ }
+ }
+ },
+ "eslint-scope": {
+ "version": "4.0.3",
+ "dev": true,
+ "requires": {
+ "esrecurse": "^4.1.0",
+ "estraverse": "^4.1.1"
+ }
+ },
+ "fill-range": {
+ "version": "4.0.0",
+ "dev": true,
+ "requires": {
+ "extend-shallow": "^2.0.1",
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1",
+ "to-regex-range": "^2.1.0"
+ },
+ "dependencies": {
+ "extend-shallow": {
+ "version": "2.0.1",
+ "dev": true,
+ "requires": {
+ "is-extendable": "^0.1.0"
+ }
+ }
+ }
+ },
+ "is-number": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "kind-of": "^3.0.2"
+ },
+ "dependencies": {
+ "kind-of": {
+ "version": "3.2.2",
+ "dev": true,
+ "requires": {
+ "is-buffer": "^1.1.5"
+ }
+ }
+ }
+ },
+ "json5": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "minimist": "^1.2.0"
+ }
+ },
+ "loader-utils": {
+ "version": "1.4.0",
+ "dev": true,
+ "requires": {
+ "big.js": "^5.2.2",
+ "emojis-list": "^3.0.0",
+ "json5": "^1.0.1"
+ }
+ },
+ "micromatch": {
+ "version": "3.1.10",
+ "dev": true,
+ "requires": {
+ "arr-diff": "^4.0.0",
+ "array-unique": "^0.3.2",
+ "braces": "^2.3.1",
+ "define-property": "^2.0.2",
+ "extend-shallow": "^3.0.2",
+ "extglob": "^2.0.4",
+ "fragment-cache": "^0.2.1",
+ "kind-of": "^6.0.2",
+ "nanomatch": "^1.2.9",
+ "object.pick": "^1.3.0",
+ "regex-not": "^1.0.0",
+ "snapdragon": "^0.8.1",
+ "to-regex": "^3.0.2"
+ }
+ },
+ "schema-utils": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "ajv": "^6.1.0",
+ "ajv-errors": "^1.0.0",
+ "ajv-keywords": "^3.1.0"
+ }
+ },
+ "to-regex-range": {
+ "version": "2.1.1",
+ "dev": true,
+ "requires": {
+ "is-number": "^3.0.0",
+ "repeat-string": "^1.6.1"
+ }
+ }
+ }
+ },
+ "webpack-cli": {
+ "version": "3.3.12",
+ "dev": true,
+ "requires": {
+ "chalk": "^2.4.2",
+ "cross-spawn": "^6.0.5",
+ "enhanced-resolve": "^4.1.1",
+ "findup-sync": "^3.0.0",
+ "global-modules": "^2.0.0",
+ "import-local": "^2.0.0",
+ "interpret": "^1.4.0",
+ "loader-utils": "^1.4.0",
+ "supports-color": "^6.1.0",
+ "v8-compile-cache": "^2.1.1",
+ "yargs": "^13.3.2"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "4.1.1",
+ "dev": true
+ },
+ "ansi-styles": {
+ "version": "3.2.1",
+ "dev": true,
+ "requires": {
+ "color-convert": "^1.9.0"
+ }
+ },
+ "chalk": {
+ "version": "2.4.2",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^3.2.1",
+ "escape-string-regexp": "^1.0.5",
+ "supports-color": "^5.3.0"
+ },
+ "dependencies": {
+ "supports-color": {
+ "version": "5.5.0",
+ "dev": true,
+ "requires": {
+ "has-flag": "^3.0.0"
+ }
+ }
+ }
+ },
+ "cliui": {
+ "version": "5.0.0",
+ "dev": true,
+ "requires": {
+ "string-width": "^3.1.0",
+ "strip-ansi": "^5.2.0",
+ "wrap-ansi": "^5.1.0"
+ }
+ },
+ "color-convert": {
+ "version": "1.9.3",
+ "dev": true,
+ "requires": {
+ "color-name": "1.1.3"
+ }
+ },
+ "color-name": {
+ "version": "1.1.3",
+ "dev": true
+ },
+ "cross-spawn": {
+ "version": "6.0.5",
+ "dev": true,
+ "requires": {
+ "nice-try": "^1.0.4",
+ "path-key": "^2.0.1",
+ "semver": "^5.5.0",
+ "shebang-command": "^1.2.0",
+ "which": "^1.2.9"
+ }
+ },
+ "emoji-regex": {
+ "version": "7.0.3",
+ "dev": true
+ },
+ "escape-string-regexp": {
+ "version": "1.0.5",
+ "dev": true
+ },
+ "find-up": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "locate-path": "^3.0.0"
+ }
+ },
+ "global-modules": {
+ "version": "2.0.0",
+ "dev": true,
+ "requires": {
+ "global-prefix": "^3.0.0"
+ }
+ },
+ "global-prefix": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "ini": "^1.3.5",
+ "kind-of": "^6.0.2",
+ "which": "^1.3.1"
+ }
+ },
+ "has-flag": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "import-local": {
+ "version": "2.0.0",
+ "dev": true,
+ "requires": {
+ "pkg-dir": "^3.0.0",
+ "resolve-cwd": "^2.0.0"
+ }
+ },
+ "is-fullwidth-code-point": {
+ "version": "2.0.0",
+ "dev": true
+ },
+ "json5": {
+ "version": "1.0.1",
+ "dev": true,
+ "requires": {
+ "minimist": "^1.2.0"
+ }
+ },
+ "loader-utils": {
+ "version": "1.4.0",
+ "dev": true,
+ "requires": {
+ "big.js": "^5.2.2",
+ "emojis-list": "^3.0.0",
+ "json5": "^1.0.1"
+ }
+ },
+ "locate-path": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "p-locate": "^3.0.0",
+ "path-exists": "^3.0.0"
+ }
+ },
+ "p-locate": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "p-limit": "^2.0.0"
+ }
+ },
+ "path-exists": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "path-key": {
+ "version": "2.0.1",
+ "dev": true
+ },
+ "pkg-dir": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "find-up": "^3.0.0"
+ }
+ },
+ "resolve-cwd": {
+ "version": "2.0.0",
+ "dev": true,
+ "requires": {
+ "resolve-from": "^3.0.0"
+ }
+ },
+ "resolve-from": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "semver": {
+ "version": "5.7.1",
+ "dev": true
+ },
+ "shebang-command": {
+ "version": "1.2.0",
+ "dev": true,
+ "requires": {
+ "shebang-regex": "^1.0.0"
+ }
+ },
+ "shebang-regex": {
+ "version": "1.0.0",
+ "dev": true
+ },
+ "string-width": {
+ "version": "3.1.0",
+ "dev": true,
+ "requires": {
+ "emoji-regex": "^7.0.1",
+ "is-fullwidth-code-point": "^2.0.0",
+ "strip-ansi": "^5.1.0"
+ }
+ },
+ "strip-ansi": {
+ "version": "5.2.0",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^4.1.0"
+ }
+ },
+ "supports-color": {
+ "version": "6.1.0",
+ "dev": true,
+ "requires": {
+ "has-flag": "^3.0.0"
+ }
+ },
+ "which": {
+ "version": "1.3.1",
+ "dev": true,
+ "requires": {
+ "isexe": "^2.0.0"
+ }
+ },
+ "wrap-ansi": {
+ "version": "5.1.0",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^3.2.0",
+ "string-width": "^3.0.0",
+ "strip-ansi": "^5.0.0"
+ }
+ },
+ "yargs": {
+ "version": "13.3.2",
+ "dev": true,
+ "requires": {
+ "cliui": "^5.0.0",
+ "find-up": "^3.0.0",
+ "get-caller-file": "^2.0.1",
+ "require-directory": "^2.1.1",
+ "require-main-filename": "^2.0.0",
+ "set-blocking": "^2.0.0",
+ "string-width": "^3.0.0",
+ "which-module": "^2.0.0",
+ "y18n": "^4.0.0",
+ "yargs-parser": "^13.1.2"
+ }
+ },
+ "yargs-parser": {
+ "version": "13.1.2",
+ "dev": true,
+ "requires": {
+ "camelcase": "^5.0.0",
+ "decamelize": "^1.2.0"
+ }
+ }
+ }
+ },
+ "webpack-dev-middleware": {
+ "version": "3.7.3",
+ "dev": true,
+ "requires": {
+ "memory-fs": "^0.4.1",
+ "mime": "^2.4.4",
+ "mkdirp": "^0.5.1",
+ "range-parser": "^1.2.1",
+ "webpack-log": "^2.0.0"
+ },
+ "dependencies": {
+ "mime": {
+ "version": "2.6.0",
+ "dev": true
+ }
+ }
+ },
+ "webpack-dev-server": {
+ "version": "3.11.3",
+ "dev": true,
+ "requires": {
+ "ansi-html-community": "0.0.8",
+ "bonjour": "^3.5.0",
+ "chokidar": "^2.1.8",
+ "compression": "^1.7.4",
+ "connect-history-api-fallback": "^1.6.0",
+ "debug": "^4.1.1",
+ "del": "^4.1.1",
+ "express": "^4.17.1",
+ "html-entities": "^1.3.1",
+ "http-proxy-middleware": "0.19.1",
+ "import-local": "^2.0.0",
+ "internal-ip": "^4.3.0",
+ "ip": "^1.1.5",
+ "is-absolute-url": "^3.0.3",
+ "killable": "^1.0.1",
+ "loglevel": "^1.6.8",
+ "opn": "^5.5.0",
+ "p-retry": "^3.0.1",
+ "portfinder": "^1.0.26",
+ "schema-utils": "^1.0.0",
+ "selfsigned": "^1.10.8",
+ "semver": "^6.3.0",
+ "serve-index": "^1.9.1",
+ "sockjs": "^0.3.21",
+ "sockjs-client": "^1.5.0",
+ "spdy": "^4.0.2",
+ "strip-ansi": "^3.0.1",
+ "supports-color": "^6.1.0",
+ "url": "^0.11.0",
+ "webpack-dev-middleware": "^3.7.2",
+ "webpack-log": "^2.0.0",
+ "ws": "^6.2.1",
+ "yargs": "^13.3.2"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "4.1.1",
+ "dev": true
+ },
+ "ansi-styles": {
+ "version": "3.2.1",
+ "dev": true,
+ "requires": {
+ "color-convert": "^1.9.0"
+ }
+ },
+ "cliui": {
+ "version": "5.0.0",
+ "dev": true,
+ "requires": {
+ "string-width": "^3.1.0",
+ "strip-ansi": "^5.2.0",
+ "wrap-ansi": "^5.1.0"
+ },
+ "dependencies": {
+ "strip-ansi": {
+ "version": "5.2.0",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^4.1.0"
+ }
+ }
+ }
+ },
+ "color-convert": {
+ "version": "1.9.3",
+ "dev": true,
+ "requires": {
+ "color-name": "1.1.3"
+ }
+ },
+ "color-name": {
+ "version": "1.1.3",
+ "dev": true
+ },
+ "debug": {
+ "version": "4.3.4",
+ "dev": true,
+ "requires": {
+ "ms": "2.1.2"
+ }
+ },
+ "del": {
+ "version": "4.1.1",
+ "dev": true,
+ "requires": {
+ "@types/glob": "^7.1.1",
+ "globby": "^6.1.0",
+ "is-path-cwd": "^2.0.0",
+ "is-path-in-cwd": "^2.0.0",
+ "p-map": "^2.0.0",
+ "pify": "^4.0.1",
+ "rimraf": "^2.6.3"
+ }
+ },
+ "emoji-regex": {
+ "version": "7.0.3",
+ "dev": true
+ },
+ "find-up": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "locate-path": "^3.0.0"
+ }
+ },
+ "globby": {
+ "version": "6.1.0",
+ "dev": true,
+ "requires": {
+ "array-union": "^1.0.1",
+ "glob": "^7.0.3",
+ "object-assign": "^4.0.1",
+ "pify": "^2.0.0",
+ "pinkie-promise": "^2.0.0"
+ },
+ "dependencies": {
+ "pify": {
+ "version": "2.3.0",
+ "dev": true
+ }
+ }
+ },
+ "has-flag": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "import-local": {
+ "version": "2.0.0",
+ "dev": true,
+ "requires": {
+ "pkg-dir": "^3.0.0",
+ "resolve-cwd": "^2.0.0"
+ }
+ },
+ "is-fullwidth-code-point": {
+ "version": "2.0.0",
+ "dev": true
+ },
+ "is-path-cwd": {
+ "version": "2.2.0",
+ "dev": true
+ },
+ "is-path-in-cwd": {
+ "version": "2.1.0",
+ "dev": true,
+ "requires": {
+ "is-path-inside": "^2.1.0"
+ }
+ },
+ "is-path-inside": {
+ "version": "2.1.0",
+ "dev": true,
+ "requires": {
+ "path-is-inside": "^1.0.2"
+ }
+ },
+ "locate-path": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "p-locate": "^3.0.0",
+ "path-exists": "^3.0.0"
+ }
+ },
+ "ms": {
+ "version": "2.1.2",
+ "dev": true
+ },
+ "p-locate": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "p-limit": "^2.0.0"
+ }
+ },
+ "path-exists": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "pkg-dir": {
+ "version": "3.0.0",
+ "dev": true,
+ "requires": {
+ "find-up": "^3.0.0"
+ }
+ },
+ "punycode": {
+ "version": "1.3.2",
+ "dev": true
+ },
+ "resolve-cwd": {
+ "version": "2.0.0",
+ "dev": true,
+ "requires": {
+ "resolve-from": "^3.0.0"
+ }
+ },
+ "resolve-from": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "rimraf": {
+ "version": "2.7.1",
+ "dev": true,
+ "requires": {
+ "glob": "^7.1.3"
+ }
+ },
+ "schema-utils": {
+ "version": "1.0.0",
+ "dev": true,
+ "requires": {
+ "ajv": "^6.1.0",
+ "ajv-errors": "^1.0.0",
+ "ajv-keywords": "^3.1.0"
+ }
+ },
+ "semver": {
+ "version": "6.3.0",
+ "dev": true
+ },
+ "string-width": {
+ "version": "3.1.0",
+ "dev": true,
+ "requires": {
+ "emoji-regex": "^7.0.1",
+ "is-fullwidth-code-point": "^2.0.0",
+ "strip-ansi": "^5.1.0"
+ },
+ "dependencies": {
+ "strip-ansi": {
+ "version": "5.2.0",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^4.1.0"
+ }
+ }
+ }
+ },
+ "supports-color": {
+ "version": "6.1.0",
+ "dev": true,
+ "requires": {
+ "has-flag": "^3.0.0"
+ }
+ },
+ "url": {
+ "version": "0.11.0",
+ "dev": true,
+ "requires": {
+ "punycode": "1.3.2",
+ "querystring": "0.2.0"
+ }
+ },
+ "wrap-ansi": {
+ "version": "5.1.0",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^3.2.0",
+ "string-width": "^3.0.0",
+ "strip-ansi": "^5.0.0"
+ },
+ "dependencies": {
+ "strip-ansi": {
+ "version": "5.2.0",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^4.1.0"
+ }
+ }
+ }
+ },
+ "ws": {
+ "version": "6.2.2",
+ "dev": true,
+ "requires": {
+ "async-limiter": "~1.0.0"
+ }
+ },
+ "yargs": {
+ "version": "13.3.2",
+ "dev": true,
+ "requires": {
+ "cliui": "^5.0.0",
+ "find-up": "^3.0.0",
+ "get-caller-file": "^2.0.1",
+ "require-directory": "^2.1.1",
+ "require-main-filename": "^2.0.0",
+ "set-blocking": "^2.0.0",
+ "string-width": "^3.0.0",
+ "which-module": "^2.0.0",
+ "y18n": "^4.0.0",
+ "yargs-parser": "^13.1.2"
+ }
+ },
+ "yargs-parser": {
+ "version": "13.1.2",
+ "dev": true,
+ "requires": {
+ "camelcase": "^5.0.0",
+ "decamelize": "^1.2.0"
+ }
+ }
+ }
+ },
+ "webpack-log": {
+ "version": "2.0.0",
+ "dev": true,
+ "requires": {
+ "ansi-colors": "^3.0.0",
+ "uuid": "^3.3.2"
+ },
+ "dependencies": {
+ "ansi-colors": {
+ "version": "3.2.4",
+ "dev": true
+ }
+ }
+ },
+ "webpack-merge": {
+ "version": "4.2.2",
+ "dev": true,
+ "requires": {
+ "lodash": "^4.17.15"
+ }
+ },
+ "webpack-sources": {
+ "version": "1.4.3",
+ "dev": true,
+ "requires": {
+ "source-list-map": "^2.0.0",
+ "source-map": "~0.6.1"
+ },
+ "dependencies": {
+ "source-map": {
+ "version": "0.6.1",
+ "dev": true
+ }
+ }
+ },
+ "websocket-driver": {
+ "version": "0.7.4",
+ "dev": true,
+ "requires": {
+ "http-parser-js": ">=0.5.1",
+ "safe-buffer": ">=5.1.0",
+ "websocket-extensions": ">=0.1.1"
+ }
+ },
+ "websocket-extensions": {
+ "version": "0.1.4",
+ "dev": true
+ },
+ "whatwg-encoding": {
+ "version": "1.0.5",
+ "requires": {
+ "iconv-lite": "0.4.24"
+ }
+ },
+ "whatwg-mimetype": {
+ "version": "2.3.0"
+ },
+ "whatwg-url": {
+ "version": "5.0.0",
+ "requires": {
+ "tr46": "~0.0.3",
+ "webidl-conversions": "^3.0.0"
+ }
+ },
+ "which": {
+ "version": "2.0.2",
+ "requires": {
+ "isexe": "^2.0.0"
+ }
+ },
+ "which-boxed-primitive": {
+ "version": "1.0.2",
+ "dev": true,
+ "requires": {
+ "is-bigint": "^1.0.1",
+ "is-boolean-object": "^1.1.0",
+ "is-number-object": "^1.0.4",
+ "is-string": "^1.0.5",
+ "is-symbol": "^1.0.3"
+ }
+ },
+ "which-module": {
+ "version": "2.0.0",
+ "dev": true
+ },
+ "wide-align": {
+ "version": "1.1.5",
+ "requires": {
+ "string-width": "^1.0.2 || 2 || 3 || 4"
+ }
+ },
+ "widest-line": {
+ "version": "3.1.0",
+ "dev": true,
+ "requires": {
+ "string-width": "^4.0.0"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "5.0.1",
+ "dev": true
+ },
+ "is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "string-width": {
+ "version": "4.2.3",
+ "dev": true,
+ "requires": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ }
+ },
+ "strip-ansi": {
+ "version": "6.0.1",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^5.0.1"
+ }
+ }
+ }
+ },
+ "with-open-file": {
+ "version": "0.1.7",
+ "requires": {
+ "p-finally": "^1.0.0",
+ "p-try": "^2.1.0",
+ "pify": "^4.0.1"
+ }
+ },
+ "word-count": {
+ "version": "0.2.2"
+ },
+ "word-wrap": {
+ "version": "1.2.3"
+ },
+ "worker-farm": {
+ "version": "1.7.0",
+ "dev": true,
+ "requires": {
+ "errno": "~0.1.7"
+ }
+ },
+ "wrap-ansi": {
+ "version": "6.2.0",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "5.0.1",
+ "dev": true
+ },
+ "is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "string-width": {
+ "version": "4.2.3",
+ "dev": true,
+ "requires": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ }
+ },
+ "strip-ansi": {
+ "version": "6.0.1",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^5.0.1"
+ }
+ }
+ }
+ },
+ "wrappy": {
+ "version": "1.0.2"
+ },
+ "write-file-atomic": {
+ "version": "2.4.3",
+ "requires": {
+ "graceful-fs": "^4.1.11",
+ "imurmurhash": "^0.1.4",
+ "signal-exit": "^3.0.2"
+ }
+ },
+ "ws": {
+ "version": "7.5.7",
+ "requires": {}
+ },
+ "x-xss-protection": {
+ "version": "1.3.0"
+ },
+ "xdg-basedir": {
+ "version": "3.0.0"
+ },
+ "xml": {
+ "version": "1.0.1",
+ "dev": true
+ },
+ "xml-name-validator": {
+ "version": "3.0.0"
+ },
+ "xml2js": {
+ "version": "0.4.23",
+ "requires": {
+ "sax": ">=0.6.0",
+ "xmlbuilder": "~11.0.0"
+ }
+ },
+ "xmlbuilder": {
+ "version": "11.0.1"
+ },
+ "xmlchars": {
+ "version": "2.2.0"
+ },
+ "xmlcreate": {
+ "version": "1.0.2"
+ },
+ "xmldom": {
+ "version": "0.6.0",
+ "resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.6.0.tgz",
+ "integrity": "sha512-iAcin401y58LckRZ0TkI4k0VSM1Qg0KGSc3i8rU+xrxe19A/BN1zHyVSJY7uoutVlaTSzYyk/v5AmkewAP7jtg=="
+ },
+ "xtend": {
+ "version": "1.0.3"
+ },
+ "y18n": {
+ "version": "4.0.3",
+ "dev": true
+ },
+ "yallist": {
+ "version": "3.1.1"
+ },
+ "yaml-loader": {
+ "version": "0.5.0",
+ "dev": true,
+ "requires": {
+ "js-yaml": "^3.5.2"
+ },
+ "dependencies": {
+ "js-yaml": {
+ "version": "3.14.1",
+ "dev": true,
+ "requires": {
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
+ }
+ }
+ }
+ },
+ "yamljs": {
+ "version": "0.3.0",
+ "requires": {
+ "argparse": "^1.0.7",
+ "glob": "^7.0.5"
+ }
+ },
+ "yargs": {
+ "version": "15.4.1",
+ "dev": true,
+ "requires": {
+ "cliui": "^6.0.0",
+ "decamelize": "^1.2.0",
+ "find-up": "^4.1.0",
+ "get-caller-file": "^2.0.1",
+ "require-directory": "^2.1.1",
+ "require-main-filename": "^2.0.0",
+ "set-blocking": "^2.0.0",
+ "string-width": "^4.2.0",
+ "which-module": "^2.0.0",
+ "y18n": "^4.0.0",
+ "yargs-parser": "^18.1.2"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "5.0.1",
+ "dev": true
+ },
+ "is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "dev": true
+ },
+ "string-width": {
+ "version": "4.2.3",
+ "dev": true,
+ "requires": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ }
+ },
+ "strip-ansi": {
+ "version": "6.0.1",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^5.0.1"
+ }
+ }
+ }
+ },
+ "yargs-parser": {
+ "version": "18.1.3",
+ "dev": true,
+ "requires": {
+ "camelcase": "^5.0.0",
+ "decamelize": "^1.2.0"
+ }
+ },
+ "yauzl": {
+ "version": "2.10.0",
+ "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz",
+ "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==",
+ "requires": {
+ "buffer-crc32": "~0.2.3",
+ "fd-slicer": "~1.1.0"
+ }
+ }
+ }
+}
diff --git a/package.json b/package.json
index 92ca13e45..8cc33526d 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "salix-back",
- "version": "8.8.0",
+ "version": "9.0.0",
"author": "Verdnatura Levante SL",
"description": "Salix backend",
"license": "GPL-3.0",
@@ -13,8 +13,10 @@
},
"dependencies": {
"axios": "^0.25.0",
+ "bcrypt": "^5.0.1",
"bmp-js": "^0.1.0",
"compression": "^1.7.3",
+ "form-data": "^4.0.0",
"fs-extra": "^5.0.0",
"ftps": "^1.2.0",
"got": "^10.7.0",
@@ -25,7 +27,7 @@
"jsdom": "^16.7.0",
"jszip": "^3.10.0",
"ldapjs": "^2.2.0",
- "loopback": "^3.26.0",
+ "loopback": "^3.28.0",
"loopback-boot": "3.3.1",
"loopback-component-explorer": "^6.5.0",
"loopback-component-storage": "3.6.1",
@@ -40,7 +42,7 @@
"puppeteer": "^18.0.5",
"read-chunk": "^3.2.0",
"require-yaml": "0.0.1",
- "sharp": "^0.27.1",
+ "sharp": "^0.31.2",
"smbhash": "0.0.1",
"strong-error-handler": "^2.3.2",
"uuid": "^3.3.3",
@@ -78,7 +80,7 @@
"html-loader-jest": "^0.2.1",
"html-webpack-plugin": "^4.0.0-beta.11",
"identity-obj-proxy": "^3.0.0",
- "jasmine": "^4.1.0",
+ "jasmine": "^4.5.0",
"jasmine-reporters": "^2.4.0",
"jasmine-spec-reporter": "^7.0.0",
"jest": "^26.0.1",
diff --git a/print/boot.js b/print/boot.js
deleted file mode 100644
index d5c06264c..000000000
--- a/print/boot.js
+++ /dev/null
@@ -1,54 +0,0 @@
-const express = require('express');
-const path = require('path');
-const fs = require('fs');
-
-const templatesPath = path.resolve(__dirname, './templates');
-const componentsPath = path.resolve(__dirname, './core/components');
-
-module.exports = async app => {
- global.appPath = __dirname;
-
- process.env.OPENSSL_CONF = '/etc/ssl/';
-
- // Extended locale intl polyfill
- const IntlPolyfill = require('intl');
- Intl.NumberFormat = IntlPolyfill.NumberFormat;
- Intl.DateTimeFormat = IntlPolyfill.DateTimeFormat;
-
- // Init database instance
- require('./core/database').init();
- // Init SMTP Instance
- require('./core/smtp').init();
- require('./core/mixins');
- require('./core/filters');
- require('./core/directives');
- // Init router
- require('./core/router')(app);
-
- /**
- * Serve component static files
- */
- const componentsDir = fs.readdirSync(componentsPath);
- componentsDir.forEach(componentName => {
- const componentDir = path.join(componentsPath, '/', componentName);
- const assetsDir = `${componentDir}/assets`;
-
- app.use(`/api/${componentName}/assets`, express.static(assetsDir));
- });
-
- /**
- * Serve static files
- */
- const templatesDir = fs.readdirSync(templatesPath);
- templatesDir.forEach(directory => {
- const templateTypeDir = path.join(templatesPath, '/', directory);
- const templates = fs.readdirSync(templateTypeDir);
-
- templates.forEach(templateName => {
- const templateDir = path.join(templatesPath, '/', directory, '/', templateName);
- const assetsDir = `${templateDir}/assets`;
-
- app.use(`/api/${templateName}/assets`, express.static(assetsDir));
- });
- });
-};
diff --git a/print/common/css/misc.css b/print/common/css/misc.css
index df8bf571a..ce6c641a0 100644
--- a/print/common/css/misc.css
+++ b/print/common/css/misc.css
@@ -49,4 +49,10 @@
.page-break-after {
page-break-after: always;
+}
+
+.ellipsize {
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ overflow: hidden;
}
\ No newline at end of file
diff --git a/print/core/cluster.js b/print/core/cluster.js
new file mode 100644
index 000000000..23b3d88e9
--- /dev/null
+++ b/print/core/cluster.js
@@ -0,0 +1,43 @@
+const {Cluster} = require('puppeteer-cluster');
+const log4js = require('log4js');
+const {cpus} = require('os');
+
+module.exports = {
+ init() {
+ if (!this.pool) {
+ Cluster.launch({
+ concurrency: Cluster.CONCURRENCY_CONTEXT,
+ maxConcurrency: cpus().length,
+ puppeteerOptions: {
+ headless: true,
+ args: [
+ '--no-sandbox',
+ '--disable-setuid-sandbox',
+ '--no-zygote'
+ ]
+ }
+ })
+ .then(cluster => {
+ this.pool = cluster;
+
+ log4js.configure({
+ appenders: {
+ out: {type: 'stdout'}
+ },
+ categories: {default: {appenders: ['out'], level: 'info'}},
+ });
+
+ const logger = log4js.getLogger();
+
+ cluster.on('taskerror', (err, data, willRetry) => {
+ if (willRetry)
+ logger.warn(`[Print] => ${err.message}\nThis job will be retried`);
+ else
+ logger.error(`[Print] => ${err.message}`);
+ });
+
+ cluster.on('queue', () => logger.info('Printing task initialized by pool'));
+ });
+ }
+ }
+};
diff --git a/print/core/components/email-body/assets/css/import.js b/print/core/components/email-body/assets/css/import.js
new file mode 100644
index 000000000..4b4bb7086
--- /dev/null
+++ b/print/core/components/email-body/assets/css/import.js
@@ -0,0 +1,11 @@
+const Stylesheet = require(`vn-print/core/stylesheet`);
+
+const path = require('path');
+const vnPrintPath = path.resolve('print');
+
+module.exports = new Stylesheet([
+ `${vnPrintPath}/common/css/spacing.css`,
+ `${vnPrintPath}/common/css/misc.css`,
+ `${vnPrintPath}/common/css/layout.css`,
+ `${vnPrintPath}/common/css/email.css`])
+ .mergeStyles();
diff --git a/print/core/components/email-body/email-body.html b/print/core/components/email-body/email-body.html
new file mode 100644
index 000000000..962d029d2
--- /dev/null
+++ b/print/core/components/email-body/email-body.html
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/print/core/components/email-body/email-body.js b/print/core/components/email-body/email-body.js
new file mode 100644
index 000000000..4b59bed2e
--- /dev/null
+++ b/print/core/components/email-body/email-body.js
@@ -0,0 +1,12 @@
+
+const Component = require(`vn-print/core/component`);
+const emailHeader = new Component('email-header');
+const emailFooter = new Component('email-footer');
+
+module.exports = {
+ components: {
+ 'email-header': emailHeader.build(),
+ 'email-footer': emailFooter.build()
+ },
+ name: 'email-body',
+};
diff --git a/print/core/components/email-footer/email-footer.html b/print/core/components/email-footer/email-footer.html
index a033ec633..9c5df59a9 100644
--- a/print/core/components/email-footer/email-footer.html
+++ b/print/core/components/email-footer/email-footer.html
@@ -3,7 +3,7 @@
+
+
\ No newline at end of file
diff --git a/print/templates/email/letter-debtor-nd/letter-debtor-nd.js b/print/templates/email/letter-debtor-nd/letter-debtor-nd.js
index cf9cc7ddd..54ed9fed6 100755
--- a/print/templates/email/letter-debtor-nd/letter-debtor-nd.js
+++ b/print/templates/email/letter-debtor-nd/letter-debtor-nd.js
@@ -1,6 +1,5 @@
const Component = require(`vn-print/core/component`);
-const emailHeader = new Component('email-header');
-const emailFooter = new Component('email-footer');
+const emailBody = new Component('email-body');
const attachment = new Component('attachment');
module.exports = {
@@ -28,17 +27,16 @@ module.exports = {
}
},
components: {
- 'email-header': emailHeader.build(),
- 'email-footer': emailFooter.build(),
+ 'email-body': emailBody.build(),
'attachment': attachment.build()
},
props: {
id: {
- type: [Number, String],
+ type: Number,
required: true
},
companyId: {
- type: [Number, String],
+ type: Number,
required: true
}
}
diff --git a/print/templates/email/letter-debtor-st/letter-debtor-st.html b/print/templates/email/letter-debtor-st/letter-debtor-st.html
index 364e79d56..36f300c98 100644
--- a/print/templates/email/letter-debtor-st/letter-debtor-st.html
+++ b/print/templates/email/letter-debtor-st/letter-debtor-st.html
@@ -1,71 +1,31 @@
-
-
-
-
-
- {{ $t('subject') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ $t('title') }}
-
{{ $t('sections.introduction.title') }},
-
{{ $t('sections.introduction.description') }}
+
+
+
+
{{ $t('title') }}
+
{{ $t('sections.introduction.title') }},
+
{{ $t('sections.introduction.description') }}
-
{{ $t('checkExtract') }}
-
{{ $t('checkValidData') }}
-
{{ $t('payMethod') }}
-
{{ $t('conclusion') }}
+
{{ $t('checkExtract') }}
+
{{ $t('checkValidData') }}
+
{{ $t('payMethod') }}
+
{{ $t('conclusion') }}
-
-
-
{{debtor.bankName}}
-
{{debtor.iban}}
-
-
{{$t('transferAccount') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
{{debtor.bankName}}
+
{{debtor.iban}}
+
+
{{$t('transferAccount') }}
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/print/templates/email/letter-debtor-st/letter-debtor-st.js b/print/templates/email/letter-debtor-st/letter-debtor-st.js
index 1a6555673..e0a690f81 100755
--- a/print/templates/email/letter-debtor-st/letter-debtor-st.js
+++ b/print/templates/email/letter-debtor-st/letter-debtor-st.js
@@ -1,6 +1,5 @@
const Component = require(`vn-print/core/component`);
-const emailHeader = new Component('email-header');
-const emailFooter = new Component('email-footer');
+const emailBody = new Component('email-body');
const attachment = new Component('attachment');
module.exports = {
@@ -28,17 +27,16 @@ module.exports = {
}
},
components: {
- 'email-header': emailHeader.build(),
- 'email-footer': emailFooter.build(),
+ 'email-body': emailBody.build(),
'attachment': attachment.build()
},
props: {
id: {
- type: [Number, String],
+ type: Number,
required: true
},
companyId: {
- type: [Number, String],
+ type: Number,
required: true
},
}
diff --git a/print/templates/email/osticket-report/osticket-report.html b/print/templates/email/osticket-report/osticket-report.html
index a9cf9a24a..94e2f4b85 100644
--- a/print/templates/email/osticket-report/osticket-report.html
+++ b/print/templates/email/osticket-report/osticket-report.html
@@ -1,99 +1,59 @@
-
-
-
-
-
- {{ $t('subject') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ $t('title') }}
-
{{$t('dear')}},
-
-
-
-
-
-
-
-
-
-
-
-
-
{{technician.name}} ({{technician.tickets.length}} )
-
-
-
-
- {{$t('author')}}
- {{$t('dated')}}
- {{$t('ticketSubject')}}
- {{$t('ticketDescription')}}
- {{$t('resolution')}}
-
-
-
-
- {{ticket.author}}
-
-
- 🔓 {{ticket.created | date('%d-%m-%Y %H:%M')}}
-
-
- 🔒 {{ticket.closed | date('%d-%m-%Y %H:%M')}}
-
-
-
-
- {{ticket.number}} - {{ticket.subject}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+
{{ $t('title') }}
+
{{$t('dear')}},
+
+
+
+
+
+
+
+
+
+
+
+
{{technician.name}} ({{technician.tickets.length}} )
+
+
+
+
+ {{$t('author')}}
+ {{$t('dated')}}
+ {{$t('ticketSubject')}}
+ {{$t('ticketDescription')}}
+ {{$t('resolution')}}
+
+
+
+
+ {{ticket.author}}
+
+ 🔓 {{ticket.created | date('%d-%m-%Y %H:%M')}}
+ 🔒 {{ticket.closed | date('%d-%m-%Y %H:%M')}}
+
+
+
+ {{ticket.number}} - {{ticket.subject}}
+
+
+
+
+
+
+
+
+
+
diff --git a/print/templates/email/osticket-report/osticket-report.js b/print/templates/email/osticket-report/osticket-report.js
index 48e2202f8..eb9c76a89 100755
--- a/print/templates/email/osticket-report/osticket-report.js
+++ b/print/templates/email/osticket-report/osticket-report.js
@@ -1,6 +1,5 @@
const Component = require(`vn-print/core/component`);
-const emailHeader = new Component('email-header');
-const emailFooter = new Component('email-footer');
+const emailBody = new Component('email-body');
module.exports = {
name: 'osticket-report',
@@ -61,8 +60,7 @@ module.exports = {
}
},
components: {
- 'email-header': emailHeader.build(),
- 'email-footer': emailFooter.build()
+ 'email-body': emailBody.build(),
},
props: {}
};
diff --git a/print/templates/email/payment-update/payment-update.html b/print/templates/email/payment-update/payment-update.html
index 98854beef..35989732d 100644
--- a/print/templates/email/payment-update/payment-update.html
+++ b/print/templates/email/payment-update/payment-update.html
@@ -1,66 +1,28 @@
-
-
-
-
-
- {{ $t('subject') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ $t('title') }}
-
{{ $t('sections.introduction.title') }},
-
+
+
+
+
{{ $t('title') }}
+
{{ $t('sections.introduction.title') }},
+
-
-
- {{ $t('sections.pay.method') }}:
- {{payMethod.name}}
-
-
- {{ $t('sections.pay.day') }}:
- {{ $t('sections.pay.dueDay', [payMethod.dueDay]) }}
-
-
+
+
+ {{ $t('sections.pay.method') }}:
+ {{payMethod.name}}
+
+
+ {{ $t('sections.pay.day') }}:
+ {{ $t('sections.pay.dueDay', [payMethod.dueDay]) }}
+
+
-
-
-
- {{ $t('sections.pay.cardImplicates') }}
-
+
+
+
+ {{ $t('sections.pay.cardImplicates') }}
+
-
{{ $t('notifyAnError') }}
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+ {{ $t('notifyAnError') }}
+
+
+
\ No newline at end of file
diff --git a/print/templates/email/payment-update/payment-update.js b/print/templates/email/payment-update/payment-update.js
index a9d99d4ef..c03cf76ca 100755
--- a/print/templates/email/payment-update/payment-update.js
+++ b/print/templates/email/payment-update/payment-update.js
@@ -1,6 +1,5 @@
const Component = require(`vn-print/core/component`);
-const emailHeader = new Component('email-header');
-const emailFooter = new Component('email-footer');
+const emailBody = new Component('email-body');
module.exports = {
name: 'payment-update',
@@ -21,12 +20,11 @@ module.exports = {
}
},
components: {
- 'email-header': emailHeader.build(),
- 'email-footer': emailFooter.build()
+ 'email-body': emailBody.build(),
},
props: {
id: {
- type: [Number, String],
+ type: Number,
required: true,
description: 'The client id'
}
diff --git a/print/templates/email/printer-setup/printer-setup.html b/print/templates/email/printer-setup/printer-setup.html
index fff21eb90..4320ae50d 100644
--- a/print/templates/email/printer-setup/printer-setup.html
+++ b/print/templates/email/printer-setup/printer-setup.html
@@ -1,90 +1,49 @@
-
-
-
-
-
- {{ $t('subject') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ $t('title') }}
-
{{$t('description.dear')}},
-
{{$t('description.instructions')}}
-
-
-
+
+
+
+
{{ $t('title') }}
+
{{$t('description.dear')}},
+
{{$t('description.instructions')}}
+
+
+
-
{{$t('sections.QLabel.title')}}
-
{{$t('sections.QLabel.description')}}:
-
-
-
-
-
-
-
-
-
-
-
{{$t('sections.help.title')}}
-
{{$t('sections.help.description')}}
-
-
-
-
-
-
-
- {{$t('salesPersonName')}}: {{client.salesPersonName}}
-
-
- {{$t('salesPersonPhone')}}: {{client.salesPersonPhone}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+ {{$t('sections.QLabel.title')}}
+ {{$t('sections.QLabel.description')}}:
+
+
+
+
+
+
+
+
+
+
{{$t('sections.help.title')}}
+
{{$t('sections.help.description')}}
+
+
+
+
+
+
+ {{$t('salesPersonName')}}: {{client.salesPersonName}}
+
+
+ {{$t('salesPersonPhone')}}: {{client.salesPersonPhone}}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/print/templates/email/printer-setup/printer-setup.js b/print/templates/email/printer-setup/printer-setup.js
index a7d3c40bf..8e892737a 100755
--- a/print/templates/email/printer-setup/printer-setup.js
+++ b/print/templates/email/printer-setup/printer-setup.js
@@ -1,6 +1,5 @@
const Component = require(`vn-print/core/component`);
-const emailHeader = new Component('email-header');
-const emailFooter = new Component('email-footer');
+const emailBody = new Component('email-body');
const attachment = new Component('attachment');
const attachments = require('./attachments.json');
@@ -18,13 +17,12 @@ module.exports = {
}
},
components: {
- 'email-header': emailHeader.build(),
- 'email-footer': emailFooter.build(),
+ 'email-body': emailBody.build(),
'attachment': attachment.build()
},
props: {
id: {
- type: [Number, String],
+ type: Number,
required: true
}
}
diff --git a/print/templates/email/recover-password/assets/css/import.js b/print/templates/email/recover-password/assets/css/import.js
new file mode 100644
index 000000000..7360587f7
--- /dev/null
+++ b/print/templates/email/recover-password/assets/css/import.js
@@ -0,0 +1,13 @@
+const Stylesheet = require(`vn-print/core/stylesheet`);
+
+const path = require('path');
+const vnPrintPath = path.resolve('print');
+
+module.exports = new Stylesheet([
+ `${vnPrintPath}/common/css/spacing.css`,
+ `${vnPrintPath}/common/css/misc.css`,
+ `${vnPrintPath}/common/css/layout.css`,
+ `${vnPrintPath}/common/css/email.css`,
+ `${__dirname}/style.css`])
+ .mergeStyles();
+
diff --git a/print/templates/email/recover-password/assets/css/style.css b/print/templates/email/recover-password/assets/css/style.css
new file mode 100644
index 000000000..5db85befa
--- /dev/null
+++ b/print/templates/email/recover-password/assets/css/style.css
@@ -0,0 +1,5 @@
+.external-link {
+ border: 2px dashed #8dba25;
+ border-radius: 3px;
+ text-align: center
+}
\ No newline at end of file
diff --git a/print/templates/email/recover-password/locale/es.yml b/print/templates/email/recover-password/locale/es.yml
new file mode 100644
index 000000000..c72b108ee
--- /dev/null
+++ b/print/templates/email/recover-password/locale/es.yml
@@ -0,0 +1,3 @@
+subject: Recuperar contraseña
+title: Recuperar contraseña
+Click on the following link to change your password.: Pulsa en el siguiente link para cambiar tu contraseña.
diff --git a/print/templates/email/recover-password/recover-password.html b/print/templates/email/recover-password/recover-password.html
new file mode 100644
index 000000000..a654b3d5f
--- /dev/null
+++ b/print/templates/email/recover-password/recover-password.html
@@ -0,0 +1,48 @@
+
+
+
+
+
+ {{ $t('subject') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/print/templates/email/recover-password/recover-password.js b/print/templates/email/recover-password/recover-password.js
new file mode 100755
index 000000000..b589411a9
--- /dev/null
+++ b/print/templates/email/recover-password/recover-password.js
@@ -0,0 +1,17 @@
+const Component = require(`vn-print/core/component`);
+const emailHeader = new Component('email-header');
+const emailFooter = new Component('email-footer');
+
+module.exports = {
+ name: 'recover-password',
+ components: {
+ 'email-header': emailHeader.build(),
+ 'email-footer': emailFooter.build()
+ },
+ props: {
+ url: {
+ type: [String],
+ required: true
+ }
+ }
+};
diff --git a/print/templates/email/sepa-core/sepa-core.html b/print/templates/email/sepa-core/sepa-core.html
index 88acdbf86..d584605dd 100644
--- a/print/templates/email/sepa-core/sepa-core.html
+++ b/print/templates/email/sepa-core/sepa-core.html
@@ -1,57 +1,21 @@
-
-
-
-
-
- {{ $t('subject') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ $t('title') }}
-
{{$t('description.dear')}},
-
-
{{$t('description.conclusion')}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+
{{ $t('title') }}
+
{{$t('description.dear')}},
+
+
{{$t('description.conclusion')}}
+
+
+
+
diff --git a/print/templates/email/sepa-core/sepa-core.js b/print/templates/email/sepa-core/sepa-core.js
index 00cc527dc..15a61e1b1 100755
--- a/print/templates/email/sepa-core/sepa-core.js
+++ b/print/templates/email/sepa-core/sepa-core.js
@@ -1,7 +1,5 @@
const Component = require(`vn-print/core/component`);
-const emailHeader = new Component('email-header');
-const emailFooter = new Component('email-footer');
-const attachment = new Component('attachment');
+const emailBody = new Component('email-body');
const attachments = require('./attachments.json');
module.exports = {
@@ -10,17 +8,15 @@ module.exports = {
return {attachments};
},
components: {
- 'email-header': emailHeader.build(),
- 'email-footer': emailFooter.build(),
- 'attachment': attachment.build()
+ 'email-body': emailBody.build()
},
props: {
id: {
- type: [Number, String],
+ type: Number,
required: true
},
companyId: {
- type: [Number, String],
+ type: Number,
required: true
}
}
diff --git a/print/templates/email/supplier-campaign-metrics/supplier-campaign-metrics.html b/print/templates/email/supplier-campaign-metrics/supplier-campaign-metrics.html
index ff8c661ee..79d856632 100644
--- a/print/templates/email/supplier-campaign-metrics/supplier-campaign-metrics.html
+++ b/print/templates/email/supplier-campaign-metrics/supplier-campaign-metrics.html
@@ -1,46 +1,9 @@
-
-
-
-
-
- {{ $t('subject') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ $t('title') }}
-
{{$t('dear')}},
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+
{{ $t('title') }}
+
{{$t('dear')}},
+
+
+
+
diff --git a/print/templates/email/supplier-campaign-metrics/supplier-campaign-metrics.js b/print/templates/email/supplier-campaign-metrics/supplier-campaign-metrics.js
index 9cb9210ef..3a673d2e4 100755
--- a/print/templates/email/supplier-campaign-metrics/supplier-campaign-metrics.js
+++ b/print/templates/email/supplier-campaign-metrics/supplier-campaign-metrics.js
@@ -1,6 +1,5 @@
const Component = require(`vn-print/core/component`);
-const emailHeader = new Component('email-header');
-const emailFooter = new Component('email-footer');
+const emailBody = new Component('email-body');
module.exports = {
name: 'supplier-campaign-metrics',
@@ -16,12 +15,11 @@ module.exports = {
}
},
components: {
- 'email-header': emailHeader.build(),
- 'email-footer': emailFooter.build()
+ 'email-body': emailBody.build()
},
props: {
id: {
- type: [Number, String],
+ type: Number,
required: true
},
from: {
diff --git a/print/templates/email/supplier-pay-method-update/assets/css/import.js b/print/templates/email/supplier-pay-method-update/assets/css/import.js
new file mode 100644
index 000000000..4b4bb7086
--- /dev/null
+++ b/print/templates/email/supplier-pay-method-update/assets/css/import.js
@@ -0,0 +1,11 @@
+const Stylesheet = require(`vn-print/core/stylesheet`);
+
+const path = require('path');
+const vnPrintPath = path.resolve('print');
+
+module.exports = new Stylesheet([
+ `${vnPrintPath}/common/css/spacing.css`,
+ `${vnPrintPath}/common/css/misc.css`,
+ `${vnPrintPath}/common/css/layout.css`,
+ `${vnPrintPath}/common/css/email.css`])
+ .mergeStyles();
diff --git a/print/templates/email/supplier-pay-method-update/locale/en.yml b/print/templates/email/supplier-pay-method-update/locale/en.yml
new file mode 100644
index 000000000..f04ccc5ce
--- /dev/null
+++ b/print/templates/email/supplier-pay-method-update/locale/en.yml
@@ -0,0 +1,3 @@
+subject: Pay method updated
+title: Pay method updated
+description: The pay method of the supplier {0} has been updated from {1} to {2}
diff --git a/print/templates/email/supplier-pay-method-update/locale/es.yml b/print/templates/email/supplier-pay-method-update/locale/es.yml
new file mode 100644
index 000000000..59ee0e02f
--- /dev/null
+++ b/print/templates/email/supplier-pay-method-update/locale/es.yml
@@ -0,0 +1,3 @@
+subject: Método de pago actualizado
+title: Método de pago actualizado
+description: Se ha actualizado el método de pago del proveedor {0} de {1} a {2}
diff --git a/print/templates/email/supplier-pay-method-update/supplier-pay-method-update.html b/print/templates/email/supplier-pay-method-update/supplier-pay-method-update.html
new file mode 100644
index 000000000..df8543cd9
--- /dev/null
+++ b/print/templates/email/supplier-pay-method-update/supplier-pay-method-update.html
@@ -0,0 +1,8 @@
+
+
+
diff --git a/print/templates/email/supplier-pay-method-update/supplier-pay-method-update.js b/print/templates/email/supplier-pay-method-update/supplier-pay-method-update.js
new file mode 100755
index 000000000..283b2689c
--- /dev/null
+++ b/print/templates/email/supplier-pay-method-update/supplier-pay-method-update.js
@@ -0,0 +1,23 @@
+const Component = require(`vn-print/core/component`);
+const emailBody = new Component('email-body');
+
+module.exports = {
+ name: 'supplier-pay-method-update',
+ components: {
+ 'email-body': emailBody.build(),
+ },
+ props: {
+ name: {
+ type: String,
+ required: true
+ },
+ oldPayMethod: {
+ type: String,
+ required: true
+ },
+ newPayMethod: {
+ type: String,
+ required: true
+ }
+ }
+};
diff --git a/print/templates/email/vehicle-event-expired/assets/css/import.js b/print/templates/email/vehicle-event-expired/assets/css/import.js
new file mode 100644
index 000000000..4b4bb7086
--- /dev/null
+++ b/print/templates/email/vehicle-event-expired/assets/css/import.js
@@ -0,0 +1,11 @@
+const Stylesheet = require(`vn-print/core/stylesheet`);
+
+const path = require('path');
+const vnPrintPath = path.resolve('print');
+
+module.exports = new Stylesheet([
+ `${vnPrintPath}/common/css/spacing.css`,
+ `${vnPrintPath}/common/css/misc.css`,
+ `${vnPrintPath}/common/css/layout.css`,
+ `${vnPrintPath}/common/css/email.css`])
+ .mergeStyles();
diff --git a/print/templates/email/vehicle-event-expired/attachments.json b/print/templates/email/vehicle-event-expired/attachments.json
new file mode 100644
index 000000000..6b56392a0
--- /dev/null
+++ b/print/templates/email/vehicle-event-expired/attachments.json
@@ -0,0 +1,6 @@
+[
+ {
+ "filename": "vehicle-event-expired.pdf",
+ "component": "vehicle-event-expired"
+ }
+]
diff --git a/print/templates/email/vehicle-event-expired/locale/es.yml b/print/templates/email/vehicle-event-expired/locale/es.yml
new file mode 100644
index 000000000..f6fff468c
--- /dev/null
+++ b/print/templates/email/vehicle-event-expired/locale/es.yml
@@ -0,0 +1,3 @@
+subject: Expiración Tarjetas Vehículos
+title: Expiración Tarjetas Vehículos
+description: A continuación se adjunta el informe de expiración de tarjetas vehículos
diff --git a/print/templates/email/vehicle-event-expired/vehicle-event-expired.html b/print/templates/email/vehicle-event-expired/vehicle-event-expired.html
new file mode 100644
index 000000000..f4c1ebc1b
--- /dev/null
+++ b/print/templates/email/vehicle-event-expired/vehicle-event-expired.html
@@ -0,0 +1,8 @@
+
+
+
diff --git a/print/templates/email/vehicle-event-expired/vehicle-event-expired.js b/print/templates/email/vehicle-event-expired/vehicle-event-expired.js
new file mode 100755
index 000000000..1c228d2b5
--- /dev/null
+++ b/print/templates/email/vehicle-event-expired/vehicle-event-expired.js
@@ -0,0 +1,9 @@
+const Component = require(`vn-print/core/component`);
+const emailBody = new Component('email-body');
+
+module.exports = {
+ name: 'vehicle-event-expired',
+ components: {
+ 'email-body': emailBody.build()
+ }
+};
diff --git a/print/templates/email/weekly-hour-record/assets/css/import.js b/print/templates/email/weekly-hour-record/assets/css/import.js
new file mode 100644
index 000000000..1582b82c5
--- /dev/null
+++ b/print/templates/email/weekly-hour-record/assets/css/import.js
@@ -0,0 +1,12 @@
+const Stylesheet = require(`vn-print/core/stylesheet`);
+
+const path = require('path');
+const vnPrintPath = path.resolve('print');
+
+module.exports = new Stylesheet([
+ `${vnPrintPath}/common/css/spacing.css`,
+ `${vnPrintPath}/common/css/misc.css`,
+ `${vnPrintPath}/common/css/layout.css`,
+ `${vnPrintPath}/common/css/email.css`])
+ .mergeStyles();
+
diff --git a/print/templates/email/weekly-hour-record/locale/en.yml b/print/templates/email/weekly-hour-record/locale/en.yml
new file mode 100644
index 000000000..817e5451e
--- /dev/null
+++ b/print/templates/email/weekly-hour-record/locale/en.yml
@@ -0,0 +1,6 @@
+subject: Weekly time log
+title: Record of hours week {0} year {1}
+dear: Dear worker
+description: Access the following link:
+ {0}
+ Click 'SATISFIED' if you agree with the hours worked. Otherwise, press 'NOT SATISFIED', detailing the cause of the disagreement.
diff --git a/print/templates/email/weekly-hour-record/locale/es.yml b/print/templates/email/weekly-hour-record/locale/es.yml
new file mode 100644
index 000000000..b70862f16
--- /dev/null
+++ b/print/templates/email/weekly-hour-record/locale/es.yml
@@ -0,0 +1,6 @@
+subject: Registro de horas semanal
+title: Registro de horas semana {0} año {1}
+dear: Estimado trabajador
+description: Acceda al siguiente enlace:
+ {0}
+ Pulse 'CONFORME' si esta de acuerdo con las horas trabajadas. En caso contrario pulse 'NO CONFORME', detallando la causa de la disconformidad.
diff --git a/print/templates/email/weekly-hour-record/weekly-hour-record.html b/print/templates/email/weekly-hour-record/weekly-hour-record.html
new file mode 100644
index 000000000..84abb4c61
--- /dev/null
+++ b/print/templates/email/weekly-hour-record/weekly-hour-record.html
@@ -0,0 +1,9 @@
+
+
+
+
{{ $t('title', [week, year]) }}
+
{{$t('dear')}},
+
+
+
+
diff --git a/print/templates/email/weekly-hour-record/weekly-hour-record.js b/print/templates/email/weekly-hour-record/weekly-hour-record.js
new file mode 100755
index 000000000..8fdaea0ce
--- /dev/null
+++ b/print/templates/email/weekly-hour-record/weekly-hour-record.js
@@ -0,0 +1,23 @@
+const Component = require(`vn-print/core/component`);
+const emailBody = new Component('email-body');
+
+module.exports = {
+ name: 'weekly-hour-record',
+ components: {
+ 'email-body': emailBody.build()
+ },
+ props: {
+ week: {
+ type: Number,
+ required: true
+ },
+ year: {
+ type: Number,
+ required: true
+ },
+ url: {
+ type: String,
+ required: true
+ }
+ }
+};
diff --git a/print/templates/reports/balance-compensation/balance-compensation.html b/print/templates/reports/balance-compensation/balance-compensation.html
new file mode 100644
index 000000000..59af1bd11
--- /dev/null
+++ b/print/templates/reports/balance-compensation/balance-compensation.html
@@ -0,0 +1,31 @@
+
+
+
+
+
+
{{$t('Place')}} {{currentDate()}}
+
{{$t('Compensation') | uppercase}}
+
{{$t('In one hand')}}:
+
+ {{company.name}} {{$t('CIF')}} {{company.nif}} {{$t('Home')}} {{company.street}},
+ {{company.city}}.
+
+
{{$t('In other hand')}}:
+
+ {{$t('Sr')}} {{client.name}} {{$t('NIF')}} {{client.fi}} {{$t('Home')}} {{client.street}},
+ {{client.city}}.
+
+
{{$t('Agree') | uppercase}}
+
+ {{$t('Date')}} {{client.payed | date('%d-%m-%Y')}} {{$t('Compensate')}} {{client.amountPaid}} €
+ {{$t('From client')}} {{client.name}} {{$t('Toclient')}} {{company.name}}.
+
+
+ {{$t('Reception')}} administracion@verdnatura.es
+
+
{{$t('Greetings')}}
+
+
+
+
+
diff --git a/print/templates/reports/balance-compensation/balance-compensation.js b/print/templates/reports/balance-compensation/balance-compensation.js
new file mode 100644
index 000000000..98a9cf577
--- /dev/null
+++ b/print/templates/reports/balance-compensation/balance-compensation.js
@@ -0,0 +1,34 @@
+const Component = require(`vn-print/core/component`);
+const reportBody = new Component('report-body');
+
+module.exports = {
+ name: 'balance-compensation',
+ async serverPrefetch() {
+ this.client = await this.fetchClient(this.id);
+ this.company = await this.fetchCompany(this.id);
+ },
+ methods: {
+ fetchClient(id) {
+ return this.findOneFromDef('client', [id]);
+ },
+ fetchCompany(id) {
+ return this.findOneFromDef('company', [id]);
+ },
+
+ currentDate() {
+ const current = new Date();
+ const date = `${current.getDate()}/${current.getMonth() + 1}/${current.getFullYear()}`;
+ return date;
+ }
+ },
+ components: {
+ 'report-body': reportBody.build()
+ },
+ props: {
+ id: {
+ type: Number,
+ required: true,
+ description: 'The receipt id'
+ }
+ }
+};
diff --git a/print/templates/reports/balance-compensation/css/import.js b/print/templates/reports/balance-compensation/css/import.js
new file mode 100644
index 000000000..37a98dfdd
--- /dev/null
+++ b/print/templates/reports/balance-compensation/css/import.js
@@ -0,0 +1,12 @@
+const Stylesheet = require(`vn-print/core/stylesheet`);
+
+const path = require('path');
+const vnPrintPath = path.resolve('print');
+
+module.exports = new Stylesheet([
+ `${vnPrintPath}/common/css/spacing.css`,
+ `${vnPrintPath}/common/css/misc.css`,
+ `${vnPrintPath}/common/css/layout.css`,
+ `${vnPrintPath}/common/css/report.css`,
+ `${__dirname}/style.css`])
+ .mergeStyles();
diff --git a/print/templates/reports/balance-compensation/locale/es.yml b/print/templates/reports/balance-compensation/locale/es.yml
new file mode 100644
index 000000000..546e55f06
--- /dev/null
+++ b/print/templates/reports/balance-compensation/locale/es.yml
@@ -0,0 +1,16 @@
+reportName: compensacion-saldo
+Place: Algemesí, a
+Compensation: Compensación de saldos deudores y acreedores
+In one hand: De una parte
+CIF: con CIF
+NIF: con NIF
+Home: y domicilio sito en
+In other hand: De la otra
+Sr: Don/Doña
+Agree: Acuerdan
+Date: En fecha de
+Compensate: se ha compensado el saldo de
+From client: del cliente/proveedor
+To client: con el cliente/proveedor
+Reception: Por favor, rogamos confirmen la recepción de esta compensación al email
+Greetings: Saludos cordiales,
\ No newline at end of file
diff --git a/print/templates/reports/balance-compensation/sql/client.sql b/print/templates/reports/balance-compensation/sql/client.sql
new file mode 100644
index 000000000..92e6f6cab
--- /dev/null
+++ b/print/templates/reports/balance-compensation/sql/client.sql
@@ -0,0 +1,12 @@
+SELECT
+ c.name,
+ c.socialName,
+ c.street,
+ c.fi,
+ c.city,
+ r.amountPaid,
+ r.payed
+ FROM client c
+ JOIN receipt r ON r.clientFk = c.id
+ JOIN supplier s ON c.fi = s.nif
+ WHERE r.id = ?
\ No newline at end of file
diff --git a/print/templates/reports/balance-compensation/sql/company.sql b/print/templates/reports/balance-compensation/sql/company.sql
new file mode 100644
index 000000000..e61228a10
--- /dev/null
+++ b/print/templates/reports/balance-compensation/sql/company.sql
@@ -0,0 +1,8 @@
+SELECT
+ s.name,
+ s.nif,
+ s.street,
+ s.city
+ FROM supplier s
+ JOIN receipt r ON r.companyFk = s.id
+ WHERE r.id = ?;
\ No newline at end of file
diff --git a/print/templates/reports/campaign-metrics/campaign-metrics.html b/print/templates/reports/campaign-metrics/campaign-metrics.html
index 725c03e4d..e86d4cd3b 100644
--- a/print/templates/reports/campaign-metrics/campaign-metrics.html
+++ b/print/templates/reports/campaign-metrics/campaign-metrics.html
@@ -1,95 +1,72 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{$t('title')}}
-
-
-
-
- {{$t('Client')}}
- {{client.id}}
-
-
- {{$t('From')}}
- {{from | date('%d-%m-%Y')}}
-
-
- {{$t('To')}}
- {{to | date('%d-%m-%Y')}}
-
-
-
-
-
-
-
-
-
-
{{client.socialName}}
-
- {{client.street}}
-
-
- {{client.postcode}}, {{client.city}} ({{client.province}})
-
-
- {{client.country}}
-
-
-
-
-
-
-
-
- {{$t('Code')}}
- {{$t('Quantity')}}
- {{$t('Concept')}}
-
-
-
-
- {{sale.itemFk | zerofill('000000')}}
- {{Math.trunc(sale.subtotal)}}
- {{sale.concept}}
-
-
-
-
- {{sale.tag5}} {{sale.value5}}
-
-
- {{sale.tag6}} {{sale.value6}}
-
-
- {{sale.tag7}} {{sale.value7}}
-
-
-
-
-
-
+
+
+
+
+
+
{{$t('title')}}
+
+
+
+
+ {{$t('Client')}}
+ {{client.id}}
+
+
+ {{$t('From')}}
+ {{from | date('%d-%m-%Y')}}
+
+
+ {{$t('To')}}
+ {{to | date('%d-%m-%Y')}}
+
+
+
+
+
+
+
+
+
+
{{client.socialName}}
+
{{client.street}}
+
{{client.postcode}}, {{client.city}} ({{client.province}})
+
{{client.country}}
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+
+
+
+ {{$t('Code')}}
+ {{$t('Quantity')}}
+ {{$t('Concept')}}
+
+
+
+
+ {{sale.itemFk | zerofill('000000')}}
+ {{Math.trunc(sale.subtotal)}}
+ {{sale.concept}}
+
+
+
+ {{sale.tag5}} {{sale.value5}}
+ {{sale.tag6}} {{sale.value6}}
+ {{sale.tag7}} {{sale.value7}}
+
+
+
+
+
+
+
+
+
+
diff --git a/print/templates/reports/campaign-metrics/campaign-metrics.js b/print/templates/reports/campaign-metrics/campaign-metrics.js
index b60a2b7eb..14a4b6a9b 100755
--- a/print/templates/reports/campaign-metrics/campaign-metrics.js
+++ b/print/templates/reports/campaign-metrics/campaign-metrics.js
@@ -1,5 +1,5 @@
const Component = require(`vn-print/core/component`);
-const reportHeader = new Component('report-header');
+const reportBody = new Component('report-body');
const reportFooter = new Component('report-footer');
module.exports = {
@@ -20,12 +20,12 @@ module.exports = {
},
},
components: {
- 'report-header': reportHeader.build(),
+ 'report-body': reportBody.build(),
'report-footer': reportFooter.build()
},
props: {
id: {
- type: [Number, String],
+ type: Number,
required: true,
description: 'The client id'
},
diff --git a/print/templates/reports/claim-pickup-order/claim-pickup-order.html b/print/templates/reports/claim-pickup-order/claim-pickup-order.html
index 6764344b5..b14f5410c 100644
--- a/print/templates/reports/claim-pickup-order/claim-pickup-order.html
+++ b/print/templates/reports/claim-pickup-order/claim-pickup-order.html
@@ -1,97 +1,77 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{$t('title')}}
-
-
-
- {{$t('claimId')}}
- {{id}}
-
-
- {{$t('clientId')}}
- {{client.id}}
-
-
- {{$t('phone')}}
- {{client.phone}}
-
-
- {{$t('date')}}
- {{dated}}
-
-
-
-
-
-
-
-
-
{{client.nickname}}
-
- {{client.street}}
-
-
- {{client.postalCode}}, {{client.city}} ({{client.province}})
-
-
- {{client.country}}
-
-
-
-
-
-
-
-
-
- {{$t('reference')}}
- {{$t('quantity')}}
- {{$t('claims')}}
- {{$t('concept')}}
-
-
-
-
- {{sale.id}}
- {{sale.quantity}}
- {{sale.claimQuantity}}
- {{sale.concept}}
-
-
-
-
-
-
-
-
{{client.name}}
-
-
-
-
-
{{claimConfig.pickupContact}}
-
+
+
+
+
+
+
{{$t('title')}}
+
+
+
+ {{$t('claimId')}}
+ {{id}}
+
+
+ {{$t('clientId')}}
+ {{client.id}}
+
+
+ {{$t('phone')}}
+ {{client.phone}}
+
+
+ {{$t('date')}}
+ {{dated}}
+
+
+
+
+
+
+
+
+
{{client.nickname}}
+
{{client.street}}
+
{{client.postalCode}}, {{client.city}} ({{client.province}})
+
{{client.country}}
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+
+
+
+
+ {{$t('reference')}}
+ {{$t('quantity')}}
+ {{$t('claims')}}
+ {{$t('concept')}}
+
+
+
+
+ {{sale.id}}
+ {{sale.quantity}}
+ {{sale.claimQuantity}}
+ {{sale.concept}}
+
+
+
+
+
+
+
+
{{client.name}}
+
+
+
+
+
+
+
+
diff --git a/print/templates/reports/claim-pickup-order/claim-pickup-order.js b/print/templates/reports/claim-pickup-order/claim-pickup-order.js
index f7d21a2d3..5c7002e47 100755
--- a/print/templates/reports/claim-pickup-order/claim-pickup-order.js
+++ b/print/templates/reports/claim-pickup-order/claim-pickup-order.js
@@ -1,5 +1,5 @@
const Component = require(`vn-print/core/component`);
-const reportHeader = new Component('report-header');
+const reportBody = new Component('report-body');
const reportFooter = new Component('report-footer');
module.exports = {
@@ -7,7 +7,6 @@ module.exports = {
async serverPrefetch() {
this.client = await this.fetchClient(this.id);
this.sales = await this.fetchSales(this.id);
- this.claimConfig = await this.fetchClaimConfig();
if (!this.client)
throw new Error('Something went wrong');
@@ -25,18 +24,15 @@ module.exports = {
},
fetchSales(id) {
return this.rawSqlFromDef('sales', [id]);
- },
- fetchClaimConfig() {
- return this.findOneFromDef('claimConfig');
- },
+ }
},
components: {
- 'report-header': reportHeader.build(),
+ 'report-body': reportBody.build(),
'report-footer': reportFooter.build()
},
props: {
id: {
- type: [Number, String],
+ type: Number,
required: true,
description: 'The claim id'
}
diff --git a/print/templates/reports/claim-pickup-order/locale/es.yml b/print/templates/reports/claim-pickup-order/locale/es.yml
index 388c1f1a6..5ee5ecda7 100644
--- a/print/templates/reports/claim-pickup-order/locale/es.yml
+++ b/print/templates/reports/claim-pickup-order/locale/es.yml
@@ -11,7 +11,3 @@ concept: Concepto
clientSignature: Firma del cliente
claim: Reclamación {0}
phone: Teléfono
-sections:
- agency:
- description: 'Para agilizar su recogida, por favor, póngase en contacto con la oficina
- de Logista Parcel.'
diff --git a/print/templates/reports/claim-pickup-order/sql/claimConfig.sql b/print/templates/reports/claim-pickup-order/sql/claimConfig.sql
deleted file mode 100644
index 9d744ca6d..000000000
--- a/print/templates/reports/claim-pickup-order/sql/claimConfig.sql
+++ /dev/null
@@ -1,2 +0,0 @@
-SELECT pickupContact
- FROM claimConfig;
\ No newline at end of file
diff --git a/print/templates/reports/client-debt-statement/client-debt-statement.html b/print/templates/reports/client-debt-statement/client-debt-statement.html
index 88bf15bdb..962af021d 100644
--- a/print/templates/reports/client-debt-statement/client-debt-statement.html
+++ b/print/templates/reports/client-debt-statement/client-debt-statement.html
@@ -1,95 +1,78 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{$t('title')}}
-
-
-
- {{$t('clientId')}}
- {{client.id}}
-
-
- {{$t('date')}}
- {{dated}}
-
-
-
-
-
-
-
-
-
-
{{client.socialName}}
-
- {{client.street}}
-
-
- {{client.postcode}}, {{client.city}} ({{client.province}})
-
-
- {{client.country}}
-
-
-
-
-
-
-
-
-
- {{$t('date')}}
- {{$t('concept')}}
- {{$t('invoiced')}}
- {{$t('payed')}}
- {{$t('balance')}}
-
-
-
-
- {{sale.issued | date('%d-%m-%Y')}}
- {{sale.ref}}
- {{sale.debtOut}}
- {{sale.debtIn}}
- {{getBalance(sale)}}
-
-
-
-
-
-
-
- Total
- {{getTotalDebtOut() | currency('EUR', $i18n.locale)}}
-
- {{getTotalDebtIn() | currency('EUR', $i18n.locale)}}
- {{totalBalance | currency('EUR', $i18n.locale)}}
-
-
-
-
+
+
+
+
+
+
+
{{$t('title')}}
+
+
+
+ {{$t('clientId')}}
+ {{client.id}}
+
+
+ {{$t('date')}}
+ {{dated}}
+
+
+
+
+
+
+
+
+
+
{{client.socialName}}
+
{{client.street}}
+
{{client.postcode}}, {{client.city}} ({{client.province}})
+
{{client.country}}
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+
+
+
+
+ {{$t('date')}}
+ {{$t('concept')}}
+ {{$t('invoiced')}}
+ {{$t('payed')}}
+ {{$t('balance')}}
+
+
+
+
+ {{sale.issued | date('%d-%m-%Y')}}
+ {{sale.ref}}
+ {{sale.debtOut}}
+ {{sale.debtIn}}
+ {{getBalance(sale)}}
+
+
+
+
+
+
+
+ Total
+ {{getTotalDebtOut() | currency('EUR', $i18n.locale)}}
+
+ {{getTotalDebtIn() | currency('EUR', $i18n.locale)}}
+ {{totalBalance | currency('EUR', $i18n.locale)}}
+
+
+
+
+
+
+
+
+
diff --git a/print/templates/reports/client-debt-statement/client-debt-statement.js b/print/templates/reports/client-debt-statement/client-debt-statement.js
index 80c83b494..45b97518f 100755
--- a/print/templates/reports/client-debt-statement/client-debt-statement.js
+++ b/print/templates/reports/client-debt-statement/client-debt-statement.js
@@ -1,5 +1,5 @@
const Component = require(`vn-print/core/component`);
-const reportHeader = new Component('report-header');
+const reportBody = new Component('report-body');
const reportFooter = new Component('report-footer');
module.exports = {
@@ -64,12 +64,12 @@ module.exports = {
},
},
components: {
- 'report-header': reportHeader.build(),
+ 'report-body': reportBody.build(),
'report-footer': reportFooter.build()
},
props: {
id: {
- type: [Number, String],
+ type: Number,
required: true,
description: 'The client id'
},
diff --git a/print/templates/reports/collection-label/assets/css/import.js b/print/templates/reports/collection-label/assets/css/import.js
new file mode 100644
index 000000000..37a98dfdd
--- /dev/null
+++ b/print/templates/reports/collection-label/assets/css/import.js
@@ -0,0 +1,12 @@
+const Stylesheet = require(`vn-print/core/stylesheet`);
+
+const path = require('path');
+const vnPrintPath = path.resolve('print');
+
+module.exports = new Stylesheet([
+ `${vnPrintPath}/common/css/spacing.css`,
+ `${vnPrintPath}/common/css/misc.css`,
+ `${vnPrintPath}/common/css/layout.css`,
+ `${vnPrintPath}/common/css/report.css`,
+ `${__dirname}/style.css`])
+ .mergeStyles();
diff --git a/print/templates/reports/collection-label/assets/css/style.css b/print/templates/reports/collection-label/assets/css/style.css
new file mode 100644
index 000000000..eb300f850
--- /dev/null
+++ b/print/templates/reports/collection-label/assets/css/style.css
@@ -0,0 +1,45 @@
+html {
+ font-family: Arial, Helvetica, sans-serif;
+ margin-top: -6px;
+}
+* {
+ box-sizing: border-box;
+ text-align: center;
+ font-size: 26px;
+}
+#vertical {
+ writing-mode: vertical-rl;
+ height: 230px;
+ font-size: 29px;
+ margin-left: -13px;
+}
+#outline {
+ border: 1px solid black;
+ padding: 5px;
+ height: 37px;
+ width: 100px;
+ max-width: 100px;
+}
+#nickname {
+ font-size: 22px;
+ max-width: 50px;
+}
+#agencyDescripton {
+ font-size: 32px;
+ width: 375px;
+ font-weight: bold;
+}
+#bold {
+ font-weight: bold;
+}
+#barcode{
+ width: 370px;
+}
+#shipped {
+ font-weight: bold;
+ width: 50px;
+ max-width: 100px;
+}
+#ticketFk {
+ font-size: 32px;
+}
\ No newline at end of file
diff --git a/print/templates/reports/collection-label/collection-label.html b/print/templates/reports/collection-label/collection-label.html
new file mode 100644
index 000000000..2fd77079f
--- /dev/null
+++ b/print/templates/reports/collection-label/collection-label.html
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+ {{getVertical(labelData)}}
+
+ {{labelData.clientFk ? `${labelData.ticketFk} « ${labelData.clientFk}` : labelData.ticketFk}}
+
+ {{labelData.shipped || '---'}}
+
+
+
+ {{labelData.workerCode || '---'}}
+
+
+ {{labelCount || labelData.labelCount || 0}}
+
+
+ {{labelData.code == 'V' ? (labelData.size || 0) + 'cm' : (labelData.volume || 0) + 'm³'}}
+
+
+ {{labelData.agencyDescription ? labelData.agencyDescription.toUpperCase() : '---'}}
+ {{labelData.lineCount || 0}}
+
+
+ {{labelData.nickName ? labelData.nickName.toUpperCase() : '---'}}
+ {{labelData.shippedHour || labelData.zoneHour}}
+
+
+
+
+
\ No newline at end of file
diff --git a/print/templates/reports/collection-label/collection-label.js b/print/templates/reports/collection-label/collection-label.js
new file mode 100644
index 000000000..e73afaeea
--- /dev/null
+++ b/print/templates/reports/collection-label/collection-label.js
@@ -0,0 +1,68 @@
+const Component = require(`vn-print/core/component`);
+const reportBody = new Component('report-body');
+const jsBarcode = require('jsbarcode');
+const {DOMImplementation, XMLSerializer} = require('xmldom');
+const UserError = require('vn-loopback/util/user-error');
+
+module.exports = {
+ name: 'collection-label',
+ props: {
+ id: {
+ type: Number,
+ required: true,
+ description: 'The ticket or collection id'
+ },
+ labelCount: {
+ type: Number,
+ required: false,
+ description: 'The number of labels'
+ }
+ },
+ async serverPrefetch() {
+ let ticketIds;
+ const res = await this.rawSqlFromDef('tickets', [this.id]);
+
+ if (res.length) {
+ ticketIds = [];
+ for (const row of res)
+ ticketIds.push(row.ticketFk);
+ } else
+ ticketIds = [this.id];
+
+ this.labelsData = await this.rawSqlFromDef('labelsData', [ticketIds]);
+ if (!this.labelsData.length)
+ throw new UserError('Empty data source');
+ },
+ methods: {
+ getBarcode(id) {
+ const xmlSerializer = new XMLSerializer();
+ const document = new DOMImplementation().createDocument('http://www.w3.org/1999/xhtml', 'html', null);
+ const svgNode = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
+
+ jsBarcode(svgNode, id, {
+ xmlDocument: document,
+ format: 'code128',
+ displayValue: false,
+ width: 3.8,
+ height: 115,
+ });
+ return xmlSerializer.serializeToString(svgNode);
+ },
+ getVertical(labelData) {
+ let value;
+ if (labelData.collectionFk) {
+ value = `${labelData.collectionFk} ~ `;
+ if (labelData.code == 'V')
+ value = value + `${labelData.wagon}-${labelData.level}`;
+ else
+ value = value + `${labelData.color.substring(0, 4)}`;
+ } else
+ value = '-'.repeat(19);
+
+ return value;
+ },
+ },
+ components: {
+ 'report-body': reportBody.build()
+ },
+};
diff --git a/print/templates/reports/collection-label/locale/es.yml b/print/templates/reports/collection-label/locale/es.yml
new file mode 100644
index 000000000..a54d3bad8
--- /dev/null
+++ b/print/templates/reports/collection-label/locale/es.yml
@@ -0,0 +1 @@
+reportName: labelCollection
\ No newline at end of file
diff --git a/print/templates/reports/collection-label/options.json b/print/templates/reports/collection-label/options.json
new file mode 100644
index 000000000..a555c5723
--- /dev/null
+++ b/print/templates/reports/collection-label/options.json
@@ -0,0 +1,11 @@
+{
+ "width": "10.4cm",
+ "height": "4.9cm",
+ "margin": {
+ "top": "0.3cm",
+ "right": "0.6cm",
+ "bottom": "0cm",
+ "left": "0cm"
+ },
+ "printBackground": true
+}
\ No newline at end of file
diff --git a/print/templates/reports/collection-label/sql/labelsData.sql b/print/templates/reports/collection-label/sql/labelsData.sql
new file mode 100644
index 000000000..1846c6893
--- /dev/null
+++ b/print/templates/reports/collection-label/sql/labelsData.sql
@@ -0,0 +1,37 @@
+SELECT c.itemPackingTypeFk code,
+ tc.collectionFk,
+ SUBSTRING('ABCDEFGH', tc.wagon, 1) wagon,
+ tc.`level`,
+ t.id ticketFk,
+ COALESCE(et.description, zo.name, am.name) agencyDescription,
+ cc.code color,
+ t.clientFk,
+ CAST(SUM(sv.volume) AS DECIMAL(5, 2)) volume,
+ MAX(i.`size`) `size`,
+ w.code workerCode,
+ TIME_FORMAT(t.shipped, '%H:%i') shippedHour,
+ TIME_FORMAT(zo.`hour`, '%H:%i') zoneHour,
+ DATE_FORMAT(t.shipped, '%d/%m/%y') shipped,
+ tt.labelCount,
+ t.nickName,
+ COUNT(*) lineCount
+ FROM vn.ticket t
+ JOIN vn.ticketCollection tc ON tc.ticketFk = t.id
+ JOIN vn.collection c ON c.id = tc.collectionFk
+ LEFT JOIN vn.collectionColors cc ON cc.shelve = tc.`level`
+ AND cc.wagon = tc.wagon
+ AND cc.trainFk = c.trainFk
+ JOIN vn.sale s ON s.ticketFk = t.id
+ LEFT JOIN vn.saleVolume sv ON sv.saleFk = s.id
+ JOIN vn.item i ON i.id = s.itemFk
+ JOIN vn.itemType it ON it.id = i.typeFk
+ JOIN vn.itemCategory ic ON ic.id = it.categoryFk
+ JOIN vn.worker w ON w.id = c.workerFk
+ JOIN vn.agencyMode am ON am.id = t.agencyModeFk
+ LEFT JOIN vn.ticketTrolley tt ON tt.ticket = t.id
+ LEFT JOIN vn.`zone` zo ON t.zoneFk = zo.id
+ LEFT JOIN vn.routesMonitor rm ON rm.routeFk = t.routeFk
+ LEFT JOIN vn.expeditionTruck et ON et.id = rm.expeditionTruckFk
+ WHERE t.id IN (?)
+ GROUP BY t.id
+ ORDER BY cc.`code`;
\ No newline at end of file
diff --git a/print/templates/reports/collection-label/sql/tickets.sql b/print/templates/reports/collection-label/sql/tickets.sql
new file mode 100644
index 000000000..05deeba83
--- /dev/null
+++ b/print/templates/reports/collection-label/sql/tickets.sql
@@ -0,0 +1,3 @@
+SELECT ticketFk
+ FROM ticketCollection
+ WHERE collectionFk = ?
\ No newline at end of file
diff --git a/print/templates/reports/credit-request/credit-request.html b/print/templates/reports/credit-request/credit-request.html
index 975115eef..d5e336809 100644
--- a/print/templates/reports/credit-request/credit-request.html
+++ b/print/templates/reports/credit-request/credit-request.html
@@ -1,190 +1,164 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{$t('fields.title')}}
-
-
-
-
-
-
-
- {{$t('fields.date')}}:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{$t('fields.companyInfo')}}
+
+
+
+
{{$t('fields.title')}}
+
+
+
+
+
+ {{$t('fields.date')}}:
+
+
+
+
+
+
+
+
+
+
+
+
+
{{$t('fields.companyInfo')}}
+
+
+
+
+
+ {{$t('fields.companyName')}}:
+
+
+
-
-
-
-
- {{$t('fields.companyName')}}:
-
-
-
-
-
-
-
- {{$t('fields.businessType')}}:
-
-
-
-
-
- {{$t('fields.antiquity')}}:
-
-
-
-
-
-
-
- {{$t('fields.surface')}}:
-
-
-
-
-
- {{$t('fields.numberOfEmployees')}}:
-
-
-
-
-
-
-
- {{$t('fields.owner')}}:
-
-
-
-
-
- {{$t('fields.phone')}}:
-
-
-
-
-
-
-
- {{$t('fields.payer')}}:
-
-
-
-
-
- {{$t('fields.phone')}}:
-
-
-
-
-
-
-
-
+
+
+
+ {{$t('fields.businessType')}}:
+
+
+
+
+ {{$t('fields.antiquity')}}:
+
+
+
+
+
+
+
+ {{$t('fields.surface')}}:
+
+
+
+
+
+ {{$t('fields.numberOfEmployees')}}:
+
+
+
+
+
+
+
+ {{$t('fields.owner')}}:
+
+
+
+
+
+ {{$t('fields.phone')}}:
+
+
+
+
+
+
+
+ {{$t('fields.payer')}}:
+
+
+
+
+
+ {{$t('fields.phone')}}:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{$t('fields.economicInfo')}}
+
+
+
+
+
+ {{$t('fields.previousSalesVolume')}}:
+
+
+
+
+
+
+
+ {{$t('fields.forecastedSalesVolume')}}:
+
+
+
+
+
+
+
+ {{$t('fields.forecastedPurchases')}}:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{$t('fields.personFilling')}}:
+
+
+
-
-
-
-
-
-
-
-
-
{{$t('fields.economicInfo')}}
-
-
-
-
-
- {{$t('fields.previousSalesVolume')}}:
-
-
-
-
-
-
-
- {{$t('fields.forecastedSalesVolume')}}:
-
-
-
-
-
-
-
- {{$t('fields.forecastedPurchases')}}:
-
-
-
-
-
-
-
-
-
+
+ {{$t('fields.phone')}}:
+
+
+
-
-
-
-
-
-
-
-
-
-
- {{$t('fields.personFilling')}}:
-
-
-
-
-
- {{$t('fields.phone')}}:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
diff --git a/print/templates/reports/credit-request/credit-request.js b/print/templates/reports/credit-request/credit-request.js
index 7de1060ca..c1aa74e1b 100755
--- a/print/templates/reports/credit-request/credit-request.js
+++ b/print/templates/reports/credit-request/credit-request.js
@@ -1,5 +1,5 @@
const Component = require(`vn-print/core/component`);
-const reportHeader = new Component('report-header');
+const reportBody = new Component('report-body')
const reportFooter = new Component('report-footer');
const rptCreditRequest = {
@@ -12,7 +12,7 @@ const rptCreditRequest = {
}
},
components: {
- 'report-header': reportHeader.build(),
+ 'report-body': reportBody.build(),
'report-footer': reportFooter.build()
}
};
diff --git a/print/templates/reports/delivery-note/assets/css/style.css b/print/templates/reports/delivery-note/assets/css/style.css
index f99c385fa..8405ae78d 100644
--- a/print/templates/reports/delivery-note/assets/css/style.css
+++ b/print/templates/reports/delivery-note/assets/css/style.css
@@ -37,4 +37,9 @@ h2 {
.phytosanitary-info {
margin-top: 10px
+}
+
+.observations{
+ text-align: justify;
+ text-justify: inter-word;
}
\ No newline at end of file
diff --git a/print/templates/reports/delivery-note/delivery-note.html b/print/templates/reports/delivery-note/delivery-note.html
index d166f3307..06653c949 100644
--- a/print/templates/reports/delivery-note/delivery-note.html
+++ b/print/templates/reports/delivery-note/delivery-note.html
@@ -1,293 +1,257 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{$t(deliverNoteType)}}
-
-
-
- {{$t('clientId')}}
- {{client.id}}
-
-
- {{$t(deliverNoteType)}}
- {{ticket.id}}
-
-
- {{$t('date')}}
- {{ticket.shipped | date('%d-%m-%Y')}}
-
-
- {{$t('packages')}}
- {{ticket.packages}}
-
-
-
-
-
-
-
-
-
-
{{address.nickname}}
-
- {{address.street}}
-
-
- {{address.postalCode}}, {{address.city}} ({{address.province}})
-
-
-
-
-
-
-
-
- {{client.socialName}}
-
-
- {{client.street}}
-
-
- {{client.fi}}
-
-
-
-
-
-
-
-
{{$t('saleLines')}}
-
-
-
- {{$t('reference')}}
- {{$t('quantity')}}
- {{$t('concept')}}
- {{$t('price')}}
- {{$t('discount')}}
- {{$t('vat')}}
- {{$t('amount')}}
-
-
-
-
- {{sale.itemFk | zerofill('000000')}}
- {{sale.quantity}}
- {{sale.concept}}
- {{sale.price | currency('EUR', $i18n.locale)}}
- {{(sale.discount / 100) | percentage}}
- {{sale.vatType}}
- {{sale.price * sale.quantity * (1 - sale.discount / 100) | currency('EUR', $i18n.locale)}}
-
-
-
-
- {{sale.tag5}} {{sale.value5}}
-
-
- {{sale.tag6}} {{sale.value6}}
-
-
- {{sale.tag7}} {{sale.value7}}
-
-
-
-
-
-
-
- {{$t('subtotal')}}
-
- {{getSubTotal() | currency('EUR', $i18n.locale)}}
-
-
-
-
-
-
-
-
-
{{$t('services.title')}}
-
-
-
-
- {{$t('services.theader.quantity')}}
- {{$t('services.theader.concept')}}
- {{$t('services.theader.price')}}
-
- {{$t('services.theader.vat')}}
- {{$t('services.theader.amount')}}
-
-
-
-
-
- {{service.quantity}}
- {{service.description}}
- {{service.price | currency('EUR', $i18n.locale)}}
-
- {{service.taxDescription}}
- {{service.price | currency('EUR', $i18n.locale)}}
-
-
-
-
-
- {{$t('services.tfoot.subtotal')}}
-
- {{serviceTotal | currency('EUR', $i18n.locale)}}
-
-
-
-
* {{ $t('services.warning') }}
-
-
-
-
-
-
-
{{$t('packagings.title')}}
-
-
-
- {{$t('packagings.theader.reference')}}
- {{$t('packagings.theader.quantity')}}
- {{$t('packagings.theader.concept')}}
-
-
-
-
- {{packaging.itemFk | zerofill('000000')}}
- {{packaging.quantity}}
- {{packaging.name}}
-
-
-
-
-
-
-
-
-
-
-
-
- {{$t('taxes.title')}}
-
-
-
-
- {{$t('taxes.theader.type')}}
- {{$t('taxes.theader.taxBase')}}
- {{$t('taxes.theader.tax')}}
- {{$t('taxes.theader.fee')}}
-
-
-
-
- {{tax.name}}
-
- {{tax.Base | currency('EUR', $i18n.locale)}}
-
- {{tax.vatPercent | percentage}}
- {{tax.tax | currency('EUR', $i18n.locale)}}
-
-
-
-
- {{$t('subtotal')}}
-
- {{getTotalBase() | currency('EUR', $i18n.locale)}}
-
-
- {{getTotalTax()| currency('EUR', $i18n.locale)}}
-
-
- {{$t('total')}}
- {{getTotal() | currency('EUR', $i18n.locale)}}
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
{{$t(deliverNoteType)}}
+
+
+
+ {{$t('clientId')}}
+ {{client.id}}
+
+
+ {{$t(deliverNoteType)}}
+ {{ticket.id}}
+
+
+ {{$t('date')}}
+ {{ticket.shipped | date('%d-%m-%Y')}}
+
+
+ {{$t('packages')}}
+ {{ticket.packages}}
+
+
+
+
+
+
+
+
+
+
{{address.nickname}}
+
{{address.street}}
+
{{address.postalCode}}, {{address.city}} ({{address.province}})
+
+
-
-
-
-
-
-
-
-
-
-
- {{$t('plantPassport')}}
-
-
-
-
-
- A
- {{getBotanical()}}
-
-
- B
- ES17462130
-
-
- C
- {{ticket.id}}
-
-
- D
- ES
-
-
-
-
-
-
-
+
+
+
+
{{client.socialName}}
+
{{client.street}}
+
{{client.fi}}
+
+
+
+
+
+
{{$t('saleLines')}}
+
+
+
+ {{$t('reference')}}
+ {{$t('quantity')}}
+ {{$t('concept')}}
+ {{$t('price')}}
+ {{$t('discount')}}
+ {{$t('vat')}}
+ {{$t('amount')}}
+
+
+
+
+ {{sale.itemFk | zerofill('000000')}}
+ {{sale.quantity}}
+ {{sale.concept}}
+ {{sale.price | currency('EUR', $i18n.locale)}}
+ {{(sale.discount / 100) | percentage}}
+ {{sale.vatType}}
+
+ {{sale.price * sale.quantity * (1 - sale.discount / 100) | currency('EUR', $i18n.locale)}}
+
+
+
+
+ {{sale.tag5}} {{sale.value5}}
+ {{sale.tag6}} {{sale.value6}}
+ {{sale.tag7}} {{sale.value7}}
+
+
+
+
+
+
+ {{$t('subtotal')}}
+
+ {{getSubTotal() | currency('EUR', $i18n.locale)}}
+
+
+
+
+
+
+
{{$t('services.title')}}
+
+
+
+
+ {{$t('services.theader.quantity')}}
+ {{$t('services.theader.concept')}}
+ {{$t('services.theader.price')}}
+
+ {{$t('services.theader.vat')}}
+ {{$t('services.theader.amount')}}
+
+
+
+
+
+ {{service.quantity}}
+ {{service.description}}
+ {{service.price | currency('EUR', $i18n.locale)}}
+
+ {{service.taxDescription}}
+ {{service.price | currency('EUR', $i18n.locale)}}
+
+
+
+
+
+ {{$t('services.tfoot.subtotal')}}
+
+ {{serviceTotal | currency('EUR', $i18n.locale)}}
+
+
+
+
* {{ $t('services.warning') }}
+
+
+
+
+
{{$t('packagings.title')}}
+
+
+
+ {{$t('packagings.theader.reference')}}
+ {{$t('packagings.theader.quantity')}}
+ {{$t('packagings.theader.concept')}}
+
+
+
+
+ {{packaging.itemFk | zerofill('000000')}}
+ {{packaging.quantity}}
+ {{packaging.name}}
+
+
+
+
+
+
+
+
+
+
+ {{$t('taxes.title')}}
+
+
+
+
+ {{$t('taxes.theader.type')}}
+ {{$t('taxes.theader.taxBase')}}
+ {{$t('taxes.theader.tax')}}
+ {{$t('taxes.theader.fee')}}
+
+
+
+
+ {{tax.name}}
+ {{tax.Base | currency('EUR', $i18n.locale)}}
+ {{tax.vatPercent | percentage}}
+ {{tax.tax | currency('EUR', $i18n.locale)}}
+
+
+
+
+ {{$t('subtotal')}}
+ {{getTotalBase() | currency('EUR', $i18n.locale)}}
+
+ {{getTotalTax()| currency('EUR', $i18n.locale)}}
+
+
+ {{$t('total')}}
+ {{getTotal() | currency('EUR', $i18n.locale)}}
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
{{signature.created | date('%d-%m-%Y')}}
-
-
+
+
-
+
{{$t('plantPassport')}}
+
+
+
+
+ A
+ {{getBotanical()}}
+
+
+ B
+ ES17462130
+
+
+ C
+ {{ticket.id}}
+
+
+ D
+ ES
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
{{signature.created | date('%d-%m-%Y')}}
+
+
+
+
+
+
+
{{$t('observations')}}
+
{{ticket.description}}
+
+
+
+
+
+
+
+
diff --git a/print/templates/reports/delivery-note/delivery-note.js b/print/templates/reports/delivery-note/delivery-note.js
index 1037e5129..1a1a57c59 100755
--- a/print/templates/reports/delivery-note/delivery-note.js
+++ b/print/templates/reports/delivery-note/delivery-note.js
@@ -1,5 +1,6 @@
const config = require(`vn-print/core/config`);
const Component = require(`vn-print/core/component`);
+const reportBody = new Component('report-body');
const reportHeader = new Component('report-header');
const reportFooter = new Component('report-footer');
const md5 = require('md5');
@@ -54,6 +55,9 @@ module.exports = {
footerType() {
const translatedType = this.$t(this.deliverNoteType);
return `${translatedType} ${this.id}`;
+ },
+ hasObservations() {
+ return this.ticket.description !== null;
}
},
methods: {
@@ -122,12 +126,13 @@ module.exports = {
}
},
components: {
+ 'report-body': reportBody.build(),
'report-header': reportHeader.build(),
'report-footer': reportFooter.build()
},
props: {
id: {
- type: [Number, String],
+ type: Number,
required: true,
description: 'The ticket id'
},
diff --git a/print/templates/reports/delivery-note/locale/en.yml b/print/templates/reports/delivery-note/locale/en.yml
index c74b87520..5902da8b3 100644
--- a/print/templates/reports/delivery-note/locale/en.yml
+++ b/print/templates/reports/delivery-note/locale/en.yml
@@ -46,4 +46,5 @@ taxes:
fee: Fee
tfoot:
subtotal: Subtotal
- total: Total
\ No newline at end of file
+ total: Total
+observations: Observations
\ No newline at end of file
diff --git a/print/templates/reports/delivery-note/locale/es.yml b/print/templates/reports/delivery-note/locale/es.yml
index 5c5a6af4d..d87198f45 100644
--- a/print/templates/reports/delivery-note/locale/es.yml
+++ b/print/templates/reports/delivery-note/locale/es.yml
@@ -47,4 +47,5 @@ taxes:
fee: Cuota
tfoot:
subtotal: Subtotal
- total: Total
\ No newline at end of file
+ total: Total
+observations: Observaciones
\ No newline at end of file
diff --git a/print/templates/reports/delivery-note/locale/fr.yml b/print/templates/reports/delivery-note/locale/fr.yml
index df7ca053b..603623a47 100644
--- a/print/templates/reports/delivery-note/locale/fr.yml
+++ b/print/templates/reports/delivery-note/locale/fr.yml
@@ -47,4 +47,5 @@ taxes:
fee: Quote
tfoot:
subtotal: Total partiel
- total: Total
\ No newline at end of file
+ total: Total
+observations: Observations
\ No newline at end of file
diff --git a/print/templates/reports/delivery-note/locale/pt.yml b/print/templates/reports/delivery-note/locale/pt.yml
index 1f418b31f..fb49d230b 100644
--- a/print/templates/reports/delivery-note/locale/pt.yml
+++ b/print/templates/reports/delivery-note/locale/pt.yml
@@ -47,4 +47,5 @@ taxes:
fee: Compartilhado
tfoot:
subtotal: Subtotal
- total: Total
\ No newline at end of file
+ total: Total
+observations: Observações
\ No newline at end of file
diff --git a/print/templates/reports/delivery-note/sql/ticket.sql b/print/templates/reports/delivery-note/sql/ticket.sql
index f78c72544..9eac2d322 100644
--- a/print/templates/reports/delivery-note/sql/ticket.sql
+++ b/print/templates/reports/delivery-note/sql/ticket.sql
@@ -2,7 +2,11 @@ SELECT
t.id,
t.shipped,
c.code companyCode,
- t.packages
+ t.packages,
+ tto.description
FROM ticket t
JOIN company c ON c.id = t.companyFk
+ LEFT JOIN ticketObservation tto
+ ON tto.ticketFk = t.id
+ AND tto.observationTypeFk = (SELECT id FROM observationType WHERE code = 'deliveryNote')
WHERE t.id = ?
\ No newline at end of file
diff --git a/print/templates/reports/driver-route/driver-route.html b/print/templates/reports/driver-route/driver-route.html
index 96fb6e957..48489de6f 100644
--- a/print/templates/reports/driver-route/driver-route.html
+++ b/print/templates/reports/driver-route/driver-route.html
@@ -1,161 +1,141 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
{{$t('route')}} {{route.id}}
-
-
-
-
-
-
-
- {{$t('route')}}
- {{route.id}}
- {{$t('driver')}}
- {{route.userNickName}}
-
-
- {{$t('date')}}
- {{route.created | date('%d-%m-%Y')}}
- {{$t('vehicle')}}
- {{route.vehicleTradeMark}} {{route.vehicleModel}}
-
-
- {{$t('time')}}
- {{route.time | date('%H:%M')}}
-
- {{route.plateNumber}}
-
-
- {{$t('volume')}}
- {{route.m3}}
- {{$t('agency')}}
- {{route.agencyName}}
-
-
-
-
-
-
-
-
- Hora inicio
-
-
- Hora fin
-
-
-
- Km inicio
-
-
- Km fin
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{$t('order')}}
- {{$t('ticket')}}
- {{$t('client')}}
- {{$t('address')}}
- {{$t('packages')}}
- {{$t('packagingType')}}
-
-
-
-
- {{ticket.priority}}
- {{ticket.id}}
- {{ticket.clientFk}} {{ticket.addressName}}
-
- {{ticket.addressFk.toString().substr(0,
- ticket.addressFk.toString().length - 3)}}
-
- {{ticket.addressFk.toString().substr(-3, 3)}}
-
-
- {{ticket.packages}}
- {{ticket.itemPackingTypes}}
-
-
-
-
-
-
-
-
- {{$t('street')}}
- {{ticket.street}}
- {{$t('postcode')}}
- {{ticket.postalCode}}
-
-
- {{$t('city')}}
- {{ticket.city}}
- {{$t('agency')}}
- {{ticket.ticketAgency}}
-
-
- {{$t('mobile')}}
- {{ticket.mobile}}
- {{$t('phone')}}
- {{ticket.phone}}
-
-
- {{$t('warehouse')}}
- {{ticket.warehouseName}}
- {{$t('salesPerson')}}
- {{ticket.salesPersonName}}
-
-
-
-
-
{{ticket.description}}
-
-
-
+
+
+
+
{{$t('route')}} {{route.id}}
+
+
+
+
+
+
+
+ {{$t('route')}}
+ {{route.id}}
+ {{$t('driver')}}
+ {{route.userNickName}}
+
+
+ {{$t('date')}}
+ {{route.created | date('%d-%m-%Y')}}
+ {{$t('vehicle')}}
+ {{route.vehicleTradeMark}} {{route.vehicleModel}}
+
+
+ {{$t('time')}}
+ {{route.time | date('%H:%M')}}
+
+ {{route.plateNumber}}
+
+
+ {{$t('volume')}}
+ {{route.m3}}
+ {{$t('agency')}}
+ {{route.agencyName}}
+
+
+
+
+
+
+
+
+ Hora inicio
+
+
+ Hora fin
+
+
+
+ Km inicio
+
+
+ Km fin
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+
+
+
+
+ {{$t('order')}}
+ {{$t('ticket')}}
+ {{$t('client')}}
+ {{$t('address')}}
+ {{$t('packages')}}
+ {{$t('packagingType')}}
+
+
+
+
+ {{ticket.priority}}
+ {{ticket.id}}
+ {{ticket.clientFk}} {{ticket.addressName}}
+
+ {{ticket.addressFk.toString().substr(0, ticket.addressFk.toString().length - 3)}}
+ {{ticket.addressFk.toString().substr(-3, 3)}}
+
+ {{ticket.packages}}
+ {{ticket.itemPackingTypes}}
+
+
+
+
+
+
+
+
+ {{$t('street')}}
+ {{ticket.street}}
+ {{$t('postcode')}}
+ {{ticket.postalCode}}
+
+
+ {{$t('city')}}
+ {{ticket.city}}
+ {{$t('agency')}}
+ {{ticket.ticketAgency}}
+
+
+ {{$t('mobile')}}
+ {{ticket.mobile}}
+ {{$t('phone')}}
+ {{ticket.phone}}
+
+
+ {{$t('warehouse')}}
+ {{ticket.warehouseName}}
+ {{$t('salesPerson')}}
+ {{ticket.salesPersonName}}
+
+
+
+
+
{{ticket.description}}
+
+
+
+
+
+
+
+
+
diff --git a/print/templates/reports/driver-route/driver-route.js b/print/templates/reports/driver-route/driver-route.js
index 2de3d5192..1b2e8871a 100755
--- a/print/templates/reports/driver-route/driver-route.js
+++ b/print/templates/reports/driver-route/driver-route.js
@@ -1,5 +1,5 @@
const Component = require(`vn-print/core/component`);
-const reportHeader = new Component('report-header');
+const reportBody = new Component('report-body');
const reportFooter = new Component('report-footer');
module.exports = {
@@ -39,12 +39,12 @@ module.exports = {
}
},
components: {
- 'report-header': reportHeader.build(),
+ 'report-body': reportBody.build(),
'report-footer': reportFooter.build()
},
props: {
id: {
- type: [Number, String],
+ type: Number,
required: true,
description: 'The route id'
}
diff --git a/print/templates/reports/driver-route/locale/es.yml b/print/templates/reports/driver-route/locale/es.yml
index 3fb6b6885..8f986b0d2 100644
--- a/print/templates/reports/driver-route/locale/es.yml
+++ b/print/templates/reports/driver-route/locale/es.yml
@@ -20,6 +20,6 @@ phone: Teléfono
warehouse: Almacén
salesPerson: Comercial
import: Importe
-route: Ruta
+route: Ruta
routeId: Ruta {0}
-ticket: Ticket
\ No newline at end of file
+ticket: Ticket
diff --git a/print/templates/reports/entry-order/entry-order.html b/print/templates/reports/entry-order/entry-order.html
index 956d4e2f6..26294787b 100644
--- a/print/templates/reports/entry-order/entry-order.html
+++ b/print/templates/reports/entry-order/entry-order.html
@@ -1,127 +1,102 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{$t('title')}}
-
-
-
- {{$t('entryId')}}
- {{entry.id}}
-
-
- {{$t('date')}}
- {{entry.landed | date('%d-%m-%Y')}}
-
-
- {{$t('ref')}}
- {{entry.ref}}
-
-
-
-
-
-
-
-
-
-
{{supplier.name}}
-
- {{supplier.street}}
-
-
- {{supplier.postCode}}, {{supplier.city}}, ({{supplier.province}})
-
-
- {{supplier.nif}}
-
-
-
-
-
-
-
-
-
-
- {{$t('boxes')}}
- {{$t('packing')}}
- {{$t('concept')}}
- {{$t('quantity')}}
- {{$t('price')}}
- {{$t('amount')}}
-
-
-
-
- {{buy.box}}
- {{buy.packing}}
- {{buy.itemName}}
- {{buy.quantity | number($i18n.locale)}}
- {{buy.buyingValue | currency('EUR', $i18n.locale)}}
- {{buy.buyingValue * buy.quantity | currency('EUR', $i18n.locale)}}
-
-
-
-
- {{buy.tag5}} {{buy.value5}}
-
-
- {{buy.tag6}} {{buy.value6}}
-
-
- {{buy.tag7}} {{buy.value7}}
-
-
-
-
-
-
-
- {{$t('total')}}
-
- {{getTotal() | currency('EUR', $i18n.locale)}}
-
-
-
-
-
-
-
-
-
{{$t('notes')}}
-
- {{entry.notes}}
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
{{$t('title')}}
+
+
+
+ {{$t('entryId')}}
+ {{entry.id}}
+
+
+ {{$t('date')}}
+ {{entry.landed | date('%d-%m-%Y')}}
+
+
+ {{$t('ref')}}
+ {{entry.invoiceNumber}}
+
+
+
+
+
+
+
+
+
+
{{supplier.name}}
+
{{supplier.street}}
+
{{supplier.postCode}}, {{supplier.city}}, ({{supplier.province}})
+
{{supplier.nif}}
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+
+
+
+ {{$t('boxes')}}
+ {{$t('packing')}}
+ {{$t('concept')}}
+ {{$t('quantity')}}
+ {{$t('price')}}
+ {{$t('amount')}}
+
+
+
+
+ {{buy.box}}
+ {{buy.packing}}
+ {{buy.itemName}}
+ {{buy.quantity | number($i18n.locale)}}
+ {{buy.buyingValue | currency('EUR', $i18n.locale)}}
+
+ {{buy.buyingValue * buy.quantity | currency('EUR', $i18n.locale)}}
+
+
+
+
+ {{buy.tag5}} {{buy.value5}}
+ {{buy.tag6}} {{buy.value6}}
+ {{buy.tag7}} {{buy.value7}}
+
+
+
+
+
+
+ {{$t('total')}}
+
+ {{getTotal() | currency('EUR', $i18n.locale)}}
+
+
+
+
+
+
+
+
{{$t('notes')}}
+
{{entry.notes}}
+
+
+
+
+
+
+
+
+
+
diff --git a/print/templates/reports/entry-order/entry-order.js b/print/templates/reports/entry-order/entry-order.js
index ff4a65e0c..22c5b55fe 100755
--- a/print/templates/reports/entry-order/entry-order.js
+++ b/print/templates/reports/entry-order/entry-order.js
@@ -1,4 +1,5 @@
const Component = require(`vn-print/core/component`);
+const reportBody = new Component('report-body');
const reportHeader = new Component('report-header');
const reportFooter = new Component('report-footer');
@@ -35,12 +36,13 @@ module.exports = {
}
},
components: {
+ 'report-body': reportBody.build(),
'report-header': reportHeader.build(),
'report-footer': reportFooter.build()
},
props: {
id: {
- type: [Number, String],
+ type: Number,
required: true,
description: 'The entry id'
}
diff --git a/print/templates/reports/entry-order/sql/entry.sql b/print/templates/reports/entry-order/sql/entry.sql
index 44feaae01..57b8d9293 100644
--- a/print/templates/reports/entry-order/sql/entry.sql
+++ b/print/templates/reports/entry-order/sql/entry.sql
@@ -1,10 +1,10 @@
SELECT
e.id,
- e.ref,
+ e.invoiceNumber,
e.notes,
c.code companyCode,
t.landed
FROM entry e
JOIN travel t ON t.id = e.travelFk
JOIN company c ON c.id = e.companyFk
-WHERE e.id = ?
\ No newline at end of file
+WHERE e.id = ?
diff --git a/print/templates/reports/expedition-pallet-label/assets/css/import.js b/print/templates/reports/expedition-pallet-label/assets/css/import.js
new file mode 100644
index 000000000..37a98dfdd
--- /dev/null
+++ b/print/templates/reports/expedition-pallet-label/assets/css/import.js
@@ -0,0 +1,12 @@
+const Stylesheet = require(`vn-print/core/stylesheet`);
+
+const path = require('path');
+const vnPrintPath = path.resolve('print');
+
+module.exports = new Stylesheet([
+ `${vnPrintPath}/common/css/spacing.css`,
+ `${vnPrintPath}/common/css/misc.css`,
+ `${vnPrintPath}/common/css/layout.css`,
+ `${vnPrintPath}/common/css/report.css`,
+ `${__dirname}/style.css`])
+ .mergeStyles();
diff --git a/print/templates/reports/expedition-pallet-label/assets/css/style.css b/print/templates/reports/expedition-pallet-label/assets/css/style.css
new file mode 100644
index 000000000..bd7366486
--- /dev/null
+++ b/print/templates/reports/expedition-pallet-label/assets/css/style.css
@@ -0,0 +1,70 @@
+html {
+ font-family: Arial, Helvetica, sans-serif;
+}
+* {
+ box-sizing: border-box;
+ font-size: 25px;
+}
+#truck {
+ width: 100%;
+ max-width: 150px;
+ height: 90px;
+ background-color: black;
+ color: white;
+ font-size: 50px;
+ font-weight: bold;
+ text-align: center;
+}
+.mainTable {
+ width: 100%;
+ border: 10px solid;
+ border-radius: 20px;
+ -moz-border-radius: 20px;
+ -webkit-border-radius: 10px;
+ border-collapse: separate;
+ border-spacing: 0px;
+}
+.zoneTable{
+ width: 100%;
+ margin: 0 auto;
+ border-collapse: collapse;
+}
+#routeFk, #zone, #labels{
+ font-size: 30px;
+}
+#routeFk{
+ width: 120px;
+ padding-top: 5px;
+ padding-bottom: 5px;
+ max-width: 120px;
+ text-align: center;
+}
+#zone{
+ width: 305px;
+ max-width: 305px;
+ text-align: center;
+}
+#labels{
+ text-align: center;
+}
+#black {
+ background-color: rgb(102, 102, 102);
+ color: white;
+}
+#QR {
+ padding: 25px;
+ margin-left: 35px;
+ float:left;
+}
+#barcode{
+ text-align: center;
+}
+#right {
+ float: right;
+ margin-top: 20px;
+ width: 250;
+ max-width: 250px;
+}
+#additionalInfo {
+ padding-top: 20px;
+}
\ No newline at end of file
diff --git a/print/templates/reports/expedition-pallet-label/expedition-pallet-label.html b/print/templates/reports/expedition-pallet-label/expedition-pallet-label.html
new file mode 100644
index 000000000..e4360c79d
--- /dev/null
+++ b/print/templates/reports/expedition-pallet-label/expedition-pallet-label.html
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+ {{labelData.truck || '---'}}
+
+
+
+
+
+
+
+ {{labelData.routeFk}}
+ {{labelData.zone || '---'}}
+ {{labelData.labels}}
+
+
+ {{labelData.routeFk}}
+ {{labelData.zone || '---'}}
+ {{labelData.labels || '--'}}
+
+
+
+
+
+
+
+
+
+
Pallet: {{id}}
+
User: {{username.name || '---'}}
+
Day: {{labelData.dayName.toUpperCase() || '---'}}
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/print/templates/reports/expedition-pallet-label/expedition-pallet-label.js b/print/templates/reports/expedition-pallet-label/expedition-pallet-label.js
new file mode 100644
index 000000000..0e8c297e8
--- /dev/null
+++ b/print/templates/reports/expedition-pallet-label/expedition-pallet-label.js
@@ -0,0 +1,62 @@
+const Component = require(`vn-print/core/component`);
+const reportBody = new Component('report-body');
+const jsBarcode = require('jsbarcode');
+const {DOMImplementation, XMLSerializer} = require('xmldom');
+const UserError = require('vn-loopback/util/user-error');
+const qrcode = require('qrcode');
+
+module.exports = {
+ name: 'expedition-pallet-label',
+ props: {
+ id: {
+ type: Number,
+ required: true,
+ description: 'The pallet id'
+ },
+ userFk: {
+ type: Number,
+ required: true,
+ description: 'The user id'
+ }
+ },
+ async serverPrefetch() {
+ this.labelsData = await this.rawSqlFromDef('labelData', this.id);
+ this.username = await this.findOneFromDef('username', this.userFk);
+ this.labelData = this.labelsData[0];
+
+ let QRdata = JSON.stringify({
+ company: 'vnl',
+ user: this.userFk,
+ created: new Date(),
+ table: 'expeditionPallet',
+ id: this.id
+ });
+
+ this.QR = await this.getQR(QRdata);
+ if (!this.labelsData.length)
+ throw new UserError('Empty data source');
+ },
+ methods: {
+ getQR(id) {
+ const data = String(id);
+ return qrcode.toDataURL(data, {margin: 0});
+ },
+ getBarcode(id) {
+ const xmlSerializer = new XMLSerializer();
+ const document = new DOMImplementation().createDocument('http://www.w3.org/1999/xhtml', 'html', null);
+ const svgNode = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
+
+ jsBarcode(svgNode, id, {
+ xmlDocument: document,
+ format: 'code128',
+ displayValue: false,
+ width: 6,
+ height: 90,
+ });
+ return xmlSerializer.serializeToString(svgNode);
+ },
+ },
+ components: {
+ 'report-body': reportBody.build()
+ },
+};
diff --git a/print/templates/reports/expedition-pallet-label/locale/es.yml b/print/templates/reports/expedition-pallet-label/locale/es.yml
new file mode 100644
index 000000000..f97730aef
--- /dev/null
+++ b/print/templates/reports/expedition-pallet-label/locale/es.yml
@@ -0,0 +1 @@
+reportName: labelPalletExpedition
\ No newline at end of file
diff --git a/print/templates/reports/expedition-pallet-label/options.json b/print/templates/reports/expedition-pallet-label/options.json
new file mode 100644
index 000000000..5814b2c0f
--- /dev/null
+++ b/print/templates/reports/expedition-pallet-label/options.json
@@ -0,0 +1,11 @@
+{
+ "width": "10cm",
+ "height": "15cm",
+ "margin": {
+ "top": "0.3cm",
+ "right": "0.07cm",
+ "bottom": "0cm",
+ "left": "0cm"
+ },
+ "printBackground": true
+}
\ No newline at end of file
diff --git a/print/templates/reports/expedition-pallet-label/sql/labelData.sql b/print/templates/reports/expedition-pallet-label/sql/labelData.sql
new file mode 100644
index 000000000..0661dbe0f
--- /dev/null
+++ b/print/templates/reports/expedition-pallet-label/sql/labelData.sql
@@ -0,0 +1,19 @@
+SELECT ep.id palletFk,
+ t.routeFk,
+ et2.description truck,
+ r.description `zone`,
+ COUNT(es.id) labels,
+ t.warehouseFk warehouseFk,
+ dayname(r.created) `dayName`,
+ et.id <=> rm.expeditionTruckFk isMatch
+ FROM vn.expeditionTruck et
+ JOIN vn.expeditionPallet ep ON ep.truckFk = et.id
+ JOIN vn.expeditionScan es ON es.palletFk = ep.id
+ JOIN vn.expedition e ON e.id = es.expeditionFk
+ JOIN vn.ticket t ON t.id = e.ticketFk
+ JOIN vn.route r ON r.id = t.routeFk
+ LEFT JOIN vn2008.Rutas_monitor rm ON rm.Id_Ruta = r.id
+ LEFT JOIN vn.expeditionTruck et2 ON et2.id = rm.expeditionTruckFk
+ WHERE ep.id = ?
+ GROUP BY ep.id, t.routeFk
+ ORDER BY t.routeFk
\ No newline at end of file
diff --git a/print/templates/reports/expedition-pallet-label/sql/username.sql b/print/templates/reports/expedition-pallet-label/sql/username.sql
new file mode 100644
index 000000000..e2ca3c65a
--- /dev/null
+++ b/print/templates/reports/expedition-pallet-label/sql/username.sql
@@ -0,0 +1,3 @@
+SELECT `name`
+ FROM account.user
+ WHERE id = ?
\ No newline at end of file
diff --git a/print/templates/reports/exportation/exportation.html b/print/templates/reports/exportation/exportation.html
index 252999467..920e32a48 100644
--- a/print/templates/reports/exportation/exportation.html
+++ b/print/templates/reports/exportation/exportation.html
@@ -1,51 +1,35 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
{{$t('title')}}
-
{{$t('toAttention')}}
-
-
-
-
- {{responsibility}}
-
-
-
-
-
{{$t('issued', [
- 'Algemesí',
- invoice.issued.getDate(),
- $t('months')[invoice.issued.getMonth()],
- invoice.issued.getFullYear()])
- }}
-
-
({{$t('signature')}})
-
-
-
{{$t('signer.name')}}: {{company.manager}}
-
{{$t('signer.ID')}}: {{company.managerFi}}
-
{{$t('signer.position')}}: {{$t('manager')}}
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+
{{$t('title')}}
+
{{$t('toAttention')}}
+
+
+
+
+ {{responsibility}}
+
+
+
+
+
{{$t('issued', [
+ 'Algemesí',
+ invoice.issued.getDate(),
+ $t('months')[invoice.issued.getMonth()],
+ invoice.issued.getFullYear()])
+ }}
+
+
({{$t('signature')}})
+
+
+
{{$t('signer.name')}}: {{company.manager}}
+
{{$t('signer.ID')}}: {{company.managerFi}}
+
{{$t('signer.position')}}: {{$t('manager')}}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/print/templates/reports/exportation/exportation.js b/print/templates/reports/exportation/exportation.js
index 630baf421..9f39aa1a1 100755
--- a/print/templates/reports/exportation/exportation.js
+++ b/print/templates/reports/exportation/exportation.js
@@ -1,5 +1,5 @@
const Component = require(`vn-print/core/component`);
-const reportHeader = new Component('report-header');
+const reportBody = new Component('report-body');
const reportFooter = new Component('report-footer');
module.exports = {
@@ -25,12 +25,12 @@ module.exports = {
}
},
components: {
- 'report-header': reportHeader.build(),
+ 'report-body': reportBody.build(),
'report-footer': reportFooter.build()
},
props: {
reference: {
- type: [Number, String],
+ type: Number,
required: true,
description: 'The invoice ref'
}
diff --git a/print/templates/reports/extra-community/extra-community.html b/print/templates/reports/extra-community/extra-community.html
index 86baf858b..6a46cc689 100644
--- a/print/templates/reports/extra-community/extra-community.html
+++ b/print/templates/reports/extra-community/extra-community.html
@@ -1,84 +1,67 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ {{$t('reference')}}
+ {{travel.ref}}
+ {{$t('blockedKg')}}
+ {{travel.kg | number($i18n.locale)}}
+
+
+ {{$t('packages')}}
+ {{travel.stickers}}
+ {{$t('volumeKg')}}
+ {{travel.volumeKg | number($i18n.locale)}}
+
+
+ {{$t('shipped')}}
+ {{travel.shipped | date('%d-%m-%Y')}}
+ {{$t('physicalKg')}}
+ {{travel.loadedKg | number($i18n.locale)}}
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
- {{$t('reference')}}
- {{travel.ref}}
- {{$t('blockedKg')}}
- {{travel.kg | number($i18n.locale)}}
-
-
- {{$t('packages')}}
- {{travel.stickers}}
- {{$t('volumeKg')}}
- {{travel.volumeKg | number($i18n.locale)}}
-
-
- {{$t('shipped')}}
- {{travel.shipped | date('%d-%m-%Y')}}
- {{$t('physicalKg')}}
- {{travel.loadedKg | number($i18n.locale)}}
-
-
-
-
-
-
-
-
-
-
- {{$t('supplier')}}
- {{$t('reference')}}
- {{$t('volKg')}}
- {{$t('phyKg')}}
- {{$t('packages')}}
-
-
-
-
- {{entry.supplierName}}
- {{entry.ref}}
- {{entry.volumeKg | number($i18n.locale)}}
- {{entry.loadedKg | number($i18n.locale)}}
- {{entry.stickers}}
-
-
- {{$t('noRows')}}
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+ {{$t('supplier')}}
+ {{$t('reference')}}
+ {{$t('volKg')}}
+ {{$t('phyKg')}}
+ {{$t('packages')}}
+
+
+
+
+ {{entry.supplierName}}
+ {{entry.reference}}
+ {{entry.volumeKg | number($i18n.locale)}}
+ {{entry.loadedKg | number($i18n.locale)}}
+ {{entry.stickers}}
+
+
+ {{$t('noRows')}}
+
+
+
+
+
+
+
+
+
diff --git a/print/templates/reports/extra-community/extra-community.js b/print/templates/reports/extra-community/extra-community.js
index dec89648a..4dfe6e278 100755
--- a/print/templates/reports/extra-community/extra-community.js
+++ b/print/templates/reports/extra-community/extra-community.js
@@ -1,5 +1,5 @@
const Component = require(`vn-print/core/component`);
-const reportHeader = new Component('report-header');
+const reportBody = new Component('report-body');
const reportFooter = new Component('report-footer');
const db = require(`vn-print/core/database`);
@@ -100,7 +100,7 @@ module.exports = {
}
},
components: {
- 'report-header': reportHeader.build(),
+ 'report-body': reportBody.build(),
'report-footer': reportFooter.build()
},
props: [
diff --git a/print/templates/reports/extra-community/sql/entries.sql b/print/templates/reports/extra-community/sql/entries.sql
index a90bf8b0b..84dc497c0 100644
--- a/print/templates/reports/extra-community/sql/entries.sql
+++ b/print/templates/reports/extra-community/sql/entries.sql
@@ -1,7 +1,7 @@
SELECT
e.id,
e.travelFk,
- e.ref,
+ e.reference,
s.name AS supplierName,
SUM(b.stickers) AS stickers,
CAST(SUM(b.weight * b.stickers) as DECIMAL(10,0)) as loadedKg,
@@ -15,4 +15,4 @@ SELECT
JOIN supplier s ON s.id = e.supplierFk
JOIN vn.volumeConfig vc
WHERE t.id IN(?)
- GROUP BY e.id
\ No newline at end of file
+ GROUP BY e.id
diff --git a/print/templates/reports/incoterms-authorization/incoterms-authorization.html b/print/templates/reports/incoterms-authorization/incoterms-authorization.html
index 27cad97b1..99a5e9caa 100644
--- a/print/templates/reports/incoterms-authorization/incoterms-authorization.html
+++ b/print/templates/reports/incoterms-authorization/incoterms-authorization.html
@@ -1,84 +1,61 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
{{client.name}}
-
-
-
-
-
- {{$t('signer.representative')}}:
-
-
-
- {{$t('signer.representativeRole')}}:
-
-
-
- {{$t('signer.signed')}}:
-
-
-
-
-
-
-
-
{{ company.name }}
-
-
-
{{company.manager}}
-
{{$t('manager')}}
-
{{$t('issued', [
- company.city,
- issued.getDate(),
- $t('months')[issued.getMonth()],
- issued.getFullYear()])
- }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
{{client.name}}
+
+
+
+
+ {{$t('signer.representative')}}:
+
+
+
+ {{$t('signer.representativeRole')}}:
+
+
+
+ {{$t('signer.signed')}}:
+
+
+
+
+
+
+
{{ company.name }}
+
+
{{company.manager}}
+
{{$t('manager')}}
+
+
+
+
+
+
+
+
diff --git a/print/templates/reports/incoterms-authorization/incoterms-authorization.js b/print/templates/reports/incoterms-authorization/incoterms-authorization.js
index 26637b8c2..bfe675985 100755
--- a/print/templates/reports/incoterms-authorization/incoterms-authorization.js
+++ b/print/templates/reports/incoterms-authorization/incoterms-authorization.js
@@ -1,5 +1,5 @@
const Component = require(`vn-print/core/component`);
-const reportHeader = new Component('report-header');
+const reportBody = new Component('report-body');
const reportFooter = new Component('report-footer');
module.exports = {
@@ -16,17 +16,17 @@ module.exports = {
}
},
components: {
- 'report-header': reportHeader.build(),
+ 'report-body': reportBody.build(),
'report-footer': reportFooter.build()
},
props: {
id: {
- type: [Number, String],
+ type: Number,
required: true,
description: 'The client id'
},
companyId: {
- type: [Number, String],
+ type: Number,
required: true
}
}
diff --git a/print/templates/reports/invoice-incoterms/invoice-incoterms.html b/print/templates/reports/invoice-incoterms/invoice-incoterms.html
index f30667042..20c9ad440 100644
--- a/print/templates/reports/invoice-incoterms/invoice-incoterms.html
+++ b/print/templates/reports/invoice-incoterms/invoice-incoterms.html
@@ -1,123 +1,94 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{$t('title')}}
-
-
-
- {{$t('clientId')}}
- {{client.id}}
-
-
- {{$t('invoice')}}
- {{invoice.ref}}
-
-
- {{$t('date')}}
- {{invoice.issued | date('%d-%m-%Y')}}
-
-
-
-
-
-
-
-
-
-
{{client.socialName}}
-
- {{client.postalAddress}}
-
-
- {{client.postcodeCity}}
-
-
- {{$t('fiscalId')}}: {{client.fi}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{$t('incoterms')}}
-
- {{incoterms.incotermsFk}} - {{incoterms.incotermsName}}
-
-
-
- {{$t('productDescription')}}
-
- {{incoterms.intrastat}}
-
-
- {{$t('expeditionDescription')}}
-
-
-
- {{$t('packageNumber')}}
- {{incoterms.packages}}
-
-
- {{$t('packageGrossWeight')}}
- {{incoterms.weight}} KG
-
-
- {{$t('packageCubing')}}
- {{incoterms.volume}} m3
-
-
-
-
-
-
- {{$t('customsInfo')}}
- {{incoterms.customsAgentName}}
-
-
- (
- {{incoterms.customsAgentNif}}
- {{incoterms.customsAgentStreet}}
-
- ☎ {{incoterms.customsAgentPhone}}
-
-
- ✉ {{incoterms.customsAgentEmail}}
-
- )
-
-
-
- {{$t('productDisclaimer')}}
-
-
-
-
+
+
+
+
+
+
+
+
+
+
{{$t('title')}}
+
+
+
+ {{$t('clientId')}}
+ {{client.id}}
+
+
+ {{$t('invoice')}}
+ {{invoice.ref}}
+
+
+ {{$t('date')}}
+ {{invoice.issued | date('%d-%m-%Y')}}
+
+
+
+
+
+
+
+
+
+
{{client.socialName}}
+
{{client.postalAddress}}
+
{{client.postcodeCity}}
+
{{$t('fiscalId')}}: {{client.fi}}
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+ {{$t('incoterms')}}
+ {{incoterms.incotermsFk}} - {{incoterms.incotermsName}}
+
+
+ {{$t('productDescription')}}
+ {{incoterms.intrastat}}
+
+
+ {{$t('expeditionDescription')}}
+
+
+
+ {{$t('packageNumber')}}
+ {{incoterms.packages}}
+
+
+ {{$t('packageGrossWeight')}}
+ {{incoterms.weight}} KG
+
+
+ {{$t('packageCubing')}}
+ {{incoterms.volume}} m3
+
+
+
+
+
+ {{$t('customsInfo')}}
+ {{incoterms.customsAgentName}}
+
+
+ (
+ {{incoterms.customsAgentNif}}
+ {{incoterms.customsAgentStreet}}
+ ☎ {{incoterms.customsAgentPhone}}
+ ✉ {{incoterms.customsAgentEmail}}
+ )
+
+
+ {{$t('productDisclaimer')}}
+
+
+
+
+
+
+
diff --git a/print/templates/reports/invoice-incoterms/invoice-incoterms.js b/print/templates/reports/invoice-incoterms/invoice-incoterms.js
index 3dbe76ac3..3afc50376 100755
--- a/print/templates/reports/invoice-incoterms/invoice-incoterms.js
+++ b/print/templates/reports/invoice-incoterms/invoice-incoterms.js
@@ -1,6 +1,6 @@
const Component = require(`vn-print/core/component`);
+const reportBody = new Component('report-body');
const reportHeader = new Component('report-header');
-const reportFooter = new Component('report-footer');
module.exports = {
name: 'invoice-incoterms',
@@ -27,12 +27,12 @@ module.exports = {
}
},
components: {
- 'report-header': reportHeader.build(),
- 'report-footer': reportFooter.build()
+ 'report-body': reportBody.build(),
+ 'report-header': reportHeader.build()
},
props: {
reference: {
- type: [Number, String],
+ type: Number,
required: true,
description: 'The invoice ref'
}
diff --git a/print/templates/reports/invoice/invoice.html b/print/templates/reports/invoice/invoice.html
index 1d646a0db..d23bba1e9 100644
--- a/print/templates/reports/invoice/invoice.html
+++ b/print/templates/reports/invoice/invoice.html
@@ -1,319 +1,266 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
{{$t('title')}}
+
+
+
+ {{$t('clientId')}}
+ {{client.id}}
+
+
+ {{$t('invoice')}}
+ {{invoice.ref}}
+
+
+ {{$t('date')}}
+ {{invoice.issued | date('%d-%m-%Y')}}
+
+
+
+
+
+
+
+
+
+
{{client.socialName}}
+
{{client.postalAddress}}
+
{{client.postcodeCity}}
+
{{$t('fiscalId')}}: {{client.fi}}
+
+
+
+
+
+
{{$t('rectifiedInvoices')}}
+
+
+
+ {{$t('invoice')}}
+ {{$t('issued')}}
+ {{$t('amount')}}
+ {{$t('description')}}
+
+
+
+
+ {{row.ref}}
+ {{row.issued | date}}
+ {{row.amount | currency('EUR', $i18n.locale)}}
+ {{row.description}}
+
+
+
+
+
+
+
+
{{$t('deliveryNote')}}
+
+
+
+
{{$t('shipped')}}
+
+
+
+ {{ticket.shipped | date}}
+
+
+
+ {{ticket.nickname}}
+
+
+
+
+
+ {{$t('reference')}}
+ {{$t('quantity')}}
+ {{$t('concept')}}
+ {{$t('price')}}
+ {{$t('discount')}}
+ {{$t('vat')}}
+ {{$t('amount')}}
+
+
+
+
+ {{sale.itemFk | zerofill('000000')}}
+ {{sale.quantity}}
+ {{sale.concept}}
+ {{sale.price | currency('EUR', $i18n.locale)}}
+ {{(sale.discount / 100) | percentage}}
+ {{sale.vatType}}
+ {{saleImport(sale) | currency('EUR', $i18n.locale)}}
+
+
+
+ {{sale.tag5}} {{sale.value5}}
+ {{sale.tag6}} {{sale.value6}}
+ {{sale.tag7}} {{sale.value7}}
+
+
+
+
+
+
+ {{$t('subtotal')}}
+
+ {{ticketSubtotal(ticket) | currency('EUR', $i18n.locale)}}
+
+
+
+
-
-
-
+
+
+
+
+
+ {{$t('taxBreakdown')}}
+
+
+
+
+ {{$t('type')}}
+ {{$t('taxBase')}}
+ {{$t('tax')}}
+ {{$t('fee')}}
+
+
+
+
+ {{tax.name}}
+ {{tax.base | currency('EUR', $i18n.locale)}}
+ {{tax.vatPercent | percentage}}
+ {{tax.vat | currency('EUR', $i18n.locale)}}
+
+
+
+
+ {{$t('subtotal')}}
+
+ {{sumTotal(taxes, 'base') | currency('EUR', $i18n.locale)}}
+
+
+ {{sumTotal(taxes, 'vat') | currency('EUR', $i18n.locale)}}
+
+
+ {{$t('total')}}
+ {{taxTotal | currency('EUR', $i18n.locale)}}
+
+
+
-
-
-
-
-
-
-
-
-
-
{{$t('title')}}
-
-
-
- {{$t('clientId')}}
- {{client.id}}
-
-
- {{$t('invoice')}}
- {{invoice.ref}}
-
-
- {{$t('date')}}
- {{invoice.issued | date('%d-%m-%Y')}}
-
-
-
-
-
-
-
-
-
-
{{client.socialName}}
-
- {{client.postalAddress}}
-
-
- {{client.postcodeCity}}
-
-
- {{$t('fiscalId')}}: {{client.fi}}
-
-
-
+
+
+
+ {{invoice.footNotes}}
+
+
+
+
+
+
+
+
+
+
+
{{$t('plantPassport')}}
-
-
-
-
{{$t('rectifiedInvoices')}}
-
-
-
- {{$t('invoice')}}
- {{$t('issued')}}
- {{$t('amount')}}
- {{$t('description')}}
-
-
-
-
- {{row.ref}}
- {{row.issued | date}}
- {{row.amount | currency('EUR', $i18n.locale)}}
- {{row.description}}
-
-
-
+
+
+
+ A
+ {{botanical}}
-
-
-
-
-
-
-
{{$t('deliveryNote')}}
-
-
-
-
{{$t('shipped')}}
-
-
-
- {{ticket.shipped | date}}
-
-
-
- {{ticket.nickname}}
-
-
-
-
-
- {{$t('reference')}}
- {{$t('quantity')}}
- {{$t('concept')}}
- {{$t('price')}}
- {{$t('discount')}}
- {{$t('vat')}}
- {{$t('amount')}}
-
-
-
-
- {{sale.itemFk | zerofill('000000')}}
- {{sale.quantity}}
- {{sale.concept}}
- {{sale.price | currency('EUR', $i18n.locale)}}
- {{(sale.discount / 100) | percentage}}
- {{sale.vatType}}
- {{saleImport(sale) | currency('EUR', $i18n.locale)}}
-
-
-
-
- {{sale.tag5}} {{sale.value5}}
-
-
- {{sale.tag6}} {{sale.value6}}
-
-
- {{sale.tag7}} {{sale.value7}}
-
-
-
-
-
-
-
- {{$t('subtotal')}}
-
- {{ticketSubtotal(ticket) | currency('EUR', $i18n.locale)}}
-
-
-
+
+ B
+ ES17462130
-
-
-
-
-
-
-
-
- {{$t('taxBreakdown')}}
-
-
-
-
- {{$t('type')}}
-
- {{$t('taxBase')}}
-
- {{$t('tax')}}
- {{$t('fee')}}
-
-
-
-
- {{tax.name}}
-
- {{tax.base | currency('EUR', $i18n.locale)}}
-
- {{tax.vatPercent | percentage}}
- {{tax.vat | currency('EUR', $i18n.locale)}}
-
-
-
-
- {{$t('subtotal')}}
-
- {{sumTotal(taxes, 'base') | currency('EUR', $i18n.locale)}}
-
-
- {{sumTotal(taxes, 'vat') | currency('EUR', $i18n.locale)}}
-
-
- {{$t('total')}}
- {{taxTotal | currency('EUR', $i18n.locale)}}
-
-
-
-
-
-
-
- {{invoice.footNotes}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{$t('plantPassport')}}
-
-
-
-
-
- A
- {{botanical}}
-
-
- B
- ES17462130
-
-
- C
- {{ticketsId}}
-
-
- D
- ES
-
-
-
-
-
-
+
+ C
+ {{ticketsId}}
-
-
-
-
-
{{$t('intrastat')}}
-
-
-
- {{$t('code')}}
- {{$t('description')}}
- {{$t('stems')}}
- {{$t('netKg')}}
- {{$t('amount')}}
-
-
-
-
- {{row.code}}
- {{row.description}}
- {{row.stems | number($i18n.locale)}}
- {{row.netKg | number($i18n.locale)}}
- {{row.subtotal | currency('EUR', $i18n.locale)}}
-
-
-
-
-
-
- {{sumTotal(intrastat, 'stems') | number($i18n.locale)}}
-
-
- {{sumTotal(intrastat, 'netKg') | number($i18n.locale)}}
-
-
- {{sumTotal(intrastat, 'subtotal') | currency('EUR', $i18n.locale)}}
-
-
-
-
+
+ D
+ ES
-
-
-
-
-
-
-
-
-
{{$t('wireTransfer')}}
-
{{$t('accountNumber', [invoice.iban])}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+
+
{{$t('intrastat')}}
+
+
+
+ {{$t('code')}}
+ {{$t('description')}}
+ {{$t('stems')}}
+ {{$t('netKg')}}
+ {{$t('amount')}}
+
+
+
+
+ {{row.code}}
+ {{row.description || $t('services') }}
+ {{row.stems | number($i18n.locale)}}
+ {{row.netKg | number($i18n.locale)}}
+ {{row.subtotal | currency('EUR', $i18n.locale)}}
+
+
+
+
+
+
+ {{sumTotal(intrastat, 'stems') | number($i18n.locale)}}
+
+
+ {{sumTotal(intrastat, 'netKg') | number($i18n.locale)}}
+
+
+ {{sumTotal(intrastat, 'subtotal') | currency('EUR', $i18n.locale)}}
+
+
+
+
+
+
+
+
+
+
+
{{$t('wireTransfer')}}
+
{{$t('accountNumber', [invoice.iban])}}
+
+
+
+
+
+
+
+
+
+
diff --git a/print/templates/reports/invoice/invoice.js b/print/templates/reports/invoice/invoice.js
index db94a7a12..48848c079 100755
--- a/print/templates/reports/invoice/invoice.js
+++ b/print/templates/reports/invoice/invoice.js
@@ -1,5 +1,6 @@
const Component = require(`vn-print/core/component`);
const Report = require(`vn-print/core/report`);
+const reportBody = new Component('report-body');
const reportHeader = new Component('report-header');
const reportFooter = new Component('report-footer');
const invoiceIncoterms = new Report('invoice-incoterms');
@@ -81,7 +82,7 @@ module.exports = {
return this.rawSqlFromDef(`taxes`, [reference]);
},
fetchIntrastat(reference) {
- return this.rawSqlFromDef(`intrastat`, [reference, reference, reference]);
+ return this.rawSqlFromDef(`intrastat`, [reference, reference, reference, reference, reference]);
},
fetchRectified(reference) {
return this.rawSqlFromDef(`rectified`, [reference]);
@@ -110,6 +111,7 @@ module.exports = {
}
},
components: {
+ 'report-body': reportBody.build(),
'report-header': reportHeader.build(),
'report-footer': reportFooter.build(),
'invoice-incoterms': invoiceIncoterms.build()
diff --git a/print/templates/reports/invoice/locale/en.yml b/print/templates/reports/invoice/locale/en.yml
index 4e4688b55..336592f0c 100644
--- a/print/templates/reports/invoice/locale/en.yml
+++ b/print/templates/reports/invoice/locale/en.yml
@@ -33,4 +33,5 @@ issued: Issued
plantPassport: Plant passport
observations: Observations
wireTransfer: "Pay method: Transferencia"
-accountNumber: "Account number: {0}"
\ No newline at end of file
+accountNumber: "Account number: {0}"
+services: Services
\ No newline at end of file
diff --git a/print/templates/reports/invoice/locale/es.yml b/print/templates/reports/invoice/locale/es.yml
index d37e77943..32f6fc708 100644
--- a/print/templates/reports/invoice/locale/es.yml
+++ b/print/templates/reports/invoice/locale/es.yml
@@ -33,4 +33,5 @@ issued: F. emisión
plantPassport: Pasaporte fitosanitario
observations: Observaciones
wireTransfer: "Forma de pago: Transferencia"
-accountNumber: "Número de cuenta: {0}"
\ No newline at end of file
+accountNumber: "Número de cuenta: {0}"
+services: Servicios
\ No newline at end of file
diff --git a/print/templates/reports/invoice/sql/intrastat.sql b/print/templates/reports/invoice/sql/intrastat.sql
index e2ee47667..7f5fbdf39 100644
--- a/print/templates/reports/invoice/sql/intrastat.sql
+++ b/print/templates/reports/invoice/sql/intrastat.sql
@@ -1,22 +1,39 @@
-SELECT
- ir.id code,
- ir.description description,
- CAST(SUM(IFNULL(i.stems, 1) * s.quantity) AS DECIMAL(10,2)) stems,
- CAST(SUM(CAST(IFNULL(i.stems, 1) * s.quantity * IF(ic.grams, ic.grams, i.density * ic.cm3delivery / 1000) / 1000 AS DECIMAL(10,2)) *
- IF(sub.weight, sub.weight / vn.invoiceOut_getWeight(?), 1)) AS DECIMAL(10,2)) netKg,
- CAST(SUM((s.quantity * s.price * (100 - s.discount) / 100 )) AS DECIMAL(10,2)) subtotal
- FROM vn.ticket t
- JOIN vn.sale s ON s.ticketFk = t.id
- JOIN vn.item i ON i.id = s.itemFk
- JOIN vn.itemCost ic ON ic.itemFk = i.id AND ic.warehouseFk = t.warehouseFk
- JOIN vn.intrastat ir ON ir.id = i.intrastatFk
- LEFT JOIN (
- SELECT t2.weight
- FROM vn.ticket t2
- WHERE refFk = ? AND weight
- LIMIT 1
- ) sub ON TRUE
- WHERE t.refFk = ?
- AND i.intrastatFk
- GROUP BY i.intrastatFk
- ORDER BY i.intrastatFk;
\ No newline at end of file
+SELECT *
+ FROM invoiceOut io
+ JOIN invoiceOutSerial ios ON io.serial = ios.code
+ JOIN
+ (SELECT
+ t.refFk,
+ ir.id code,
+ ir.description description,
+ CAST(SUM(IFNULL(i.stems, 1) * s.quantity) AS DECIMAL(10,2)) stems,
+ CAST(SUM(CAST(IFNULL(i.stems, 1) * s.quantity * IF(ic.grams, ic.grams, i.density * ic.cm3delivery / 1000) / 1000 AS DECIMAL(10,2)) *
+ IF(sub.weight, sub.weight / vn.invoiceOut_getWeight(?), 1)) AS DECIMAL(10,2)) netKg,
+ CAST(SUM((s.quantity * s.price * (100 - s.discount) / 100 )) AS DECIMAL(10,2)) subtotal
+ FROM vn.ticket t
+ JOIN vn.sale s ON s.ticketFk = t.id
+ JOIN vn.item i ON i.id = s.itemFk
+ JOIN vn.itemCost ic ON ic.itemFk = i.id AND ic.warehouseFk = t.warehouseFk
+ JOIN vn.intrastat ir ON ir.id = i.intrastatFk
+ LEFT JOIN (
+ SELECT t2.weight
+ FROM vn.ticket t2
+ WHERE refFk = ? AND weight
+ LIMIT 1
+ ) sub ON TRUE
+ WHERE t.refFk = ?
+ AND i.intrastatFk
+ GROUP BY i.intrastatFk
+ UNION ALL
+ SELECT
+ NULL AS refFk,
+ NULL AS code,
+ NULL AS description,
+ 0 AS stems,
+ 0 AS netKg,
+ IF(CAST(SUM((ts.quantity * ts.price)) AS DECIMAL(10,2)), CAST(SUM((ts.quantity * ts.price)) AS DECIMAL(10,2)), 0) AS subtotal
+ FROM vn.ticketService ts
+ JOIN vn.ticket t ON ts.ticketFk = t.id
+ WHERE t.refFk = ?) sub
+ WHERE io.`ref` = ? AND ios.isCEE
+ ORDER BY sub.code;
diff --git a/print/templates/reports/invoice/sql/rectified.sql b/print/templates/reports/invoice/sql/rectified.sql
index ea814a05a..49db8f68b 100644
--- a/print/templates/reports/invoice/sql/rectified.sql
+++ b/print/templates/reports/invoice/sql/rectified.sql
@@ -1,10 +1,10 @@
-SELECT
- io.amount,
- io.ref,
- io.issued,
+SELECT
+ io.amount,
+ io.ref,
+ io.issued,
ict.description
-FROM vn.invoiceCorrection ic
- JOIN vn.invoiceOut io ON io.id = ic.correctedFk
- JOIN vn.invoiceCorrectionType ict ON ict.id = ic.invoiceCorrectionTypeFk
+FROM invoiceOut io
+ JOIN invoiceCorrection ic ON ic.correctingFk = io.id
+ JOIN invoiceCorrectionType ict ON ict.id = ic.invoiceCorrectionTypeFk
LEFT JOIN ticket t ON t.refFk = io.ref
-WHERE t.refFk = ?
\ No newline at end of file
+WHERE io.ref = ?
\ No newline at end of file
diff --git a/print/templates/reports/invoiceIn/assets/css/import.js b/print/templates/reports/invoiceIn/assets/css/import.js
new file mode 100644
index 000000000..37a98dfdd
--- /dev/null
+++ b/print/templates/reports/invoiceIn/assets/css/import.js
@@ -0,0 +1,12 @@
+const Stylesheet = require(`vn-print/core/stylesheet`);
+
+const path = require('path');
+const vnPrintPath = path.resolve('print');
+
+module.exports = new Stylesheet([
+ `${vnPrintPath}/common/css/spacing.css`,
+ `${vnPrintPath}/common/css/misc.css`,
+ `${vnPrintPath}/common/css/layout.css`,
+ `${vnPrintPath}/common/css/report.css`,
+ `${__dirname}/style.css`])
+ .mergeStyles();
diff --git a/print/templates/reports/invoiceIn/assets/css/style.css b/print/templates/reports/invoiceIn/assets/css/style.css
new file mode 100644
index 000000000..9fda2a613
--- /dev/null
+++ b/print/templates/reports/invoiceIn/assets/css/style.css
@@ -0,0 +1,42 @@
+h2 {
+ font-weight: 100;
+ color: #555
+}
+
+.table-title {
+ margin-bottom: 15px;
+ font-size: .8rem
+}
+
+.table-title h2 {
+ margin: 0 15px 0 0
+}
+
+.ticket-info {
+ font-size: 22px
+}
+
+
+#nickname h2 {
+ max-width: 400px;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ overflow: hidden;
+}
+
+#phytosanitary {
+ padding-right: 10px
+}
+
+#phytosanitary .flag img {
+ width: 100%
+}
+
+#phytosanitary .flag .flag-text {
+ padding-left: 10px;
+ box-sizing: border-box;
+}
+
+.phytosanitary-info {
+ margin-top: 10px
+}
\ No newline at end of file
diff --git a/print/templates/reports/invoiceIn/assets/images/europe.png b/print/templates/reports/invoiceIn/assets/images/europe.png
new file mode 100644
index 000000000..673be92ae
Binary files /dev/null and b/print/templates/reports/invoiceIn/assets/images/europe.png differ
diff --git a/print/templates/reports/invoiceIn/invoiceIn.html b/print/templates/reports/invoiceIn/invoiceIn.html
new file mode 100644
index 000000000..f101f7408
--- /dev/null
+++ b/print/templates/reports/invoiceIn/invoiceIn.html
@@ -0,0 +1,168 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ {{$t('supplierId')}}
+ {{invoice.supplierId}}
+
+
+ {{$t('invoiceId')}}
+ {{invoice.supplierRef}}
+
+
+ {{$t('date')}}
+ {{invoice.created | date('%d-%m-%Y')}}
+
+
+
+
+
+
+
+
+
+
{{invoice.name}}
+
{{invoice.postalAddress}}
+
{{invoice.postcodeCity}}
+
{{$t('fiscalId')}}: {{invoice.nif}}
+
{{$t('phone')}}: {{invoice.phone}}
+
+
+
+
+
+
+
+
+
{{$t('entry')}}
+
+
+
+
{{$t('date')}}
+
+
+
+ {{entry.landed | date}}
+
+
+
+
+
{{$t('reference')}}
+
+
+
+ {{entry.reference}}
+
+
+
+
+
+
+
+ {{$t('item')}}
+ {{$t('quantity')}}
+ {{$t('buyingValue')}}
+ {{$t('amount')}}
+
+
+
+
+ {{buy.name}}
+ {{buy.quantity}}
+ {{buy.buyingValue | currency('EUR', $i18n.locale)}}
+ {{buyImport(buy) | currency('EUR', $i18n.locale)}}
+
+
+
+ {{buy.tag5}} {{buy.value5}}
+ {{buy.tag6}} {{buy.value6}}
+ {{buy.tag7}} {{buy.value7}}
+
+
+
+
+
+
+ {{$t('subtotal')}}
+
+ {{entrySubtotal(entry) | currency('EUR', $i18n.locale)}}
+
+
+
+
+
+
+
+
+
+
+
{{$t('signer.received')}}:
+
{{$t('signer.signed')}}:
+
+
+
+
+
+
+
+
+ {{$t('taxBreakdown')}}
+
+
+
+
+ {{tax.name}}
+ {{tax.taxableBase | currency('EUR', $i18n.locale)}}
+
+ {{(tax.rate / 100) | percentage}}
+ {{tax.vat | currency('EUR', $i18n.locale)}}
+
+
+
+
+ {{$t('subtotal')}}
+
+ {{sumTotal(taxes, 'taxableBase') | currency('EUR', $i18n.locale)}}
+
+
+ {{sumTotal(taxes, 'vat') | currency('EUR', $i18n.locale)}}
+
+
+ {{$t('total')}}
+ {{taxTotal() | currency('EUR', $i18n.locale)}}
+
+
+
+
+
+
+
+ {{invoice.footNotes}}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/print/templates/reports/invoiceIn/invoiceIn.js b/print/templates/reports/invoiceIn/invoiceIn.js
new file mode 100755
index 000000000..03549c276
--- /dev/null
+++ b/print/templates/reports/invoiceIn/invoiceIn.js
@@ -0,0 +1,109 @@
+const Component = require(`vn-print/core/component`);
+const reportBody = new Component('report-body');
+const reportHeader = new Component('report-header');
+const reportFooter = new Component('report-footer');
+
+module.exports = {
+ name: 'invoiceIn',
+ async serverPrefetch() {
+ this.invoice = await this.fetchInvoice(this.id);
+ this.taxes = await this.fetchTaxes(this.id);
+
+ let defaultTax = await this.fetchDefaultTax();
+
+ if (defaultTax) {
+ defaultTax = Object.assign(defaultTax, {
+ taxableBase: 0,
+ vat: (this.taxTotal() * defaultTax.rate / 100)
+ });
+ this.taxes.push(defaultTax);
+ }
+
+ if (!this.invoice)
+ throw new Error('Something went wrong');
+
+ const entries = await this.fetchEntry(this.id);
+ const buys = await this.fetchBuy(this.id);
+
+ const map = new Map();
+
+ for (let entry of entries) {
+ entry.buys = [];
+
+ map.set(entry.id, entry);
+ }
+
+ for (let buy of buys) {
+ const entry = map.get(buy.entryFk);
+
+ if (entry) entry.buys.push(buy);
+ }
+
+ this.entries = entries;
+ },
+ computed: {
+ },
+ methods: {
+ fetchInvoice(id) {
+ return this.findOneFromDef('invoice', [id]);
+ },
+ fetchEntry(id) {
+ return this.rawSqlFromDef('entry', [id]);
+ },
+ fetchBuy(id) {
+ return this.rawSqlFromDef('buy', [id]);
+ },
+ fetchDefaultTax() {
+ return this.findOneFromDef('defaultTax');
+ },
+ async fetchTaxes(id) {
+ const taxes = await this.rawSqlFromDef(`taxes`, [id]);
+ return this.taxVat(taxes);
+ },
+ buyImport(buy) {
+ return buy.quantity * buy.buyingValue;
+ },
+ entrySubtotal(entry) {
+ let subTotal = 0.00;
+ for (let buy of entry.buys)
+ subTotal += this.buyImport(buy);
+
+ return subTotal;
+ },
+ sumTotal(rows, prop) {
+ let total = 0.00;
+ for (let row of rows)
+ total += parseFloat(row[prop]);
+
+ return total;
+ },
+ taxVat(taxes) {
+ for (tax of taxes) {
+ let vat = 0;
+ if (tax.rate && tax.taxableBase)
+ vat = (tax.rate / 100) * tax.taxableBase;
+
+ tax.vat = vat;
+ }
+
+ return taxes;
+ },
+ taxTotal() {
+ const base = this.sumTotal(this.taxes, 'taxableBase');
+ const vat = this.sumTotal(this.taxes, 'vat');
+
+ return base + vat;
+ }
+ },
+ components: {
+ 'report-body': reportBody.build(),
+ 'report-header': reportHeader.build(),
+ 'report-footer': reportFooter.build(),
+ },
+ props: {
+ id: {
+ type: Number,
+ description: 'The invoice id'
+ }
+ }
+};
diff --git a/print/templates/reports/invoiceIn/locale/en.yml b/print/templates/reports/invoiceIn/locale/en.yml
new file mode 100644
index 000000000..5f41a9ceb
--- /dev/null
+++ b/print/templates/reports/invoiceIn/locale/en.yml
@@ -0,0 +1,30 @@
+reportName: agricultural receip
+title: Agricultural receip
+invoiceId: Agricultural receip
+supplierId: Proveedor
+invoiceData: Invoice data
+reference: Reference
+fiscalId: FI / NIF
+phone: Phone
+date: Date
+item: Item
+quantity: Qty.
+concept: Concept
+buyingValue: PSP/u
+discount: Disc.
+vat: VAT
+amount: Amount
+type: Type
+taxBase: Tax base
+tax: Tax
+fee: Fee
+total: Total
+subtotal: Subtotal
+taxBreakdown: Tax breakdown
+observations: Observations
+payMethod: Pay method
+entry: Entry
+signer:
+ received: Received
+ signed: Signature
+footer: Passive subject covered by the special agrarian regime. Please send this duly signed and sealed copy. Thanks.
diff --git a/print/templates/reports/invoiceIn/locale/es.yml b/print/templates/reports/invoiceIn/locale/es.yml
new file mode 100644
index 000000000..90f7db6bd
--- /dev/null
+++ b/print/templates/reports/invoiceIn/locale/es.yml
@@ -0,0 +1,30 @@
+reportName: recibo agrícola
+title: Recibo Agrícola
+invoiceId: Recibo Agrícola
+supplierId: Proveedor
+invoiceData: Datos de facturación
+reference: Referencia
+fiscalId: CIF / NIF
+phone: Tlf
+date: Fecha
+item: Artículo
+quantity: Cant.
+concept: Concepto
+buyingValue: PVP/u
+discount: Dto.
+vat: IVA
+amount: Importe
+type: Tipo
+taxBase: Base imp.
+tax: Tasa
+fee: Cuota
+total: Total
+subtotal: Subtotal
+taxBreakdown: Desglose impositivo
+observations: Observaciones
+payMethod: Método de pago
+entry: Entrada
+signer:
+ received: Recibí
+ signed: Firma y sello
+footer: Sujeto pasivo acogido al régimen especial agrario. Les rogamos remitan esta copia debidamente firmada y sellada. Gracias.
diff --git a/print/templates/reports/invoiceIn/sql/buy.sql b/print/templates/reports/invoiceIn/sql/buy.sql
new file mode 100644
index 000000000..28a80ff9c
--- /dev/null
+++ b/print/templates/reports/invoiceIn/sql/buy.sql
@@ -0,0 +1,18 @@
+SELECT
+ b.id,
+ e.id entryFk,
+ it.name,
+ b.quantity,
+ b.buyingValue,
+ (b.quantity * b.buyingValue) total,
+ it.tag5,
+ it.value5,
+ it.tag6,
+ it.value6,
+ it.tag7,
+ it.value7
+ FROM entry e
+ JOIN invoiceIn i ON i.id = e.invoiceInFk
+ JOIN buy b ON b.entryFk = e.id
+ JOIN item it ON it.id = b.itemFk
+ WHERE i.id = ?
diff --git a/print/templates/reports/invoiceIn/sql/defaultTax.sql b/print/templates/reports/invoiceIn/sql/defaultTax.sql
new file mode 100644
index 000000000..25f8a7090
--- /dev/null
+++ b/print/templates/reports/invoiceIn/sql/defaultTax.sql
@@ -0,0 +1,5 @@
+SELECT
+ id,
+ retentionRate rate,
+ retentionName name
+ FROM invoiceInConfig;
diff --git a/print/templates/reports/invoiceIn/sql/entry.sql b/print/templates/reports/invoiceIn/sql/entry.sql
new file mode 100644
index 000000000..d81a81afb
--- /dev/null
+++ b/print/templates/reports/invoiceIn/sql/entry.sql
@@ -0,0 +1,8 @@
+SELECT
+ e.id,
+ t.landed,
+ e.reference
+ FROM entry e
+ JOIN invoiceIn i ON i.id = e.invoiceInFk
+ JOIN travel t ON t.id = e.travelFk
+ WHERE i.id = ?
diff --git a/print/templates/reports/invoiceIn/sql/invoice.sql b/print/templates/reports/invoiceIn/sql/invoice.sql
new file mode 100644
index 000000000..eea8e81a5
--- /dev/null
+++ b/print/templates/reports/invoiceIn/sql/invoice.sql
@@ -0,0 +1,14 @@
+SELECT
+ i.supplierRef,
+ s.id supplierId,
+ i.created,
+ s.name,
+ s.street AS postalAddress,
+ s.nif,
+ s.phone,
+ p.name payMethod
+ FROM invoiceIn i
+ JOIN supplier s ON s.id = i.supplierFk
+ JOIN company c ON c.id = i.companyFk
+ JOIN payMethod p ON p.id = s.payMethodFk
+ WHERE i.id = ?
diff --git a/print/templates/reports/invoiceIn/sql/taxes.sql b/print/templates/reports/invoiceIn/sql/taxes.sql
new file mode 100644
index 000000000..07b7be822
--- /dev/null
+++ b/print/templates/reports/invoiceIn/sql/taxes.sql
@@ -0,0 +1,9 @@
+SELECT
+ ti.iva as name,
+ ti.PorcentajeIva as rate,
+ iit.taxableBase
+ FROM invoiceIn ii
+ JOIN invoiceInTax iit ON ii.id = iit.invoiceInFk
+ JOIN sage.TiposIva ti ON ti.CodigoIva = iit.taxTypeSageFk
+ WHERE ii.id = ?
+ ORDER BY name DESC;
diff --git a/print/templates/reports/item-label/item-label.html b/print/templates/reports/item-label/item-label.html
index 3f2d7ce69..49593f7dd 100644
--- a/print/templates/reports/item-label/item-label.html
+++ b/print/templates/reports/item-label/item-label.html
@@ -1,35 +1,29 @@
-
-
-
-
-
-
-
-
-
-
{{item.id}}
-
-
-
-
-
-
-
{{tags.color}}
-
{{tags.producer}}
-
-
-
{{packing()}}
-
{{dated}}
-
{{labelPage}}
-
-
{{item.size}}
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
{{item.id}}
+
+
+
+
+
+
+
{{tags.color}}
+
{{tags.producer}}
+
+
+
{{packing()}}
+
{{dated}}
+
{{labelPage}}
+
+
{{item.size}}
+
+
+
+
+
+
+
diff --git a/print/templates/reports/item-label/item-label.js b/print/templates/reports/item-label/item-label.js
index d03d03cfa..6341bd11a 100755
--- a/print/templates/reports/item-label/item-label.js
+++ b/print/templates/reports/item-label/item-label.js
@@ -1,6 +1,5 @@
const Component = require(`vn-print/core/component`);
-const reportHeader = new Component('report-header');
-const reportFooter = new Component('report-footer');
+const reportBody = new Component('report-body');
const qrcode = require('qrcode');
module.exports = {
@@ -50,8 +49,7 @@ module.exports = {
}
},
components: {
- 'report-header': reportHeader.build(),
- 'report-footer': reportFooter.build()
+ 'report-body': reportBody.build()
},
props: {
id: {
diff --git a/print/templates/reports/letter-debtor/letter-debtor.html b/print/templates/reports/letter-debtor/letter-debtor.html
index 88bf15bdb..962af021d 100644
--- a/print/templates/reports/letter-debtor/letter-debtor.html
+++ b/print/templates/reports/letter-debtor/letter-debtor.html
@@ -1,95 +1,78 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{$t('title')}}
-
-
-
- {{$t('clientId')}}
- {{client.id}}
-
-
- {{$t('date')}}
- {{dated}}
-
-
-
-
-
-
-
-
-
-
{{client.socialName}}
-
- {{client.street}}
-
-
- {{client.postcode}}, {{client.city}} ({{client.province}})
-
-
- {{client.country}}
-
-
-
-
-
-
-
-
-
- {{$t('date')}}
- {{$t('concept')}}
- {{$t('invoiced')}}
- {{$t('payed')}}
- {{$t('balance')}}
-
-
-
-
- {{sale.issued | date('%d-%m-%Y')}}
- {{sale.ref}}
- {{sale.debtOut}}
- {{sale.debtIn}}
- {{getBalance(sale)}}
-
-
-
-
-
-
-
- Total
- {{getTotalDebtOut() | currency('EUR', $i18n.locale)}}
-
- {{getTotalDebtIn() | currency('EUR', $i18n.locale)}}
- {{totalBalance | currency('EUR', $i18n.locale)}}
-
-
-
-
+
+
+
+
+
+
+
{{$t('title')}}
+
+
+
+ {{$t('clientId')}}
+ {{client.id}}
+
+
+ {{$t('date')}}
+ {{dated}}
+
+
+
+
+
+
+
+
+
+
{{client.socialName}}
+
{{client.street}}
+
{{client.postcode}}, {{client.city}} ({{client.province}})
+
{{client.country}}
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+
+
+
+
+ {{$t('date')}}
+ {{$t('concept')}}
+ {{$t('invoiced')}}
+ {{$t('payed')}}
+ {{$t('balance')}}
+
+
+
+
+ {{sale.issued | date('%d-%m-%Y')}}
+ {{sale.ref}}
+ {{sale.debtOut}}
+ {{sale.debtIn}}
+ {{getBalance(sale)}}
+
+
+
+
+
+
+
+ Total
+ {{getTotalDebtOut() | currency('EUR', $i18n.locale)}}
+
+ {{getTotalDebtIn() | currency('EUR', $i18n.locale)}}
+ {{totalBalance | currency('EUR', $i18n.locale)}}
+
+
+
+
+
+
+
+
+
diff --git a/print/templates/reports/letter-debtor/letter-debtor.js b/print/templates/reports/letter-debtor/letter-debtor.js
index 80d4cba9b..749fde4ed 100755
--- a/print/templates/reports/letter-debtor/letter-debtor.js
+++ b/print/templates/reports/letter-debtor/letter-debtor.js
@@ -1,5 +1,5 @@
const Component = require(`vn-print/core/component`);
-const reportHeader = new Component('report-header');
+const reportBody = new Component('report-body');
const reportFooter = new Component('report-footer');
module.exports = {
@@ -58,17 +58,17 @@ module.exports = {
},
},
components: {
- 'report-header': reportHeader.build(),
+ 'report-body': reportBody.build(),
'report-footer': reportFooter.build()
},
props: {
id: {
- type: [Number, String],
+ type: Number,
required: true,
description: 'The client id'
},
companyId: {
- type: [Number, String],
+ type: Number,
required: true
}
}
diff --git a/print/templates/reports/receipt/receipt.html b/print/templates/reports/receipt/receipt.html
index 5dc1846f7..e0bab5ecf 100644
--- a/print/templates/reports/receipt/receipt.html
+++ b/print/templates/reports/receipt/receipt.html
@@ -1,45 +1,30 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{$t('title')}}
-
- Recibo de {{client.socialName}} ,
- la cantidad de {{receipt.amountPaid}} € en concepto de 'entrega a cuenta',
- quedando pendiente en la cuenta del cliente
- un saldo de {{receipt.amountUnpaid}} € .
-
-
-
-
{{$t('payed', [
- 'Algemesí',
- receipt.payed.getDate(),
- $t('months')[receipt.payed.getMonth()],
- receipt.payed.getFullYear()])
- }}
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+
+
{{$t('title')}}
+
+ Recibo de {{client.socialName}} , la cantidad de
+ {{receipt.amountPaid}} € en concepto de 'entrega a cuenta', quedando pendiente en
+ la cuenta del cliente un saldo de {{receipt.amountUnpaid}} € .
+
+
+
+
+ {{$t('payed', [ 'Algemesí', receipt.payed.getDate(), $t('months')[receipt.payed.getMonth()],
+ receipt.payed.getFullYear()]) }}
+
+
+
+
+
+
+
+
+
diff --git a/print/templates/reports/receipt/receipt.js b/print/templates/reports/receipt/receipt.js
index 401aa1ef3..9a9ccd452 100755
--- a/print/templates/reports/receipt/receipt.js
+++ b/print/templates/reports/receipt/receipt.js
@@ -1,5 +1,5 @@
const Component = require(`vn-print/core/component`);
-const reportHeader = new Component('report-header');
+const reportBody = new Component('report-body');
const reportFooter = new Component('report-footer');
module.exports = {
@@ -20,12 +20,12 @@ module.exports = {
}
},
components: {
- 'report-header': reportHeader.build(),
+ 'report-body': reportBody.build(),
'report-footer': reportFooter.build()
},
props: {
id: {
- type: [Number, String],
+ type: Number,
required: true,
description: 'Receipt id'
}
diff --git a/print/templates/reports/sepa-core/sepa-core.html b/print/templates/reports/sepa-core/sepa-core.html
index c935bc2a8..f2326e43c 100644
--- a/print/templates/reports/sepa-core/sepa-core.html
+++ b/print/templates/reports/sepa-core/sepa-core.html
@@ -1,201 +1,174 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{$t('instructions.title')}}
-
- 1. {{$t('instructions.accountFields')}}
-
-
- 2. {{$t('instructions.signDocument')}}
-
-
- {{$t('instructions.thanks')}}
-
-
-
-
+
+
+
+
+
{{$t('instructions.title')}}
+
1. {{$t('instructions.accountFields')}}
+
2. {{$t('instructions.signDocument')}}
+
{{$t('instructions.thanks')}}
+
+
+
-
-
-
-
-
-
{{$t('title')}}
-
-
-
- {{$t('supplier.toCompleteBySupplier')}}
-
-
-
-
-
- {{$t('supplier.orderReference')}}
- {{supplier.mandateCode}}
-
-
- {{$t('supplier.identifier')}}
-
- ES89000B97367486
- B97367486-000
-
-
-
- {{$t('supplier.name')}}
- {{supplier.name}}
-
-
- {{$t('supplier.street')}}
- {{supplier.street}}
-
-
- {{$t('supplier.location')}}
- {{supplier.postCode}}, {{supplier.city}} ({{supplier.province}})
-
-
- {{$t('supplier.country')}}
- {{supplier.country}}
-
-
-
+
+
+
+
{{$t('title')}}
+
+
+
{{$t('supplier.toCompleteBySupplier')}}
+
+
+
+
+ {{$t('supplier.orderReference')}}
+ {{supplier.mandateCode}}
+
+
+ {{$t('supplier.identifier')}}
+
+ ES89000B97367486
+ B97367486-000
+
+
+
+ {{$t('supplier.name')}}
+ {{supplier.name}}
+
+
+ {{$t('supplier.street')}}
+ {{supplier.street}}
+
+
+ {{$t('supplier.location')}}
+ {{supplier.postCode}}, {{supplier.city}} ({{supplier.province}})
+
+
+ {{$t('supplier.country')}}
+ {{supplier.country}}
+
+
+
+
+
+
+
{{$t('description')}}
+
+ {{$t('documentCopy')}}
+
+
+
+
+
{{$t('client.toCompleteByClient')}}
+
+
+
+
+
+ {{$t('client.name')}}
+ {{$t('client.accountHolder')}}
+
+ {{client.socialName}}
+
+
+ {{$t('client.fiscalId')}}
+ {{client.fi}}
+
+
+ {{$t('client.street')}}
+ {{client.street}}
+
+
+ {{$t('client.location')}}
+ {{client.postcode}}, {{client.city}} ({{client.province}})
+
+
+ {{$t('client.country')}}
+ {{client.country}}
+
+
+ {{$t('client.swift')}}
+
+
+
-
-
- {{$t('description')}}
-
- {{$t('documentCopy')}}
-
-
-
-
-
- {{$t('client.toCompleteByClient')}}
-
-
-
-
-
-
- {{$t('client.name')}}
- {{$t('client.accountHolder')}}
-
- {{client.socialName}}
-
-
-
- {{$t('client.fiscalId')}}
-
- {{client.fi}}
-
-
- {{$t('client.street')}}
- {{client.street}}
-
-
- {{$t('client.location')}}
- {{client.postcode}}, {{client.city}} ({{client.province}})
-
-
- {{$t('client.country')}}
- {{client.country}}
-
-
- {{$t('client.swift')}}
-
-
-
-
-
-
-
- {{$t('client.accountNumber')}}
-
-
-
-
- {{client.countryCode.substr(0, 1)}}
- {{client.countryCode.substr(1, 1)}}
-
-
-
-
-
- {{client.countryCode.substr(0, 1)}}
- {{client.countryCode.substr(1, 1)}}
-
-
-
-
-
-
-
- {{$t('client.accountNumberFormat', [
- $t(`${client.country}`),
- client.ibanLength,
- client.countryCode
- ])}}
-
-
-
-
-
- {{$t('client.paymentType')}}
-
-
-
-
-
- X
-
-
- {{$t('client.recurrent')}}
- O
-
-
-
-
-
- {{$t('client.unique')}}
-
-
-
-
-
- {{$t('client.signLocation')}}
- {{dated}}, {{client.province}}
-
-
- {{$t('client.sign')}}
-
-
-
-
+
+
+
+ {{$t('client.accountNumber')}}
+
+
+
+
+ {{client.countryCode.substr(0, 1)}}
+ {{client.countryCode.substr(1, 1)}}
+
-
-
- {{$t('mandatoryFields')}}
- {{$t('sendOrder')}}
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+ {{client.countryCode.substr(0, 1)}}
+ {{client.countryCode.substr(1, 1)}}
+
+
+
+
+
+
+
+ {{$t('client.accountNumberFormat', [ $t(`${client.country}`),
+ client.ibanLength, client.countryCode ])}}
+
+
+
+
+
+ {{$t('client.paymentType')}}
+
+
+
+
+
+ X
+
+
+ {{$t('client.recurrent')}}
+ O
+
+
+
+
+
+ {{$t('client.unique')}}
+
+
+
+
+
+ {{$t('client.signLocation')}}
+ {{dated}}, {{client.province}}
+
+
+ {{$t('client.sign')}}
+
+
+
+
+
+
+
+ {{$t('mandatoryFields')}}
+ {{$t('sendOrder')}}
+
+
+
+
+
+
diff --git a/print/templates/reports/sepa-core/sepa-core.js b/print/templates/reports/sepa-core/sepa-core.js
index 73e0beaaa..ee8a64842 100755
--- a/print/templates/reports/sepa-core/sepa-core.js
+++ b/print/templates/reports/sepa-core/sepa-core.js
@@ -1,4 +1,5 @@
const Component = require(`vn-print/core/component`);
+const reportBody = new Component('report-body');
const reportHeader = new Component('report-header');
const reportFooter = new Component('report-footer');
@@ -35,17 +36,18 @@ const rptSepaCore = {
}
},
components: {
+ 'report-body': reportBody.build(),
'report-header': reportHeader.build(),
'report-footer': reportFooter.build()
},
props: {
id: {
- type: [Number, String],
+ type: Number,
required: true,
description: 'The client id'
},
companyId: {
- type: [Number, String],
+ type: Number,
required: true
}
}
diff --git a/print/templates/reports/supplier-campaign-metrics/sql/entries.sql b/print/templates/reports/supplier-campaign-metrics/sql/entries.sql
index aa458dda0..b48e99c23 100644
--- a/print/templates/reports/supplier-campaign-metrics/sql/entries.sql
+++ b/print/templates/reports/supplier-campaign-metrics/sql/entries.sql
@@ -1,6 +1,6 @@
SELECT
e.id,
- e.ref,
+ e.reference,
e.supplierFk,
t.shipped
FROM vn.entry e
diff --git a/print/templates/reports/supplier-campaign-metrics/supplier-campaign-metrics.html b/print/templates/reports/supplier-campaign-metrics/supplier-campaign-metrics.html
index 1303f2266..baff51bfe 100644
--- a/print/templates/reports/supplier-campaign-metrics/supplier-campaign-metrics.html
+++ b/print/templates/reports/supplier-campaign-metrics/supplier-campaign-metrics.html
@@ -1,105 +1,81 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{$t('title')}}
-
-
-
-
- {{$t('Supplier')}}
- {{supplier.id}}
-
-
- {{$t('From')}}
- {{from | date('%d-%m-%Y')}}
-
-
- {{$t('To')}}
- {{to | date('%d-%m-%Y')}}
-
-
-
-
-
-
-
-
-
-
{{supplier.supplierName}}
-
- {{supplier.street}}
-
-
- {{supplier.postcode}}, {{supplier.city}} ({{supplier.province}})
-
-
- {{supplier.country}}
-
-
-
-
-
-
-
- {{$t('entry')}} {{entry.id}}
- {{$t('dated')}} {{entry.shipped | date('%d-%m-%Y')}}
- {{$t('reference')}} {{entry.ref}}
-
-
-
-
- {{$t('itemName')}}
- {{$t('Quantity')}}
- {{$t('price')}}
- {{$t('total')}}
-
-
-
-
- {{buy.itemName}}
- {{buy.quantity}}
- {{buy.price | currency('EUR', $i18n.locale)}}
- {{buy.quantity * buy.price | currency('EUR', $i18n.locale)}}
-
-
-
-
- {{buy.tag5}} {{buy.value5}}
-
-
- {{buy.tag6}} {{buy.value6}}
-
-
- {{buy.tag7}} {{buy.value7}}
-
-
-
-
-
-
-
-
+
+
+
+
+
+
{{$t('title')}}
+
+
+
+
+ {{$t('Supplier')}}
+ {{supplier.id}}
+
+
+ {{$t('From')}}
+ {{from | date('%d-%m-%Y')}}
+
+
+ {{$t('To')}}
+ {{to | date('%d-%m-%Y')}}
+
+
+
+
+
+
+
+
+
+
{{supplier.supplierName}}
+
{{supplier.street}}
+
{{supplier.postcode}}, {{supplier.city}} ({{supplier.province}})
+
{{supplier.country}}
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+
+
+ {{$t('entry')}} {{entry.id}}
+ {{$t('dated')}} {{entry.shipped | date('%d-%m-%Y')}}
+ {{$t('reference')}} {{entry.reference}}
+
+
+
+
+ {{$t('itemName')}}
+ {{$t('Quantity')}}
+ {{$t('price')}}
+ {{$t('total')}}
+
+
+
+
+ {{buy.itemName}}
+ {{buy.quantity}}
+ {{buy.price | currency('EUR', $i18n.locale)}}
+ {{buy.quantity * buy.price | currency('EUR', $i18n.locale)}}
+
+
+
+ {{buy.tag5}} {{buy.value5}}
+ {{buy.tag6}} {{buy.value6}}
+ {{buy.tag7}} {{buy.value7}}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/print/templates/reports/supplier-campaign-metrics/supplier-campaign-metrics.js b/print/templates/reports/supplier-campaign-metrics/supplier-campaign-metrics.js
index 6a58cbd0e..f6fb4bd4e 100755
--- a/print/templates/reports/supplier-campaign-metrics/supplier-campaign-metrics.js
+++ b/print/templates/reports/supplier-campaign-metrics/supplier-campaign-metrics.js
@@ -1,5 +1,5 @@
const Component = require(`vn-print/core/component`);
-const reportHeader = new Component('report-header');
+const reportBody = new Component('report-body');
const reportFooter = new Component('report-footer');
module.exports = {
@@ -44,12 +44,12 @@ module.exports = {
}
},
components: {
- 'report-header': reportHeader.build(),
+ 'report-body': reportBody.build(),
'report-footer': reportFooter.build()
},
props: {
id: {
- type: [Number, String],
+ type: Number,
required: true,
description: 'The supplier id'
},
diff --git a/print/templates/reports/vehicle-event-expired/assets/css/import.js b/print/templates/reports/vehicle-event-expired/assets/css/import.js
index fd8796c2b..37a98dfdd 100644
--- a/print/templates/reports/vehicle-event-expired/assets/css/import.js
+++ b/print/templates/reports/vehicle-event-expired/assets/css/import.js
@@ -1,9 +1,12 @@
-const Stylesheet = require(`${appPath}/core/stylesheet`);
+const Stylesheet = require(`vn-print/core/stylesheet`);
+
+const path = require('path');
+const vnPrintPath = path.resolve('print');
module.exports = new Stylesheet([
- `${appPath}/common/css/spacing.css`,
- `${appPath}/common/css/misc.css`,
- `${appPath}/common/css/layout.css`,
- `${appPath}/common/css/report.css`,
+ `${vnPrintPath}/common/css/spacing.css`,
+ `${vnPrintPath}/common/css/misc.css`,
+ `${vnPrintPath}/common/css/layout.css`,
+ `${vnPrintPath}/common/css/report.css`,
`${__dirname}/style.css`])
.mergeStyles();
diff --git a/print/templates/reports/vehicle-event-expired/vehicle-event-expired.html b/print/templates/reports/vehicle-event-expired/vehicle-event-expired.html
index 2045f2adb..65776851d 100644
--- a/print/templates/reports/vehicle-event-expired/vehicle-event-expired.html
+++ b/print/templates/reports/vehicle-event-expired/vehicle-event-expired.html
@@ -1,39 +1,25 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{$t('title')}}
-
-
-
-
- {{$t('Plate')}}
- {{$t('Concept')}}
- {{$t('expirationDate')}}
-
-
-
-
- {{vehicleEvent.numberPlate}}
- {{vehicleEvent.description}}
- {{vehicleEvent.finished | date('%d-%m-%Y')}}
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+
+
{{$t('title')}}
+
+
+
+
+ {{$t('Plate')}}
+ {{$t('Concept')}}
+ {{$t('expirationDate')}}
+
+
+
+
+ {{vehicleEvent.numberPlate}}
+ {{vehicleEvent.description}}
+ {{vehicleEvent.finished | date('%d-%m-%Y')}}
+
+
+
+
+
+
diff --git a/print/templates/reports/vehicle-event-expired/vehicle-event-expired.js b/print/templates/reports/vehicle-event-expired/vehicle-event-expired.js
index 33e60eab7..ab6cffc00 100755
--- a/print/templates/reports/vehicle-event-expired/vehicle-event-expired.js
+++ b/print/templates/reports/vehicle-event-expired/vehicle-event-expired.js
@@ -1,6 +1,5 @@
-const Component = require(`${appPath}/core/component`);
-const reportHeader = new Component('report-header');
-const reportFooter = new Component('report-footer');
+const Component = require(`vn-print/core/component`);
+const reportBody = new Component('report-body');
module.exports = {
name: 'vehicle-event-expired',
@@ -16,8 +15,7 @@ module.exports = {
},
},
components: {
- 'report-header': reportHeader.build(),
- 'report-footer': reportFooter.build()
+ 'report-body': reportBody.build()
},
props: {
eventIds: {
diff --git a/print/templates/reports/zone/zone.html b/print/templates/reports/zone/zone.html
index c1e8d1ec1..54c55e168 100644
--- a/print/templates/reports/zone/zone.html
+++ b/print/templates/reports/zone/zone.html
@@ -1,16 +1,5 @@
-
-
-
-
-
-
-
- {{zone.agencyName}}
- {{zone.id}}
- {{zone.plateNumber}} {{zone.time | date('%H:%M')}}
-
-
-
-
-
-
\ No newline at end of file
+
+ {{zone.agencyName}}
+ {{zone.id}}
+ {{zone.plateNumber}} {{zone.time | date('%H:%M')}}
+
diff --git a/print/templates/reports/zone/zone.js b/print/templates/reports/zone/zone.js
index bbce9df36..720542cd6 100755
--- a/print/templates/reports/zone/zone.js
+++ b/print/templates/reports/zone/zone.js
@@ -1,3 +1,6 @@
+const Component = require(`vn-print/core/component`);
+const reportBody = new Component('report-body');
+
module.exports = {
name: 'zone',
async serverPrefetch() {
@@ -11,9 +14,12 @@ module.exports = {
return this.findOneFromDef('zone', [id]);
}
},
+ components: {
+ 'report-body': reportBody.build()
+ },
props: {
id: {
- type: [Number, String],
+ type: Number,
required: true,
description: 'The zone id'
}