fix: improper currency formatting issue in kanban view

This commit is contained in:
rajabxahmd 2025-03-17 12:39:52 +05:30
parent 28ce38ae90
commit 4d6604ab7a
3 changed files with 33 additions and 9 deletions

View File

@ -387,9 +387,17 @@ function parseRows(rows, columns = []) {
deals.value.data.rows.forEach((row) => {
_rows[row] = deal[row]
let fieldType = columns?.find(
(col) => (col.key || col.value) == row,
)?.type
let fieldType;
if (deals.value.data.view_type === 'kanban') {
fieldType = columns?.find(
(col) => (col.fieldname || col.value) == row,
)?.fieldtype
}
else {
fieldType = columns?.find(
(col) => (col.key || col.value) == row,
)?.type
}
if (
fieldType &&

View File

@ -407,9 +407,17 @@ function parseRows(rows, columns = []) {
leads.value?.data.rows.forEach((row) => {
_rows[row] = lead[row]
let fieldType = columns?.find(
(col) => (col.key || col.value) == row,
)?.type
let fieldType;
if (leads.value.data.view_type === 'kanban') {
fieldType = columns?.find(
(col) => (col.fieldname || col.value) == row,
)?.fieldtype
}
else {
fieldType = columns?.find(
(col) => (col.key || col.value) == row,
)?.type
}
if (
fieldType &&

View File

@ -262,9 +262,17 @@ function parseRows(rows, columns = []) {
tasks.value?.data.rows.forEach((row) => {
_rows[row] = task[row]
let fieldType = columns?.find(
(col) => (col.key || col.value) == row,
)?.type
let fieldType;
if (tasks.value.data.view_type === 'kanban') {
fieldType = columns?.find(
(col) => (col.fieldname || col.value) == row,
)?.fieldtype
}
else {
fieldType = columns?.find(
(col) => (col.key || col.value) == row,
)?.type
}
if (
fieldType &&