#7019 fix(createManualInvoice): add throw error #2175

Merged
jorgep merged 7 commits from 7019_fix_createManualInvoice into dev 2024-04-25 15:30:19 +00:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 931c2c4f5e - Show all commits

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);