Commit Graph

78 Commits

Author SHA1 Message Date
f225731625 feat: increase character limit for who_processed and capture_user fields in InvoiceHeader to 100 2026-04-30 09:22:44 -05:00
07ba33a4d9 feature/doda-endpoints-faltantes 2026-04-28 14:53:08 -06:00
52ad58aceb feature/cliente-asignado-partes 2026-04-28 12:01:50 -06:00
c8e45f5ce2 chore: resolve second wave of merge conflicts, integrate new DODA despacho module and stabilize catalogues 2026-04-27 13:43:51 -05:00
8374975a30 chore: resolve remaining merge conflicts in data-table-actions components 2026-04-27 13:39:04 -05:00
4d873f392e fix/alembic-duration-cert-delete 2026-04-27 10:31:33 -06:00
5c2a84e95d fix: solución de bloqueos y estandarización de permisos 2026-04-27 10:47:30 -05:00
9d232998d6 feature/api-doda 2026-04-26 18:13:20 -06:00
d78d8f3599 Merge branch 'fix/empresa-cert-duracion' into feature/api-doda 2026-04-26 08:36:55 -06:00
855afe6670 fix/empresa-cert-duracion 2026-04-26 08:24:57 -06:00
73a6d92863 Implement row-level security (RLS) context management for database sessions. Refactor invoice processing and reverting tasks to utilize scoped database sessions with RLS context. Update middleware to extract and set company ID from requests. Enhance task dispatching to propagate RLS context via Celery headers. Update architecture documentation to reflect RLS implementation details. 2026-04-24 18:01:46 -05:00
a9523853c9 Merge pull request 'feature/carril-expres-transportes' (#315) from feature/carril-expres-transportes into development
Reviewed-on: ADUANASOFT/anexo76#315
2026-04-24 21:49:44 +00:00
9d63b000bc Refactor Docker entrypoints and remove unused scripts
- Removed custom entrypoint scripts for backend, frontend, and PostgreSQL services from docker-compose files.
- Added a new entrypoint script in the backend and frontend Dockerfiles to handle initialization without relying on host-mounted scripts.
- Updated Dockerfiles to ensure proper permissions for the new entrypoint scripts.
- Enhanced database initialization logic by moving schema and extension creation to the Alembic migration script.
2026-04-24 12:53:11 -05:00
38d10e6f51 feature/carril-expres-transportes 2026-04-24 09:18:41 -06:00
29c305cd2c feaature/catalogo-empresa-mejoras 2026-04-23 14:28:56 -06:00
ff1ff30e23 fix/conceptos-catalogo-general 2026-04-22 07:44:07 -06:00
1cd81ebc03 feature/digitalizacion-api 2026-04-20 15:13:48 -06:00
129608bb31 feature/digitalizacion-api 2026-04-17 15:59:47 -06:00
db46237a3e Poniendo como ultima actulaizacion nuestra migracion 2026-04-07 16:43:13 -05:00
a6e0a04451 Mezlca de migraciones mas recientes 2026-04-07 16:13:01 -05:00
9439a6a775 feature/minio-s3-integration 2026-04-02 13:35:18 -06:00
4541629b3f Parametros generales SCAII, con endpint y con la mayoria de pestanias hechas y funcionalaes 2026-03-30 13:05:21 -05:00
b477233245 feature/migraciones-id-transportes 2026-03-27 09:32:59 -06:00
309835be8c Enhance SQLAlchemy URL validation in Alembic environment
- Added a new function to reject documentation placeholder hosts in database URLs, improving error handling for misconfigurations.
- Updated the `get_database_url` function to incorporate this new validation, ensuring that users are alerted when using "host" as a placeholder.
- Enhanced error messages to provide clearer guidance on valid host configurations.

These changes aim to improve the robustness and clarity of database connection handling in the application.
2026-03-24 15:41:47 -05:00
2cd6b165d7 Enhance database URL validation in Alembic environment
- Introduced a new validation function for SQLAlchemy URLs to ensure proper formatting and provide clearer error messages.
- Updated the `get_database_url` function to include checks for both `TEST_DATABASE_URL` and `DATABASE_URL`, improving flexibility in configuration.
- Removed the previous URL scheme validation in favor of the new validation method, streamlining the error handling process.

These changes aim to improve the robustness and clarity of database connection handling in the application.
2026-03-24 15:39:53 -05:00
a3ba317d2c Enhance database URL handling in Alembic environment
- Added a new helper function to strip unwanted characters from environment variable URLs, improving the normalization process.
- Updated the `get_database_url` function to validate the database URL scheme and provide clearer error messages for misconfigurations.
- Expanded the environment variable checks to include `DATABASE_URL`, enhancing flexibility for different deployment scenarios.

These changes aim to improve the robustness and clarity of database connection handling in the application.
2026-03-24 15:32:49 -05:00
4b2a3da611 Refactor database URL handling in Alembic environment
- Introduced a new function to normalize database URLs for Alembic, ensuring compatibility with different PostgreSQL drivers.
- Updated the `get_database_url` function to prioritize the use of the `TEST_DATABASE_URL` environment variable for CI and testing scenarios.
- Enhanced error messaging to clarify configuration requirements for database connections.

This change aims to improve the flexibility and reliability of database connections in the testing environment.
2026-03-24 15:28:41 -05:00
3d1c73565f fix/un-alembic 2026-03-24 13:15:15 -06:00
b5b99a5ddb feature/tabla-bitacora-logs-task 2026-03-24 13:07:35 -06:00
fbb24f2cd3 Refactor invoice financials to change iva_factor type from string to numeric
- Updated the `iva_factor` field in the `InvoiceFinancials` model to use a numeric type with precision and scale.
- Adjusted related frontend components and API interfaces to reflect the new numeric type for `iva_factor`.
- Enhanced Alembic migration scripts to accommodate the schema changes, ensuring proper index management and data type conversions.

These changes improve data integrity and consistency for financial calculations in invoices.
2026-03-23 09:48:33 -05:00
54c137c156 Refactor invoice processing logic to remove legacy returned quantity fields and enhance data handling
- Updated invoice processing functions to eliminate legacy fields related to returned quantities, now relying on new balance movement and discharge records.
- Adjusted various components and services to reflect changes in quantity handling, including updates to the frontend for displaying used quantities instead of returned ones.
- Improved the logic for invoice total updates and validation processes to ensure consistency with the new data structure.

These changes aim to streamline invoice management and improve data integrity across the application.
2026-03-20 11:42:18 -05:00
37920aa303 se arreglo los furmularios de partes 2026-03-19 12:49:16 -05:00
03f2213729 Update seed_initial_data.py to correct imports and adjust revision identifiers. Replaced sectors seed import with carta_porte_codes seed and updated down_revision and depends_on to reflect the latest migration state. 2026-03-18 16:43:19 -05:00
b0cf46104b Merge branch 'development' of https://git.aduanasoft.com/ADUANASOFT/anexo76 into feature/tablas_nuevas_partes 2026-03-18 11:03:26 -05:00
546b1ea56f Nuevo formulario de extension para partes SCAI con nuevas tablas de aphis con catalogos fijos nuevos 2026-03-18 10:50:36 -05:00
5265ec6849 Merge pull request 'feature/catalogo-pedimento' (#219) from feature/catalogo-pedimento into development
Reviewed-on: ADUANASOFT/anexo76#219
2026-03-18 03:53:00 +00:00
3983c9e4b3 feature/catalogo-pedimento 2026-03-17 16:35:27 -06:00
hreyes
fbbe4370de feature/refactorizacion-tabla-sector 2026-03-17 11:21:28 -06:00
AlexeerCT
a4cf394447 Update Docker Compose files for production environment and enhance unit of measure handling
- Changed the default environment variable from 'development' to 'production' in docker-compose.prod.yml and docker-compose.yml.
- Added SITAR API credentials to the environment variables in both Docker Compose files.
- Updated the seed data for customs units of measure to include a76_unit_code.
- Refactored the UnitOfMeasureCustoms model and related DTOs to replace scaii_unit_code with a76_unit_code for consistency.
- Adjusted frontend components to reflect the updated unit of measure structure and ensure proper handling of the new a76_unit_code field.
2026-03-15 20:52:01 -06:00
5bbb4ac9b9 feat: Relocate units of measure and historical tariff fractions seeding to company creation and add Celery schedule files to gitignore. 2026-03-03 08:55:42 -07:00
ccb643426d Merge pull request 'feat: Implement Ventanilla Única (VU) management for customs brokers, including API, UI, and data model updates, and add a new state selection dialog.' (#161) from feature/broker-catalogue into development
Reviewed-on: ADUANASOFT/anexo76#161
2026-02-24 21:40:32 +00:00
Galindo97
a52602dedf feat: Implement Ventanilla Única (VU) management for customs brokers, including API, UI, and data model updates, and add a new state selection dialog. 2026-02-24 14:24:50 -06:00
0db22686b9 feat: add calculations module for item financials processing 2026-02-23 14:05:13 -06:00
e1ce41f9f9 feat: update default system value in AuditLog model for consistency 2026-02-19 17:51:50 -06:00
dc37f458f5 Merge remote-tracking branch 'origin/development' into feature/fraction-catalogs 2026-02-19 17:22:37 -06:00
Galindo97
2a0480a7f3 feat: Add general catalogs for historical, Canadian, US, and SITAR tariff fractions and sectors with full stack implementation. 2026-02-17 10:22:54 -06:00
fe90702563 feat: add historical tariff fractions functionality
- Implemented new endpoints for managing historical tariff fractions, including listing and fetching rates based on invoice details.
- Created DTOs for historical tariff fractions to standardize data transfer.
- Added service layer to handle business logic for historical tariff fractions.
- Updated frontend components to integrate historical tariff fractions, including fetching rates based on user input.
- Enhanced existing data models and routes to accommodate new functionality.
2026-02-16 18:12:13 -06:00
b2299e9efc feat: add historical tariff fractions seeding and update model schema 2026-02-11 12:47:00 -06:00
9dcbfdb978 Refactor import paths for TariffFraction and USTariffFraction models
- Updated import statements for TariffFraction to reflect new module structure in reports related to importacion (mex, temporary, facturas).
- Adjusted import paths for USTariffFraction in service files to maintain consistency across modules.
2026-02-09 10:48:31 -06:00
Galindo97
9120568f10 feat(seed): add tariff fractions seed data to initial migration 2026-01-21 15:44:03 -06:00