payservedb 6.6.8 → 6.6.9

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": "6.6.8",
3
+ "version": "6.6.9",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -70,9 +70,33 @@ const waterMeterSettingsSchema = new mongoose.Schema({
70
70
  required: true,
71
71
  default: 0
72
72
  },
73
+
74
+ // Updated notification structure
73
75
  notifications: {
74
- type: Boolean,
75
- default: false
76
+ usageAlerts: {
77
+ enabled: {
78
+ type: Boolean,
79
+ default: false
80
+ },
81
+ daily: {
82
+ type: Boolean,
83
+ default: false
84
+ },
85
+ weekly: {
86
+ type: Boolean,
87
+ default: false
88
+ },
89
+ monthly: {
90
+ type: Boolean,
91
+ default: false
92
+ }
93
+ },
94
+ statements: {
95
+ enabled: {
96
+ type: Boolean,
97
+ default: false
98
+ }
99
+ }
76
100
  },
77
101
  dailyNotifications: {
78
102
  type: Boolean,
@@ -86,6 +110,28 @@ const waterMeterSettingsSchema = new mongoose.Schema({
86
110
  type: Boolean,
87
111
  default: false
88
112
  },
113
+
114
+ // Add other charges section
115
+ otherCharges: {
116
+ type: String,
117
+ enum: ['yes', 'no'],
118
+ default: 'no'
119
+ },
120
+ sewerageCharge: {
121
+ type: Number,
122
+ default: 0
123
+ },
124
+ fixedCharge: {
125
+ type: Number,
126
+ default: 0
127
+ },
128
+ vatPercentage: {
129
+ type: Number,
130
+ min: 0,
131
+ max: 100,
132
+ default: 0
133
+ },
134
+
89
135
  // PAYMENTS
90
136
  paymentMethods: {
91
137
  mobilePayment: {
@@ -109,7 +155,7 @@ const waterMeterSettingsSchema = new mongoose.Schema({
109
155
  }
110
156
  }
111
157
  },
112
-
158
+
113
159
  // Biller Address Information for Invoice Generation
114
160
  billerAddress: {
115
161
  name: {
@@ -146,6 +192,7 @@ const waterMeterSettingsSchema = new mongoose.Schema({
146
192
  trim: true,
147
193
  }
148
194
  },
195
+
149
196
  glAccounts: {
150
197
  invoice: {
151
198
  debit: {
@@ -120,7 +120,7 @@ const waterMeterSchema = new mongoose.Schema({
120
120
  },
121
121
  bulkMeterDescription: {
122
122
  type: String,
123
- enum: ['City Council Bulk', 'Borehole Bulk', 'Bulk Inlet'],
123
+ enum: ['City Council Bulk', 'Borehole Bulk', 'Bulk Inlet', 'Bulk Outlet','Bulk Borehole Outlet'],
124
124
  trim: true
125
125
  }
126
126