feat: Enhance Pedimentos CRUD operations with related data handling
- Updated PedimentosService to create and update related tables for Pedimentos. - Added company_id filtering in queries for Pedimentos. - Improved error handling and logging during creation and update processes. - Refactored router tags for consistency and clarity. - Adjusted API endpoints for customs brokers to include company_id in requests. - Enhanced company selection logic in various components to prioritize active company. - Implemented event listeners for company changes to reload data dynamically. - Updated frontend components to handle loading states and errors more effectively. - Ensured all relevant routes and API calls are aligned with the new company context.
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
error = null;
|
||||
|
||||
try {
|
||||
const response = await customsBrokersApi.delete(broker.broker_key);
|
||||
const response = await customsBrokersApi.delete(broker.broker_key, broker.company_id);
|
||||
|
||||
if (response.error) {
|
||||
error = response.error;
|
||||
|
||||
Reference in New Issue
Block a user