payservedb 5.6.3 → 5.6.4

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.6.3",
3
+ "version": "5.6.4",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -10,7 +10,33 @@ const expenseCategorySchema = new mongoose.Schema({
10
10
  type: String,
11
11
  required: true,
12
12
  trim: true
13
- }
13
+ },
14
+ glAccounts: {
15
+ invoice: {
16
+ debit: {
17
+ type: mongoose.Schema.Types.ObjectId,
18
+ ref: "GLAccount",
19
+ required: false,
20
+ },
21
+ credit: {
22
+ type: mongoose.Schema.Types.ObjectId,
23
+ ref: "GLAccount",
24
+ required: false,
25
+ }
26
+ },
27
+ payment: {
28
+ debit: {
29
+ type: mongoose.Schema.Types.ObjectId,
30
+ ref: "GLAccount",
31
+ required: false,
32
+ },
33
+ credit: {
34
+ type: mongoose.Schema.Types.ObjectId,
35
+ ref: "GLAccount",
36
+ required: false,
37
+ }
38
+ }
39
+ },
14
40
  }, {
15
41
  timestamps: true
16
42
  });
@@ -79,7 +79,33 @@ const waterMeterSettingsSchema = new mongoose.Schema({
79
79
  allNotifications: {
80
80
  type: Boolean,
81
81
  default: false
82
- }
82
+ },
83
+ glAccounts: {
84
+ invoice: {
85
+ debit: {
86
+ type: mongoose.Schema.Types.ObjectId,
87
+ ref: "GLAccount",
88
+ required: false,
89
+ },
90
+ credit: {
91
+ type: mongoose.Schema.Types.ObjectId,
92
+ ref: "GLAccount",
93
+ required: false,
94
+ }
95
+ },
96
+ payment: {
97
+ debit: {
98
+ type: mongoose.Schema.Types.ObjectId,
99
+ ref: "GLAccount",
100
+ required: false,
101
+ },
102
+ credit: {
103
+ type: mongoose.Schema.Types.ObjectId,
104
+ ref: "GLAccount",
105
+ required: false,
106
+ }
107
+ }
108
+ },
83
109
  }, {
84
110
  timestamps: true
85
111
  });