Commit Graph

1164 Commits

Author SHA1 Message Date
23509cbcc9 Refactor DTO classes to use model_config with ConfigDict for attribute handling
- Updated multiple DTO classes across various modules to replace the `Config` class with `model_config = ConfigDict(from_attributes=True)`.
- This change enhances consistency in attribute handling and aligns with the latest Pydantic practices.
- Adjusted error handling in core modules to change status codes from `HTTP_422_UNPROCESSABLE_ENTITY` to `HTTP_422_UNPROCESSABLE_CONTENT` for improved clarity in validation responses.
2026-03-24 12:06:55 -05:00
d8d7c778c8 Merge pull request 'fix/bug-catalog-envoices-select' (#239) from fix/bug-catalog-envoices-select into development
Reviewed-on: ADUANASOFT/anexo76#239
2026-03-24 16:27:28 +00:00
5b2962d53b fix/bug-catalog-envoices-select-per-type 2026-03-24 09:32:49 -06:00
58222e9ca9 fix/pedimentos-edit-datos-borrados 2026-03-24 09:16:05 -06:00
ee88a5c5ac Merge pull request 'feature/csv-pruebas' (#238) from feature/csv-pruebas into development
Reviewed-on: ADUANASOFT/anexo76#238
2026-03-24 14:18:11 +00:00
2144ef572f fix/borrar-lineas-migracion 2026-03-24 08:16:55 -06:00
0c090c0b1f Merge branch 'development' into feature/csv-pruebas 2026-03-24 08:08:32 -06:00
79b2506af4 feature/fix-invoices-csv 2026-03-24 08:06:48 -06:00
396c40b2fb Merge pull request 'feature/invoice-def' (#237) from feature/invoice-def into development
Reviewed-on: ADUANASOFT/anexo76#237
2026-03-23 16:42:58 +00:00
d69dd23bcd Enhance invoice processing logic for IMD and Mexican purchases
- Updated validation logic to restrict 'IMD' document type usage unless the invoice type is 'DEF'.
- Refactored value assignment in the main processing flow to handle 'DEF' and 'MEX' invoice types with specific IVA calculations.
- Added logging for invoice processing to improve traceability and debugging.

These changes improve the accuracy of invoice validations and processing for specific document types.
2026-03-23 11:42:35 -05:00
e549a84459 Remove legacy MovementService class and associated methods from services_old.py
- Deleted the MovementService class, which handled movement operations for temporary imports, including methods for building query clauses and calculating exchange rates.
- This removal streamlines the codebase by eliminating unused legacy code, improving maintainability and clarity in the invoice processing logic.
2026-03-23 09:48:41 -05: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
9cfc8b3215 feature/carga-csv-db-expo-data-to-platform 2026-03-20 15:04:28 -06:00
ebd555363f Merge pull request 'Refactor date handling in DashboardService for invoice queries' (#235) from fix/tendency into development
Reviewed-on: ADUANASOFT/anexo76#235
2026-03-20 16:53:12 +00:00
a8d548d91e Refactor date handling in DashboardService for invoice queries
- Updated the date calculations in the DashboardService to use the `invoice_date` field instead of `created_at` for querying previous totals and monthly data.
- Changed the date variables to return only the date part, improving clarity and consistency in date handling.

These changes enhance the accuracy of invoice data retrieval in the dashboard service.
2026-03-20 11:52:47 -05:00
06eb461181 Merge pull request 'Refactor invoice processing logic to remove legacy returned quantity fields and enhance data handling' (#234) from feature/revert-exports into development
Reviewed-on: ADUANASOFT/anexo76#234
2026-03-20 16:42:56 +00: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
9e30dede1c checkpoint 2026-03-20 09:49:46 -06:00
a2ad6d782d Merge pull request 'Correcion para restarle cantidad a la version mas actualiazda de la factrua de importacion' (#233) from fix/saldos_temporales into development
Reviewed-on: ADUANASOFT/anexo76#233
2026-03-19 22:36:51 +00:00
98175fcee6 Merge pull request 'Enhance invoice processing and validation logic' (#232) from fix/items into development
Reviewed-on: ADUANASOFT/anexo76#232
2026-03-19 22:36:12 +00:00
0d3b29ef00 Correcion para restarle cantidad a la version mas actualiazda de la factrua de importacion 2026-03-19 15:58:14 -05:00
cf56ca3a68 Enhance invoice processing and validation logic
- Updated `InvoiceService` to accurately reflect the number of line items in `party_count` for invoices.
- Modified weight calculations in the create and update validators to ensure consistent handling of weight types, now using lowercase comparison for "KGS".
- Adjusted invoice data structure in the frontend to include `total_items` and refined logistics handling.
- Improved table rendering in the invoice edit component for better sticky header behavior and item visibility.

These changes aim to improve data integrity and user experience in invoice management.
2026-03-19 14:22:21 -05:00
264188e112 Merge pull request 'se arreglo los furmularios de partes' (#231) from fix/partes into development
Reviewed-on: ADUANASOFT/anexo76#231
2026-03-19 18:42:32 +00:00
37920aa303 se arreglo los furmularios de partes 2026-03-19 12:49:16 -05:00
42c12b4e44 Merge pull request 'feature/saldos_temporales_nueva_tabla' (#230) from feature/saldos_temporales_nueva_tabla into development
Reviewed-on: ADUANASOFT/anexo76#230
2026-03-19 16:21:18 +00:00
60164605eb Merge branch 'development' of https://git.aduanasoft.com/ADUANASOFT/anexo76 into feature/saldos_temporales_nueva_tabla 2026-03-19 10:43:01 -05:00
88dda834cb Refactorizacion de la tabla balances_movement para la generacion de reportes CSV de saldos emporales 2026-03-19 10:41:27 -05:00
e570fd5b2e Merge pull request 'feature/csv-pruebas' (#229) from feature/csv-pruebas into development
Reviewed-on: ADUANASOFT/anexo76#229
2026-03-18 22:13:00 +00:00
c3436b1abc Merge pull request 'feature/migrations' (#228) from feature/migrations into development
Reviewed-on: ADUANASOFT/anexo76#228
2026-03-18 22:04:19 +00:00
3f16378ed0 feature/fix-invoice-status 2026-03-18 15:49:47 -06: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
55aa10579f Refactor main.py to streamline imports and enhance FastAPI setup. Introduced UserContextMiddleware for audit logging and added a new register.py file for audit log listener registration, consolidating core and reference data models. 2026-03-18 16:40:03 -05:00
6e5c904e6c Implement Carta Porte Codes module with CSV data seeding and API routes. Updated router to include new routes and adjusted tags for clarity. Added DTO, model, and seed functionality for Carta Porte data management. 2026-03-18 16:39:55 -05:00
4b4bb9e8a7 feature/csv-pruebas 2026-03-18 15:33:40 -06:00
684bc25388 Merge pull request 'feature/partidas-impo-bug-fix' (#227) from feature/partidas-impo-bug-fix into development
Reviewed-on: ADUANASOFT/anexo76#227
2026-03-18 21:07:44 +00:00
cf080834ba Merge pull request 'feature/tablas_nuevas_partes_2' (#226) from feature/tablas_nuevas_partes_2 into development
Reviewed-on: ADUANASOFT/anexo76#226
2026-03-18 21:07:19 +00:00
97bc407531 feature/partidas-impo-bug-fix 2026-03-18 14:44:45 -06:00
4df61404de Se quito la relacion de las tablas de aphis de partes, se mejoro un poquito el frontend, se homogelizaron el disenio de los catalogos y mejoras visuales 2026-03-18 15:41:54 -05:00
5e0edfa489 Merge pull request 'feature/catalogo-equivalencias' (#225) from feature/catalogo-equivalencias into development
Reviewed-on: ADUANASOFT/anexo76#225
2026-03-18 20:34:35 +00:00
c96685116b merge/development 2026-03-18 13:33:18 -06:00
0a68454593 6feature/fix-en-base-a-scaii 2026-03-18 13:22:45 -06:00
bd18b5d5e0 Merge pull request 'feature/catalog-importation' (#223) from feature/catalog-importation into development
Reviewed-on: ADUANASOFT/anexo76#223
2026-03-18 18:40:45 +00:00
cc8a3582ba Merge branch 'development' into feature/catalog-importation 2026-03-18 13:40:33 -05:00
6741a85abc Se habia perdido el boton de extenioes pero ya lo encontre 2026-03-18 12:39:16 -05:00
fc3c636ede Merge pull request 'feature/tablas_nuevas_partes' (#222) from feature/tablas_nuevas_partes into development
Reviewed-on: ADUANASOFT/anexo76#222
2026-03-18 17:04:10 +00: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
8b9537b5a9 feature/catalogo-equivalencias 2026-03-18 09:40:52 -06:00
b44b8e77ad Merge pull request 'feature/catalogo-conversiones' (#221) from feature/catalogo-conversiones into development
Reviewed-on: ADUANASOFT/anexo76#221
2026-03-18 14:59:43 +00:00
d37d6ef699 feature/catalog-importation 2026-03-18 08:28:20 -06:00