#7019 fix(createManualInvoice): add throw error #2175
|
@ -354,5 +354,6 @@
|
||||||
"They're not your subordinate": "No es tu subordinado/a.",
|
"They're not your subordinate": "No es tu subordinado/a.",
|
||||||
"No results found": "No se han encontrado resultados",
|
"No results found": "No se han encontrado resultados",
|
||||||
"InvoiceIn is already booked": "La factura recibida está contabilizada",
|
"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"
|
||||||
}
|
}
|
||||||
|
|
|
@ -142,7 +142,7 @@ module.exports = Self => {
|
||||||
throw e;
|
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);
|
await Self.createPdf(ctx, newInvoice.id);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue