vhp-mongo-models 2.1.76 → 2.1.78

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.
@@ -27,7 +27,7 @@ module.exports = [
27
27
  result:{type: String, default:'NEW'},//ACTIVE (when converted) | SOLD | CANCELED | NOBUY | REMOVED
28
28
 
29
29
  takenBy:{type:String, default:''},
30
- takenDate:{type:String, default:''},
30
+ takenDate:{type:String, default:Date.now},
31
31
  generator:{type: String, default: '' },//step 1 (SELF | CUSTOMER | SERVICE | REPLACEMENT REFERALS)
32
32
  source:{type: String, default: '' }, //optional (user | billboard)
33
33
  custref:{type:String,default:''}, //when (SELF | CUSTOMER REFERALS) phone number of refer whether or not they are a customer
@@ -36,9 +36,10 @@ module.exports=[
36
36
  amntManf:{type:Number,default:0},
37
37
  amntSpecial:{type:Number,default:0},
38
38
 
39
- items:{type:Array,default:[]},
40
39
  sold:{type:Date,default:''},
41
40
  invoiced:{type:Date,default:''},
42
- paid:{type:Date,default:''}
41
+ paid:{type:Date,default:''},
42
+ comped:{type:Date,default:''},
43
+ items:{type:Array,default:[]}
43
44
  }
44
45
  ]
@@ -65,7 +65,7 @@ module.exports = {
65
65
  custid: {type:String, default:''},
66
66
  cat:{type:String,default:''}, //converted cat from jonas. Orginal cat can be found in wo.cat
67
67
  dept:{type:String,default:''},
68
- temp:{type:Boolean,default:''},
68
+ temp:{type:Boolean,default:false},
69
69
  techs: { type: Array, default: [] },
70
70
  techinfo: {type:Object, default:{}}, //hold all info on techs involved
71
71
  timelog: {type:Array, default:[]},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vhp-mongo-models",
3
- "version": "2.1.76",
3
+ "version": "2.1.78",
4
4
  "productName": "VHP Mongo Models",
5
5
  "description": "Mongo Models library to setup Mongoose Schemas",
6
6
  "author": "VHPim",