mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
feat(server): tweak the tax rate transformer
This commit is contained in:
@@ -6,7 +6,16 @@ export class TaxRateTransformer extends Transformer {
|
|||||||
* @returns {Array}
|
* @returns {Array}
|
||||||
*/
|
*/
|
||||||
public includeAttributes = (): string[] => {
|
public includeAttributes = (): string[] => {
|
||||||
return ['nameFormatted'];
|
return ['nameFormatted', 'rateFormatted'];
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieve the formatted rate.
|
||||||
|
* @param taxRate
|
||||||
|
* @returns {string}
|
||||||
|
*/
|
||||||
|
public rateFormatted = (taxRate): string => {
|
||||||
|
return `${taxRate.rate}%`;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user