@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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "1.2.39",
3
+ "version": "1.2.40",
4
4
  "description": "All the schemas for gatehouse bank back-end",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",