Commit Graph

81 Commits

Author SHA1 Message Date
356ea99b04 Merge branch 'feature/errores-legibles-tabla' into development 2026-04-28 09:49:41 -05:00
4f31736a40 feature/errores-legibles-tabla 2026-04-28 07:24:52 -06:00
8374975a30 chore: resolve remaining merge conflicts in data-table-actions components 2026-04-27 13:39:04 -05:00
3c40a48cb7 feature/api-sitar-frac-ame 2026-04-24 09:58:22 -06:00
39fdfca917 fix/partida-campos-obligatorios 2026-04-17 10:22:08 -06:00
5e6ee5d4d1 Funciones y logia de exportacion, como mejoras CRUD en las partes de exportacion 2026-04-16 11:30:40 -05:00
5167d8bc9e validaciones flatantes y pruebas 2026-04-14 10:40:15 -05:00
e5fa5f0326 TODOS de configuracion general lista 2026-04-13 18:02:39 -05:00
309a26bf8f Refactor sort_order parameter in tenant and invoice routes to use 'pattern' instead of 'regex' for validation. This change enhances consistency across the API query parameters. 2026-04-02 08:36:16 -05:00
d93c4c6b7b Mecanismo sort para tablas 2026-03-27 08:45:51 -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
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
97bc407531 feature/partidas-impo-bug-fix 2026-03-18 14:44:45 -06: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
2a861e480c Enhance invoice and item processing with balance tracking features
- Added `company_id` to `ClientProviderAddress` and `ClientProviderPrograms` for better association.
- Updated `_process_with_discharge` to simplify invoice review by removing redundant parameters.
- Improved `pre_validators` to ensure address validation checks for existence before accessing country.
- Enhanced balance comparison logic in `compare_balances` by tracking consumed quantities.
- Modified `fill_available_balances` to reflect invoice status changes from 'UNPROCESSED' to 'PENDING'.
- Introduced `get_lines_with_balance` method in `ItemService` to fetch invoice lines with available balance.
- Added new API endpoint to retrieve import invoice lines with balance information.
- Updated frontend components to display available balances and improve user experience in invoice selection.
2026-03-18 00:55:17 -05:00
10a37a1102 Merge branch 'development' into feature/item_por_tipo_factura 2026-03-17 22:50:56 -05:00
35c7584656 Merge branch 'main' into development 2026-03-17 22:48:18 -05:00
196525c684 Enhance invoice processing to support export and import differentiation
- Updated the invoice processing route to automatically detect and handle invoice types based on the operation_type.
- Introduced error handling for non-existent invoices, returning a 404 status when an invoice is not found.
- Added a new field 'serie_row' in the Serie model to accommodate additional data for export scenarios.
2026-03-17 22:43:53 -05:00
73462fcec3 Add ENTRY_VOID movement type and integrate balance entry creation in invoice processing
- Introduced a new movement type 'ENTRY_VOID' to handle invoice reversals, ensuring net balance remains zero.
- Updated the FaLineItem DTOs to replace 'download' with 'discharge' for consistency.
- Implemented balance entry creation in the invoice processing and reverting workflows, enhancing inventory management.
- Adjusted progress tracking messages to reflect the new balance entry generation steps.
2026-03-17 19:46:09 -05:00
3eacbf18f2 Refactor 'download' field to 'discharge' across models and services
- Renamed the 'download' field to 'discharge' in the FaLineItem model and updated related services and schemas accordingly.
- Adjusted frontend components to reflect the new 'discharge' terminology.
- Ensured consistency in filtering and validation logic across the application to use the updated field name.
2026-03-17 16:25:23 -05:00
hreyes
fbbe4370de feature/refactorizacion-tabla-sector 2026-03-17 11:21:28 -06:00
dada17b54c Partidas por tipo de factura en importacion 2026-03-13 17:38:30 -05:00
795786a043 Update depreciation_date field type to Date in LineItem model
- Changed the type of the depreciation_date field from Integer to Date in the LineItem model to enhance date accuracy and compliance with SQLAlchemy v2 standards.
2026-03-13 13:37:00 -05:00
a74e1d746c Update depreciation_date field type in models and schemas
- Changed the type of the depreciation_date field from Optional[int] to Optional[datetime] in the LineItem model and LineItemBase schema for improved accuracy in date representation.
- Updated the frontend interface to reflect the change, altering depreciation_date from number to string to accommodate the new datetime format.
2026-03-13 13:32:47 -05:00
00b538f896 Update subitem_number assignment in calculations.py
- Changed the assignment of subitem_number from None to 0 in the apply_calculations_after_values function to ensure consistent initialization of subitem data during calculations.
2026-03-13 13:26:44 -05:00
5522fbb0b9 Refactor invoice status handling to use 'processed' terminology
- Renamed instances of 'invoice_updated' to 'invoice_processed' across various modules to improve clarity and consistency in invoice status management.
- Updated validation and processing logic to reflect the new terminology, ensuring that all references are aligned with the recent changes in the invoice processing model.
- Adjusted related functions and validation checks to maintain functionality and accuracy in invoice processing workflows.
2026-03-13 12:44:07 -05:00
hreyes
e1d4ef4a68 feature/correccion-de-carga-csv-falta-de-datos-fk 2026-03-12 11:41:11 -06:00
0416264fe9 Merge pull request 'feature/items-validations' (#199) from feature/items-validations into development
Reviewed-on: ADUANASOFT/anexo76#199
2026-03-11 16:10:31 +00:00
hreyes
003d0d54d3 feature/pestana-series-en-partidas 2026-03-11 09:52:15 -06:00
c1a9ee789b feat(validators): Add apply_calculations to common validation for items 2026-03-10 14:11:51 -05:00
cef283c6a9 feat(validators): Implement common, create, and update validators for line items
- Added `common.py` to handle shared validation logic for line items, including checks for invoice existence, class validity, and customs data.
- Introduced `create.py` for validating new line items, ensuring required fields are present and calculating costs based on currency type.
- Created `update.py` to manage partial updates of line items, maintaining existing values when new data is not provided.
- Enhanced error handling with specific messages and solutions for various validation failures.
2026-03-10 14:09:32 -05:00
2f5972bf74 Refactor item validation and calculation logic
- Moved validation functions for creating and updating line items to dedicated modules.
- Introduced new calculations module for handling financial calculations related to line items.
- Updated import paths for validation functions to reflect new structure.
2026-03-10 12:21:55 -05:00
c834ee7156 Merge branch 'development' into feature/items-calculations 2026-02-24 14:20:53 -06:00
Galindo97
3898d3a1e0 feat: Enhance fixed asset class management with new fields, refactor forms, and update invoice-related services. 2026-02-24 08:17:38 -06:00
0db22686b9 feat: add calculations module for item financials processing 2026-02-23 14:05:13 -06:00
af93ad9d8a feat: simplify relationship definitions for FaLineItem in ORM models 2026-02-19 10:35:04 -06:00
d4b52b32ed feat: enhance audit log functionality with tenant_id handling and optional seed data in initialization script 2026-02-18 12:58:11 -06:00
bbd0b7ad90 feat: update item response schema and refactor item creation logic for improved payload structure 2026-02-18 11:27:11 -06:00
b94d0ac7fb refactor: restructure item interfaces and update related components
- Renamed LineItem interface to Item and adjusted properties accordingly.
- Updated CreateItemData and UpdateItemData interfaces to reflect new structure.
- Modified components to use the new Item interface, removing nested lines.
- Adjusted data binding in item configuration, main data, and other related components.
- Simplified item creation and editing logic by removing unnecessary nesting.
- Ensured all references to line items are updated to reflect the new structure.
2026-02-18 09:56:50 -06:00
9e37340dd5 feat: implement package and payment method dialogs with API integration 2026-02-16 11:52:34 -06:00
5ca98ad0bc fix: correct logic for handling remesa and package quantity validation in invoice updates 2026-02-16 09:49:23 -06:00
794d6d1781 refactor: streamline item validation functions and enhance number formatting in summary section 2026-02-13 15:49:54 -06:00
287a194910 Merge branch 'development' into feature/items-validation 2026-02-12 17:04:13 -06:00
c011d7ad65 feat: enhance invoice and item validation by adding new checks and updating schemas 2026-02-12 17:00:12 -06:00
f8c38d998d feat: enhance item creation validation by adding checks for subitem existence and required fields 2026-02-11 17:03:25 -06:00
db85b91549 feat: enhance item validation by adding checks for valuation method and part number existence 2026-02-11 14:30:10 -06:00
ef4f3cdeac feat: implement historical fraction search logic and integrate with fraction preference search 2026-02-11 12:49:17 -06:00
4dd8cf16fb Merge branch 'feature/descargo_peps' into development
Integración de funcionalidad de Descargo PEPS con reportes de Packing List y Aviso Consolidado:

- Frontend: Agregados imports de dischargeReportsApi y ClipboardList
- Frontend: Agregada función handleDownloadDescargo con cálculo PEPS
- Frontend: Agregado botón condicional de Descargo PEPS (solo exportaciones)
- Frontend: Integradas funciones de Aviso Consolidado y Packing List
- Backend: Agregados routers y tasks de descargo y otros reportes
- Backend: Configurado Celery con todas las tareas de reportes
- Backend: Corregido ForeignKey en line_quantities.package_id
- Resueltos conflictos manteniendo funcionalidades de ambas ramas
2026-02-09 11:20:44 -06:00
8790321fe7 feat: enhance search_fraction_preference with additional API integrations for TLCS, ALADI, and PROSEC 2026-02-09 10:48:40 -06:00