diff --git a/db/changes/230601/00-acl_receiptEmail.sql b/db/changes/231801/00-acl_receiptEmail.sql
similarity index 100%
rename from db/changes/230601/00-acl_receiptEmail.sql
rename to db/changes/231801/00-acl_receiptEmail.sql
diff --git a/db/changes/231401/00-deviceProduction.sql b/db/changes/231801/00-deviceProduction.sql
similarity index 100%
rename from db/changes/231401/00-deviceProduction.sql
rename to db/changes/231801/00-deviceProduction.sql
diff --git a/db/dump/fixtures.sql b/db/dump/fixtures.sql
index e69974d082..e1de46135c 100644
--- a/db/dump/fixtures.sql
+++ b/db/dump/fixtures.sql
@@ -2770,10 +2770,23 @@ UPDATE `account`.`user`
INSERT INTO `vn`.`ticketLog` (`originFk`, userFk, `action`, changedModel, oldInstance, newInstance, changedModelId, `description`)
VALUES
- (7, 18, 'update', 'Sale', '{"quantity":1}', '{"quantity":10}', 1, NULL),
- (7, 18, 'update', 'Ticket', '{"quantity":1,"concept":"Chest ammo box"}', '{"quantity":10,"concept":"Chest ammo box"}', 1, NULL),
- (7, 18, 'update', 'Sale', '{"price":3}', '{"price":5}', 1, NULL),
- (7, 18, 'update', NULL, NULL, NULL, NULL, "Cambio cantidad Melee weapon heavy shield 1x0.5m de '5' a '10'");
+ (7, 18, 'update', 'Sale', '{"quantity":1}', '{"quantity":10}', 1, NULL),
+ (7, 18, 'update', 'Ticket', '{"quantity":1,"concept":"Chest ammo box"}', '{"quantity":10,"concept":"Chest ammo box"}', 1, NULL),
+ (7, 18, 'update', 'Sale', '{"price":3}', '{"price":5}', 1, NULL),
+ (7, 18, 'update', NULL, NULL, NULL, NULL, "Cambio cantidad Melee weapon heavy shield 1x0.5m de '5' a '10'");
+
+INSERT INTO `vn`.`ticketLog` (originFk, userFk, `action`, creationDate, changedModel, changedModelId, changedModelValue, oldInstance, newInstance, description)
+ VALUES
+ (1, NULL, 'delete', '2001-06-09 11:00:04', 'Ticket', 45, 'Spider Man' , NULL, NULL, NULL),
+ (1, 18, 'select', '2001-06-09 11:00:03', 'Ticket', 45, 'Spider Man' , NULL, NULL, NULL),
+ (1, NULL, 'update', '2001-05-09 10:00:02', 'Sale', 69854, 'Armor' , '{"isPicked": false}','{"isPicked": true}', NULL),
+ (1, 18, 'update', '2001-01-01 10:05:01', 'Sale', 69854, 'Armor' , NULL, NULL, 'Armor quantity changed from ''15'' to ''10'''),
+ (1, NULL, 'delete', '2001-01-01 10:00:10', 'Sale', 5689, 'Shield' , '{"quantity":10,"concept":"Shield"}', NULL, NULL),
+ (1, 18, 'insert', '2000-12-31 15:00:05', 'Sale', 69854, 'Armor' , NULL,'{"quantity":15,"concept":"Armor", "price": 345.99, "itemFk": 2}', NULL),
+ (1, 18, 'update', '2000-12-28 08:40:45', 'Ticket', 45, 'Spider Man' , '{"warehouseFk":60,"shipped":"2023-05-16T22:00:00.000Z","nickname":"Super Man","isSigned":true,"isLabeled":true,"isPrinted":true,"packages":0,"hour":0,"isBlocked":false,"hasPriority":false,"companyFk":442,"landed":"2023-05-17T22:00:00.000Z","isBoxed":true,"isDeleted":true,"zoneFk":713,"zonePrice":13,"zoneBonus":0}','{"warehouseFk":61,"shipped":"2023-05-17T22:00:00.000Z","nickname":"Spider Man","isSigned":false,"isLabeled":false,"isPrinted":false,"packages":1,"hour":0,"isBlocked":true,"hasPriority":true,"companyFk":443,"landed":"2023-05-18T22:00:00.000Z","isBoxed":false,"isDeleted":false,"zoneFk":713,"zonePrice":13,"zoneBonus":1}', NULL),
+ (1, 18, 'select', '2000-12-27 03:40:30', 'Ticket', 45, NULL , NULL, NULL, NULL),
+ (1, 18, 'insert', '2000-04-10 09:40:15', 'Sale', 5689, 'Shield' , NULL, '{"quantity":10,"concept":"Shield", "price": 10.5, "itemFk": 1}', NULL),
+ (1, 18, 'insert', '1999-05-09 10:00:00', 'Ticket', 45, 'Super Man' , NULL, '{"id":45,"clientFk":8608,"warehouseFk":60,"shipped":"2023-05-16T22:00:00.000Z","nickname":"Super Man","addressFk":48637,"isSigned":true,"isLabeled":true,"isPrinted":true,"packages":0,"hour":0,"created":"2023-05-16T11:42:56.000Z","isBlocked":false,"hasPriority":false,"companyFk":442,"agencyModeFk":639,"landed":"2023-05-17T22:00:00.000Z","isBoxed":true,"isDeleted":true,"zoneFk":713,"zonePrice":13,"zoneBonus":0}', NULL);
INSERT INTO `vn`.`osTicketConfig` (`id`, `host`, `user`, `password`, `oldStatus`, `newStatusId`, `day`, `comment`, `hostDb`, `userDb`, `passwordDb`, `portDb`, `responseType`, `fromEmailId`, `replyTo`)
VALUES
diff --git a/e2e/paths/02-client/07_edit_web_access.spec.js b/e2e/paths/02-client/07_edit_web_access.spec.js
index 26b4c4e27b..5386d12bd3 100644
--- a/e2e/paths/02-client/07_edit_web_access.spec.js
+++ b/e2e/paths/02-client/07_edit_web_access.spec.js
@@ -5,8 +5,8 @@ const $ = {
userName: 'vn-client-web-access vn-textfield[ng-model="$ctrl.account.name"]',
email: 'vn-client-web-access vn-textfield[ng-model="$ctrl.account.email"]',
saveButton: 'vn-client-web-access button[type=submit]',
- nameValue: 'vn-client-log .change:nth-child(1) .basic-json:nth-child(1) vn-json-value',
- activeValue: 'vn-client-log .change:nth-child(2) .basic-json:nth-child(2) vn-json-value'
+ nameValue: 'vn-client-log .change:nth-child(1) .basic-json:nth-child(2) vn-json-value',
+ activeValue: 'vn-client-log .change:nth-child(2) .basic-json:nth-child(1) vn-json-value'
};
describe('Client web access path', () => {
diff --git a/front/core/components/avatar/index.js b/front/core/components/avatar/index.js
index e1aede6be3..ec3a27d1dd 100644
--- a/front/core/components/avatar/index.js
+++ b/front/core/components/avatar/index.js
@@ -1,5 +1,6 @@
import ngModule from '../../module';
import Component from 'core/lib/component';
+import {hashToColor} from '../../lib/string';
import './style.scss';
/**
@@ -16,13 +17,8 @@ export default class Avatar extends Component {
this._val = value;
const val = value || '';
- let hash = 0;
- for (let i = 0; i < val.length; i++)
- hash += val.charCodeAt(i);
- const color = '#' + colors[hash % colors.length];
-
const el = this.element;
- el.style.backgroundColor = color;
+ el.style.backgroundColor = hashToColor(val);
el.title = val;
}
}
@@ -35,29 +31,3 @@ ngModule.vnComponent('vnAvatar', {
},
transclude: true
});
-
-const colors = [
- 'e2553d', // Coral
- 'FFA07A', // Salmon
- 'FFDAB9', // Peach
- 'a17077', // Pink
- 'bf0e99', // Pink light
- '52a500', // Green chartreuse
- '00aeae', // Cian
- 'b754cf', // Purple middle
- '8a69cd', // Blue lavender
- '1fa8a1', // Green ocean
- 'DC143C', // Red crimson
- '5681cf', // Blue steel
- 'FF1493', // Ping intense
- '02ba02', // Green lime
- '1E90FF', // Blue sky
- '8B008B', // Purple dark
- 'cc7000', // Orange bright
- '00b5b8', // Turquoise
- '8B0000', // Red dark
- '008080', // Green bluish
- '2F4F4F', // Gray board
- '7e7e7e', // Gray
- '5d5d5d', // Gray dark
-];
diff --git a/front/core/components/json-value/index.js b/front/core/components/json-value/index.js
index 6bf0ae4aab..6b75174175 100644
--- a/front/core/components/json-value/index.js
+++ b/front/core/components/json-value/index.js
@@ -2,7 +2,7 @@ import ngModule from '../../module';
import Component from 'core/lib/component';
import './style.scss';
-const maxStrLen = 50;
+const maxStrLen = 512;
/**
* Displays pretty JSON value.
@@ -28,6 +28,12 @@ export default class Controller extends Component {
} else {
cssClass = type;
switch (type) {
+ case 'number':
+ if (Number.isInteger(value))
+ text = value;
+ else
+ text = Math.round((value + Number.EPSILON) * 1000) / 1000;
+ break;
case 'boolean':
text = value ? '✓' : '✗';
cssClass = value ? 'true' : 'false';
diff --git a/front/core/components/json-value/index.spec.js b/front/core/components/json-value/index.spec.js
index b79d15a5d5..ff7a45977a 100644
--- a/front/core/components/json-value/index.spec.js
+++ b/front/core/components/json-value/index.spec.js
@@ -75,5 +75,19 @@ describe('Component vnJsonValue', () => {
expect(el.textContent).toEqual('2050');
expect(el.className).toContain('json-number');
});
+
+ it('should display number when value is decimal', () => {
+ controller.value = 10.1;
+
+ expect(el.textContent).toEqual('10.1');
+ expect(el.className).toContain('json-number');
+ });
+
+ it('should display rounded number when value is decimal with lot of decimals', () => {
+ controller.value = 10.124323234;
+
+ expect(el.textContent).toEqual('10.124');
+ expect(el.className).toContain('json-number');
+ });
});
});
diff --git a/front/core/components/multi-check/locale/es.yml b/front/core/components/multi-check/locale/es.yml
index 5365c3392b..25cde3df06 100644
--- a/front/core/components/multi-check/locale/es.yml
+++ b/front/core/components/multi-check/locale/es.yml
@@ -1,3 +1,3 @@
SelectAllRows: Seleccionar las {{rows}} fila(s)
-All: Se han seleccionado
-row(s) have been selected.: fila(s).
\ No newline at end of file
+Have been selected: Se han seleccionado
+row(s) have been selected.: fila(s).
diff --git a/front/core/lib/string.js b/front/core/lib/string.js
index 50bee98734..9f68ef8bb7 100644
--- a/front/core/lib/string.js
+++ b/front/core/lib/string.js
@@ -30,3 +30,39 @@ export function camelToKebab(str) {
export function firstUpper(str) {
return str.charAt(0).toUpperCase() + str.substr(1);
}
+
+export function djb2a(string) {
+ let hash = 5381;
+ for (let i = 0; i < string.length; i++)
+ hash = ((hash << 5) + hash) ^ string.charCodeAt(i);
+ return hash >>> 0;
+}
+
+export function hashToColor(value) {
+ return '#' + colors[djb2a(value || '') % colors.length];
+}
+
+const colors = [
+ 'b5b941', // Yellow
+ 'ae9681', // Peach
+ 'd78767', // Salmon
+ 'cc7000', // Orange bright
+ 'e2553d', // Coral
+ '8B0000', // Red dark
+ 'de4362', // Red crimson
+ 'FF1493', // Ping intense
+ 'be39a2', // Pink light
+ 'b754cf', // Purple middle
+ 'a87ba8', // Pink
+ '8a69cd', // Blue lavender
+ 'ab20ab', // Purple dark
+ '00b5b8', // Turquoise
+ '1fa8a1', // Green ocean
+ '5681cf', // Blue steel
+ '3399fe', // Blue sky
+ '6d9c3e', // Green chartreuse
+ '51bb51', // Green lime
+ '518b8b', // Gray board
+ '7e7e7e', // Gray
+ '5d5d5d', // Gray dark
+];
diff --git a/front/core/styles/text.scss b/front/core/styles/text.scss
index 701a84d056..190eff55d5 100644
--- a/front/core/styles/text.scss
+++ b/front/core/styles/text.scss
@@ -1,70 +1,73 @@
-@import "./variables";
-
-/* Headings */
-
-.text-h1, h1 {
- font-size: 2.3rem;
-}
-.text-h2, h2 {
- font-size: 2.25rem;
-}
-.text-h3, h3 {
- font-size: 2rem;
-}
-.text-h4, h4 {
- font-size: 1.6rem;
-}
-.text-h5, h5 {
- font-size: 1.3rem;
-}
-.text-h6, h6 {
- font-size: 1.125rem;
-}
-.text-subtitle1 {
- font-size: 1.06rem;
-}
-.text-subtitle2 {
- font-size: 1rem;
-}
-.text-body1 {
- font-size: .875rem;
-}
-.text-body2 {
- font-size: .875rem;
-}
-.text-caption {
- font-size: .875rem;
-}
-.text-overline {
- font-size: .8rem;
-}
-
-h1, h2, h3, h4, h5, h6 {
- padding: 0;
- margin-top: 0;
- margin-bottom: 4px;
-}
-
-/* Colors */
-
-.text-primary {
- color: $color-main;
-}
-.text-secondary {
- color: $color-font-light;
-}
-
-/* Helpers */
-
-.text-uppercase {
- text-transform: uppercase;
-}
-.text-center {
- text-align: center;
-}
-.text-right {
- text-align: right;
-}
-.text-left {
- text-align: left;
-}
+@import "./variables";
+
+/* Headings */
+
+.text-h1, h1 {
+ font-size: 2.3rem;
+}
+.text-h2, h2 {
+ font-size: 2.25rem;
+}
+.text-h3, h3 {
+ font-size: 2rem;
+}
+.text-h4, h4 {
+ font-size: 1.6rem;
+}
+.text-h5, h5 {
+ font-size: 1.3rem;
+}
+.text-h6, h6 {
+ font-size: 1.125rem;
+}
+.text-subtitle1 {
+ font-size: 1.06rem;
+}
+.text-subtitle2 {
+ font-size: 1rem;
+}
+.text-body1 {
+ font-size: .875rem;
+}
+.text-body2 {
+ font-size: .875rem;
+}
+.text-caption {
+ font-size: .875rem;
+}
+.text-overline {
+ font-size: .8rem;
+}
+.text-capitalize {
+ text-transform: capitalize;
+}
+
+h1, h2, h3, h4, h5, h6 {
+ padding: 0;
+ margin-top: 0;
+ margin-bottom: 4px;
+}
+
+/* Colors */
+
+.text-primary {
+ color: $color-main;
+}
+.text-secondary {
+ color: $color-font-light;
+}
+
+/* Helpers */
+
+.text-uppercase {
+ text-transform: uppercase;
+}
+.text-center {
+ text-align: center;
+}
+.text-right {
+ text-align: right;
+}
+.text-left {
+ text-align: left;
+}
diff --git a/front/salix/components/log/index.html b/front/salix/components/log/index.html
index c6b1ade2af..d5675975b5 100644
--- a/front/salix/components/log/index.html
+++ b/front/salix/components/log/index.html
@@ -10,19 +10,18 @@
+ class="vn-w-sm vn-px-sm">
-
-
+
+
+
+
+
+
+
+ show-field="changedModelI18n"
+ data="$ctrl.models"
+ class="changed-model">
+
-
+
@@ -199,7 +195,7 @@
label="To"
ng-model="filter.to">
-
+
diff --git a/front/salix/components/log/index.js b/front/salix/components/log/index.js
index 803eea45e5..7452c66364 100644
--- a/front/salix/components/log/index.js
+++ b/front/salix/components/log/index.js
@@ -1,5 +1,6 @@
import ngModule from '../../module';
import Section from '../section';
+import {hashToColor} from 'core/lib/string';
import './style.scss';
const validDate = /^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])T(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])(.[0-9]+)?(Z)?$/;
@@ -7,11 +8,12 @@ const validDate = /^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[
export default class Controller extends Section {
constructor($element, $) {
super($element, $);
+ this.hashToColor = hashToColor;
this.actionsText = {
insert: 'Creates',
- update: 'Updates',
+ update: 'Edits',
delete: 'Deletes',
- select: 'Views'
+ select: 'Accesses'
};
this.actionsClass = {
insert: 'success',
@@ -19,6 +21,12 @@ export default class Controller extends Section {
delete: 'alert',
select: 'notice'
};
+ this.actionsIcon = {
+ insert: 'add',
+ update: 'edit',
+ delete: 'remove',
+ select: 'visibility'
+ };
this.filter = {
include: [{
relation: 'user',
@@ -55,14 +63,14 @@ export default class Controller extends Section {
set logs(value) {
this._logs = value;
- if (!this.logs) return;
+ if (!value) return;
const empty = {};
const validations = window.validations;
for (const log of value) {
const oldValues = log.oldInstance || empty;
const newValues = log.newInstance || empty;
const locale = validations[log.changedModel]?.locale || empty;
- log.changedModelI18n = locale.name || log.changedModel;
+ log.changedModelI18n = firstUpper(locale.name) || log.changedModel;
let props = Object.keys(oldValues).concat(Object.keys(newValues));
props = [...new Set(props)];
@@ -71,11 +79,27 @@ export default class Controller extends Section {
for (const prop of props) {
log.props.push({
name: prop,
- nameI18n: locale.columns?.[prop] || prop,
+ nameI18n: firstUpper(locale.columns?.[prop]) || prop,
old: this.castJsonValue(oldValues[prop]),
new: this.castJsonValue(newValues[prop])
});
}
+ log.props.sort(
+ (a, b) => a.nameI18n.localeCompare(b.nameI18n));
+ }
+ }
+
+ get models() {
+ return this._models;
+ }
+
+ set models(value) {
+ this._models = value;
+ if (!value) return;
+ for (const model of value) {
+ const name = model.changedModel;
+ model.changedModelI18n =
+ firstUpper(window.validations[name]?.locale?.name) || name;
}
}
@@ -93,11 +117,6 @@ export default class Controller extends Section {
return action == 'delete' ? prop.old : prop.new;
}
- toggleAttributes(log, changesEl, force) {
- log.expand = force;
- changesEl.classList.toggle('expanded', force);
- }
-
relativeDate(dateVal) {
if (dateVal == null) return '';
const date = new Date(dateVal);
@@ -130,8 +149,17 @@ export default class Controller extends Section {
function getParam(prop, value) {
if (value == null || value == '') return null;
switch (prop) {
- case 'changedModelValue':
- return {[prop]: {like: `%${value}%`}};
+ case 'search':
+ const or = [{changedModelId: value}];
+ if (!/^[0-9]+$/.test(value))
+ or.push({changedModelValue: {like: `%${value}%`}});
+ return {or};
+ case 'changes':
+ return {or: [
+ {oldInstance: {like: `%${value}%`}},
+ {newInstance: {like: `%${value}%`}},
+ {description: {like: `%${value}%`}}
+ ]};
case 'who':
switch (value) {
case 'all':
@@ -195,6 +223,10 @@ export default class Controller extends Section {
}
}
+function firstUpper(str) {
+ return str && str.charAt(0).toUpperCase() + str.substr(1);
+}
+
ngModule.vnComponent('vnLog', {
controller: Controller,
template: require('./index.html'),
diff --git a/front/salix/components/log/locale/es.yml b/front/salix/components/log/locale/es.yml
index 385b421475..95d930716d 100644
--- a/front/salix/components/log/locale/es.yml
+++ b/front/salix/components/log/locale/es.yml
@@ -1,5 +1,8 @@
Date: Fecha
-Model: Modelo
+Concept: Concepto
+Search: Buscar
+Search by id or concept: Buscar por identificador o concepto
+Entity: Entidad
Action: Acción
Author: Autor
Before: Antes
@@ -7,12 +10,12 @@ After: Despues
History: Historial
Name: Nombre
Creates: Crea
-Updates: Actualiza
+Edits: Modifica
Deletes: Elimina
-Views: Visualiza
+Accesses: Accede
System: Sistema
+Details: Detalles
note: nota
Changes: Cambios
-No changes: No hay cambios
today: hoy
yesterday: ayer
diff --git a/front/salix/components/log/style.scss b/front/salix/components/log/style.scss
index 381b99039e..7a5e180497 100644
--- a/front/salix/components/log/style.scss
+++ b/front/salix/components/log/style.scss
@@ -1,4 +1,5 @@
@import "variables";
+@import "effects";
vn-log {
.change {
@@ -45,31 +46,52 @@ vn-log {
overflow: hidden;
& > .header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- & > .chip {
- padding: 2px 4px;
- border-radius: 4px;
- display: inline-block;
- color: $color-font-bg;
+ & > .action-model {
+ display: inline-flex;
+ overflow: hidden;
- &.notice {
- background-color: $color-notice-medium;
- }
- &.success {
- background-color: $color-success-medium;
- }
- &.warning {
- background-color: $color-main-medium;
- }
- &.alert {
- background-color: lighten($color-alert, 5%);
+ & > .model-name {
+ display: inline-block;
+ padding: 2px 5px;
+ color: $color-font-dark;
+ border-radius: 8px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
}
}
- .date {
- float: right;
+ & > .action-date {
+ white-space: nowrap;
+
+ & > .action {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ color: $color-font-bg;
+ vertical-align: middle;
+ border-radius: 50%;
+ width: 24px;
+ height: 24px;
+ font-size: 1.4em;
+
+ &.notice {
+ background-color: $color-notice-medium
+ }
+ &.success {
+ background-color: $color-success-medium;
+ }
+ &.warning {
+ background-color: $color-main-medium;
+ }
+ &.alert {
+ background-color: lighten($color-alert, 5%);
+ }
+ }
}
}
& > .model {
@@ -77,16 +99,12 @@ vn-log {
text-overflow: ellipsis;
white-space: nowrap;
- & > .model-name {
- text-transform: capitalize;
- }
& > .model-value {
font-style: italic;
- color: #c7bd2b;
}
& > .model-id {
color: $color-font-secondary;
- font-size: .9em;
+ font-size: .9rem;
}
}
}
@@ -94,59 +112,35 @@ vn-log {
.changes {
overflow: hidden;
background-color: rgba(255, 255, 255, .05);
- border-radius: 4px;
- color: $color-font-secondary;
- transition: max-height 150ms ease-in-out;
- max-height: 28px;
+ color: $color-font-light;
position: relative;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ min-height: 34px;
+ box-sizing: border-box;
- & > .expand-button,
- & > .shrink-button {
- display: none;
+ & > vn-icon {
+ @extend %clickable;
+ float: right;
+ position: relative;
+ transition-property: transform, background-color;
+ transition-duration: 150ms;
+ margin: -5px;
+ margin-left: 4px;
+ padding: 1px;
+ border-radius: 50%;
}
- &.props {
- padding-right: 24px;
+ &.expanded {
+ text-overflow: initial;
+ white-space: initial;
- & > .expand-button,
- & > .shrink-button {
- position: absolute;
- top: 6px;
- right: 8px;
- font-size: inherit;
- float: right;
- cursor: pointer;
- }
- & > .expand-button {
- display: block;
- }
- &.expanded {
- max-height: 500px;
- padding-right: 0;
-
- & > .changes-wrapper {
- text-overflow: initial;
- white-space: initial;
- }
- & > .shrink-button {
- display: block;
- }
- & > .expand-button {
- display: none;
- }
+ & > vn-icon {
+ transform: rotate(180deg);
}
}
- & > .changes-wrapper {
- padding: 4px 6px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-
- & > .no-changes {
- font-style: italic;
- }
- .json-field {
- text-transform: capitalize;
- }
+ & > .no-changes {
+ font-style: italic;
}
}
}
diff --git a/front/salix/components/reset-password/index.js b/front/salix/components/reset-password/index.js
index 20c6c34fe7..a3ca032372 100644
--- a/front/salix/components/reset-password/index.js
+++ b/front/salix/components/reset-password/index.js
@@ -33,7 +33,7 @@ export default class Controller {
const newPassword = this.newPassword;
- this.$http.post('users/reset-password', {newPassword}, {headers})
+ this.$http.post('VnUsers/reset-password', {newPassword}, {headers})
.then(() => {
this.vnApp.showSuccess(this.$translate.instant('Password changed!'));
this.$state.go('login');
diff --git a/modules/account/back/locale/mail-forward/en.yml b/modules/account/back/locale/mail-forward/en.yml
new file mode 100644
index 0000000000..2e136e6647
--- /dev/null
+++ b/modules/account/back/locale/mail-forward/en.yml
@@ -0,0 +1,4 @@
+name: mail forward
+columns:
+ account: account
+ forwardTo: forward to
diff --git a/modules/account/back/locale/mail-forward/es.yml b/modules/account/back/locale/mail-forward/es.yml
new file mode 100644
index 0000000000..3e81f833ec
--- /dev/null
+++ b/modules/account/back/locale/mail-forward/es.yml
@@ -0,0 +1,4 @@
+name: reenvio de correo
+columns:
+ account: cuenta
+ forwardTo: reenviar a
diff --git a/modules/account/back/locale/mail/es.yml b/modules/account/back/locale/mail/es.yml
index a0b02b45ff..340f7ec50f 100644
--- a/modules/account/back/locale/mail/es.yml
+++ b/modules/account/back/locale/mail/es.yml
@@ -1,4 +1,4 @@
-name: mail
+name: correo electrónico
columns:
id: id
receiver: receptor
diff --git a/modules/account/back/locale/role-inherit/en.yml b/modules/account/back/locale/role-inherit/en.yml
new file mode 100644
index 0000000000..7608813255
--- /dev/null
+++ b/modules/account/back/locale/role-inherit/en.yml
@@ -0,0 +1,4 @@
+name: subrole
+columns:
+ role: rol
+ inheritsFrom: inherits
diff --git a/modules/account/back/locale/role-inherit/es.yml b/modules/account/back/locale/role-inherit/es.yml
new file mode 100644
index 0000000000..c352c6ff22
--- /dev/null
+++ b/modules/account/back/locale/role-inherit/es.yml
@@ -0,0 +1,4 @@
+name: subrol
+columns:
+ role: rol
+ inheritsFrom: hereda
diff --git a/modules/account/back/locale/role/en.yml b/modules/account/back/locale/role/en.yml
new file mode 100644
index 0000000000..69199dfced
--- /dev/null
+++ b/modules/account/back/locale/role/en.yml
@@ -0,0 +1,5 @@
+name: role
+columns:
+ id: id
+ name: name
+ description: description
diff --git a/modules/account/back/locale/role/es.yml b/modules/account/back/locale/role/es.yml
new file mode 100644
index 0000000000..ee025be0fc
--- /dev/null
+++ b/modules/account/back/locale/role/es.yml
@@ -0,0 +1,5 @@
+name: rol
+columns:
+ id: id
+ name: nombre
+ description: descripción
diff --git a/back/locale/account/en.yml b/modules/account/back/locale/vn-user/en.yml
similarity index 84%
rename from back/locale/account/en.yml
rename to modules/account/back/locale/vn-user/en.yml
index 0d6c5db80b..135cf75b42 100644
--- a/back/locale/account/en.yml
+++ b/modules/account/back/locale/vn-user/en.yml
@@ -1,4 +1,4 @@
-name: account
+name: user
columns:
id: id
name: name
@@ -6,7 +6,7 @@ columns:
nickname: nickname
lang: lang
password: password
- bcryptPassword: bcrypt password
+ bcryptPassword: BCRYPT password
active: active
email: email
emailVerified: email verified
diff --git a/back/locale/account/es.yml b/modules/account/back/locale/vn-user/es.yml
similarity index 59%
rename from back/locale/account/es.yml
rename to modules/account/back/locale/vn-user/es.yml
index 79e8a8cc6c..53086ae2d7 100644
--- a/back/locale/account/es.yml
+++ b/modules/account/back/locale/vn-user/es.yml
@@ -1,4 +1,4 @@
-name: cuenta
+name: usuario
columns:
id: id
name: nombre
@@ -6,12 +6,12 @@ columns:
nickname: apodo
lang: idioma
password: contraseña
- bcryptPassword: contraseña bcrypt
+ bcryptPassword: contraseña BCRYPT
active: activo
- email: email
- emailVerified: email verificado
+ email: correo electrónico
+ emailVerified: correo verificado
created: creado
updated: actualizado
image: imagen
- hasGrant: tiene permiso
+ hasGrant: puede delegar
userFk: usuario
diff --git a/modules/claim/back/locale/claim-beginning/en.yml b/modules/claim/back/locale/claim-beginning/en.yml
index 47cc29c69d..4c1520704f 100644
--- a/modules/claim/back/locale/claim-beginning/en.yml
+++ b/modules/claim/back/locale/claim-beginning/en.yml
@@ -1,4 +1,4 @@
-name: claim beginning
+name: beginning
columns:
id: id
quantity: quantity
diff --git a/modules/claim/back/locale/claim-beginning/es.yml b/modules/claim/back/locale/claim-beginning/es.yml
index 5e898c25e5..20110cb521 100644
--- a/modules/claim/back/locale/claim-beginning/es.yml
+++ b/modules/claim/back/locale/claim-beginning/es.yml
@@ -1,4 +1,4 @@
-name: comienzo reclamación
+name: comienzo
columns:
id: id
quantity: cantidad
diff --git a/modules/claim/back/locale/claim-development/en.yml b/modules/claim/back/locale/claim-development/en.yml
index 054381e670..875cbf1212 100644
--- a/modules/claim/back/locale/claim-development/en.yml
+++ b/modules/claim/back/locale/claim-development/en.yml
@@ -1,4 +1,4 @@
-name: claim development
+name: development
columns:
id: id
claimFk: claim
diff --git a/modules/claim/back/locale/claim-development/es.yml b/modules/claim/back/locale/claim-development/es.yml
index d5223e7551..c95a1c0e70 100644
--- a/modules/claim/back/locale/claim-development/es.yml
+++ b/modules/claim/back/locale/claim-development/es.yml
@@ -1,4 +1,4 @@
-name: desarrollo reclamación
+name: desarrollo
columns:
id: id
claimFk: reclamación
diff --git a/modules/claim/back/locale/claim-dms/en.yml b/modules/claim/back/locale/claim-dms/en.yml
index c76c364e79..4b54ca19b9 100644
--- a/modules/claim/back/locale/claim-dms/en.yml
+++ b/modules/claim/back/locale/claim-dms/en.yml
@@ -1,4 +1,4 @@
-name: claim dms
+name: document
columns:
dmsFk: dms
claimFk: claim
diff --git a/modules/claim/back/locale/claim-dms/es.yml b/modules/claim/back/locale/claim-dms/es.yml
index 949e20a36b..d471b1ff64 100644
--- a/modules/claim/back/locale/claim-dms/es.yml
+++ b/modules/claim/back/locale/claim-dms/es.yml
@@ -1,4 +1,4 @@
-name: documento reclamación
+name: documento
columns:
dmsFk: dms
claimFk: reclamación
diff --git a/modules/claim/back/locale/claim-end/en.yml b/modules/claim/back/locale/claim-end/en.yml
index f9e736d761..4565cd5799 100644
--- a/modules/claim/back/locale/claim-end/en.yml
+++ b/modules/claim/back/locale/claim-end/en.yml
@@ -1,4 +1,4 @@
-name: claim end
+name: end
columns:
id: id
claimFk: claim
diff --git a/modules/claim/back/locale/claim-end/es.yml b/modules/claim/back/locale/claim-end/es.yml
index 9855eca031..e5511c1668 100644
--- a/modules/claim/back/locale/claim-end/es.yml
+++ b/modules/claim/back/locale/claim-end/es.yml
@@ -1,4 +1,4 @@
-name: final reclamación
+name: finalización
columns:
id: id
claimFk: reclamación
diff --git a/modules/claim/back/locale/claim-observation/en.yml b/modules/claim/back/locale/claim-observation/en.yml
index 772ea038cc..a0ba2c4494 100644
--- a/modules/claim/back/locale/claim-observation/en.yml
+++ b/modules/claim/back/locale/claim-observation/en.yml
@@ -1,4 +1,4 @@
-name: claim observation
+name: observation
columns:
id: id
claimFk: claim
diff --git a/modules/claim/back/locale/claim-observation/es.yml b/modules/claim/back/locale/claim-observation/es.yml
index fae3a1ae9f..9ea5e275c4 100644
--- a/modules/claim/back/locale/claim-observation/es.yml
+++ b/modules/claim/back/locale/claim-observation/es.yml
@@ -1,4 +1,4 @@
-name: observación reclamación
+name: observación
columns:
id: id
claimFk: reclamación
diff --git a/modules/client/back/locale/address/en.yml b/modules/client/back/locale/address/en.yml
index 3d090ba89b..00f3b15f5e 100644
--- a/modules/client/back/locale/address/en.yml
+++ b/modules/client/back/locale/address/en.yml
@@ -18,3 +18,4 @@ columns:
addressFk: address
incotermsFk: incoterms
customsAgentFk: customs agent
+ isDefaultAddress: default
diff --git a/modules/client/back/locale/address/es.yml b/modules/client/back/locale/address/es.yml
index 1379f75a4a..f2b954124f 100644
--- a/modules/client/back/locale/address/es.yml
+++ b/modules/client/back/locale/address/es.yml
@@ -18,3 +18,4 @@ columns:
addressFk: dirección
incotermsFk: incoterms
customsAgentFk: agente adunanas
+ isDefaultAddress: predeterminada
diff --git a/modules/client/back/locale/client-contact/en.yml b/modules/client/back/locale/client-contact/en.yml
index 5bd6e25db1..2b47f5b4bc 100644
--- a/modules/client/back/locale/client-contact/en.yml
+++ b/modules/client/back/locale/client-contact/en.yml
@@ -1,4 +1,4 @@
-name: client contact
+name: contact
columns:
id: id
name: name
diff --git a/modules/client/back/locale/client-contact/es.yml b/modules/client/back/locale/client-contact/es.yml
index 5802c0dde3..0116a537a8 100644
--- a/modules/client/back/locale/client-contact/es.yml
+++ b/modules/client/back/locale/client-contact/es.yml
@@ -1,4 +1,4 @@
-name: contacto cliente
+name: contacto
columns:
id: id
name: nombre
diff --git a/modules/client/back/locale/client-dms/en.yml b/modules/client/back/locale/client-dms/en.yml
index c8ad686350..de4d6c434e 100644
--- a/modules/client/back/locale/client-dms/en.yml
+++ b/modules/client/back/locale/client-dms/en.yml
@@ -1,4 +1,4 @@
-name: client dms
+name: document
columns:
dmsFk: dms
clientFk: client
diff --git a/modules/client/back/locale/client-dms/es.yml b/modules/client/back/locale/client-dms/es.yml
index c683f4764d..e1744b0192 100644
--- a/modules/client/back/locale/client-dms/es.yml
+++ b/modules/client/back/locale/client-dms/es.yml
@@ -1,4 +1,4 @@
-name: documento cliente
+name: documento
columns:
dmsFk: dms
clientFk: client
diff --git a/modules/client/back/locale/client-observation/en.yml b/modules/client/back/locale/client-observation/en.yml
index 2dd8393ae8..0cf5e0dc1d 100644
--- a/modules/client/back/locale/client-observation/en.yml
+++ b/modules/client/back/locale/client-observation/en.yml
@@ -1,4 +1,4 @@
-name: client observation
+name: observation
columns:
id: id
clientFk: client
diff --git a/modules/client/back/locale/client-observation/es.yml b/modules/client/back/locale/client-observation/es.yml
index 0fc6bbf047..b04ae63d93 100644
--- a/modules/client/back/locale/client-observation/es.yml
+++ b/modules/client/back/locale/client-observation/es.yml
@@ -1,4 +1,4 @@
-name: observación cliente
+name: observación
columns:
id: id
clientFk: cliente
diff --git a/modules/client/back/locale/client-sample/en.yml b/modules/client/back/locale/client-sample/en.yml
index 77639fbb40..4c355ab7fc 100644
--- a/modules/client/back/locale/client-sample/en.yml
+++ b/modules/client/back/locale/client-sample/en.yml
@@ -1,4 +1,4 @@
-name: client sample
+name: sample
columns:
id: id
created: created
@@ -6,3 +6,5 @@ columns:
typeFk: type
userFk: user
companyFk: company
+ workerFk: worker
+ balance: balance
diff --git a/modules/client/back/locale/client-sample/es.yml b/modules/client/back/locale/client-sample/es.yml
index 6311eb25ab..5293adaa8b 100644
--- a/modules/client/back/locale/client-sample/es.yml
+++ b/modules/client/back/locale/client-sample/es.yml
@@ -1,4 +1,4 @@
-name: muestra cliente
+name: muestra
columns:
id: id
created: creado
@@ -6,3 +6,5 @@ columns:
typeFk: tipo
userFk: usuario
companyFk: compañia
+ workerFk: trabajador
+ balance: balance
diff --git a/modules/client/back/locale/client/en.yml b/modules/client/back/locale/client/en.yml
index 71048f657f..74384461cf 100644
--- a/modules/client/back/locale/client/en.yml
+++ b/modules/client/back/locale/client/en.yml
@@ -2,7 +2,7 @@ name: client
columns:
id: id
name: name
- fi: fi
+ fi: tax identifier
socialName: socialName
contact: contact
street: street
@@ -14,22 +14,22 @@ columns:
isActive: active
credit: credit
creditInsurance: credit insurance
- iban: iban
+ iban: IBAN
dueDay: due day
isEqualizated: equalizated
isFreezed: freezed
hasToInvoiceByAddress: invoice by address
hasToInvoice: has to invoice
- isToBeMailed: be mailed
- hasSepaVnl: sepa nnl
- hasLcr: lcr
- hasCoreVnl: core vnl
- hasCoreVnh: core vnh
+ isToBeMailed: mailed
+ hasSepaVnl: sepa VNL
+ hasLcr: LCR
+ hasCoreVnl: core VNL
+ hasCoreVnh: core VNH
hasIncoterms: incoterms
isTaxDataChecked: tax data checked
- eypbc: eypbc
+ eypbc: EYPBC
quality: quality
- isVies: vies
+ isVies: VIES
isRelevant: relevant
accountingAccount: accounting account
created: created
@@ -47,4 +47,9 @@ columns:
defaultAddressFk: default address
bankEntityFk: bank entity
transferorFk: transferor
+ riskCalculated: risk calculated
+ isCreatedAsServed: created as served
+ hasInvoiceSimplified: simplified invoice
+ typeFk: type
+ lastSalesPersonFk: last salesperson
diff --git a/modules/client/back/locale/client/es.yml b/modules/client/back/locale/client/es.yml
index 04e391af00..47bf896d9b 100644
--- a/modules/client/back/locale/client/es.yml
+++ b/modules/client/back/locale/client/es.yml
@@ -2,7 +2,7 @@ name: cliente
columns:
id: id
name: nombre
- fi: fi
+ fi: identificador fiscal
socialName: nombre social
contact: contacto
street: calle
@@ -14,27 +14,27 @@ columns:
isActive: activo
credit: crédito
creditInsurance: seguro crédito
- iban: iban
+ iban: IBAN
dueDay: día vencimiento
isEqualizated: igualado
isFreezed: congelado
hasToInvoiceByAddress: factura por dirección
hasToInvoice: tiene que facturar
isToBeMailed: envío por email
- hasSepaVnl: sepa nnl
- hasLcr: lcr
- hasCoreVnl: centro vnl
- hasCoreVnh: cenrto vnh
+ hasSepaVnl: sepa VNL
+ hasLcr: LCR
+ hasCoreVnl: centro VNL
+ hasCoreVnh: centro VNH
hasIncoterms: incoterms
isTaxDataChecked: datos fiscales comprobados
- eypbc: eypbc
+ eypbc: EYPBC
quality: calidad
- isVies: vies
+ isVies: VIES
isRelevant: importante
accountingAccount: cuenta contable
created: creado
sageTaxTypeFk: tipo impuesto sage
- sageTransactionTypeFk: tipo transacción sage
+ sageTransactionTypeFk: tipo transacción Sage
businessTypeFk: tipo negocio
salesPersonFk: comercial
hasElectronicInvoice: factura electrónica
@@ -47,4 +47,9 @@ columns:
defaultAddressFk: dirección predeterminada
bankEntityFk: entidad bancaria
transferorFk: cedente
+ riskCalculated: riesgo calculado
+ isCreatedAsServed: creado como servido
+ hasInvoiceSimplified: factura simple
+ typeFk: tipo
+ lastSalesPersonFk: último comercial
diff --git a/modules/client/back/locale/tpv-transaction/en.yml b/modules/client/back/locale/tpv-transaction/en.yml
index fbe1bbadc8..c709144959 100644
--- a/modules/client/back/locale/tpv-transaction/en.yml
+++ b/modules/client/back/locale/tpv-transaction/en.yml
@@ -1,4 +1,4 @@
-name: tpv transaction
+name: TPV transaction
columns:
id: id
merchantFk: merchant
diff --git a/modules/client/back/locale/tpv-transaction/es.yml b/modules/client/back/locale/tpv-transaction/es.yml
index c751b354d8..7d412ba662 100644
--- a/modules/client/back/locale/tpv-transaction/es.yml
+++ b/modules/client/back/locale/tpv-transaction/es.yml
@@ -1,4 +1,4 @@
-name: transacción tpv
+name: transacción TPV
columns:
id: id
merchantFk: comerciante
diff --git a/modules/entry/back/locale/entry-observation/en.yml b/modules/entry/back/locale/entry-observation/en.yml
index efe908c9f9..379683303e 100644
--- a/modules/entry/back/locale/entry-observation/en.yml
+++ b/modules/entry/back/locale/entry-observation/en.yml
@@ -1,4 +1,4 @@
-name: entry observation
+name: observation
columns:
id: id
description: description
diff --git a/modules/entry/back/locale/entry-observation/es.yml b/modules/entry/back/locale/entry-observation/es.yml
index 43799ae003..8879f1e1b1 100644
--- a/modules/entry/back/locale/entry-observation/es.yml
+++ b/modules/entry/back/locale/entry-observation/es.yml
@@ -1,4 +1,4 @@
-name: observación entrada
+name: observación
columns:
id: id
description: descripción
diff --git a/modules/item/back/locale/item-barcode/en.yml b/modules/item/back/locale/item-barcode/en.yml
index c1b20855fc..16b18b1630 100644
--- a/modules/item/back/locale/item-barcode/en.yml
+++ b/modules/item/back/locale/item-barcode/en.yml
@@ -1,4 +1,4 @@
-name: item barcode
+name: barcode
columns:
id: id
code: code
diff --git a/modules/item/back/locale/item-barcode/es.yml b/modules/item/back/locale/item-barcode/es.yml
index c1557f6d87..11d9f0c225 100644
--- a/modules/item/back/locale/item-barcode/es.yml
+++ b/modules/item/back/locale/item-barcode/es.yml
@@ -1,4 +1,4 @@
-name: código barras artículo
+name: código barras
columns:
id: id
code: código
diff --git a/modules/item/back/locale/item-botanical/en.yml b/modules/item/back/locale/item-botanical/en.yml
index f5a9e4c5a9..03c66a0970 100644
--- a/modules/item/back/locale/item-botanical/en.yml
+++ b/modules/item/back/locale/item-botanical/en.yml
@@ -1,4 +1,4 @@
-name: item botanical
+name: botanical
columns:
itemFk: item
genusFk: genus
diff --git a/modules/item/back/locale/item-botanical/es.yml b/modules/item/back/locale/item-botanical/es.yml
index 8e0a45491e..ca7fd5bf1e 100644
--- a/modules/item/back/locale/item-botanical/es.yml
+++ b/modules/item/back/locale/item-botanical/es.yml
@@ -1,4 +1,4 @@
-name: artículo botánico
+name: botánico
columns:
itemFk: artículo
genusFk: género
diff --git a/modules/item/back/locale/item-tag/en.yml b/modules/item/back/locale/item-tag/en.yml
index fee588b4c9..8d8288a96f 100644
--- a/modules/item/back/locale/item-tag/en.yml
+++ b/modules/item/back/locale/item-tag/en.yml
@@ -1,4 +1,4 @@
-name: item tag
+name: tag
columns:
id: id
value: value
diff --git a/modules/item/back/locale/item-tag/es.yml b/modules/item/back/locale/item-tag/es.yml
index 3e1d1a9cf0..f9c9aac0b4 100644
--- a/modules/item/back/locale/item-tag/es.yml
+++ b/modules/item/back/locale/item-tag/es.yml
@@ -1,4 +1,4 @@
-name: etiqueta artículo
+name: etiqueta
columns:
id: id
value: valor
diff --git a/modules/item/back/locale/item-tax-country/en.yml b/modules/item/back/locale/item-tax-country/en.yml
index 060ad99108..c85c5af436 100644
--- a/modules/item/back/locale/item-tax-country/en.yml
+++ b/modules/item/back/locale/item-tax-country/en.yml
@@ -1,4 +1,4 @@
-name: item tax country
+name: country tax
columns:
id: id
effectived: effectived
diff --git a/modules/item/back/locale/item-tax-country/es.yml b/modules/item/back/locale/item-tax-country/es.yml
index 2a0e6b5e29..48baf735b1 100644
--- a/modules/item/back/locale/item-tax-country/es.yml
+++ b/modules/item/back/locale/item-tax-country/es.yml
@@ -1,7 +1,7 @@
-name: impuesto país del artículo
+name: impuesto país
columns:
id: id
effectived: efectivo
itemFk: artículo
countryFk: país
- taxClassFk: clase impuestos
+ taxClassFk: clase impuesto
diff --git a/modules/item/back/locale/item/en.yml b/modules/item/back/locale/item/en.yml
index d63c95c70b..39e4653004 100644
--- a/modules/item/back/locale/item/en.yml
+++ b/modules/item/back/locale/item/en.yml
@@ -44,4 +44,6 @@ columns:
intrastatFk: intrastat
genericFk: generic
itemFk: item
+ density: density
+ compression: compression
diff --git a/modules/item/back/locale/item/es.yml b/modules/item/back/locale/item/es.yml
index d652889547..4b75b47041 100644
--- a/modules/item/back/locale/item/es.yml
+++ b/modules/item/back/locale/item/es.yml
@@ -27,8 +27,8 @@ columns:
value9: valor9
tag10: etiqueta10
value10: valor10
- itemPackingTypeFk: embalaje del artículo
- hasKgPrice: tiene precio kg
+ itemPackingTypeFk: tipo embalaje
+ hasKgPrice: precio kg
family: familia
expenseFk: gasto
minPrice: precio mínimo
@@ -44,4 +44,6 @@ columns:
intrastatFk: intrastat
genericFk: genérico
itemFk: artículo
+ density: densidad
+ compression: compresión
diff --git a/modules/route/back/locale/route/es.yml b/modules/route/back/locale/route/es.yml
index d1e38ff7e6..c0a4347917 100644
--- a/modules/route/back/locale/route/es.yml
+++ b/modules/route/back/locale/route/es.yml
@@ -1,14 +1,14 @@
name: ruta
columns:
id: id
- created: creado
+ created: creada
time: tiempo
kmStart: km inicio
kmEnd: km fin
- started: comenzado
- finished: terminado
+ started: empezada
+ finished: terminada
gestdoc: gestdoc
- cost: costo
+ cost: coste
m3: m3
description: descripción
isOk: ok
diff --git a/modules/supplier/back/locale/supplier-account/en.yml b/modules/supplier/back/locale/supplier-account/en.yml
index bc2add8334..2bce50cfa6 100644
--- a/modules/supplier/back/locale/supplier-account/en.yml
+++ b/modules/supplier/back/locale/supplier-account/en.yml
@@ -1,7 +1,7 @@
-name: supplier account
+name: account
columns:
id: id
- iban: iban
+ iban: IBAN
beneficiary: beneficiary
supplierFk: supplier
bankEntityFk: bank entity
diff --git a/modules/supplier/back/locale/supplier-account/es.yml b/modules/supplier/back/locale/supplier-account/es.yml
index 0d751b387d..120293c8a4 100644
--- a/modules/supplier/back/locale/supplier-account/es.yml
+++ b/modules/supplier/back/locale/supplier-account/es.yml
@@ -1,7 +1,7 @@
-name: cuenta proveedor
+name: cuenta
columns:
id: id
- iban: iban
+ iban: IBAN
beneficiary: beneficiario
supplierFk: proveedor
bankEntityFk: entidad bancaria
diff --git a/modules/supplier/back/locale/supplier-contact/en.yml b/modules/supplier/back/locale/supplier-contact/en.yml
index 62f9232936..f79dfae19a 100644
--- a/modules/supplier/back/locale/supplier-contact/en.yml
+++ b/modules/supplier/back/locale/supplier-contact/en.yml
@@ -1,4 +1,4 @@
-name: supplier contact
+name: contact
columns:
id: id
supplierFk: supplier
diff --git a/modules/supplier/back/locale/supplier-contact/es.yml b/modules/supplier/back/locale/supplier-contact/es.yml
index d35f0bf2e8..486c7924d0 100644
--- a/modules/supplier/back/locale/supplier-contact/es.yml
+++ b/modules/supplier/back/locale/supplier-contact/es.yml
@@ -1,4 +1,4 @@
-name: contacto proveedor
+name: contacto
columns:
id: id
supplierFk: proveedor
diff --git a/modules/supplier/back/locale/supplier/en.yml b/modules/supplier/back/locale/supplier/en.yml
index 1be941a704..25bcae1e37 100644
--- a/modules/supplier/back/locale/supplier/en.yml
+++ b/modules/supplier/back/locale/supplier/en.yml
@@ -4,7 +4,7 @@ columns:
name: name
account: account
countryFk: country
- nif: nif
+ nif: NIF
phone: phone
retAccount: ret account
commission: commission
diff --git a/modules/supplier/back/locale/supplier/es.yml b/modules/supplier/back/locale/supplier/es.yml
index 6ac8379f54..678c384a98 100644
--- a/modules/supplier/back/locale/supplier/es.yml
+++ b/modules/supplier/back/locale/supplier/es.yml
@@ -4,7 +4,7 @@ columns:
name: nombre
account: cuenta
countryFk: país
- nif: nif
+ nif: NIF
phone: teléfono
retAccount: cuenta ret
commission: comisión
diff --git a/modules/ticket/back/locale/expedition/en.yml b/modules/ticket/back/locale/expedition/en.yml
index 1834984ea2..5ec5d5ecd0 100644
--- a/modules/ticket/back/locale/expedition/en.yml
+++ b/modules/ticket/back/locale/expedition/en.yml
@@ -8,3 +8,7 @@ columns:
agencyModeFk: agency
workerFk: worker
packagingFk: packaging
+ hasNewRoute: new route
+ hostFk: PC
+ isBox: box
+ itemPackingTypeFk: packing type
diff --git a/modules/ticket/back/locale/expedition/es.yml b/modules/ticket/back/locale/expedition/es.yml
index 32f72b9431..cda577f18f 100644
--- a/modules/ticket/back/locale/expedition/es.yml
+++ b/modules/ticket/back/locale/expedition/es.yml
@@ -8,3 +8,7 @@ columns:
agencyModeFk: agencia
workerFk: trabajador
packagingFk: embalaje
+ hasNewRoute: nueva ruta
+ hostFk: PC
+ isBox: caja
+ itemPackingTypeFk: tipo empaquetado
diff --git a/modules/ticket/back/locale/sale/en.yml b/modules/ticket/back/locale/sale/en.yml
index f844bf0c5b..09fa6735ca 100644
--- a/modules/ticket/back/locale/sale/en.yml
+++ b/modules/ticket/back/locale/sale/en.yml
@@ -1,5 +1,6 @@
name: sale
columns:
+ id: id
concept: concept
quantity: quantity
price: price
@@ -11,3 +12,7 @@ columns:
itemFk: item
ticketFk: ticket
saleFk: sale
+ priceFixed: price fixed
+ isPriceFixed: has fixed price
+ isAdded: added
+ total: total
diff --git a/modules/ticket/back/locale/sale/es.yml b/modules/ticket/back/locale/sale/es.yml
index 8196a089cb..e6a984a5d6 100644
--- a/modules/ticket/back/locale/sale/es.yml
+++ b/modules/ticket/back/locale/sale/es.yml
@@ -1,13 +1,18 @@
name: línea
columns:
+ id: id
concept: concepto
quantity: cantidad
price: precio
discount: descuento
reserved: reservado
- isPicked: esta seleccionado
+ isPicked: cogida
created: creado
originalQuantity: cantidad original
itemFk: artículo
ticketFk: ticket
saleFk: línea
+ priceFixed: precio fijado
+ isPriceFixed: tiene precio fijado
+ isAdded: añadida
+ total: total
diff --git a/modules/ticket/back/locale/ticket-dms/en.yml b/modules/ticket/back/locale/ticket-dms/en.yml
index 771e4daf3b..ff4c9f14b4 100644
--- a/modules/ticket/back/locale/ticket-dms/en.yml
+++ b/modules/ticket/back/locale/ticket-dms/en.yml
@@ -1,4 +1,4 @@
-name: ticket dms
+name: document
columns:
dmsFk: dms
ticketFk: ticket
diff --git a/modules/ticket/back/locale/ticket-dms/es.yml b/modules/ticket/back/locale/ticket-dms/es.yml
index 3602684286..09c3807325 100644
--- a/modules/ticket/back/locale/ticket-dms/es.yml
+++ b/modules/ticket/back/locale/ticket-dms/es.yml
@@ -1,4 +1,4 @@
-name: documento ticket
+name: documento
columns:
dmsFk: dms
ticketFk: ticket
diff --git a/modules/ticket/back/locale/ticket-observation/en.yml b/modules/ticket/back/locale/ticket-observation/en.yml
index 40bd567bf4..5a43b5887c 100644
--- a/modules/ticket/back/locale/ticket-observation/en.yml
+++ b/modules/ticket/back/locale/ticket-observation/en.yml
@@ -1,4 +1,4 @@
-name: ticket observation
+name: observation
columns:
id: id
description: description
diff --git a/modules/ticket/back/locale/ticket-observation/es.yml b/modules/ticket/back/locale/ticket-observation/es.yml
index 155eb58e29..7e72cd0c7d 100644
--- a/modules/ticket/back/locale/ticket-observation/es.yml
+++ b/modules/ticket/back/locale/ticket-observation/es.yml
@@ -1,4 +1,4 @@
-name: observación ticket
+name: observación
columns:
id: id
description: descripción
diff --git a/modules/ticket/back/locale/ticket-packaging/en.yml b/modules/ticket/back/locale/ticket-packaging/en.yml
index 4dd0185248..51cc01e07f 100644
--- a/modules/ticket/back/locale/ticket-packaging/en.yml
+++ b/modules/ticket/back/locale/ticket-packaging/en.yml
@@ -1,4 +1,4 @@
-name: ticket packaging
+name: packaging
columns:
id: id
quantity: quantity
diff --git a/modules/ticket/back/locale/ticket-packaging/es.yml b/modules/ticket/back/locale/ticket-packaging/es.yml
index a31a8c097c..b2c3e22ce5 100644
--- a/modules/ticket/back/locale/ticket-packaging/es.yml
+++ b/modules/ticket/back/locale/ticket-packaging/es.yml
@@ -1,4 +1,4 @@
-name: embalaje ticket
+name: embalaje
columns:
id: id
quantity: cantidad
diff --git a/modules/ticket/back/locale/ticket-refund/en.yml b/modules/ticket/back/locale/ticket-refund/en.yml
index 961b5c8c33..7da82a1a3a 100644
--- a/modules/ticket/back/locale/ticket-refund/en.yml
+++ b/modules/ticket/back/locale/ticket-refund/en.yml
@@ -1,4 +1,4 @@
-name: ticket refund
+name: refund
columns:
id: id
refundTicketFk: refund ticket
diff --git a/modules/ticket/back/locale/ticket-refund/es.yml b/modules/ticket/back/locale/ticket-refund/es.yml
index 8826ef9495..d83a60c557 100644
--- a/modules/ticket/back/locale/ticket-refund/es.yml
+++ b/modules/ticket/back/locale/ticket-refund/es.yml
@@ -1,4 +1,4 @@
-name: ticket abono
+name: abono
columns:
id: id
refundTicketFk: ticket abono
diff --git a/modules/ticket/back/locale/ticket-request/en.yml b/modules/ticket/back/locale/ticket-request/en.yml
index 498a933ac5..f381e0c9db 100644
--- a/modules/ticket/back/locale/ticket-request/en.yml
+++ b/modules/ticket/back/locale/ticket-request/en.yml
@@ -1,4 +1,4 @@
-name: ticket request
+name: request
columns:
id: id
description: description
diff --git a/modules/ticket/back/locale/ticket-request/es.yml b/modules/ticket/back/locale/ticket-request/es.yml
index b2871e737a..5504448bfc 100644
--- a/modules/ticket/back/locale/ticket-request/es.yml
+++ b/modules/ticket/back/locale/ticket-request/es.yml
@@ -1,4 +1,4 @@
-name: peticiones ticket
+name: peticion
columns:
id: id
description: descripción
diff --git a/modules/ticket/back/locale/ticket-service/en.yml b/modules/ticket/back/locale/ticket-service/en.yml
index cf4e6f43f6..a7c329415c 100644
--- a/modules/ticket/back/locale/ticket-service/en.yml
+++ b/modules/ticket/back/locale/ticket-service/en.yml
@@ -1,4 +1,4 @@
-name: ticket service
+name: service
columns:
id: id
ticketFk: ticket
diff --git a/modules/ticket/back/locale/ticket-service/es.yml b/modules/ticket/back/locale/ticket-service/es.yml
index ee07c13d3f..4b11be6d1d 100644
--- a/modules/ticket/back/locale/ticket-service/es.yml
+++ b/modules/ticket/back/locale/ticket-service/es.yml
@@ -1,4 +1,4 @@
-name: servicios ticket
+name: servicio
columns:
id: id
ticketFk: ticket
diff --git a/modules/ticket/back/locale/ticket-tracking/en.yml b/modules/ticket/back/locale/ticket-tracking/en.yml
index 15505a7638..213b9bff57 100644
--- a/modules/ticket/back/locale/ticket-tracking/en.yml
+++ b/modules/ticket/back/locale/ticket-tracking/en.yml
@@ -1,7 +1,8 @@
-name: ticket tracking
+name: state
columns:
id: id
created: created
ticketFk: ticket
stateFk: state
workerFk: worker
+ failFk: fail
diff --git a/modules/ticket/back/locale/ticket-tracking/es.yml b/modules/ticket/back/locale/ticket-tracking/es.yml
index 3459ab367b..d8d7a121f6 100644
--- a/modules/ticket/back/locale/ticket-tracking/es.yml
+++ b/modules/ticket/back/locale/ticket-tracking/es.yml
@@ -1,7 +1,8 @@
-name: seguimiento ticket
+name: estado
columns:
id: id
created: creado
ticketFk: ticket
stateFk: estado
workerFk: trabajador
+ failFk: fallo
diff --git a/modules/ticket/back/locale/ticket/en.yml b/modules/ticket/back/locale/ticket/en.yml
index 2481c42f89..96f7569ef8 100644
--- a/modules/ticket/back/locale/ticket/en.yml
+++ b/modules/ticket/back/locale/ticket/en.yml
@@ -1,5 +1,6 @@
name: ticket
columns:
+ id: id
shipped: shipped
landed: landed
nickname: nickname
@@ -23,3 +24,14 @@ columns:
agencyModeFk: agency
ticketFk: ticket
mergedTicket: merged ticket
+ withWarningAccept: negative warning
+ isWithoutNegatives: without negatives
+ isSigned: signed
+ isLabeled: labeled
+ isPrinted: printed
+ hour: hour
+ created: created
+ isBlocked: bloqued
+ hasPriority: priority
+ isBoxed: boxed
+ clonedFrom: cloned from
diff --git a/modules/ticket/back/locale/ticket/es.yml b/modules/ticket/back/locale/ticket/es.yml
index 5583786124..1cb8f478e2 100644
--- a/modules/ticket/back/locale/ticket/es.yml
+++ b/modules/ticket/back/locale/ticket/es.yml
@@ -1,5 +1,6 @@
name: ticket
columns:
+ id: id
shipped: salida
landed: entrega
nickname: alias
@@ -25,3 +26,12 @@ columns:
mergedTicket: ticket fusionado
withWarningAccept: aviso negativos
isWithoutNegatives: sin negativos
+ isSigned: firmado
+ isLabeled: etiquetado
+ isPrinted: impreso
+ hour: hora
+ created: creado
+ isBlocked: bloqueado
+ hasPriority: prioritario
+ isBoxed: encajado
+ clonedFrom: Clonado de
diff --git a/modules/ticket/front/sale/index.js b/modules/ticket/front/sale/index.js
index 24b0774763..b7cdc22b9f 100644
--- a/modules/ticket/front/sale/index.js
+++ b/modules/ticket/front/sale/index.js
@@ -194,7 +194,10 @@ class Controller extends Section {
}
createClaim() {
- const timeDifference = new Date().getTime() - new Date(this.ticket.shipped).getTime();
+ const today = new Date();
+ today.setHours(0, 0, 0, 0);
+ const timeDifference = today.getTime() - new Date(this.ticket.landed).getTime();
+
const pastDays = Math.floor(timeDifference / 86400000);
if (pastDays >= this.ticketConfig[0].daysForWarningClaim)
diff --git a/modules/travel/back/locale/travel-thermograph/en.yml b/modules/travel/back/locale/travel-thermograph/en.yml
index 92acee8969..d0d42d199c 100644
--- a/modules/travel/back/locale/travel-thermograph/en.yml
+++ b/modules/travel/back/locale/travel-thermograph/en.yml
@@ -1,4 +1,4 @@
-name: travel thermograph
+name: thermograph
columns:
id: id
created: created
@@ -6,5 +6,5 @@ columns:
result: result
warehouseFk: warehouse
travelFk: travel
- dmsFk: dms
+ dmsFk: document
thermographFk: thermograph
diff --git a/modules/travel/back/locale/travel-thermograph/es.yml b/modules/travel/back/locale/travel-thermograph/es.yml
index 0d08863b67..086fba3e66 100644
--- a/modules/travel/back/locale/travel-thermograph/es.yml
+++ b/modules/travel/back/locale/travel-thermograph/es.yml
@@ -1,4 +1,4 @@
-name: travel thermograph
+name: termógrafo
columns:
id: id
created: creado
@@ -6,5 +6,5 @@ columns:
result: resultado
warehouseFk: almacén
travelFk: envío
- dmsFk: dms
+ dmsFk: documento
thermographFk: termógrafo
diff --git a/modules/worker/back/locale/business/en.yml b/modules/worker/back/locale/business/en.yml
new file mode 100644
index 0000000000..f0642fbe4e
--- /dev/null
+++ b/modules/worker/back/locale/business/en.yml
@@ -0,0 +1,12 @@
+name: contrato
+columns:
+ id: id
+ companyCodeFk: company
+ started: started
+ ended: ended
+ payedHolidays: payed holidays
+ workerFk: worker
+ calendarTypeFk: calendar type
+ isHourlyLabor: hourly labor
+ workcenterFk: workcenter
+ amount: amount
diff --git a/modules/worker/back/locale/business/es.yml b/modules/worker/back/locale/business/es.yml
new file mode 100644
index 0000000000..13ecfdb19c
--- /dev/null
+++ b/modules/worker/back/locale/business/es.yml
@@ -0,0 +1,12 @@
+name: contrato
+columns:
+ id: id
+ companyCodeFk: empresa
+ started: iniciado
+ ended: finalizado
+ payedHolidays: vacaciones pagadas
+ workerFk: trabajador
+ calendarTypeFk: tipo calendario
+ isHourlyLabor: horario laboral
+ workcenterFk: centro de trabajo
+ amount: salario
diff --git a/modules/worker/back/locale/worker-dms/en.yml b/modules/worker/back/locale/worker-dms/en.yml
index f870adaf06..b1b7b6ce44 100644
--- a/modules/worker/back/locale/worker-dms/en.yml
+++ b/modules/worker/back/locale/worker-dms/en.yml
@@ -1,4 +1,4 @@
-name: worker dms
+name: document
columns:
id: id
dmsFk: dms
diff --git a/modules/worker/back/locale/worker-dms/es.yml b/modules/worker/back/locale/worker-dms/es.yml
index c3bdea5af8..8786691818 100644
--- a/modules/worker/back/locale/worker-dms/es.yml
+++ b/modules/worker/back/locale/worker-dms/es.yml
@@ -1,4 +1,4 @@
-name: documento trabajador
+name: documento
columns:
id: id
dmsFk: dms
diff --git a/modules/worker/back/locale/worker-time-control-mail/en.yml b/modules/worker/back/locale/worker-time-control-mail/en.yml
index 821a3a3c93..ec7e59e7fe 100644
--- a/modules/worker/back/locale/worker-time-control-mail/en.yml
+++ b/modules/worker/back/locale/worker-time-control-mail/en.yml
@@ -1,4 +1,4 @@
-name: worker time control mail
+name: time control mail
columns:
id: id
workerFk: worker
diff --git a/modules/worker/back/locale/worker-time-control-mail/es.yml b/modules/worker/back/locale/worker-time-control-mail/es.yml
index 159fcddf55..26733eb9a4 100644
--- a/modules/worker/back/locale/worker-time-control-mail/es.yml
+++ b/modules/worker/back/locale/worker-time-control-mail/es.yml
@@ -1,4 +1,4 @@
-name: correo de control de tiempo del trabajador
+name: correo de fichadas
columns:
id: id
workerFk: trabajador
diff --git a/modules/worker/back/methods/worker/new.js b/modules/worker/back/methods/worker/new.js
index 5ff7135a76..0bc7293a1d 100644
--- a/modules/worker/back/methods/worker/new.js
+++ b/modules/worker/back/methods/worker/new.js
@@ -169,7 +169,7 @@ module.exports = Self => {
args.lastNames,
args.fi,
args.street,
- args.postalCode,
+ args.postcode,
args.city,
args.provinceFk,
args.companyFk,
@@ -186,7 +186,7 @@ module.exports = Self => {
street: args.street,
city: args.city,
provinceFk: args.provinceFk,
- postalCode: args.postalCode,
+ postalCode: args.postcode,
mobile: args.phone,
nickname: nickname,
isDefaultAddress: true,
diff --git a/print/templates/reports/invoiceIn/invoiceIn.html b/print/templates/reports/invoiceIn/invoiceIn.html
index 22988b6540..8f072947f0 100644
--- a/print/templates/reports/invoiceIn/invoiceIn.html
+++ b/print/templates/reports/invoiceIn/invoiceIn.html
@@ -19,7 +19,7 @@
{{$t('date')}} |
- {{formatDate(invoice.created, '%d-%m-%Y')}} |
+ {{formatDate(invoice.issued, '%d-%m-%Y')}} |
diff --git a/print/templates/reports/invoiceIn/sql/invoice.sql b/print/templates/reports/invoiceIn/sql/invoice.sql
index eea8e81a5b..dae9790114 100644
--- a/print/templates/reports/invoiceIn/sql/invoice.sql
+++ b/print/templates/reports/invoiceIn/sql/invoice.sql
@@ -1,7 +1,7 @@
SELECT
i.supplierRef,
s.id supplierId,
- i.created,
+ i.issued,
s.name,
s.street AS postalAddress,
s.nif,