diff --git a/nuxt4-app/app/components/empleados/DetallePlanillas.vue b/nuxt4-app/app/components/empleados/DetallePlanillas.vue index 7e7fc88..e432711 100644 --- a/nuxt4-app/app/components/empleados/DetallePlanillas.vue +++ b/nuxt4-app/app/components/empleados/DetallePlanillas.vue @@ -29,7 +29,7 @@ -
+
diff --git a/nuxt4-app/app/components/empleados/TotalesEmpleados.vue b/nuxt4-app/app/components/empleados/TotalesEmpleados.vue index 094e529..164b91d 100644 --- a/nuxt4-app/app/components/empleados/TotalesEmpleados.vue +++ b/nuxt4-app/app/components/empleados/TotalesEmpleados.vue @@ -28,7 +28,7 @@
-
+
@@ -96,6 +96,40 @@ de {{ contadores?.total_empleados || 0 }} totales
+ +
+
+
+
+
+
+
Total Pagado Planillas
+
+ {{ formatCurrency(data.total_pagado_planillas || 0) }} +
+
+
+
+ en planillas de pago +
+
+ +
+
+
+
+
+
+
Total Precios Tareas
+
+ {{ formatCurrency(data.total_precios_tareas || 0) }} +
+
+
+
+ suma de precios asignados +
+
@@ -132,6 +166,8 @@ const props = defineProps<{ total_horas_trabajadas: number total_dias_asistencia: number total_tareas: number + total_pagado_planillas: number + total_precios_tareas: number } contadores?: { total_empleados?: number @@ -168,6 +204,15 @@ const formatNumber = (value: number, decimals: number = 2) => { }).format(value) } +const formatCurrency = (value: number) => { + return new Intl.NumberFormat('es-HN', { + style: 'currency', + currency: 'HNL', + minimumFractionDigits: 2, + maximumFractionDigits: 2 + }).format(value) +} + async function copiarTexto() { const footer = ` ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ @@ -186,6 +231,11 @@ async function copiarTexto() { Total Tareas Realizadas: ${formatNumber(props.data.total_tareas || 0, 0)} tareas Empleados Activos: ${props.contadores?.empleados_filtrados || 0} +💰 TOTALES MONETARIOS: + Total Pagado en Planillas: ${formatCurrency(props.data.total_pagado_planillas || 0)} + Total Precios de Tareas: ${formatCurrency(props.data.total_precios_tareas || 0)} + Diferencia: ${formatCurrency((props.data.total_pagado_planillas || 0) - (props.data.total_precios_tareas || 0))} + 📈 PROMEDIO POR EMPLEADO: Horas por Empleado: ${formatNumber(promedioHorasPorEmpleado.value)} hrs Días por Empleado: ${formatNumber(promedioDiasPorEmpleado.value, 1)} días