fix: get annual_revenue from organization in deal list view
This commit is contained in:
parent
ce9bde1135
commit
59f537a037
@ -140,13 +140,15 @@ const rows = computed(() => {
|
|||||||
deals.data.rows.forEach((row) => {
|
deals.data.rows.forEach((row) => {
|
||||||
_rows[row] = deal[row]
|
_rows[row] = deal[row]
|
||||||
|
|
||||||
|
let org = getOrganization(deal.organization)
|
||||||
|
|
||||||
if (row == 'organization') {
|
if (row == 'organization') {
|
||||||
_rows[row] = {
|
_rows[row] = {
|
||||||
label: deal.organization,
|
label: deal.organization,
|
||||||
logo: getOrganization(deal.organization)?.organization_logo,
|
logo: org?.organization_logo,
|
||||||
}
|
}
|
||||||
} else if (row == 'annual_revenue') {
|
} else if (row == 'annual_revenue') {
|
||||||
_rows[row] = formatNumberIntoCurrency(deal.annual_revenue)
|
_rows[row] = formatNumberIntoCurrency(org?.annual_revenue)
|
||||||
} else if (row == 'status') {
|
} else if (row == 'status') {
|
||||||
_rows[row] = {
|
_rows[row] = {
|
||||||
label: deal.status,
|
label: deal.status,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user