@defra-fish/dynamics-lib 1.59.0 → 1.60.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@defra-fish/dynamics-lib",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.60.0-rc.1",
|
|
4
4
|
"description": "Framework to support integration with dynamics",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"simple-oauth2": "^4.3.0",
|
|
44
44
|
"uuid": "^8.3.2"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "788bfa677a11c509bc44e31f98bd12e98d3f57b4"
|
|
47
47
|
}
|
|
@@ -9,8 +9,7 @@ describe('Recurring Payment Queries', () => {
|
|
|
9
9
|
|
|
10
10
|
expect(query.toRetrieveRequest()).toEqual({
|
|
11
11
|
collection: 'defra_recurringpayments',
|
|
12
|
-
filter:
|
|
13
|
-
"Microsoft.Dynamics.CRM.On(PropertyName='defra_nextduedate', PropertyValue='Wed Nov 08 2023 00:00:00 GMT+0000 (Greenwich Mean Time)')",
|
|
12
|
+
filter: "defra_nextduedate eq 'Wed Nov 08 2023 00:00:00 GMT+0000 (Greenwich Mean Time)' and defra_cancelleddate eq null",
|
|
14
13
|
select: [
|
|
15
14
|
'defra_recurringpaymentid',
|
|
16
15
|
'defra_name',
|
|
@@ -10,7 +10,7 @@ import { PredefinedQuery } from './predefined-query.js'
|
|
|
10
10
|
export const findDueRecurringPayments = date => {
|
|
11
11
|
const { contact, activePermission } = RecurringPayment.definition.relationships
|
|
12
12
|
|
|
13
|
-
const filter = `
|
|
13
|
+
const filter = `defra_nextduedate eq '${date}' and defra_cancelleddate eq null`
|
|
14
14
|
|
|
15
15
|
return new PredefinedQuery({
|
|
16
16
|
root: RecurringPayment,
|