vhp-mongo-models 2.1.994 → 2.1.996
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.
|
@@ -7,6 +7,7 @@ module.exports = [{
|
|
|
7
7
|
work: { type: String, default: '' }, //work.id
|
|
8
8
|
datecomplete: { type: Date, default: '' },
|
|
9
9
|
sitems: { type: Array, default: [] }, //of service item ["ids"]
|
|
10
|
+
tech: { type: String, default: '' },
|
|
10
11
|
scoring: {
|
|
11
12
|
list: { type: Object, default: {} },
|
|
12
13
|
score: { type: Object, default: {} },
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
module.exports = [
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
{
|
|
3
|
+
name: { type: String, default: '' }, //unique
|
|
4
|
+
altName: { type: Object, default: {} },
|
|
5
|
+
notes: { type: String, default: '' },
|
|
6
|
+
level: { type: String, default: 'tier' }, // tier | solution | project
|
|
7
|
+
type: { type: String, default: 'instant' }, // instant | postpurchase | credit | silent
|
|
8
|
+
amount: { type: Number, default: 0 },
|
|
9
|
+
unit: { type: String, default: 'dollars' }, // dollars | percent | hours
|
|
10
|
+
builtinCode: { type: String, default: '' },
|
|
11
|
+
builtinType: { type: String, default: '' }
|
|
12
|
+
}, {}
|
|
13
13
|
]
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
const aticket = require('./subs/ticket.js')
|
|
3
3
|
|
|
4
4
|
module.exports = [
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
{
|
|
6
|
+
...aticket,
|
|
7
|
+
status: { type: String, default: 'active' },
|
|
8
|
+
documents: { type: Array, default: [] }, //remove?
|
|
9
|
+
approval: { type: String, default: 'PREPARING' }, // SENT | APPROVED
|
|
10
|
+
approvalCode: { type: String, default: '' }
|
|
11
|
+
}, { minimize: false }
|
|
12
12
|
]
|
|
@@ -5,9 +5,9 @@ const aticket = require('./subs/ticket.js')
|
|
|
5
5
|
"status": 1
|
|
6
6
|
}*/
|
|
7
7
|
module.exports = [
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
{
|
|
9
|
+
...aticket,
|
|
10
|
+
status: { type: String, default: 'complete' }, // active, complete, archived
|
|
11
|
+
documents: { type: Array, default: [] } //could get rid of
|
|
12
|
+
}, { minimize: false }
|
|
13
13
|
]
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
module.exports = [{
|
|
2
|
-
ticket: { type: String, default: '' },
|
|
3
2
|
hhid: { type: String, default: '' },
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
coid: { type: String, default: '' },
|
|
4
|
+
dept: { type: String, default: '' },
|
|
5
|
+
ticket: { type: String, default: '' },
|
|
6
|
+
tech: { type: String, default: '' },
|
|
7
|
+
datesubmitted: { type: Date, default: '' },
|
|
8
|
+
dateorder: { type: Date, default: '' },
|
|
9
|
+
datereceived: { type: Date, default: '' },
|
|
6
10
|
task: { type: String, default: '' },
|
|
7
11
|
descr: { type: String, default: '' },
|
|
8
12
|
price: { type: Number, default: 0 },
|
|
9
13
|
pl: { type: String, default: '' },
|
|
10
14
|
appr: { type: String, default: '' },
|
|
11
15
|
qty: { type: Number, default: 1 },
|
|
16
|
+
sitem: { type: String, default: '' },
|
|
12
17
|
tagid: { type: String, default: '' },
|
|
13
18
|
returnfor: { type: Boolean, default: false },
|
|
14
|
-
done: { type: Boolean, default: false }
|
|
19
|
+
done: { type: Boolean, default: false },
|
|
20
|
+
notes: { type: String, default: '' }
|
|
15
21
|
}, { minimize: false }]
|
package/Service/schemas/spiff.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
module.exports = [
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
2
|
+
{
|
|
3
|
+
FormID: { type: String, default: '' },
|
|
4
|
+
TechID: { type: String, default: '' },
|
|
5
|
+
TechLName: { type: String, default: '' },
|
|
6
|
+
TechFName: { type: String, default: '' },
|
|
7
|
+
Date: { type: Date, default: '' },
|
|
8
|
+
WO: { type: String, default: '' },
|
|
9
|
+
Address: { type: String, default: '' },
|
|
10
|
+
CustLName: { type: String, default: '' },
|
|
11
|
+
CustFName: { type: String, default: '' },
|
|
12
|
+
ReferTo: { type: String, default: '' },
|
|
13
|
+
SpiffFor: { type: String, default: '' },
|
|
14
|
+
status: { type: String, default: '' },
|
|
15
|
+
paid: { type: String, default: '' },
|
|
16
|
+
comments: { type: Array, default: [] },
|
|
17
|
+
closedate: { type: Date, default: '' },
|
|
18
|
+
reportmonth: { type: String, default: '' },
|
|
19
|
+
reportid: { type: String, default: '' },
|
|
20
|
+
lastdate: { type: Date, default: '' },
|
|
21
|
+
editor: { type: Array, default: [] },
|
|
22
|
+
reportStatus: { type: String, default: '' }
|
|
23
|
+
}
|
|
24
24
|
]
|