feat: getting invoice preview on send mail view

This commit is contained in:
Ahmed Bouhuolia
2024-11-05 22:30:54 +02:00
parent b6baa80134
commit 802775c118
5 changed files with 102 additions and 17 deletions

View File

@@ -273,6 +273,19 @@ export class SaleInvoiceApplication {
return this.pdfSaleInvoiceService.saleInvoicePdf(tenantId, saleInvoiceId);
}
/**
* Retrieves the html content of the given sale invoice.
* @param {number} tenantId
* @param {number} saleInvoiceId
* @returns {Promise<string>}
*/
public saleInvoiceHtml(
tenantId: number,
saleInvoiceId: number
): Promise<string> {
return this.pdfSaleInvoiceService.saleInvoiceHtml(tenantId, saleInvoiceId);
}
/**
*
* @param {number} tenantId