payservedb 5.0.9 → 5.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payservedb",
3
- "version": "5.0.9",
3
+ "version": "5.1.0",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -12,6 +12,7 @@
12
12
  "dependencies": {
13
13
  "dotenv": "^16.4.5",
14
14
  "moment-timezone": "^0.5.47",
15
- "mongoose": "^8.3.5"
15
+ "mongoose": "^8.3.5",
16
+ "payservedb": "^5.0.9"
16
17
  }
17
18
  }
@@ -26,6 +26,11 @@ const leaseAgreementSchema = new mongoose.Schema({
26
26
  ref: 'Customer',
27
27
  required: true
28
28
  },
29
+ doubleEntryAccount: {
30
+ type: mongoose.Schema.Types.ObjectId,
31
+ ref: 'GLAccountDoubleEntries',
32
+ required: true
33
+ },
29
34
  leaseTerms: {
30
35
  startDate: { type: Date, required: true },
31
36
  endDate: { type: Date, required: true },
@@ -22,6 +22,11 @@ const levyContractSchema = new mongoose.Schema({
22
22
  ref: 'Unit',
23
23
  required: true
24
24
  },
25
+ doubleEntryAccount: {
26
+ type: mongoose.Schema.Types.ObjectId,
27
+ ref: 'GLAccountDoubleEntries',
28
+ required: true
29
+ },
25
30
  amount: {
26
31
  type: Number,
27
32
  required: true,
@@ -25,7 +25,7 @@ const userSchema = new mongoose.Schema({
25
25
  type: {
26
26
  type: String,
27
27
  required: [true, 'Type is required'],
28
- enum: ['Company', 'Project Manager', 'Universal', 'Core', 'Resident', 'Landlord'],
28
+ enum: ['Company', 'Project Manager', 'Universal', 'Core', 'Resident', 'Landlord', 'Supplier'],
29
29
  },
30
30
  department: {
31
31
  type: String,
@@ -34,7 +34,7 @@ const userSchema = new mongoose.Schema({
34
34
  role: {
35
35
  type: String,
36
36
  required: [true, 'Role is required'],
37
- enum: ['admin', 'editor', 'user', 'guard', 'family','Staff'],
37
+ enum: ['admin', 'editor', 'user', 'guard', 'family','Staff', 'supplier'],
38
38
  },
39
39
  permissions: {
40
40
  type: Object,