Commit Graph

38 Commits

Author SHA1 Message Date
9152750a9f feature/bitacora-correccion-por-tenant 2026-05-07 07:52:31 -06:00
953edc6127 Merge branch 'development' of https://git.aduanasoft.com/ADUANASOFT/anexo76 into fix/facturas_ame_mez 2026-04-29 10:35:55 -05:00
c92d114080 refactor: enhance invoice filtering and dropdown menu functionality
- Updated SQLAlchemy imports for better clarity and organization in invoice service.
- Refactored dropdown menu components to improve state management and accessibility.
- Adjusted invoice year filter logic for consistency in dashboard components.
- Improved internationalization handling in invoice titles and headers.
2026-04-29 09:03:01 -05:00
cbb31dc1c9 Arreglando las factruas 2026-04-28 09:29:39 -06:00
5c2a84e95d fix: solución de bloqueos y estandarización de permisos 2026-04-27 10:47:30 -05:00
5e6ee5d4d1 Funciones y logia de exportacion, como mejoras CRUD en las partes de exportacion 2026-04-16 11:30:40 -05:00
3cdb227ccc Merge branch 'development' into fix/filtro_facturas 2026-04-02 08:19:51 -05:00
1a01757c63 Merge branch 'development' into feature/validaciones-invoices-transports 2026-04-01 13:42:49 -06:00
7a029307a8 feature/validaciones-invoices-transortes 2026-03-27 12:56:47 -06:00
b477233245 feature/migraciones-id-transportes 2026-03-27 09:32:59 -06:00
d93c4c6b7b Mecanismo sort para tablas 2026-03-27 08:45:51 -05:00
9255dbc6b2 Se arreglo los filtros de facturas 2026-03-26 09:07:28 -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
d37d6ef699 feature/catalog-importation 2026-03-18 08:28:20 -06:00
e3d4686abe Update invoice processing terminology from 'who_updated' to 'who_processed'
- Renamed instances of 'who_updated' to 'who_processed' in the InvoiceService and related tasks to enhance clarity and consistency in invoice processing.
- Adjusted comments and documentation to reflect the updated terminology across various modules, ensuring alignment with recent changes in invoice status handling.
2026-03-13 13:02:35 -05:00
4f200de5ef Refactor invoice status terminology and update related logic
- Renamed 'is_processed' fields to 'status' in the InvoiceHeader model and updated corresponding attributes in schemas, services, and frontend components for consistency.
- Adjusted query filters and validation logic to reflect the new 'status' terminology.
- Updated comments and documentation to clarify changes in invoice status handling.
2026-03-13 12:54:58 -05:00
326f4019a2 Refactor invoice processing fields and update related logic
- Renamed fields in the `InvoiceHeader` model from `is_updated` to `is_processed` and updated corresponding attributes in schemas, services, and frontend components.
- Adjusted query filters and validation logic to reflect the new processing status.
- Updated comments and documentation to ensure clarity regarding the changes in invoice status handling.
2026-03-13 12:36:41 -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
c2d691a4ad feat: Enhance invoice validation and calculations
- Added new validations for pedimento regimes and compliance checks in common_validators.py.
- Implemented missing date checks for consolidated pedimentos.
- Introduced validation for shipped_by_id and manifest_number in invoice compliance.
- Refactored create_validators.py by removing the file as it was no longer needed.
- Updated update validators for exports and imports to use invoice_data instead of invoice.
- Modified schemas.py to set default values for financial fields to avoid None values.
- Created calculations.py to handle invoice calculations, including total increments and regime changes.
- Improved layout responsiveness in various Svelte components for better user experience.
2026-03-10 11:29:38 -05:00
d91af9a7fb Refactor invoice validation logic and introduce export validators
- Moved common validation functions to a shared module for reusability.
- Updated create and update validators for import invoices to use the new common validation functions.
- Introduced new validators for export invoices, ensuring they adhere to the required fields and validation rules.
- Enhanced the update logic to handle both import and export invoice types appropriately.
- Cleaned up the code for better readability and maintainability.
2026-03-07 22:17:34 -06:00
e1f494fd18 refactor estructure 2026-03-03 16:13:05 -06:00
hreyes
6026132db3 Merge origin/development: resolved conflicts in scripts/init_first_time.sh, backend/api/v1/modules/a76/invoices/services.py, .gitignore and others 2026-02-27 11:46:16 -07:00
hreyes
cde583315b Merge development 2026-02-23 13:12:49 -06:00
hreyes
0683aaa801 feature/csv-for-envoices 2026-02-23 13:05:02 -06:00
Galindo97
af99e43ee5 Merge remote-tracking branch 'origin/development' into feature/Invoice-movements
# Conflicts:
#	backend/api/v1/modules/a76/reports/importacion/facturas/usa/service.py
#	backend/core/celery_app.py
#	frontend/src/lib/api/dashboard/a76/general_catalogs/company.ts
2026-02-20 10:09:19 -06:00
Galindo97
7b704e0744 feat: fix R1 pedimento duplication and improve invoice report exports
- Fix bidirectional R1 resolution in all report query builders (Temporary,
  Definitive, Repair, Export, ExportRepair): use JOIN on
  pedimento_rectification_origin in both directions so the rectified
  pedimento number is resolved correctly and not duplicated.
- Restore original CSV export format (ValorComercialMN, ValorMPTemp,
  ValorAgre as separate columns); compute them from item_line_financials
  SUM instead of invoice-level header totals which were always 0.
- Rename CSV column "PEDIMENTO RECTIFICACION" to "PEDIMENTO R1" in both
  backend csv_utils.py and frontend manual download.
- Harden temporary invoice update validator to safely handle null
  compliance_mx / logistics objects without crashing.
- Add R1 rectification fields (es_rectificacion, pedimento_original, etc.)
  to the pedimento other-data form and initialize their default state.
- Remove default companyId parameter from pedimentosApi methods to avoid
  hardcoded company ID 1.
- Minor: whitespace cleanup, error handler adjustments, keyboard manager
  fix.
2026-02-20 10:00:22 -06:00
41c9eaf64d Modulo de creacion de formato dat con MAINX30 en exportacion 2026-02-13 12:35:18 -06:00
ac47a99f1a Formularios para cada uno de los tipos de importacion 2026-02-11 10:27:32 -06:00
ae66879120 Fomrulario de factrua de exportacion implementada 2026-02-10 10:59:11 -06:00
f2005e33a0 Se integro el modulo de manifestacion base 2026-02-06 16:22:04 -06:00
Galindo97
ba353493d3 feat(invoice): enhance invoice update validation and payload construction 2026-01-19 13:38:06 -06:00
20aff5ff7b Refactor invoice schemas and services for improved clarity and structure
- Updated schemas in `schemas.py` to enhance readability by aligning field definitions and descriptions.
- Consolidated optional fields and improved default values for better data handling.
- Modified the `InvoiceService` class in `services.py` to streamline error handling and data extraction for nested invoice components.
- Ensured that nested data is processed correctly before creating invoice entries, improving overall service reliability.
2026-01-11 17:09:04 -06:00
AlexeerCT
887cbfa5ce feat: enhance invoice validation and error handling with detailed messages 2026-01-10 23:42:05 -06:00
AlexeerCT
8cdcc369bb feat: implement exchange rate filtering and validation enhancements in invoice processing 2026-01-07 11:45:41 -06:00
AlexeerCT
9fe07e78a6 feat: refactor invoice compliance fields to use foreign keys and enhance validation logic 2026-01-06 18:01:26 -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
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
7e9c8397ef feat: Implement invoice management module with CRUD operations
- Added InvoiceHeader, InvoiceComplianceMx, InvoiceFinancials, InvoiceLogistics, InvoiceSalesDetails, and InvoiceCollections models.
- Created schemas for invoice operations including create, update, and response schemas.
- Developed services for handling business logic related to invoices, including retrieval, creation, updating, and deletion of invoices and their related data.
- Introduced routes for invoice management, enabling CRUD operations through a RESTful API.
- Integrated invoice routes into the main application router.
- Removed unused routers from the core module to streamline the API structure.
2025-12-09 16:00:46 -06:00