8032-devToTest_2440 #3009
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue