Fixed the date ranges for the Reference options

This commit is contained in:
2026-10-19 18:10:16 -03:00
parent cc025e488d
commit 71d550dfb1
10 changed files with 135 additions and 372 deletions

View File

@@ -102,19 +102,21 @@ function createFusionOpportunities({
op: "$and",
criteria: [
{
op: "$or",
criteria: Array.from(getOpportunityTypeValues(), (value) => ({
op: "$eq",
attribute: "RecordSet",
value
}))
op: "$and",
criteria: [{
op: "$or",
criteria: Array.from(getOpportunityTypeValues(), (value) => ({
op: "$eq",
attribute: "RecordSet",
value
}))
}]
},
{
op: "$wi",
attribute: "EffectiveDate",
value1: dateRange.startCloseDate,
value2: dateRange.endCloseDate,
dynamicDate: false
value1: new Date(dateRange.startCloseDate).toISOString().replace(/Z$/, "+0000"),
value2: new Date(dateRange.endCloseDate).toISOString().replace(/Z$/, "+0000")
}
]
},
@@ -154,7 +156,7 @@ function createFusionOpportunities({
"CustomerAccount.Region_c",
"CustomerAccount.PrimaryAddress.CountryCode"
],
sort: [],
sort: null,
language: "en",
skipInValidFields: true,
skipHiddenFromUIFields: true,