mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
feat(server): order tax rates by name
This commit is contained in:
@@ -19,7 +19,8 @@ export class GetTaxRatesService {
|
||||
public async getTaxRates(tenantId: number) {
|
||||
const { TaxRate } = this.tenancy.models(tenantId);
|
||||
|
||||
const taxRates = await TaxRate.query();
|
||||
// Retrieves the tax rates.
|
||||
const taxRates = await TaxRate.query().orderBy('name', 'ASC');
|
||||
|
||||
// Transforms the tax rates.
|
||||
return this.transformer.transform(
|
||||
|
||||
Reference in New Issue
Block a user