diff --git a/nuxt4-app/app/components/comercios/TotalesMonetariosComercio.vue b/nuxt4-app/app/components/comercios/TotalesMonetariosComercio.vue index cbebef8..e541861 100644 --- a/nuxt4-app/app/components/comercios/TotalesMonetariosComercio.vue +++ b/nuxt4-app/app/components/comercios/TotalesMonetariosComercio.vue @@ -41,7 +41,7 @@

Distribución de Pagos

-
+
Efectivo
@@ -69,6 +69,24 @@ {{ calcularPorcentaje(data.total_cheque, data.total_invertido) }}%
+
+
Transferencia
+
+ {{ formatCurrency(data.total_transferencia) }} +
+
+ {{ calcularPorcentaje(data.total_transferencia, data.total_invertido) }}% +
+
+
+
Abono
+
+ {{ formatCurrency(data.total_abono) }} +
+
+ {{ calcularPorcentaje(data.total_abono, data.total_invertido) }}% +
+
Total Verificación
@@ -121,6 +139,30 @@
{{ formatCurrency(data.total_cheque) }}
+
+ Transferencia +
+
+ {{ calcularPorcentaje(data.total_transferencia, data.total_invertido) }}% +
+
+ {{ formatCurrency(data.total_transferencia) }} +
+
+ Abono +
+
+ {{ calcularPorcentaje(data.total_abono, data.total_invertido) }}% +
+
+ {{ formatCurrency(data.total_abono) }} +
@@ -136,6 +178,8 @@ const props = defineProps<{ total_efectivo: number total_deposito: number total_cheque: number + total_transferencia: number + total_abono: number num_comercios: number } contadores?: { @@ -154,7 +198,9 @@ const showChart = ref(true) const totalDistribucion = computed(() => { return (props.data.total_efectivo || 0) + (props.data.total_deposito || 0) + - (props.data.total_cheque || 0) + (props.data.total_cheque || 0) + + (props.data.total_transferencia || 0) + + (props.data.total_abono || 0) }) const totalMatch = computed(() => { @@ -208,6 +254,8 @@ async function copiarTexto() { Efectivo: ${formatCurrency(props.data.total_efectivo)} (${calcularPorcentaje(props.data.total_efectivo, props.data.total_invertido)}%) Depósito: ${formatCurrency(props.data.total_deposito)} (${calcularPorcentaje(props.data.total_deposito, props.data.total_invertido)}%) Cheque: ${formatCurrency(props.data.total_cheque)} (${calcularPorcentaje(props.data.total_cheque, props.data.total_invertido)}%) + Transferencia: ${formatCurrency(props.data.total_transferencia)} (${calcularPorcentaje(props.data.total_transferencia, props.data.total_invertido)}%) + Abono: ${formatCurrency(props.data.total_abono)} (${calcularPorcentaje(props.data.total_abono, props.data.total_invertido)}%) Total Distribución: ${formatCurrency(totalDistribucion.value)} Verificación: ${totalMatch.value ? '✓ Coincide con total invertido' : '✗ No coincide con total invertido'}${footer}`