diff --git a/frontend/src/lib/api/dashboard/a76/general_catalogs/company.ts b/frontend/src/lib/api/dashboard/a76/general_catalogs/company.ts
index ee507945..16cd3b02 100644
--- a/frontend/src/lib/api/dashboard/a76/general_catalogs/company.ts
+++ b/frontend/src/lib/api/dashboard/a76/general_catalogs/company.ts
@@ -1,6 +1,91 @@
import { api } from '$lib/api';
import type { ApiResponse } from '$lib/api';
+export interface CompanyAddress {
+ id?: number;
+ address_type: string;
+ street?: string | null;
+ exterior_number?: string | null;
+ interior_number?: string | null;
+ postal_code?: string | null;
+ neighborhood?: string | null;
+ city?: string | null;
+ municipality?: string | null;
+ state?: string | null;
+ country?: string | null;
+ phone?: string | null;
+ fax?: string | null;
+ email?: string | null;
+}
+
+export interface CompanyCertification {
+ id?: number;
+ is_certified_company?: string | null;
+ certified_company_registration?: string | null;
+ certified_company_start_date?: number | null;
+ certified_company_end_date?: number | null;
+ annex31_certification_date?: number | null;
+ annex31_certification_number?: string | null;
+ annex31_modality?: string | null;
+ annex31_company_type?: string | null;
+ annex31_renewal_date?: number | null;
+ annex31_final_certification_date?: number | null;
+ is_oea_company?: number | null;
+ neec_company?: number | null;
+}
+
+export interface CompanyDigitalCertificate {
+ id?: number;
+ certificate_type: string;
+ cer_file_path?: string | null;
+ key_file_path?: string | null;
+ password?: string | null;
+ access_key?: string | null;
+ cer_expiration_date?: number | null;
+ key_expiration_date?: number | null;
+}
+
+export interface CompanyVU {
+ id?: number;
+ webservice_user?: string | null;
+ webservice_password?: string | null;
+ email?: string | null;
+ figure_type?: string | null;
+ central_path?: string | null;
+ xml_files_path?: string | null;
+ query_rfc?: string | null;
+ validation_rfc?: string | null;
+ configuration_source?: string | null;
+ measurement_units?: string | null;
+}
+
+export interface CompanyElectronicAgent {
+ id?: number;
+ input_folder?: string | null;
+ output_folder?: string | null;
+ send_mask?: string | null;
+ response_mask?: string | null;
+ response_extension?: string | null;
+ counter_start?: number | null;
+ counter_end?: number | null;
+ counter_next?: number | null;
+}
+
+export interface CompanyPrevalidator {
+ id?: number;
+ customs?: string | null;
+ key?: string | null;
+ patent?: string | null;
+ description?: string | null;
+}
+
+export interface CompanyCFDI {
+ id?: number;
+ xml_save_path?: string | null;
+ cfdi_app_path?: string | null;
+ pac_app_path?: string | null;
+}
+
export interface Company {
id: number;
tenant_id: number;
@@ -32,6 +117,116 @@ export interface Company {
inter_db_name?: string | null;
prevalidator_key?: string | null;
seventh_amendment?: boolean;
+ // Sectores
+ sector1?: string | null;
+ sector2?: string | null;
+ sector3?: string | null;
+ // Flags técnicos
+ active_labels?: number | null;
+ active_fractions?: number | null;
+ activate_caat?: number | null;
+ trans_interface?: number | null;
+ american_costs?: number | null;
+ scaf_readonly?: number | null;
+ parts_replacement?: number | null;
+ activate_facmexame?: number | null;
+ part_reference?: number | null;
+ international_firm?: number | null;
+ // Configuraciones
+ ftp_key?: string | null;
+ sifra_path?: string | null;
+ version_type?: string | null;
+ sql_language?: string | null;
+ balance_operation_mode?: string | null;
+ // Campos de certificación (CompanyCertification aplanado)
+ is_certified_company?: string | null;
+ certified_company_registration?: string | null;
+ certified_company_start_date?: number | null;
+ certified_company_end_date?: number | null;
+ annex31_certification_date?: number | null;
+ annex31_certification_number?: string | null;
+ annex31_modality?: string | null;
+ annex31_company_type?: string | null;
+ annex31_renewal_date?: number | null;
+ annex31_final_certification_date?: number | null;
+ is_oea_company?: number | null;
+ neec_company?: number | null;
+ // Campos de dirección principal (CompanyAddress - main)
+ main_street?: string | null;
+ main_exterior_number?: string | null;
+ main_interior_number?: string | null;
+ main_postal_code?: string | null;
+ main_neighborhood?: string | null;
+ main_city?: string | null;
+ main_municipality?: string | null;
+ main_state?: string | null;
+ main_country?: string | null;
+ main_phone?: string | null;
+ main_fax?: string | null;
+ main_email?: string | null;
+ // Campos de dirección industrial 1 (CompanyAddress - industrial1)
+ ind1_street?: string | null;
+ ind1_exterior_number?: string | null;
+ ind1_interior_number?: string | null;
+ ind1_postal_code?: string | null;
+ ind1_neighborhood?: string | null;
+ ind1_city?: string | null;
+ ind1_municipality?: string | null;
+ ind1_state?: string | null;
+ ind1_country?: string | null;
+ ind1_phone?: string | null;
+ ind1_fax?: string | null;
+ ind1_email?: string | null;
+ // Campos de dirección industrial 2 (CompanyAddress - industrial2)
+ ind2_street?: string | null;
+ ind2_exterior_number?: string | null;
+ ind2_interior_number?: string | null;
+ ind2_postal_code?: string | null;
+ ind2_neighborhood?: string | null;
+ ind2_city?: string | null;
+ ind2_municipality?: string | null;
+ ind2_state?: string | null;
+ ind2_country?: string | null;
+ ind2_phone?: string | null;
+ ind2_fax?: string | null;
+ ind2_email?: string | null;
+ // Campos de prevalidador (CompanyPrevalidator aplanado)
+ prev_customs?: string | null;
+ prev_key?: string | null;
+ prev_patent?: string | null;
+ prev_description?: string | null;
+ // Campos de ventanilla única (CompanyVU aplanado)
+ vu_webservice_user?: string | null;
+ vu_webservice_password?: string | null;
+ vu_email?: string | null;
+ vu_figure_type?: string | null;
+ vu_central_path?: string | null;
+ vu_xml_files_path?: string | null;
+ vu_query_rfc?: string | null;
+ vu_validation_rfc?: string | null;
+ vu_configuration_source?: string | null;
+ vu_measurement_units?: string | null;
+ // Campos de agente aduanal electrónico (CompanyElectronicAgent aplanado)
+ ea_input_folder?: string | null;
+ ea_output_folder?: string | null;
+ ea_send_mask?: string | null;
+ ea_response_mask?: string | null;
+ ea_response_extension?: string | null;
+ ea_counter_start?: number | null;
+ ea_counter_end?: number | null;
+ ea_counter_next?: number | null;
+ // Campos de CFDI (CompanyCFDI aplanado)
+ cfdi_xml_save_path?: string | null;
+ cfdi_app_path?: string | null;
+ cfdi_pac_app_path?: string | null;
+ // Submodelos
+ addresses?: CompanyAddress[];
+ certification?: CompanyCertification | null;
+ digital_certificates?: CompanyDigitalCertificate[];
+ ventanilla_unica?: CompanyVU | null;
+ electronic_agent?: CompanyElectronicAgent | null;
+ prevalidator?: CompanyPrevalidator | null;
+ cfdi?: CompanyCFDI | null;
created_at: string | null;
updated_at: string | null;
}
diff --git a/frontend/src/lib/config/shortcuts/dashboard/general_catalogs/company_information/edit.ts b/frontend/src/lib/config/shortcuts/dashboard/general_catalogs/company_information/edit.ts
index 4abae76c..775ae7ac 100644
--- a/frontend/src/lib/config/shortcuts/dashboard/general_catalogs/company_information/edit.ts
+++ b/frontend/src/lib/config/shortcuts/dashboard/general_catalogs/company_information/edit.ts
@@ -6,16 +6,15 @@ export const obtenerAtajosFormularioEmpresa = (acciones: {
manejarCerrar: () => void;
}): ShortcutDef[] => [
{ key: 'Alt+Digit1', description: 'Pestaña General', action: () => acciones.cambiarPestana('general') },
- { key: 'Alt+Digit2', description: 'Pestaña Programas', action: () => acciones.cambiarPestana('programas') },
+ { key: 'Alt+Digit2', description: 'Pestaña Programa', action: () => acciones.cambiarPestana('programa') },
{ key: 'Alt+Digit3', description: 'Pestaña Responsable', action: () => acciones.cambiarPestana('responsable') },
- { key: 'Alt+Digit4', description: 'Pestaña Config', action: () => acciones.cambiarPestana('config') },
+ { key: 'Alt+Digit4', description: 'Pestaña Certificaciones', action: () => acciones.cambiarPestana('certificaciones') },
+ { key: 'Alt+Digit5', description: 'Pestaña Direcciones', action: () => acciones.cambiarPestana('direcciones') },
+ { key: 'Alt+Digit6', description: 'Pestaña Config', action: () => acciones.cambiarPestana('config') },
{
key: 'Control+KeyS',
description: 'Guardar Empresa',
- action: (e) => {
- e.preventDefault();
- acciones.manejarGuardar();
- }
+ action: () => acciones.manejarGuardar()
},
{
key: 'Escape',
diff --git a/frontend/src/routes/dashboard/clients_and_providers/edit/[[id]]/+page.svelte b/frontend/src/routes/dashboard/clients_and_providers/edit/[[id]]/+page.svelte
index d0821f13..ba7e4207 100644
--- a/frontend/src/routes/dashboard/clients_and_providers/edit/[[id]]/+page.svelte
+++ b/frontend/src/routes/dashboard/clients_and_providers/edit/[[id]]/+page.svelte
@@ -49,7 +49,7 @@
name: '',
short_name: '',
curp: '',
- client_or_provider: 'client',
+ client_or_provider: 'both',
type_nat_foreign: 'N',
responsible: '',
position: '',
@@ -224,7 +224,7 @@
} catch (e: any) {
console.error(e);
error = e.message || 'Error al guardar';
- toast.error(error);
+ toast.error(error || 'Error al guardar');
} finally {
loading = false;
}
@@ -314,7 +314,11 @@
-
+ (formData.client_or_provider = v)}
+ >
{typeLabels[formData.client_or_provider] || 'Selecciona un tipo'}
@@ -357,7 +361,11 @@
-
+ (formData.type_nat_foreign = v)}
+ >
{formData.type_nat_foreign === 'N'
? 'Nacional'
diff --git a/frontend/src/routes/dashboard/general_catalogs/company_information/edit/[[id]]/+page.svelte b/frontend/src/routes/dashboard/general_catalogs/company_information/edit/[[id]]/+page.svelte
index 536f922b..b01393f5 100644
--- a/frontend/src/routes/dashboard/general_catalogs/company_information/edit/[[id]]/+page.svelte
+++ b/frontend/src/routes/dashboard/general_catalogs/company_information/edit/[[id]]/+page.svelte
@@ -25,7 +25,8 @@
Building2,
FileText,
User,
- Settings
+ Settings,
+ MapPin
} from 'lucide-svelte';
// 1. Lógica de Navegación y Modo
@@ -80,7 +81,109 @@
broker_company: '',
inter_db_name: '',
prevalidator_key: '',
- seventh_amendment: false
+ seventh_amendment: false,
+ // Sectores
+ sector1: '',
+ sector2: '',
+ sector3: '',
+ // Certificaciones (CompanyCertification)
+ is_certified_company: '',
+ certified_company_registration: '',
+ certified_company_start_date: 0,
+ certified_company_end_date: 0,
+ annex31_certification_date: 0,
+ annex31_certification_number: '',
+ annex31_modality: '',
+ annex31_company_type: '',
+ annex31_renewal_date: 0,
+ annex31_final_certification_date: 0,
+ is_oea_company: 0,
+ neec_company: 0,
+ // Dirección Principal
+ main_street: '',
+ main_exterior_number: '',
+ main_interior_number: '',
+ main_postal_code: '',
+ main_neighborhood: '',
+ main_city: '',
+ main_municipality: '',
+ main_state: '',
+ main_country: '',
+ main_phone: '',
+ main_fax: '',
+ main_email: '',
+ // Dirección Industrial 1
+ ind1_street: '',
+ ind1_exterior_number: '',
+ ind1_interior_number: '',
+ ind1_postal_code: '',
+ ind1_neighborhood: '',
+ ind1_city: '',
+ ind1_municipality: '',
+ ind1_state: '',
+ ind1_country: '',
+ ind1_phone: '',
+ ind1_fax: '',
+ ind1_email: '',
+ // Dirección Industrial 2
+ ind2_street: '',
+ ind2_exterior_number: '',
+ ind2_interior_number: '',
+ ind2_postal_code: '',
+ ind2_neighborhood: '',
+ ind2_city: '',
+ ind2_municipality: '',
+ ind2_state: '',
+ ind2_country: '',
+ ind2_phone: '',
+ ind2_fax: '',
+ ind2_email: '',
+ // Configuraciones técnicas (flags)
+ active_labels: 0,
+ active_fractions: 0,
+ activate_caat: 0,
+ trans_interface: 0,
+ american_costs: 0,
+ scaf_readonly: 0,
+ parts_replacement: 0,
+ activate_facmexame: 0,
+ part_reference: 0,
+ international_firm: 0,
+ // Configuraciones avanzadas
+ ftp_key: '',
+ sifra_path: '',
+ version_type: '',
+ sql_language: '',
+ balance_operation_mode: '',
+ // Prevalidador (CompanyPrevalidator)
+ prev_customs: '',
+ prev_key: '',
+ prev_patent: '',
+ prev_description: '',
+ // Ventanilla Única (CompanyVU)
+ vu_webservice_user: '',
+ vu_webservice_password: '',
+ vu_email: '',
+ vu_figure_type: '',
+ vu_central_path: '',
+ vu_xml_files_path: '',
+ vu_query_rfc: '',
+ vu_validation_rfc: '',
+ vu_configuration_source: '',
+ vu_measurement_units: '',
+ // Agente Aduanal Electrónico (CompanyElectronicAgent)
+ ea_input_folder: '',
+ ea_output_folder: '',
+ ea_send_mask: '',
+ ea_response_mask: '',
+ ea_response_extension: '',
+ ea_counter_start: 0,
+ ea_counter_end: 0,
+ ea_counter_next: 0,
+ // CFDI (CompanyCFDI)
+ cfdi_xml_save_path: '',
+ cfdi_app_path: '',
+ cfdi_pac_app_path: ''
};
let formData = $state({ ...initialData });
@@ -128,7 +231,109 @@
broker_company: item.broker_company || '',
inter_db_name: item.inter_db_name || '',
prevalidator_key: item.prevalidator_key || '',
- seventh_amendment: item.seventh_amendment || false
+ seventh_amendment: item.seventh_amendment || false,
+ // Sectores
+ sector1: item.sector1 || '',
+ sector2: item.sector2 || '',
+ sector3: item.sector3 || '',
+ // Configuraciones técnicas (flags)
+ active_labels: item.active_labels || 0,
+ active_fractions: item.active_fractions || 0,
+ activate_caat: item.activate_caat || 0,
+ trans_interface: item.trans_interface || 0,
+ american_costs: item.american_costs || 0,
+ scaf_readonly: item.scaf_readonly || 0,
+ parts_replacement: item.parts_replacement || 0,
+ activate_facmexame: item.activate_facmexame || 0,
+ part_reference: item.part_reference || 0,
+ international_firm: item.international_firm || 0,
+ // Configuraciones avanzadas
+ ftp_key: item.ftp_key || '',
+ sifra_path: item.sifra_path || '',
+ version_type: item.version_type || '',
+ sql_language: item.sql_language || '',
+ balance_operation_mode: item.balance_operation_mode || '',
+ // Certificaciones
+ is_certified_company: item.is_certified_company || '',
+ certified_company_registration: item.certified_company_registration || '',
+ certified_company_start_date: item.certified_company_start_date || 0,
+ certified_company_end_date: item.certified_company_end_date || 0,
+ annex31_certification_date: item.annex31_certification_date || 0,
+ annex31_certification_number: item.annex31_certification_number || '',
+ annex31_modality: item.annex31_modality || '',
+ annex31_company_type: item.annex31_company_type || '',
+ annex31_renewal_date: item.annex31_renewal_date || 0,
+ annex31_final_certification_date: item.annex31_final_certification_date || 0,
+ is_oea_company: item.is_oea_company || 0,
+ neec_company: item.neec_company || 0,
+ // Direcciones - Principal
+ main_street: item.main_street || '',
+ main_exterior_number: item.main_exterior_number || '',
+ main_interior_number: item.main_interior_number || '',
+ main_postal_code: item.main_postal_code || '',
+ main_neighborhood: item.main_neighborhood || '',
+ main_city: item.main_city || '',
+ main_municipality: item.main_municipality || '',
+ main_state: item.main_state || '',
+ main_country: item.main_country || '',
+ main_phone: item.main_phone || '',
+ main_fax: item.main_fax || '',
+ main_email: item.main_email || '',
+ // Direcciones - Industrial 1
+ ind1_street: item.ind1_street || '',
+ ind1_exterior_number: item.ind1_exterior_number || '',
+ ind1_interior_number: item.ind1_interior_number || '',
+ ind1_postal_code: item.ind1_postal_code || '',
+ ind1_neighborhood: item.ind1_neighborhood || '',
+ ind1_city: item.ind1_city || '',
+ ind1_municipality: item.ind1_municipality || '',
+ ind1_state: item.ind1_state || '',
+ ind1_country: item.ind1_country || '',
+ ind1_phone: item.ind1_phone || '',
+ ind1_fax: item.ind1_fax || '',
+ ind1_email: item.ind1_email || '',
+ // Direcciones - Industrial 2
+ ind2_street: item.ind2_street || '',
+ ind2_exterior_number: item.ind2_exterior_number || '',
+ ind2_interior_number: item.ind2_interior_number || '',
+ ind2_postal_code: item.ind2_postal_code || '',
+ ind2_neighborhood: item.ind2_neighborhood || '',
+ ind2_city: item.ind2_city || '',
+ ind2_municipality: item.ind2_municipality || '',
+ ind2_state: item.ind2_state || '',
+ ind2_country: item.ind2_country || '',
+ ind2_phone: item.ind2_phone || '',
+ ind2_fax: item.ind2_fax || '',
+ ind2_email: item.ind2_email || '',
+ // Prevalidador
+ prev_customs: item.prev_customs || '',
+ prev_key: item.prev_key || '',
+ prev_patent: item.prev_patent || '',
+ prev_description: item.prev_description || '',
+ // Ventanilla Única
+ vu_webservice_user: item.vu_webservice_user || '',
+ vu_webservice_password: item.vu_webservice_password || '',
+ vu_email: item.vu_email || '',
+ vu_figure_type: item.vu_figure_type || '',
+ vu_central_path: item.vu_central_path || '',
+ vu_xml_files_path: item.vu_xml_files_path || '',
+ vu_query_rfc: item.vu_query_rfc || '',
+ vu_validation_rfc: item.vu_validation_rfc || '',
+ vu_configuration_source: item.vu_configuration_source || '',
+ vu_measurement_units: item.vu_measurement_units || '',
+ // Agente Aduanal Electrónico
+ ea_input_folder: item.ea_input_folder || '',
+ ea_output_folder: item.ea_output_folder || '',
+ ea_send_mask: item.ea_send_mask || '',
+ ea_response_mask: item.ea_response_mask || '',
+ ea_response_extension: item.ea_response_extension || '',
+ ea_counter_start: item.ea_counter_start || 0,
+ ea_counter_end: item.ea_counter_end || 0,
+ ea_counter_next: item.ea_counter_next || 0,
+ // CFDI
+ cfdi_xml_save_path: item.cfdi_xml_save_path || '',
+ cfdi_app_path: item.cfdi_app_path || '',
+ cfdi_pac_app_path: item.cfdi_pac_app_path || ''
};
// Guardar la URL del logo actual si existe
if (item.logo) {
@@ -247,6 +452,108 @@
inter_db_name: clean(formData.inter_db_name),
prevalidator_key: clean(formData.prevalidator_key),
seventh_amendment: formData.seventh_amendment,
+ // Sectores
+ sector1: clean(formData.sector1),
+ sector2: clean(formData.sector2),
+ sector3: clean(formData.sector3),
+ // Configuraciones técnicas (flags)
+ active_labels: Number(formData.active_labels) || 0,
+ active_fractions: Number(formData.active_fractions) || 0,
+ activate_caat: Number(formData.activate_caat) || 0,
+ trans_interface: Number(formData.trans_interface) || 0,
+ american_costs: Number(formData.american_costs) || 0,
+ scaf_readonly: Number(formData.scaf_readonly) || 0,
+ parts_replacement: Number(formData.parts_replacement) || 0,
+ activate_facmexame: Number(formData.activate_facmexame) || 0,
+ part_reference: Number(formData.part_reference) || 0,
+ international_firm: Number(formData.international_firm) || 0,
+ // Configuraciones avanzadas
+ ftp_key: clean(formData.ftp_key),
+ sifra_path: clean(formData.sifra_path),
+ version_type: clean(formData.version_type),
+ sql_language: clean(formData.sql_language),
+ balance_operation_mode: clean(formData.balance_operation_mode),
+ // Certificaciones
+ is_certified_company: clean(formData.is_certified_company),
+ certified_company_registration: clean(formData.certified_company_registration),
+ certified_company_start_date: Number(formData.certified_company_start_date) || 0,
+ certified_company_end_date: Number(formData.certified_company_end_date) || 0,
+ annex31_certification_date: Number(formData.annex31_certification_date) || 0,
+ annex31_certification_number: clean(formData.annex31_certification_number),
+ annex31_modality: clean(formData.annex31_modality),
+ annex31_company_type: clean(formData.annex31_company_type),
+ annex31_renewal_date: Number(formData.annex31_renewal_date) || 0,
+ annex31_final_certification_date: Number(formData.annex31_final_certification_date) || 0,
+ is_oea_company: Number(formData.is_oea_company) || 0,
+ neec_company: Number(formData.neec_company) || 0,
+ // Direcciones - Principal
+ main_street: clean(formData.main_street),
+ main_exterior_number: clean(formData.main_exterior_number),
+ main_interior_number: clean(formData.main_interior_number),
+ main_postal_code: clean(formData.main_postal_code),
+ main_neighborhood: clean(formData.main_neighborhood),
+ main_city: clean(formData.main_city),
+ main_municipality: clean(formData.main_municipality),
+ main_state: clean(formData.main_state),
+ main_country: clean(formData.main_country),
+ main_phone: clean(formData.main_phone),
+ main_fax: clean(formData.main_fax),
+ main_email: clean(formData.main_email),
+ // Direcciones - Industrial 1
+ ind1_street: clean(formData.ind1_street),
+ ind1_exterior_number: clean(formData.ind1_exterior_number),
+ ind1_interior_number: clean(formData.ind1_interior_number),
+ ind1_postal_code: clean(formData.ind1_postal_code),
+ ind1_neighborhood: clean(formData.ind1_neighborhood),
+ ind1_city: clean(formData.ind1_city),
+ ind1_municipality: clean(formData.ind1_municipality),
+ ind1_state: clean(formData.ind1_state),
+ ind1_country: clean(formData.ind1_country),
+ ind1_phone: clean(formData.ind1_phone),
+ ind1_fax: clean(formData.ind1_fax),
+ ind1_email: clean(formData.ind1_email),
+ // Direcciones - Industrial 2
+ ind2_street: clean(formData.ind2_street),
+ ind2_exterior_number: clean(formData.ind2_exterior_number),
+ ind2_interior_number: clean(formData.ind2_interior_number),
+ ind2_postal_code: clean(formData.ind2_postal_code),
+ ind2_neighborhood: clean(formData.ind2_neighborhood),
+ ind2_city: clean(formData.ind2_city),
+ ind2_municipality: clean(formData.ind2_municipality),
+ ind2_state: clean(formData.ind2_state),
+ ind2_country: clean(formData.ind2_country),
+ ind2_phone: clean(formData.ind2_phone),
+ ind2_fax: clean(formData.ind2_fax),
+ ind2_email: clean(formData.ind2_email),
+ // Prevalidador
+ prev_customs: clean(formData.prev_customs),
+ prev_key: clean(formData.prev_key),
+ prev_patent: clean(formData.prev_patent),
+ prev_description: clean(formData.prev_description),
+ // Ventanilla Única
+ vu_webservice_user: clean(formData.vu_webservice_user),
+ vu_webservice_password: clean(formData.vu_webservice_password),
+ vu_email: clean(formData.vu_email),
+ vu_figure_type: clean(formData.vu_figure_type),
+ vu_central_path: clean(formData.vu_central_path),
+ vu_xml_files_path: clean(formData.vu_xml_files_path),
+ vu_query_rfc: clean(formData.vu_query_rfc),
+ vu_validation_rfc: clean(formData.vu_validation_rfc),
+ vu_configuration_source: clean(formData.vu_configuration_source),
+ vu_measurement_units: clean(formData.vu_measurement_units),
+ // Agente Aduanal Electrónico
+ ea_input_folder: clean(formData.ea_input_folder),
+ ea_output_folder: clean(formData.ea_output_folder),
+ ea_send_mask: clean(formData.ea_send_mask),
+ ea_response_mask: clean(formData.ea_response_mask),
+ ea_response_extension: clean(formData.ea_response_extension),
+ ea_counter_start: Number(formData.ea_counter_start) || 0,
+ ea_counter_end: Number(formData.ea_counter_end) || 0,
+ ea_counter_next: Number(formData.ea_counter_next) || 0,
+ // CFDI
+ cfdi_xml_save_path: clean(formData.cfdi_xml_save_path),
+ cfdi_app_path: clean(formData.cfdi_app_path),
+ cfdi_pac_app_path: clean(formData.cfdi_pac_app_path),
// Ensure optional booleans are passed correctly or default to false/null if needed
has_express_line: formData.has_express_line,
is_service_company: formData.is_service_company
@@ -312,6 +619,7 @@
+
@@ -382,7 +690,8 @@
-
+
+
-
-
-
+
+
+
Sectores
+
-
+
+
+
+
+
+
-
-
+
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
Certificaciones OEA/NEEC
+
+
-
-
+ (formData.is_oea_company = checked ? 1 : 0)}
+ />
+
-
-
+ (formData.neec_company = checked ? 1 : 0)}
+ />
+
-
+
+
+
+
+
Certificación General
+
-
+
+
+
+
+
+
+
+
+
+
+
Dirección Principal
+
+
+
+
+
+
Dirección Industrial 1
+
+
+
+
+
+
Dirección Industrial 2
+
+
+
+
+
+
+
+
+
Configuración General
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Configuraciones Técnicas
+
+
+ (formData.active_labels = checked ? 1 : 0)}
+ />
+
+
+
+ (formData.active_fractions = checked ? 1 : 0)}
+ />
+
+
+
+ (formData.activate_caat = checked ? 1 : 0)}
+ />
+
+
+
+ (formData.trans_interface = checked ? 1 : 0)}
+ />
+
+
+
+ (formData.american_costs = checked ? 1 : 0)}
+ />
+
+
+
+ (formData.scaf_readonly = checked ? 1 : 0)}
+ />
+
+
+
+ (formData.parts_replacement = checked ? 1 : 0)}
+ />
+
+
+
+ (formData.activate_facmexame = checked ? 1 : 0)}
+ />
+
+
+
+ (formData.part_reference = checked ? 1 : 0)}
+ />
+
+
+
+ (formData.international_firm = checked ? 1 : 0)}
+ />
+
+
+
+
+
+
+
+
Identificadores y Operación
+
+
+
+
+
+
Configuraciones Avanzadas
+
+
+
+
+
+
Prevalidador Aduanal
+
+
+
+
+
+
+
+
+
Agente Aduanal Electrónico
+
+
+
+
+
+
CFDI - Facturación Electrónica
+
+
+
@@ -502,19 +1541,27 @@
-
+
General
-
+
- Programas
+ Programa
Responsable
+
+
+ Certif.
+
+
+
+ Direcc.
+
Config
diff --git a/frontend/src/routes/dashboard/goods/parts/+page.svelte.backup b/frontend/src/routes/dashboard/goods/parts/+page.svelte.backup
deleted file mode 100644
index dae74cc6..00000000
--- a/frontend/src/routes/dashboard/goods/parts/+page.svelte.backup
+++ /dev/null
@@ -1,184 +0,0 @@
-
-
-
-
-
-
Catálogo de Partes
-
Gestiona las partes y componentes del sistema.
-
-
-
-
-
-
-
-
-
- Búsqueda Rápida
- Ingresa el número de parte o descripción para filtrar.
-
-
-
-
- e.key === 'Enter' && handleSearch()}
- />
-
-
-
- {#if isSearching || searchCode}
-
- {/if}
-
-
-
-
-
-
-
- {#if isSearching}
- Resultados de la búsqueda ({searchResults.length})
- {:else}
- Listado General ({partsList.length} registros)
- {/if}
-
-
-
- {#if listError}
-
- {listError}
-
- {/if}
-
- {}}
- />
-
-
-
\ No newline at end of file