payservedb 9.8.8 → 9.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
|
@@ -35,7 +35,7 @@ const ContractPaymentReceiptSchema = new Schema(
|
|
|
35
35
|
trim: true
|
|
36
36
|
},
|
|
37
37
|
// NOT required: a receipt can be created without payment
|
|
38
|
-
|
|
38
|
+
|
|
39
39
|
datePaid: {
|
|
40
40
|
type: Date,
|
|
41
41
|
default: null
|
|
@@ -51,7 +51,7 @@ const ContractPaymentReceiptSchema = new Schema(
|
|
|
51
51
|
{
|
|
52
52
|
lineType: {
|
|
53
53
|
type: String,
|
|
54
|
-
enum: ['Deposit', '
|
|
54
|
+
enum: ['Deposit', 'Pre-Payment'],
|
|
55
55
|
required: true
|
|
56
56
|
},
|
|
57
57
|
description: {
|
package/src/models/reminder.js
CHANGED
|
@@ -56,9 +56,9 @@ const reminderSchema = new mongoose.Schema(
|
|
|
56
56
|
// If overdue is enabled but daily is false, then validate days array
|
|
57
57
|
return Array.isArray(value) &&
|
|
58
58
|
value.length > 0 &&
|
|
59
|
-
value.every(day => [1, 3, 7].includes(day));
|
|
59
|
+
value.every(day => [1, 3, 7, 10].includes(day));
|
|
60
60
|
},
|
|
61
|
-
message: 'When overdue reminders are enabled (and daily is false), days must include only values of 1, 3,
|
|
61
|
+
message: 'When overdue reminders are enabled (and daily is false), days must include only values of 1, 3, 7, 10'
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
}
|