vhp-mongo-models 2.1.71 → 2.1.72
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.
|
@@ -6,23 +6,26 @@
|
|
|
6
6
|
*/
|
|
7
7
|
module.exports = [
|
|
8
8
|
{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
billTo:{type:String,default:''},
|
|
9
|
+
phone: { type: String, default: '' }, // id
|
|
10
|
+
type:{type:String,default:'owner'}, // owner | occupant
|
|
11
|
+
roles:{type:Array,default:[]},// options AP | maintenance | reception | sales
|
|
13
12
|
custName:{type:String,default:''},
|
|
14
13
|
clientfirst: { type: String, default: '' },
|
|
15
14
|
clientlast: { type: String, default: '' },
|
|
16
|
-
contactName:{type:String,default:''},
|
|
17
|
-
phone: { type: String, default: '' }, // id
|
|
18
15
|
phone2: { type: String, default: '' },
|
|
19
16
|
email: { type: String, default: '' },
|
|
20
|
-
linked: { type: Boolean, default:true},
|
|
21
17
|
createDate: { type: String, default: '' },
|
|
22
18
|
lastTransaction: { type: String, default: '' },
|
|
23
19
|
lastInteraction: { type: String, default: '' },
|
|
24
|
-
|
|
20
|
+
salesRep: { type: String, default: '' },
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
//remove
|
|
24
|
+
contactName:{type:String,default:''},
|
|
25
25
|
lead:{type:String,default:''},
|
|
26
|
-
|
|
26
|
+
coid:{type:String,default:''},
|
|
27
|
+
linked: { type: Boolean, default:true}, //remove
|
|
28
|
+
contacts:{type:Array,default:[]}, //remove
|
|
29
|
+
custCode : {type:String,default:''}, //link in Jonas
|
|
27
30
|
}
|
|
28
31
|
]
|
|
@@ -14,8 +14,7 @@ module.exports = [{
|
|
|
14
14
|
custid: { type: String, default: '' }, //phone number / billTo
|
|
15
15
|
occupants: { type: Array, default: [] },
|
|
16
16
|
jonascodes: {type:Array, default:[]}, //new add
|
|
17
|
-
|
|
18
|
-
billTo: { type: Boolean, default: false },
|
|
17
|
+
salesRep:{type:String,default:''},
|
|
19
18
|
|
|
20
19
|
location: {
|
|
21
20
|
type: Object, default: {
|
|
@@ -71,12 +70,15 @@ module.exports = [{
|
|
|
71
70
|
rooms: { type: Number, default: 0 }
|
|
72
71
|
},
|
|
73
72
|
spaces: { type: Array, default: [] },
|
|
73
|
+
|
|
74
|
+
//remove
|
|
75
|
+
billTo: { type: Boolean, default: false },
|
|
74
76
|
froot: { type: String, default: '' }
|
|
75
77
|
},
|
|
76
78
|
{ minimize: false }
|
|
77
79
|
]
|
|
78
80
|
/**
|
|
79
|
-
* jonascodes = [{coid:{type:String,default:''},
|
|
81
|
+
* jonascodes = [{coid:{type:String,default:''},custcode:{type:String,default:''}}]
|
|
80
82
|
*
|
|
81
83
|
* contacts = [
|
|
82
84
|
* {
|
|
@@ -30,39 +30,48 @@ let conform = {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
let ticketFinal = {
|
|
33
|
-
showReplacement:{type:Boolean,default:false},
|
|
34
33
|
summary:{type:Object,default:{}}, //a static version of the presentation
|
|
35
34
|
approved:{type:Array,default:[]},
|
|
36
35
|
conform:conform,
|
|
37
36
|
invoice:ticketInvoice,
|
|
38
37
|
signature:{type:String,default:''},
|
|
39
|
-
emailed:{type:
|
|
40
|
-
//paymentMethod:{type:String,default:''},
|
|
38
|
+
emailed:{type:Array,default:[]}, //was boolean
|
|
41
39
|
returnVisit:{type:String,default:''}, //change to String, and attach return ticket id
|
|
42
40
|
returnNotes:{type:String,default:''},
|
|
43
|
-
//addlDetails:{type:String,default:''},
|
|
44
|
-
serviceReferral:{type:Boolean,default:false},
|
|
45
41
|
repairEstimate:repairEstimate, //was ticketTime
|
|
46
42
|
ticketTime:ticketTime,
|
|
47
|
-
//timelog:{type:Object,default:{}},
|
|
48
43
|
officeSubmit:{type:String,default:''},
|
|
49
44
|
completedBy:{type:String,default:''}, //was type=Array
|
|
50
|
-
afterHours:{type:Boolean,default:false}
|
|
45
|
+
afterHours:{type:Boolean,default:false},
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
showReplacement:{type:Boolean,default:false}, //may not need
|
|
49
|
+
serviceReferral:{type:Boolean,default:false}, //may not need
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
//addlDetails:{type:String,default:''},
|
|
53
|
+
//timelog:{type:Object,default:{}},
|
|
54
|
+
//paymentMethod:{type:String,default:''},
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
module.exports = ticketFinal
|
|
54
58
|
|
|
55
59
|
/*
|
|
60
|
+
ticketTime.techs = {
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
emailed = [{
|
|
65
|
+
date:{type:Date,default:''},
|
|
66
|
+
to:{type:Array,default:[]},
|
|
67
|
+
type:{type:String,default:''} // approval | final
|
|
68
|
+
}]
|
|
56
69
|
approved = [{
|
|
57
70
|
name:{type:String,default:''},
|
|
58
71
|
date:{type:Date,default:''},
|
|
59
72
|
signature:{type:String,default:''}
|
|
60
73
|
}]
|
|
61
74
|
|
|
62
|
-
timelog = {
|
|
63
|
-
<tech>:[{driveTime,startTime,endTime}]
|
|
64
|
-
}
|
|
65
|
-
|
|
66
75
|
summary = {
|
|
67
76
|
approved:[{
|
|
68
77
|
name:{type:String,default:''},
|