vhp-mongo-models 1.5.6 → 1.5.8
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.
|
@@ -5,11 +5,20 @@ const ticketFinal = require('./subs/final.js')
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
/* TECHINFO *
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
[
|
|
9
|
+
<user>:{
|
|
10
|
+
name:{type:String,default:''},
|
|
11
|
+
assigned:{type:Array,default:[{
|
|
12
|
+
id:{type:String,default:''}, //the service item id
|
|
13
|
+
done:{type:Boolean,default:false}
|
|
14
|
+
}]},
|
|
15
|
+
driveTime:{type:Date,default:''},
|
|
16
|
+
startTime:{type:Date,default:''},
|
|
17
|
+
endTime:{type:Date,default:''},
|
|
18
|
+
adjustTime:{type:Number,default:0},
|
|
19
|
+
totalTime:{type:Number,default:0}
|
|
20
|
+
}
|
|
21
|
+
]
|
|
13
22
|
*/
|
|
14
23
|
module.exports = [
|
|
15
24
|
{
|
|
@@ -18,7 +18,7 @@ let ticketFinal = new Schema({
|
|
|
18
18
|
signature:{type:String,default:''},
|
|
19
19
|
emailed:{type:Boolean,default:false},
|
|
20
20
|
paymentMethod:{type:String,default:''},
|
|
21
|
-
returnVisit:{type:
|
|
21
|
+
returnVisit:{type:String,default:''}, //change to String, and attach return ticket id
|
|
22
22
|
returnNotes:{type:String,default:''},
|
|
23
23
|
addlDetails:{type:String,default:''},
|
|
24
24
|
serviceReferral:{type:Boolean,default:false},
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const {aaddress}=require('../../../core-models.js');
|
|
2
|
+
const wo = require('./jonaswo.js')
|
|
3
|
+
const ticketFinal = require('./final.js')
|
|
4
|
+
|
|
5
|
+
module.exports = {
|
|
6
|
+
id: { type: String, default: '' },
|
|
7
|
+
ref: { type: Object, default: {} },
|
|
8
|
+
status: { type: String, default: 'active' },
|
|
9
|
+
techs: { type: Array, default: [] },
|
|
10
|
+
techinfo: {type:Object, default:{}}, //hold all info on techs involved
|
|
11
|
+
custid: {type:String, default:''},
|
|
12
|
+
cat:{type:String,default:''},
|
|
13
|
+
dept:{type:String,default:''},
|
|
14
|
+
hhid:{type:String,default:''},
|
|
15
|
+
...aaddress,
|
|
16
|
+
}
|