mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
feat: document export functions
This commit is contained in:
@@ -12,12 +12,12 @@ export class ExportPdf {
|
||||
private chromiumlyTenancy: ChromiumlyTenancy;
|
||||
|
||||
/**
|
||||
*
|
||||
* @param tenantId
|
||||
* @param columns
|
||||
* @param data
|
||||
* @param sheetTitle
|
||||
* @param sheetDescription
|
||||
* Generates the pdf table sheet for the given data and columns.
|
||||
* @param {number} tenantId
|
||||
* @param {} columns
|
||||
* @param {Record<string, string>} data
|
||||
* @param {string} sheetTitle
|
||||
* @param {string} sheetDescription
|
||||
* @returns
|
||||
*/
|
||||
public async pdf(
|
||||
|
||||
@@ -27,9 +27,9 @@ export const getDataAccessor = (col: any) => {
|
||||
};
|
||||
|
||||
/**
|
||||
*
|
||||
* @param columns
|
||||
* @param data
|
||||
* Maps the data retrieved from the service layer to the pdf document.
|
||||
* @param {any} columns
|
||||
* @param {Record<stringm any>} data
|
||||
* @returns
|
||||
*/
|
||||
export const mapPdfRows = (columns: any, data: Record<string, any>) => {
|
||||
|
||||
Reference in New Issue
Block a user