Merge branch 'test' of https://gitea.verdnatura.es/verdnatura/salix into dev
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2023-03-02 07:41:16 +01:00
commit b8881a050c
6 changed files with 33 additions and 21 deletions

View File

@ -259,12 +259,12 @@
"Aplicación bloqueada por el usuario 9": "Aplicación bloqueada por el usuario 9", "Aplicación bloqueada por el usuario 9": "Aplicación bloqueada por el usuario 9",
"Failed to upload file": "Error al subir archivo", "Failed to upload file": "Error al subir archivo",
"The DOCUWARE PDF document does not exists": "El documento PDF Docuware no existe", "The DOCUWARE PDF document does not exists": "El documento PDF Docuware no existe",
"It is not possible to modify tracked sales": "No es posible modificar líneas de pedido que se hayan empezado a preparar", "It is not possible to modify tracked sales": "No es posible modificar líneas de pedido que se hayan empezado a preparar",
"It is not possible to modify sales that their articles are from Floramondo": "No es posible modificar líneas de pedido cuyos artículos sean de Floramondo", "It is not possible to modify sales that their articles are from Floramondo": "No es posible modificar líneas de pedido cuyos artículos sean de Floramondo",
"It is not possible to modify cloned sales": "No es posible modificar líneas de pedido clonadas", "It is not possible to modify cloned sales": "No es posible modificar líneas de pedido clonadas",
"A supplier with the same name already exists. Change the country.": "Un proveedor con el mismo nombre ya existe. Cambie el país.", "A supplier with the same name already exists. Change the country.": "Un proveedor con el mismo nombre ya existe. Cambie el país.",
"There is no assigned email for this client": "No hay correo asignado para este cliente", "There is no assigned email for this client": "No hay correo asignado para este cliente",
"This locker has already been assigned": "Esta taquilla ya ha sido asignada", "This locker has already been assigned": "Esta taquilla ya ha sido asignada",
"Tickets with associated refunds": "No se pueden borrar tickets con abonos asociados. Este ticket está asociado al abono Nº {{id}}" "Tickets with associated refunds": "No se pueden borrar tickets con abonos asociados. Este ticket está asociado al abono Nº {{id}}",
"Not exist this branch": "La rama no existe"
} }

View File

@ -70,7 +70,8 @@ class Controller extends Section {
} }
$onDestroy() { $onDestroy() {
this.card.reload(); if (this.$state.getCurrentPath()[2].state.name === 'item')
this.card.reload();
} }
} }

View File

@ -47,7 +47,16 @@ module.exports = Self => {
verb: 'POST' verb: 'POST'
} }
}); });
Self.upload = async(ctx, options) => { Self.upload = async(
ctx,
appName,
toVersion,
branch,
fromVersion,
description,
unlock,
options
) => {
const models = Self.app.models; const models = Self.app.models;
const myOptions = {}; const myOptions = {};
const $t = ctx.req.__; // $translate const $t = ctx.req.__; // $translate
@ -55,12 +64,6 @@ module.exports = Self => {
const AccessContainer = models.AccessContainer; const AccessContainer = models.AccessContainer;
const fileOptions = {}; const fileOptions = {};
let tx; let tx;
const appName = ctx.args.appName;
const toVersion = ctx.args.toVersion;
const branch = ctx.args.branch;
const fromVersion = ctx.args.fromVersion;
let description = ctx.args.description;
const unlock = ctx.args.unlock;
if (typeof options == 'object') if (typeof options == 'object')
Object.assign(myOptions, options); Object.assign(myOptions, options);
@ -153,11 +156,14 @@ module.exports = Self => {
formatDesc += `*${appName.toUpperCase()}* v.${toVersion} `; formatDesc += `*${appName.toUpperCase()}* v.${toVersion} `;
const oldVersion = await models.MdbVersionTree.findOne({ const oldVersion = await models.MdbVersionTree.findOne({
where: {version: fromVersion}, where: {
version: fromVersion,
app: appName
},
fields: ['branchFk'] fields: ['branchFk']
}, myOptions); }, myOptions);
if (branch == oldVersion.branchFk) if (!oldVersion || branch == oldVersion.branchFk)
formatDesc += `[*${branch}*]: `; formatDesc += `[*${branch}*]: `;
else else
formatDesc += `[*${oldVersion.branchFk}* » *${branch}*]: `; formatDesc += `[*${oldVersion.branchFk}* » *${branch}*]: `;

View File

@ -68,8 +68,11 @@ module.exports = Self => {
{ {
arg: 'isVies', arg: 'isVies',
type: 'boolean' type: 'boolean'
} },
], {
arg: 'isTrucker',
type: 'boolean'
}],
returns: { returns: {
arg: 'res', arg: 'res',
type: 'string', type: 'string',

View File

@ -66,8 +66,10 @@ module.exports = {
else else
value = '---'; value = '---';
if (labelData.routeFk) if (labelData.routeFk) {
value = `${value} [${labelData.routeFk.toString().substring(0, 3)}]`; let routeFk = labelData.routeFk.toString();
value = `${value} [${routeFk.substring(routeFk.length - 3)}]`;
}
return value; return value;
}, },

View File

@ -3,9 +3,9 @@
"height": "4.9cm", "height": "4.9cm",
"margin": { "margin": {
"top": "0.3cm", "top": "0.3cm",
"right": "0.6cm", "right": "0.3cm",
"bottom": "0cm", "bottom": "0cm",
"left": "0cm" "left": "0.2cm"
}, },
"printBackground": true "printBackground": true
} }