refs #5925 models table docuware #1889

Merged
carlossa merged 5 commits from 5925-docuwareTablet into dev 2023-12-21 13:20:04 +00:00
2 changed files with 5 additions and 2 deletions
Showing only changes of commit 4e8bec5684 - Show all commits

View File

@ -120,6 +120,8 @@ module.exports = Self => {
if (process.env.NODE_ENV != 'production') if (process.env.NODE_ENV != 'production')
throw new UserError('Action not allowed on the test environment'); throw new UserError('Action not allowed on the test environment');
if (!tablet.id)
throw new UserError('This user does not have an assigned tablet.');
// delete old // delete old
const docuwareFile = await models.Docuware.checkFile(id, fileCabinet, false); const docuwareFile = await models.Docuware.checkFile(id, fileCabinet, false);
if (docuwareFile) { if (docuwareFile) {

View File

@ -329,5 +329,6 @@
"The amount cannot be less than the minimum": "La cantidad no puede ser menor que la cantidad mínima", "The amount cannot be less than the minimum": "La cantidad no puede ser menor que la cantidad mínima",
"quantityLessThanMin": "La cantidad no puede ser menor que la cantidad mínima", "quantityLessThanMin": "La cantidad no puede ser menor que la cantidad mínima",
"Cannot past travels with entries": "No se pueden pasar envíos con entradas", "Cannot past travels with entries": "No se pueden pasar envíos con entradas",
"It was not able to remove the next expeditions:": "No se pudo eliminar las siguientes expediciones: {{expeditions}}" "It was not able to remove the next expeditions:": "No se pudo eliminar las siguientes expediciones: {{expeditions}}",
} "This user does not have an assigned tablet.": "Este usuario no tiene tablet asignada"
}