payservedb 5.9.3 → 5.9.4
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
|
@@ -67,10 +67,6 @@ const PropertyManagerContractSchema = new Schema(
|
|
|
67
67
|
type: Boolean,
|
|
68
68
|
default: false
|
|
69
69
|
},
|
|
70
|
-
balanceBroughtForward: {
|
|
71
|
-
type: Number,
|
|
72
|
-
default: 0
|
|
73
|
-
},
|
|
74
70
|
// Management fee
|
|
75
71
|
managementFee: {
|
|
76
72
|
type: {
|
|
@@ -206,11 +202,10 @@ PropertyManagerContractSchema.pre('save', function (next) {
|
|
|
206
202
|
PropertyManagerContractSchema.methods.syncWithLeaseData = async function(leaseData) {
|
|
207
203
|
if (!leaseData) return;
|
|
208
204
|
|
|
209
|
-
// Update contract fields from lease data
|
|
205
|
+
// Update contract fields from lease data (removed balanceBroughtForward)
|
|
210
206
|
this.startDate = leaseData.leaseTerms?.startDate || this.startDate;
|
|
211
207
|
this.endDate = leaseData.leaseTerms?.endDate || this.endDate;
|
|
212
208
|
this.paymentDueDate = leaseData.financialTerms?.paymentDueDate || this.paymentDueDate;
|
|
213
|
-
this.balanceBroughtForward = leaseData.financialTerms?.balanceBroughtForward || this.balanceBroughtForward;
|
|
214
209
|
this.frequency = leaseData.billingCycle?.frequency || this.frequency;
|
|
215
210
|
this.autoSend = leaseData.billingCycle?.autoSend !== undefined ? leaseData.billingCycle.autoSend : this.autoSend;
|
|
216
211
|
this.nextInvoiceDate = leaseData.billingCycle?.nextInvoiceDate || this.nextInvoiceDate;
|