mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
feat: import and export tax rates
This commit is contained in:
18
packages/server/src/services/TaxRates/TaxRatesExportable.ts
Normal file
18
packages/server/src/services/TaxRates/TaxRatesExportable.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Inject, Service } from 'typedi';
|
||||
import { Exportable } from '../Export/Exportable';
|
||||
import { TaxRatesApplication } from './TaxRatesApplication';
|
||||
|
||||
@Service()
|
||||
export class TaxRatesExportable extends Exportable {
|
||||
@Inject()
|
||||
private taxRatesApplication: TaxRatesApplication;
|
||||
|
||||
/**
|
||||
* Retrieves the accounts data to exportable sheet.
|
||||
* @param {number} tenantId
|
||||
* @returns
|
||||
*/
|
||||
public exportable(tenantId: number) {
|
||||
return this.taxRatesApplication.getTaxRates(tenantId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user