Commit Graph

525 Commits

Author SHA1 Message Date
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
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
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
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
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
3e6cc07003 Merge branch 'feature/catalogo-conversiones' into feature/catalog-importation 2026-03-18 07:33:12 -06:00
431f484d80 feature/catalogo-conversiones 2026-03-18 07:29:27 -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
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
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
3983c9e4b3 feature/catalogo-pedimento 2026-03-17 16:35:27 -06:00
adfa82c707 Valores extendidos para partes 2026-03-17 16:57:03 -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
e326ac0f0a feature/client-provider-taxid-rfc-fix 2026-03-17 15:08:02 -06:00
hreyes
fbbe4370de feature/refactorizacion-tabla-sector 2026-03-17 11:21:28 -06:00
2e5812fb1b Merge branch 'development' of https://git.aduanasoft.com/ADUANASOFT/anexo76 into feature/item_por_tipo_factura 2026-03-17 09:30:11 -05:00
d178ea34fa formulario de items en por tipo de factura: exportaciones y reparaciones de exportacion 2026-03-17 09:26:52 -05:00
AlexeerCT
6fa461991f Implement invoice revert functionality and enhance progress tracking
- Added a new route for reverting invoices in the A76 module.
- Updated the pre_validators to provide clearer error messages when processing invoices.
- Enhanced the PDF progress dialog to support step-by-step progress tracking for both invoice processing and reverting.
- Introduced a confirmation dialog for reverting invoices in the dashboard.
- Updated frontend components to handle the new revert functionality and display appropriate progress messages.
2026-03-15 22:34:11 -06:00
AlexeerCT
a4cf394447 Update Docker Compose files for production environment and enhance unit of measure handling
- Changed the default environment variable from 'development' to 'production' in docker-compose.prod.yml and docker-compose.yml.
- Added SITAR API credentials to the environment variables in both Docker Compose files.
- Updated the seed data for customs units of measure to include a76_unit_code.
- Refactored the UnitOfMeasureCustoms model and related DTOs to replace scaii_unit_code with a76_unit_code for consistency.
- Adjusted frontend components to reflect the updated unit of measure structure and ensure proper handling of the new a76_unit_code field.
2026-03-15 20:52:01 -06:00
63cbdf2124 Importacion de reparacion 2026-03-13 17:56:15 -05:00
AlexeerCT
ef5564dd25 Refactor Dockerfile and update models and frontend components
- Removed the APP_VERSION argument from the Dockerfile and added TARGETARCH for architecture-specific wkhtmltopdf installation.
- Updated models.py to reintroduce the import of PartCountry for consistency.
- Enhanced parts.ts interface by adding new optional fields: immex_type, disable_movements, pga_program_code, non_discharge_clients, bom_items, and countries.
- Changed formType default in partForm.svelte and edit page to 'fa' for better alignment with the intended functionality.
- Improved type handling for non_discharge_clients in partForm.svelte.
- Adjusted column span logic in partForm.svelte for better rendering.
- Fixed image error handling in partForm.svelte for improved user experience.
- Updated license expiration date calculation in init_first_time.sh for compatibility with macOS.
2026-03-13 16:53:42 -06:00
dada17b54c Partidas por tipo de factura en importacion 2026-03-13 17:38:30 -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
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
5a6fbcf182 Merge branch 'development' of https://git.aduanasoft.com/ADUANASOFT/anexo76 into feature/partePais_BOM 2026-03-13 11:13:44 -05:00
9c4d8f1975 Camabio en los regsitros de SCAI o SCAF para la columna cliente 2026-03-13 11:08:10 -05:00
bf954bbdef Merge remote-tracking branch 'origin/development' into feature/process-invoices 2026-03-13 11:06:03 -05:00
ccd81d743e Add invoice processing functionality and enhance models and routes
- Introduced new routes for processing invoices in the router.
- Added `InvoiceStatus` enum to manage invoice states.
- Enhanced `InvoiceHeader` and `InvoiceFinancials` models with new fields for status tracking and total packages.
- Updated schemas to include new fields for invoice processing.
- Implemented API methods for processing invoices and checking process status in the frontend.
- Removed outdated validation files related to invoice processing.
2026-03-13 11:02:49 -05:00
2b0caeb251 Merge branch 'development' of https://git.aduanasoft.com/ADUANASOFT/anexo76 into feature/partePais_BOM 2026-03-13 10:59:03 -05:00
d6deed1446 BOM y PAIS para SCAI reactivo 2026-03-13 10:53:14 -05:00
hreyes
4a52e9ec98 feature/visibility-comp-mex 2026-03-13 08:32:29 -06:00
hreyes
8d304fb98b feature/continuacion-vista-tablas-location 2026-03-12 16:17:01 -06:00
hreyes
678f91ecdc feature/checkpoin-before-table 2026-03-12 12:54:33 -06:00
hreyes
a57b01b190 feature/items-ventana-por-tipo-factura 2026-03-12 07:27:00 -06:00
hreyes
5b4dabb72a feature/filtro-pedimentos-tipo-invoices 2026-03-11 10:40:41 -06:00
9f3ae8db42 Partidas BOM y partes para SCAI 2026-03-11 11:11:36 -05:00
hreyes
003d0d54d3 feature/pestana-series-en-partidas 2026-03-11 09:52:15 -06:00