payservedb 8.8.8 → 8.9.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": "8.8.8",
3
+ "version": "8.9.0",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -37,7 +37,12 @@ const facilitySchema = new mongoose.Schema(
37
37
  procurement: { type: Boolean },
38
38
  accounts: { type: Boolean },
39
39
  },
40
-
40
+ accountNumber: {
41
+ type: String,
42
+ default: null,
43
+ trim: true,
44
+ unique: true,
45
+ },
41
46
  logo: {
42
47
  type: String,
43
48
  trim: false,
@@ -105,6 +105,12 @@ const leaseAgreementSchema = new mongoose.Schema({
105
105
  securityDeposit: { type: Number, required: true },
106
106
  balanceBroughtForward: { type: Number, required: true, default: 0 },
107
107
  taxEnabled: { type: Boolean, default: false },
108
+ enabledTaxes: [
109
+ {
110
+ type: mongoose.Schema.Types.ObjectId,
111
+ ref: 'CountryTaxRate'
112
+ }
113
+ ],
108
114
  penaltyId: {
109
115
  type: mongoose.Schema.Types.ObjectId,
110
116
  ref: 'Penalty'
@@ -49,6 +49,12 @@ const LevyContractSchema = new Schema(
49
49
  type: Boolean,
50
50
  default: true
51
51
  },
52
+ enabledTaxes: [
53
+ {
54
+ type: mongoose.Schema.Types.ObjectId,
55
+ ref: 'CountryTaxRate'
56
+ }
57
+ ],
52
58
  paymentFrequency: {
53
59
  type: String,
54
60
  enum: ['Daily', 'Weekly', 'Bi-Weekly', 'Monthly', 'Quarterly', 'Semi-Annually', 'Annually'],