Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
abouolia committed Nov 28, 2023
1 parent fb501ea commit 7877ce0
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 7 deletions.
7 changes: 7 additions & 0 deletions packages/server/src/interfaces/SalesTaxLiabilitySummary.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { IFinancialTable } from "./Table";

export interface SalesTaxLiabilitySummaryQuery {
fromDate: Date;
toDate: Date;
Expand Down Expand Up @@ -49,3 +51,8 @@ export interface SalesTaxLiabilitySummaryMeta {
organizationName: string;
baseCurrency: string;
}

export interface ISalesTaxLiabilitySummaryTable extends IFinancialTable {
query: SalesTaxLiabilitySummaryQuery;
meta: SalesTaxLiabilitySummaryMeta;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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<Buffer>}
* @returns {Promise<string>}
*/
public async csv(
tenantId: number,
Expand Down
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -12,9 +15,12 @@ export class SalesTaxLiabilitySummaryTableInjectable {
* Retrieve sales tax liability summary table.
* @param {number} tenantId
* @param {SalesTaxLiabilitySummaryQuery} query
* @returns
* @returns {Promise<ISalesTaxLiabilitySummaryTable>}
*/
public async table(tenantId: number, query: SalesTaxLiabilitySummaryQuery) {
public async table(
tenantId: number,
query: SalesTaxLiabilitySummaryQuery
): Promise<ISalesTaxLiabilitySummaryTable> {
const report = await this.salesTaxLiability.salesTaxLiability(
tenantId,
query
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class TransactionsByVendorExportInjectable {
* Retrieves the cashflow sheet in CSV format.
* @param {number} tenantId
* @param {ICashFlowStatementQuery} query
* @returns {Promise<Buffer>}
* @returns {Promise<string>}
*/
public async csv(
tenantId: number,
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -27,7 +27,7 @@ export class VendorBalanceSummaryExportInjectable {
* Retrieves the vendor balance summary sheet in CSV format.
* @param {number} tenantId
* @param {IVendorBalanceSummaryQuery} query
* @returns {Promise<Buffer>}
* @returns {Promise<string>}
*/
public async csv(
tenantId: number,
Expand Down
Empty file removed packages/server/src/utils/xlsx.ts
Empty file.

0 comments on commit 7877ce0

Please sign in to comment.