vhp-mongo-models 2.1.63 → 2.1.65
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.
|
@@ -8,28 +8,41 @@ module.exports = [
|
|
|
8
8
|
{
|
|
9
9
|
id:{type:String,default:''},
|
|
10
10
|
hhid:{type: String, default:''},
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
status:{type:String,default:'CHILD'}, //PARENT | CHILD
|
|
12
|
+
parent:{type:String,default:''},
|
|
13
|
+
children:{type:Array,default:[]},
|
|
14
|
+
custid:{type: String, default:''},//person calling in, could be the occupant
|
|
15
|
+
|
|
16
|
+
coid:{type:String,default:''},
|
|
17
|
+
dept:{type:String,default:''},
|
|
18
|
+
workid:{type: String, default:''},//blank until converted TO work (opportunity)
|
|
13
19
|
type:{type: String, default: '' },//PROJECT | SERVICE | MEMBERSHIP
|
|
14
|
-
|
|
20
|
+
|
|
15
21
|
salesRep:{type: String, default:''},
|
|
22
|
+
tags:{type: Array, default:[]},
|
|
23
|
+
result:{type: String, default:'NEW'},//ACTIVE (when converted) | SOLD | CANCELED | NOBUY | REMOVED
|
|
24
|
+
|
|
16
25
|
takenBy:{type:String, default:''},
|
|
17
26
|
takenDate:{type:String, default:''},
|
|
18
|
-
|
|
19
|
-
generator:{type: String, default: '' },//step 1 (wonum | webform)
|
|
27
|
+
generator:{type: String, default: '' },//step 1 (SELF | CUSTOMER | SERVICE | REPLACEMENT REFERALS)
|
|
20
28
|
source:{type: String, default: '' }, //optional (user | billboard)
|
|
21
|
-
|
|
29
|
+
custref:{type:String,default:''}, //when (SELF | CUSTOMER REFERALS) phone number of refer whether or not they are a customer
|
|
30
|
+
workref:{ //when (SERVICE | REPLACEMENT REFERALS)
|
|
31
|
+
id:{type:String, default:''},
|
|
32
|
+
coid:{type:String, default:''},
|
|
33
|
+
dept:{type:String, default:''},
|
|
34
|
+
type:{type:String, default:''} //SERVICE | PROJECTS | MEMBERSHIPS
|
|
35
|
+
},
|
|
22
36
|
desc:{type:String,default:''},
|
|
23
37
|
notes:{type:Array, default:[]},
|
|
24
38
|
|
|
25
|
-
apptid:{type:String, default:''}
|
|
26
|
-
apptdate:{type: Date, default:
|
|
39
|
+
apptid:{type:String, default:''},// if an appointment is offically made
|
|
40
|
+
apptdate:{type: Date, default:Date.now},// desired to be serviced/consulted
|
|
27
41
|
|
|
28
42
|
time:{type: String, default: '' }, //time of day
|
|
29
43
|
prstdate:{type: Date, default: '' },
|
|
30
44
|
carryover:{type: Date, default: '' },
|
|
31
45
|
prstvia:{type: String, default: '' },
|
|
32
|
-
rewards:{type: Boolean, default: false }
|
|
33
|
-
|
|
46
|
+
rewards:{type: Boolean, default: false }
|
|
34
47
|
}
|
|
35
48
|
]
|
|
@@ -16,21 +16,26 @@
|
|
|
16
16
|
paid:{type:Date,default:''}
|
|
17
17
|
* }]
|
|
18
18
|
*/
|
|
19
|
+
|
|
19
20
|
module.exports=[
|
|
20
21
|
{
|
|
21
22
|
projectId:{type:String,default:''}, //was ref
|
|
22
23
|
hhid:{type:String,default:''}, //new
|
|
23
24
|
dept:{type:String,default:''},
|
|
24
25
|
contract:{type:String,default:''},//no contract it can't be sold
|
|
26
|
+
|
|
25
27
|
solution:{type:String,default:''}, //type-<solution>
|
|
28
|
+
|
|
26
29
|
cat:{type:String,default:''},
|
|
27
30
|
type:{type:String,default:''},
|
|
28
31
|
bookprice:{type:Boolean,default:true},
|
|
32
|
+
|
|
29
33
|
amntTotal:{type:Number,default:0},
|
|
30
34
|
amntCust:{type:Number,default:0},
|
|
31
35
|
amntAmeren:{type:Number,default:0},
|
|
32
36
|
amntManf:{type:Number,default:0},
|
|
33
37
|
amntSpecial:{type:Number,default:0},
|
|
38
|
+
|
|
34
39
|
items:{type:Array,default:[]},
|
|
35
40
|
sold:{type:Date,default:''},
|
|
36
41
|
invoiced:{type:Date,default:''},
|
|
@@ -44,7 +44,7 @@ let ticketFinal = {
|
|
|
44
44
|
serviceReferral:{type:Boolean,default:false},
|
|
45
45
|
repairEstimate:repairEstimate, //was ticketTime
|
|
46
46
|
ticketTime:ticketTime,
|
|
47
|
-
timelog:{type:Object,default:{}},
|
|
47
|
+
//timelog:{type:Object,default:{}},
|
|
48
48
|
officeSubmit:{type:String,default:''},
|
|
49
49
|
completedBy:{type:String,default:''}, //was type=Array
|
|
50
50
|
afterHours:{type:Boolean,default:false}
|