payservedb 6.6.8 → 6.7.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
|
@@ -10,23 +10,24 @@ const powerMeterGatewaySchema = new mongoose.Schema({
|
|
|
10
10
|
type: String,
|
|
11
11
|
required: true
|
|
12
12
|
},
|
|
13
|
-
|
|
13
|
+
gatewayId: {
|
|
14
14
|
type: Number,
|
|
15
15
|
required: false
|
|
16
|
-
|
|
17
16
|
},
|
|
18
|
-
|
|
17
|
+
manufacturer: {
|
|
19
18
|
type: String,
|
|
20
19
|
required: true
|
|
21
|
-
|
|
20
|
+
},
|
|
21
|
+
location: {
|
|
22
|
+
type: String,
|
|
23
|
+
trim: true
|
|
22
24
|
},
|
|
23
25
|
type: {
|
|
24
26
|
type: String,
|
|
25
27
|
trim: true
|
|
26
28
|
},
|
|
27
29
|
status: {
|
|
28
|
-
type: String
|
|
29
|
-
required: true
|
|
30
|
+
type: String
|
|
30
31
|
}
|
|
31
32
|
}, {
|
|
32
33
|
timestamps: true
|
|
@@ -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
|
-
|
|
75
|
-
|
|
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
|
|