@@ -7,11 +7,11 @@ export default function reportJson(id, userId) {
7
7
return {
8
8
reportName : 'Draft Documents' ,
9
9
params : {
10
- Type : null ,
11
- $or : [
12
- { Signers : null , SignedUrl : null } ,
13
- { Signers : { $exists : true } , Placeholders : null } ,
14
- ] ,
10
+ Type : { $ne : 'Folder' } ,
11
+ IsCompleted : { $ne : true } ,
12
+ IsDeclined : { $ne : true } ,
13
+ IsArchive : { $ne : true } ,
14
+ $or : [ { Signers : null } , { Signers : { $exists : true } , Placeholders : null } ] ,
15
15
CreatedBy : {
16
16
__type : 'Pointer' ,
17
17
className : '_User' ,
@@ -28,6 +28,7 @@ export default function reportJson(id, userId) {
28
28
Type : { $ne : 'Folder' } ,
29
29
IsCompleted : { $ne : true } ,
30
30
IsDeclined : { $ne : true } ,
31
+ IsArchive : { $ne : true } ,
31
32
ExpiryDate : {
32
33
$gt : { __type : 'Date' , iso : new Date ( ) . toISOString ( ) } ,
33
34
} ,
@@ -66,6 +67,7 @@ export default function reportJson(id, userId) {
66
67
Placeholders : { $ne : null } ,
67
68
IsCompleted : { $ne : true } ,
68
69
IsDeclined : { $ne : true } ,
70
+ IsArchive : { $ne : true } ,
69
71
CreatedBy : {
70
72
__type : 'Pointer' ,
71
73
className : '_User' ,
@@ -82,14 +84,15 @@ export default function reportJson(id, userId) {
82
84
return {
83
85
reportName : 'Completed Documents' ,
84
86
params : {
85
- Type : null ,
87
+ Type : { $ne : 'Folder' } ,
86
88
IsCompleted : true ,
87
89
CreatedBy : {
88
90
__type : 'Pointer' ,
89
91
className : '_User' ,
90
92
objectId : currentUserId ,
91
93
} ,
92
94
IsDeclined : { $ne : true } ,
95
+ IsArchive : { $ne : true } ,
93
96
} ,
94
97
keys : [
95
98
'Name' ,
@@ -108,6 +111,7 @@ export default function reportJson(id, userId) {
108
111
reportName : 'Declined Documents' ,
109
112
params : {
110
113
Type : null ,
114
+ IsArchive : { $ne : true } ,
111
115
IsDeclined : true ,
112
116
CreatedBy : {
113
117
__type : 'Pointer' ,
@@ -125,6 +129,7 @@ export default function reportJson(id, userId) {
125
129
params : {
126
130
IsCompleted : { $ne : true } ,
127
131
IsDeclined : { $ne : true } ,
132
+ IsArchive : { $ne : true } ,
128
133
Type : { $ne : 'Folder' } ,
129
134
$and : [
130
135
{
@@ -157,6 +162,7 @@ export default function reportJson(id, userId) {
157
162
Placeholders : { $ne : null } ,
158
163
IsCompleted : { $ne : true } ,
159
164
IsDeclined : { $ne : true } ,
165
+ IsArchive : { $ne : true } ,
160
166
CreatedBy : {
161
167
__type : 'Pointer' ,
162
168
className : '_User' ,
@@ -176,6 +182,7 @@ export default function reportJson(id, userId) {
176
182
Type : { $ne : 'Folder' } ,
177
183
IsCompleted : { $ne : true } ,
178
184
IsDeclined : { $ne : true } ,
185
+ IsArchive : { $ne : true } ,
179
186
ExpiryDate : {
180
187
$gt : { __type : 'Date' , iso : new Date ( ) . toISOString ( ) } ,
181
188
} ,
@@ -200,11 +207,11 @@ export default function reportJson(id, userId) {
200
207
return {
201
208
reportName : 'Drafts' ,
202
209
params : {
203
- Type : null ,
204
- $or : [
205
- { Signers : null , SignedUrl : null } ,
206
- { Signers : { $exists : true } , Placeholders : null } ,
207
- ] ,
210
+ Type : { $ne : 'Folder' } ,
211
+ IsCompleted : { $ne : true } ,
212
+ IsDeclined : { $ne : true } ,
213
+ IsArchive : { $ne : true } ,
214
+ $or : [ { Signers : null } , { Signers : { $exists : true } , Placeholders : null } ] ,
208
215
CreatedBy : {
209
216
__type : 'Pointer' ,
210
217
className : '_User' ,
@@ -235,6 +242,7 @@ export default function reportJson(id, userId) {
235
242
reportClass : 'contracts_Template' ,
236
243
params : {
237
244
Type : { $ne : 'Folder' } ,
245
+ IsArchive : { $ne : true } ,
238
246
CreatedBy : {
239
247
__type : 'Pointer' ,
240
248
className : '_User' ,
0 commit comments