payservedb 9.9.0 → 9.9.2
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 +1 -1
- package/src/models/customer.js +4 -0
- package/src/models/levycontract.js +37 -0
package/package.json
CHANGED
package/src/models/customer.js
CHANGED
|
@@ -107,6 +107,34 @@ const LevyContractSchema = new Schema(
|
|
|
107
107
|
default: null
|
|
108
108
|
// Format: "2025-09", "2025-10", etc.
|
|
109
109
|
},
|
|
110
|
+
// Zoho Books retainer invoice sync tracking
|
|
111
|
+
zohoSync: {
|
|
112
|
+
retainerInvoiceId: {
|
|
113
|
+
type: String,
|
|
114
|
+
default: null
|
|
115
|
+
},
|
|
116
|
+
retainerInvoiceNumber: {
|
|
117
|
+
type: String,
|
|
118
|
+
default: null
|
|
119
|
+
},
|
|
120
|
+
retainerSynced: {
|
|
121
|
+
type: Boolean,
|
|
122
|
+
default: false
|
|
123
|
+
},
|
|
124
|
+
retainerSyncStatus: {
|
|
125
|
+
type: String,
|
|
126
|
+
enum: ['pending', 'synced', 'failed', 'not-applicable'],
|
|
127
|
+
default: 'not-applicable'
|
|
128
|
+
},
|
|
129
|
+
retainerSyncedAt: {
|
|
130
|
+
type: Date,
|
|
131
|
+
default: null
|
|
132
|
+
},
|
|
133
|
+
lastRetainerSyncError: {
|
|
134
|
+
type: String,
|
|
135
|
+
default: null
|
|
136
|
+
}
|
|
137
|
+
},
|
|
110
138
|
// Upfront payment fields
|
|
111
139
|
upfrontPayment: {
|
|
112
140
|
enabled: {
|
|
@@ -135,6 +163,15 @@ const LevyContractSchema = new Schema(
|
|
|
135
163
|
type: [String],
|
|
136
164
|
default: []
|
|
137
165
|
},
|
|
166
|
+
numberOfMonths: {
|
|
167
|
+
type: Number,
|
|
168
|
+
default: 0
|
|
169
|
+
},
|
|
170
|
+
calculationMode: {
|
|
171
|
+
type: String,
|
|
172
|
+
enum: ['auto', 'custom'],
|
|
173
|
+
default: 'auto'
|
|
174
|
+
},
|
|
138
175
|
createdAt: {
|
|
139
176
|
type: Date,
|
|
140
177
|
default: Date.now
|