From dd9a3dc460865d92924cef68bd78289912e138a8 Mon Sep 17 00:00:00 2001 From: sinergia Date: Tue, 28 Nov 2023 07:53:24 -0500 Subject: [PATCH] =?UTF-8?q?feat:=20Se=20a=C3=B1ade=20campo=20de=20activida?= =?UTF-8?q?des=20preventivas=20ha=20informe=20linea=20de=20mantenimiento?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- report/Maintenance_Service.fodt | 400 +++++++++++++++++--------------- 1 file changed, 218 insertions(+), 182 deletions(-) diff --git a/report/Maintenance_Service.fodt b/report/Maintenance_Service.fodt index 75900a6..0d4e987 100644 --- a/report/Maintenance_Service.fodt +++ b/report/Maintenance_Service.fodt @@ -1,10 +1,10 @@ - 2022-11-03T17:09:30.5000787642023-11-27T17:31:57.204796437PT2H35S39LibreOffice/7.5.8.2$Linux_X86_64 LibreOffice_project/50$Build-2 + 2022-11-03T17:09:30.5000787642023-11-28T07:51:36.432994205PT2H3M37S41LibreOffice/7.5.8.2$Linux_X86_64 LibreOffice_project/50$Build-2 - 31877 + 52148 0 35003 16425 @@ -13,12 +13,12 @@ view2 - 20874 - 11042 + 8707 + 65952 0 - 31877 + 52148 35001 - 48301 + 68571 0 1 false @@ -73,7 +73,7 @@ true true false - 2364367 + 2443876 true false false @@ -160,7 +160,7 @@ - + @@ -321,16 +321,16 @@ - + $ - + - $ - + @@ -558,134 +558,162 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - - + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1411,40 +1439,40 @@ <for each="maintenance in records"> - <choose test=""> - <when test="maintenance.maintenance_type == 'initial'"> - REGISTRO DE MANTENIMIENTO INICIAL - </when> - <when test="maintenance.maintenance_type == 'preventive'"> - REGISTRO DE MANTENIMIENTO PREVENTIVO - </when> - <when test="maintenance.maintenance_type == 'corrective'"> - REGISTRO DE MANTENIMIENTO CORRECTIVO - </when> - </choose> - Fecha <format_datetime(datetime.datetime.now(),user.language, '%b/%d/%Y', maintenance.company.timezone)> - Consecutivo <maintenance.code> - - INFORMACIÓN DEL PROPIETARIO + <choose test=""> + <when test="maintenance.maintenance_type == 'initial'"> + REGISTRO DE MANTENIMIENTO INICIAL + </when> + <when test="maintenance.maintenance_type == 'preventive'"> + REGISTRO DE MANTENIMIENTO PREVENTIVO + </when> + <when test="maintenance.maintenance_type == 'corrective'"> + REGISTRO DE MANTENIMIENTO CORRECTIVO + </when> + </choose> + Fecha <format_datetime(datetime.datetime.now(),user.language, '%b/%d/%Y', maintenance.company.timezone)> + Consecutivo <maintenance.code> + + INFORMACIÓN DEL PROPIETARIO - Nombre / Razón Social: <maintenance.propietary.name> - Ciudad: <maintenance.propietary_address.subdivision_municipality.name> - Teléfono: <maintenance.propietary.phone> - Movil: <maintenance.propietary.mobile> + Nombre / Razón Social: <maintenance.propietary.name> + Ciudad: <maintenance.propietary_address.subdivision_municipality.name> + Teléfono: <maintenance.propietary.phone> + Movil: <maintenance.propietary.mobile> - Tipo Documento: <"NIT" if maintenance.propietary.tax_identifier.type=="31" else "CC"> - Documento: <maintenance.propietary.tax_identifier.code> - Dirección: <maintenance.propietary_address.street> + Tipo Documento: <"NIT" if maintenance.propietary.tax_identifier.type=="31" else "CC"> + Documento: <maintenance.propietary.tax_identifier.code> + Dirección: <maintenance.propietary_address.street> - - INFORMACIÓN DEL DISPOSITIVO + + INFORMACIÓN DEL DISPOSITIVO @@ -1461,17 +1489,17 @@ - + - <choose test=""> - <when test="maintenance.maintenance_type == 'preventive'"> + <choose test=""> + <when test="maintenance.maintenance_type == 'preventive'"> Trabajo Realizado - 1. Verificación inicial de funcionamiento: + 1. Verificación inicial de funcionamiento: <"X" if maintenance.initial_operation else ""> @@ -1479,7 +1507,7 @@ - 2. Revisión del Equipo: + 2. Revisión del Equipo: <"X" if maintenance.check_equipment else ""> @@ -1487,7 +1515,7 @@ - 3. Revisión del sistema eléctrico: + 3. Revisión del sistema eléctrico: <"X" if maintenance.check_electric_system else ""> @@ -1495,7 +1523,7 @@ - 4. Limpieza interior y exterior: + 4. Limpieza interior y exterior: <"X" if maintenance.clean_int_ext else ""> @@ -1503,7 +1531,7 @@ - 5. Limpieza de lentes y espejos: + 5. Limpieza de lentes y espejos: <"X" if maintenance.clean_eyes else ""> @@ -1511,82 +1539,90 @@ - 6. Verificar Calibración: + 6. Verificar Calibración: <"X" if maintenance.check_calibration else ""> - </when> - <when test="maintenance.maintenance_type == 'corrective'"> - Trabajo Realizado + </when> + <when test="maintenance.maintenance_type == 'corrective'"> + Trabajo Realizado - Repuesto + Repuesto - Actividad de Mantenimiento + Actividad de Mantenimiento - Descripción + Descripción - <for each="line in maintenance.maintenance_lines"> + <for each="line in maintenance.maintenance_lines"> - <"X" if line.line_replace else ""> + <"X" if line.line_replace else ""> - <"X" if line.line_maintenance_activity else ""> + <"X" if line.line_maintenance_activity else ""> - <line.maintenance_activity.name if line.line_maintenance_activity else line.replacement.name> + <line.maintenance_activity.name if line.line_maintenance_activity else line.replacement.name> <if test="line.description"> <for each="description in line.description.split('\n')"> <description> </for> </if> - + - </for> + </for> - </when> + </when> </choose> + <choose test=""> + <when test="maintenance.equipment.product.preventive_activities"> + Actividades Realizadas: + <for each="description in (maintenance.equipment.product.preventive_activities or '').split('\n')"> + <description> + </for> + </when> + </choose> Observaciones - <maintenance.description_activity> - - - Fecha del próximo mantenimiento <str(maintenance.next_maintenance)[0:11]> + <maintenance.description_activity> + + + Fecha del próximo mantenimiento <str(maintenance.next_maintenance)[0:11]> - <maintenance.technician_responsible> - INVIMA :<maintenance.invima> + <maintenance.technician_responsible> + INVIMA :<maintenance.invima> </for> - +