feat(server): tweak the tax rate transformer

This commit is contained in:
Ahmed Bouhuolia
2023-09-14 23:36:15 +02:00
parent 8a64198433
commit fbd74c559b

View File

@@ -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}%`;
}; };
/** /**