Commit Graph

867 Commits

Author SHA1 Message Date
fc3c636ede Merge pull request 'feature/tablas_nuevas_partes' (#222) from feature/tablas_nuevas_partes into development
Reviewed-on: ADUANASOFT/anexo76#222
2026-03-18 17:04:10 +00: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
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
1d7ff722ea Merge pull request 'feature/balance_by_item' (#220) from feature/balance_by_item into development
Reviewed-on: ADUANASOFT/anexo76#220
2026-03-18 14:25:27 +00:00
431f484d80 feature/catalogo-conversiones 2026-03-18 07:29:27 -06:00
420901dd4e Add proportional quantity calculation and caching for line items in discharge ledger processing
- Introduced `_proportional_qty` function to calculate prorated quantities based on consumed amounts.
- Implemented caching for line items and import invoice numbers to optimize database queries during discharge ledger registration.
- Enhanced `register_discharge_ledger` function to utilize cached data for improved performance and reduced N+1 query issues.
- Updated discharge detail creation to include denormalized fields for reporting, such as net and gross weights, and customs information.
2026-03-18 08:24:46 -05: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
a91f8ef615 Merge pull request 'feature/item_por_tipo_factura' (#217) from feature/item_por_tipo_factura into development
Reviewed-on: ADUANASOFT/anexo76#217
2026-03-18 03:51:07 +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
fd0180d23f Merge pull request 'feature/validaciones-parts' (#216) from feature/validaciones-parts into development
Reviewed-on: ADUANASOFT/anexo76#216
2026-03-18 03:46:38 +00:00
62817565ce Merge pull request 'feature/process-expos' (#215) from feature/process-expos into main
Reviewed-on: ADUANASOFT/anexo76#215
2026-03-18 03:44:53 +00: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
5d9f4041e4 Add balance entry creation and void functionality for import invoices
- Introduced `create_balance_entries` function to generate `BalanceMovement` entries for each line item of a processed import invoice, ensuring accurate inventory balance tracking.
- Implemented `void_balance_entries` function to cancel open ENTRY movements by inserting corresponding ENTRY_VOID movements, with safeguards against already consumed lots.
- Enhanced transaction handling to maintain data integrity during invoice processing and reverting operations.
2026-03-17 21:09:01 -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
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
0487f84f7e Merge pull request 'development' (#214) from development into main
Reviewed-on: ADUANASOFT/anexo76#214
2026-03-17 18:22:59 +00:00
0f9b0bc23f archivo de prueba 2026-03-17 12:49:37 -05:00
hreyes
fbbe4370de feature/refactorizacion-tabla-sector 2026-03-17 11:21:28 -06:00
hreyes
20a351c475 Merge branch 'development' into feature/validaciones-parts
# Conflicts:
#	frontend/src/lib/components/dashboard/goods/parts/partForm.svelte
2026-03-17 09:35:29 -06:00
hreyes
8a0c67d452 WIP: mover cambios desde development 2026-03-17 09:27:03 -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
5a619e8bc4 Merge pull request 'fix/invoice-process' (#213) from fix/invoice-process into development
Reviewed-on: ADUANASOFT/anexo76#213
2026-03-17 14:15:48 +00: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
44e621c36d Merge pull request 'Refactor Dockerfile and update models and frontend components' (#212) from fix/parts into development
Reviewed-on: ADUANASOFT/anexo76#212
2026-03-13 22:56:04 +00: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
dfa44aaff7 Merge pull request 'Update depreciation_date field type to Date in LineItem model' (#211) from hot-fix/depreciacion_date into development
Reviewed-on: ADUANASOFT/anexo76#211
2026-03-13 18:37:47 +00: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
999c70eef4 Merge pull request 'Update depreciation_date field type in models and schemas' (#210) from hot-fix/depreciacion_date into development
Reviewed-on: ADUANASOFT/anexo76#210
2026-03-13 18:33:16 +00: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
8ad5dd7f41 Merge pull request 'Update subitem_number assignment in calculations.py' (#209) from fix/is_updated into development
Reviewed-on: ADUANASOFT/anexo76#209
2026-03-13 18:27:22 +00: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
b28c76597e Merge pull request 'Update subitem_number default value in FaLineItemCreateDTO' (#208) from fix/is_updated into development
Reviewed-on: ADUANASOFT/anexo76#208
2026-03-13 18:19:43 +00:00
567359ef6f Update subitem_number default value in FaLineItemCreateDTO
- Changed the default value of the subitem_number field from None to 0 in the FaLineItemCreateDTO class to ensure a more consistent initialization of subitem data.
2026-03-13 13:19:12 -05:00
ba2fd20749 Merge pull request 'Update invoice processing terminology from 'who_updated' to 'who_processed'' (#207) from fix/is_updated into development
Reviewed-on: ADUANASOFT/anexo76#207
2026-03-13 18:03:08 +00: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
eb86c7b56d Merge pull request 'Refactor invoice status terminology and update related logic' (#206) from fix/is_updated into development
Reviewed-on: ADUANASOFT/anexo76#206
2026-03-13 17:57:07 +00: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
f628e0d3bd Merge pull request 'Refactor invoice status handling to use 'processed' terminology' (#205) from fix/is_updated into development
Reviewed-on: ADUANASOFT/anexo76#205
2026-03-13 17:44:53 +00: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