vhp-mongo-models 2.1.67 → 2.1.68
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.
|
@@ -21,7 +21,7 @@ module.exports = [
|
|
|
21
21
|
createDate: { type: String, default: '' },
|
|
22
22
|
lastTransaction: { type: String, default: '' },
|
|
23
23
|
lastInteraction: { type: String, default: '' },
|
|
24
|
-
contacts:{type:Array,default:[]},
|
|
24
|
+
contacts:{type:Array,default:[]}, //remove
|
|
25
25
|
lead:{type:String,default:''},
|
|
26
26
|
salesRep: { type: String, default: '' }
|
|
27
27
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
module.exports = [{
|
|
6
6
|
hhid: { type: String, default: '' },
|
|
7
|
-
|
|
7
|
+
type: {type:String,default:''},//COM | RES
|
|
8
8
|
street: { type: String, default: '' },
|
|
9
9
|
unit: { type: String, default: '' },
|
|
10
10
|
city: { type: String, default: '' },
|
|
@@ -78,4 +78,12 @@ module.exports = [{
|
|
|
78
78
|
]
|
|
79
79
|
/**
|
|
80
80
|
* jonascodes = [{coid:{type:String,default:''},dept:{type:String,default:''}}]
|
|
81
|
+
*
|
|
82
|
+
* contacts = [
|
|
83
|
+
* {
|
|
84
|
+
* role:{type:String,default:''},
|
|
85
|
+
* phone:{type:String,default:''},
|
|
86
|
+
* email:{type:String,default:''}
|
|
87
|
+
* }
|
|
88
|
+
* ]
|
|
81
89
|
*/
|
|
@@ -8,15 +8,19 @@ module.exports = [
|
|
|
8
8
|
{
|
|
9
9
|
id:{type:String,default:''},
|
|
10
10
|
hhid:{type: String, default:''},
|
|
11
|
+
custid:{type: String, default:''},//person calling in, could be the occupant
|
|
12
|
+
clientfirst:{type:String, default:''},
|
|
13
|
+
clientlast:{type:String, default:''},
|
|
14
|
+
|
|
11
15
|
status:{type:String,default:'CHILD'}, //PARENT | CHILD
|
|
12
16
|
parent:{type:String,default:''},
|
|
13
17
|
children:{type:Array,default:[]},
|
|
14
|
-
custid:{type: String, default:''},//person calling in, could be the occupant
|
|
15
18
|
|
|
16
19
|
coid:{type:String,default:''},
|
|
17
20
|
dept:{type:String,default:''},
|
|
18
21
|
workid:{type: String, default:''},//blank until converted TO work (opportunity)
|
|
19
22
|
type:{type: String, default: '' },//PROJECT | SERVICE | MEMBERSHIP
|
|
23
|
+
revenue:{type:Number,default:0},
|
|
20
24
|
|
|
21
25
|
salesRep:{type: String, default:''},
|
|
22
26
|
tags:{type: Array, default:[]},
|
|
@@ -33,11 +33,12 @@ const appsetup = {
|
|
|
33
33
|
canContactClient:false
|
|
34
34
|
},
|
|
35
35
|
projects:{
|
|
36
|
+
types:[], //HVAC,WINDOW,ENVELOPE
|
|
36
37
|
canCreate:false,
|
|
37
38
|
canEdit:false,
|
|
38
39
|
canRemove:false,
|
|
39
40
|
canApprove:false,
|
|
40
|
-
canQuote:false
|
|
41
|
+
canQuote:false,//trim
|
|
41
42
|
canPayCommission:false
|
|
42
43
|
},
|
|
43
44
|
service:{
|