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