1
0
forked from test/crm

fix: get annual_revenue from organization in deal list view

This commit is contained in:
Shariq Ansari 2023-11-30 12:31:35 +05:30
parent ce9bde1135
commit 59f537a037

View File

@ -140,13 +140,15 @@ const rows = computed(() => {
deals.data.rows.forEach((row) => {
_rows[row] = deal[row]
let org = getOrganization(deal.organization)
if (row == 'organization') {
_rows[row] = {
label: deal.organization,
logo: getOrganization(deal.organization)?.organization_logo,
logo: org?.organization_logo,
}
} else if (row == 'annual_revenue') {
_rows[row] = formatNumberIntoCurrency(deal.annual_revenue)
_rows[row] = formatNumberIntoCurrency(org?.annual_revenue)
} else if (row == 'status') {
_rows[row] = {
label: deal.status,