fix: formatted money attributes

This commit is contained in:
Ahmed Bouhuolia
2025-12-14 16:51:06 +02:00
parent 6ecfe1ff12
commit 63922c391a
9 changed files with 60 additions and 8 deletions

View File

@@ -17,7 +17,7 @@ export class SaleEstimateTransfromer extends Transformer {
'formattedDeliveredAtDate',
'formattedApprovedAtDate',
'formattedRejectedAtDate',
'discountAmountFormatted',
'discountPercentageFormatted',
'adjustmentFormatted',
@@ -135,7 +135,7 @@ export class SaleEstimateTransfromer extends Transformer {
* @returns {string}
*/
protected adjustmentFormatted = (estimate: SaleEstimate): string => {
return this.formatMoney(estimate.adjustment, {
return this.formatNumber(estimate.adjustment, {
currencyCode: estimate.currencyCode,
excerptZero: true,
});