|
@@ 998-1016 (lines=19) @@
|
| 995 |
|
$params->CONTRATO_FORMACION->CIF_EMPRESA = $aux['company_fiscal_number'];
|
| 996 |
|
}
|
| 997 |
|
|
| 998 |
|
if (!empty($aux['company_tutor_id'])) {
|
| 999 |
|
$resultCompany = Database::query("SELECT * FROM $tableTutorsCompany WHERE id='".$aux['company_tutor_id']."';");
|
| 1000 |
|
$auxCompany = Database::fetch_assoc($resultCompany);
|
| 1001 |
|
if (!empty($auxCompany['document_type']) ||
|
| 1002 |
|
!empty($auxCompany['document_number']) ||
|
| 1003 |
|
!empty($auxCompany['document_letter'])
|
| 1004 |
|
) {
|
| 1005 |
|
$params->CONTRATO_FORMACION->ID_TUTOR_EMPRESA = new stdClass();
|
| 1006 |
|
$params->CONTRATO_FORMACION->ID_TUTOR_EMPRESA->TIPO_DOCUMENTO = $auxCompany['document_type'];
|
| 1007 |
|
$params->CONTRATO_FORMACION->ID_TUTOR_EMPRESA->NUM_DOCUMENTO = $auxCompany['document_number'];
|
| 1008 |
|
$params->CONTRATO_FORMACION->ID_TUTOR_EMPRESA->LETRA_NIF = $auxCompany['document_letter'];
|
| 1009 |
|
}
|
| 1010 |
|
}
|
| 1011 |
|
if (!empty($aux['training_tutor_id'])) {
|
| 1012 |
|
$resultTraining = Database::query("SELECT * FROM $tableTutorsCompany WHERE id='".$aux['training_tutor_id']."';");
|
| 1013 |
|
$auxTraining = Database::fetch_assoc($resultTraining);
|
| 1014 |
|
if (!empty($auxTraining['document_type']) ||
|
| 1015 |
|
!empty($auxTraining['document_number']) ||
|
| 1016 |
|
!empty($auxTraining['document_letter'])
|
| 1017 |
|
) {
|
| 1018 |
|
$params->CONTRATO_FORMACION->ID_TUTOR_FORMACION = new stdClass();
|
| 1019 |
|
$params->CONTRATO_FORMACION->ID_TUTOR_FORMACION->TIPO_DOCUMENTO = $auxTraining['document_type'];
|
|
@@ 1011-1029 (lines=19) @@
|
| 1008 |
|
$params->CONTRATO_FORMACION->ID_TUTOR_EMPRESA->LETRA_NIF = $auxCompany['document_letter'];
|
| 1009 |
|
}
|
| 1010 |
|
}
|
| 1011 |
|
if (!empty($aux['training_tutor_id'])) {
|
| 1012 |
|
$resultTraining = Database::query("SELECT * FROM $tableTutorsCompany WHERE id='".$aux['training_tutor_id']."';");
|
| 1013 |
|
$auxTraining = Database::fetch_assoc($resultTraining);
|
| 1014 |
|
if (!empty($auxTraining['document_type']) ||
|
| 1015 |
|
!empty($auxTraining['document_number']) ||
|
| 1016 |
|
!empty($auxTraining['document_letter'])
|
| 1017 |
|
) {
|
| 1018 |
|
$params->CONTRATO_FORMACION->ID_TUTOR_FORMACION = new stdClass();
|
| 1019 |
|
$params->CONTRATO_FORMACION->ID_TUTOR_FORMACION->TIPO_DOCUMENTO = $auxTraining['document_type'];
|
| 1020 |
|
$params->CONTRATO_FORMACION->ID_TUTOR_FORMACION->NUM_DOCUMENTO = $auxTraining['document_number'];
|
| 1021 |
|
$params->CONTRATO_FORMACION->ID_TUTOR_FORMACION->LETRA_NIF = $auxTraining['document_letter'];
|
| 1022 |
|
}
|
| 1023 |
|
}
|
| 1024 |
|
|
| 1025 |
|
|
| 1026 |
|
$params->ESPECIALIDADES_PARTICIPANTE = new SoapVar(
|
| 1027 |
|
$specialtyParticipant,
|
| 1028 |
|
SOAP_ENC_OBJECT,
|
| 1029 |
|
null,
|
| 1030 |
|
null,
|
| 1031 |
|
'ESPECIALIDADES_PARTICIPANTE'
|
| 1032 |
|
);
|