Commit Graph

50 Commits

Author SHA1 Message Date
ee9ac4f64f feature/alembic-daf 2026-05-12 09:00:32 -06:00
9152750a9f feature/bitacora-correccion-por-tenant 2026-05-07 07:52:31 -06:00
9435e73761 feature/permisos-desabilitar-botones 2026-05-05 12:12:17 -06:00
a1561d3796 feature/permisos-pedimentos 2026-05-04 15:43:34 -06:00
5c2a84e95d fix: solución de bloqueos y estandarización de permisos 2026-04-27 10:47:30 -05:00
84ba0fdb19 Merge branch 'development' of https://git.aduanasoft.com/ADUANASOFT/anexo76 into feature/tareas_TODO_configuracion 2026-04-14 10:40:41 -05:00
e5fa5f0326 TODOS de configuracion general lista 2026-04-13 18:02:39 -05:00
55821e69e5 feature/upgrade-styles-pediment 2026-04-08 07:16:59 -06:00
d93c4c6b7b Mecanismo sort para tablas 2026-03-27 08:45:51 -05:00
3983c9e4b3 feature/catalogo-pedimento 2026-03-17 16:35:27 -06:00
ac8c45ec18 Merge branch 'development' of https://git.aduanasoft.com/ADUANASOFT/anexo76 into feature/saldos_temporales 2026-03-06 16:10:30 -06:00
be3150b53c genracion de reportes por saldos temporales 2026-03-06 16:09:45 -06:00
hreyes
1f391aa4a6 feature/pedimentos-csv-validations 2026-03-05 10:15:15 -07:00
hreyes
4c781b460a feature/layouts-csv-refact 2026-03-03 16:45:12 -07:00
hreyes
9473c05602 feature/csv-pedimento 2026-03-02 10:03:45 -07:00
Galindo97
72db67e161 feat: Introduce customs office and transport means fields to pedimento data models and forms. 2026-02-25 11:41:35 -06:00
Galindo97
899a5c4d58 fix(pedimentos): various fixes and improvements for pedimento processing and reports 2026-02-25 09:16:42 -06:00
e05e50f2b8 refactor: enhance invoice mapping functions and integrate PedimentosResponse DTO in catalog service 2026-02-13 16:26:06 -06:00
Galindo97
ab5181f803 feat: Implement consolidated catalog services and endpoints for pedimento and invoice creation/edition. 2026-02-12 13:35:48 -06:00
Galindo97
18559025b1 fix(pedimentos): standardize ID naming convention and enhance row selection functionality in data table 2026-01-21 17:32:37 -06:00
AlexeerCT
181648d0cb Merge branch 'feature/invoices' into development 2026-01-08 16:57:13 -06:00
AlexeerCT
10f50a6c46 Merge branch 'feature/pedimentos' into development 2026-01-08 16:43:34 -06:00
AlexeerCT
182f472370 feat: enhance pedimento date validation and update date handling in forms 2026-01-07 16:50:20 -06:00
AlexeerCT
d83c289276 feat: update pedimento operation type to use string values and enhance validation logic 2026-01-07 12:30:58 -06:00
Galindo97
545ff8d278 feat: enhance Pedimentos schema and service to include additional fields for packages, transport carriers, guides, contributions, seals, and containers 2026-01-05 08:44:02 -06:00
Galindo97
97a318fdba feat: update invoice and item tabs to use 'Datos Soriana' instead of 'Datos Sonana'
refactor: enhance package transportation tab to prevent infinite loops and load data only once

fix: include credentials in fetch request for company data

feat: implement loading of additional pedimento data in edit page, including contributions, packages, transport carriers, guides, seals, and containers

add: create DTOs and models for pedimento contributions, packages, transport carriers, guides, seals, and containers
2026-01-02 18:04:28 -06:00
Galindo97
0b4c385aeb feat: Implement Document Types for Digitization module
- Added backend API for managing document types related to digitization, including CRUD operations.
- Created DTOs and models for DocumentTypeDigitization with validation using Pydantic.
- Updated frontend API service to interact with the new document types API.
- Refactored existing forms in the frontend to load and manage document types effectively.
- Enhanced data loading and state management in various components related to pedimentos.
2026-01-02 14:16:09 -06:00
AlexeerCT
104014d0fa feat: Update API endpoints to ensure trailing slashes and adjust data types in models 2026-01-02 13:35:01 -06:00
Galindo97
276b4660b1 Refactor DTOs and Svelte components to use boolean flags instead of integers for various configurations; update form handling to ensure proper state management and data binding across components. 2025-12-31 08:12:36 -06:00
Galindo97
150efdfd99 pedimentos UI 2025-12-23 14:15:05 -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
dc0fac9b3e feat: Implement general catalogs for ports, unit conversions, and units of measure
- Added models, DTOs, services, and routes for ports, including CRUD operations.
- Introduced unit conversions with corresponding models, DTOs, services, and routes.
- Developed units of measure with detailed models, DTOs, services, and routes for various types.
- Ensured all new features are integrated with FastAPI and SQLAlchemy for seamless database interactions.
2025-12-08 10:13:02 -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
cdc3788a05 feat: update company API endpoint, refine pedimento dates model, and adjust Keycloak mapper creation 2025-11-24 09:58:24 -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
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
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
962f43fe62 Refactor and enhance CRUD operations for Seal, Trailer, Transporter, Vehicle, and Customs Broker modules
- Updated SealService to support tenant and company filtering with pagination and enhanced CRUD methods.
- Refactored TrailerService to include tenant and company support, added filtering capabilities, and improved CRUD methods.
- Introduced TenantCRUDRoutes for Trailer and Transporter routes to streamline API endpoint creation and management.
- Enhanced TransporterService with tenant and company filtering, pagination, and improved CRUD operations.
- Added Customs Broker module with DTOs, models, services, and routes for managing customs broker data.
- Implemented CRUD operations for Customs Broker, including personnel and VU management.
- Improved data validation and descriptions in DTOs for better API documentation.
2025-11-11 18:20:39 -06:00
b68c4316ff Refactor backend and frontend code for improved structure and functionality
- Rearranged imports in multiple files for consistency and clarity.
- Updated logging middleware to exclude specific paths from logging.
- Enhanced security module by cleaning up token handling and improving tenant validation.
- Added tenant and company scoped mixins for better database model management.
- Implemented generic CRUD routes for tenant-scoped resources.
- Improved error handling and response management in API routes.
- Cleaned up login and logout processes to ensure proper session management.
- Introduced mechanisms to clear local storage and cookies on tenant change.
- Enhanced company store to detect tenant changes and clear data accordingly.
- Added new DTO mixins for currency and value affect flags.
2025-11-11 17:20:47 -06:00
52b8fcd434 feat: Implement multi-tenancy support in middleware and security layers
- Enhanced TenantMiddleware to validate tenant information from JWT tokens.
- Added LicenseValidationMiddleware to check tenant licenses before processing requests.
- Updated security utilities to extract tenant information from tokens and validate company access.
- Introduced CompanyStore to manage active company state and handle company switching in the frontend.
- Modified API routes to include company_id in requests for better resource management.
- Improved logging and error handling throughout the middleware and API layers.
- Updated frontend components to reflect changes in company management and selection.
- Added new API route for fetching user's companies with proper authentication handling.
2025-11-11 14:15:31 -06:00
9b01632fde Refactor pedimento routes to use company_id instead of tenant_id
- Updated all route files to replace tenant_id with company_id.
- Introduced validate_company_access function to check user access to the specified company.
- Modified service methods to accept company_id as a parameter.
- Adjusted query parameters in route definitions to include company_id.
- Ensured all CRUD operations in pedimento routes validate access based on company_id.
- Added a script to automate the update process for route files.
2025-11-08 10:21:17 -06:00
e0e38526b0 Refactor database models to include company_id and update unique constraints
- Updated PermissionRuleOct model to include company_id and modified unique constraint.
- Updated Seal model to include company_id and modified unique constraint.
- Added TYPE_CHECKING imports in reference data models for better type hinting.
- Created new models for QClasses and SClasses in the a24 module.
- Enhanced init_first_time.sh script for comprehensive system initialization, including Keycloak and PostgreSQL setup.
- Updated documentation to reflect changes in API endpoints and database relationships.
2025-11-07 18:47:41 -06:00
e1274abf2a Merge pull request 'feature/pedimentos' (#11) from feature/pedimentos into development
Reviewed-on: ADUANASOFT/anexo76#11
2025-11-07 21:27:40 +00:00
6d42b0976c feat: Enhance Pedimentos schemas with required fields and operation type enumeration 2025-11-07 15:26:31 -06:00
6e59eee82e refactor: Update foreign key constraints and primary key definitions in ORM models 2025-11-07 12:55:04 -06:00
ef3924a41d Refactor models and services in A76 module
- Updated GBultoService to use models.Package instead of models.GBulto.
- Refactored Part model to use SQLAlchemy 2.0 style with Mapped and mapped_column.
- Added timestamps (created_at, updated_at, deleted_at) to various pedimento models.
- Improved relationships and foreign key constraints in pedimento models.
- Updated PermissionRuleOct and Seal models to use Mapped and mapped_column.
- Changed DTO configuration from orm_mode to from_attributes for better compatibility.
- Removed obsolete models (models.py and models_ped.py) from the repository.
2025-11-07 12:17:26 -06:00
29f637a5ee Refactor pedimento-related interfaces and forms to standardize date and payment fields
- Updated `PedimentoDates`, `PedimentoPayments`, `PedimentoTransportMeans`, and `PedimentoValidation` interfaces to include new fields and rename existing ones for consistency.
- Modified forms in Svelte components to reflect the updated interfaces, including new input fields for various dates and payment details.
- Enhanced status handling in the dashboard to accommodate new status options and improve user feedback.
- Implemented token validation on the server-side to ensure secure access to the dashboard.
- Cleaned up login logic to prevent redirection loops when tokens are present but potentially expired.
2025-11-07 10:08:55 -06:00
e6d7d23328 feat: Add payments, transport, and validation tabs for pedimento editing
- Implemented PaymentsTabForm component for managing payment information.
- Implemented TransportTabForm component for managing transport details.
- Implemented ValidationTabForm component for managing validation documents.
- Enhanced the main edit page to include new tabs and handle data saving for each section.
- Added alert components for success and error messages during save operations.
- Updated server-side logic to handle fetching and saving of pedimento data.
2025-11-07 00:02:35 -06:00
07dfe1edb1 Add service layers and models for Pedimento CRUD operations
- Implemented service classes for PedimentoConfigParameters, PedimentoConfigSurcharges, PedimentoConfigUpdateRectification, PedimentoConfigUpdates, PedimentoCustomsOffices, PedimentoDates, PedimentoDecrementables, PedimentoIncrementables, PedimentoIndexes, PedimentoPayments, PedimentoRectificationDestination, PedimentoRectificationOrigin, PedimentoTransportMeans, and PedimentoValidation.
- Each service class includes methods for CRUD operations: create, read, update, and delete.
- Added a main router for the API v1, integrating various modules including authentication, tenants, licenses, and pedimentos.
- Created models for PedimentoValidation with appropriate constraints and relationships.
2025-11-06 17:16:29 -06:00