iptdevs-design-system 3.2.100 → 3.2.102

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.
@@ -5934,15 +5934,16 @@ class CalculateQuotesService$1 {
5934
5934
  }).format(Math.round(parseFloat(params.totalPrice.toString()))),
5935
5935
  this.getStringDate(dateJs)
5936
5936
  ];
5937
- // First quota
5938
- let firstQuotaDate = isSpecialCourseType ? new Date(params.date) : dateJs;
5939
- if (isSpecialCourseType) {
5940
- firstQuotaDate.setMonth(firstQuotaDate.getMonth() + 1);
5941
- // Adjust if day exceeds max days in month
5942
- const maxDays = this.monthsDays[firstQuotaDate.getMonth()];
5943
- if (firstQuotaDate.getDate() > maxDays) {
5944
- firstQuotaDate.setDate(maxDays);
5945
- }
5937
+ // TODO: Para técnicas financiado, matrícula y 1ra cuota deben tener la misma fecha (igual que semestral).
5938
+ // Se comenta el +1 mes que separaba la cuota 0 de la cuota 1 en técnicas.
5939
+ // let firstQuotaDate = isSpecialCourseType ? new Date(params.date) : dateJs;
5940
+ // if (isSpecialCourseType) {
5941
+ // firstQuotaDate.setMonth(firstQuotaDate.getMonth() + 1);
5942
+ // }
5943
+ let firstQuotaDate = new Date(dateJs);
5944
+ const maxDays = this.monthsDays[firstQuotaDate.getMonth()];
5945
+ if (firstQuotaDate.getDate() > maxDays) {
5946
+ firstQuotaDate.setDate(maxDays);
5946
5947
  }
5947
5948
  let quota = [
5948
5949
  index,
@@ -5959,9 +5960,12 @@ class CalculateQuotesService$1 {
5959
5960
  index = index + 1;
5960
5961
  let newJsDate;
5961
5962
  if (isSpecialCourseType) {
5962
- // Special case: add (index) months from params.date
5963
+ // TODO: Se cambió index por (index - 1) porque la 1ra cuota comparte fecha con matrícula
5964
+ // y el loop empezaba sumando 2 meses en vez de 1, saltándose un mes.
5965
+ // newJsDate = new Date(params.date);
5966
+ // newJsDate.setMonth(newJsDate.getMonth() + index);
5963
5967
  newJsDate = new Date(params.date);
5964
- newJsDate.setMonth(newJsDate.getMonth() + index);
5968
+ newJsDate.setMonth(newJsDate.getMonth() + (index - 1));
5965
5969
  // Adjust if day exceeds max days in month
5966
5970
  const maxDays = this.monthsDays[newJsDate.getMonth()];
5967
5971
  if (newJsDate.getDate() > maxDays) {