fix: redirect to deal was not working from organization page
This commit is contained in:
parent
c40e3073b4
commit
4371a27484
@ -307,7 +307,7 @@ const leads = createListResource({
|
|||||||
|
|
||||||
const deals = createListResource({
|
const deals = createListResource({
|
||||||
type: 'list',
|
type: 'list',
|
||||||
doctype: 'CRM Lead',
|
doctype: 'CRM Deal',
|
||||||
cache: ['deals', props.organization.name],
|
cache: ['deals', props.organization.name],
|
||||||
fields: [
|
fields: [
|
||||||
'name',
|
'name',
|
||||||
@ -316,12 +316,11 @@ const deals = createListResource({
|
|||||||
'status',
|
'status',
|
||||||
'email',
|
'email',
|
||||||
'mobile_no',
|
'mobile_no',
|
||||||
'lead_owner',
|
'deal_owner',
|
||||||
'modified',
|
'modified',
|
||||||
],
|
],
|
||||||
filters: {
|
filters: {
|
||||||
organization: props.organization.name,
|
organization: props.organization.name,
|
||||||
converted: 1,
|
|
||||||
},
|
},
|
||||||
orderBy: 'modified desc',
|
orderBy: 'modified desc',
|
||||||
pageLength: 20,
|
pageLength: 20,
|
||||||
@ -415,9 +414,9 @@ function getDealRowObject(deal) {
|
|||||||
},
|
},
|
||||||
email: deal.email,
|
email: deal.email,
|
||||||
mobile_no: deal.mobile_no,
|
mobile_no: deal.mobile_no,
|
||||||
lead_owner: {
|
deal_owner: {
|
||||||
label: deal.lead_owner && getUser(deal.lead_owner).full_name,
|
label: deal.deal_owner && getUser(deal.deal_owner).full_name,
|
||||||
...(deal.lead_owner && getUser(deal.lead_owner)),
|
...(deal.deal_owner && getUser(deal.deal_owner)),
|
||||||
},
|
},
|
||||||
modified: {
|
modified: {
|
||||||
label: dateFormat(deal.modified, dateTooltipFormat),
|
label: dateFormat(deal.modified, dateTooltipFormat),
|
||||||
@ -512,8 +511,8 @@ const dealColumns = [
|
|||||||
width: '11rem',
|
width: '11rem',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Lead owner',
|
label: 'Deal owner',
|
||||||
key: 'lead_owner',
|
key: 'deal_owner',
|
||||||
width: '10rem',
|
width: '10rem',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user