-
{{bankName}}
-
{{iban}}
+
{{debtor.bankName}}
+
{{debtor.iban}}
{{$t('transferAccount') }}
@@ -34,7 +37,10 @@
-
+
+
diff --git a/print/templates/email/letter-debtor-st/letter-debtor-st.js b/print/templates/email/letter-debtor-st/letter-debtor-st.js
new file mode 100755
index 000000000..3109baedf
--- /dev/null
+++ b/print/templates/email/letter-debtor-st/letter-debtor-st.js
@@ -0,0 +1,41 @@
+const Component = require(`${appPath}/core/component`);
+const emailHeader = new Component('email-header');
+const emailFooter = new Component('email-footer');
+const db = require(`${appPath}/core/database`);
+
+module.exports = {
+ name: 'letter-debtor-st',
+ async serverPrefetch() {
+ this.debtor = await this.fetchDebtor(this.clientId, this.companyId);
+
+ if (!this.debtor)
+ throw new Error('Something went wrong');
+ },
+ methods: {
+ fetchDebtor(clientId, companyId) {
+ return db.findOne(`
+ SELECT
+ c.dueDay,
+ c.iban,
+ sa.iban,
+ be.name AS bankName
+ FROM client c
+ JOIN company AS cny
+ JOIN supplierAccount AS sa ON sa.id = cny.supplierAccountFk
+ JOIN bankEntity be ON be.id = sa.bankEntityFk
+ WHERE c.id = ? AND cny.id = ?`, [clientId, companyId]);
+ }
+ },
+ components: {
+ 'email-header': emailHeader.build(),
+ 'email-footer': emailFooter.build()
+ },
+ props: {
+ clientId: {
+ required: true
+ },
+ companyId: {
+ required: true
+ }
+ }
+};
diff --git a/print/templates/email/letter-debtor-st/locale.js b/print/templates/email/letter-debtor-st/locale.js
deleted file mode 100644
index afee35288..000000000
--- a/print/templates/email/letter-debtor-st/locale.js
+++ /dev/null
@@ -1,27 +0,0 @@
-module.exports = {
- messages: {
- es: {
- subject: 'Aviso inicial por saldo deudor',
- title: 'Aviso inicial',
- sections: {
- introduction: {
- title: 'Estimado cliente',
- description: `Por el presente escrito te comunicamos que, según nuestros
- datos contables, tu cuenta tiene un saldo pendiente de liquidar.`,
- },
- },
- checkExtract: `Te solicitamos compruebes que el extracto adjunto corresponde con los datos de que dispones.
- Nuestro departamento de administración te aclarará gustosamente cualquier duda que puedas tener,
- e igualmente te facilitará cualquier documento que solicites.`,
- checkValidData: `Si al comprobar los datos aportados resultaran correctos,
- te rogamos procedas a regularizar tu situación.`,
- payMethod: `Si no deseas desplazarte personalmente hasta nuestras oficinas,
- puedes realizar el pago mediante transferencia bancaria a la cuenta que figura al pie del comunicado,
- indicando tu número de cliente, o bien puedes realizar el pago online desde nuestra página web.`,
- conclusion: 'De antemano te agradecemos tu amable colaboración.',
- transferAccount: 'Datos para transferencia bancaria',
- },
- },
-};
-
-
diff --git a/print/templates/email/letter-debtor-st/locale/es.yml b/print/templates/email/letter-debtor-st/locale/es.yml
new file mode 100644
index 000000000..167301417
--- /dev/null
+++ b/print/templates/email/letter-debtor-st/locale/es.yml
@@ -0,0 +1,19 @@
+subject: Aviso inicial por saldo deudor
+title: Aviso inicial
+sections:
+ introduction:
+ title: Estimado cliente
+ description: Por el presente escrito te comunicamos que, según nuestros datos
+ contables, tu cuenta tiene un saldo pendiente de liquidar.
+checkExtract: Te solicitamos compruebes que el extracto adjunto corresponde con los
+ datos de que dispones. Nuestro departamento de administración te aclarará gustosamente
+ cualquier duda que puedas tener, e igualmente te facilitará cualquier documento
+ que solicites.
+checkValidData: Si al comprobar los datos aportados resultaran correctos, te rogamos
+ procedas a regularizar tu situación.
+payMethod: Si no deseas desplazarte personalmente hasta nuestras oficinas, puedes
+ realizar el pago mediante transferencia bancaria a la cuenta que figura al pie del
+ comunicado, indicando tu número de cliente, o bien puedes realizar el pago online
+ desde nuestra página web.
+conclusion: De antemano te agradecemos tu amable colaboración.
+transferAccount: Datos para transferencia bancaria
diff --git a/print/templates/email/payment-update/assets/css/index.js b/print/templates/email/payment-update/assets/css/import.js
similarity index 60%
rename from print/templates/email/payment-update/assets/css/index.js
rename to print/templates/email/payment-update/assets/css/import.js
index 321c632dc..e88633a52 100644
--- a/print/templates/email/payment-update/assets/css/index.js
+++ b/print/templates/email/payment-update/assets/css/import.js
@@ -1,6 +1,6 @@
-const CssReader = require(`${appPath}/lib/cssReader`);
+const Stylesheet = require(`${appPath}/core/stylesheet`);
-module.exports = new CssReader([
+module.exports = new Stylesheet([
`${appPath}/common/css/layout.css`,
`${appPath}/common/css/email.css`,
`${appPath}/common/css/misc.css`])
diff --git a/print/templates/email/payment-update/index.js b/print/templates/email/payment-update/index.js
deleted file mode 100755
index 23218ec89..000000000
--- a/print/templates/email/payment-update/index.js
+++ /dev/null
@@ -1,52 +0,0 @@
-const database = require(`${appPath}/lib/database`);
-const emailHeader = require('../email-header');
-const emailFooter = require('../email-footer');
-const UserException = require(`${appPath}/lib/exceptions/userException`);
-
-module.exports = {
- name: 'payment-update',
- async asyncData(ctx, params) {
- const data = {
- isPreview: ctx.method === 'GET',
- };
-
- if (!params.clientFk)
- throw new UserException('No client id specified');
-
- return this.methods.fetchClient(params.clientFk)
- .then(([result]) => {
- if (!result)
- throw new UserException('No client data found');
- return Object.assign(data, result[0]);
- });
- },
- created() {
- if (this.locale)
- this.$i18n.locale = this.locale;
- },
- methods: {
- fetchClient(clientFk) {
- return database.pool.query(`
- SELECT
- u.lang locale,
- c.email recipient,
- c.dueDay,
- c.iban,
- pm.id payMethodFk,
- pm.name payMethodName
- FROM client c
- JOIN payMethod pm ON pm.id = c.payMethodFk
- JOIN account.user u ON u.id = c.id
- WHERE c.id = ?`, [clientFk]);
- },
- },
- computed: {
- accountAddress: function() {
- return this.iban.slice(-4);
- },
- },
- components: {
- 'email-header': emailHeader,
- 'email-footer': emailFooter,
- },
-};
diff --git a/print/templates/email/payment-update/locale.js b/print/templates/email/payment-update/locale.js
deleted file mode 100644
index 891af2062..000000000
--- a/print/templates/email/payment-update/locale.js
+++ /dev/null
@@ -1,49 +0,0 @@
-module.exports = {
- messages: {
- es: {
- subject: 'Cambios en las condiciones de pago',
- title: 'Cambios en las condiciones',
- sections: {
- introduction: {
- title: 'Estimado cliente',
- description: `Te informamos que han cambiado las condiciones de pago de tu cuenta.
-
A continuación te indicamos las nuevas condiciones`,
- },
- pay: {
- method: 'Método de pago',
- day: 'Día de pago',
- dueDay: '{0} de cada mes',
- cardImplicates: `Tu modo de pago actual implica que deberás abonar el
- importe de los pedidos realizados en el mismo día para que se puedan enviar.`,
- accountImplicates: `Tu modo de pago actual implica que se te pasará un cargo a la
- cuenta terminada en
"{0}" por el importe pendiente, al vencimiento establecido en las condiciones.`,
- },
- },
- notifyAnError: `En el caso de detectar algún error en los datos indicados
- o para cualquier aclaración, debes dirigirte a tu comercial.`,
- },
- fr: {
- subject: 'Changement des C.G.V',
- title: 'Changement des C.G.V',
- sections: {
- introduction: {
- title: 'Chèr client',
- description: `Nous vous informons que les conditions de paiement ont changé.
-
Voici les nouvelles conditions`,
- },
- pay: {
- method: 'Méthode de paiement',
- day: 'Date paiement',
- dueDay: '{0} de chaque mois',
- cardImplicates: `Avec votre mode de règlement vous devrez
- payer le montant des commandes avant son départ.`,
- accountImplicates: `Avec ce mode de règlement nous vous passerons un prélèvement automatique dans votre compte bancaire
- se termine dans
"{0}" our le montant dû, au date à terme établi en nos conditions.`,
- },
- },
- notifyAnError: `Pour tout renseignement contactez votre commercial.`,
- },
- },
-};
-
-
diff --git a/print/templates/email/payment-update/locale/es.yml b/print/templates/email/payment-update/locale/es.yml
new file mode 100644
index 000000000..464b52591
--- /dev/null
+++ b/print/templates/email/payment-update/locale/es.yml
@@ -0,0 +1,18 @@
+subject: Cambios en las condiciones de pago
+title: Cambios en las condiciones
+sections:
+ introduction:
+ title: Estimado cliente
+ description: Te informamos que han cambiado las condiciones de pago de tu cuenta.
+
A continuación te indicamos las nuevas condiciones
+ pay:
+ method: Método de pago
+ day: Día de pago
+ dueDay: "{0} de cada mes"
+ cardImplicates: Tu modo de pago actual implica que deberás abonar el importe de
+ los pedidos realizados en el mismo día para que se puedan enviar.
+ accountImplicates: Tu modo de pago actual implica que se te pasará un cargo a
+ la cuenta terminada en
'{0}' por el importe pendiente, al vencimiento
+ establecido en las condiciones.
+notifyAnError: En el caso de detectar algún error en los datos indicados o para cualquier
+ aclaración, debes dirigirte a tu comercial.
diff --git a/print/templates/email/payment-update/locale/fr.yml b/print/templates/email/payment-update/locale/fr.yml
new file mode 100644
index 000000000..20fa7a5f4
--- /dev/null
+++ b/print/templates/email/payment-update/locale/fr.yml
@@ -0,0 +1,17 @@
+subject: Changement des C.G.V
+title: Changement des C.G.V
+sections:
+ introduction:
+ title: Chèr client
+ description: Nous vous informons que les conditions de paiement ont changé.
Voici
+ les nouvelles conditions
+ pay:
+ method: Méthode de paiement
+ day: Date paiement
+ dueDay: "{0} de chaque mois"
+ cardImplicates: Avec votre mode de règlement vous devrez payer le montant des
+ commandes avant son départ.
+ accountImplicates: Avec ce mode de règlement nous vous passerons un prélèvement
+ automatique dans votre compte bancaire se termine dans
'{0}'
+ our le montant dû, au date à terme établi en nos conditions.
+notifyAnError: Pour tout renseignement contactez votre commercial.
diff --git a/print/templates/email/payment-update/index.html b/print/templates/email/payment-update/payment-update.html
similarity index 60%
rename from print/templates/email/payment-update/index.html
rename to print/templates/email/payment-update/payment-update.html
index fdc893662..54af66e8d 100644
--- a/print/templates/email/payment-update/index.html
+++ b/print/templates/email/payment-update/payment-update.html
@@ -1,12 +1,15 @@
-
+
{{ $t('subject') }}
-
+
+
@@ -21,23 +24,26 @@
{{ $t('sections.pay.method') }}:
- {{ payMethodName }}
+ {{client.payMethodName}}
-
+
{{ $t('sections.pay.day') }}:
- {{ $t('sections.pay.dueDay', [dueDay]) }}
+ {{ $t('sections.pay.dueDay', [client.dueDay]) }}
-
-
+
+
{{ $t('sections.pay.cardImplicates') }}
{{ $t('notifyAnError') }}
-
+
+
diff --git a/print/templates/email/payment-update/payment-update.js b/print/templates/email/payment-update/payment-update.js
new file mode 100755
index 000000000..944953151
--- /dev/null
+++ b/print/templates/email/payment-update/payment-update.js
@@ -0,0 +1,43 @@
+const Component = require(`${appPath}/core/component`);
+const emailHeader = new Component('email-header');
+const emailFooter = new Component('email-footer');
+const db = require(`${appPath}/core/database`);
+
+module.exports = {
+ name: 'payment-update',
+ async serverPrefetch() {
+ this.client = await this.fetchClient(this.clientId);
+
+ if (!this.client)
+ throw new Error('Something went wrong');
+ },
+ computed: {
+ accountAddress: function() {
+ return this.iban.slice(-4);
+ },
+ },
+ methods: {
+ // Redmine #1854 Replace payMethodId by code
+ fetchClient(id) {
+ return db.findOne(
+ `SELECT
+ c.dueDay,
+ c.iban,
+ pm.id payMethodId,
+ pm.name payMethodName
+ FROM client c
+ JOIN payMethod pm ON pm.id = c.payMethodFk
+ JOIN account.user u ON u.id = c.id
+ WHERE c.id = :clientId`, {clientId: id});
+ }
+ },
+ components: {
+ 'email-header': emailHeader.build(),
+ 'email-footer': emailFooter.build()
+ },
+ props: {
+ clientId: {
+ required: true
+ }
+ }
+};
diff --git a/print/templates/email/printer-setup/assets/css/email.css b/print/templates/email/printer-setup/assets/css/email.css
deleted file mode 100644
index a2b129057..000000000
--- a/print/templates/email/printer-setup/assets/css/email.css
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- * Email only stylesheet
- *
-*/
-body {
- background-color: #EEE
-}
-
-.container {
- max-width: 600px;
- min-width: 320px;
- margin: 0 auto;
- color: #555
-}
-
-.main {
- background-color: #FFF;
- padding: 20px
-}
-
-.main a {
- color: #8dba25
-}
-
-.main h1 {
- color: #999
-}
-
-.main h3 {
- font-size: 16px
-}
-
-.title {
- background-color: #95d831;
- text-transform: uppercase;
- text-align: center;
- padding: 35px 0
-}
-
-.title h1 {
- font-size: 32px;
- color: #333;
- margin: 0
-}
diff --git a/print/templates/email/printer-setup/assets/css/import.js b/print/templates/email/printer-setup/assets/css/import.js
new file mode 100644
index 000000000..e88633a52
--- /dev/null
+++ b/print/templates/email/printer-setup/assets/css/import.js
@@ -0,0 +1,7 @@
+const Stylesheet = require(`${appPath}/core/stylesheet`);
+
+module.exports = new Stylesheet([
+ `${appPath}/common/css/layout.css`,
+ `${appPath}/common/css/email.css`,
+ `${appPath}/common/css/misc.css`])
+ .mergeStyles();
diff --git a/print/templates/email/printer-setup/assets/css/layout.css b/print/templates/email/printer-setup/assets/css/layout.css
deleted file mode 100644
index 26b9bf8e0..000000000
--- a/print/templates/email/printer-setup/assets/css/layout.css
+++ /dev/null
@@ -1,233 +0,0 @@
-/**
- * CSS layout elements
- *
-*/
-.container {
- font-family: "Roboto", "Helvetica", "Arial", sans-serif;
- font-size: 16px
-}
-
-.columns {
- overflow: hidden
-}
-
-.columns .size100 {
- width: 100%;
- float: left
-}
-
-.columns .size75 {
- width: 75%;
- float: left
-}
-
-.columns .size50 {
- width: 50%;
- float: left
-}
-
-.columns .size33 {
- width: 33.33%;
- float: left
-}
-
-.columns .size25 {
- width: 25%;
- float: left
-}
-
-.clearfix {
- overflow: hidden;
- display: block;
- clear: both
-}
-
-.panel {
- position: relative;
- margin-bottom: 15px;
- padding-top: 10px;
- break-inside: avoid;
- break-before: always;
- break-after: always;
-}
-
-.panel .header {
- background-color: #FFF;
- padding: 2.5px 10px;
- position: absolute;
- font-weight: bold;
- top: 0px;
- left: 17.5px;
-}
-
-.panel .body {
- border: 1px solid #CCC;
- overflow: hidden;
- padding: 20px
-}
-
-.panel .body h3 {
- margin-top: 0
-}
-
-.panel.dark .header {
- border: 1px solid #808080;
- background-color: #FFF;
-}
-
-.panel.dark .body {
- border: 1px solid #808080;
- background-color: #c0c0c0
-}
-
-.field {
- border-bottom: 1px solid #CCC;
- border-left: 1px solid #CCC;
- border-top: 1px solid #CCC;
- float: left
-}
-
-.field span {
- border-right: 1px solid #CCC;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- display: table-cell;
- vertical-align: middle;
- text-align: center;
- font-weight: bold
-}
-
-.field.square span {
- height: 35.4px;
- width: 35.4px
-}
-
-.emptyField {
- border-bottom: 1px dotted grey;
- min-height: 1em;
- display: block
-}
-
-.field.rectangle span {
- height: 2em;
- width: 8em
-}
-
-.pull-left {
- float: left !important
-}
-
-.pull-right {
- float: right !important
-}
-
-.vertical-text {
- -moz-transform: rotate(90deg);
- -webkit-transform: rotate(90deg);
- transform: rotate(90deg);
- position: absolute;
- text-align: center;
- font-size: .65em;
- right: -108px;
- width: 200px;
- top: 50%
-}
-
-table {
- border-collapse: collapse;
- border-spacing: 0;
-}
-
-.row-oriented, .column-oriented {
- text-align: left;
- width: 100%
-}
-
-.column-oriented {
- margin-bottom: 15px
-}
-
-.column-oriented td,
-.column-oriented th {
- padding: 5px 10px
-}
-
-.column-oriented thead {
- background-color: #e5e5e5
-}
-
-.column-oriented thead tr {
- border-bottom: 1px solid #808080;
- border-top: 1px solid #808080;
- background-color: #e5e5e5
-}
-
-.column-oriented tfoot {
- border-top: 2px solid #808080;
-}
-
-.column-oriented tfoot tr:first-child td {
- padding-top: 20px !important;
-}
-
-.column-oriented .description {
- border-bottom: 1px solid #DDD;
- font-size: 0.8em
-}
-
-.panel .row-oriented td, .panel .row-oriented th {
- padding: 10px 0
-}
-
-.row-oriented > tbody > tr > td {
- width: 30%
-}
-
-.row-oriented > tbody > tr > th {
- padding-left: 30px;
- width: 70%
-}
-
-.row-oriented .description {
- padding: 0 !important;
- font-size: 0.6em;
- color: #888
-}
-
-.line {
- border-bottom: 1px solid #DDD;
- border-right: 1px solid #DDD;
- border-left: 1px solid #DDD;
- position: relative;
- margin-left: -1px;
- margin-right: 1px;
- margin-top: 10px;
- color: #999;
- padding: 5px 0
-}
-
-.line .vertical-aligned {
- position: absolute;
- text-align: center;
- width: 100%;
-
-}
-
-.line span {
- background-color: #FFF;
- padding: 5px
-}
-
-.signature {
- width: 100%
-}
-
-.signature section {
- height: 150px
-}
-
-.signature p {
- margin-right: 50%;
- margin-top: 140px
-}
diff --git a/print/templates/email/printer-setup/assets/css/misc.css b/print/templates/email/printer-setup/assets/css/misc.css
deleted file mode 100644
index 093d5a974..000000000
--- a/print/templates/email/printer-setup/assets/css/misc.css
+++ /dev/null
@@ -1,47 +0,0 @@
-/**
- * CSS misc classes
- *
-*/
-.uppercase {
- text-transform: uppercase
-}
-
-.justified {
- text-align: justify
-}
-
-.centered {
- text-align: center
-}
-
-.align-right {
- text-align: right
-}
-
-.align-left {
- text-align: left
-}
-
-.number {
- text-align: right
-}
-
-.font.gray {
- color: #555
-}
-
-.font.light-gray {
- color: #888
-}
-
-.font.small {
- font-size: 0.65em
-}
-
-.font.bold {
- font-weight: bold
-}
-
-.non-page-break {
- page-break-inside: avoid;
-}
\ No newline at end of file
diff --git a/print/templates/email/printer-setup/options.json b/print/templates/email/printer-setup/options.json
deleted file mode 100644
index e69de29bb..000000000
diff --git a/print/templates/email/printer-setup/printer-setup.html b/print/templates/email/printer-setup/printer-setup.html
index 44f5e344a..642a6ab27 100644
--- a/print/templates/email/printer-setup/printer-setup.html
+++ b/print/templates/email/printer-setup/printer-setup.html
@@ -1,12 +1,15 @@
-
+
{{ $t('subject') }}
diff --git a/print/templates/email/printer-setup/printer-setup.js b/print/templates/email/printer-setup/printer-setup.js
index 6fa412301..78def7aea 100755
--- a/print/templates/email/printer-setup/printer-setup.js
+++ b/print/templates/email/printer-setup/printer-setup.js
@@ -1,5 +1,5 @@
-const db = require(`${appPath}/lib/database`);
-const Component = require(`${appPath}/lib/component`);
+const db = require(`${appPath}/core/database`);
+const Component = require(`${appPath}/core/component`);
const emailHeader = new Component('email-header');
const emailFooter = new Component('email-footer');
@@ -8,10 +8,6 @@ module.exports = {
async serverPrefetch() {
this.client = await this.fetchClient(this.clientId);
},
- created() {
- /* if (this.locale)
- this.$i18n.locale = this.locale; */
- },
methods: {
fetchClient(clientId) {
return db.findOne(`
@@ -34,5 +30,9 @@ module.exports = {
'email-header': emailHeader.build(),
'email-footer': emailFooter.build()
},
- props: ['clientId', 'isPreview']
+ props: {
+ clientId: {
+ required: true
+ }
+ }
};
diff --git a/print/templates/email/sepa-core/assets/css/import.js b/print/templates/email/sepa-core/assets/css/import.js
new file mode 100644
index 000000000..e88633a52
--- /dev/null
+++ b/print/templates/email/sepa-core/assets/css/import.js
@@ -0,0 +1,7 @@
+const Stylesheet = require(`${appPath}/core/stylesheet`);
+
+module.exports = new Stylesheet([
+ `${appPath}/common/css/layout.css`,
+ `${appPath}/common/css/email.css`,
+ `${appPath}/common/css/misc.css`])
+ .mergeStyles();
diff --git a/print/templates/email/sepa-core/assets/css/index.js b/print/templates/email/sepa-core/assets/css/index.js
deleted file mode 100644
index 321c632dc..000000000
--- a/print/templates/email/sepa-core/assets/css/index.js
+++ /dev/null
@@ -1,7 +0,0 @@
-const CssReader = require(`${appPath}/lib/cssReader`);
-
-module.exports = new CssReader([
- `${appPath}/common/css/layout.css`,
- `${appPath}/common/css/email.css`,
- `${appPath}/common/css/misc.css`])
- .mergeStyles();
diff --git a/print/templates/email/sepa-core/attachments.json b/print/templates/email/sepa-core/attachments.json
new file mode 100644
index 000000000..808fb3a85
--- /dev/null
+++ b/print/templates/email/sepa-core/attachments.json
@@ -0,0 +1,3 @@
+[{
+ "filename": "sepa-core.pdf"
+}]
\ No newline at end of file
diff --git a/print/templates/email/sepa-core/index.js b/print/templates/email/sepa-core/index.js
deleted file mode 100755
index 00fe18c3f..000000000
--- a/print/templates/email/sepa-core/index.js
+++ /dev/null
@@ -1,49 +0,0 @@
-const database = require(`${appPath}/lib/database`);
-const reportEngine = require(`${appPath}/lib/reportEngine.js`);
-const UserException = require(`${appPath}/lib/exceptions/userException`);
-
-module.exports = {
- name: 'sepa-core',
- async asyncData(ctx, params) {
- const promises = [];
- const data = {
- isPreview: ctx.method === 'GET',
- };
-
- if (!params.clientFk)
- throw new UserException('No client id specified');
-
- promises.push(reportEngine.toPdf('rpt-sepa-core', ctx));
- promises.push(this.methods.fetchClient(params.clientFk));
-
- return Promise.all(promises).then(result => {
- const stream = result[0];
- const [[client]] = result[1];
-
- Object.assign(data, client);
- Object.assign(data, {attachments: [{filename: 'rpt-sepa-core.pdf', content: stream}]});
-
- return data;
- });
- },
- created() {
- if (this.locale)
- this.$i18n.locale = this.locale;
- },
-
- methods: {
- fetchClient(clientFk) {
- return database.pool.query(`
- SELECT
- u.lang locale,
- c.email recipient
- FROM client c
- JOIN account.user u ON u.id = c.id
- WHERE c.id = ?`, [clientFk]);
- },
- },
- components: {
- 'email-header': require('../email-header'),
- 'email-footer': require('../email-footer'),
- },
-};
diff --git a/print/templates/email/sepa-core/locale.js b/print/templates/email/sepa-core/locale.js
deleted file mode 100644
index 1c5f926a1..000000000
--- a/print/templates/email/sepa-core/locale.js
+++ /dev/null
@@ -1,24 +0,0 @@
-module.exports = {
- messages: {
- es: {
- subject: 'Solicitud de domiciliación bancaria',
- title: 'Domiciliación SEPA CORE',
- description: {
- dear: 'Estimado cliente',
- instructions: `Para poder tramitar tu solicitud de cambio de tu forma de pago a giro bancario,
- te adjuntamos los documentos correspondientes a la ley de pago, que tienes que cumplimentar y enviarnos.`,
- conclusion: 'Gracias por tu atención.'
- },
- },
- pt: {
- subject: 'Autorização de débito directo SEPA CORE',
- title: 'Débito directo SEPA CORE',
- description: {
- dear: 'Prezado Cliente',
- instructions: `Para poder tramitar vossa solicitação de forma de pagamento a Débito Automático, anexamos os
- documentos correspondentes à Lei de Pagamentos, que deves preencher e reenviar-nos.`,
- conclusion: 'Obrigado pela atenção.'
- },
- }
- },
-};
diff --git a/print/templates/email/sepa-core/locale/es.yml b/print/templates/email/sepa-core/locale/es.yml
new file mode 100644
index 000000000..33315ee2f
--- /dev/null
+++ b/print/templates/email/sepa-core/locale/es.yml
@@ -0,0 +1,8 @@
+subject: Solicitud de domiciliación bancaria
+title: Domiciliación SEPA CORE
+description:
+ dear: Estimado cliente
+ instructions: Para poder tramitar tu solicitud de cambio de tu forma de pago a giro
+ bancario, te adjuntamos los documentos correspondientes a la ley de pago, que
+ tienes que cumplimentar y enviarnos.
+ conclusion: Gracias por tu atención.
diff --git a/print/templates/email/sepa-core/locale/pt.yml b/print/templates/email/sepa-core/locale/pt.yml
new file mode 100644
index 000000000..9999dbc6a
--- /dev/null
+++ b/print/templates/email/sepa-core/locale/pt.yml
@@ -0,0 +1,8 @@
+subject: Autorização de débito directo SEPA CORE
+title: Débito directo SEPA CORE
+description:
+ dear: Prezado Cliente
+ instructions: Para poder tramitar vossa solicitação de forma de pagamento a Débito
+ Automático, anexamos os documentos correspondentes à Lei de Pagamentos, que deves
+ preencher e reenviar-nos.
+ conclusion: Obrigado pela atenção.
diff --git a/print/templates/email/sepa-core/index.html b/print/templates/email/sepa-core/sepa-core.html
similarity index 69%
rename from print/templates/email/sepa-core/index.html
rename to print/templates/email/sepa-core/sepa-core.html
index c41c18593..74fafbeb8 100644
--- a/print/templates/email/sepa-core/index.html
+++ b/print/templates/email/sepa-core/sepa-core.html
@@ -1,12 +1,15 @@
-
+
{{ $t('subject') }}
-
+
+
@@ -20,7 +23,10 @@
{{$t('description.conclusion')}}
-
+
+
diff --git a/print/templates/email/sepa-core/sepa-core.js b/print/templates/email/sepa-core/sepa-core.js
new file mode 100755
index 000000000..b1f38accd
--- /dev/null
+++ b/print/templates/email/sepa-core/sepa-core.js
@@ -0,0 +1,11 @@
+const Component = require(`${appPath}/core/component`);
+const emailHeader = new Component('email-header');
+const emailFooter = new Component('email-footer');
+
+module.exports = {
+ name: 'sepa-core',
+ components: {
+ 'email-header': emailHeader.build(),
+ 'email-footer': emailFooter.build()
+ }
+};
diff --git a/print/templates/reports/rpt-route/assets/css/index.js b/print/templates/reports/route/assets/css/import.js
similarity index 64%
rename from print/templates/reports/rpt-route/assets/css/index.js
rename to print/templates/reports/route/assets/css/import.js
index 515dea750..a2a9334cb 100644
--- a/print/templates/reports/rpt-route/assets/css/index.js
+++ b/print/templates/reports/route/assets/css/import.js
@@ -1,6 +1,6 @@
-const CssReader = require(`${appPath}/lib/cssReader`);
+const Stylesheet = require(`${appPath}/core/stylesheet`);
-module.exports = new CssReader([
+module.exports = new Stylesheet([
`${appPath}/common/css/layout.css`,
`${appPath}/common/css/report.css`,
`${appPath}/common/css/misc.css`,
diff --git a/print/templates/reports/rpt-route/assets/css/style.css b/print/templates/reports/route/assets/css/style.css
similarity index 100%
rename from print/templates/reports/rpt-route/assets/css/style.css
rename to print/templates/reports/route/assets/css/style.css
diff --git a/print/templates/reports/route/locale/es.yml b/print/templates/reports/route/locale/es.yml
new file mode 100644
index 000000000..25c830e5c
--- /dev/null
+++ b/print/templates/reports/route/locale/es.yml
@@ -0,0 +1,24 @@
+title: Hoja de ruta
+information: Información
+date: Fecha
+time: Hora
+volume: Cubicaje
+driver: Conductor
+vehicle: Vehículo
+agency: Agencia
+order: Orden
+client: Cliente
+address: Consignatario
+packages: Bultos
+street: Dirección
+postcode: Código Postal
+city: Ciudad
+mobile: Móvil
+phone: Teléfono
+warehouse: Almacén
+salesPerson: Comercial
+import: Importe
+stowaway: Encajado dentro del ticket
+route: Ruta
+routeId: Ruta {0}
+ticket: Tiquet
\ No newline at end of file
diff --git a/print/templates/reports/rpt-route/index.html b/print/templates/reports/route/route.html
similarity index 86%
rename from print/templates/reports/rpt-route/index.html
rename to print/templates/reports/route/route.html
index e3b814c50..a0b7093d1 100644
--- a/print/templates/reports/rpt-route/index.html
+++ b/print/templates/reports/route/route.html
@@ -1,40 +1,43 @@
-
+
-
+
+
- {{$t('Title')}}
+ {{$t('title')}}
-
+
- {{$t('Route')}} |
+ {{$t('route')}} |
{{route.id}} |
- {{$t('Driver')}} |
+ {{$t('driver')}} |
{{route.userNickName}} |
- {{$t('Date')}} |
- {{date(route.created)}} |
- {{$t('Vehicle')}} |
+ {{$t('date')}} |
+ {{route.created | date('%d-%m-%Y')}} |
+ {{$t('vehicle')}} |
{{route.vehicleTradeMark}} {{route.vehicleModel}} |
- {{$t('Time')}} |
- {{time(route.time)}} |
+ {{$t('time')}} |
+ {{route.time | date('%H:%M')}} |
|
{{route.plateNumber}} |
- {{$t('Volume')}} |
+ {{$t('volume')}} |
{{route.m3}} |
- {{$t('Agency')}} |
+ {{$t('agency')}} |
{{route.agencyName}} |
@@ -81,11 +84,11 @@
- {{$t('Order')}} |
- {{$t('Ticket')}} |
- {{$t('Client')}} |
- {{$t('Address')}} |
- {{$t('Packages')}} |
+ {{$t('order')}} |
+ {{$t('ticket')}} |
+ {{$t('client')}} |
+ {{$t('address')}} |
+ {{$t('packages')}} |
@@ -108,31 +111,31 @@
- {{$t('Street')}} |
+ {{$t('street')}} |
{{ticket.street}} |
- {{$t('Postcode')}} |
+ {{$t('postcode')}} |
{{ticket.postalCode}} |
- {{$t('City')}} |
+ {{$t('city')}} |
{{ticket.city}} |
- {{$t('Agency')}} |
+ {{$t('agency')}} |
{{ticket.ticketAgency}} |
- {{$t('Mobile')}} |
+ {{$t('mobile')}} |
{{ticket.mobile}} |
- {{$t('Phone')}} |
+ {{$t('phone')}} |
{{ticket.phone}} |
- {{$t('Warehouse')}} |
+ {{$t('warehouse')}} |
{{ticket.warehouseName}} |
{{$t('salesPerson')}} |
{{ticket.salesPersonName}} |
- {{$t('Import')}} |
+ {{$t('import')}} |
{{ticket.import}} |
@@ -147,8 +150,9 @@
diff --git a/print/templates/reports/rpt-route/index.js b/print/templates/reports/route/route.js
similarity index 62%
rename from print/templates/reports/rpt-route/index.js
rename to print/templates/reports/route/route.js
index 989a27254..858fd8407 100755
--- a/print/templates/reports/rpt-route/index.js
+++ b/print/templates/reports/route/route.js
@@ -1,49 +1,47 @@
-const strftime = require('strftime');
-const database = require(`${appPath}/lib/database`);
-const UserException = require(`${appPath}/lib/exceptions/userException`);
+const Component = require(`${appPath}/core/component`);
+const reportHeader = new Component('report-header');
+const reportFooter = new Component('report-footer');
+const db = require(`${appPath}/core/database`);
module.exports = {
- name: 'rpt-route',
- async asyncData(ctx, params) {
- Object.assign(this, this.methods);
+ name: 'route',
+ async serverPrefetch() {
+ this.route = await this.fetchRoute(this.routeId);
+ this.tickets = await this.fetchTickets(this.routeId);
- const [[route]] = await this.fetchRoute(params.routeFk);
- const [tickets] = await this.fetchTickets(params.routeFk);
+ if (!this.route)
+ throw new Error('Something went wrong');
+ },
+ computed: {
+ dated: function() {
+ const filters = this.$options.filters;
- if (!route)
- throw new UserException('No route data found');
-
- if (!tickets)
- throw new UserException('No ticket data found');
-
- return {route, tickets};
+ return filters.date(new Date(), '%d-%m-%Y');
+ }
},
methods: {
- fetchRoute(routeFk) {
- return database.pool.query(
+ fetchRoute(id) {
+ return db.findOne(
`SELECT
r.id,
r.m3,
r.created,
r.time,
u.nickName userNickName,
- u.lang AS locale,
v.tradeMark vehicleTradeMark,
v.model vehicleModel,
v.numberPlate plateNumber,
am.name agencyName
FROM route r
- LEFT JOIN ticket t ON t.routeFk = r.id
- LEFT JOIN sale s ON s.ticketFk = t.id
- LEFT JOIN cache.last_buy lb ON lb.item_id = s.itemFk
LEFT JOIN vehicle v ON v.id = r.vehicleFk
LEFT JOIN worker w ON w.id = r.workerFk
LEFT JOIN account.user u ON u.id = w.userFk
LEFT JOIN agencyMode am ON am.id = r.agencyModeFk
- WHERE r.id = ?`, [routeFk]);
+ WHERE r.id = :routeId`, {routeId: id});
},
- fetchTickets(routeFk) {
- return database.pool.query(
+ // Redmine #1855 Replace function Averiguar_ComercialCliente_Id()
+ fetchTickets(routeId) {
+ return db.find(
`SELECT
t.nickname addressName,
t.packages,
@@ -76,19 +74,17 @@ module.exports = {
LEFT JOIN agencyMode am ON am.id = t.agencyModeFk
LEFT JOIN stowaway s ON s.id = t.id
WHERE r.id = ?
- ORDER BY t.priority, t.id`, [routeFk]);
- },
- date(date) {
- if (date)
- return strftime('%d-%m-%Y', date);
- },
- time: time => {
- if (time)
- return strftime('%H:%M', time);
- },
+ ORDER BY t.priority, t.id`, [routeId]);
+ }
},
components: {
- 'report-header': require('../report-header'),
- 'report-footer': require('../report-footer'),
+ 'report-header': reportHeader.build(),
+ 'report-footer': reportFooter.build()
},
+ props: {
+ routeId: {
+ type: String,
+ required: true
+ }
+ }
};
diff --git a/print/templates/reports/rpt-route/locale.js b/print/templates/reports/rpt-route/locale.js
deleted file mode 100644
index ef835b20f..000000000
--- a/print/templates/reports/rpt-route/locale.js
+++ /dev/null
@@ -1,29 +0,0 @@
-module.exports = {
- messages: {
- es: {
- Title: 'Hoja de ruta',
- Information: 'Información',
- Route: 'Ruta',
- Date: 'Fecha',
- Time: 'Hora',
- Volume: 'Cubicaje',
- Driver: 'Conductor',
- Vehicle: 'Vehículo',
- Agency: 'Agencia',
- Order: 'Orden',
- Client: 'Cliente',
- Address: 'Consignatario',
- Packages: 'Bultos',
- Street: 'Dirección',
- Postcode: 'Código Postal',
- City: 'Ciudad',
- Mobile: 'Móvil',
- Phone: 'Teléfono',
- Warehouse: 'Almacén',
- salesPerson: 'Comercial',
- Import: 'Importe',
- stowaway: 'Encajado dentro del ticket',
- route: 'Ruta {0}'
- }
- },
-};
diff --git a/print/templates/reports/rpt-zone/assets/css/index.js b/print/templates/reports/rpt-zone/assets/css/index.js
deleted file mode 100644
index 06417fcee..000000000
--- a/print/templates/reports/rpt-zone/assets/css/index.js
+++ /dev/null
@@ -1,7 +0,0 @@
-const CssReader = require(`${appPath}/lib/cssReader`);
-
-module.exports = new CssReader([
- `${appPath}/common/css/layout.css`,
- `${appPath}/common/css/report.css`,
- `${__dirname}/style.css`])
- .mergeStyles();
diff --git a/print/templates/reports/rpt-zone/index.js b/print/templates/reports/rpt-zone/index.js
deleted file mode 100755
index c6b0a245c..000000000
--- a/print/templates/reports/rpt-zone/index.js
+++ /dev/null
@@ -1,36 +0,0 @@
-const strftime = require('strftime');
-const database = require(`${appPath}/lib/database`);
-const UserException = require(`${appPath}/lib/exceptions/userException`);
-
-module.exports = {
- name: 'rpt-zone',
- async asyncData(ctx, params) {
- if (!params.routeFk)
- throw new UserException('No route id specified');
-
- let [[zone]] = await this.methods.fetchRoute(params.routeFk);
-
- if (!zone)
- throw new UserException('Route not ready');
-
- return {zone};
- },
- methods: {
- fetchRoute(routeFk) {
- return database.pool.query(
- `SELECT
- r.id,
- r.time,
- am.name agencyName,
- v.numberPlate plateNumber
- FROM route r
- JOIN agencyMode am ON am.id = r.agencyModeFk
- JOIN vehicle v ON v.id = r.vehicleFk
- WHERE r.id = ?`, [routeFk]);
- },
- zoneTime: zoneTime => {
- if (zoneTime)
- return strftime('%H:%M', zoneTime);
- },
- },
-};
diff --git a/print/templates/reports/rpt-zone/locale.js b/print/templates/reports/rpt-zone/locale.js
deleted file mode 100644
index e69de29bb..000000000
diff --git a/print/templates/reports/sample-report/assets/css/style.css b/print/templates/reports/sample-report/assets/css/style.css
deleted file mode 100644
index e621f3e23..000000000
--- a/print/templates/reports/sample-report/assets/css/style.css
+++ /dev/null
@@ -1,3 +0,0 @@
-table.column-oriented {
- margin-top: 50px !important
-}
\ No newline at end of file
diff --git a/print/templates/reports/sample-report/index.html b/print/templates/reports/sample-report/index.html
deleted file mode 100644
index 9a60114fd..000000000
--- a/print/templates/reports/sample-report/index.html
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
-
-
-
-
-
-
- {{$t('title')}}
- {{$t('date')}} {{dated()}}
-
-
-
- Id |
- {{$t('concept')}} |
- {{$t('quantity')}} |
-
-
-
-
- {{sale.id}} |
- {{sale.concept}} |
- {{sale.quantity}} |
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/print/templates/reports/sample-report/index.js b/print/templates/reports/sample-report/index.js
deleted file mode 100755
index b6894060a..000000000
--- a/print/templates/reports/sample-report/index.js
+++ /dev/null
@@ -1,32 +0,0 @@
-const strftime = require('strftime');
-
-module.exports = {
- name: 'sample-report',
- created() {
- if (this.locale)
- this.$i18n.locale = this.locale;
- },
- data() {
- return {
- client: {
- id: 10252,
- name: 'Batman',
- },
- sales: [
- {id: 1, concept: 'My item 1', quantity: 25},
- {id: 2, concept: 'My item 2', quantity: 50},
- {id: 3, concept: 'My item 3', quantity: 150}
- ],
- locale: 'es'
- };
- },
- methods: {
- dated: () => {
- return strftime('%d-%m-%Y', new Date());
- },
- },
- components: {
- 'report-header': require('../report-header'),
- 'report-footer': require('../report-footer'),
- },
-};
diff --git a/print/templates/reports/sample-report/locale.js b/print/templates/reports/sample-report/locale.js
deleted file mode 100644
index d231e10ff..000000000
--- a/print/templates/reports/sample-report/locale.js
+++ /dev/null
@@ -1,11 +0,0 @@
-module.exports = {
- messages: {
- es: {
- title: 'Sample report',
- date: 'Fecha',
- quantity: 'Cantidad',
- concept: 'Concepto',
- client: 'Cliente {0}',
- },
- },
-};
diff --git a/print/templates/reports/sepa-core/sepa-core.html b/print/templates/reports/sepa-core/sepa-core.html
index e9982a19f..0f939250a 100644
--- a/print/templates/reports/sepa-core/sepa-core.html
+++ b/print/templates/reports/sepa-core/sepa-core.html
@@ -7,7 +7,7 @@
{{$t('title')}}
-
+
{{$t('supplier.toCompleteBySupplier')}}
@@ -17,7 +17,7 @@
{{$t('supplier.orderReference')}} |
- {{mandateCode}} |
+ {{supplier.mandateCode}} |
{{$t('supplier.identifier')}} |
@@ -25,19 +25,19 @@
{{$t('supplier.name')}} |
- {{supplierName}} |
+ {{supplier.name}} |
{{$t('supplier.street')}} |
- {{supplierStreet}} |
+ {{supplier.street}} |
{{$t('supplier.location')}} |
- {{supplierPostCode}}, {{supplierCity}} ({{supplierProvince}}) |
+ {{supplier.postCode}}, {{supplier.city}} ({{supplier.province}}) |
{{$t('supplier.country')}} |
- {{supplierCountry}} |
+ {{supplier.country}} |
@@ -49,7 +49,7 @@
{{$t('documentCopy')}}
-
+
{{$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 c34601903..f2d245536 100755
--- a/print/templates/reports/sepa-core/sepa-core.js
+++ b/print/templates/reports/sepa-core/sepa-core.js
@@ -7,12 +7,13 @@ const rptSepaCore = {
name: 'sepa-core',
async serverPrefetch() {
this.client = await this.fetchClient(this.clientId, this.companyId);
+ this.supplier = await this.fetchSupplier(this.clientId, this.companyId);
if (!this.client)
throw new Error('Something went wrong');
},
computed: {
- dated: () => {
+ dated: function() {
const filters = this.$options.filters;
return filters.date(new Date(), '%d-%m-%Y');
@@ -22,27 +23,35 @@ const rptSepaCore = {
fetchClient(clientId, companyId) {
return db.findOne(
`SELECT
- c.id clientId,
- u.lang locale,
+ c.id,
m.code mandateCode,
- c.email AS recipient,
- c.socialName AS clientName,
- c.street AS clientStreet,
- c.postcode AS clientPostCode,
- c.city AS clientCity,
- p.name AS clientProvince,
- ct.country AS clientCountry,
- ct.code AS clientCountryCode,
- ct.ibanLength AS ibanLength,
- s.name AS supplierName,
- s.street AS supplierStreet,
- sc.country AS supplierCountry,
- s.postCode AS supplierPostCode,
- s.city AS supplierCity,
- sp.name AS supplierProvince
+ c.socialName,
+ c.street,
+ c.postcode,
+ c.city,
+ p.name AS province,
+ ct.country,
+ ct.code AS countryCode,
+ ct.ibanLength AS ibanLength
FROM client c
- JOIN account.user u ON u.id = c.id
JOIN country ct ON ct.id = c.countryFk
+ LEFT JOIN mandate m ON m.clientFk = c.id
+ AND m.companyFk = :companyId AND m.finished IS NULL
+ LEFT JOIN province p ON p.id = c.provinceFk
+ WHERE (m.companyFk = :companyId OR m.companyFk IS NULL) AND c.id = :clientId
+ ORDER BY m.created DESC LIMIT 1`, {companyId, clientId});
+ },
+ fetchSupplier(clientId, companyId) {
+ return db.findOne(
+ `SELECT
+ m.code mandateCode,
+ s.name,
+ s.street,
+ sc.country,
+ s.postCode,
+ s.city,
+ sp.name province
+ FROM client c
LEFT JOIN mandate m ON m.clientFk = c.id
AND m.companyFk = :companyId AND m.finished IS NULL
LEFT JOIN supplier s ON s.id = m.companyFk
diff --git a/print/templates/reports/sample-report/assets/css/index.js b/print/templates/reports/zone/assets/css/import.js
similarity index 64%
rename from print/templates/reports/sample-report/assets/css/index.js
rename to print/templates/reports/zone/assets/css/import.js
index 515dea750..a2a9334cb 100644
--- a/print/templates/reports/sample-report/assets/css/index.js
+++ b/print/templates/reports/zone/assets/css/import.js
@@ -1,6 +1,6 @@
-const CssReader = require(`${appPath}/lib/cssReader`);
+const Stylesheet = require(`${appPath}/core/stylesheet`);
-module.exports = new CssReader([
+module.exports = new Stylesheet([
`${appPath}/common/css/layout.css`,
`${appPath}/common/css/report.css`,
`${appPath}/common/css/misc.css`,
diff --git a/print/templates/reports/rpt-zone/assets/css/style.css b/print/templates/reports/zone/assets/css/style.css
similarity index 100%
rename from print/templates/reports/rpt-zone/assets/css/style.css
rename to print/templates/reports/zone/assets/css/style.css
diff --git a/print/templates/reports/rpt-zone/index.html b/print/templates/reports/zone/zone.html
similarity index 92%
rename from print/templates/reports/rpt-zone/index.html
rename to print/templates/reports/zone/zone.html
index 5e64da73c..b5a3e7c3e 100644
--- a/print/templates/reports/rpt-zone/index.html
+++ b/print/templates/reports/zone/zone.html
@@ -6,7 +6,7 @@
- {{zone.plateNumber}} {{zoneTime(zone.time)}}
+ {{zone.plateNumber}} {{zone.time | date('%H:%M')}}
diff --git a/print/templates/reports/zone/zone.js b/print/templates/reports/zone/zone.js
new file mode 100755
index 000000000..0debd4ef4
--- /dev/null
+++ b/print/templates/reports/zone/zone.js
@@ -0,0 +1,31 @@
+const db = require(`${appPath}/core/database`);
+
+module.exports = {
+ name: 'zone',
+ async serverPrefetch() {
+ this.zone = await this.fetchZone(this.routeId);
+
+ if (!this.zone)
+ throw new Error('Something went wrong');
+ },
+ methods: {
+ fetchZone(routeId) {
+ return db.findOne(
+ `SELECT
+ r.id,
+ r.time,
+ am.name agencyName,
+ v.numberPlate plateNumber
+ FROM route r
+ JOIN agencyMode am ON am.id = r.agencyModeFk
+ JOIN vehicle v ON v.id = r.vehicleFk
+ WHERE r.id = :routeId`, {routeId});
+ }
+ },
+ props: {
+ routeId: {
+ type: String,
+ required: true
+ }
+ }
+};
From 23f6c8843ddd39f92824e56c0fadbd50590100c8 Mon Sep 17 00:00:00 2001
From: Joan Sanchez
Date: Wed, 6 Nov 2019 08:20:45 +0100
Subject: [PATCH 08/18] #1860 refactorizar llamadas al servicio print
---
loopback/util/http.js | 16 +++++
modules/claim/front/card/index.js | 2 +-
modules/claim/front/descriptor/index.js | 21 ++++--
modules/client/back/models/client.js | 21 +++---
modules/client/front/sample/create/index.html | 6 +-
modules/client/front/sample/create/index.js | 10 +--
modules/client/front/sample/create/style.scss | 64 ++++++++++---------
modules/route/front/card/index.js | 18 ++++++
modules/route/front/descriptor/index.js | 24 +++++--
modules/ticket/front/card/index.js | 10 ++-
modules/ticket/front/descriptor/index.js | 34 ++++++----
.../claim-pickup-order.html | 12 +++-
.../claim-pickup-order/claim-pickup-order.js | 27 ++------
.../email/client-welcome/client-welcome.html | 12 +++-
.../email/printer-setup/printer-setup.js | 2 +-
.../claim-pickup-order/claim-pickup-order.js | 1 -
.../assets/css/import.js | 0
.../assets/css/style.css | 0
.../driver-route.html} | 0
.../route.js => driver-route/driver-route.js} | 3 +-
.../{route => driver-route}/locale/es.yml | 0
.../reports/item-label/item-label.js | 2 -
.../reports/letter-debtor/letter-debtor.js | 2 -
print/templates/reports/receipt/receipt.js | 1 -
.../templates/reports/sepa-core/sepa-core.js | 2 -
print/templates/reports/zone/zone.js | 1 -
26 files changed, 184 insertions(+), 107 deletions(-)
create mode 100644 loopback/util/http.js
rename print/templates/reports/{route => driver-route}/assets/css/import.js (100%)
rename print/templates/reports/{route => driver-route}/assets/css/style.css (100%)
rename print/templates/reports/{route/route.html => driver-route/driver-route.html} (100%)
rename print/templates/reports/{route/route.js => driver-route/driver-route.js} (98%)
rename print/templates/reports/{route => driver-route}/locale/es.yml (100%)
diff --git a/loopback/util/http.js b/loopback/util/http.js
new file mode 100644
index 000000000..59bfe38b0
--- /dev/null
+++ b/loopback/util/http.js
@@ -0,0 +1,16 @@
+/**
+ * Serializes an object to a query params
+ *
+ * @param {Object} obj The params object
+ * @return {String} Serialized params
+ */
+exports.httpParamSerializer = function(obj) {
+ let query = '';
+ for (let param in obj) {
+ if (query != '')
+ query += '&';
+ query += `${param}=${obj[param]}`;
+ }
+
+ return query;
+};
diff --git a/modules/claim/front/card/index.js b/modules/claim/front/card/index.js
index 7c0c348a9..0a641ce89 100644
--- a/modules/claim/front/card/index.js
+++ b/modules/claim/front/card/index.js
@@ -35,7 +35,7 @@ class Controller {
{
relation: 'client',
scope: {
- fields: ['salesPersonFk', 'name'],
+ fields: ['salesPersonFk', 'name', 'email'],
include: {
relation: 'salesPerson',
scope: {
diff --git a/modules/claim/front/descriptor/index.js b/modules/claim/front/descriptor/index.js
index 0328d954c..7bc9c831a 100644
--- a/modules/claim/front/descriptor/index.js
+++ b/modules/claim/front/descriptor/index.js
@@ -1,13 +1,14 @@
import ngModule from '../module';
class Controller {
- constructor($scope, $state, $http, $translate, vnApp, aclService) {
+ constructor($scope, $state, $http, $translate, vnApp, aclService, $httpParamSerializer) {
this.$scope = $scope;
this.$state = $state;
this.$http = $http;
this.$translate = $translate;
this.vnApp = vnApp;
this.aclService = aclService;
+ this.$httpParamSerializer = $httpParamSerializer;
this.moreOptions = [
{callback: this.showPickupOrder, name: 'Show Pickup order'},
{callback: this.confirmPickupOrder, name: 'Send Pickup order'},
@@ -60,7 +61,12 @@ class Controller {
}
showPickupOrder() {
- let url = `report/rpt-claim-pickup-order?claimFk=${this.claim.id}`;
+ const params = {
+ clientId: this.claim.clientFk,
+ claimId: this.claim.id
+ };
+ const serializedParams = this.$httpParamSerializer(params);
+ let url = `api/report/claim-pickup-order?${serializedParams}`;
window.open(url);
}
@@ -70,7 +76,14 @@ class Controller {
sendPickupOrder(response) {
if (response === 'accept') {
- this.$http.post(`email/claim-pickup-order`, {claimFk: this.claim.id}).then(
+ const params = {
+ recipient: this.claim.client.email,
+ clientId: this.claim.clientFk,
+ claimId: this.claim.id
+ };
+ const serializedParams = this.$httpParamSerializer(params);
+ const url = `email/claim-pickup-order?${serializedParams}`;
+ this.$http.get(url).then(
() => this.vnApp.showMessage(this.$translate.instant('Notification sent!'))
);
}
@@ -90,7 +103,7 @@ class Controller {
}
}
-Controller.$inject = ['$scope', '$state', '$http', '$translate', 'vnApp', 'aclService'];
+Controller.$inject = ['$scope', '$state', '$http', '$translate', 'vnApp', 'aclService', '$httpParamSerializer'];
ngModule.component('vnClaimDescriptor', {
template: require('./index.html'),
diff --git a/modules/client/back/models/client.js b/modules/client/back/models/client.js
index 58aac9ccd..73626b408 100644
--- a/modules/client/back/models/client.js
+++ b/modules/client/back/models/client.js
@@ -2,6 +2,8 @@ let request = require('request-promise-native');
let UserError = require('vn-loopback/util/user-error');
let getFinalState = require('vn-loopback/util/hook').getFinalState;
let isMultiple = require('vn-loopback/util/hook').isMultiple;
+const httpParamSerializer = require('vn-loopback/util/http').httpParamSerializer;
+const LoopBackContext = require('loopback-context');
module.exports = Self => {
// Methods
@@ -239,15 +241,18 @@ module.exports = Self => {
});
}
- const options = {
- method: 'POST',
- uri: 'http://127.0.0.1:3000/api/email/payment-update',
- body: {
- clientFk: instance.id
- },
- json: true
+ // Send email to client
+
+ if (!instance.email) return;
+ const loopBackContext = LoopBackContext.getCurrentContext();
+ const headers = loopBackContext.active.http.req.headers;
+ const params = {
+ clientId: instance.id,
+ recipient: instance.email
};
- await request(options);
+ const serializedParams = httpParamSerializer(params);
+ const query = `${headers.origin}/api/email/payment-update?${serializedParams}`;
+ await request.get(query);
}
});
diff --git a/modules/client/front/sample/create/index.html b/modules/client/front/sample/create/index.html
index dae61ce10..ba2ec55bb 100644
--- a/modules/client/front/sample/create/index.html
+++ b/modules/client/front/sample/create/index.html
@@ -44,5 +44,9 @@
-
+
+
+
+
+
diff --git a/modules/client/front/sample/create/index.js b/modules/client/front/sample/create/index.js
index 22adb3488..935909e25 100644
--- a/modules/client/front/sample/create/index.js
+++ b/modules/client/front/sample/create/index.js
@@ -2,13 +2,14 @@ import ngModule from '../../module';
import './style.scss';
class Controller {
- constructor($scope, $state, $http, vnApp, $translate, $httpParamSerializer) {
+ constructor($scope, $state, $http, vnApp, $translate, $httpParamSerializer, $window) {
this.$scope = $scope;
this.$state = $state;
this.$stateParams = $state.params;
this.$http = $http;
this.vnApp = vnApp;
this.$translate = $translate;
+ this.$window = $window;
this.$httpParamSerializer = $httpParamSerializer;
this.clientSample = {
clientFk: this.$stateParams.id
@@ -58,13 +59,12 @@ class Controller {
const serializedParams = this.$httpParamSerializer(params);
const query = `email/${sampleType.code}?${serializedParams}`;
this.$http.get(query).then(res => {
- let dialog = this.$scope.showPreview.element;
+ this.$scope.showPreview.show();
+ let dialog = document.body.querySelector('div.vn-dialog');
let body = dialog.querySelector('tpl-body');
let scroll = dialog.querySelector('div:first-child');
body.innerHTML = res.data;
- this.$scope.showPreview.show();
-
scroll.scrollTop = 0;
});
}
@@ -100,7 +100,7 @@ class Controller {
});
}
}
-Controller.$inject = ['$scope', '$state', '$http', 'vnApp', '$translate', '$httpParamSerializer'];
+Controller.$inject = ['$scope', '$state', '$http', 'vnApp', '$translate', '$httpParamSerializer', '$window'];
ngModule.component('vnClientSampleCreate', {
template: require('./index.html'),
diff --git a/modules/client/front/sample/create/style.scss b/modules/client/front/sample/create/style.scss
index a958e264b..3b4226ccb 100644
--- a/modules/client/front/sample/create/style.scss
+++ b/modules/client/front/sample/create/style.scss
@@ -1,36 +1,38 @@
-vn-client-sample-create {
- vn-dialog {
- & > div {
- padding: 0 !important
+div.vn-dialog {
+ & > div {
+ padding: 0 !important
+ }
+
+ tpl-body {
+ min-width: 800px;
+
+ .container, .container h1 {
+ font-family: "Roboto","Helvetica","Arial",sans-serif;
+ font-size: 1em !important;
+
+ h1 {
+ font-weight: bold;
+ margin: auto
+ }
+
+ p {
+ margin: 1em 0
+ }
+
+ footer p {
+ font-size: 10px !important;
+ line-height: 10px
+ }
}
- tpl-body {
- min-width: 800px;
+
+ .title h1 {
+ font-size: 2em !important;
+ margin: 0
+ }
- .container, .container h1 {
- font-family: "Roboto","Helvetica","Arial",sans-serif;
- font-size: 1em !important;
-
- h1 {
- font-weight: bold;
- margin: auto
- }
-
- p {
- margin: 1em 0
- }
-
- footer p {
- font-size: 10px !important;
- line-height: 10px
- }
- }
-
-
- .title h1 {
- font-size: 2em !important;
- margin: 0
- }
+ .loading {
+ text-align: center
}
}
-}
\ No newline at end of file
+}
diff --git a/modules/route/front/card/index.js b/modules/route/front/card/index.js
index 2e3acb9c1..76471002a 100644
--- a/modules/route/front/card/index.js
+++ b/modules/route/front/card/index.js
@@ -42,6 +42,24 @@ export default class Controller {
scope: {
fields: ['id', 'name']
}
+ },
+ {
+ relation: 'worker',
+ scope: {
+ fields: ['userFk'],
+ include: {
+ relation: 'user',
+ scope: {
+ fields: ['id'],
+ include: {
+ relation: 'emailUser',
+ scope: {
+ fields: ['email']
+ }
+ }
+ }
+ }
+ }
}
]
};
diff --git a/modules/route/front/descriptor/index.js b/modules/route/front/descriptor/index.js
index 438a2dda9..402b9102f 100644
--- a/modules/route/front/descriptor/index.js
+++ b/modules/route/front/descriptor/index.js
@@ -1,12 +1,13 @@
import ngModule from '../module';
class Controller {
- constructor($, $http, vnApp, $translate, aclService) {
+ constructor($, $http, vnApp, $translate, aclService, $httpParamSerializer) {
this.$http = $http;
this.vnApp = vnApp;
this.$translate = $translate;
this.$ = $;
this.aclService = aclService;
+ this.$httpParamSerializer = $httpParamSerializer;
this.moreOptions = [
{callback: this.showRouteReport, name: 'Show route report'},
{callback: this.sendRouteReport, name: 'Send route report'},
@@ -36,13 +37,26 @@ class Controller {
}
showRouteReport() {
- let url = `report/rpt-route?routeFk=${this.route.id}`;
+ const user = this.route.worker.user;
+ const params = {
+ clientId: user.id,
+ routeId: this.route.id
+ };
+ const serializedParams = this.$httpParamSerializer(params);
+ let url = `api/report/driver-route?${serializedParams}`;
window.open(url);
}
sendRouteReport() {
- let url = `email/driver-route?routeFk=${this.route.id}`;
- this.$http.post(url).then(() => {
+ const user = this.route.worker.user;
+ const params = {
+ recipient: user.emailUser.email,
+ clientId: user.id,
+ routeId: this.route.id
+ };
+ const serializedParams = this.$httpParamSerializer(params);
+ const url = `email/driver-route?${serializedParams}`;
+ this.$http.get(url).then(() => {
this.vnApp.showSuccess(this.$translate.instant('Report sent'));
});
}
@@ -62,7 +76,7 @@ class Controller {
}
}
-Controller.$inject = ['$scope', '$http', 'vnApp', '$translate', 'aclService'];
+Controller.$inject = ['$scope', '$http', 'vnApp', '$translate', 'aclService', '$httpParamSerializer'];
ngModule.component('vnRouteDescriptor', {
template: require('./index.html'),
diff --git a/modules/ticket/front/card/index.js b/modules/ticket/front/card/index.js
index b05472bcb..b805c3803 100644
--- a/modules/ticket/front/card/index.js
+++ b/modules/ticket/front/card/index.js
@@ -15,7 +15,15 @@ class Controller {
{
relation: 'client',
scope: {
- fields: ['salesPersonFk', 'name', 'isActive', 'isFreezed', 'isTaxDataChecked', 'credit'],
+ fields: [
+ 'salesPersonFk',
+ 'name',
+ 'isActive',
+ 'isFreezed',
+ 'isTaxDataChecked',
+ 'credit',
+ 'email'
+ ],
include: {
relation: 'salesPerson',
scope: {
diff --git a/modules/ticket/front/descriptor/index.js b/modules/ticket/front/descriptor/index.js
index 4d8df2d1f..d419df5de 100644
--- a/modules/ticket/front/descriptor/index.js
+++ b/modules/ticket/front/descriptor/index.js
@@ -1,12 +1,13 @@
import ngModule from '../module';
class Controller {
- constructor($state, $scope, $http, vnApp, $translate, aclService) {
+ constructor($state, $scope, $http, vnApp, $translate, aclService, $httpParamSerializer) {
this.$scope = $scope;
this.$state = $state;
this.$http = $http;
this.vnApp = vnApp;
this.$translate = $translate;
+ this.$httpParamSerializer = $httpParamSerializer;
this.aclService = aclService;
this.moreOptions = [
{name: 'Add turn', callback: this.showAddTurnDialog},
@@ -201,10 +202,29 @@ class Controller {
}
showDeliveryNote() {
- let url = `report/rpt-delivery-note?ticketFk=${this.ticket.id}`;
+ const params = {
+ clientId: this.ticket.client.id,
+ ticketId: this.ticket.id
+ };
+ const serializedParams = this.$httpParamSerializer(params);
+ let url = `api/report/delivery-note?${serializedParams}`;
window.open(url);
}
+ sendDeliveryNote(response) {
+ if (response === 'accept') {
+ const params = {
+ recipient: this.ticket.client.email,
+ clientId: this.ticket.client.id,
+ ticketId: this.ticket.id
+ };
+ const serializedParams = this.$httpParamSerializer(params);
+ this.$http.get(`email/delivery-note?${serializedParams}`).then(
+ () => this.vnApp.showMessage(this.$translate.instant('Notification sent!'))
+ );
+ }
+ }
+
showSMSDialog() {
const address = this.ticket.address;
this.newSMS = {
@@ -275,17 +295,9 @@ class Controller {
confirmDeliveryNote() {
this.$scope.confirmDeliveryNote.show();
}
-
- sendDeliveryNote(response) {
- if (response === 'accept') {
- this.$http.post(`email/delivery-note`, {ticketFk: this.ticket.id}).then(
- () => this.vnApp.showMessage(this.$translate.instant('Notification sent!'))
- );
- }
- }
}
-Controller.$inject = ['$state', '$scope', '$http', 'vnApp', '$translate', 'aclService'];
+Controller.$inject = ['$state', '$scope', '$http', 'vnApp', '$translate', 'aclService', '$httpParamSerializer'];
ngModule.component('vnTicketDescriptor', {
template: require('./index.html'),
diff --git a/print/templates/email/claim-pickup-order/claim-pickup-order.html b/print/templates/email/claim-pickup-order/claim-pickup-order.html
index 7de22dd58..5b227438d 100644
--- a/print/templates/email/claim-pickup-order/claim-pickup-order.html
+++ b/print/templates/email/claim-pickup-order/claim-pickup-order.html
@@ -1,12 +1,15 @@
-
+
{{ $t('subject') }}
-
+
+
diff --git a/print/templates/email/claim-pickup-order/claim-pickup-order.js b/print/templates/email/claim-pickup-order/claim-pickup-order.js
index 00dbd380c..cb49e548d 100755
--- a/print/templates/email/claim-pickup-order/claim-pickup-order.js
+++ b/print/templates/email/claim-pickup-order/claim-pickup-order.js
@@ -2,38 +2,21 @@ const Component = require(`${appPath}/core/component`);
const emailHeader = new Component('email-header');
const emailFooter = new Component('email-footer');
const attachments = require('./attachments.json');
-const db = require(`${appPath}/core/database`);
module.exports = {
name: 'claim-pickup-order',
- /* async serverPrefetch() {
- this.client = await this.fetchClient(this.clientId);
- },*/
- created() {
- if (this.locale)
- this.$i18n.locale = this.locale;
- },
data() {
return {
attachments
};
},
- methods: {
- fetchClient(claimId) {
- return db.findOne(`
- SELECT
- c.id,
- u.lang locale,
- c.email recipient
- FROM claim cl
- JOIN client c ON c.id = cl.clientFk
- JOIN account.user u ON u.id = c.id
- WHERE cl.id = ?`, [claimId]);
- },
- },
components: {
'email-header': emailHeader.build(),
'email-footer': emailFooter.build()
},
- props: ['clientId', 'claimId', 'isPreview']
+ props: {
+ claimId: {
+ required: true
+ }
+ }
};
diff --git a/print/templates/email/client-welcome/client-welcome.html b/print/templates/email/client-welcome/client-welcome.html
index 00b38959a..9bc571d4e 100644
--- a/print/templates/email/client-welcome/client-welcome.html
+++ b/print/templates/email/client-welcome/client-welcome.html
@@ -1,12 +1,15 @@
-
+
{{ $t('subject') }}
diff --git a/print/templates/email/printer-setup/printer-setup.js b/print/templates/email/printer-setup/printer-setup.js
index 78def7aea..812492eba 100755
--- a/print/templates/email/printer-setup/printer-setup.js
+++ b/print/templates/email/printer-setup/printer-setup.js
@@ -1,7 +1,7 @@
-const db = require(`${appPath}/core/database`);
const Component = require(`${appPath}/core/component`);
const emailHeader = new Component('email-header');
const emailFooter = new Component('email-footer');
+const db = require(`${appPath}/core/database`);
module.exports = {
name: 'printer-setup',
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 ed64081f5..2578443dd 100755
--- a/print/templates/reports/claim-pickup-order/claim-pickup-order.js
+++ b/print/templates/reports/claim-pickup-order/claim-pickup-order.js
@@ -60,7 +60,6 @@ module.exports = {
},
props: {
claimId: {
- type: String,
required: true
}
}
diff --git a/print/templates/reports/route/assets/css/import.js b/print/templates/reports/driver-route/assets/css/import.js
similarity index 100%
rename from print/templates/reports/route/assets/css/import.js
rename to print/templates/reports/driver-route/assets/css/import.js
diff --git a/print/templates/reports/route/assets/css/style.css b/print/templates/reports/driver-route/assets/css/style.css
similarity index 100%
rename from print/templates/reports/route/assets/css/style.css
rename to print/templates/reports/driver-route/assets/css/style.css
diff --git a/print/templates/reports/route/route.html b/print/templates/reports/driver-route/driver-route.html
similarity index 100%
rename from print/templates/reports/route/route.html
rename to print/templates/reports/driver-route/driver-route.html
diff --git a/print/templates/reports/route/route.js b/print/templates/reports/driver-route/driver-route.js
similarity index 98%
rename from print/templates/reports/route/route.js
rename to print/templates/reports/driver-route/driver-route.js
index 858fd8407..5e9e617ad 100755
--- a/print/templates/reports/route/route.js
+++ b/print/templates/reports/driver-route/driver-route.js
@@ -4,7 +4,7 @@ const reportFooter = new Component('report-footer');
const db = require(`${appPath}/core/database`);
module.exports = {
- name: 'route',
+ name: 'driver-route',
async serverPrefetch() {
this.route = await this.fetchRoute(this.routeId);
this.tickets = await this.fetchTickets(this.routeId);
@@ -83,7 +83,6 @@ module.exports = {
},
props: {
routeId: {
- type: String,
required: true
}
}
diff --git a/print/templates/reports/route/locale/es.yml b/print/templates/reports/driver-route/locale/es.yml
similarity index 100%
rename from print/templates/reports/route/locale/es.yml
rename to print/templates/reports/driver-route/locale/es.yml
diff --git a/print/templates/reports/item-label/item-label.js b/print/templates/reports/item-label/item-label.js
index f98fcabf9..f5fd988f1 100755
--- a/print/templates/reports/item-label/item-label.js
+++ b/print/templates/reports/item-label/item-label.js
@@ -70,11 +70,9 @@ module.exports = {
},
props: {
itemId: {
- type: String,
required: true
},
warehouseId: {
- type: String,
required: true
},
labelNumber: {
diff --git a/print/templates/reports/letter-debtor/letter-debtor.js b/print/templates/reports/letter-debtor/letter-debtor.js
index 7e70c88d1..c7cd9bbfc 100755
--- a/print/templates/reports/letter-debtor/letter-debtor.js
+++ b/print/templates/reports/letter-debtor/letter-debtor.js
@@ -77,11 +77,9 @@ module.exports = {
},
props: {
clientId: {
- type: String,
required: true
},
companyId: {
- type: String,
required: true
}
}
diff --git a/print/templates/reports/receipt/receipt.js b/print/templates/reports/receipt/receipt.js
index 1aee32b18..4f6d0dda5 100755
--- a/print/templates/reports/receipt/receipt.js
+++ b/print/templates/reports/receipt/receipt.js
@@ -43,7 +43,6 @@ module.exports = {
},
props: {
receiptId: {
- type: String,
required: true
}
}
diff --git a/print/templates/reports/sepa-core/sepa-core.js b/print/templates/reports/sepa-core/sepa-core.js
index f2d245536..417562015 100755
--- a/print/templates/reports/sepa-core/sepa-core.js
+++ b/print/templates/reports/sepa-core/sepa-core.js
@@ -68,11 +68,9 @@ const rptSepaCore = {
},
props: {
clientId: {
- type: String,
required: true
},
companyId: {
- type: String,
required: true
}
}
diff --git a/print/templates/reports/zone/zone.js b/print/templates/reports/zone/zone.js
index 0debd4ef4..458762563 100755
--- a/print/templates/reports/zone/zone.js
+++ b/print/templates/reports/zone/zone.js
@@ -24,7 +24,6 @@ module.exports = {
},
props: {
routeId: {
- type: String,
required: true
}
}
From 3d701f534acefc2bd8021e06ec8eb5d0c99eb3a7 Mon Sep 17 00:00:00 2001
From: Joan Sanchez
Date: Wed, 6 Nov 2019 09:32:54 +0100
Subject: [PATCH 09/18] updated tests
---
modules/claim/front/descriptor/index.spec.js | 24 +++++--
modules/claim/front/dms/index/index.js | 1 -
modules/client/front/sample/create/index.js | 11 ----
.../client/front/sample/create/index.spec.js | 62 +++++++++++--------
modules/ticket/front/descriptor/index.html | 2 +-
modules/ticket/front/descriptor/index.js | 22 +++----
modules/ticket/front/descriptor/index.spec.js | 33 +++++++++-
modules/ticket/front/index/index.js | 1 -
8 files changed, 96 insertions(+), 60 deletions(-)
diff --git a/modules/claim/front/descriptor/index.spec.js b/modules/claim/front/descriptor/index.spec.js
index 8cf8d1ea8..87da181fa 100644
--- a/modules/claim/front/descriptor/index.spec.js
+++ b/modules/claim/front/descriptor/index.spec.js
@@ -1,20 +1,27 @@
import './index.js';
describe('Item Component vnClaimDescriptor', () => {
+ let $httpParamSerializer;
let $httpBackend;
let controller;
beforeEach(ngModule('claim'));
- beforeEach(angular.mock.inject(($componentController, _$httpBackend_) => {
+ beforeEach(angular.mock.inject(($componentController, _$httpBackend_, _$httpParamSerializer_) => {
$httpBackend = _$httpBackend_;
+ $httpParamSerializer = _$httpParamSerializer_;
controller = $componentController('vnClaimDescriptor');
- controller.claim = {id: 2};
+ controller.claim = {id: 2, clientFk: 101, client: {email: 'client@email'}};
}));
describe('showPickupOrder()', () => {
it('should open a new window showing a pickup order PDF document', () => {
- let expectedPath = 'report/rpt-claim-pickup-order?claimFk=2';
+ const params = {
+ clientId: controller.claim.clientFk,
+ claimId: controller.claim.id
+ };
+ const serializedParams = $httpParamSerializer(params);
+ let expectedPath = `api/report/claim-pickup-order?${serializedParams}`;
spyOn(window, 'open');
controller.showPickupOrder();
@@ -38,8 +45,15 @@ describe('Item Component vnClaimDescriptor', () => {
it('should make a query and call vnApp.showMessage() if the response is accept', () => {
spyOn(controller.vnApp, 'showMessage');
- $httpBackend.when('POST', `email/claim-pickup-order`, {claimFk: 2}).respond();
- $httpBackend.expect('POST', `email/claim-pickup-order`, {claimFk: 2}).respond();
+ const params = {
+ recipient: 'client@email',
+ clientId: controller.claim.clientFk,
+ claimId: controller.claim.id
+ };
+ const serializedParams = $httpParamSerializer(params);
+
+ $httpBackend.when('GET', `email/claim-pickup-order?${serializedParams}`).respond();
+ $httpBackend.expect('GET', `email/claim-pickup-order?${serializedParams}`).respond();
controller.sendPickupOrder('accept');
$httpBackend.flush();
diff --git a/modules/claim/front/dms/index/index.js b/modules/claim/front/dms/index/index.js
index 022c7c3ab..20eba62a3 100644
--- a/modules/claim/front/dms/index/index.js
+++ b/modules/claim/front/dms/index/index.js
@@ -37,7 +37,6 @@ class Controller {
}
onDrop($event) {
- console.log($event);
const files = $event.dataTransfer.files;
this.setDefaultParams().then(() => {
this.dms.files = files;
diff --git a/modules/client/front/sample/create/index.js b/modules/client/front/sample/create/index.js
index 935909e25..ea410fa89 100644
--- a/modules/client/front/sample/create/index.js
+++ b/modules/client/front/sample/create/index.js
@@ -27,17 +27,6 @@ class Controller {
this.clientSample.recipient = value.email;
}
- jsonToQuery(json) {
- let query = '';
- for (let param in json) {
- if (query != '')
- query += '&';
- query += `${param}=${json[param]}`;
- }
-
- return query;
- }
-
showPreview() {
let sampleType = this.$scope.sampleType.selection;
diff --git a/modules/client/front/sample/create/index.spec.js b/modules/client/front/sample/create/index.spec.js
index 31e9bb4c3..06a9bdf09 100644
--- a/modules/client/front/sample/create/index.spec.js
+++ b/modules/client/front/sample/create/index.spec.js
@@ -2,6 +2,7 @@ import './index';
describe('Client', () => {
describe('Component vnClientSampleCreate', () => {
+ let $httpParamSerializer;
let $scope;
let $httpBackend;
let $state;
@@ -9,7 +10,7 @@ describe('Client', () => {
beforeEach(ngModule('client'));
- beforeEach(angular.mock.inject(($componentController, _$httpBackend_, $rootScope, _$state_) => {
+ beforeEach(angular.mock.inject(($componentController, _$httpBackend_, $rootScope, _$state_, _$httpParamSerializer_) => {
$scope = $rootScope.$new();
$scope.sampleType = {};
$scope.watcher = {
@@ -35,26 +36,11 @@ describe('Client', () => {
$state = _$state_;
$state.params.id = 101;
$httpBackend = _$httpBackend_;
+ $httpParamSerializer = _$httpParamSerializer_;
controller = $componentController('vnClientSampleCreate', {$scope, $state});
}));
- describe('jsonToQuery()', () => {
- it(`should convert a JSON object with clientFk property to query params`, () => {
- let myObject = {clientFk: 101};
- let result = controller.jsonToQuery(myObject);
-
- expect(result).toEqual('clientFk=101');
- });
-
- it(`should convert a JSON object with clientFk and companyFk properties to query params`, () => {
- let myObject = {clientFk: 101, companyFk: 442};
- let result = controller.jsonToQuery(myObject);
-
- expect(result).toEqual('clientFk=101&companyFk=442');
- });
- });
-
- describe('showPreview()', () => {
+ xdescribe('showPreview()', () => {
it(`should perform a query (GET) and open a sample preview`, () => {
spyOn(controller.$scope.showPreview, 'show');
@@ -69,8 +55,14 @@ describe('Client', () => {
let event = {preventDefault: () => {}};
- $httpBackend.when('GET', `email/MyReport?clientFk=101`).respond(true);
- $httpBackend.expect('GET', `email/MyReport?clientFk=101`);
+ const params = {
+ clientId: 101,
+ isPreview: true
+ };
+ const serializedParams = $httpParamSerializer(params);
+
+ $httpBackend.when('GET', `email/MyReport?${serializedParams}`).respond(true);
+ $httpBackend.expect('GET', `email/MyReport?${serializedParams}`);
controller.showPreview(event);
$httpBackend.flush();
@@ -92,8 +84,15 @@ describe('Client', () => {
let event = {preventDefault: () => {}};
- $httpBackend.when('GET', `email/MyReport?clientFk=101&companyFk=442`).respond(true);
- $httpBackend.expect('GET', `email/MyReport?clientFk=101&companyFk=442`);
+ const params = {
+ clientId: 101,
+ companyId: 442,
+ isPreview: true
+ };
+ const serializedParams = $httpParamSerializer(params);
+
+ $httpBackend.when('GET', `email/MyReport?${serializedParams}`).respond(true);
+ $httpBackend.expect('GET', `email/MyReport?${serializedParams}`);
controller.showPreview(event);
$httpBackend.flush();
@@ -123,8 +122,13 @@ describe('Client', () => {
clientFk: 101
};
- $httpBackend.when('POST', `email/MyReport?clientFk=101`).respond(true);
- $httpBackend.expect('POST', `email/MyReport?clientFk=101`);
+ const params = {
+ clientId: 101
+ };
+ const serializedParams = $httpParamSerializer(params);
+
+ $httpBackend.when('GET', `email/MyReport?${serializedParams}`).respond(true);
+ $httpBackend.expect('GET', `email/MyReport?${serializedParams}`);
controller.sendSample();
$httpBackend.flush();
@@ -144,8 +148,14 @@ describe('Client', () => {
companyFk: 442
};
- $httpBackend.when('POST', `email/MyReport?clientFk=101&companyFk=442`).respond(true);
- $httpBackend.expect('POST', `email/MyReport?clientFk=101&companyFk=442`);
+ const params = {
+ clientId: 101,
+ companyId: 442
+ };
+ const serializedParams = $httpParamSerializer(params);
+
+ $httpBackend.when('GET', `email/MyReport?${serializedParams}`).respond(true);
+ $httpBackend.expect('GET', `email/MyReport?${serializedParams}`);
controller.sendSample();
$httpBackend.flush();
diff --git a/modules/ticket/front/descriptor/index.html b/modules/ticket/front/descriptor/index.html
index 7ad509633..12bd5105d 100644
--- a/modules/ticket/front/descriptor/index.html
+++ b/modules/ticket/front/descriptor/index.html
@@ -197,7 +197,7 @@
\ No newline at end of file
diff --git a/modules/ticket/front/descriptor/index.js b/modules/ticket/front/descriptor/index.js
index d419df5de..fce05ab34 100644
--- a/modules/ticket/front/descriptor/index.js
+++ b/modules/ticket/front/descriptor/index.js
@@ -211,18 +211,16 @@ class Controller {
window.open(url);
}
- sendDeliveryNote(response) {
- if (response === 'accept') {
- const params = {
- recipient: this.ticket.client.email,
- clientId: this.ticket.client.id,
- ticketId: this.ticket.id
- };
- const serializedParams = this.$httpParamSerializer(params);
- this.$http.get(`email/delivery-note?${serializedParams}`).then(
- () => this.vnApp.showMessage(this.$translate.instant('Notification sent!'))
- );
- }
+ sendDeliveryNote() {
+ const params = {
+ recipient: this.ticket.client.email,
+ clientId: this.ticket.client.id,
+ ticketId: this.ticket.id
+ };
+ const serializedParams = this.$httpParamSerializer(params);
+ this.$http.get(`email/delivery-note?${serializedParams}`).then(
+ () => this.vnApp.showMessage(this.$translate.instant('Notification sent!'))
+ );
}
showSMSDialog() {
diff --git a/modules/ticket/front/descriptor/index.spec.js b/modules/ticket/front/descriptor/index.spec.js
index cca3045c3..10b439ea8 100644
--- a/modules/ticket/front/descriptor/index.spec.js
+++ b/modules/ticket/front/descriptor/index.spec.js
@@ -1,13 +1,14 @@
import './index.js';
describe('Ticket Component vnTicketDescriptor', () => {
+ let $httpParamSerializer;
let $httpBackend;
let controller;
let $state;
beforeEach(ngModule('ticket'));
- beforeEach(angular.mock.inject(($componentController, _$state_, _$httpBackend_) => {
+ beforeEach(angular.mock.inject(($componentController, _$state_, _$httpBackend_, _$httpParamSerializer_) => {
$state = _$state_;
$state.getCurrentPath = () => {
return [
@@ -16,8 +17,9 @@ describe('Ticket Component vnTicketDescriptor', () => {
];
};
$httpBackend = _$httpBackend_;
+ $httpParamSerializer = _$httpParamSerializer_;
controller = $componentController('vnTicketDescriptor', {$state});
- controller._ticket = {id: 2, invoiceOut: {id: 1}};
+ controller._ticket = {id: 2, invoiceOut: {id: 1}, client: {id: 101, email: 'client@email'}};
controller.cardReload = ()=> {
return true;
};
@@ -81,7 +83,12 @@ describe('Ticket Component vnTicketDescriptor', () => {
describe('showDeliveryNote()', () => {
it('should open a new window showing a delivery note PDF document', () => {
- let expectedPath = 'report/rpt-delivery-note?ticketFk=2';
+ const params = {
+ clientId: controller.ticket.client.id,
+ ticketId: controller.ticket.id
+ };
+ const serializedParams = $httpParamSerializer(params);
+ let expectedPath = `api/report/delivery-note?${serializedParams}`;
spyOn(window, 'open');
controller.showDeliveryNote();
@@ -89,6 +96,26 @@ describe('Ticket Component vnTicketDescriptor', () => {
});
});
+ describe('sendDeliveryNote()', () => {
+ it('should make a query and call vnApp.showMessage()', () => {
+ spyOn(controller.vnApp, 'showMessage');
+
+ const params = {
+ recipient: 'client@email',
+ clientId: controller.ticket.client.id,
+ ticketId: controller.ticket.id
+ };
+ const serializedParams = $httpParamSerializer(params);
+
+ $httpBackend.when('GET', `email/delivery-note?${serializedParams}`).respond();
+ $httpBackend.expect('GET', `email/delivery-note?${serializedParams}`).respond();
+ controller.sendDeliveryNote();
+ $httpBackend.flush();
+
+ expect(controller.vnApp.showMessage).toHaveBeenCalledWith('Notification sent!');
+ });
+ });
+
describe('makeInvoice()', () => {
it('should make a query and call $state.reload() method if the response is accept', () => {
spyOn(controller.$state, 'reload');
diff --git a/modules/ticket/front/index/index.js b/modules/ticket/front/index/index.js
index b566bbfc0..2a2f3a238 100644
--- a/modules/ticket/front/index/index.js
+++ b/modules/ticket/front/index/index.js
@@ -18,7 +18,6 @@ export default class Controller {
this.$.balanceCreateDialog.show();
}, name: 'Payment on account...', always: true}
];
- console.log(this.$stateParams);
}
setBalanceCreateDialog() {
From 3cd92211a1a027a273add1508ffa8f7a2496ef55 Mon Sep 17 00:00:00 2001
From: Joan Sanchez
Date: Wed, 6 Nov 2019 10:55:04 +0100
Subject: [PATCH 10/18] test fixed & export sample table
---
db/dump/dumpedFixtures.sql | 603 ------------------
db/export-data.sh | 4 +-
.../client/front/sample/create/index.spec.js | 18 +-
3 files changed, 19 insertions(+), 606 deletions(-)
diff --git a/db/dump/dumpedFixtures.sql b/db/dump/dumpedFixtures.sql
index 6c4962b99..fa5776c5b 100644
--- a/db/dump/dumpedFixtures.sql
+++ b/db/dump/dumpedFixtures.sql
@@ -1,613 +1,10 @@
USE `util`;
--- MySQL dump 10.13 Distrib 5.7.27, for Linux (x86_64)
---
--- Host: db.verdnatura.es Database: util
--- ------------------------------------------------------
--- Server version 5.6.25-4-log
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
---
--- Dumping data for table `config`
---
-
-LOCK TABLES `config` WRITE;
-/*!40000 ALTER TABLE `config` DISABLE KEYS */;
-INSERT INTO `config` VALUES (1,'10080',0,'production',NULL);
-/*!40000 ALTER TABLE `config` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
--- Dump completed on 2019-10-29 8:19:03
USE `account`;
--- MySQL dump 10.13 Distrib 5.7.27, for Linux (x86_64)
---
--- Host: db.verdnatura.es Database: account
--- ------------------------------------------------------
--- Server version 5.6.25-4-log
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
---
--- Dumping data for table `role`
---
-
-LOCK TABLES `role` WRITE;
-/*!40000 ALTER TABLE `role` DISABLE KEYS */;
-INSERT INTO `role` VALUES (0,'root','Rol con todos los privilegios',0,'2018-04-23 14:33:36','2018-04-23 14:33:59'),(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 departamento',1,'2017-05-19 07:04:58','2017-05-19 07:04:58'),(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','Departamento de gerencia',1,'2017-06-01 14:57:02','2017-06-01 14:57:51'),(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',0,'2018-02-26 15:28:23','2019-01-21 12:57:21'),(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');
-/*!40000 ALTER TABLE `role` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Dumping data for table `roleInherit`
---
-
-LOCK TABLES `roleInherit` WRITE;
-/*!40000 ALTER TABLE `roleInherit` DISABLE KEYS */;
-INSERT INTO `roleInherit` VALUES (9,0),(66,0),(5,1),(13,1),(18,1),(31,1),(32,1),(34,1),(35,1),(37,1),(40,1),(42,1),(44,1),(47,1),(51,1),(53,1),(54,1),(56,1),(58,1),(1,2),(1,3),(30,5),(39,5),(60,5),(11,6),(1,11),(2,11),(3,11),(16,13),(20,13),(21,13),(22,13),(34,13),(41,13),(43,13),(45,13),(48,13),(50,13),(52,13),(55,13),(57,13),(59,13),(61,13),(16,15),(20,16),(21,18),(52,19),(65,19),(17,20),(30,20),(5,21),(19,21),(22,21),(39,21),(30,22),(5,33),(34,33),(15,35),(41,35),(52,35),(49,36),(61,36),(17,37),(38,37),(17,39),(41,40),(43,42),(36,44),(45,44),(36,47),(48,47),(50,49),(60,50),(65,50),(52,51),(21,53),(30,53),(55,54),(57,56),(39,57),(50,57),(60,57),(49,58),(59,58),(50,59),(17,64),(30,64),(38,64),(20,65);
-/*!40000 ALTER TABLE `roleInherit` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Dumping data for table `roleRole`
---
-
-LOCK TABLES `roleRole` WRITE;
-/*!40000 ALTER TABLE `roleRole` DISABLE KEYS */;
-INSERT INTO `roleRole` VALUES (0,0),(0,1),(0,2),(0,3),(0,5),(0,6),(0,9),(0,11),(0,13),(0,15),(0,16),(0,17),(0,18),(0,19),(0,20),(0,21),(0,22),(0,30),(0,31),(0,32),(0,33),(0,34),(0,35),(0,36),(0,37),(0,38),(0,39),(0,40),(0,41),(0,42),(0,43),(0,44),(0,45),(0,47),(0,48),(0,49),(0,50),(0,51),(0,52),(0,53),(0,54),(0,55),(0,56),(0,57),(0,58),(0,59),(0,60),(0,61),(0,62),(0,64),(0,65),(0,66),(1,1),(1,2),(1,3),(1,6),(1,11),(2,2),(2,6),(2,11),(3,3),(3,6),(3,11),(5,1),(5,2),(5,3),(5,5),(5,6),(5,11),(5,13),(5,18),(5,21),(5,33),(5,53),(6,6),(9,0),(9,1),(9,2),(9,3),(9,5),(9,6),(9,9),(9,11),(9,13),(9,15),(9,16),(9,17),(9,18),(9,19),(9,20),(9,21),(9,22),(9,30),(9,31),(9,32),(9,33),(9,34),(9,35),(9,36),(9,37),(9,38),(9,39),(9,40),(9,41),(9,42),(9,43),(9,44),(9,45),(9,47),(9,48),(9,49),(9,50),(9,51),(9,52),(9,53),(9,54),(9,55),(9,56),(9,57),(9,58),(9,59),(9,60),(9,61),(9,62),(9,64),(9,65),(9,66),(11,6),(11,11),(13,1),(13,2),(13,3),(13,6),(13,11),(13,13),(15,1),(15,2),(15,3),(15,6),(15,11),(15,15),(15,35),(16,1),(16,2),(16,3),(16,6),(16,11),(16,13),(16,15),(16,16),(16,35),(17,1),(17,2),(17,3),(17,5),(17,6),(17,11),(17,13),(17,15),(17,16),(17,17),(17,18),(17,19),(17,20),(17,21),(17,33),(17,35),(17,36),(17,37),(17,39),(17,44),(17,47),(17,49),(17,50),(17,53),(17,56),(17,57),(17,58),(17,59),(17,64),(17,65),(18,1),(18,2),(18,3),(18,6),(18,11),(18,18),(19,1),(19,2),(19,3),(19,6),(19,11),(19,13),(19,18),(19,19),(19,21),(19,53),(20,1),(20,2),(20,3),(20,6),(20,11),(20,13),(20,15),(20,16),(20,18),(20,19),(20,20),(20,21),(20,35),(20,36),(20,44),(20,47),(20,49),(20,50),(20,53),(20,56),(20,57),(20,58),(20,59),(20,65),(21,1),(21,2),(21,3),(21,6),(21,11),(21,13),(21,18),(21,21),(21,53),(22,1),(22,2),(22,3),(22,6),(22,11),(22,13),(22,18),(22,21),(22,22),(22,53),(30,1),(30,2),(30,3),(30,5),(30,6),(30,11),(30,13),(30,15),(30,16),(30,18),(30,19),(30,20),(30,21),(30,22),(30,30),(30,33),(30,35),(30,36),(30,44),(30,47),(30,49),(30,50),(30,53),(30,56),(30,57),(30,58),(30,59),(30,64),(30,65),(31,1),(31,2),(31,3),(31,6),(31,11),(31,31),(32,1),(32,2),(32,3),(32,6),(32,11),(32,32),(33,33),(34,1),(34,2),(34,3),(34,6),(34,11),(34,13),(34,33),(34,34),(35,1),(35,2),(35,3),(35,6),(35,11),(35,35),(36,1),(36,2),(36,3),(36,6),(36,11),(36,36),(36,44),(36,47),(37,1),(37,2),(37,3),(37,6),(37,11),(37,37),(38,1),(38,2),(38,3),(38,6),(38,11),(38,37),(38,38),(38,64),(39,1),(39,2),(39,3),(39,5),(39,6),(39,11),(39,13),(39,18),(39,21),(39,33),(39,39),(39,53),(39,56),(39,57),(40,1),(40,2),(40,3),(40,6),(40,11),(40,40),(41,1),(41,2),(41,3),(41,6),(41,11),(41,13),(41,35),(41,40),(41,41),(42,1),(42,2),(42,3),(42,6),(42,11),(42,42),(43,1),(43,2),(43,3),(43,6),(43,11),(43,13),(43,42),(43,43),(44,1),(44,2),(44,3),(44,6),(44,11),(44,44),(45,1),(45,2),(45,3),(45,6),(45,11),(45,13),(45,44),(45,45),(47,1),(47,2),(47,3),(47,6),(47,11),(47,47),(48,1),(48,2),(48,3),(48,6),(48,11),(48,13),(48,47),(48,48),(49,1),(49,2),(49,3),(49,6),(49,11),(49,36),(49,44),(49,47),(49,49),(49,58),(50,1),(50,2),(50,3),(50,6),(50,11),(50,13),(50,36),(50,44),(50,47),(50,49),(50,50),(50,56),(50,57),(50,58),(50,59),(51,1),(51,2),(51,3),(51,6),(51,11),(51,51),(52,1),(52,2),(52,3),(52,6),(52,11),(52,13),(52,18),(52,19),(52,21),(52,35),(52,51),(52,52),(52,53),(53,1),(53,2),(53,3),(53,6),(53,11),(53,53),(54,1),(54,2),(54,3),(54,6),(54,11),(54,54),(55,1),(55,2),(55,3),(55,6),(55,11),(55,13),(55,54),(55,55),(56,1),(56,2),(56,3),(56,6),(56,11),(56,56),(57,1),(57,2),(57,3),(57,6),(57,11),(57,13),(57,56),(57,57),(58,1),(58,2),(58,3),(58,6),(58,11),(58,58),(59,1),(59,2),(59,3),(59,6),(59,11),(59,13),(59,58),(59,59),(60,1),(60,2),(60,3),(60,5),(60,6),(60,11),(60,13),(60,18),(60,21),(60,33),(60,36),(60,44),(60,47),(60,49),(60,50),(60,53),(60,56),(60,57),(60,58),(60,59),(60,60),(61,1),(61,2),(61,3),(61,6),(61,11),(61,13),(61,36),(61,44),(61,47),(61,61),(62,62),(64,64),(65,1),(65,2),(65,3),(65,6),(65,11),(65,13),(65,18),(65,19),(65,21),(65,36),(65,44),(65,47),(65,49),(65,50),(65,53),(65,56),(65,57),(65,58),(65,59),(65,65),(66,0),(66,1),(66,2),(66,3),(66,5),(66,6),(66,9),(66,11),(66,13),(66,15),(66,16),(66,17),(66,18),(66,19),(66,20),(66,21),(66,22),(66,30),(66,31),(66,32),(66,33),(66,34),(66,35),(66,36),(66,37),(66,38),(66,39),(66,40),(66,41),(66,42),(66,43),(66,44),(66,45),(66,47),(66,48),(66,49),(66,50),(66,51),(66,52),(66,53),(66,54),(66,55),(66,56),(66,57),(66,58),(66,59),(66,60),(66,61),(66,62),(66,64),(66,65),(66,66);
-/*!40000 ALTER TABLE `roleRole` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
--- Dump completed on 2019-10-29 8:19:04
USE `salix`;
--- MySQL dump 10.13 Distrib 5.7.27, for Linux (x86_64)
---
--- Host: db.verdnatura.es Database: salix
--- ------------------------------------------------------
--- Server version 5.6.25-4-log
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
---
--- Dumping data for table `ACL`
---
-
-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','employee'),(13,'Employee','*','READ','ALLOW','ROLE','employee'),(14,'PayMethod','*','READ','ALLOW','ROLE','employee'),(16,'FakeProduction','*','READ','ALLOW','ROLE','employee'),(17,'Warehouse','* ','READ','ALLOW','ROLE','employee'),(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','employee'),(30,'GreugeType','*','READ','ALLOW','ROLE','employee'),(31,'Mandate','*','READ','ALLOW','ROLE','employee'),(32,'MandateType','*','READ','ALLOW','ROLE','employee'),(33,'Company','*','READ','ALLOW','ROLE','employee'),(34,'Greuge','*','READ','ALLOW','ROLE','employee'),(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'),(48,'ItemNiche','*','READ','ALLOW','ROLE','employee'),(49,'ItemNiche','*','WRITE','ALLOW','ROLE','buyer'),(50,'ItemNiche','*','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','employee'),(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','removes','*','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','*','*','ALLOW','ROLE','employee'),(94,'Agency','landsThatDay','*','ALLOW','ROLE','employee'),(96,'ClaimEnd','*','READ','ALLOW','ROLE','employee'),(97,'ClaimEnd','*','WRITE','ALLOW','ROLE','salesAssistant'),(98,'ClaimBeginning','*','*','ALLOW','ROLE','employee'),(99,'ClaimDevelopment','*','READ','ALLOW','ROLE','employee'),(100,'ClaimDevelopment','*','WRITE','ALLOW','ROLE','salesAssistant'),(101,'Claim','*','*','ALLOW','ROLE','employee'),(102,'Claim','createFromSales','*','ALLOW','ROLE','employee'),(103,'ClaimEnd','importTicketSales','WRITE','ALLOW','ROLE','salesAssistant'),(104,'Item','*','WRITE','ALLOW','ROLE','marketingBoss'),(105,'ItemBarcode','*','WRITE','ALLOW','ROLE','marketingBoss'),(106,'ItemBotanical','*','WRITE','ALLOW','ROLE','marketingBoss'),(107,'ItemNiche','*','WRITE','ALLOW','ROLE','marketingBoss'),(108,'ItemPlacement','*','WRITE','ALLOW','ROLE','marketingBoss'),(109,'UserConfig','*','*','ALLOW','ROLE','employee'),(110,'Bank','*','READ','ALLOW','ROLE','employee'),(111,'ClientLog','*','READ','ALLOW','ROLE','employee'),(112,'Defaulter','*','READ','ALLOW','ROLE','employee'),(113,'ClientRisk','*','READ','ALLOW','ROLE','employee'),(114,'Receipt','*','READ','ALLOW','ROLE','employee'),(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','employee'),(132,'CreditClassification','*','READ','ALLOW','ROLE','employee'),(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','*','WRITE','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,'WorkerCalendar','*','READ','ALLOW','ROLE','hr'),(156,'WorkerLabour','*','READ','ALLOW','ROLE','hr'),(157,'WorkerCalendar','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'),(164,'InvoiceOut','regenerate','WRITE','ALLOW','ROLE','invoicing'),(165,'TicketDms','*','READ','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','employee'),(187,'Ticket','uploadFile','WRITE','ALLOW','ROLE','employee'),(188,'TicketDms','removeFile','WRITE','ALLOW','ROLE','employee'),(189,'TicketDms','*','READ','ALLOW','ROLE','employee'),(190,'Route','updateVolume','WRITE','ALLOW','ROLE','deliveryBoss'),(191,'Agency','getLanded','READ','ALLOW','ROLE','employee'),(192,'Agency','getShipped','READ','ALLOW','ROLE','employee'),(193,'Zone','editPrices','WRITE','ALLOW','ROLE','deliveryBoss'),(194,'Postcode','*','WRITE','ALLOW','ROLE','employee'),(195,'Ticket','addSale','WRITE','ALLOW','ROLE','employee'),(196,'Dms','updateFile','WRITE','ALLOW','ROLE','employee'),(197,'Dms','*','READ','ALLOW','ROLE','employee'),(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');
-/*!40000 ALTER TABLE `ACL` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Dumping data for table `fieldAcl`
---
-
-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');
-/*!40000 ALTER TABLE `fieldAcl` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
--- Dump completed on 2019-10-29 8:19:04
USE `vn`;
--- MySQL dump 10.13 Distrib 5.7.27, for Linux (x86_64)
---
--- Host: db.verdnatura.es Database: vn
--- ------------------------------------------------------
--- Server version 5.6.25-4-log
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
---
--- Dumping data for table `alertLevel`
---
-
-LOCK TABLES `alertLevel` WRITE;
-/*!40000 ALTER TABLE `alertLevel` DISABLE KEYS */;
-INSERT INTO `alertLevel` VALUES ('DELIVERED',3),('FREE',0),('ON_PREPARATION',1),('PACKED',2);
-/*!40000 ALTER TABLE `alertLevel` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Dumping data for table `bookingPlanner`
---
-
-LOCK TABLES `bookingPlanner` WRITE;
-/*!40000 ALTER TABLE `bookingPlanner` DISABLE KEYS */;
-INSERT INTO `bookingPlanner` VALUES (5,'2017-06-30 22:00:00','4770000002','WORLD',1,4,1),(6,'2017-06-30 22:00:00','4770000010','NATIONAL',2,1,1),(8,'2017-06-30 22:00:00','4770000021','NATIONAL',3,2,1),(9,'2017-06-30 22:00:00','4770000101','EQU',3,1,1),(11,'2017-06-30 22:00:00','4770000110','EQU',2,1,1),(12,'2017-06-30 22:00:00','4770000215','EQU',4,2,1),(13,'2017-06-30 22:00:00','4770000521','EQU',5,2,1),(15,'2017-06-30 22:00:00','4771000000','CEE',2,1,1),(16,'2017-06-30 22:00:00','4771000001','CEE',5,3,1),(19,'2017-07-05 11:54:58','4770000020','NATIONAL',1,4,1),(20,'2017-07-05 12:09:24','4771000000','CEE',3,2,1),(21,'2017-07-05 12:09:24','4771000000','CEE',1,4,1),(22,'2017-07-05 12:12:14','4770000002','WORLD',2,1,1),(23,'2017-07-05 12:12:14','4770000002','WORLD',3,2,1),(24,'2017-07-06 08:07:21','4770000002','WORLD',1,4,5),(25,'2017-07-06 08:07:21','HolandaRED','NATIONAL',2,1,5),(27,'2017-07-06 08:07:21','HolandaGEN','NATIONAL',3,2,5),(32,'2017-07-06 08:07:21','4771000000','CEE',2,1,5),(33,'2017-07-06 08:07:21','4771000001','CEE',5,3,5),(34,'2017-07-06 08:07:21','4770000020','NATIONAL',1,4,5),(35,'2017-07-06 08:07:21','4771000000','CEE',3,2,5),(36,'2017-07-06 08:07:21','4771000000','CEE',1,4,5),(37,'2017-07-06 08:07:21','4770000002','WORLD',2,1,5),(38,'2017-07-06 08:07:21','4770000002','WORLD',3,2,5),(70,'2017-07-06 08:08:48','4770000002','WORLD',1,4,30),(71,'2017-07-06 08:08:48','IGIC reduc','NATIONAL',2,1,30),(72,'2017-07-06 08:08:48','4770000020','NATIONAL',1,4,30),(73,'2017-07-06 08:08:48','IGIC gener','NATIONAL',3,2,30),(78,'2017-07-06 08:08:48','4770000020','NATIONAL',1,4,30),(79,'2017-07-06 08:08:48','4770000002','WORLD',2,1,30),(80,'2017-07-06 08:08:48','4770000002','WORLD',3,2,30),(81,'2017-07-05 22:00:00','IGIC cero','NATIONAL',1,5,30),(82,'2019-01-01 11:51:56','4770000504','EQU',10,5,1),(83,'2019-09-11 10:54:03','4770000405','EQU',11,5,1),(84,'2019-09-11 10:58:17','4770000004','NATIONAL',9,5,1),(85,'2019-09-18 22:00:00','4771000000','CEE',6,5,1);
-/*!40000 ALTER TABLE `bookingPlanner` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Dumping data for table `cplusInvoiceType477`
---
-
-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');
-/*!40000 ALTER TABLE `cplusInvoiceType477` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Dumping data for table `cplusSubjectOp`
---
-
-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');
-/*!40000 ALTER TABLE `cplusSubjectOp` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Dumping data for table `cplusTaxBreak`
---
-
-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');
-/*!40000 ALTER TABLE `cplusTaxBreak` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Dumping data for table `pgc`
---
-
-LOCK TABLES `pgc` WRITE;
-/*!40000 ALTER TABLE `pgc` DISABLE KEYS */;
-INSERT INTO `pgc` VALUES ('4722000000',0.00,'Importación Exento ',1,0,0,1),('4722000010',10.00,'Importación Reducido ',1,0,0,1),('4722000021',21.00,'Importación General ',1,0,0,1),('4770000001',8.00,'Reducido',1,1,1,1),('4770000002',0.00,'Extra-Community supply',3,1,0,2),('4770000004',4.00,'Super reducido',1,1,1,1),('4770000010',10.00,'Reducido',1,1,1,1),('4770000020',0.00,'Exento',7,1,1,1),('4770000021',21.00,'General',1,1,1,1),('4770000101',10.00,'Reducido ',1,1,1,1),('4770000108',8.00,'Reducido',1,1,1,1),('4770000110',1.40,'Rec. Eq. Reducido',1,0,0,1),('4770000215',21.00,'General',1,1,1,1),('4770000405',0.50,'Rec. Eq. Super Reducido',1,0,0,1),('4770000504',4.00,'Super reducido',1,1,1,1),('4770000521',5.20,'Rec. Eq. General',1,0,0,1),('4770000701',1.00,'Rec. Eq. Reducido',1,0,0,1),('4771000000',0.00,'Intra-Community supply',6,1,1,1),('4771000001',0.00,'Intra-Community services',7,1,1,1),('HolandaGEN',21.00,'General',1,0,0,1),('HolandaRED',9.00,'Reducido',1,0,0,1),('IGIC cero',0.00,'Cero',1,0,0,1),('IGIC gener',6.50,'General',1,0,0,1),('IGIC reduc',3.00,'Reducido',1,0,0,1);
-/*!40000 ALTER TABLE `pgc` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Dumping data for table `tag`
---
-
-LOCK TABLES `tag` WRITE;
-/*!40000 ALTER TABLE `tag` DISABLE KEYS */;
-INSERT INTO `tag` VALUES (1,'color','Color',0,0,'ink',NULL,NULL),(2,'','Forma',1,0,NULL,NULL,NULL),(3,'','Material',1,0,NULL,NULL,NULL),(4,'','Longitud',1,1,NULL,'mm',NULL),(5,'','Diámetro',1,1,NULL,'mm',NULL),(6,'','Perímetro',1,1,NULL,'mm',NULL),(7,'','Ancho de la base',1,1,NULL,'mm',NULL),(8,'','Altura',1,1,NULL,'mm',NULL),(9,'','Volumen',1,1,NULL,'ml',NULL),(10,'','Densidad',1,1,NULL,NULL,NULL),(11,'','Calidad',1,0,NULL,NULL,NULL),(12,'','Textura',1,0,NULL,NULL,NULL),(13,'','Material del mango',1,0,NULL,NULL,NULL),(14,'','Compra mínima',1,0,NULL,NULL,NULL),(15,'','Nº pétalos',1,1,NULL,NULL,NULL),(16,'','Ancho',1,1,NULL,'mm',NULL),(18,'','Profundidad',1,1,NULL,'mm',NULL),(19,'','Largo',1,1,NULL,'mm',NULL),(20,'','Ancho superior',1,1,NULL,'mm',NULL),(21,'','Ancho inferior',1,1,NULL,'mm',NULL),(22,'','Gramaje',1,1,NULL,'g',NULL),(23,'stems','Tallos',1,1,NULL,NULL,NULL),(24,'','Estado',1,0,NULL,NULL,NULL),(25,'','Color principal',0,0,'ink',NULL,NULL),(26,'','Color secundario',0,0,'ink',NULL,NULL),(27,'','Longitud(cm)',1,1,NULL,'cm',NULL),(28,'','Diámetro base',1,1,'','mm',NULL),(29,'','Colección',1,0,NULL,NULL,NULL),(30,'','Uds / caja',1,1,NULL,NULL,NULL),(31,'','Contenido',1,0,NULL,NULL,NULL),(32,'','Peso',1,1,NULL,'g',NULL),(33,'','Grosor',1,1,NULL,'mm',NULL),(34,'','Marca',1,0,NULL,NULL,NULL),(35,'origin','Origen',0,0,'origin',NULL,NULL),(36,'','Proveedor',1,0,NULL,NULL,NULL),(37,'producer','Productor',0,0,'producer',NULL,NULL),(38,'','Duración',1,1,NULL,'s',NULL),(39,'','Flor',1,0,NULL,NULL,NULL),(40,'','Soporte',1,0,NULL,NULL,NULL),(41,'','Tamaño flor',1,0,NULL,NULL,NULL),(42,'','Apertura',1,0,NULL,NULL,NULL),(43,'','Tallo',1,0,NULL,NULL,NULL),(44,'','Nº hojas',1,1,NULL,NULL,NULL),(45,'','Dimensiones',1,0,NULL,NULL,NULL),(46,'','Diámetro boca',1,1,NULL,'mm',NULL),(47,'','Nº flores',1,1,NULL,NULL,NULL),(48,'','Uds / paquete',1,1,NULL,NULL,NULL),(49,'','Maceta',1,1,NULL,'cm',NULL),(50,'','Textura flor',1,0,NULL,NULL,NULL),(51,'','Textura hoja',1,0,NULL,NULL,NULL),(52,'','Tipo de IVA',1,0,NULL,NULL,NULL),(53,'','Tronco',1,0,NULL,NULL,NULL),(54,'','Hoja',1,0,NULL,NULL,NULL),(55,'','Formato',1,0,NULL,NULL,NULL),(56,'','Genero',1,0,NULL,NULL,NULL),(57,'','Especie',1,0,NULL,NULL,NULL),(58,'','Variedad',1,0,NULL,NULL,NULL),(59,'','Medida grande',1,0,NULL,NULL,NULL),(60,'','Medida mediano',1,0,NULL,NULL,NULL),(61,'','Medida pequeño',1,0,NULL,NULL,NULL),(62,'','Medida pequeño',1,0,NULL,NULL,NULL),(63,'','Recipiente interior',1,0,NULL,NULL,NULL),(64,'','Material secundario',1,0,NULL,NULL,NULL),(65,'','Colores',1,0,NULL,NULL,NULL),(66,'','Referencia',1,0,NULL,NULL,NULL),(67,'','Categoria',1,0,NULL,NULL,NULL),(68,'','Amb',1,0,NULL,NULL,NULL),(69,'','Anchura',1,1,NULL,'cm',NULL),(70,'','Hueco interior',1,0,NULL,NULL,NULL),(71,'','Tamaño',1,0,NULL,NULL,NULL),(72,'','Color botón',1,0,NULL,NULL,NULL),(73,'','Tamaño minimo del botón',1,0,NULL,NULL,NULL),(74,'','Obtentor',1,0,NULL,NULL,NULL),(75,'','Longitud del brote',1,0,NULL,NULL,NULL),(76,'','Tallos / u.v.',1,0,NULL,NULL,NULL),(77,'','Madera de',1,0,NULL,NULL,NULL),(78,'','Unidad de venta',1,0,NULL,NULL,NULL),(79,'','Temporal',1,0,NULL,NULL,NULL),(80,'','Gramaje/tallo',1,1,NULL,'g',NULL),(81,'','Peso/paquete',1,1,NULL,'g',NULL),(82,'','Flexibilidad del tallo',1,0,NULL,NULL,NULL),(83,'','Nº planchas',1,1,NULL,NULL,NULL),(84,'','Nº páginas',1,1,NULL,NULL,NULL),(85,'','Editorial',1,0,NULL,NULL,NULL),(86,'','Idioma',1,0,NULL,NULL,NULL),(87,'','Fecha publicación',1,0,NULL,NULL,NULL),(88,'','Cubierta',1,0,NULL,NULL,NULL),(89,'','Encuadernación',1,0,NULL,NULL,NULL),(90,'','Autor',1,0,NULL,NULL,NULL),(91,'','Envoltorio',1,0,NULL,NULL,NULL),(92,'','Nombre temporal',1,0,NULL,NULL,NULL),(93,'','Modelo',1,0,NULL,NULL,NULL),(94,'','Producto',1,0,NULL,NULL,NULL),(95,'','Título',1,0,NULL,NULL,NULL),(96,'','Tomo',1,0,NULL,NULL,NULL),(97,'','Articulo',1,0,NULL,NULL,NULL),(98,'','Metodo de cultivo',1,0,NULL,NULL,NULL),(99,'','Edad',1,0,NULL,NULL,NULL),(100,'','Agotado',1,0,NULL,NULL,NULL),(101,'','Altura con asa',1,1,NULL,'cm',NULL),(102,'','Nº tallos',1,1,NULL,NULL,NULL),(103,'','Cultivo',1,0,NULL,NULL,NULL),(104,'','Sabor',1,0,NULL,NULL,NULL),(105,'','Talla',1,0,NULL,NULL,NULL),(106,'','Calibre',1,1,NULL,NULL,NULL),(107,'','Dulzura',1,1,NULL,'bx',NULL),(108,'','Piezas',1,0,NULL,NULL,NULL),(109,'','Altura con patas',1,0,NULL,NULL,NULL);
-/*!40000 ALTER TABLE `tag` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Dumping data for table `claimResponsible`
---
-
-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),(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);
-/*!40000 ALTER TABLE `claimResponsible` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Dumping data for table `claimReason`
---
-
-LOCK TABLES `claimReason` WRITE;
-/*!40000 ALTER TABLE `claimReason` DISABLE KEYS */;
-INSERT INTO `claimReason` VALUES (1,'Prisas'),(2,'Novato'),(3,'Exceso de confianza'),(4,'Exceso de celo'),(5,'Indiferencia'),(6,'Extraviado o Hurto'),(7,'Incompetencia'),(8,'Ubicación erronea'),(9,'Dat.Inctos/Pak.conf'),(10,'Datos duplicados'),(11,'Fallo stock'),(12,'Innovación'),(13,'Distracción'),(15,'Portes indebidos'),(16,'Baja calidad'),(17,'Defectuoso'),(19,'Endiñado'),(20,'Calor'),(21,'Frio'),(22,'Cambiado'),(24,'Cansancio'),(25,'Mal etiquetado'),(26,'Cantidad malentendido'),(30,'No revisado'),(34,'Error fotografia'),(40,'Fallo Personal VN'),(41,'Fallo Personal Cliente'),(42,'Otros'),(43,'Precio alto'),(44,'Abuso de confianza'),(45,'Retraso Agencia'),(46,'Delicado');
-/*!40000 ALTER TABLE `claimReason` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Dumping data for table `claimRedelivery`
---
-
-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');
-/*!40000 ALTER TABLE `claimRedelivery` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Dumping data for table `claimResult`
---
-
-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');
-/*!40000 ALTER TABLE `claimResult` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Dumping data for table `ticketUpdateAction`
---
-
-LOCK TABLES `ticketUpdateAction` WRITE;
-/*!40000 ALTER TABLE `ticketUpdateAction` DISABLE KEYS */;
-INSERT INTO `ticketUpdateAction` VALUES (1,'Cambiar los precios en el ticket'),(3,'Convertir en maná');
-/*!40000 ALTER TABLE `ticketUpdateAction` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Dumping data for table `state`
---
-
-LOCK TABLES `state` WRITE;
-/*!40000 ALTER TABLE `state` DISABLE KEYS */;
-INSERT INTO `state` VALUES (1,'Arreglar',2,0,'FIXING',NULL,1,0,0),(2,'Libre',1,0,'FREE',NULL,2,0,0),(3,'OK',3,0,'OK',3,28,1,0),(4,'Impreso',4,1,'PRINTED',2,29,1,0),(5,'Preparación',5,1,'ON_PREPARATION',7,5,0,0),(6,'En Revisión',7,1,'ON_CHECKING',NULL,6,0,1),(7,'Sin Acabar',2,0,'NOT_READY',NULL,7,0,0),(8,'Revisado',8,1,'CHECKED',NULL,8,0,1),(9,'Encajando',9,1,'PACKING',NULL,9,0,1),(10,'Encajado',10,2,'PACKED',NULL,10,0,1),(11,'Facturado',0,0,'INVOICED',NULL,11,0,1),(12,'Bloqueado',0,0,'BLOCKED',NULL,12,0,0),(13,'En Reparto',11,3,'ON_DELIVERY',NULL,13,0,1),(14,'Preparado',6,1,'PREPARED',NULL,14,0,1),(15,'Pte Recogida',12,3,'WAITING_FOR_PICKUP',NULL,15,0,1),(16,'Entregado',13,3,'DELIVERED',NULL,16,0,1),(17,'Eliminado',14,3,'ERASED',NULL,17,0,0),(20,'Asignado',4,1,'PICKER_DESIGNED',NULL,20,1,0),(21,'Retornado',4,1,'PRINTED_BACK',6,21,0,0),(22,'¿Fecha?',2,0,'WRONG_DATE',NULL,22,0,0),(23,'URGENTE',2,0,'LAST_CALL',NULL,23,1,0),(24,'Encadenado',3,0,'CHAINED',4,24,0,0),(25,'Embarcando',3,0,'BOARDING',5,25,0,0),(26,'Prep Previa',5,1,'PREVIOUS_PREPARATION',1,26,0,0),(27,'Prep Asistida',5,1,'ASSISTED_PREPARATION',7,27,0,0),(28,'Previa OK',3,1,'OK PREVIOUS',3,28,1,0),(29,'Previa Impreso',4,1,'PRINTED PREVIOUS',2,29,1,0);
-/*!40000 ALTER TABLE `state` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
--- Dump completed on 2019-10-29 8:19:05
USE `vn2008`;
--- MySQL dump 10.13 Distrib 5.7.27, for Linux (x86_64)
---
--- Host: db.verdnatura.es Database: vn2008
--- ------------------------------------------------------
--- Server version 5.6.25-4-log
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
---
--- Dumping data for table `accion_dits`
---
-
-LOCK TABLES `accion_dits` WRITE;
-/*!40000 ALTER TABLE `accion_dits` DISABLE KEYS */;
-INSERT INTO `accion_dits` VALUES (0,'Abono del ticket'),(104,'Abre a pesar del aviso'),(81,'Abre Entrada'),(116,'Abre Margenes'),(31,'Abre ticket'),(149,'Abre traslado'),(148,'Abre travel'),(12,'Acepta envio'),(64,'Acepta envio a pesar del aviso'),(23,'Aglutinació'),(92,'Añade credito'),(112,'Añade linea'),(132,'Añade manualmente Preparacion'),(33,'Añade promoción'),(144,'Añade ticket'),(129,'Bioniza Linea'),(130,'Bioniza Lineas Ok'),(128,'Bioniza Ticket'),(133,'Borra expedition'),(63,'Borrar promoción'),(80,'Cambia'),(106,'Cambia Activo'),(119,'Cambia Agencia'),(60,'Cambia almacen'),(56,'Cambia Article'),(53,'Cambia cantidad'),(78,'Cambia Categoria'),(34,'Cambia Cliente'),(74,'Cambia Color'),(110,'Cambia Comercial'),(166,'Cambia concepto'),(137,'Cambia Conductor'),(82,'Cambia Consignatario'),(105,'Cambia Contabilizada'),(142,'Cambia Coste'),(114,'Cambia Costefijo'),(108,'Cambia crédito'),(97,'Cambia CyC'),(126,'Cambia de agencia sin eliminar la ruta'),(89,'Cambia delivered'),(98,'Cambia Descuento'),(163,'Cambia el turno'),(3,'Cambia Empresa'),(147,'Cambia etiquetas'),(107,'Cambia Factura mail'),(6,'Cambia Fecha'),(37,'Cambia forma de pago'),(122,'Cambia gestdoc_id'),(135,'Cambia grouping y lo falca'),(1,'Cambia hora'),(143,'Cambia hora fin'),(118,'Cambia Id_Agencia'),(140,'Cambia km_end'),(139,'Cambia km_start'),(90,'Cambia landing'),(79,'Cambia Medida'),(77,'Cambia Nicho'),(120,'Cambia No Vincular'),(14,'Cambia obs de:'),(141,'Cambia Ok'),(73,'Cambia Origen'),(150,'Cambia packing'),(117,'Cambia Precio'),(85,'Cambia Received'),(131,'Cambia Recibido Core VNH'),(72,'Cambia Recibido Sepa'),(161,'Cambia salario'),(86,'Cambia Shipment'),(11,'Cambia solucion'),(76,'Cambia Tallos'),(109,'Cambia Tarifa '),(13,'Cambia Tipo'),(121,'Cambia Todos a No Vincular'),(138,'Cambia Vehiculo'),(94,'Cambia Vencimiento'),(88,'Cambia Warehouse de entrada'),(87,'Cambia Warehouse de salida'),(115,'Cambiazo'),(61,'Cambio de fecha'),(93,'Cobro Web'),(32,'Crea Cliente'),(145,'Crea clon'),(83,'Crea Entrada'),(19,'Crea Promoción'),(136,'Crea Ruta'),(84,'Crea Ticket'),(51,'Crea Utilidades->Abono desde el Ticket'),(52,'CREDITO SUPERADO'),(30,'DESBLOQUEA A PESAR DEL AVISO'),(8,'Desbloquea en preparación'),(5,'Desbloquea servido'),(9,'Desmarca seguro'),(54,'Elimina'),(127,'Elimina desde traslado'),(156,'Elimina horario'),(125,'Elimina la ruta por cambio de agencia'),(167,'Elimina la ruta por cambio de consignatario'),(168,'Elimina la ruta por cambio de fecha'),(160,'Elimina precio'),(165,'Elimina ticket turno'),(153,'Elimina zona'),(22,'Eliminación ticket'),(57,'Envia por AZKAR 13 a pesar del aviso'),(68,'Envio a'),(28,'FACTURA MULTIPLE'),(29,'FACTURA RAPIDA'),(111,'Factura Serie'),(58,'FALCA PREU'),(113,'Fusion'),(36,'Genera un abono santos al ticket'),(66,'Genera una reserva santos al ticket'),(69,'Hace click en Pedido'),(20,'Hace click en Ver'),(18,'Imprime CTRL_F5'),(134,'Imprime Ctrl_F5 con credito superado'),(26,'Imprimir Albarán'),(96,'Inserta cantidad en negativo'),(155,'Inserta horario'),(158,'Inserta precio'),(164,'Inserta ticket turno'),(95,'Inserta travel'),(151,'Inserta zona'),(124,'Intenta recalcular tarifas'),(59,'LLIBERA PREU'),(4,'Marca como Servido'),(7,'Marca en preparación'),(10,'Marca seguro de verano'),(157,'Modifica horario'),(159,'Modifica precio'),(154,'Modifica zona'),(99,'No desbloquea los precios'),(103,'No especificado'),(71,'No respeta disponible'),(101,'No respeta grouping'),(100,'No respeta packing'),(123,'Recalcula tarifas'),(2,'Recalculació'),(16,'Reimprime F5'),(67,'Reimprime F5 a pesar del aviso'),(65,'Reserva santos del ticket'),(146,'Revisa Ticket desde Web'),(70,'Revisado PDA'),(50,'S\'ha utilitzat la funció Imprimir_Etiquetas del TPV'),(27,'Se envia a revision'),(91,'Se imprime split'),(15,'SMS'),(102,'Split a MERCAFLOR'),(21,'Ticket Split(Automático)'),(25,'TOUR desde ticket'),(24,'TOUR hacia ticket'),(162,'Validado'),(17,'Visualiza CTRL_F5');
-/*!40000 ALTER TABLE `accion_dits` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Dumping data for table `container`
---
-
-LOCK TABLES `container` WRITE;
-/*!40000 ALTER TABLE `container` DISABLE KEYS */;
-INSERT INTO `container` VALUES (1,'atado'),(2,'bandeja'),(3,'blister'),(4,'bola'),(5,'bolsa'),(6,'bote'),(7,'botella'),(8,'bulto'),(9,'caja'),(10,'capazo'),(11,'CC'),(13,'cubo'),(14,'ejemplar'),(15,'expositor'),(16,'fardo'),(17,'full'),(18,'garba'),(21,'maceta'),(22,'macetero'),(23,'metro'),(24,'pack'),(25,'paquete'),(26,'pieza'),(27,'rollo'),(28,'saco'),(29,'set'),(30,'sobre'),(31,'tabaco'),(32,'tallo'),(33,'tubo'),(34,'vaso'),(35,'x 2 media'),(36,NULL),(37,'pallet');
-/*!40000 ALTER TABLE `container` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Dumping data for table `department`
---
-
-LOCK TABLES `department` WRITE;
-/*!40000 ALTER TABLE `department` DISABLE KEYS */;
-INSERT INTO `department` VALUES (1,'VERDNATURA',1,78,1,0,NULL,NULL,NULL,0,0,0,0),(22,'COMPRAS',65,66,NULL,72,596,2,5,0,0,1,0),(23,'CAMARA',41,42,NULL,72,604,2,6,1,0,0,0),(31,'INFORMATICA',11,12,NULL,72,127,3,9,0,0,0,0),(34,'CONTABILIDAD',4,5,NULL,0,NULL,NULL,NULL,0,0,0,0),(35,'FINANZAS',6,7,NULL,0,NULL,NULL,NULL,0,0,0,0),(36,'LABORAL',8,9,NULL,0,NULL,NULL,NULL,0,0,0,0),(37,'PRODUCCION',15,24,NULL,72,230,3,11,0,0,0,0),(38,'SACADO',20,21,NULL,72,230,4,14,1,0,0,0),(39,'ENCAJADO',22,23,NULL,72,230,4,12,1,0,0,0),(41,'ADMINISTRACION',3,10,NULL,72,599,3,8,0,0,0,0),(43,'VENTAS',51,64,NULL,0,NULL,NULL,NULL,0,0,0,0),(44,'GERENCIA',2,25,NULL,72,300,2,7,0,0,0,0),(45,'LOGISTICA',26,37,NULL,72,596,3,19,0,0,0,0),(46,'REPARTO',38,39,NULL,72,659,3,10,0,0,0,0),(48,'ALMACENAJE',40,47,NULL,0,NULL,NULL,NULL,0,0,0,0),(49,'PROPIEDAD',48,75,NULL,72,1008,1,1,0,0,0,0),(52,'CARGA AEREA',27,28,NULL,72,163,4,28,0,0,0,0),(53,'MARKETING Y COMUNICACIÓN',60,61,NULL,72,1238,0,0,0,0,0,0),(54,'ORNAMENTALES',76,77,NULL,72,433,3,21,0,0,0,0),(55,'TALLER NATURAL',68,69,NULL,72,695,2,23,0,0,0,0),(56,'TALLER ARTIFICIAL',70,71,NULL,72,1780,2,24,0,0,0,0),(58,'CAMPOS',73,74,NULL,72,225,2,2,0,0,0,0),(59,'MANTENIMIENTO',49,50,NULL,72,1907,4,16,0,0,0,0),(60,'RECLAMACIONES',58,59,NULL,72,563,3,20,0,0,0,0),(61,'VNH',35,36,NULL,73,1297,3,17,0,0,0,0),(63,'VENTAS FRANCIA',62,63,NULL,72,277,2,27,0,0,0,0),(66,'VERDNAMADRID',31,32,NULL,72,163,3,18,0,0,0,0),(68,'COMPLEMENTOS',43,44,NULL,72,617,3,26,1,0,0,0),(69,'VERDNABARNA',33,34,NULL,74,432,3,22,0,0,0,0),(77,'PALETIZADO',18,19,NULL,72,230,4,15,1,0,0,0),(80,'EQUIPO J VALLES',56,57,NULL,72,693,3,4,0,0,0,0),(86,'LIMPIEZA',13,14,NULL,72,599,0,0,0,0,0,0),(89,'COORDINACION',16,17,NULL,0,NULL,NULL,NULL,1,0,0,0),(90,'TRAILER',29,30,NULL,0,NULL,NULL,NULL,0,0,0,0),(91,'ARTIFICIAL',45,46,NULL,0,NULL,NULL,NULL,1,0,0,0),(92,'EQUIPO SILVERIO',54,55,NULL,0,NULL,NULL,NULL,0,0,0,0),(93,'CONFECCION',67,72,NULL,0,NULL,NULL,NULL,0,0,0,0),(94,'EQUIPO J BROCAL',52,53,NULL,0,NULL,NULL,NULL,0,0,1,0);
-/*!40000 ALTER TABLE `department` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Dumping data for table `Grupos`
---
-
-LOCK TABLES `Grupos` WRITE;
-/*!40000 ALTER TABLE `Grupos` DISABLE KEYS */;
-INSERT INTO `Grupos` VALUES (1,'administrative','Contabilidad',5),(2,'administrator','Administradores',5),(3,'advancedUser','Usuarios avanzados',5),(4,'developer','Informaticos',4),(5,'clientManagement','Gestion Clientes',4),(6,'salesPerson','Comerciales',4),(7,'wages','Salarios',5),(8,'salesPersonDirector','Dir Comercial',4),(9,'advancedSalesPerson','Comercial avanzado',4),(10,'','Compradores',4),(11,'','Control descuentos',4),(12,'takeOrder','Sacador',1),(13,'packer','Encajador',2),(14,' deliveryMan','Repartidor',3),(15,'','No Recalcular',4),(17,'other','Otros',4),(18,'','Operaciones',4),(19,'','Visa',5),(20,'market','Mercado',4),(21,'','Gerencia',5),(22,'','ComercialExclusivo',4),(23,'','Responsables Entradas',5),(24,'teamBoss','Jefes de equipo',4),(25,'','Responsables Encajado',0),(26,'confection','Confeccion',0),(27,'claims','Reclamaciones',0),(28,'','Ranking Carteras Limpias',0),(29,'','No bionicos',0),(30,'','Tirar a Faltas',0),(31,'','Greuges',0),(32,'','Responsables Agencias',0),(33,'','Entradas EXPRESS',0),(34,'','Sustituciones',0),(35,'router','Enrutador',4);
-/*!40000 ALTER TABLE `Grupos` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
--- Dump completed on 2019-10-29 8:19:05
USE `bi`;
--- MySQL dump 10.13 Distrib 5.7.27, for Linux (x86_64)
---
--- Host: db.verdnatura.es Database: bi
--- ------------------------------------------------------
--- Server version 5.6.25-4-log
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
---
--- Dumping data for table `tarifa_componentes`
---
-
-LOCK TABLES `tarifa_componentes` WRITE;
-/*!40000 ALTER TABLE `tarifa_componentes` DISABLE KEYS */;
-INSERT INTO `tarifa_componentes` VALUES (10,'Precios Especiales',4,NULL,NULL,1,'specialPrices'),(14,'porte extra por dia semana',6,NULL,NULL,1,'extraCostPerWeekDay'),(15,'reparto',6,NULL,NULL,1,'delivery'),(17,'recobro',5,NULL,NULL,1,'debtCollection'),(21,'ajuste',12,NULL,NULL,1,'adjustment'),(22,'venta por paquete',9,1,NULL,0,'salePerPackage'),(23,'venta por caja',9,2,NULL,0,'salePerBox'),(28,'valor de compra',1,NULL,NULL,1,'purchaseValue'),(29,'margen',4,NULL,NULL,1,'margin'),(32,'descuento ultimas unidades',9,3,-0.05,0,'lastUnitsDiscount'),(33,'venta por caja',9,1,NULL,0,'salePerBox'),(34,'descuento comprador',4,NULL,NULL,1,'buyerDiscount'),(35,'cartera comprador',10,NULL,NULL,1,NULL),(36,'descuadre',11,NULL,NULL,1,'mismatch'),(37,'maná',7,4,NULL,0,'mana'),(38,'embolsado',9,NULL,NULL,1,'bagged'),(39,'maná auto',7,NULL,NULL,1,'autoMana'),(40,'cambios Santos 2016',4,NULL,NULL,1,NULL),(41,'bonificacion porte',4,NULL,NULL,1,'freightCharge');
-/*!40000 ALTER TABLE `tarifa_componentes` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Dumping data for table `tarifa_componentes_series`
---
-
-LOCK TABLES `tarifa_componentes_series` WRITE;
-/*!40000 ALTER TABLE `tarifa_componentes_series` DISABLE KEYS */;
-INSERT INTO `tarifa_componentes_series` VALUES (1,'coste',1,0),(2,'com ventas',1,1),(3,'com compras',1,1),(4,'empresa',1,1),(5,'cliente',0,0),(6,'agencia',0,0),(7,'cartera_comercial',0,1),(8,'cartera_producto',0,1),(9,'maniobra',1,1),(10,'cartera_comprador',0,1),(11,'errores',0,0),(12,'otros',0,0);
-/*!40000 ALTER TABLE `tarifa_componentes_series` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
--- Dump completed on 2019-10-29 8:19:05
USE `cache`;
--- MySQL dump 10.13 Distrib 5.7.27, for Linux (x86_64)
---
--- Host: db.verdnatura.es Database: cache
--- ------------------------------------------------------
--- Server version 5.6.25-4-log
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
---
--- Dumping data for table `cache`
---
-
-LOCK TABLES `cache` WRITE;
-/*!40000 ALTER TABLE `cache` DISABLE KEYS */;
-INSERT INTO `cache` VALUES (1,'equalizator','00:15:00'),(2,'available','00:06:00'),(3,'stock','00:30:00'),(4,'last_buy','00:30:00'),(5,'weekly_sales','12:00:00'),(6,'bionic','00:05:00'),(7,'sales','00:03:00'),(8,'visible','00:04:00'),(9,'item_range','00:03:00'),(10,'barcodes','01:00:00'),(11,'prod_graphic','00:15:00'),(12,'ticketShipping','00:01:00');
-/*!40000 ALTER TABLE `cache` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
--- Dump completed on 2019-10-29 8:19:05
USE `hedera`;
--- MySQL dump 10.13 Distrib 5.7.27, for Linux (x86_64)
---
--- Host: db.verdnatura.es Database: hedera
--- ------------------------------------------------------
--- Server version 5.6.25-4-log
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
---
--- Dumping data for table `imageCollection`
---
-
-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'),(4,'link','Enlace',200,200,'Link','image','hedera','link','image'),(5,'news','Noticias',800,1200,'New','image','hedera','news','image');
-/*!40000 ALTER TABLE `imageCollection` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Dumping data for table `tpvConfig`
---
-
-LOCK TABLES `tpvConfig` WRITE;
-/*!40000 ALTER TABLE `tpvConfig` DISABLE KEYS */;
-INSERT INTO `tpvConfig` VALUES (1,978,1,0,2000,4,'https://sis.redsys.es/sis/realizarPago',0,'https://sis-t.redsys.es:25443/sis/realizarPago','sq7HjrUOBfKmC576ILgskD5srU870gJ7',NULL);
-/*!40000 ALTER TABLE `tpvConfig` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Dumping data for table `tpvError`
---
-
-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');
-/*!40000 ALTER TABLE `tpvError` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Dumping data for table `tpvResponse`
---
-
-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');
-/*!40000 ALTER TABLE `tpvResponse` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
--- Dump completed on 2019-10-29 8:19:05
USE `postgresql`;
--- MySQL dump 10.13 Distrib 5.7.27, for Linux (x86_64)
---
--- Host: db.verdnatura.es Database: postgresql
--- ------------------------------------------------------
--- Server version 5.6.25-4-log
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
---
--- Dumping data for table `calendar_labour_type`
---
-
-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),(2,'Horario 35h/semana','00:20:00',35),(3,'Horario 20h/semana','00:00:00',20),(4,'Festivo y Fin de semana','00:00:00',0),(5,'Horario 30h/semana','00:20:00',30),(6,'Horario 25h/semana','00:20:00',25),(7,'Vacaciones trabajadas','00:00:00',0),(8,'Vacaciones','00:00:00',0),(9,'Horario 26h/semana','00:20:00',26),(10,'Horario 28h/semana','00:20:00',28),(11,'Horario 8h/semana','00:00:00',8),(12,'Horario 16h/semana','00:00:00',16),(13,'Horario 32h/semana','00:20:00',32),(14,'Horario 24h/semana','00:20:00',24),(15,'Horario 10h/semana','00:00:00',10),(16,'Horario 27,5h/semana','00:20:00',28),(17,'Horario 13,5h/semana','00:20:00',14),(18,'Horario 31h/semana',NULL,31),(19,'Horario 21,5h/semana',NULL,22),(20,'Horario 34h/semana',NULL,34),(21,'Horario 17h/semana',NULL,17),(22,'Horario 18h/semana',NULL,18),(23,'Horario 37,5 h/semana',NULL,38),(24,'Horario 29 h/semana',NULL,29),(25,'Horario 12h/semana',NULL,12),(26,'Horario 10h/semana',NULL,10),(27,'Horario 15h/semana',NULL,15),(28,'Horario 9h/semana',NULL,9),(29,'Horario 23h/semana',NULL,23),(30,'Horario 21h/semana',NULL,21),(31,'Horario 39h/semana',NULL,39),(32,'Horario 22/semana',NULL,22);
-/*!40000 ALTER TABLE `calendar_labour_type` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Dumping data for table `labour_agreement`
---
-
-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);
-/*!40000 ALTER TABLE `labour_agreement` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Dumping data for table `media_type`
---
-
-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');
-/*!40000 ALTER TABLE `media_type` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Dumping data for table `professional_category`
---
-
-LOCK TABLES `professional_category` WRITE;
-/*!40000 ALTER TABLE `professional_category` DISABLE KEYS */;
-INSERT INTO `professional_category` VALUES (1,'Mozos',5,1,27.5),(2,'Encargados',3,1,27.5),(4,'Comprador',3,1,27.5),(5,'Aux Administracion',4,1,27.5),(6,'Of Administracion',3,1,27.5),(7,'Jefe Administracion',2,1,27.5),(8,'Informatico',3,1,27.5),(9,'Directivo',1,0,27.5),(10,'Aux Ventas',4,1,27.5),(11,'Vendedor',4,1,27.5),(12,'Jefe de Ventas',4,0,27.5),(13,'Repartidor',5,1,27.5),(14,'Aprendices',6,1,27.5),(15,'Técnicos',2,1,27.5),(16,'Aux Florista',5,1,27.5),(17,'Florista',4,1,27.5),(18,'Jefe Floristas',2,1,27.5),(19,'Técnico marketing',3,1,27.5),(20,'Auxiliar marketing',4,1,27.5),(21,'Aux Informática',4,1,27.5),(22,'Peón agrícola',5,1,27.5),(23,'Oficial mantenimiento',4,1,27.5),(24,'Aux mantenimiento',5,1,27.5),(25,'Mozo Aeropuerto',5,1,27.5),(26,'Coordinador',2,1,27.5),(28,'Aux Logistica',4,1,27.5),(29,'Oficial Logistica',3,1,27.5),(30,'Subencargado',4,1,27.5);
-/*!40000 ALTER TABLE `professional_category` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Dumping data for table `profile_type`
---
-
-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');
-/*!40000 ALTER TABLE `profile_type` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Dumping data for table `workcenter`
---
-
-LOCK TABLES `workcenter` WRITE;
-/*!40000 ALTER TABLE `workcenter` DISABLE KEYS */;
-INSERT INTO `workcenter` VALUES (1,'Silla',20,1024,1),(2,'Mercaflor',19,NULL,NULL),(3,'Marjales',26,20007,NULL),(4,'VNH',NULL,NULL,3),(5,'Madrid',28,2851,5),(6,'Vilassar',88,88031,2),(7,'Tenerife',NULL,NULL,10),(8,'Silla-Agrario',26,2,NULL);
-/*!40000 ALTER TABLE `workcenter` ENABLE KEYS */;
-UNLOCK TABLES;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
--- Dump completed on 2019-10-29 8:19:06
diff --git a/db/export-data.sh b/db/export-data.sh
index 7b694ccde..a725133cd 100755
--- a/db/export-data.sh
+++ b/db/export-data.sh
@@ -46,7 +46,8 @@ TABLES=(
claimRedelivery
claimResult
ticketUpdateAction
- state
+ state,
+ sample
)
dump_tables ${TABLES[@]}
@@ -56,7 +57,6 @@ TABLES=(
businessReasonEnd
container
department
- escritos
Grupos
iva_group_codigo
tarifa_componentes
diff --git a/modules/client/front/sample/create/index.spec.js b/modules/client/front/sample/create/index.spec.js
index 06a9bdf09..de15e8a3c 100644
--- a/modules/client/front/sample/create/index.spec.js
+++ b/modules/client/front/sample/create/index.spec.js
@@ -40,9 +40,17 @@ describe('Client', () => {
controller = $componentController('vnClientSampleCreate', {$scope, $state});
}));
- xdescribe('showPreview()', () => {
+ describe('showPreview()', () => {
it(`should perform a query (GET) and open a sample preview`, () => {
spyOn(controller.$scope.showPreview, 'show');
+ const element = document.createElement('div');
+ document.body.querySelector = () => {
+ return {
+ querySelector: () => {
+ return element;
+ }
+ };
+ };
controller.$scope.sampleType.selection = {
hasCompany: false,
@@ -71,6 +79,14 @@ describe('Client', () => {
it(`should perform a query (GET) with companyFk param and open a sample preview`, () => {
spyOn(controller.$scope.showPreview, 'show');
+ const element = document.createElement('div');
+ document.body.querySelector = () => {
+ return {
+ querySelector: () => {
+ return element;
+ }
+ };
+ };
controller.$scope.sampleType.selection = {
hasCompany: true,
From 114e8c87d6f80957a9ae1ddf46c19442602709d4 Mon Sep 17 00:00:00 2001
From: Joan Sanchez
Date: Wed, 6 Nov 2019 10:56:18 +0100
Subject: [PATCH 11/18] export sample table
---
db/dump/dumpedFixtures.sql | 613 +++++++++++++++++++++++++++++++++++++
db/export-data.sh | 2 +-
2 files changed, 614 insertions(+), 1 deletion(-)
diff --git a/db/dump/dumpedFixtures.sql b/db/dump/dumpedFixtures.sql
index fa5776c5b..6cce49ba3 100644
--- a/db/dump/dumpedFixtures.sql
+++ b/db/dump/dumpedFixtures.sql
@@ -1,10 +1,623 @@
USE `util`;
+-- MySQL dump 10.13 Distrib 5.7.26, for Linux (x86_64)
+--
+-- Host: db.verdnatura.es Database: util
+-- ------------------------------------------------------
+-- Server version 5.6.25-4-log
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!40101 SET NAMES utf8 */;
+/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
+/*!40103 SET TIME_ZONE='+00:00' */;
+/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
+/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
+/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
+/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
+
+--
+-- Dumping data for table `config`
+--
+
+LOCK TABLES `config` WRITE;
+/*!40000 ALTER TABLE `config` DISABLE KEYS */;
+INSERT INTO `config` VALUES (1,'10080',0,'production',NULL);
+/*!40000 ALTER TABLE `config` ENABLE KEYS */;
+UNLOCK TABLES;
+/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
+
+/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
+/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
+/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
+/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
+/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
+/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
+/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
+
+-- Dump completed on 2019-11-06 10:53:41
USE `account`;
+-- MySQL dump 10.13 Distrib 5.7.26, for Linux (x86_64)
+--
+-- Host: db.verdnatura.es Database: account
+-- ------------------------------------------------------
+-- Server version 5.6.25-4-log
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!40101 SET NAMES utf8 */;
+/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
+/*!40103 SET TIME_ZONE='+00:00' */;
+/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
+/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
+/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
+/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
+
+--
+-- Dumping data for table `role`
+--
+
+LOCK TABLES `role` WRITE;
+/*!40000 ALTER TABLE `role` DISABLE KEYS */;
+INSERT INTO `role` VALUES (0,'root','Rol con todos los privilegios',0,'2018-04-23 14:33:36','2018-04-23 14:33:59'),(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 departamento',1,'2017-05-19 07:04:58','2017-05-19 07:04:58'),(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','Departamento de gerencia',1,'2017-06-01 14:57:02','2017-06-01 14:57:51'),(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',0,'2018-02-26 15:28:23','2019-01-21 12:57:21'),(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');
+/*!40000 ALTER TABLE `role` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `roleInherit`
+--
+
+LOCK TABLES `roleInherit` WRITE;
+/*!40000 ALTER TABLE `roleInherit` DISABLE KEYS */;
+INSERT INTO `roleInherit` VALUES (9,0),(66,0),(5,1),(13,1),(18,1),(31,1),(32,1),(34,1),(35,1),(37,1),(40,1),(42,1),(44,1),(47,1),(51,1),(53,1),(54,1),(56,1),(58,1),(1,2),(1,3),(30,5),(39,5),(60,5),(11,6),(1,11),(2,11),(3,11),(16,13),(20,13),(21,13),(22,13),(34,13),(41,13),(43,13),(45,13),(48,13),(50,13),(52,13),(55,13),(57,13),(59,13),(61,13),(16,15),(20,16),(21,18),(52,19),(65,19),(17,20),(30,20),(5,21),(19,21),(22,21),(39,21),(30,22),(5,33),(34,33),(15,35),(41,35),(52,35),(49,36),(61,36),(17,37),(38,37),(17,39),(41,40),(43,42),(36,44),(45,44),(36,47),(48,47),(50,49),(60,50),(65,50),(52,51),(21,53),(30,53),(55,54),(57,56),(39,57),(50,57),(60,57),(49,58),(59,58),(50,59),(17,64),(30,64),(38,64),(20,65);
+/*!40000 ALTER TABLE `roleInherit` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `roleRole`
+--
+
+LOCK TABLES `roleRole` WRITE;
+/*!40000 ALTER TABLE `roleRole` DISABLE KEYS */;
+INSERT INTO `roleRole` VALUES (0,0),(0,1),(0,2),(0,3),(0,5),(0,6),(0,9),(0,11),(0,13),(0,15),(0,16),(0,17),(0,18),(0,19),(0,20),(0,21),(0,22),(0,30),(0,31),(0,32),(0,33),(0,34),(0,35),(0,36),(0,37),(0,38),(0,39),(0,40),(0,41),(0,42),(0,43),(0,44),(0,45),(0,47),(0,48),(0,49),(0,50),(0,51),(0,52),(0,53),(0,54),(0,55),(0,56),(0,57),(0,58),(0,59),(0,60),(0,61),(0,62),(0,64),(0,65),(0,66),(1,1),(1,2),(1,3),(1,6),(1,11),(2,2),(2,6),(2,11),(3,3),(3,6),(3,11),(5,1),(5,2),(5,3),(5,5),(5,6),(5,11),(5,13),(5,18),(5,21),(5,33),(5,53),(6,6),(9,0),(9,1),(9,2),(9,3),(9,5),(9,6),(9,9),(9,11),(9,13),(9,15),(9,16),(9,17),(9,18),(9,19),(9,20),(9,21),(9,22),(9,30),(9,31),(9,32),(9,33),(9,34),(9,35),(9,36),(9,37),(9,38),(9,39),(9,40),(9,41),(9,42),(9,43),(9,44),(9,45),(9,47),(9,48),(9,49),(9,50),(9,51),(9,52),(9,53),(9,54),(9,55),(9,56),(9,57),(9,58),(9,59),(9,60),(9,61),(9,62),(9,64),(9,65),(9,66),(11,6),(11,11),(13,1),(13,2),(13,3),(13,6),(13,11),(13,13),(15,1),(15,2),(15,3),(15,6),(15,11),(15,15),(15,35),(16,1),(16,2),(16,3),(16,6),(16,11),(16,13),(16,15),(16,16),(16,35),(17,1),(17,2),(17,3),(17,5),(17,6),(17,11),(17,13),(17,15),(17,16),(17,17),(17,18),(17,19),(17,20),(17,21),(17,33),(17,35),(17,36),(17,37),(17,39),(17,44),(17,47),(17,49),(17,50),(17,53),(17,56),(17,57),(17,58),(17,59),(17,64),(17,65),(18,1),(18,2),(18,3),(18,6),(18,11),(18,18),(19,1),(19,2),(19,3),(19,6),(19,11),(19,13),(19,18),(19,19),(19,21),(19,53),(20,1),(20,2),(20,3),(20,6),(20,11),(20,13),(20,15),(20,16),(20,18),(20,19),(20,20),(20,21),(20,35),(20,36),(20,44),(20,47),(20,49),(20,50),(20,53),(20,56),(20,57),(20,58),(20,59),(20,65),(21,1),(21,2),(21,3),(21,6),(21,11),(21,13),(21,18),(21,21),(21,53),(22,1),(22,2),(22,3),(22,6),(22,11),(22,13),(22,18),(22,21),(22,22),(22,53),(30,1),(30,2),(30,3),(30,5),(30,6),(30,11),(30,13),(30,15),(30,16),(30,18),(30,19),(30,20),(30,21),(30,22),(30,30),(30,33),(30,35),(30,36),(30,44),(30,47),(30,49),(30,50),(30,53),(30,56),(30,57),(30,58),(30,59),(30,64),(30,65),(31,1),(31,2),(31,3),(31,6),(31,11),(31,31),(32,1),(32,2),(32,3),(32,6),(32,11),(32,32),(33,33),(34,1),(34,2),(34,3),(34,6),(34,11),(34,13),(34,33),(34,34),(35,1),(35,2),(35,3),(35,6),(35,11),(35,35),(36,1),(36,2),(36,3),(36,6),(36,11),(36,36),(36,44),(36,47),(37,1),(37,2),(37,3),(37,6),(37,11),(37,37),(38,1),(38,2),(38,3),(38,6),(38,11),(38,37),(38,38),(38,64),(39,1),(39,2),(39,3),(39,5),(39,6),(39,11),(39,13),(39,18),(39,21),(39,33),(39,39),(39,53),(39,56),(39,57),(40,1),(40,2),(40,3),(40,6),(40,11),(40,40),(41,1),(41,2),(41,3),(41,6),(41,11),(41,13),(41,35),(41,40),(41,41),(42,1),(42,2),(42,3),(42,6),(42,11),(42,42),(43,1),(43,2),(43,3),(43,6),(43,11),(43,13),(43,42),(43,43),(44,1),(44,2),(44,3),(44,6),(44,11),(44,44),(45,1),(45,2),(45,3),(45,6),(45,11),(45,13),(45,44),(45,45),(47,1),(47,2),(47,3),(47,6),(47,11),(47,47),(48,1),(48,2),(48,3),(48,6),(48,11),(48,13),(48,47),(48,48),(49,1),(49,2),(49,3),(49,6),(49,11),(49,36),(49,44),(49,47),(49,49),(49,58),(50,1),(50,2),(50,3),(50,6),(50,11),(50,13),(50,36),(50,44),(50,47),(50,49),(50,50),(50,56),(50,57),(50,58),(50,59),(51,1),(51,2),(51,3),(51,6),(51,11),(51,51),(52,1),(52,2),(52,3),(52,6),(52,11),(52,13),(52,18),(52,19),(52,21),(52,35),(52,51),(52,52),(52,53),(53,1),(53,2),(53,3),(53,6),(53,11),(53,53),(54,1),(54,2),(54,3),(54,6),(54,11),(54,54),(55,1),(55,2),(55,3),(55,6),(55,11),(55,13),(55,54),(55,55),(56,1),(56,2),(56,3),(56,6),(56,11),(56,56),(57,1),(57,2),(57,3),(57,6),(57,11),(57,13),(57,56),(57,57),(58,1),(58,2),(58,3),(58,6),(58,11),(58,58),(59,1),(59,2),(59,3),(59,6),(59,11),(59,13),(59,58),(59,59),(60,1),(60,2),(60,3),(60,5),(60,6),(60,11),(60,13),(60,18),(60,21),(60,33),(60,36),(60,44),(60,47),(60,49),(60,50),(60,53),(60,56),(60,57),(60,58),(60,59),(60,60),(61,1),(61,2),(61,3),(61,6),(61,11),(61,13),(61,36),(61,44),(61,47),(61,61),(62,62),(64,64),(65,1),(65,2),(65,3),(65,6),(65,11),(65,13),(65,18),(65,19),(65,21),(65,36),(65,44),(65,47),(65,49),(65,50),(65,53),(65,56),(65,57),(65,58),(65,59),(65,65),(66,0),(66,1),(66,2),(66,3),(66,5),(66,6),(66,9),(66,11),(66,13),(66,15),(66,16),(66,17),(66,18),(66,19),(66,20),(66,21),(66,22),(66,30),(66,31),(66,32),(66,33),(66,34),(66,35),(66,36),(66,37),(66,38),(66,39),(66,40),(66,41),(66,42),(66,43),(66,44),(66,45),(66,47),(66,48),(66,49),(66,50),(66,51),(66,52),(66,53),(66,54),(66,55),(66,56),(66,57),(66,58),(66,59),(66,60),(66,61),(66,62),(66,64),(66,65),(66,66);
+/*!40000 ALTER TABLE `roleRole` ENABLE KEYS */;
+UNLOCK TABLES;
+/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
+
+/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
+/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
+/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
+/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
+/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
+/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
+/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
+
+-- Dump completed on 2019-11-06 10:53:41
USE `salix`;
+-- MySQL dump 10.13 Distrib 5.7.26, for Linux (x86_64)
+--
+-- Host: db.verdnatura.es Database: salix
+-- ------------------------------------------------------
+-- Server version 5.6.25-4-log
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!40101 SET NAMES utf8 */;
+/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
+/*!40103 SET TIME_ZONE='+00:00' */;
+/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
+/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
+/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
+/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
+
+--
+-- Dumping data for table `ACL`
+--
+
+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','employee'),(13,'Employee','*','READ','ALLOW','ROLE','employee'),(14,'PayMethod','*','READ','ALLOW','ROLE','employee'),(16,'FakeProduction','*','READ','ALLOW','ROLE','employee'),(17,'Warehouse','* ','READ','ALLOW','ROLE','employee'),(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','employee'),(30,'GreugeType','*','READ','ALLOW','ROLE','employee'),(31,'Mandate','*','READ','ALLOW','ROLE','employee'),(32,'MandateType','*','READ','ALLOW','ROLE','employee'),(33,'Company','*','READ','ALLOW','ROLE','employee'),(34,'Greuge','*','READ','ALLOW','ROLE','employee'),(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'),(48,'ItemNiche','*','READ','ALLOW','ROLE','employee'),(49,'ItemNiche','*','WRITE','ALLOW','ROLE','buyer'),(50,'ItemNiche','*','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','employee'),(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','removes','*','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','*','*','ALLOW','ROLE','employee'),(94,'Agency','landsThatDay','*','ALLOW','ROLE','employee'),(96,'ClaimEnd','*','READ','ALLOW','ROLE','employee'),(97,'ClaimEnd','*','WRITE','ALLOW','ROLE','salesAssistant'),(98,'ClaimBeginning','*','*','ALLOW','ROLE','employee'),(99,'ClaimDevelopment','*','READ','ALLOW','ROLE','employee'),(100,'ClaimDevelopment','*','WRITE','ALLOW','ROLE','salesAssistant'),(101,'Claim','*','*','ALLOW','ROLE','employee'),(102,'Claim','createFromSales','*','ALLOW','ROLE','employee'),(103,'ClaimEnd','importTicketSales','WRITE','ALLOW','ROLE','salesAssistant'),(104,'Item','*','WRITE','ALLOW','ROLE','marketingBoss'),(105,'ItemBarcode','*','WRITE','ALLOW','ROLE','marketingBoss'),(106,'ItemBotanical','*','WRITE','ALLOW','ROLE','marketingBoss'),(107,'ItemNiche','*','WRITE','ALLOW','ROLE','marketingBoss'),(108,'ItemPlacement','*','WRITE','ALLOW','ROLE','marketingBoss'),(109,'UserConfig','*','*','ALLOW','ROLE','employee'),(110,'Bank','*','READ','ALLOW','ROLE','employee'),(111,'ClientLog','*','READ','ALLOW','ROLE','employee'),(112,'Defaulter','*','READ','ALLOW','ROLE','employee'),(113,'ClientRisk','*','READ','ALLOW','ROLE','employee'),(114,'Receipt','*','READ','ALLOW','ROLE','employee'),(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','employee'),(132,'CreditClassification','*','READ','ALLOW','ROLE','employee'),(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','*','WRITE','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,'WorkerCalendar','*','READ','ALLOW','ROLE','hr'),(156,'WorkerLabour','*','READ','ALLOW','ROLE','hr'),(157,'WorkerCalendar','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'),(164,'InvoiceOut','regenerate','WRITE','ALLOW','ROLE','invoicing'),(165,'TicketDms','*','READ','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','employee'),(187,'Ticket','uploadFile','WRITE','ALLOW','ROLE','employee'),(188,'TicketDms','removeFile','WRITE','ALLOW','ROLE','employee'),(189,'TicketDms','*','READ','ALLOW','ROLE','employee'),(190,'Route','updateVolume','WRITE','ALLOW','ROLE','deliveryBoss'),(191,'Agency','getLanded','READ','ALLOW','ROLE','employee'),(192,'Agency','getShipped','READ','ALLOW','ROLE','employee'),(193,'Zone','editPrices','WRITE','ALLOW','ROLE','deliveryBoss'),(194,'Postcode','*','WRITE','ALLOW','ROLE','employee'),(195,'Ticket','addSale','WRITE','ALLOW','ROLE','employee'),(196,'Dms','updateFile','WRITE','ALLOW','ROLE','employee'),(197,'Dms','*','READ','ALLOW','ROLE','employee'),(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');
+/*!40000 ALTER TABLE `ACL` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `fieldAcl`
+--
+
+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');
+/*!40000 ALTER TABLE `fieldAcl` ENABLE KEYS */;
+UNLOCK TABLES;
+/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
+
+/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
+/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
+/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
+/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
+/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
+/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
+/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
+
+-- Dump completed on 2019-11-06 10:53:41
USE `vn`;
+-- MySQL dump 10.13 Distrib 5.7.26, for Linux (x86_64)
+--
+-- Host: db.verdnatura.es Database: vn
+-- ------------------------------------------------------
+-- Server version 5.6.25-4-log
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!40101 SET NAMES utf8 */;
+/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
+/*!40103 SET TIME_ZONE='+00:00' */;
+/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
+/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
+/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
+/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
+
+--
+-- Dumping data for table `alertLevel`
+--
+
+LOCK TABLES `alertLevel` WRITE;
+/*!40000 ALTER TABLE `alertLevel` DISABLE KEYS */;
+INSERT INTO `alertLevel` VALUES ('DELIVERED',3),('FREE',0),('ON_PREPARATION',1),('PACKED',2);
+/*!40000 ALTER TABLE `alertLevel` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `bookingPlanner`
+--
+
+LOCK TABLES `bookingPlanner` WRITE;
+/*!40000 ALTER TABLE `bookingPlanner` DISABLE KEYS */;
+INSERT INTO `bookingPlanner` VALUES (5,'2017-06-30 22:00:00','4770000002','WORLD',1,4,1),(6,'2017-06-30 22:00:00','4770000010','NATIONAL',2,1,1),(8,'2017-06-30 22:00:00','4770000021','NATIONAL',3,2,1),(9,'2017-06-30 22:00:00','4770000101','EQU',3,1,1),(11,'2017-06-30 22:00:00','4770000110','EQU',2,1,1),(12,'2017-06-30 22:00:00','4770000215','EQU',4,2,1),(13,'2017-06-30 22:00:00','4770000521','EQU',5,2,1),(15,'2017-06-30 22:00:00','4771000000','CEE',2,1,1),(16,'2017-06-30 22:00:00','4771000001','CEE',5,3,1),(19,'2017-07-05 11:54:58','4770000020','NATIONAL',1,4,1),(20,'2017-07-05 12:09:24','4771000000','CEE',3,2,1),(21,'2017-07-05 12:09:24','4771000000','CEE',1,4,1),(22,'2017-07-05 12:12:14','4770000002','WORLD',2,1,1),(23,'2017-07-05 12:12:14','4770000002','WORLD',3,2,1),(24,'2017-07-06 08:07:21','4770000002','WORLD',1,4,5),(25,'2017-07-06 08:07:21','HolandaRED','NATIONAL',2,1,5),(27,'2017-07-06 08:07:21','HolandaGEN','NATIONAL',3,2,5),(32,'2017-07-06 08:07:21','4771000000','CEE',2,1,5),(33,'2017-07-06 08:07:21','4771000001','CEE',5,3,5),(34,'2017-07-06 08:07:21','4770000020','NATIONAL',1,4,5),(35,'2017-07-06 08:07:21','4771000000','CEE',3,2,5),(36,'2017-07-06 08:07:21','4771000000','CEE',1,4,5),(37,'2017-07-06 08:07:21','4770000002','WORLD',2,1,5),(38,'2017-07-06 08:07:21','4770000002','WORLD',3,2,5),(70,'2017-07-06 08:08:48','4770000002','WORLD',1,4,30),(71,'2017-07-06 08:08:48','IGIC reduc','NATIONAL',2,1,30),(72,'2017-07-06 08:08:48','4770000020','NATIONAL',1,4,30),(73,'2017-07-06 08:08:48','IGIC gener','NATIONAL',3,2,30),(78,'2017-07-06 08:08:48','4770000020','NATIONAL',1,4,30),(79,'2017-07-06 08:08:48','4770000002','WORLD',2,1,30),(80,'2017-07-06 08:08:48','4770000002','WORLD',3,2,30),(81,'2017-07-05 22:00:00','IGIC cero','NATIONAL',1,5,30),(82,'2019-01-01 11:51:56','4770000504','EQU',10,5,1),(83,'2019-09-11 10:54:03','4770000405','EQU',11,5,1),(84,'2019-09-11 10:58:17','4770000004','NATIONAL',9,5,1),(85,'2019-09-18 22:00:00','4771000000','CEE',6,5,1);
+/*!40000 ALTER TABLE `bookingPlanner` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `cplusInvoiceType477`
+--
+
+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');
+/*!40000 ALTER TABLE `cplusInvoiceType477` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `cplusSubjectOp`
+--
+
+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');
+/*!40000 ALTER TABLE `cplusSubjectOp` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `cplusTaxBreak`
+--
+
+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');
+/*!40000 ALTER TABLE `cplusTaxBreak` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `pgc`
+--
+
+LOCK TABLES `pgc` WRITE;
+/*!40000 ALTER TABLE `pgc` DISABLE KEYS */;
+INSERT INTO `pgc` VALUES ('4722000000',0.00,'Importación Exento ',1,0,0,1),('4722000010',10.00,'Importación Reducido ',1,0,0,1),('4722000021',21.00,'Importación General ',1,0,0,1),('4770000001',8.00,'Reducido',1,1,1,1),('4770000002',0.00,'Extra-Community supply',3,1,0,2),('4770000004',4.00,'Super reducido',1,1,1,1),('4770000010',10.00,'Reducido',1,1,1,1),('4770000020',0.00,'Exento',7,1,1,1),('4770000021',21.00,'General',1,1,1,1),('4770000101',10.00,'Reducido ',1,1,1,1),('4770000108',8.00,'Reducido',1,1,1,1),('4770000110',1.40,'Rec. Eq. Reducido',1,0,0,1),('4770000215',21.00,'General',1,1,1,1),('4770000405',0.50,'Rec. Eq. Super Reducido',1,0,0,1),('4770000504',4.00,'Super reducido',1,1,1,1),('4770000521',5.20,'Rec. Eq. General',1,0,0,1),('4770000701',1.00,'Rec. Eq. Reducido',1,0,0,1),('4771000000',0.00,'Intra-Community supply',6,1,1,1),('4771000001',0.00,'Intra-Community services',7,1,1,1),('HolandaGEN',21.00,'General',1,0,0,1),('HolandaRED',9.00,'Reducido',1,0,0,1),('IGIC cero',0.00,'Cero',1,0,0,1),('IGIC gener',6.50,'General',1,0,0,1),('IGIC reduc',3.00,'Reducido',1,0,0,1);
+/*!40000 ALTER TABLE `pgc` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `tag`
+--
+
+LOCK TABLES `tag` WRITE;
+/*!40000 ALTER TABLE `tag` DISABLE KEYS */;
+INSERT INTO `tag` VALUES (1,'color','Color',0,0,'ink',NULL,NULL),(2,'','Forma',1,0,NULL,NULL,NULL),(3,'','Material',1,0,NULL,NULL,NULL),(4,'','Longitud',1,1,NULL,'mm',NULL),(5,'','Diámetro',1,1,NULL,'mm',NULL),(6,'','Perímetro',1,1,NULL,'mm',NULL),(7,'','Ancho de la base',1,1,NULL,'mm',NULL),(8,'','Altura',1,1,NULL,'mm',NULL),(9,'','Volumen',1,1,NULL,'ml',NULL),(10,'','Densidad',1,1,NULL,NULL,NULL),(11,'','Calidad',1,0,NULL,NULL,NULL),(12,'','Textura',1,0,NULL,NULL,NULL),(13,'','Material del mango',1,0,NULL,NULL,NULL),(14,'','Compra mínima',1,0,NULL,NULL,NULL),(15,'','Nº pétalos',1,1,NULL,NULL,NULL),(16,'','Ancho',1,1,NULL,'mm',NULL),(18,'','Profundidad',1,1,NULL,'mm',NULL),(19,'','Largo',1,1,NULL,'mm',NULL),(20,'','Ancho superior',1,1,NULL,'mm',NULL),(21,'','Ancho inferior',1,1,NULL,'mm',NULL),(22,'','Gramaje',1,1,NULL,'g',NULL),(23,'stems','Tallos',1,1,NULL,NULL,NULL),(24,'','Estado',1,0,NULL,NULL,NULL),(25,'','Color principal',0,0,'ink',NULL,NULL),(26,'','Color secundario',0,0,'ink',NULL,NULL),(27,'','Longitud(cm)',1,1,NULL,'cm',NULL),(28,'','Diámetro base',1,1,'','mm',NULL),(29,'','Colección',1,0,NULL,NULL,NULL),(30,'','Uds / caja',1,1,NULL,NULL,NULL),(31,'','Contenido',1,0,NULL,NULL,NULL),(32,'','Peso',1,1,NULL,'g',NULL),(33,'','Grosor',1,1,NULL,'mm',NULL),(34,'','Marca',1,0,NULL,NULL,NULL),(35,'origin','Origen',0,0,'origin',NULL,NULL),(36,'','Proveedor',1,0,NULL,NULL,NULL),(37,'producer','Productor',0,0,'producer',NULL,NULL),(38,'','Duración',1,1,NULL,'s',NULL),(39,'','Flor',1,0,NULL,NULL,NULL),(40,'','Soporte',1,0,NULL,NULL,NULL),(41,'','Tamaño flor',1,0,NULL,NULL,NULL),(42,'','Apertura',1,0,NULL,NULL,NULL),(43,'','Tallo',1,0,NULL,NULL,NULL),(44,'','Nº hojas',1,1,NULL,NULL,NULL),(45,'','Dimensiones',1,0,NULL,NULL,NULL),(46,'','Diámetro boca',1,1,NULL,'mm',NULL),(47,'','Nº flores',1,1,NULL,NULL,NULL),(48,'','Uds / paquete',1,1,NULL,NULL,NULL),(49,'','Maceta',1,1,NULL,'cm',NULL),(50,'','Textura flor',1,0,NULL,NULL,NULL),(51,'','Textura hoja',1,0,NULL,NULL,NULL),(52,'','Tipo de IVA',1,0,NULL,NULL,NULL),(53,'','Tronco',1,0,NULL,NULL,NULL),(54,'','Hoja',1,0,NULL,NULL,NULL),(55,'','Formato',1,0,NULL,NULL,NULL),(56,'','Genero',1,0,NULL,NULL,NULL),(57,'','Especie',1,0,NULL,NULL,NULL),(58,'','Variedad',1,0,NULL,NULL,NULL),(59,'','Medida grande',1,0,NULL,NULL,NULL),(60,'','Medida mediano',1,0,NULL,NULL,NULL),(61,'','Medida pequeño',1,0,NULL,NULL,NULL),(62,'','Medida pequeño',1,0,NULL,NULL,NULL),(63,'','Recipiente interior',1,0,NULL,NULL,NULL),(64,'','Material secundario',1,0,NULL,NULL,NULL),(65,'','Colores',1,0,NULL,NULL,NULL),(66,'','Referencia',1,0,NULL,NULL,NULL),(67,'','Categoria',1,0,NULL,NULL,NULL),(68,'','Amb',1,0,NULL,NULL,NULL),(69,'','Anchura',1,1,NULL,'cm',NULL),(70,'','Hueco interior',1,0,NULL,NULL,NULL),(71,'','Tamaño',1,0,NULL,NULL,NULL),(72,'','Color botón',1,0,NULL,NULL,NULL),(73,'','Tamaño minimo del botón',1,0,NULL,NULL,NULL),(74,'','Obtentor',1,0,NULL,NULL,NULL),(75,'','Longitud del brote',1,0,NULL,NULL,NULL),(76,'','Tallos / u.v.',1,0,NULL,NULL,NULL),(77,'','Madera de',1,0,NULL,NULL,NULL),(78,'','Unidad de venta',1,0,NULL,NULL,NULL),(79,'','Temporal',1,0,NULL,NULL,NULL),(80,'','Gramaje/tallo',1,1,NULL,'g',NULL),(81,'','Peso/paquete',1,1,NULL,'g',NULL),(82,'','Flexibilidad del tallo',1,0,NULL,NULL,NULL),(83,'','Nº planchas',1,1,NULL,NULL,NULL),(84,'','Nº páginas',1,1,NULL,NULL,NULL),(85,'','Editorial',1,0,NULL,NULL,NULL),(86,'','Idioma',1,0,NULL,NULL,NULL),(87,'','Fecha publicación',1,0,NULL,NULL,NULL),(88,'','Cubierta',1,0,NULL,NULL,NULL),(89,'','Encuadernación',1,0,NULL,NULL,NULL),(90,'','Autor',1,0,NULL,NULL,NULL),(91,'','Envoltorio',1,0,NULL,NULL,NULL),(92,'','Nombre temporal',1,0,NULL,NULL,NULL),(93,'','Modelo',1,0,NULL,NULL,NULL),(94,'','Producto',1,0,NULL,NULL,NULL),(95,'','Título',1,0,NULL,NULL,NULL),(96,'','Tomo',1,0,NULL,NULL,NULL),(97,'','Articulo',1,0,NULL,NULL,NULL),(98,'','Metodo de cultivo',1,0,NULL,NULL,NULL),(99,'','Edad',1,0,NULL,NULL,NULL),(100,'','Agotado',1,0,NULL,NULL,NULL),(101,'','Altura con asa',1,1,NULL,'cm',NULL),(102,'','Nº tallos',1,1,NULL,NULL,NULL),(103,'','Cultivo',1,0,NULL,NULL,NULL),(104,'','Sabor',1,0,NULL,NULL,NULL),(105,'','Talla',1,0,NULL,NULL,NULL),(106,'','Calibre',1,1,NULL,NULL,NULL),(107,'','Dulzura',1,1,NULL,'bx',NULL),(108,'','Piezas',1,0,NULL,NULL,NULL),(109,'','Altura con patas',1,0,NULL,NULL,NULL);
+/*!40000 ALTER TABLE `tag` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `claimResponsible`
+--
+
+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),(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);
+/*!40000 ALTER TABLE `claimResponsible` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `claimReason`
+--
+
+LOCK TABLES `claimReason` WRITE;
+/*!40000 ALTER TABLE `claimReason` DISABLE KEYS */;
+INSERT INTO `claimReason` VALUES (1,'Prisas'),(2,'Novato'),(3,'Exceso de confianza'),(4,'Exceso de celo'),(5,'Indiferencia'),(6,'Extraviado o Hurto'),(7,'Incompetencia'),(8,'Ubicación erronea'),(9,'Dat.Inctos/Pak.conf'),(10,'Datos duplicados'),(11,'Fallo stock'),(12,'Innovación'),(13,'Distracción'),(15,'Portes indebidos'),(16,'Baja calidad'),(17,'Defectuoso'),(19,'Endiñado'),(20,'Calor'),(21,'Frio'),(22,'Cambiado'),(24,'Cansancio'),(25,'Mal etiquetado'),(26,'Cantidad malentendido'),(30,'No revisado'),(34,'Error fotografia'),(40,'Fallo Personal VN'),(41,'Fallo Personal Cliente'),(42,'Otros'),(43,'Precio alto'),(44,'Abuso de confianza'),(45,'Retraso Agencia'),(46,'Delicado');
+/*!40000 ALTER TABLE `claimReason` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `claimRedelivery`
+--
+
+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');
+/*!40000 ALTER TABLE `claimRedelivery` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `claimResult`
+--
+
+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');
+/*!40000 ALTER TABLE `claimResult` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `ticketUpdateAction`
+--
+
+LOCK TABLES `ticketUpdateAction` WRITE;
+/*!40000 ALTER TABLE `ticketUpdateAction` DISABLE KEYS */;
+INSERT INTO `ticketUpdateAction` VALUES (1,'Cambiar los precios en el ticket'),(3,'Convertir en maná');
+/*!40000 ALTER TABLE `ticketUpdateAction` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `state`
+--
+
+LOCK TABLES `state` WRITE;
+/*!40000 ALTER TABLE `state` DISABLE KEYS */;
+INSERT INTO `state` VALUES (1,'Arreglar',2,0,'FIXING',NULL,1,0,0),(2,'Libre',1,0,'FREE',NULL,2,0,0),(3,'OK',3,0,'OK',3,28,1,0),(4,'Impreso',4,1,'PRINTED',2,29,1,0),(5,'Preparación',5,1,'ON_PREPARATION',7,5,0,0),(6,'En Revisión',7,1,'ON_CHECKING',NULL,6,0,1),(7,'Sin Acabar',2,0,'NOT_READY',NULL,7,0,0),(8,'Revisado',8,1,'CHECKED',NULL,8,0,1),(9,'Encajando',9,1,'PACKING',NULL,9,0,1),(10,'Encajado',10,2,'PACKED',NULL,10,0,1),(11,'Facturado',0,0,'INVOICED',NULL,11,0,1),(12,'Bloqueado',0,0,'BLOCKED',NULL,12,0,0),(13,'En Reparto',11,3,'ON_DELIVERY',NULL,13,0,1),(14,'Preparado',6,1,'PREPARED',NULL,14,0,1),(15,'Pte Recogida',12,3,'WAITING_FOR_PICKUP',NULL,15,0,1),(16,'Entregado',13,3,'DELIVERED',NULL,16,0,1),(17,'Eliminado',14,3,'ERASED',NULL,17,0,0),(20,'Asignado',4,1,'PICKER_DESIGNED',NULL,20,1,0),(21,'Retornado',4,1,'PRINTED_BACK',6,21,0,0),(22,'¿Fecha?',2,0,'WRONG_DATE',NULL,22,0,0),(23,'URGENTE',2,0,'LAST_CALL',NULL,23,1,0),(24,'Encadenado',3,0,'CHAINED',4,24,0,0),(25,'Embarcando',3,0,'BOARDING',5,25,0,0),(26,'Prep Previa',5,1,'PREVIOUS_PREPARATION',1,26,0,0),(27,'Prep Asistida',5,1,'ASSISTED_PREPARATION',7,27,0,0),(28,'Previa OK',3,1,'OK PREVIOUS',3,28,1,0),(29,'Previa Impreso',4,1,'PRINTED PREVIOUS',2,29,1,0);
+/*!40000 ALTER TABLE `state` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `sample`
+--
+
+LOCK TABLES `sample` WRITE;
+/*!40000 ALTER TABLE `sample` DISABLE KEYS */;
+INSERT INTO `sample` VALUES (1,'Carta_1','Aviso inicial por saldo deudor',0,'0'),(2,'Carta_2','Reiteracion de aviso por saldo deudor',0,'0'),(3,'Cred_Up','Notificación de aumento de crédito',0,'0'),(4,'Cred_down','Notificación de reducción de crédito',0,'0'),(5,'Pet_CC','Petición de datos bancarios B2B',0,'0'),(6,'SolCredito','Solicitud de crédito',0,'0'),(7,'LeyPago','Ley de pagos',0,'0'),(8,'Pet_CC_Core','Petición de datos bancarios CORE',0,'0'),(9,'nueva_alta','Documento de nueva alta de cliente',0,'0'),(10,'client_welcome','Email de bienvenida para nuevo cliente',0,'0'),(11,'setup_printer','Email de instalación de impresora',0,'0'),(12,'client-welcome','Email de bienvenida como nuevo cliente',1,'0'),(13,'printer-setup','Email de instalación y configuración de impresora de coronas',1,'0'),(14,'sepa-core','Email de solicitud de datos bancarios core',1,'1'),(15,'letter-debtor-st','Email de aviso inicial por saldo deudor',1,'1'),(16,'letter-debtor-nd','Email de aviso reiterado por saldo deudor',1,'1'),(17,'client-lcr','Email de solicitud de datos bancarios LCR',1,'1');
+/*!40000 ALTER TABLE `sample` ENABLE KEYS */;
+UNLOCK TABLES;
+/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
+
+/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
+/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
+/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
+/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
+/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
+/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
+/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
+
+-- Dump completed on 2019-11-06 10:53:41
USE `vn2008`;
+-- MySQL dump 10.13 Distrib 5.7.26, for Linux (x86_64)
+--
+-- Host: db.verdnatura.es Database: vn2008
+-- ------------------------------------------------------
+-- Server version 5.6.25-4-log
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!40101 SET NAMES utf8 */;
+/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
+/*!40103 SET TIME_ZONE='+00:00' */;
+/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
+/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
+/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
+/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
+
+--
+-- Dumping data for table `accion_dits`
+--
+
+LOCK TABLES `accion_dits` WRITE;
+/*!40000 ALTER TABLE `accion_dits` DISABLE KEYS */;
+INSERT INTO `accion_dits` VALUES (0,'Abono del ticket'),(104,'Abre a pesar del aviso'),(81,'Abre Entrada'),(116,'Abre Margenes'),(31,'Abre ticket'),(149,'Abre traslado'),(148,'Abre travel'),(12,'Acepta envio'),(64,'Acepta envio a pesar del aviso'),(23,'Aglutinació'),(92,'Añade credito'),(112,'Añade linea'),(132,'Añade manualmente Preparacion'),(33,'Añade promoción'),(144,'Añade ticket'),(129,'Bioniza Linea'),(130,'Bioniza Lineas Ok'),(128,'Bioniza Ticket'),(133,'Borra expedition'),(63,'Borrar promoción'),(80,'Cambia'),(106,'Cambia Activo'),(119,'Cambia Agencia'),(60,'Cambia almacen'),(56,'Cambia Article'),(53,'Cambia cantidad'),(78,'Cambia Categoria'),(34,'Cambia Cliente'),(74,'Cambia Color'),(110,'Cambia Comercial'),(166,'Cambia concepto'),(137,'Cambia Conductor'),(82,'Cambia Consignatario'),(105,'Cambia Contabilizada'),(142,'Cambia Coste'),(114,'Cambia Costefijo'),(108,'Cambia crédito'),(97,'Cambia CyC'),(126,'Cambia de agencia sin eliminar la ruta'),(89,'Cambia delivered'),(98,'Cambia Descuento'),(163,'Cambia el turno'),(3,'Cambia Empresa'),(147,'Cambia etiquetas'),(107,'Cambia Factura mail'),(6,'Cambia Fecha'),(37,'Cambia forma de pago'),(122,'Cambia gestdoc_id'),(135,'Cambia grouping y lo falca'),(1,'Cambia hora'),(143,'Cambia hora fin'),(118,'Cambia Id_Agencia'),(140,'Cambia km_end'),(139,'Cambia km_start'),(90,'Cambia landing'),(79,'Cambia Medida'),(77,'Cambia Nicho'),(120,'Cambia No Vincular'),(14,'Cambia obs de:'),(141,'Cambia Ok'),(73,'Cambia Origen'),(150,'Cambia packing'),(117,'Cambia Precio'),(85,'Cambia Received'),(131,'Cambia Recibido Core VNH'),(72,'Cambia Recibido Sepa'),(161,'Cambia salario'),(86,'Cambia Shipment'),(11,'Cambia solucion'),(76,'Cambia Tallos'),(109,'Cambia Tarifa '),(13,'Cambia Tipo'),(121,'Cambia Todos a No Vincular'),(138,'Cambia Vehiculo'),(94,'Cambia Vencimiento'),(88,'Cambia Warehouse de entrada'),(87,'Cambia Warehouse de salida'),(115,'Cambiazo'),(61,'Cambio de fecha'),(93,'Cobro Web'),(32,'Crea Cliente'),(145,'Crea clon'),(83,'Crea Entrada'),(19,'Crea Promoción'),(136,'Crea Ruta'),(84,'Crea Ticket'),(51,'Crea Utilidades->Abono desde el Ticket'),(52,'CREDITO SUPERADO'),(30,'DESBLOQUEA A PESAR DEL AVISO'),(8,'Desbloquea en preparación'),(5,'Desbloquea servido'),(9,'Desmarca seguro'),(54,'Elimina'),(127,'Elimina desde traslado'),(156,'Elimina horario'),(125,'Elimina la ruta por cambio de agencia'),(167,'Elimina la ruta por cambio de consignatario'),(168,'Elimina la ruta por cambio de fecha'),(160,'Elimina precio'),(165,'Elimina ticket turno'),(153,'Elimina zona'),(22,'Eliminación ticket'),(57,'Envia por AZKAR 13 a pesar del aviso'),(68,'Envio a'),(28,'FACTURA MULTIPLE'),(29,'FACTURA RAPIDA'),(111,'Factura Serie'),(58,'FALCA PREU'),(113,'Fusion'),(36,'Genera un abono santos al ticket'),(66,'Genera una reserva santos al ticket'),(69,'Hace click en Pedido'),(20,'Hace click en Ver'),(18,'Imprime CTRL_F5'),(134,'Imprime Ctrl_F5 con credito superado'),(26,'Imprimir Albarán'),(96,'Inserta cantidad en negativo'),(155,'Inserta horario'),(158,'Inserta precio'),(164,'Inserta ticket turno'),(95,'Inserta travel'),(151,'Inserta zona'),(124,'Intenta recalcular tarifas'),(59,'LLIBERA PREU'),(4,'Marca como Servido'),(7,'Marca en preparación'),(10,'Marca seguro de verano'),(157,'Modifica horario'),(159,'Modifica precio'),(154,'Modifica zona'),(99,'No desbloquea los precios'),(103,'No especificado'),(71,'No respeta disponible'),(101,'No respeta grouping'),(100,'No respeta packing'),(123,'Recalcula tarifas'),(2,'Recalculació'),(16,'Reimprime F5'),(67,'Reimprime F5 a pesar del aviso'),(65,'Reserva santos del ticket'),(146,'Revisa Ticket desde Web'),(70,'Revisado PDA'),(50,'S\'ha utilitzat la funció Imprimir_Etiquetas del TPV'),(27,'Se envia a revision'),(91,'Se imprime split'),(15,'SMS'),(102,'Split a MERCAFLOR'),(21,'Ticket Split(Automático)'),(25,'TOUR desde ticket'),(24,'TOUR hacia ticket'),(162,'Validado'),(17,'Visualiza CTRL_F5');
+/*!40000 ALTER TABLE `accion_dits` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `container`
+--
+
+LOCK TABLES `container` WRITE;
+/*!40000 ALTER TABLE `container` DISABLE KEYS */;
+INSERT INTO `container` VALUES (1,'atado'),(2,'bandeja'),(3,'blister'),(4,'bola'),(5,'bolsa'),(6,'bote'),(7,'botella'),(8,'bulto'),(9,'caja'),(10,'capazo'),(11,'CC'),(13,'cubo'),(14,'ejemplar'),(15,'expositor'),(16,'fardo'),(17,'full'),(18,'garba'),(21,'maceta'),(22,'macetero'),(23,'metro'),(24,'pack'),(25,'paquete'),(26,'pieza'),(27,'rollo'),(28,'saco'),(29,'set'),(30,'sobre'),(31,'tabaco'),(32,'tallo'),(33,'tubo'),(34,'vaso'),(35,'x 2 media'),(36,NULL),(37,'pallet');
+/*!40000 ALTER TABLE `container` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `department`
+--
+
+LOCK TABLES `department` WRITE;
+/*!40000 ALTER TABLE `department` DISABLE KEYS */;
+INSERT INTO `department` VALUES (1,'VERDNATURA',1,78,1,0,NULL,NULL,NULL,0,0,0,0),(22,'COMPRAS',65,66,NULL,72,596,2,5,0,0,1,0),(23,'CAMARA',41,42,NULL,72,604,2,6,1,0,0,0),(31,'INFORMATICA',11,12,NULL,72,127,3,9,0,0,0,0),(34,'CONTABILIDAD',4,5,NULL,0,NULL,NULL,NULL,0,0,0,0),(35,'FINANZAS',6,7,NULL,0,NULL,NULL,NULL,0,0,0,0),(36,'LABORAL',8,9,NULL,0,NULL,NULL,NULL,0,0,0,0),(37,'PRODUCCION',15,24,NULL,72,230,3,11,0,0,0,0),(38,'SACADO',20,21,NULL,72,230,4,14,1,0,0,0),(39,'ENCAJADO',22,23,NULL,72,230,4,12,1,0,0,0),(41,'ADMINISTRACION',3,10,NULL,72,599,3,8,0,0,0,0),(43,'VENTAS',51,64,NULL,0,NULL,NULL,NULL,0,0,0,0),(44,'GERENCIA',2,25,NULL,72,300,2,7,0,0,0,0),(45,'LOGISTICA',26,37,NULL,72,596,3,19,0,0,0,0),(46,'REPARTO',38,39,NULL,72,659,3,10,0,0,0,0),(48,'ALMACENAJE',40,47,NULL,0,NULL,NULL,NULL,0,0,0,0),(49,'PROPIEDAD',48,75,NULL,72,1008,1,1,0,0,0,0),(52,'CARGA AEREA',27,28,NULL,72,163,4,28,0,0,0,0),(53,'MARKETING Y COMUNICACIÓN',60,61,NULL,72,1238,0,0,0,0,0,0),(54,'ORNAMENTALES',76,77,NULL,72,433,3,21,0,0,0,0),(55,'TALLER NATURAL',68,69,NULL,72,695,2,23,0,0,0,0),(56,'TALLER ARTIFICIAL',70,71,NULL,72,1780,2,24,0,0,0,0),(58,'CAMPOS',73,74,NULL,72,225,2,2,0,0,0,0),(59,'MANTENIMIENTO',49,50,NULL,72,1907,4,16,0,0,0,0),(60,'RECLAMACIONES',58,59,NULL,72,563,3,20,0,0,0,0),(61,'VNH',35,36,NULL,73,1297,3,17,0,0,0,0),(63,'VENTAS FRANCIA',62,63,NULL,72,277,2,27,0,0,0,0),(66,'VERDNAMADRID',31,32,NULL,72,163,3,18,0,0,0,0),(68,'COMPLEMENTOS',43,44,NULL,72,617,3,26,1,0,0,0),(69,'VERDNABARNA',33,34,NULL,74,432,3,22,0,0,0,0),(77,'PALETIZADO',18,19,NULL,72,230,4,15,1,0,0,0),(80,'EQUIPO J VALLES',56,57,NULL,72,693,3,4,0,0,0,0),(86,'LIMPIEZA',13,14,NULL,72,599,0,0,0,0,0,0),(89,'COORDINACION',16,17,NULL,0,NULL,NULL,NULL,1,0,0,0),(90,'TRAILER',29,30,NULL,0,NULL,NULL,NULL,0,0,0,0),(91,'ARTIFICIAL',45,46,NULL,0,NULL,NULL,NULL,1,0,0,0),(92,'EQUIPO SILVERIO',54,55,NULL,0,NULL,NULL,NULL,0,0,0,0),(93,'CONFECCION',67,72,NULL,0,NULL,NULL,NULL,0,0,0,0),(94,'EQUIPO J BROCAL',52,53,NULL,0,NULL,NULL,NULL,0,0,1,0);
+/*!40000 ALTER TABLE `department` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `Grupos`
+--
+
+LOCK TABLES `Grupos` WRITE;
+/*!40000 ALTER TABLE `Grupos` DISABLE KEYS */;
+INSERT INTO `Grupos` VALUES (1,'administrative','Contabilidad',5),(2,'administrator','Administradores',5),(3,'advancedUser','Usuarios avanzados',5),(4,'developer','Informaticos',4),(5,'clientManagement','Gestion Clientes',4),(6,'salesPerson','Comerciales',4),(7,'wages','Salarios',5),(8,'salesPersonDirector','Dir Comercial',4),(9,'advancedSalesPerson','Comercial avanzado',4),(10,'','Compradores',4),(11,'','Control descuentos',4),(12,'takeOrder','Sacador',1),(13,'packer','Encajador',2),(14,' deliveryMan','Repartidor',3),(15,'','No Recalcular',4),(17,'other','Otros',4),(18,'','Operaciones',4),(19,'','Visa',5),(20,'market','Mercado',4),(21,'','Gerencia',5),(22,'','ComercialExclusivo',4),(23,'','Responsables Entradas',5),(24,'teamBoss','Jefes de equipo',4),(25,'','Responsables Encajado',0),(26,'confection','Confeccion',0),(27,'claims','Reclamaciones',0),(28,'','Ranking Carteras Limpias',0),(29,'','No bionicos',0),(30,'','Tirar a Faltas',0),(31,'','Greuges',0),(32,'','Responsables Agencias',0),(33,'','Entradas EXPRESS',0),(34,'','Sustituciones',0),(35,'router','Enrutador',4);
+/*!40000 ALTER TABLE `Grupos` ENABLE KEYS */;
+UNLOCK TABLES;
+/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
+
+/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
+/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
+/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
+/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
+/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
+/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
+/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
+
+-- Dump completed on 2019-11-06 10:53:42
USE `bi`;
+-- MySQL dump 10.13 Distrib 5.7.26, for Linux (x86_64)
+--
+-- Host: db.verdnatura.es Database: bi
+-- ------------------------------------------------------
+-- Server version 5.6.25-4-log
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!40101 SET NAMES utf8 */;
+/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
+/*!40103 SET TIME_ZONE='+00:00' */;
+/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
+/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
+/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
+/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
+
+--
+-- Dumping data for table `tarifa_componentes`
+--
+
+LOCK TABLES `tarifa_componentes` WRITE;
+/*!40000 ALTER TABLE `tarifa_componentes` DISABLE KEYS */;
+INSERT INTO `tarifa_componentes` VALUES (10,'Precios Especiales',4,NULL,NULL,1,'specialPrices'),(14,'porte extra por dia semana',6,NULL,NULL,1,'extraCostPerWeekDay'),(15,'reparto',6,NULL,NULL,1,'delivery'),(17,'recobro',5,NULL,NULL,1,'debtCollection'),(21,'ajuste',12,NULL,NULL,1,'adjustment'),(22,'venta por paquete',9,1,NULL,0,'salePerPackage'),(23,'venta por caja',9,2,NULL,0,'salePerBox'),(28,'valor de compra',1,NULL,NULL,1,'purchaseValue'),(29,'margen',4,NULL,NULL,1,'margin'),(32,'descuento ultimas unidades',9,3,-0.05,0,'lastUnitsDiscount'),(33,'venta por caja',9,1,NULL,0,'salePerBox'),(34,'descuento comprador',4,NULL,NULL,1,'buyerDiscount'),(35,'cartera comprador',10,NULL,NULL,1,NULL),(36,'descuadre',11,NULL,NULL,1,'mismatch'),(37,'maná',7,4,NULL,0,'mana'),(38,'embolsado',9,NULL,NULL,1,'bagged'),(39,'maná auto',7,NULL,NULL,1,'autoMana'),(40,'cambios Santos 2016',4,NULL,NULL,1,NULL),(41,'bonificacion porte',4,NULL,NULL,1,'freightCharge');
+/*!40000 ALTER TABLE `tarifa_componentes` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `tarifa_componentes_series`
+--
+
+LOCK TABLES `tarifa_componentes_series` WRITE;
+/*!40000 ALTER TABLE `tarifa_componentes_series` DISABLE KEYS */;
+INSERT INTO `tarifa_componentes_series` VALUES (1,'coste',1,0),(2,'com ventas',1,1),(3,'com compras',1,1),(4,'empresa',1,1),(5,'cliente',0,0),(6,'agencia',0,0),(7,'cartera_comercial',0,1),(8,'cartera_producto',0,1),(9,'maniobra',1,1),(10,'cartera_comprador',0,1),(11,'errores',0,1),(12,'otros',0,1);
+/*!40000 ALTER TABLE `tarifa_componentes_series` ENABLE KEYS */;
+UNLOCK TABLES;
+/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
+
+/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
+/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
+/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
+/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
+/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
+/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
+/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
+
+-- Dump completed on 2019-11-06 10:53:42
USE `cache`;
+-- MySQL dump 10.13 Distrib 5.7.26, for Linux (x86_64)
+--
+-- Host: db.verdnatura.es Database: cache
+-- ------------------------------------------------------
+-- Server version 5.6.25-4-log
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!40101 SET NAMES utf8 */;
+/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
+/*!40103 SET TIME_ZONE='+00:00' */;
+/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
+/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
+/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
+/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
+
+--
+-- Dumping data for table `cache`
+--
+
+LOCK TABLES `cache` WRITE;
+/*!40000 ALTER TABLE `cache` DISABLE KEYS */;
+INSERT INTO `cache` VALUES (1,'equalizator','00:15:00'),(2,'available','00:06:00'),(3,'stock','00:30:00'),(4,'last_buy','00:30:00'),(5,'weekly_sales','12:00:00'),(6,'bionic','00:05:00'),(7,'sales','00:03:00'),(8,'visible','00:04:00'),(9,'item_range','00:03:00'),(10,'barcodes','01:00:00'),(11,'prod_graphic','00:15:00'),(12,'ticketShipping','00:01:00');
+/*!40000 ALTER TABLE `cache` ENABLE KEYS */;
+UNLOCK TABLES;
+/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
+
+/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
+/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
+/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
+/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
+/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
+/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
+/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
+
+-- Dump completed on 2019-11-06 10:53:42
USE `hedera`;
+-- MySQL dump 10.13 Distrib 5.7.26, for Linux (x86_64)
+--
+-- Host: db.verdnatura.es Database: hedera
+-- ------------------------------------------------------
+-- Server version 5.6.25-4-log
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!40101 SET NAMES utf8 */;
+/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
+/*!40103 SET TIME_ZONE='+00:00' */;
+/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
+/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
+/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
+/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
+
+--
+-- Dumping data for table `imageCollection`
+--
+
+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'),(4,'link','Enlace',200,200,'Link','image','hedera','link','image'),(5,'news','Noticias',800,1200,'New','image','hedera','news','image');
+/*!40000 ALTER TABLE `imageCollection` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `tpvConfig`
+--
+
+LOCK TABLES `tpvConfig` WRITE;
+/*!40000 ALTER TABLE `tpvConfig` DISABLE KEYS */;
+INSERT INTO `tpvConfig` VALUES (1,978,1,0,2000,4,'https://sis.redsys.es/sis/realizarPago',0,'https://sis-t.redsys.es:25443/sis/realizarPago','sq7HjrUOBfKmC576ILgskD5srU870gJ7',NULL);
+/*!40000 ALTER TABLE `tpvConfig` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `tpvError`
+--
+
+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');
+/*!40000 ALTER TABLE `tpvError` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `tpvResponse`
+--
+
+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');
+/*!40000 ALTER TABLE `tpvResponse` ENABLE KEYS */;
+UNLOCK TABLES;
+/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
+
+/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
+/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
+/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
+/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
+/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
+/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
+/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
+
+-- Dump completed on 2019-11-06 10:53:42
USE `postgresql`;
+-- MySQL dump 10.13 Distrib 5.7.26, for Linux (x86_64)
+--
+-- Host: db.verdnatura.es Database: postgresql
+-- ------------------------------------------------------
+-- Server version 5.6.25-4-log
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!40101 SET NAMES utf8 */;
+/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
+/*!40103 SET TIME_ZONE='+00:00' */;
+/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
+/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
+/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
+/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
+
+--
+-- Dumping data for table `calendar_labour_type`
+--
+
+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);
+/*!40000 ALTER TABLE `calendar_labour_type` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `labour_agreement`
+--
+
+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);
+/*!40000 ALTER TABLE `labour_agreement` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `media_type`
+--
+
+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');
+/*!40000 ALTER TABLE `media_type` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `professional_category`
+--
+
+LOCK TABLES `professional_category` WRITE;
+/*!40000 ALTER TABLE `professional_category` DISABLE KEYS */;
+INSERT INTO `professional_category` VALUES (1,'Mozos',5,1,27.5),(2,'Encargados',3,1,27.5),(4,'Comprador',3,1,27.5),(5,'Aux Administracion',4,1,27.5),(6,'Of Administracion',3,1,27.5),(7,'Jefe Administracion',2,1,27.5),(8,'Informatico',3,1,27.5),(9,'Directivo',1,0,27.5),(10,'Aux Ventas',4,1,27.5),(11,'Vendedor',4,1,27.5),(12,'Jefe de Ventas',4,0,27.5),(13,'Repartidor',5,1,27.5),(14,'Aprendices',6,1,27.5),(15,'Técnicos',2,1,27.5),(16,'Aux Florista',5,1,27.5),(17,'Florista',4,1,27.5),(18,'Jefe Floristas',2,1,27.5),(19,'Técnico marketing',3,1,27.5),(20,'Auxiliar marketing',4,1,27.5),(21,'Aux Informática',4,1,27.5),(22,'Peón agrícola',5,1,27.5),(23,'Oficial mantenimiento',4,1,27.5),(24,'Aux mantenimiento',5,1,27.5),(25,'Mozo Aeropuerto',5,1,27.5),(26,'Coordinador',2,1,27.5),(28,'Aux Logistica',4,1,27.5),(29,'Oficial Logistica',3,1,27.5),(30,'Subencargado',4,1,27.5);
+/*!40000 ALTER TABLE `professional_category` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `profile_type`
+--
+
+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');
+/*!40000 ALTER TABLE `profile_type` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Dumping data for table `workcenter`
+--
+
+LOCK TABLES `workcenter` WRITE;
+/*!40000 ALTER TABLE `workcenter` DISABLE KEYS */;
+INSERT INTO `workcenter` VALUES (1,'Silla',20,1025,1),(2,'Mercaflor',19,NULL,NULL),(3,'Marjales',26,20007,NULL),(4,'VNH',NULL,NULL,3),(5,'Madrid',28,2851,5),(6,'Vilassar',88,88031,2),(7,'Tenerife',NULL,NULL,10),(8,'Silla-Agrario',26,2,NULL);
+/*!40000 ALTER TABLE `workcenter` ENABLE KEYS */;
+UNLOCK TABLES;
+/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
+
+/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
+/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
+/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
+/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
+/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
+/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
+/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
+
+-- Dump completed on 2019-11-06 10:53:42
diff --git a/db/export-data.sh b/db/export-data.sh
index a725133cd..9c5c83d7e 100755
--- a/db/export-data.sh
+++ b/db/export-data.sh
@@ -46,7 +46,7 @@ TABLES=(
claimRedelivery
claimResult
ticketUpdateAction
- state,
+ state
sample
)
dump_tables ${TABLES[@]}
From 5705c37f926200e9c9626f71e3e1fd1bd7fe750a Mon Sep 17 00:00:00 2001
From: Joan Sanchez
Date: Thu, 7 Nov 2019 11:19:05 +0100
Subject: [PATCH 12/18] show attachments on email templates attachment
component
---
db/dump/fixtures.sql | 2 +-
modules/client/front/sample/create/index.html | 9 ++-
modules/client/front/sample/create/index.js | 42 +++++++------
print/boot.js | 4 +-
.../attachment/assets/css/import.js | 8 +++
.../attachment/assets/css/style.css | 59 +++++++++++++++++++
.../components/attachment/attachment.html | 3 +
.../core/components/attachment/attachment.js | 37 ++++++++++++
.../components/email-footer/email-footer.html | 20 +++----
print/core/mixins/image-src.js | 9 ++-
.../email/claim-pickup-order/attachments.json | 5 +-
.../claim-pickup-order.html | 6 --
.../claim-pickup-order/claim-pickup-order.js | 6 --
.../email/client-welcome/client-welcome.js | 2 +-
.../email/delivery-note/attachments.json | 5 +-
.../email/letter-debtor-nd/attachments.json | 5 +-
.../letter-debtor-nd/letter-debtor-nd.html | 9 ++-
.../letter-debtor-nd/letter-debtor-nd.js | 10 +++-
.../email/letter-debtor-st/attachments.json | 5 +-
.../letter-debtor-st/letter-debtor-st.html | 7 +++
.../letter-debtor-st/letter-debtor-st.js | 10 +++-
.../email/payment-update/payment-update.js | 2 +-
.../email/printer-setup/attachments.json | 2 +
.../email/printer-setup/printer-setup.html | 9 ++-
.../email/printer-setup/printer-setup.js | 10 +++-
.../email/sepa-core/attachments.json | 3 +-
.../templates/email/sepa-core/sepa-core.html | 7 +++
print/templates/email/sepa-core/sepa-core.js | 16 ++++-
.../claim-pickup-order/claim-pickup-order.js | 2 +-
.../reports/delivery-note/delivery-note.js | 2 +-
.../reports/driver-route/driver-route.js | 2 +-
.../reports/item-label/item-label.js | 2 +-
.../reports/letter-debtor/letter-debtor.js | 7 ++-
print/templates/reports/receipt/receipt.js | 2 +-
.../reports/sepa-core/sepa-core.html | 10 ++--
.../templates/reports/sepa-core/sepa-core.js | 2 +-
print/templates/reports/zone/zone.html | 2 +-
37 files changed, 262 insertions(+), 81 deletions(-)
create mode 100644 print/core/components/attachment/assets/css/import.js
create mode 100644 print/core/components/attachment/assets/css/style.css
create mode 100644 print/core/components/attachment/attachment.html
create mode 100755 print/core/components/attachment/attachment.js
diff --git a/db/dump/fixtures.sql b/db/dump/fixtures.sql
index 2498c9b92..b0bad118f 100644
--- a/db/dump/fixtures.sql
+++ b/db/dump/fixtures.sql
@@ -1456,7 +1456,7 @@ INSERT INTO `vn`.`receipt`(`id`, `invoiceFk`, `amountPaid`, `amountUnpaid`, `pay
(1, 'Cobro web', 100.50, 0.00, CURDATE(), 9, 1, 101, CURDATE(), 442, 1),
(2, 'Cobro web', 200.50, 0.00, DATE_ADD(CURDATE(), INTERVAL -5 DAY), 9, 1, 101, DATE_ADD(CURDATE(), INTERVAL -5 DAY), 442, 1),
(3, 'Cobro en efectivo', 300.00, 100.00, DATE_ADD(CURDATE(), INTERVAL -10 DAY), 9, 1, 102, DATE_ADD(CURDATE(), INTERVAL -10 DAY), 442, 0),
- (4, 'Cobro en efectivo', -400.00, -50.00, DATE_ADD(CURDATE(), INTERVAL -15 DAY), 9, 1, 103, DATE_ADD(CURDATE(), INTERVAL -15 DAY), 442, 0);
+ (4, 'Cobro en efectivo', 400.00, -50.00, DATE_ADD(CURDATE(), INTERVAL -15 DAY), 9, 1, 103, DATE_ADD(CURDATE(), INTERVAL -15 DAY), 442, 0);
INSERT INTO `vn2008`.`workerTeam`(`id`, `team`, `user`)
VALUES
diff --git a/modules/client/front/sample/create/index.html b/modules/client/front/sample/create/index.html
index ba2ec55bb..a0b30f709 100644
--- a/modules/client/front/sample/create/index.html
+++ b/modules/client/front/sample/create/index.html
@@ -1,4 +1,9 @@
+
+
{
- this.$scope.showPreview.show();
+ this.$.showPreview.show();
let dialog = document.body.querySelector('div.vn-dialog');
let body = dialog.querySelector('tpl-body');
let scroll = dialog.querySelector('div:first-child');
@@ -59,16 +67,16 @@ class Controller {
}
onSubmit() {
- this.$scope.watcher.check();
- this.$scope.watcher.realSubmit().then(() =>
+ this.$.watcher.check();
+ this.$.watcher.realSubmit().then(() =>
this.sendSample()
);
}
sendSample() {
- let sampleType = this.$scope.sampleType.selection;
+ let sampleType = this.$.sampleType.selection;
let params = {
- clientId: this.$stateParams.id,
+ clientId: this.$params.id,
recipient: this.clientSample.recipient
};
@@ -89,7 +97,7 @@ class Controller {
});
}
}
-Controller.$inject = ['$scope', '$state', '$http', 'vnApp', '$translate', '$httpParamSerializer', '$window'];
+Controller.$inject = ['$element', '$scope', 'vnApp', '$httpParamSerializer', 'vnConfig'];
ngModule.component('vnClientSampleCreate', {
template: require('./index.html'),
diff --git a/print/boot.js b/print/boot.js
index 7f9761478..4067c9e7b 100644
--- a/print/boot.js
+++ b/print/boot.js
@@ -34,7 +34,7 @@ module.exports = app => {
const componentDir = path.join(componentsPath, '/', componentName);
const assetsDir = `${componentDir}/assets`;
- app.use(`/api/assets/${componentName}`, express.static(assetsDir));
+ app.use(`/api/${componentName}/assets`, express.static(assetsDir));
});
/**
@@ -49,7 +49,7 @@ module.exports = app => {
const templateDir = path.join(templatesPath, '/', directory, '/', templateName);
const assetsDir = `${templateDir}/assets`;
- app.use(`/api/assets/${templateName}`, express.static(assetsDir));
+ app.use(`/api/${templateName}/assets`, express.static(assetsDir));
});
});
};
diff --git a/print/core/components/attachment/assets/css/import.js b/print/core/components/attachment/assets/css/import.js
new file mode 100644
index 000000000..cb7a45205
--- /dev/null
+++ b/print/core/components/attachment/assets/css/import.js
@@ -0,0 +1,8 @@
+const Stylesheet = require(`${appPath}/core/stylesheet`);
+
+module.exports = new Stylesheet([
+ `${appPath}/common/css/layout.css`,
+ `${appPath}/common/css/email.css`,
+ `${appPath}/common/css/misc.css`,
+ `${__dirname}/style.css`])
+ .mergeStyles();
diff --git a/print/core/components/attachment/assets/css/style.css b/print/core/components/attachment/assets/css/style.css
new file mode 100644
index 000000000..9d47b193e
--- /dev/null
+++ b/print/core/components/attachment/assets/css/style.css
@@ -0,0 +1,59 @@
+@media (max-width: 400px) {
+ .buttons a {
+ display: block;
+ width: 100%
+ }
+}
+
+.buttons {
+ width: 100%
+}
+
+.buttons a {
+ display: inline-block;
+ box-sizing: border-box;
+ text-decoration: none;
+ font-size: 16px;
+ color: #fff;
+ width: 50%
+}
+
+.buttons .btn {
+ background-color: #333;
+ text-align: center
+}
+
+.buttons .btn .text {
+ display: inline-block;
+ padding: 22px 0
+}
+
+.buttons .btn .icon {
+ background-color: #95d831;
+ box-sizing: border-box;
+ text-align: center;
+ padding: 16.5px 0;
+ float: right;
+ width: 70px
+}
+
+.networks {
+ background-color: #555;
+ text-align: center;
+ padding: 20px 0
+}
+
+.networks a {
+ text-decoration: none;
+ margin-right: 5px
+}
+
+.networks a img {
+ margin: 0
+}
+
+.privacy {
+ padding: 20px 0;
+ font-size: 10px;
+ font-weight: 100
+}
\ No newline at end of file
diff --git a/print/core/components/attachment/attachment.html b/print/core/components/attachment/attachment.html
new file mode 100644
index 000000000..57ea9a7e0
--- /dev/null
+++ b/print/core/components/attachment/attachment.html
@@ -0,0 +1,3 @@
+
\ No newline at end of file
diff --git a/print/core/components/attachment/attachment.js b/print/core/components/attachment/attachment.js
new file mode 100755
index 000000000..2d4e74cdc
--- /dev/null
+++ b/print/core/components/attachment/attachment.js
@@ -0,0 +1,37 @@
+module.exports = {
+ name: 'attachment',
+ computed: {
+ path() {
+ const filename = this.attachment.filename;
+ const component = this.attachment.component;
+ if (this.attachment.cid)
+ return `/api/${component}/assets/files/${filename}`;
+ else
+ return `/api/report/${component}?${this.getHttpParams()}`;
+ }
+ },
+ methods: {
+ getHttpParams() {
+ const props = this.args;
+ let query = '';
+ for (let param in props) {
+ if (query != '')
+ query += '&';
+ query += `${param}=${props[param]}`;
+ }
+
+ return query;
+ }
+ },
+ props: {
+ attachment: {
+ type: Object,
+ required: true
+ },
+ args: {
+ type: Object,
+ required: false
+ }
+ }
+};
+
diff --git a/print/core/components/email-footer/email-footer.html b/print/core/components/email-footer/email-footer.html
index 61f97257a..afafa43a9 100644
--- a/print/core/components/email-footer/email-footer.html
+++ b/print/core/components/email-footer/email-footer.html
@@ -1,40 +1,40 @@