feat: Remove debug logging for transportation data in invoice loading
This commit is contained in:
@@ -42,18 +42,7 @@
|
||||
codePedimentoRegimens?: any[];
|
||||
defaultOperationType?: number | null;
|
||||
defaultInvoiceType?: string | null;
|
||||
} = $props();
|
||||
|
||||
$effect(() => {
|
||||
console.log('GeneralTabForm - Datos recibidos:', {
|
||||
transporters: transporters?.length,
|
||||
vehicles: vehicles?.length,
|
||||
drivers: drivers?.length,
|
||||
trailers: trailers?.length,
|
||||
customsSections: customsSections?.length,
|
||||
codePedimentoRegimens: codePedimentoRegimens?.length
|
||||
});
|
||||
});
|
||||
} = $props();
|
||||
|
||||
if (!formData) {
|
||||
if (invoice) {
|
||||
@@ -203,18 +192,7 @@
|
||||
codePedimentoRegimens.filter(r =>
|
||||
r.type_code === String(formData.operation_type)
|
||||
)
|
||||
);
|
||||
|
||||
$effect(() => {
|
||||
console.log('Datos recibidos:', {
|
||||
transporters,
|
||||
vehicles,
|
||||
drivers,
|
||||
trailers,
|
||||
customsSections,
|
||||
codePedimentoRegimens
|
||||
});
|
||||
});
|
||||
);
|
||||
</script>
|
||||
|
||||
<!-- Layout de 2 columnas compacto -->
|
||||
|
||||
@@ -185,17 +185,7 @@ export const load: PageServerLoad = async ({ params, cookies, fetch, url }) => {
|
||||
const drivers = driversResponse.ok ? await driversResponse.json() : { items: [] };
|
||||
const trailers = trailersResponse.ok ? await trailersResponse.json() : { items: [] };
|
||||
const customsSections = customsSectionsResponse.ok ? await customsSectionsResponse.json() : { items: [] };
|
||||
const codePedimentoRegimens = codePedimentoRegimensResponse.ok ? await codePedimentoRegimensResponse.json() : { items: [] };
|
||||
|
||||
// Debug: log transportation data
|
||||
console.log('Transportation data loaded:', {
|
||||
transporters: transporters.items?.length || 0,
|
||||
vehicles: vehicles.items?.length || 0,
|
||||
drivers: drivers.items?.length || 0,
|
||||
trailers: trailers.items?.length || 0,
|
||||
customsSections: customsSections.items?.length || 0,
|
||||
codePedimentoRegimens: codePedimentoRegimens.items?.length || 0
|
||||
});
|
||||
const codePedimentoRegimens = codePedimentoRegimensResponse.ok ? await codePedimentoRegimensResponse.json() : { items: [] };
|
||||
const seals = sealsResponse.ok ? await sealsResponse.json() : { items: [] };
|
||||
const incoterms = incotermsResponse.ok ? await incotermsResponse.json() : { items: [] };
|
||||
const pedimentos = pedimentosResponse.ok ? await pedimentosResponse.json() : { items: [] };
|
||||
|
||||
Reference in New Issue
Block a user