Kaynağa Gözat

fix: comma in rate field not changing to dot for the number format #.###,##

version-14
Rohit Waghchaure 5 yıl önce
ebeveyn
işleme
567d7285ce
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  1. +5
    -0
      frappe/public/js/frappe/form/controls/currency.js

+ 5
- 0
frappe/public/js/frappe/form/controls/currency.js Dosyayı Görüntüle

@@ -1,5 +1,10 @@
frappe.ui.form.ControlCurrency = frappe.ui.form.ControlFloat.extend({
eval_expression: function(value) {
if (typeof value === 'string' && value.includes(',')
&& frappe.sys_defaults.number_format.startsWith("#.")) {
return value;
}

if (typeof value === 'string'
&& value.match(/^[0-9+-/* ]+$/)) {
if (value.includes(',')) {


Yükleniyor…
İptal
Kaydet