vhp-mongo-models 2.1.81 → 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.
|
@@ -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
|
*/
|
|
@@ -33,6 +33,8 @@ module.exports = [
|
|
|
33
33
|
|
|
34
34
|
takenBy:{type:String, default:''},
|
|
35
35
|
takenDate:{type:Date, default:Date.now},
|
|
36
|
+
quoteType:{type:String, default:''},
|
|
37
|
+
quoteSubType:{type:String, default:''},
|
|
36
38
|
generator:{type: String, default: '' },//step 1 (SELF | CUSTOMER | SERVICE | REPLACEMENT REFERALS)
|
|
37
39
|
source:{type: String, default: '' }, //optional (user | billboard)
|
|
38
40
|
custref:{type:String,default:''}, //when (SELF | CUSTOMER REFERALS) phone number of refer whether or not they are a customer
|
|
@@ -42,6 +44,7 @@ module.exports = [
|
|
|
42
44
|
dept:{type:String, default:''},
|
|
43
45
|
type:{type:String, default:''} //SERVICE | PROJECT | MEMBERSHIP
|
|
44
46
|
},
|
|
47
|
+
workinfo:{type:Object,default:{}}, //content depending on lead.type
|
|
45
48
|
desc:{type:String,default:''},
|
|
46
49
|
notes:{type:Array, default:[]},
|
|
47
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
|