iptdevs-design-system 3.1.811 → 3.1.813

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.
@@ -3969,9 +3969,11 @@ class CodFormStepTwoComponent extends CodFormSteps {
3969
3969
  });
3970
3970
  }
3971
3971
  initForm() {
3972
+ const currentDate = new Date().toISOString().split('T')[0];
3973
+ console.log('Fecha actual primer clg:', currentDate);
3972
3974
  this.codFormStepTwo = this.fb.group({
3973
3975
  student_address: ['', [Validators.required], []],
3974
- birthdate: ['', [Validators.required], []],
3976
+ birthdate: [currentDate, [Validators.required], []],
3975
3977
  country: ['', [Validators.required], []],
3976
3978
  state: ['', [Validators.required], []],
3977
3979
  city: ['', [Validators.required], []],
@@ -3992,10 +3994,12 @@ class CodFormStepTwoComponent extends CodFormSteps {
3992
3994
  password: [{ value: '', disabled: this.isEditCod }, [Validators.required, Validators.minLength(6)]],
3993
3995
  re_password: [{ value: '', disabled: this.isEditCod }, [Validators.required, Validators.minLength(6)]],
3994
3996
  });
3995
- const currentDate = new Date().toISOString().split('T')[0];
3996
- this.codFormStepTwo.controls['birthdate'].setValue(currentDate);
3997
+ console.log('Valor de birthdate en el formulario: segundo clg', this.codFormStepTwo.controls['birthdate'].value);
3998
+ this.codFormStepTwo.patchValue({
3999
+ birthdate: currentDate
4000
+ });
4001
+ console.log('Valor de birthdate en el formulario: tercero clg', this.codFormStepTwo.controls['birthdate'].value);
3997
4002
  // Calcular edad y setear valor
3998
- console.log(this.codFormStepTwo.controls['birthdate'].value);
3999
4003
  this.codFormStepTwo.controls['birthdate'].valueChanges.subscribe({
4000
4004
  next: (change) => {
4001
4005
  let today = new Date();
@@ -6227,10 +6231,13 @@ class BudgetService extends IPTGeneralService {
6227
6231
  } */
6228
6232
  assignImageToTransfer(params) {
6229
6233
  const serviceUrl = this.SERVICE_URL + 'post/transfer/assign-image';
6234
+ const paramsPayload = {
6235
+ token: params.token,
6236
+ code: params.code
6237
+ };
6230
6238
  const formData = new FormData();
6231
- formData.append('params[token]', params.token);
6232
- formData.append('params[code]', params.code.toString());
6233
- formData.append('params[image]', params.image, params.image.name);
6239
+ formData.append('params', JSON.stringify(paramsPayload));
6240
+ formData.append('image', params.image, params.image.name);
6234
6241
  return this.http.post(serviceUrl, formData);
6235
6242
  }
6236
6243
  updateTransfer(params) {