fix: improper currency formatting issue in kanban view
This commit is contained in:
parent
28ce38ae90
commit
4d6604ab7a
@ -387,9 +387,17 @@ function parseRows(rows, columns = []) {
|
|||||||
deals.value.data.rows.forEach((row) => {
|
deals.value.data.rows.forEach((row) => {
|
||||||
_rows[row] = deal[row]
|
_rows[row] = deal[row]
|
||||||
|
|
||||||
let fieldType = columns?.find(
|
let fieldType;
|
||||||
(col) => (col.key || col.value) == row,
|
if (deals.value.data.view_type === 'kanban') {
|
||||||
)?.type
|
fieldType = columns?.find(
|
||||||
|
(col) => (col.fieldname || col.value) == row,
|
||||||
|
)?.fieldtype
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
fieldType = columns?.find(
|
||||||
|
(col) => (col.key || col.value) == row,
|
||||||
|
)?.type
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
fieldType &&
|
fieldType &&
|
||||||
|
|||||||
@ -407,9 +407,17 @@ function parseRows(rows, columns = []) {
|
|||||||
leads.value?.data.rows.forEach((row) => {
|
leads.value?.data.rows.forEach((row) => {
|
||||||
_rows[row] = lead[row]
|
_rows[row] = lead[row]
|
||||||
|
|
||||||
let fieldType = columns?.find(
|
let fieldType;
|
||||||
(col) => (col.key || col.value) == row,
|
if (leads.value.data.view_type === 'kanban') {
|
||||||
)?.type
|
fieldType = columns?.find(
|
||||||
|
(col) => (col.fieldname || col.value) == row,
|
||||||
|
)?.fieldtype
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
fieldType = columns?.find(
|
||||||
|
(col) => (col.key || col.value) == row,
|
||||||
|
)?.type
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
fieldType &&
|
fieldType &&
|
||||||
|
|||||||
@ -262,9 +262,17 @@ function parseRows(rows, columns = []) {
|
|||||||
tasks.value?.data.rows.forEach((row) => {
|
tasks.value?.data.rows.forEach((row) => {
|
||||||
_rows[row] = task[row]
|
_rows[row] = task[row]
|
||||||
|
|
||||||
let fieldType = columns?.find(
|
let fieldType;
|
||||||
(col) => (col.key || col.value) == row,
|
if (tasks.value.data.view_type === 'kanban') {
|
||||||
)?.type
|
fieldType = columns?.find(
|
||||||
|
(col) => (col.fieldname || col.value) == row,
|
||||||
|
)?.fieldtype
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
fieldType = columns?.find(
|
||||||
|
(col) => (col.key || col.value) == row,
|
||||||
|
)?.type
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
fieldType &&
|
fieldType &&
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user