@zeniai/client-epic-state 4.8.72 → 4.8.73
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.
|
@@ -104,6 +104,8 @@ const updateAmountsInScheduleDetails = (jeSchedulesLocalData, actualPeriod, rowI
|
|
|
104
104
|
Math.abs(jeSchedulesLocalData[rowId - 1].runningBalance.amount) -
|
|
105
105
|
updatedAmount;
|
|
106
106
|
}
|
|
107
|
+
// Round off the running balance to 2 digits
|
|
108
|
+
calculatedRunningBalance = Math.round(calculatedRunningBalance * 100) / 100;
|
|
107
109
|
const calculatedPeriod = actualPeriod - (rowId + 1);
|
|
108
110
|
const averageAmount = Math.round((calculatedRunningBalance / calculatedPeriod) * 100) / 100;
|
|
109
111
|
const lastMonthAmount = Math.abs(Math.round((calculatedRunningBalance - averageAmount * (calculatedPeriod - 1)) * 100) / 100);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.73",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|