diff --git a/packages/server/src/interfaces/SalesTaxLiabilitySummary.ts b/packages/server/src/interfaces/SalesTaxLiabilitySummary.ts index 8b04c9719..2fbc9f13d 100644 --- a/packages/server/src/interfaces/SalesTaxLiabilitySummary.ts +++ b/packages/server/src/interfaces/SalesTaxLiabilitySummary.ts @@ -1,3 +1,5 @@ +import { IFinancialTable } from "./Table"; + export interface SalesTaxLiabilitySummaryQuery { fromDate: Date; toDate: Date; @@ -49,3 +51,8 @@ export interface SalesTaxLiabilitySummaryMeta { organizationName: string; baseCurrency: string; } + +export interface ISalesTaxLiabilitySummaryTable extends IFinancialTable { + query: SalesTaxLiabilitySummaryQuery; + meta: SalesTaxLiabilitySummaryMeta; +} \ No newline at end of file diff --git a/packages/server/src/services/FinancialStatements/AgingSummary/ARAgingSummaryExportInjectable.ts b/packages/server/src/services/FinancialStatements/AgingSummary/ARAgingSummaryExportInjectable.ts index 27808b705..25c3dd064 100644 --- a/packages/server/src/services/FinancialStatements/AgingSummary/ARAgingSummaryExportInjectable.ts +++ b/packages/server/src/services/FinancialStatements/AgingSummary/ARAgingSummaryExportInjectable.ts @@ -30,7 +30,7 @@ export class ARAgingSummaryExportInjectable { * Retrieves the A/R aging summary sheet in CSV format. * @param {number} tenantId * @param {ICashFlowStatementQuery} query - * @returns {Promise} + * @returns {Promise} */ public async csv( tenantId: number, diff --git a/packages/server/src/services/FinancialStatements/SalesTaxLiabilitySummary/SalesTaxLiabilitySummaryTableInjectable.ts b/packages/server/src/services/FinancialStatements/SalesTaxLiabilitySummary/SalesTaxLiabilitySummaryTableInjectable.ts index 0d5d426ba..907cab2ad 100644 --- a/packages/server/src/services/FinancialStatements/SalesTaxLiabilitySummary/SalesTaxLiabilitySummaryTableInjectable.ts +++ b/packages/server/src/services/FinancialStatements/SalesTaxLiabilitySummary/SalesTaxLiabilitySummaryTableInjectable.ts @@ -1,5 +1,8 @@ import { Inject, Service } from 'typedi'; -import { SalesTaxLiabilitySummaryQuery } from '@/interfaces/SalesTaxLiabilitySummary'; +import { + ISalesTaxLiabilitySummaryTable, + SalesTaxLiabilitySummaryQuery, +} from '@/interfaces/SalesTaxLiabilitySummary'; import { SalesTaxLiabilitySummaryTable } from './SalesTaxLiabilitySummaryTable'; import { SalesTaxLiabilitySummaryService } from './SalesTaxLiabilitySummaryService'; @@ -12,9 +15,12 @@ export class SalesTaxLiabilitySummaryTableInjectable { * Retrieve sales tax liability summary table. * @param {number} tenantId * @param {SalesTaxLiabilitySummaryQuery} query - * @returns + * @returns {Promise} */ - public async table(tenantId: number, query: SalesTaxLiabilitySummaryQuery) { + public async table( + tenantId: number, + query: SalesTaxLiabilitySummaryQuery + ): Promise { const report = await this.salesTaxLiability.salesTaxLiability( tenantId, query diff --git a/packages/server/src/services/FinancialStatements/TransactionsByVendor/TransactionsByVendorExportInjectable.ts b/packages/server/src/services/FinancialStatements/TransactionsByVendor/TransactionsByVendorExportInjectable.ts index b97ebb663..1d547e752 100644 --- a/packages/server/src/services/FinancialStatements/TransactionsByVendor/TransactionsByVendorExportInjectable.ts +++ b/packages/server/src/services/FinancialStatements/TransactionsByVendor/TransactionsByVendorExportInjectable.ts @@ -30,7 +30,7 @@ export class TransactionsByVendorExportInjectable { * Retrieves the cashflow sheet in CSV format. * @param {number} tenantId * @param {ICashFlowStatementQuery} query - * @returns {Promise} + * @returns {Promise} */ public async csv( tenantId: number, diff --git a/packages/server/src/services/FinancialStatements/VendorBalanceSummary/VendorBalanceSummaryExportInjectable.ts b/packages/server/src/services/FinancialStatements/VendorBalanceSummary/VendorBalanceSummaryExportInjectable.ts index 8e6980ed0..ba278f88d 100644 --- a/packages/server/src/services/FinancialStatements/VendorBalanceSummary/VendorBalanceSummaryExportInjectable.ts +++ b/packages/server/src/services/FinancialStatements/VendorBalanceSummary/VendorBalanceSummaryExportInjectable.ts @@ -1,7 +1,7 @@ +import { Inject, Service } from 'typedi'; import { IVendorBalanceSummaryQuery } from '@/interfaces'; import { VendorBalanceSummaryTableInjectable } from './VendorBalanceSummaryTableInjectable'; import { TableSheet } from '@/lib/Xlsx/TableSheet'; -import { Inject, Service } from 'typedi'; @Service() export class VendorBalanceSummaryExportInjectable { @@ -27,7 +27,7 @@ export class VendorBalanceSummaryExportInjectable { * Retrieves the vendor balance summary sheet in CSV format. * @param {number} tenantId * @param {IVendorBalanceSummaryQuery} query - * @returns {Promise} + * @returns {Promise} */ public async csv( tenantId: number, diff --git a/packages/server/src/utils/xlsx.ts b/packages/server/src/utils/xlsx.ts deleted file mode 100644 index e69de29bb..000000000