瀏覽代碼

Merge pull request #8573 from rohitwaghchaure/fixed_rate_with_comma_not_changing_to_decimal

fix: comma in rate field not changing to dot for the number format #.###,##
version-14
rohitwaghchaure 5 年之前
committed by GitHub
父節點
當前提交
ee14c0b721
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. +5
    -0
      frappe/public/js/frappe/form/controls/currency.js

+ 5
- 0
frappe/public/js/frappe/form/controls/currency.js 查看文件

@@ -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(',')) {


Loading…
取消
儲存