From 9e5e49c28f4e6fc7ab85d998b680fc68bbff0c9a Mon Sep 17 00:00:00 2001 From: sergiodt Date: Fri, 22 Mar 2024 06:56:27 +0100 Subject: [PATCH] refs #6276 feat:newWarehouse --- loopback/locale/es.json | 2 +- modules/ticket/back/methods/sale-tracking/setPicked.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/loopback/locale/es.json b/loopback/locale/es.json index b46d640da..856bda4e2 100644 --- a/loopback/locale/es.json +++ b/loopback/locale/es.json @@ -347,5 +347,5 @@ "Cmr file does not exist": "El archivo del cmr no existe", "You are not allowed to modify the alias": "No estás autorizado a modificar el alias", "The address of the customer must have information about Incoterms and Customs Agent": "El consignatario del cliente debe tener informado Incoterms y Agente de aduanas", - "The line could not be marked": "The line could not be marked" + "The line could not be marked": "La linea no puede ser marcada" } \ No newline at end of file diff --git a/modules/ticket/back/methods/sale-tracking/setPicked.js b/modules/ticket/back/methods/sale-tracking/setPicked.js index 5eedcbf6c..70e516e9f 100644 --- a/modules/ticket/back/methods/sale-tracking/setPicked.js +++ b/modules/ticket/back/methods/sale-tracking/setPicked.js @@ -91,6 +91,7 @@ module.exports = Self => { } catch (e) { if (tx) await tx.commit(); } + if (tx) await tx.commit(); } catch (e) { if (tx) await tx.rollback(); throw new UserError('The line could not be marked');