iptdevs-design-system 2.7.114 → 2.7.116
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/esm2020/lib/cod/logic/calculate-quotes.service.mjs +9 -6
- package/fesm2015/iptdevs-design-system.mjs +8 -5
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +8 -5
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/cod/logic/calculate-quotes.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3456,7 +3456,7 @@ class CalculateQuotesService {
|
|
|
3456
3456
|
dataFinancing.push(quota);
|
|
3457
3457
|
while (index < params.quotaTimes) {
|
|
3458
3458
|
index = index + 1;
|
|
3459
|
-
|
|
3459
|
+
let newJsDate = this.setPlusOneMonth(dateJs);
|
|
3460
3460
|
let row = [
|
|
3461
3461
|
index,
|
|
3462
3462
|
Intl.NumberFormat('en-US', {
|
|
@@ -3464,21 +3464,24 @@ class CalculateQuotesService {
|
|
|
3464
3464
|
currency: 'USD',
|
|
3465
3465
|
minimumFractionDigits: 0
|
|
3466
3466
|
}).format(Math.round(parseFloat(params.quotaValues.toString()))),
|
|
3467
|
-
this.getStringDate(
|
|
3467
|
+
this.getStringDate(newJsDate[newJsDate.length - 1])
|
|
3468
3468
|
];
|
|
3469
3469
|
dataFinancing.push(row);
|
|
3470
|
+
dateJs = newJsDate[0];
|
|
3470
3471
|
}
|
|
3471
3472
|
}
|
|
3472
3473
|
return dataFinancing;
|
|
3473
3474
|
}
|
|
3474
3475
|
setPlusOneMonth(originDate) {
|
|
3476
|
+
let response = [];
|
|
3475
3477
|
let oneDayMilis = 1000 * 3600 * 24;
|
|
3476
3478
|
let plusMonthDate = new Date(originDate.getFullYear(), originDate.getMonth() + 1, originDate.getDate());
|
|
3479
|
+
response.push(plusMonthDate);
|
|
3477
3480
|
while (plusMonthDate.getDay() === 0) {
|
|
3478
|
-
|
|
3479
|
-
plusMonthDate = new Date(iterationDate);
|
|
3481
|
+
plusMonthDate.setMilliseconds(originDate.getMilliseconds() - oneDayMilis);
|
|
3480
3482
|
}
|
|
3481
|
-
|
|
3483
|
+
response.push(plusMonthDate);
|
|
3484
|
+
return response;
|
|
3482
3485
|
}
|
|
3483
3486
|
getStringDate(originDate) {
|
|
3484
3487
|
let month = originDate.getMonth() + 1;
|