Commit Graph

75 Commits

Author SHA1 Message Date
AlexeerCT
cb00e5cd16 Refactor API routes: migrate invoices and company endpoints to new structure and enhance error handling 2025-12-29 13:15:00 -06:00
AlexeerCT
8d0a895c8d Refactor invoice edit flow: enhance error handling, load reference data, and improve token management 2025-12-29 12:53:06 -06:00
AlexeerCT
b939526302 Update Keycloak configuration and normalize API endpoint paths in invoices API 2025-12-26 17:48:46 -06:00
AlexeerCT
69bf0c472b Refactor middleware import path, update Docker configurations, and normalize API base URL 2025-12-26 14:21:00 -06:00
AlexeerCT
ae1cf83491 Add production setup and update Docker configurations
- Introduced a new docker-compose.prod.yml for production deployment.
- Updated docker-compose.yml to change backend port mapping.
- Added svelte-sonner dependency to frontend package.json.
- Created Dockerfile.prod for building the frontend application.
- Enhanced README.md with production deployment instructions.
2025-12-26 09:48:39 -06:00
AlexeerCT
d3a0086188 Merge branch 'feature/facturas' into development 2025-12-24 15:07:10 -06:00
AlexeerCT
5ceaba50e5 Merge branch 'features/Creacion-formularios_catalogos_generales' into development 2025-12-24 15:05:09 -06:00
b011ae32a4 Puliendo el proyecto de archivos redunantes 2025-12-24 14:55:57 -06:00
AlexeerCT
6c1b555f08 feat: add pedimento fields and selection functionality to invoice forms 2025-12-24 14:42:23 -06:00
AlexeerCT
18325a2925 feat: add invoice editing components and UI elements
- Implemented `invoice-top-fields.svelte` for editing main invoice details including operation type, invoice type, and compliance fields.
- Created `observations-tab-form.svelte` to manage invoice observations and compliance data.
- Developed `others-tab-form.svelte` for additional logistics and compliance information related to the invoice.
- Introduced reusable UI components for checkboxes and radio groups in `checkbox.svelte`, `radio-group.svelte`, and their respective item components.
- Enhanced form handling with TypeScript for better type safety and maintainability.
2025-12-24 13:52:25 -06:00
Galindo97
07e5a5101a feat: implement dialogs for managing shipments, goods, contributions differences, and notes in the otros-datos-tab-form component 2025-12-24 13:39:07 -06:00
9f2971d8c4 Se acabo de realizar las tareas CRUD de catalogos, ademas de cambiar su estilo de tablas. Tambien se agrego la caracteristica de reactividad 2025-12-24 10:36:14 -06:00
Galindo97
7585cedd3e feat: add partidas tab form component with CRUD functionality
- Implemented the partidas tab form in Svelte for managing partidas.
- Added functionality to create, edit, delete, and list partidas.
- Integrated a dialog for adding and editing partidas with validation.
- Included a checkbox component for selecting partidas.
- Added total calculations for partidas in the UI.
- Enhanced UI with buttons for various actions and a responsive table layout.
2025-12-24 09:10:10 -06:00
18b0a49322 Desarrollo del sistema de crud, ademas de homogenizar el estilo de las tablas 2025-12-23 17:55:12 -06:00
Galindo97
6a06f19b1c feat: Update Pedimento schemas and frontend components to enforce required fields and improve data handling 2025-12-22 18:04:49 -06:00
f915bccd5f Desarrollo de rutina de CRUD para los catalogos generales 2025-12-22 17:43:25 -06:00
6a9f69e39e Se termino de agregar los formularios modales a los catalogos que faltaba 2025-12-22 11:13:35 -06:00
153fca9ad7 Se agrego un modal provicional para el fomrulario y creacion de los registros en la base de datos. Aun faltan 3 catalogos para la integracion con la base de datos 2025-12-19 17:25:12 -06:00
AlexeerCT
fa70b747ec feat: convert operation_type from string to number for existing invoices 2025-12-19 11:30:47 -06:00
AlexeerCT
f8fbfb0c4b feat: implement automatic URL updates and filter application for invoice dashboard 2025-12-19 11:19:30 -06:00
AlexeerCT
e937f48de4 feat: add logistics tab form for invoice editing
feat: implement server-side loading for invoices page with authentication and filters

feat: create invoices page with filtering, infinite scroll, and data table

feat: add server-side loading for invoice edit page with data fetching

feat: implement invoice edit page with tabbed interface and form handling
2025-12-19 10:52:09 -06:00
827c5319bb Se agegaron rutas para clientes/proveedores asi como a las agencias aduanales 2025-12-16 15:40:17 -06:00
d1caf0b996 Creacion de rutas para nuevas facturas, asi como nuevas rutinas para el filtro de datos en facturas de exportacion 2025-12-16 08:29:39 -06:00
314df4ffc1 Modulo/Creacion de endpoint para las tablas de facturas, asi como sus creaciones 2025-12-12 17:23:58 -06:00
a07aeb7b12 feat: Enhance invoice management with operation and invoice type filters, update dialog defaults, and modify routes for improved functionality 2025-12-12 08:44:09 -06:00
e5f6162ffb feat: Implement invoice management features including data table, dialogs for viewing, editing, and deleting invoices, and server-side loading of invoice data 2025-12-11 11:30:44 -06:00
3992a9436b feat: Implement server-side loading for exchange rates with authentication and error handling 2025-12-09 09:08:17 -06:00
ce6cdee062 feat(api): add CRUD operations for various general catalogs including concepts, customs broker concepts, DODA, electronic notices, equivalencies, error catalogs, exchange rates, identifiers, INPC, legends, multi-currency types, packages, ports, prevalidators, seals, signatures, unit conversions, and units of measure. 2025-12-09 09:03:33 -06:00
e8b8599335 feat: Implement API clients and UI components for managing units of measure and locations
- Added API client for OMA units of measure with CRUD operations.
- Created API client for general unit measures with CRUD functionality.
- Developed UI components for displaying and managing locations in a data table format.
- Implemented data table actions for unit measures, including create, edit, and delete functionalities.
- Integrated pagination and refresh capabilities in the data tables for both customs and general unit measures.
- Enhanced user experience with dialogs for creating and editing units of measure.
- Added server-side loading logic for fetching locations and units of measure with error handling.
2025-12-08 17:34:03 -06:00
648197b171 feat: Enhance company loading logic with authentication and error handling 2025-12-08 14:37:45 -06:00
6acbd48e9e feat: Implement general catalogs for INPC, Legends, Multi-Currency Types, Packages, Ports, Prevalidators, Signatures, Unit Conversions, and Units of Measure
- Added INPC management page with search functionality.
- Created Legends management page with filters for code and description.
- Implemented Multi-Currency Types management with search capabilities.
- Developed Packages management page with filtering options.
- Introduced Ports management page with authentication and data fetching.
- Added Prevalidators management page with search filters.
- Implemented Signatures management page with search by name and position.
- Created Unit Conversions management page for conversion factors.
- Developed Units of Measure management pages for ACE, American, and OMA with data tables and create/edit dialogs.
2025-12-08 14:17:47 -06:00
f1bd2d63e8 Merge remote-tracking branch 'origin/24-nov' into development 2025-12-08 10:39:22 -06:00
KevinMrkz3221
5c4372df8c catalogos 2025-12-06 19:45:36 -06:00
0cb89ceeec feat: update pedimento dates model, add PATCH method to API, and enhance edit forms 2025-12-05 17:27:19 -06:00
KevinMrkz3221
64b6f3e5c9 feat: implementar CRUD completo para exchange_rate, packages y seal
Backend:
- Corregir tipos datetime en exchange_rate (dto.py, models.py)
- Agregar datetime import en packages dto.py
- Corregir orden de parámetros en seal services.py
- Actualizar router.py con nuevas rutas

Frontend:
- Crear API clients para exchange-rate, packages y seal
- Implementar componentes de tabla con renderComponent
- Crear diálogos de crear/editar para cada módulo
- Implementar data-table-actions con manejo interno de diálogos
- Agregar páginas completas con filtros e infinite scroll
- Actualizar sidebar con nuevos módulos

Características:
- Acciones inline (editar/eliminar) totalmente funcionales
- Filtros de búsqueda específicos por módulo
- Paginación con infinite scroll
- Sincronización con companyStore
- Manejo de errores robusto
2025-12-02 20:46:41 -06:00
KevinMrkz3221
baf76cf414 Clases 2025-12-02 19:36:22 -06:00
dcd42583d9 feat: replace SVG icons with Lucide icons in reference data pages
- Updated the "Nueva Sección" button in customs_sections, customs_warehouses, incoterms, invoice_types, material_types, payment_methods, pedimento_codes, pedimento_regimens, sectors, states, transport_modes, and transport_types pages to use the Plus icon from Lucide.
- Updated the "Actualizar" button in the same pages to use the RefreshCw icon from Lucide.
- Added a new edit dialog component for customs brokers with a comprehensive form for editing broker details, including validation and loading states.
2025-11-24 16:43:53 -06:00
cdc3788a05 feat: update company API endpoint, refine pedimento dates model, and adjust Keycloak mapper creation 2025-11-24 09:58:24 -06:00
3043be4624 feat: Integrate pedimento codes into the edit form and update data loading 2025-11-18 19:00:13 -06:00
404333f35e Refactor Pedimento data structure and update forms
- Expanded the PedimentoDates, PedimentoPayments, PedimentoTransportMeans, and PedimentoValidation interfaces to include additional fields.
- Updated the dates, payments, transport, and validation tab forms to initialize form data directly from the Pedimento object, removing unnecessary API calls for data loading.
- Enhanced the payload construction in the edit page to conditionally include sub-resources only if they contain values, improving data handling during creation and update operations.
- Adjusted the form bindings to reflect the new structure and ensure proper data flow between the components.
2025-11-18 18:20:04 -06:00
84006e3410 Merge pull request 'feat: Convertir módulo de clases para usar TenantCRUDRoutes' (#20) from classes into development
Reviewed-on: ADUANASOFT/anexo76#20
2025-11-18 22:36:29 +00:00
243fab8bef Merge branch 'feature/pedimentos2' into development 2025-11-18 16:27:57 -06:00
e73309edb6 feat: Add sub-resource interfaces for Pedimento and unify API calls in edit page 2025-11-18 16:20:39 -06:00
KevinMrkz3221
99aff32eea feat: Convertir módulo de clases para usar TenantCRUDRoutes
Cambios en backend:
- Actualizado ClassResponseDTO con campos de tenant y timestamps
- Agregados métodos estáticos en servicio (get_all, get_by_id, create, update, delete)
- Reemplazados endpoints de rutas con inicialización de TenantCRUDRoutes
- Corregida ruta de importación del modelo Company en security.py
- Actualizados nombres de campos en DTO para coincidir con modelo (description_es/en)
- Agregada validación para constraint de foreign key de material_key
- Agregada validación de class_code duplicado en método create
- Agregado TimestampMixin al modelo Class
- Creada migración de Alembic para agregar columnas timestamp a tabla classes
- Corregido orden de parámetros en firma del método update

Cambios en frontend:
- Actualizados componentes de UI para módulo de clases
2025-11-15 20:05:29 -06:00
c100c048fe Merge pull request 'feat: Enhance Pedimentos CRUD operations with related data handling' (#18) from feature/customs-brokers into development
Reviewed-on: ADUANASOFT/anexo76#18
2025-11-15 00:17:50 +00:00
ba40123333 feat: Enhance Pedimentos CRUD operations with related data handling
- Updated PedimentosService to create and update related tables for Pedimentos.
- Added company_id filtering in queries for Pedimentos.
- Improved error handling and logging during creation and update processes.
- Refactored router tags for consistency and clarity.
- Adjusted API endpoints for customs brokers to include company_id in requests.
- Enhanced company selection logic in various components to prioritize active company.
- Implemented event listeners for company changes to reload data dynamically.
- Updated frontend components to handle loading states and errors more effectively.
- Ensured all relevant routes and API calls are aligned with the new company context.
2025-11-14 18:14:33 -06:00
KevinMrkz3221
dd77a80408 Fix: Corregir inserción de tenant y relaciones en PostgreSQL usando formato -c en psql
- Cambiar de heredoc (<<EOF) a formato -c para ejecutar comandos SQL
- Agregar cast explícito 'SHARED'::tenanttype para el campo type del tenant
- Arreglar inserción de company para que se ejecute correctamente
- Arreglar inserción de relación usuario-tenant en table user_tenants
- Mejora en ejecución de comandos PostgreSQL dentro de docker exec

El problema era que los heredocs no interpolaban correctamente las variables
en el contexto de docker exec. Usar -c con sentencias SQL en una línea resuelve
el problema y asegura que los INSERTs se ejecuten correctamente.
2025-11-13 20:18:10 -06:00
aa35635397 feat: Implement customs brokers management interface
- Added a data table for displaying customs brokers with columns for key, name, type, license, RFC, email, phone, city, and actions.
- Created a dialog for adding new customs brokers with a form for inputting necessary details.
- Implemented actions for viewing details and deleting customs brokers with confirmation dialogs.
- Integrated search functionality to find customs brokers by their key.
- Established server-side loading for the customs brokers page to handle authentication and data retrieval.
2025-11-12 16:57:15 -06:00
6225122832 feat: Implement client and provider management dashboard
- Added data table component for displaying clients and providers with infinite scroll functionality.
- Created dropdown actions for each client/provider including copy ID, copy RFC, view details, edit, toggle status, and delete.
- Implemented dialogs for creating, editing, viewing details, and deleting clients/providers.
- Integrated API calls for fetching, creating, editing, deleting, and toggling status of clients/providers.
- Enhanced error handling and loading states for better user experience.
- Updated server-side logic to handle pagination and company selection for client/provider data retrieval.
2025-11-12 16:08:42 -06:00
67a309912c feat: Enhance Pedimentos creation and validation logic in frontend and backend 2025-11-12 10:42:15 -06:00