Commit Graph

65 Commits

Author SHA1 Message Date
0d3b29ef00 Correcion para restarle cantidad a la version mas actualiazda de la factrua de importacion 2026-03-19 15:58:14 -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
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
2c7e6f38da Merge pull request 'feature/client-provider-taxid-rfc-fix' (#218) from feature/client-provider-taxid-rfc-fix into development
Reviewed-on: ADUANASOFT/anexo76#218
2026-03-18 03:51:43 +00:00
3983c9e4b3 feature/catalogo-pedimento 2026-03-17 16:35:27 -06: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
e326ac0f0a feature/client-provider-taxid-rfc-fix 2026-03-17 15:08:02 -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
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
be3150b53c genracion de reportes por saldos temporales 2026-03-06 16:09:45 -06:00
d72edda61c Generacion de archivos winsaai 2026-03-03 09:08:49 -06:00
Galindo97
af9be8d0b5 feat: Refine invoice report queries to handle empty concatenated transport data and adjust subpartida logic for peso calculation. 2026-02-24 09:23:07 -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
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
32b8e35290 refactor: streamline item imports and queries in processors 2026-02-20 09:40:43 -06:00
15f6f488bf Merge remote-tracking branch 'origin/development' into feature/trasnferencia_mainx30 2026-02-20 09:31:13 -06:00
af93ad9d8a feat: simplify relationship definitions for FaLineItem in ORM models 2026-02-19 10:35:04 -06:00
Galindo97
f19f051e59 Merge branch 'development' into feature/Invoice-movements 2026-02-18 10:20:45 -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
36725b0fcf Se integro los compoenntes SCAF en importaciones 2026-02-16 17:48:29 -06:00
5d230fc4d7 Se integro el modulo de importacion definitiva 2026-02-16 11:52:27 -06:00
3d691d6881 Se integro el modulo de importacion 2026-02-16 10:36:23 -06:00
41c9eaf64d Modulo de creacion de formato dat con MAINX30 en exportacion 2026-02-13 12:35:18 -06:00
5d7c4019bc fix: update import paths for TariffFraction model to reflect new directory structure 2026-02-12 17:14:53 -06:00
287a194910 Merge branch 'development' into feature/items-validation 2026-02-12 17:04:13 -06:00
Galindo97
893c154b85 feat: Enhance invoice form data handling with new fields and improve invoice report export filter logic and UI. 2026-02-09 12:57:20 -06:00
55fa7c10b5 Fix import paths for schemas in service.py files 2026-02-09 11:40:25 -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
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
84b507fbba feat: Enhance invoice movement reports by refactoring CSV generation with a filter object, expanding exported fields, improving formatting, and enabling direct download in the frontend. 2026-02-06 17:57:58 -06:00
Galindo97
f3f763cd6d feat: Implement asynchronous invoice report generation with email delivery and frontend status polling. 2026-02-06 15:31:30 -06:00
Galindo97
264100e2ea feat: Implement detailed and normal report types for invoice movements, enhancing number formatting and API request handling. 2026-02-05 16:00:22 -06:00
dbf4b63675 Se termino el modulo de reportes 2026-02-05 08:22:59 -06:00
Galindo97
e3cf5dc8f5 Merge branch 'development' into feature/Invoice-movements 2026-02-04 11:00:15 -06:00
6b88429cc6 Merge branch 'feature/packing_list' into development 2026-02-03 17:36:41 -06:00
Galindo97
7920b21654 refactor: streamline client and supplier information retrieval across invoice services 2026-02-03 15:49:40 -06:00
afba0332b1 feat: implementacion inicial descargo de peps 2026-02-03 13:06:56 -06:00
Galindo97
e7971d0d1d refactor: optimize provider and client information retrieval in invoice services 2026-02-03 10:38:36 -06:00
Galindo97
461f8ececb fix: update invoice type filtering for repair imports and exports 2026-01-30 18:03:41 -06:00
9ac8d4a4a4 Creacion de el codigo de barras, y se ajusto la seccion de importador y exportadores 2026-01-30 12:32:26 -06:00
Galindo97
b8e25cd2e1 Refactor code structure for improved readability and maintainability 2026-01-30 10:55:29 -06:00
d4014df5d5 Merge branch 'feature/facturas_americanas' into development 2026-01-29 17:40:03 -06:00
47c4984d3f Se integro la plantilla de aviso de consolidado 2026-01-29 08:56:25 -06:00
c97b9e3daf Se ajusto la tabla de quantity y de packeges, y se creo la relacion 2026-01-27 11:34:10 -06:00
50504be30b Se pusieron los datos correctos en la tabla 2026-01-27 10:26:07 -06:00
75fc4d56f9 Confguracion de la plantilla 2026-01-26 18:03:35 -06:00
9c0d007cf4 Se creo la base del reporte 2026-01-26 17:44:16 -06:00