This commit is contained in:
parent
30c896c975
commit
6b66eb3bb2
|
@ -84,7 +84,7 @@
|
||||||
"The current ticket can't be modified": "El ticket actual no puede ser modificado",
|
"The current ticket can't be modified": "El ticket actual no puede ser modificado",
|
||||||
"The current claim can't be modified": "La reclamación actual no puede ser modificada",
|
"The current claim can't be modified": "La reclamación actual no puede ser modificada",
|
||||||
"The sales of this ticket can't be modified": "Las lineas de este ticket no pueden ser modificadas",
|
"The sales of this ticket can't be modified": "Las lineas de este ticket no pueden ser modificadas",
|
||||||
"The sales do not exist": "La(s) linea(s) seleccionada no(s) exite(n)",
|
"The sales do not exists": "La(s) linea(s) seleccionada(s) no exite(n)",
|
||||||
"Please select at least one sale": "Por favor selecciona al menos una linea",
|
"Please select at least one sale": "Por favor selecciona al menos una linea",
|
||||||
"All sales must belong to the same ticket": "Todas las lineas deben pertenecer al mismo ticket",
|
"All sales must belong to the same ticket": "Todas las lineas deben pertenecer al mismo ticket",
|
||||||
"NO_ZONE_FOR_THIS_PARAMETERS": "Para este día no hay ninguna zona configurada",
|
"NO_ZONE_FOR_THIS_PARAMETERS": "Para este día no hay ninguna zona configurada",
|
||||||
|
|
|
@ -39,7 +39,7 @@ module.exports = Self => {
|
||||||
}, myOptions);
|
}, myOptions);
|
||||||
|
|
||||||
if (!salesData.length)
|
if (!salesData.length)
|
||||||
throw new UserError(`The sales do not exist`);
|
throw new UserError(`The sales do not exists`);
|
||||||
|
|
||||||
const ticketId = salesData[0].ticketFk;
|
const ticketId = salesData[0].ticketFk;
|
||||||
|
|
||||||
|
|
|
@ -17,8 +17,8 @@ describe('sale canEdit()', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('sale not exist', () => {
|
describe('sale not exists', () => {
|
||||||
it('should return error if sale not exist', async() => {
|
it('should return error if sale not exists', async() => {
|
||||||
const tx = await models.Sale.beginTransaction({});
|
const tx = await models.Sale.beginTransaction({});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -39,7 +39,7 @@ describe('sale canEdit()', () => {
|
||||||
error = e.message;
|
error = e.message;
|
||||||
}
|
}
|
||||||
|
|
||||||
expect(error).toEqual('The sales do not exist');
|
expect(error).toEqual('The sales do not exists');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue