@dynamatix/gb-schemas 1.2.39 → 1.2.40
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.
|
@@ -127,7 +127,7 @@ propertySchema.virtual('stressedRCR').get(function () {
|
|
|
127
127
|
return 0; // Avoid division by zero
|
|
128
128
|
}
|
|
129
129
|
const stressedRCR = (monthlyRentValue / monthlyRepaymentValue) * 100;
|
|
130
|
-
return stressedRCR;
|
|
130
|
+
return parseFloat(stressedRCR.toFixed(2));
|
|
131
131
|
});
|
|
132
132
|
const PropertyModel = mongoose.model('Property', propertySchema);
|
|
133
133
|
export default PropertyModel;
|