瀏覽代碼

Merge pull request #13395 from nextchamp-saqib/chart-in-custom-script-reports-dev

feat: allow duration fields in aggregate function fields
version-14
mergify[bot] 3 年之前
committed by GitHub
父節點
當前提交
c2524c797f
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      frappe/desk/doctype/dashboard_chart/dashboard_chart.js

+ 1
- 1
frappe/desk/doctype/dashboard_chart/dashboard_chart.js 查看文件

@@ -223,7 +223,7 @@ frappe.ui.form.on('Dashboard Chart', {
if (['Date', 'Datetime'].includes(df.fieldtype)) {
date_fields.push({label: df.label, value: df.fieldname});
}
if (['Int', 'Float', 'Currency', 'Percent'].includes(df.fieldtype)) {
if (['Int', 'Float', 'Currency', 'Percent', 'Duration'].includes(df.fieldtype)) {
value_fields.push({label: df.label, value: df.fieldname});
aggregate_function_fields.push({label: df.label, value: df.fieldname});
}


Loading…
取消
儲存