feat: refs #7211 error & locale
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Jorge Penadés 2024-04-25 13:12:06 +02:00
parent 6749722634
commit 931c2c4f5e
2 changed files with 3 additions and 2 deletions

View File

@ -354,5 +354,6 @@
"They're not your subordinate": "No es tu subordinado/a.",
"No results found": "No se han encontrado resultados",
"InvoiceIn is already booked": "La factura recibida está contabilizada",
"Select ticket or client": "Elija un ticket o un client"
"Select ticket or client": "Elija un ticket o un client",
"It was not able to create the invoice": "No se pudo crear la factura"
}

View File

@ -142,7 +142,7 @@ module.exports = Self => {
throw e;
}
if (!newInvoice.id) throw new UserError(`...`);
if (!newInvoice.id) throw new UserError('It was not able to create the invoice:');
await Self.createPdf(ctx, newInvoice.id);