vhp-mongo-models 2.1.79 → 2.1.82
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/Company/schemas/department.js +1 -1
- package/Company/schemas/employee.js +1 -1
- package/HouseHolds/schemas/checklist.js +1 -1
- package/HouseHolds/schemas/home.js +7 -0
- package/HouseHolds/schemas/lead.js +10 -2
- package/HouseHolds/schemas/serviceitem.js +2 -1
- package/Replacement/schemas/bid.js +1 -0
- package/Replacement/schemas/projects.js +2 -1
- package/Service/schemas/subs/final.js +2 -0
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ module.exports=[
|
|
|
17
17
|
repTo: { type: String, default: '' }, // empID
|
|
18
18
|
title: { type: String, default: '' },
|
|
19
19
|
type:{type:String,default:''},
|
|
20
|
-
teams: { type: Array, default:
|
|
20
|
+
teams: { type: Array, default: [] }, //remove
|
|
21
21
|
jobDesc: { type: String, default: '' },
|
|
22
22
|
|
|
23
23
|
skills: { type: String, default: '' },
|
|
@@ -4,7 +4,7 @@ module.exports = [{
|
|
|
4
4
|
title:{type:String,default:''},
|
|
5
5
|
coid:{type:String,default:''},
|
|
6
6
|
hhid:{type:String,default:''},
|
|
7
|
-
work:{type:String,default:''}, //
|
|
7
|
+
work:{type:String,default:''}, //work.id
|
|
8
8
|
sitems:{type:Array,default:[]}, //of service item ["ids"]
|
|
9
9
|
scoring:{
|
|
10
10
|
list:{type:Object,default:{}},
|
|
@@ -15,6 +15,7 @@ module.exports = [{
|
|
|
15
15
|
custid: { type: String, default: '' }, //phone number / billTo
|
|
16
16
|
occupants: { type: Array, default: [] },
|
|
17
17
|
jonascodes: {type:Array, default: []}, //new add
|
|
18
|
+
oldcodes:{type:Array, default:[]},
|
|
18
19
|
billto: {type:Boolean,default: false}, //if it is a billing address for other homes
|
|
19
20
|
salesRep:{type:String,default:''},
|
|
20
21
|
|
|
@@ -80,4 +81,10 @@ module.exports = [{
|
|
|
80
81
|
* billto:{type:String,default:''}
|
|
81
82
|
* }]
|
|
82
83
|
*
|
|
84
|
+
* oldcodes = [{
|
|
85
|
+
* date:{type:Date, default:''},
|
|
86
|
+
* coid:{type:String,default:''},
|
|
87
|
+
* custcode:{type:String,default:''},
|
|
88
|
+
* billto:{type:String,default:''}
|
|
89
|
+
* }]
|
|
83
90
|
*/
|
|
@@ -11,7 +11,12 @@ module.exports = [
|
|
|
11
11
|
custid:{type: String, default:''},//person calling in, could be the occupant
|
|
12
12
|
clientfirst:{type:String, default:''},
|
|
13
13
|
clientlast:{type:String, default:''},
|
|
14
|
-
|
|
14
|
+
street:{type:String,default:''},
|
|
15
|
+
unit:{type:String,default:''},
|
|
16
|
+
city:{type:String,default:''},
|
|
17
|
+
state:{type:String,default:''},
|
|
18
|
+
zip:{type:String,default:''},
|
|
19
|
+
|
|
15
20
|
status:{type:String,default:'PARENT'}, //PARENT | CHILD
|
|
16
21
|
parent:{type:String,default:''},
|
|
17
22
|
children:{type:Array,default:[]},
|
|
@@ -27,7 +32,9 @@ module.exports = [
|
|
|
27
32
|
result:{type: String, default:'NEW'},//ACTIVE (when converted) | SOLD | CANCELED | NOBUY | REMOVED
|
|
28
33
|
|
|
29
34
|
takenBy:{type:String, default:''},
|
|
30
|
-
takenDate:{type:
|
|
35
|
+
takenDate:{type:Date, default:Date.now},
|
|
36
|
+
quoteType:{type:String, default:''},
|
|
37
|
+
quoteSubType:{type:String, default:''},
|
|
31
38
|
generator:{type: String, default: '' },//step 1 (SELF | CUSTOMER | SERVICE | REPLACEMENT REFERALS)
|
|
32
39
|
source:{type: String, default: '' }, //optional (user | billboard)
|
|
33
40
|
custref:{type:String,default:''}, //when (SELF | CUSTOMER REFERALS) phone number of refer whether or not they are a customer
|
|
@@ -37,6 +44,7 @@ module.exports = [
|
|
|
37
44
|
dept:{type:String, default:''},
|
|
38
45
|
type:{type:String, default:''} //SERVICE | PROJECT | MEMBERSHIP
|
|
39
46
|
},
|
|
47
|
+
workinfo:{type:Object,default:{}}, //content depending on lead.type
|
|
40
48
|
desc:{type:String,default:''},
|
|
41
49
|
notes:{type:Array, default:[]},
|
|
42
50
|
|
|
@@ -10,7 +10,8 @@ module.exports = [
|
|
|
10
10
|
tags:{type:Array,default:[]},
|
|
11
11
|
|
|
12
12
|
//JONAS props
|
|
13
|
-
id:{type:String,default:''}, //must have an id, should match JONAS "
|
|
13
|
+
id:{type:String,default:''}, //must have an id, should match JONAS "lineNumberUnique"
|
|
14
|
+
linenum:{type:String,default:''},
|
|
14
15
|
custcode:{type:String,default:''}, //linked custcode in JONAS
|
|
15
16
|
tagid:{type:String,default:''},
|
|
16
17
|
type:{type:String,default:''},//understand what this is in jonas
|
|
@@ -35,6 +35,7 @@ module.exports=[
|
|
|
35
35
|
amntAmeren:{type:Number,default:0},
|
|
36
36
|
amntManf:{type:Number,default:0},
|
|
37
37
|
amntSpecial:{type:Number,default:0},
|
|
38
|
+
miscTotal:{type:Number,defautl:0},//the total = amntTotal - sumItems
|
|
38
39
|
|
|
39
40
|
sold:{type:Date,default:''},
|
|
40
41
|
invoiced:{type:Date,default:''},
|
|
@@ -10,11 +10,13 @@ let repairEstimate = {
|
|
|
10
10
|
techCount:{type:Number,default:0},
|
|
11
11
|
revenuePer:{type:Number,default:0}, //was revenuePerEstimate
|
|
12
12
|
completionTime:{type:String,default:''}
|
|
13
|
+
|
|
13
14
|
//revenuePerEstimate:{type:Number,default:0},
|
|
14
15
|
//revenuePer:{type:Number,default:0},//moved to ticketTime
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
let ticketTime = {
|
|
19
|
+
crossLaborRate:{type:Number,default:0},
|
|
18
20
|
techs:{type:Number,default:0},
|
|
19
21
|
driving:{type:Number,default:0},
|
|
20
22
|
labor:{type:Number,default:0},
|