#7663 setWeight #2817

Merged
jorgep merged 24 commits from 7663-setWeight into dev 2024-09-11 07:40:32 +00:00
1 changed files with 3 additions and 2 deletions
Showing only changes of commit 9797d5e219 - Show all commits

View File

@ -74,9 +74,10 @@ module.exports = Self => {
taxArea == 'WORLD' && client.hasDailyInvoice;
if (tx) await tx.commit();
if (isInvoiceable) await Self.invoiceTicketsAndPdf(ctx, [ticketId]);
let invoiceIds = [];
if (isInvoiceable) invoiceIds = [...await Self.invoiceTicketsAndPdf(ctx, [ticketId])];
return isInvoiceable;
return invoiceIds;
} catch (e) {
if (tx) await tx.rollback();
throw e;