fix: refs #7028 fix confirm deny #3290

Merged
carlossa merged 23 commits from 7028-itemRequestConfDeny into dev 2024-12-16 10:59:56 +00:00
2 changed files with 1 additions and 8 deletions
Showing only changes of commit 32d9a3ace1 - Show all commits

View File

@ -398,8 +398,5 @@
"An item type with the same code already exists": "Un tipo con el mismo código ya existe",
"Holidays to past days not available": "Las vacaciones a días pasados no están disponibles",
"All tickets have a route order": "Todos los tickets tienen orden de ruta",
"Price cannot be blank": "Price cannot be blank",
"Worker not found": "Trabajador no encontrado",
"Invalid request or related ticket/client data": "Solicitud no válida o datos de ticket/cliente relacionados"
"Price cannot be blank": "Price cannot be blank"
}

View File

@ -44,7 +44,6 @@ module.exports = Self => {
try {
const userId = ctx.req.accessToken.userId;
carlossa marked this conversation as resolved Outdated
Outdated
Review

findById

findById
const worker = await models.Worker.findById(userId, myOptions);
carlossa marked this conversation as resolved Outdated
Outdated
Review

Traducir

Traducir
Outdated
Review

(userId, {fields: ...}, myOptions);

`(userId, {fields: ...}, myOptions);`
if (!worker) throw new UserError('Worker not found');
const params = {
isOk: false,
@ -66,9 +65,6 @@ module.exports = Self => {
}
}, myOptions);
if (!request || !request.ticket() || !request.ticket().client())
throw new UserError('Invalid request or related ticket/client data');
const url = await models.Url.getUrl();
Outdated
Review

const salesPerson

const salesPerson
const requesterId = request.ticket().client().salesPersonFk;
const message = $t('Deny buy request', {