vhp-mongo-models 2.0.8 → 2.1.0

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.
@@ -9,6 +9,7 @@ let repairEstimate = {
9
9
  time:{type:Number,default:0}, //time to complete all repairs
10
10
  techCount:{type:Number,default:0},
11
11
  revenuePer:{type:Number,default:0}, //was revenuePerEstimate
12
+ completionTime:{type:String,default:''}
12
13
  //revenuePerEstimate:{type:Number,default:0},
13
14
  //revenuePer:{type:Number,default:0},//moved to ticketTime
14
15
  }
@@ -22,11 +23,16 @@ let ticketTime = {
22
23
  hours:{type:Number,default:0},
23
24
  revenuePer:{type:Number,default:0}
24
25
  }
26
+ let conform = {
27
+ interested:{type:Boolean,default:false},
28
+ purchased:{type:Boolean,default:false},
29
+ details:{type:Object,default:{}}
30
+ }
25
31
 
26
32
  let ticketFinal = {
27
33
  showReplacement:{type:Boolean,default:false},
28
34
  summary:{type:Object,default:{}}, //a static version of the presentation
29
- conform:{type:Object,default:{}},
35
+ conform:conform,
30
36
  invoice:ticketInvoice,
31
37
  signature:{type:String,default:''},
32
38
  emailed:{type:Boolean,default:false},
@@ -44,13 +50,7 @@ let ticketFinal = {
44
50
  }
45
51
 
46
52
  module.exports = ticketFinal
47
- /* conform
48
- {
49
- interested:{type:Bool,default:false},
50
- purchased:{type:Bool,default:false},
51
- details:contract
52
- }
53
- */
53
+
54
54
  /*
55
55
  timelog = {
56
56
  <tech>:[{driveTime,startTime,endTime}]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vhp-mongo-models",
3
- "version": "2.0.8",
3
+ "version": "2.1.0",
4
4
  "productName": "VHP Mongo Models",
5
5
  "description": "Mongo Models library to setup Mongoose Schemas",
6
6
  "author": "VHPim",