8032-devToTest_2440 #3009

Merged
alexm merged 262 commits from 8032-devToTest_2440 into test 2024-09-24 09:34:49 +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; taxArea == 'WORLD' && client.hasDailyInvoice;
if (tx) await tx.commit(); 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) { } catch (e) {
if (tx) await tx.rollback(); if (tx) await tx.rollback();
throw e; throw e;