Commit Graph

402 Commits

Author SHA1 Message Date
dada17b54c Partidas por tipo de factura en importacion 2026-03-13 17:38:30 -05: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
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
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
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
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
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
57a55c7f00 Enhance invoice processing features and update related models
- Improved invoice processing logic and added new validation checks.
- Updated `InvoiceHeader` and `InvoiceFinancials` models to support additional data fields.
- Refined API methods for better handling of invoice statuses and error responses.
- Cleaned up deprecated code related to previous invoice processing implementations.
2026-03-13 11:12:52 -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
8d304fb98b feature/continuacion-vista-tablas-location 2026-03-12 16:17:01 -06:00
hreyes
e1d4ef4a68 feature/correccion-de-carga-csv-falta-de-datos-fk 2026-03-12 11:41:11 -06:00
6aef35337e Refactor router imports for clarity and organization 2026-03-12 09:34:00 -05:00
99a79287ad Implement CountryRuleOct and FractionRuleOctave models, DTOs, routes, services, and tests 2026-03-12 09:32:27 -05:00
hreyes
a57b01b190 feature/items-ventana-por-tipo-factura 2026-03-12 07:27:00 -06:00
9f3ae8db42 Partidas BOM y partes para SCAI 2026-03-11 11:11:36 -05:00
0416264fe9 Merge pull request 'feature/items-validations' (#199) from feature/items-validations into development
Reviewed-on: ADUANASOFT/anexo76#199
2026-03-11 16:10:31 +00:00
hreyes
003d0d54d3 feature/pestana-series-en-partidas 2026-03-11 09:52:15 -06:00
hreyes
3692fd890d feature/series-clarion-csv-validaciones-expo 2026-03-10 17:03:24 -06:00
hreyes
6d56448f9f feature/partidas-clarion-csv-validaciones-expo 2026-03-10 16:21:24 -06:00
c1a9ee789b feat(validators): Add apply_calculations to common validation for items 2026-03-10 14:11:51 -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
hreyes
663d419ab8 Merge branch 'development' into feature/partidas-clarion-csv-validaciones-expo 2026-03-10 12:44:34 -06:00
hreyes
e6184cb757 feature 2026-03-10 12:43:34 -06: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
hreyes
31cd249fd4 feature/custom-brokers-validaciones-new 2026-03-10 11:08:08 -06:00
hreyes
a1c3b97375 feature/clarion-expo-csv-header 2026-03-10 10:31:30 -06: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
hreyes
423d0ac3fd feature/clarion-partidas-series-csv-comp-mex 2026-03-09 15:11:15 -06:00
hreyes
09e20fb109 feature/clarion-validaciones-invoices-csv-headers-comp-mex 2026-03-09 14:34:54 -06:00
hreyes
b0e788d0cd feature/feature/clarion-validaciones-invoices-csv-series-def-impo 2026-03-09 13:17:59 -06:00
hreyes
71d3446351 feature/feature/clarion-validaciones-invoices-csv-partidas-def-impo 2026-03-09 12:26:23 -06:00
hreyes
bcec74a741 feature/feature/clarion-validaciones-invoices-csv-headers-def-impo 2026-03-09 11:29:39 -06:00
hreyes
9d00c504c2 feature/clarion-invoices-temp-headers-csv 2026-03-09 10:13:42 -06:00
hreyes
23a9c1c40a feature/clarion-invoices-temp-partidas-csv 2026-03-09 08:41:14 -06:00
hreyes
ecd32d590c Merge branch 'feature/clarion-validaciones-invoices-csv' into feature/feature/clarion-validaciones-invoices-csv-partidas-temp-impo 2026-03-09 07:31:19 -06:00
hreyes
4dc7fbd8ed feature/series-invoices-clarion-validations-csv 2026-03-09 07:28:05 -06:00
a578135183 Merge branch 'development' into feature/invoice-validations 2026-03-09 08:23:25 -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
ac8c45ec18 Merge branch 'development' of https://git.aduanasoft.com/ADUANASOFT/anexo76 into feature/saldos_temporales 2026-03-06 16:10:30 -06:00
be3150b53c genracion de reportes por saldos temporales 2026-03-06 16:09:45 -06:00
hreyes
3cd88c199b feature/validaciones-clarion-csv-transportistas 2026-03-06 13:13:46 -07:00
hreyes
dfcf4aad6b feature/validaciones-clarion-csv-drivers 2026-03-06 12:21:19 -07:00
hreyes
8cd299609c Merge branch 'development' into feature/catalog-drivers 2026-03-06 10:14:55 -07:00
hreyes
3175383442 feature/catalogo-driver 2026-03-06 09:52:20 -07:00
84d82fca8f Merge branch 'development' into feature/invoice-validations 2026-03-06 10:23:21 -06:00