iptdevs-design-system 3.1.378 → 3.1.380

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.
@@ -2787,6 +2787,11 @@ class CommercialService extends IPTGeneralService {
2787
2787
  this.generateRequestParams(request);
2788
2788
  return this.http.post(serviceUrl, this.httpOptions);
2789
2789
  }
2790
+ obtainCodPreviusOrPlacementTestBycode(request) {
2791
+ let serviceUrl = this.SERVICE_URL + 'post/obtain/cod/register/previous/or/placement/test/by/status';
2792
+ this.generateRequestParams(request);
2793
+ return this.http.post(serviceUrl, this.httpOptions);
2794
+ }
2790
2795
  }
2791
2796
  CommercialService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CommercialService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
2792
2797
  CommercialService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CommercialService, providedIn: 'root' });
@@ -3997,7 +4002,7 @@ class CalculateQuotesService {
3997
4002
  dataFinancing.push(quota);
3998
4003
  while (index < params.quotaTimes) {
3999
4004
  index = index + 1;
4000
- let newJsDate = this.setPlusOneMonth(dateJs, isEndMonth);
4005
+ let newJsDate = this.setPlusOneMonth2(dateJs, isEndMonth);
4001
4006
  let row = [
4002
4007
  index,
4003
4008
  Intl.NumberFormat('en-US', {
@@ -4013,16 +4018,28 @@ class CalculateQuotesService {
4013
4018
  }
4014
4019
  return dataFinancing;
4015
4020
  }
4016
- setPlusOneMonth(originDate, isEndMonth) {
4021
+ // setPlusOneMonth(originDate: Date, isEndMonth: boolean): Date[] {
4022
+ // let response: Date [] = [];
4023
+ // let oneDayMilis = 1000 * 3600 * 24;
4024
+ // let day = isEndMonth ? this.monthsDays[(originDate.getMonth() + 1)%12]: originDate.getDate();
4025
+ // let plusMonthDate: Date = new Date(originDate.getFullYear(), originDate.getMonth() + 1, day);
4026
+ // response.push(new Date(originDate.getFullYear(), originDate.getMonth() + 1, day));
4027
+ // while(plusMonthDate.getDay() === 0) {
4028
+ // plusMonthDate.setMilliseconds(originDate.getMilliseconds() - oneDayMilis);
4029
+ // }
4030
+ // response.push(plusMonthDate);
4031
+ // return response;
4032
+ // }
4033
+ setPlusOneMonth2(originDate, isEndMonth) {
4017
4034
  let response = [];
4018
4035
  let oneDayMilis = 1000 * 3600 * 24;
4019
4036
  let day = isEndMonth ? this.monthsDays[(originDate.getMonth() + 1) % 12] : originDate.getDate();
4020
4037
  let plusMonthDate = new Date(originDate.getFullYear(), originDate.getMonth() + 1, day);
4021
- response.push(new Date(originDate.getFullYear(), originDate.getMonth() + 1, day));
4022
4038
  while (plusMonthDate.getDay() === 0) {
4023
- plusMonthDate.setMilliseconds(originDate.getMilliseconds() - oneDayMilis);
4039
+ plusMonthDate.setMilliseconds(plusMonthDate.getMilliseconds() - oneDayMilis);
4024
4040
  }
4025
4041
  response.push(plusMonthDate);
4042
+ response.push(new Date(originDate.getFullYear(), originDate.getMonth() + 1, day + 1));
4026
4043
  return response;
4027
4044
  }
4028
4045
  getStringDate(originDate) {