Compare commits

...

2 Commits

Author SHA1 Message Date
AllenTJ7
3ef81f8273 Update index.ts 2025-05-20 13:32:54 +05:30
AllenTJ7
b11cefbab4 Update invoiceService.ts 2025-05-20 13:32:51 +05:30
2 changed files with 4 additions and 3 deletions

View File

@ -2,11 +2,12 @@ import { getInvoiceUrl } from './getInvoiceUrl';
import { InvoiceService } from './invoiceService';
import { processInvoice } from './processInvoice';
import { sendInvoiceEmail } from './sendInvoiceEmail';
import { directGenerateInvoice } from './directInvoice';
// Export all invoice-related functions
export {
getInvoiceUrl,
InvoiceService,
processInvoice,
sendInvoiceEmail
sendInvoiceEmail,
directGenerateInvoice,
};

View File

@ -7,7 +7,7 @@ import { sendEmailWithAttachmentUtil } from "../../../utils/emailService";
import * as pdfMake from 'pdfmake/build/pdfmake';
import * as pdfFonts from 'pdfmake/build/vfs_fonts';
(pdfMake as any).vfs = pdfFonts.vfs;
(pdfMake as any).vfs = (pdfFonts as any).pdfMake ? (pdfFonts as any).pdfMake.vfs : pdfFonts.vfs;
const admin = getAdmin();
const logger = getLogger();