feat: improve UI experience of resource priting

This commit is contained in:
Ahmed Bouhuolia
2024-05-31 15:30:49 +02:00
parent ba77351e44
commit 958f78e7a4
18 changed files with 184 additions and 101 deletions

View File

@@ -121,7 +121,7 @@ export default {
},
balance: {
name: 'account.field.balance',
accessor: 'amount',
accessor: 'formattedAmount',
},
description: {
name: 'account.field.description',

View File

@@ -12,13 +12,13 @@ export class ExportPdf {
private chromiumlyTenancy: ChromiumlyTenancy;
/**
*
* @param tenantId
* @param columns
* @param data
* @param sheetTitle
* @param sheetDescription
* @returns
*
* @param tenantId
* @param columns
* @param data
* @param sheetTitle
* @param sheetDescription
* @returns
*/
public async pdf(
tenantId: number,
@@ -40,7 +40,7 @@ export class ExportPdf {
);
// Convert the HTML content to PDF
return this.chromiumlyTenancy.convertHtmlContent(tenantId, htmlContent, {
margins: { top: 0, bottom: 0, left: 0, right: 0 },
margins: { top: 0.2, bottom: 0.2, left: 0.2, right: 0.2 },
landscape: true,
});
}