Commit Graph

50 Commits

Author SHA1 Message Date
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
fe60de37c7 Se corrigio la decripcion, se quito leyes mexicanas 2026-01-26 11:52:19 -06:00
c4aeb1415b Se corrigio la fraccion americana 2026-01-26 11:24:10 -06:00
9e602a2337 Se ingreso factura americana y modal con botoncitos 2026-01-23 17:59:08 -06:00
4ee7b0e733 Refactor FacturaImportacionMexService for improved readability and maintainability
- Organized import statements for better clarity.
- Enhanced formatting and consistency in code style.
- Improved error handling and default values in _obtener_datos_cliente method.
- Streamlined data fetching and processing logic in obtener_datos method.
- Added unit description fetching from UnitOfMeasure model in obtener_datos method.
- Updated comments for better understanding of the code flow.
2026-01-23 12:23:09 -06:00
6284aefcf0 Se arreglo los consolidados y se agrego los transportes 2026-01-21 11:48:11 -06:00
3d39360f9c Se introdujo el sistema de consolidados 2026-01-21 09:47:28 -06:00
53f3915de2 Se mejor el estilo del reporte, ademas de que se corrigio el id en partes 2026-01-16 15:47:04 -06:00
210f2d85d8 fix(reports): update invoice headers, pedimento formatting and value priority 2026-01-16 13:18:34 -06:00
238d728305 Puliendo reporte y disenio de partes 2026-01-16 13:17:41 -06:00
0a02a3e912 Se mejoro el disenio de partes, se genero la informacion mas precisa en los reportes y se carga el logo en las instanacias de las empresas 2026-01-15 13:20:34 -06:00
0c43c252a4 Se completo la integracion del celery en la creacion de reportes 2026-01-13 14:22:15 -06:00
6214973eaf Implementacion de celery y problemas con relacioines 2026-01-13 11:27:58 -06:00
ce37aa77b2 Se edito el reporte de factura, se le puso las partidas, ademas se inicio todo el procedo de celery 2026-01-12 16:29:07 -06:00
50ef340df8 Se creo la rutina de creacion de reportes parcial 2026-01-09 18:03:08 -06:00
ff2df90dbe WIP: Guardando trabajo antes de actualizar con development 2026-01-09 08:26:44 -06:00