Commit Graph

220 Commits

Author SHA1 Message Date
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
6b2ca5746a feat: add general_catalogs router to centralize general catalog modules 2026-02-06 14:02:39 -06:00
017df56a57 feat: add USTariffFractionService for managing US tariff fractions
- Implemented methods to get all, get by ID, create, update, and delete US tariff fractions.
- Added filtering capabilities for retrieving tariff fractions.
- Included error handling for duplicate entries during creation.
2026-02-06 13:58:50 -06:00
c92d0a3e16 feat: Enhance PROSEC service and router with additional query parameters for sector and articulo 2026-02-05 12:57:33 -06:00
0440543f24 Refactor item validation and service logic
- Consolidated item creation and update validation into a common function to reduce code duplication.
- Updated the `validate_create` and `validate_update` functions to utilize the new common validation logic.
- Introduced a new `common_validators.py` file for shared validation functions.
- Added a new `fractions.py` file to handle fraction-related logic and searches.
- Enhanced the `LineCustom` model to use an enumeration for `fraction_type`.
- Improved the `ItemService` class with methods for locking invoices and renumbering line items.
- Updated the `Sector` model to use a boolean type for the `authorized` field.
- Fixed import issues in the router by replacing the old `a24_router` with `sitar_router`.
2026-02-04 23:29:05 -06:00
f38c13f851 feat: Implement SITAR modules for PROSEC, RCG2, Regulaciones, REIT, RequisitoPrevio, TLCS, and Vehiculos
- Added schemas, services, and routers for PROSEC, RCG2, Regulaciones, REIT, RequisitoPrevio, TLCS, and Vehiculos modules.
- Each module includes search and get by ID functionalities.
- Integrated FastAPI routers for each module into the main SITAR router.
- Ensured proper response models using Pydantic for data validation.
2026-02-04 23:28:46 -06:00
d4014df5d5 Merge branch 'feature/facturas_americanas' into development 2026-01-29 17:40:03 -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
52708c5ba0 feat(api): integrate Sitar API configuration and authentication 2026-01-23 13:42:58 -06:00
35390d6e48 Merge pull request 'fix/producction' (#85) from fix/producction into development
Reviewed-on: ADUANASOFT/anexo76#85
2026-01-23 18:48:38 +00:00
37a3787625 Merge branch 'fix/invoices-both' into development 2026-01-23 12:46:50 -06:00
1af4fe3ce8 Merge pull request 'feature/ventana_tipo_cambio' (#83) from feature/ventana_tipo_cambio into development
Reviewed-on: ADUANASOFT/anexo76#83
2026-01-23 18:35:40 +00: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
3cbe4e843f fix(models, schemas, service): remove weight_unit field and update part_number references 2026-01-23 12:20:43 -06:00
Galindo97
1f01d926c2 feat(validators): add validation for required fields based on operation type in invoice processing 2026-01-23 11:03:09 -06:00
b8045d73e6 Se integro el sistema de extraer el tipo de cambio 2026-01-23 10:42:21 -06:00
2a2ad27ad1 Merge branch 'fix/id-items' into development 2026-01-22 17:41:59 -06:00
9585aaa232 Merge pull request 'fix(clients_and_providers): include 'both' type in client or provider filtering' (#76) from fix/pedimentos-both into development
Reviewed-on: ADUANASOFT/anexo76#76
2026-01-22 23:38:03 +00:00
a606f3ab08 Merge pull request 'Edicion habilitada' (#75) from fixed/tipos_de_cambio into development
Reviewed-on: ADUANASOFT/anexo76#75
2026-01-22 23:35:12 +00:00
9e6b9e6f8b Merge pull request 'Se corrigio el sistema de modal de paises' (#74) from fixed/catalogo_paises_partes into development
Reviewed-on: ADUANASOFT/anexo76#74
2026-01-22 23:33:24 +00:00
63380d5497 Merge pull request 'fix/table-pedimentos' (#72) from fix/table-pedimentos into development
Reviewed-on: ADUANASOFT/anexo76#72
2026-01-22 23:31:37 +00:00
902aca76a6 Merge pull request 'fixed/logo_empresa' (#70) from fixed/logo_empresa into development
Reviewed-on: ADUANASOFT/anexo76#70
2026-01-22 23:30:06 +00:00
Galindo97
07729b970f fix(clients_and_providers): include 'both' type in client/provider filters and update UI indicators 2026-01-22 14:19:22 -06:00
Galindo97
620e9fd2a8 fix(clients_and_providers): include 'both' type in client or provider filtering 2026-01-22 13:43:31 -06:00
79e6c2f5a4 Edicion habilitada 2026-01-22 13:12:41 -06:00
4fda7b28c7 Se corrigio el sistema de modal de paises 2026-01-22 13:06:08 -06:00
Galindo97
b564701dc3 fix(validators): add required validations for customs fields in item creation and update
feat(item-sheet): implement cancel functionality to restore original item data
2026-01-22 12:54:26 -06:00
Galindo97
0782e784ac fix(validators): update part_number_id validation to be optional in item creation 2026-01-22 12:26:57 -06:00
587dfed2f2 Se arreglo el catalogo de UM 2026-01-22 11:44:54 -06:00
Galindo97
9b32c019ef feat(line_items): update part number and component part number fields to use integers; enhance schemas and services for better data handling 2026-01-22 09:52:21 -06:00
e338236a1c Se arreglo el problema de company 2026-01-22 09:49:59 -06:00
d4e4e1f7f8 Se corrigio el problema de los logos 2026-01-22 08:10:57 -06:00
Galindo97
18559025b1 fix(pedimentos): standardize ID naming convention and enhance row selection functionality in data table 2026-01-21 17:32:37 -06:00
5a254fb2b1 Merge pull request 'fix/tabla_unidades_medida' (#66) from fix/tabla_unidades_medida into development
Reviewed-on: ADUANASOFT/anexo76#66
2026-01-21 22:35:20 +00:00
f7ac2d50c3 fix: update part_number and component_part_number fields in various schemas and components 2026-01-21 16:16:55 -06:00
4b4599362f Se cambio la tabla de unidades de medida generales por unidades de medida 2026-01-21 15:43:19 -06:00
5db940b518 refactor(models): clean up whitespace and update has_express_line type in Company model 2026-01-21 13:09:29 -06:00
ce8712436e fix(models): update import path for CompanyVU submodel in models.py 2026-01-21 12:58:40 -06:00
4041a33b69 refactor(line_items): reorganize imports and clean up whitespace in models.py 2026-01-21 12:47:53 -06:00
2a468cc859 fix(models): update Company model to extend existing schema and clean up LineItem model 2026-01-21 12:27:08 -06:00
337e99b291 Merge pull request 'feat(states): add initial seed data and update State model with foreign key' (#62) from feature/states into development
Reviewed-on: ADUANASOFT/anexo76#62
2026-01-21 18:14:12 +00:00
b446263c46 Merge pull request 'fix/production' (#61) from fix/production into development
Reviewed-on: ADUANASOFT/anexo76#61
2026-01-21 18:13:46 +00:00
68a7c116f3 Merge branch 'feature/reportes_facturas' into development 2026-01-21 12:12:23 -06:00
a5daf0bd86 fix(dto): change customs_code type from str to int in multiple DTO classes 2026-01-21 11:48:28 -06:00
6284aefcf0 Se arreglo los consolidados y se agrego los transportes 2026-01-21 11:48:11 -06:00
Galindo97
123cdb522b feat(validation): enhance item validation and update UI components for required fields 2026-01-21 11:11:54 -06:00
3d39360f9c Se introdujo el sistema de consolidados 2026-01-21 09:47:28 -06:00
9a0cc4487d feat(states): add initial seed data and update State model with foreign key 2026-01-20 13:42:00 -06:00