Commit Graph

830 Commits

Author SHA1 Message Date
Galindo97
ba353493d3 feat(invoice): enhance invoice update validation and payload construction 2026-01-19 13:38:06 -06:00
Galindo97
9567a584a5 feat: enhance various components with new fields and improved styling for better user experience 2026-01-16 17:15:17 -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
c5ea8d5868 Se quito el id de partes y se quito el sticky de las tablas 2026-01-16 14:14:48 -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
5b08158d55 Se arreglo el problema de la columna 2026-01-16 13:17:41 -06:00
Galindo97
eb03237f44 feat(company): add submodels for Company including address, certification, digital certificate, electronic agent, prevalidator, and VU configurations 2026-01-16 09:26:06 -06:00
Galindo97
12f5164054 feat: Implement admin role and permission management APIs
- Added centralized API exports for admin functionalities.
- Created permissions API for managing system permissions, including listing, creating, updating, and deleting permissions.
- Developed role-permissions API for managing permissions assigned to roles, including listing, assigning, and removing permissions.
- Implemented roles API for managing company roles, including listing, creating, updating, and deleting roles.
- Created user-permissions API for managing individual user permissions, including assigning and revoking permissions.
- Developed user-roles API for managing user roles, including listing roles assigned to users and assigning/removing roles.
- Added utility functions for permission checks and route guards based on user permissions.
- Implemented admin dashboard layout and roles management page with UI components for role and permission management.
2026-01-15 18:00:05 -06:00
4f7a0442b4 Eliminar backend/app_data/logos/1/logo2.jpg 2026-01-15 19:27:47 +00:00
8fcff2ad08 Eliminar backend/app_data/logos/1/footer.png 2026-01-15 19:27:42 +00:00
32123ec511 Eliminar backend/app_data/logos/1/a519dfd146c1bd477bcd841afe02d7de.jpg 2026-01-15 19:27:37 +00:00
f817878742 Eliminar backend/app_data/logos/1/Agenda.png 2026-01-15 19:27:32 +00:00
d02b0dc703 Eliminar backend/app_data/logos/1/AS.png 2026-01-15 19:27:25 +00:00
606d5c1140 Eliminando carpeta basura 2026-01-15 19:25:16 +00: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
68fc7506db fix(security): update permissions seeding to use 'module' instead of 'resource' 2026-01-15 08:26:41 -06:00
Galindo97
7e9a1acd30 feat: Add new fields for invoice logistics and line items, enhance UI for class selection 2026-01-15 08:12:00 -06:00
056909b17f feat(users): enhance user management with company-specific API calls and access validation 2026-01-15 08:10:01 -06:00
86e1f7e8f6 feat(security): implement permission checks in tenant CRUD routes and enhance API error handling 2026-01-14 17:34:02 -06:00
4f38328031 refactor(customs-brokers): streamline CustomsBroker interface and update API methods 2026-01-14 17:33:54 -06:00
fca122759c Implement multi-tenant permission management module
- Added Pydantic schemas for permission-related requests and responses in `schemas.py`.
- Created seed data for various permissions and roles in `seed.py`.
- Developed a `PermissionService` class in `service.py` to handle permission logic, including user role assignments and direct permission grants.
- Implemented unit tests for permission functionalities in `test_permissions.py`, covering role assignments, permission checks, and expiration handling.
- Seeded trailer types data in `trailer_types/seed.py`.
2026-01-14 15:55:44 -06:00
4079a0cc0f Refactor database models to use server defaults for boolean and timestamp fields
- Updated `TimestampMixin` to use `server_default` for `created_at` and `updated_at` fields.
- Modified various models in the `fa_classes`, `doc_types_dig`, `ports`, `units_of_measure`, `invoices`, `parts`, `trailers`, `licenses`, `tenants`, and `user_tenant` modules to set `server_default` for boolean fields and other relevant fields.
- Adjusted the `trailer_types` model to change the schema from `a76` to `public`.
- Implemented database migration execution during application startup in `main.py`.
- Removed old Alembic migration execution logic from the entrypoint script.
- Updated seed data for units of measure and removed unused seed files.
2026-01-14 15:54:37 -06:00
ae1d7f0c58 Se mejoro el disenio de agentes y clientes-proveedores 2026-01-14 12:47:01 -06:00
e16eafec1b Se esta disenando mejor la parte de partes 2026-01-13 18:05:59 -06:00
afb3669c59 feat(sidebar): add user and company initials display in avatar fallback 2026-01-13 17:16:55 -06:00
8a3d0eccec Merge pull request 'feat: update upload path to /api/uploads and improve URL handling in getBackendAssetUrl' (#55) from fix/production-assets into development
Reviewed-on: ADUANASOFT/anexo76#55
2026-01-13 21:45:17 +00:00
3622998e5b feat: update upload path to /api/uploads and improve URL handling in getBackendAssetUrl 2026-01-13 15:44:39 -06:00
0c43c252a4 Se completo la integracion del celery en la creacion de reportes 2026-01-13 14:22:15 -06:00
Galindo97
98c7fe3bb5 feat: Enhance invoice editing components with new dialogs and improved UI
- Added country selection dialog with search functionality.
- Introduced tariff fraction selection dialog with infinite scrolling and search.
- Implemented unit of measure selection dialog with search capabilities.
- Updated invoice editing UI to include new fields for line descriptions and identifiers.
- Improved layout and spacing for better user experience in invoice editing forms.
- Added API endpoints for fetching tariff fractions and units of measure with proper error handling.
2026-01-13 14:09:22 -06:00
c0d050daf0 Merge pull request 'feature/user-management-ui' (#54) from feature/user-management-ui into development
Reviewed-on: ADUANASOFT/anexo76#54
2026-01-13 19:07:29 +00:00
0a1b6cd1e0 feat(company): add logo upload functionality and update logo field size 2026-01-13 13:06:14 -06:00
c00107d921 feat: Implement user profile management with avatar upload and additional fields
- Added avatar_url, phone, bio, and preferences fields to UserTenant model.
- Updated UserService to handle user profile updates and retrieval.
- Created endpoints for getting and updating the current user's profile.
- Implemented avatar upload functionality with validation in routes.
- Enhanced frontend to manage user profile, including avatar preview and form handling.
- Added server-side logic for loading and updating user profile data.
- Updated .gitignore to include uploads directory.
2026-01-13 12:37:11 -06:00
9d8e1283a8 Merge branch 'development' into feature/reportes_facturas 2026-01-13 11:40:24 -06:00
6214973eaf Implementacion de celery y problemas con relacioines 2026-01-13 11:27:58 -06:00
dc6325a0f2 fix(sidebar): update group label from 'Projects' to 'Gestion' 2026-01-13 09:58:57 -06:00
f812d71508 feat: Implement user management service and frontend integration
- Added UserService to manage Keycloak users with license validation in the backend.
- Created API client for user management in the frontend.
- Developed user management page with functionalities to create, update, delete, and list users.
- Implemented user statistics retrieval and display.
- Added dialogs for user creation, editing, password change, and deletion confirmation.
2026-01-13 09:56:53 -06:00
34e71b3114 Merge pull request 'feature/dashboard' (#53) from feature/dashboard into development
Reviewed-on: ADUANASOFT/anexo76#53
2026-01-13 14:23:25 +00:00
e68f24fe20 feat(dashboard): add pedimentos metrics and chart data to dashboard service 2026-01-13 08:21:57 -06:00
3865a53c5c feat(dashboard): add dashboard module for business metrics and statistics
- Implemented DTOs for KPIs, activity items, chart data points, and dashboard statistics.
- Created API routes for fetching dashboard statistics, operations overview, and inventory metrics.
- Developed a service layer to handle the logic for generating dashboard statistics, including invoice metrics, client/provider metrics, and recent activity.
- Added frontend API client methods for fetching dashboard data.
- Created TypeScript types for dashboard data structures.
- Developed Svelte components for displaying recent activity, KPI cards, trend charts, and donut charts.
2026-01-12 18:09:06 -06:00
962e0a057b Merge pull request 'fix(api): add missing slashes in endpoint URLs for clients and unit measures' (#52) from fix/prod into development
Reviewed-on: ADUANASOFT/anexo76#52
2026-01-12 22:43:27 +00:00
a4f1b217b4 fix(api): add missing slashes in endpoint URLs for clients and unit measures 2026-01-12 16:42:43 -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
802ab8dc01 Merge pull request 'fix/unit_of_measure' (#51) from fix/unit_of_measure into development
Reviewed-on: ADUANASOFT/anexo76#51
2026-01-12 19:31:32 +00:00
Galindo97
659a9ea6cf fix(models): simplify foreign key constraints in UnitOfMeasureGeneral by removing tenant_id and company_id 2026-01-12 13:30:38 -06:00
7aa5b09d33 fix(models): simplify unique constraints by removing tenant_id and company_id 2026-01-12 12:49:58 -06:00
e960716fe4 Merge branch 'feature/invoices' into development 2026-01-12 12:31:22 -06:00
281b198950 Merge pull request 'fix(api): add missing slashes in endpoint URLs for reference data APIs' (#49) from fix/fetch into development
Reviewed-on: ADUANASOFT/anexo76#49
2026-01-12 18:24:35 +00:00
8dab1d6e46 feat: Implement Fixed Asset (FA) line item management
- Added new schemas for FA line items in the backend, including creation, update, and response DTOs.
- Updated existing line item schemas to include FA data.
- Modified database models to reflect new table names for line quantities and references.
- Enhanced ItemService to handle FA data during item creation and updates.
- Introduced new routes and service layer for FA line items, including CRUD operations.
- Updated frontend components to support FA line item data, including new fields and UI adjustments.
- Implemented data flattening for improved item display in the dashboard.
2026-01-12 12:23:40 -06:00
Galindo97
f4cebc1963 fix(api): add missing slashes in endpoint URLs for reference data APIs
- Added a trailing slash to the GET, POST, PUT, and DELETE requests for incoterms, invoice types, material types, payment methods, pedimento codes, pedimento regimens, sectors, states, transport modes, transport types, and valuation methods APIs.
- Ensured that the pagination endpoints include a leading slash before query parameters.
2026-01-12 12:23:04 -06:00