EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
Decimal placed parameter
Yurii5269891d5551
diff --git a/client/src/views/fields/currency.ts b/client/src/views/fields/currency.tsindex b07963f9d1..0e491f605c 100644--- a/client/src/views/fields/currency.ts+++ b/client/src/views/fields/currency.ts@@ -56,8 +56,6 @@ export interface CurrencyParams extends BaseParams {disableFormatting?: boolean;/*** Decimal places.- *- * @todo ?*/decimalPlaces?: number | null;/**@@ -162,6 +160,10 @@ class CurrencyFieldView<this.currencyList = this.getConfig().get('currencyList') || [this.defaultCurrency];this.decimalPlaces = this.getConfig().get('currencyDecimalPlaces');+ if (typeof this.params.decimalPlaces === 'number') {+ this.decimalPlaces = this.params.decimalPlaces;+ }+if (this.params.onlyDefaultCurrency) {this.currencyList = [this.defaultCurrency];}