diff --git a/src/components/POS/ExcelClient.vue b/src/components/POS/ExcelClient.vue
new file mode 100644
index 0000000..bb33cb4
--- /dev/null
+++ b/src/components/POS/ExcelClient.vue
@@ -0,0 +1,193 @@
+
+
+
+
+
+
+
+
+
+
+
+ Reporte de Descuentos por Cliente
+
+
+ Genera un archivo Excel con los descuentos aplicados
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ downloading ? 'Generando...' : 'Descargar Excel' }}
+
+
+
+
+
+
+
+
+
+
+
Información del reporte:
+
+ - Incluye descuentos aplicados en el rango seleccionado
+ - Muestra nivel y porcentaje de descuento por cliente
+ - Se descarga automáticamente en formato Excel (.xlsx)
+
+
+
+
+
+
+
+
diff --git a/src/pages/POS/Clients/Index.vue b/src/pages/POS/Clients/Index.vue
index 2d02592..6ab5cbd 100644
--- a/src/pages/POS/Clients/Index.vue
+++ b/src/pages/POS/Clients/Index.vue
@@ -4,6 +4,7 @@ import { useSearcher, apiURL } from '@Services/Api';
import { can } from './Module.js';
import SearcherHead from '@Holos/Searcher.vue';
+import ExcelModal from '@Components/POS/ExcelClient.vue';
import Table from '@Holos/Table.vue';
import GoogleIcon from '@Shared/GoogleIcon.vue';
import CreateModal from './Create.vue';
@@ -18,6 +19,7 @@ const showCreateModal = ref(false);
const showEditModal = ref(false);
const showDeleteModal = ref(false);
const showStatsModal = ref(false);
+const showExcelModal = ref(false);
const editingClient = ref(null);
const deletingClient = ref(null);
const statsClient = ref(null);
@@ -108,6 +110,13 @@ const closeStatsModal = () => {
showStatsModal.value = false;
statsClient.value = null;
};
+const openExcelModal = () => {
+ showExcelModal.value = true;
+};
+
+const closeExcelModal = () => {
+ showExcelModal.value = false;
+};
const onClientSaved = () => {
searcher.search();
@@ -134,6 +143,13 @@ onMounted(() => {
Nuevo Cliente
+
@@ -257,5 +273,11 @@ onMounted(() => {
:client="statsClient"
@close="closeStatsModal"
/>
+
+
+
\ No newline at end of file