payservedb 9.1.6 → 9.1.8

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": "9.1.6",
3
+ "version": "9.1.8",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -174,6 +174,17 @@ const powerMeterSettingsSchema = new mongoose.Schema({
174
174
  enum: ['yes', 'no', ''],
175
175
  default: ''
176
176
  },
177
+ withholdingTaxes: [
178
+ {
179
+ name: { type: String, required: true }, // e.g. "withholding"
180
+ percentage: { type: Number, required: true }, // e.g. 5
181
+ amount: { type: Number, required: true }, // e.g. 50 (subTotal * percentage / 100)
182
+ },
183
+ ],
184
+ totalWithholdingTax: {
185
+ type: Number,
186
+ default: 0,
187
+ },
177
188
 
178
189
  // Notifications
179
190
  notifications: {