UI for Carta Porte v3
This commit is contained in:
parent
0c7abf634b
commit
13a3c106c6
|
@ -1,4 +1,4 @@
|
|||
v 2.3.0 [01-Feb-2024]
|
||||
v 2.3.0 [01-Abr-2024]
|
||||
- Mejora: Soporte para complemento Carta Porte 3.0
|
||||
- **IMPORTANTE**: Aunque no lo uses, esto afecta al JS de facturación, por
|
||||
lo que tienes que forzar el refresco (CTRL+F5) si tienes algún problema.
|
||||
|
|
|
@ -630,7 +630,9 @@ class CFDI(object):
|
|||
atributos.update(datos['ine'])
|
||||
node_ine = ET.SubElement(self._complemento, 'ine:INE', atributos)
|
||||
if ine_key_entidad:
|
||||
attr = {'ClaveEntidad': ine_key_entidad, 'Ambito': ine_ambito}
|
||||
attr = {'ClaveEntidad': ine_key_entidad}
|
||||
if ine_ambito:
|
||||
attr['Ambito'] = ine_ambito
|
||||
node_entidad = ET.SubElement(node_ine, 'ine:Entidad', attr)
|
||||
attr = {'IdContabilidad': ine_id_conta}
|
||||
ET.SubElement(node_entidad, 'ine:Contabilidad', attr)
|
||||
|
|
|
@ -97,12 +97,16 @@ var invoices_controllers = {
|
|||
tv_invoice = $$('tv_invoice').getTabbar()
|
||||
tv_invoice.attachEvent('onChange', tv_invoice_change)
|
||||
|
||||
$$('grid_carta_mercancias').attachEvent('onItemClick', grid_carta_mercancias_click)
|
||||
$$('grid_carta_ubicaciones').attachEvent('onBeforeEditStop', grid_carta_ubicaciones_before_edit_stop)
|
||||
$$('cmd_carta_add_product').attachEvent('onItemClick', cmd_carta_add_product_click)
|
||||
$$('cmd_carta_copy_from_invoice').attachEvent('onItemClick', cmd_carta_copy_from_invoice_click)
|
||||
//~ CartaPorte
|
||||
$$('grid_ccp_ubicaciones').attachEvent('onBeforeEditStop', grid_ccp_ubicaciones_before_edit_stop)
|
||||
$$('grid_ccp_ubicaciones').attachEvent('onItemClick', grid_ccp_ubicaciones_click)
|
||||
$$('cmd_ccp_agregar_ubicacion').attachEvent('onItemClick', cmd_ccp_agregar_ubicacion_click)
|
||||
$$('grid_ccp_mercancias').attachEvent('onItemClick', grid_ccp_mercancias_click)
|
||||
$$('cmd_ccp_add_product').attachEvent('onItemClick', cmd_ccp_add_product_click)
|
||||
//~ $$('cmd_carta_copy_from_invoice').attachEvent('onItemClick', cmd_carta_copy_from_invoice_click)
|
||||
$$('cmd_carta_import_json').attachEvent('onItemClick', cmd_carta_import_json_click)
|
||||
|
||||
//~ ComercioExterior
|
||||
$$('cmd_import_json_comercioe').attachEvent('onItemClick', cmd_import_json_comercioe_click)
|
||||
$$('cmd_ce_import_ods').attachEvent('onItemClick', cmd_ce_import_ods_click)
|
||||
$$('cmd_ce_tipo_cambio').attachEvent('onItemClick', cmd_ce_tipo_cambio_click)
|
||||
|
@ -1259,8 +1263,8 @@ function grid_details_before_edit_start(id){
|
|||
}
|
||||
|
||||
|
||||
function grid_carta_ubicaciones_before_edit_stop(state, editor){
|
||||
var g = $$('grid_carta_ubicaciones')
|
||||
function grid_ccp_ubicaciones_before_edit_stop(state, editor){
|
||||
var g = $$('grid_ccp_ubicaciones')
|
||||
var row = g.getItem(editor.row)
|
||||
|
||||
if(editor.column != 'CodigoPostal'){
|
||||
|
@ -2806,8 +2810,14 @@ function cmd_invoice_ask_cancel_click(){
|
|||
}
|
||||
|
||||
|
||||
function cmd_carta_add_product_click(){
|
||||
var g = $$('grid_carta_mercancias')
|
||||
function cmd_ccp_agregar_ubicacion_click(){
|
||||
var g = $$('grid_ccp_ubicaciones')
|
||||
g.add({delete: '-', Pais: 'MEX'})
|
||||
}
|
||||
|
||||
|
||||
function cmd_ccp_add_product_click(){
|
||||
var g = $$('grid_ccp_mercancias')
|
||||
g.add({delete: '-'})
|
||||
}
|
||||
|
||||
|
@ -2855,7 +2865,15 @@ function cmd_carta_copy_from_invoice_click(){
|
|||
}
|
||||
|
||||
|
||||
function grid_carta_mercancias_click(id, e, node){
|
||||
function grid_ccp_ubicaciones_click(id, e, node){
|
||||
if(id.column != 'delete'){
|
||||
return
|
||||
}
|
||||
this.remove(id.row)
|
||||
}
|
||||
|
||||
|
||||
function grid_ccp_mercancias_click(id, e, node){
|
||||
if(id.column != 'delete'){
|
||||
return
|
||||
}
|
||||
|
|
|
@ -845,20 +845,66 @@ var controls_leyendas_fiscales = [
|
|||
]
|
||||
|
||||
|
||||
var opt_transporte_internacional = [
|
||||
var opt_ccp_transporte_internacional = [
|
||||
{id: 'Sí', value: 'Sí'},
|
||||
{id: 'No', value: 'No'},
|
||||
]
|
||||
|
||||
|
||||
var opt_entrada_salida = [
|
||||
var opt_ccp_regimen_aduanero = [
|
||||
{id: '', value: ''},
|
||||
{id: 'IMD', value: '[IMD] Definitivo de importación.'},
|
||||
{id: 'EXD', value: '[EXD] Definitivo de exportación.'},
|
||||
{id: 'ITR', value: '[ITR] Temporales de importación para retomar al extranjero en el mismo estado.'},
|
||||
{id: 'ITE', value: '[ITE] Temporales de importación para elaboración, transformación o reparación para empresas con programa IMMEX.'},
|
||||
{id: 'ETR', value: '[ETR] Temporales de exportación para retornar al país en el mismo estado.'},
|
||||
{id: 'ETE', value: '[ETE] Temporales de exportación para elaboración, transformación o reparación.'},
|
||||
{id: 'DFI', value: '[DFI] Depósito Fiscal.'},
|
||||
{id: 'RFE', value: '[RFE] Elaboración, transformación o reparación en recinto fiscalizado.'},
|
||||
{id: 'RFS', value: '[RFS] Recinto fiscalizado estratégico.'},
|
||||
{id: 'TRA', value: '[TRA] Tránsitos.'},
|
||||
]
|
||||
|
||||
|
||||
var opt_ccp_entrada_salida = [
|
||||
{id: '', value: ''},
|
||||
{id: 'Entrada', value: 'Entrada'},
|
||||
{id: 'Salida', value: 'Salida'},
|
||||
]
|
||||
|
||||
|
||||
var opt_origen_destino = [
|
||||
var opt_ccp_pais_origen = [
|
||||
{id: '', value: ''},
|
||||
]
|
||||
|
||||
|
||||
var opt_ccp_via_entrada = [
|
||||
{id: '', value: ''},
|
||||
{id: '01', value: '[01] Autotransporte'},
|
||||
{id: '02', value: '[02] Marítimo'},
|
||||
{id: '03', value: '[03] Aéreo'},
|
||||
{id: '04', value: '[04] Ferroviario'},
|
||||
]
|
||||
|
||||
|
||||
var opt_ccp_ubicacion_polo = [
|
||||
{id: '', value: ''},
|
||||
{id: '01', value: '[01] Coatzacoalcos I'},
|
||||
{id: '02', value: '[02] Coatzacoalcos II'},
|
||||
{id: '03', value: '[03] Texistepec'},
|
||||
{id: '04', value: '[04] San Juan Evangelista'},
|
||||
{id: '05', value: '[05] Salina Cruz'},
|
||||
{id: '06', value: '[06] San Blas Atempa'},
|
||||
]
|
||||
|
||||
|
||||
var opt_ccp_registro_istmo = [
|
||||
{id: '', value: ''},
|
||||
{id: 'Si', value: 'Sí'},
|
||||
]
|
||||
|
||||
|
||||
var opt_ccp_origen_destino = [
|
||||
{id: 'Origen', value: 'Origen'},
|
||||
{id: 'Destino', value: 'Destino'},
|
||||
]
|
||||
|
@ -873,12 +919,12 @@ var date_suggest = {
|
|||
}
|
||||
|
||||
|
||||
var opt_countries = [
|
||||
var opt_ccp_countries = [
|
||||
{id: 'MEX', value: 'México'},
|
||||
]
|
||||
|
||||
|
||||
var opt_carta_estados = [
|
||||
var opt_ccp_carta_estados = [
|
||||
{id: 'AGU', value: 'Aguascalientes'},
|
||||
{id: 'BCN', value: 'Baja California'},
|
||||
{id: 'BCS', value: 'Baja California Sur'},
|
||||
|
@ -915,18 +961,25 @@ var opt_carta_estados = [
|
|||
]
|
||||
|
||||
|
||||
var grid_cols_carta_ubicaciones = [
|
||||
var grid_cols_ccp_ubicaciones = [
|
||||
{id: 'id', header: 'ID', hidden: true},
|
||||
{id: 'delete', header: '', hidden: true, width: 30, css: 'delete'},
|
||||
{id: 'TipoUbicacion', header: 'Tipo de Ubicación', editor: 'select', options: opt_origen_destino, fillspace: 1},
|
||||
{id: 'delete', header: '', width: 30, css: 'delete'},
|
||||
{id: 'TipoUbicacion', header: 'TipoUbicacion', editor: 'select', options: opt_ccp_origen_destino, fillspace: 1},
|
||||
{id: 'IDUbicacion', header: 'IDUbicacion', hidden: true, editor: 'text', fillspace: 1},
|
||||
{id: 'RFCRemitenteDestinatario', header: 'RFC Rem/Des', editor: 'text', fillspace: 1},
|
||||
{id: 'NombreRemitenteDestinatario', header: 'Nombre Rem/Des', editor: 'text', fillspace: 1},
|
||||
{id: 'NumRegIdTrib', header: 'NumRegIdTrib', hidden: true, editor: 'text', fillspace: 1},
|
||||
{id: 'ResidenciaFiscal', header: 'ResidenciaFiscal', hidden: true, editor: 'text', fillspace: 1},
|
||||
{id: 'NumEstacion', header: 'NumEstacion', hidden: true, editor: 'text', fillspace: 1},
|
||||
{id: 'NombreEstacion', header: 'NombreEstacion', hidden: true, editor: 'text', fillspace: 1},
|
||||
{id: 'NavegacionTrafico', header: 'NavegacionTrafico', hidden: true, editor: 'text', fillspace: 1},
|
||||
{id: 'FechaHoraSalidaLlegada', header: 'Fecha/Hora', editor: 'date', suggest: date_suggest, format: webix.Date.dateToStr("%D, %d-%M-%Y %h:%i"), footer: 'Total distancia:', fillspace: 1},
|
||||
{id: 'TipoEstacion', header: 'TipoEstacion', hidden: true, editor: 'text', fillspace: 1},
|
||||
{id: 'DistanciaRecorrida', header: 'Distancia (KM)', editor: 'text', format: webix.i18n.numberFormat, css: 'right', footer: {content: 'summColumn', css: 'right'}, fillspace: 1},
|
||||
{id: 'Municipio', headerd: 'Municipio', editor: 'text', fillspace: 1},
|
||||
{id: 'Estado', headerd: 'Estado', editor: 'select', options: opt_carta_estados, fillspace: 1},
|
||||
{id: 'Pais', headerd: 'Pais', editor: 'select', options: opt_countries, fillspace: 1},
|
||||
{id: 'CodigoPostal', headerd: 'C.P.', editor: 'text', fillspace: 1},
|
||||
{id: 'Municipio', header: 'Municipio', editor: 'text', fillspace: 1},
|
||||
{id: 'Estado', header: 'Estado', editor: 'select', options: opt_ccp_carta_estados, fillspace: 1},
|
||||
{id: 'Pais', header: 'País', editor: 'select', options: opt_ccp_countries, fillspace: 1},
|
||||
{id: 'CodigoPostal', header: 'C.P.', editor: 'text', fillspace: 1},
|
||||
]
|
||||
//~ Calle
|
||||
//~ NumeroExterior
|
||||
|
@ -936,19 +989,29 @@ var grid_cols_carta_ubicaciones = [
|
|||
//~ Referencia
|
||||
|
||||
|
||||
var grid_cols_carta_mercancias = [
|
||||
var grid_cols_ccp_mercancias = [
|
||||
{id: 'id', header: 'ID', hidden: true},
|
||||
{id: 'delete', header: '', width: 30, css: 'delete'},
|
||||
{id: 'BienesTransp', header: 'Clave SAT', editor: 'text', fillspace: 1},
|
||||
//~ {id: 'ClaveSTCC', header: 'ClaveSTCC', editor: 'text', fillspace: 1},
|
||||
{id: 'Descripcion', header: 'Descripción', editor: 'text', fillspace: 1},
|
||||
{id: 'Cantidad', header: 'Cantidad', editor: 'text', format: webix.i18n.numberFormat, css: 'right', fillspace: 1},
|
||||
{id: 'ClaveUnidad', header: 'Unidad', editor: 'select', options: 'values/unitbykey', footer: 'Total peso:', fillspace: 1},
|
||||
//~ {id: 'ValorMercancia', header: 'Valor Mercancia', format: webix.i18n.priceFormat, css: 'right', footer: 'Total peso:', fillspace: 1},
|
||||
//~ {id: 'Unidad', header: 'Unidad', editor: 'text', fillspace: 1},
|
||||
//~ {id: 'Dimensiones', header: 'Dimensiones', editor: 'text', fillspace: 1},
|
||||
//~ {id: 'MaterialPeligroso', header: 'MaterialPeligroso', editor: 'text', fillspace: 1},
|
||||
//~ {id: 'CveMaterialPeligroso', header: 'CveMaterialPeligroso', editor: 'text', fillspace: 1},
|
||||
//~ {id: 'Embalaje', header: 'Embalaje', editor: 'text', fillspace: 1},
|
||||
//~ {id: 'DescripEmbalaje', header: 'DescripEmbalaje', editor: 'text', fillspace: 1},
|
||||
//~ {id: 'SectorCOFEPRIS', header: 'SectorCOFEPRIS', editor: 'text', fillspace: 1},
|
||||
{id: 'PesoEnKg', header: 'Peso (Kg)', format: webix.i18n.numberFormat, css: 'right', editor: 'text', footer: {content: 'summColumn', css: 'right'}, fillspace: 1},
|
||||
//~ {id: 'ValorMercancia', header: 'Valor Mercancia', format: webix.i18n.priceFormat, css: 'right', footer: 'Total peso:', fillspace: 1},
|
||||
//~ {id: 'Moneda', header: 'Moneda', editor: 'text', fillspace: 1},
|
||||
//~ {id: 'FraccionArancelaria', header: 'FraccionArancelaria', editor: 'text', fillspace: 1},
|
||||
]
|
||||
|
||||
|
||||
var opt_carta_tipo_permiso_sct = [
|
||||
var opt_ccp_tipo_permiso_sct = [
|
||||
{id: 'TPAF01', value: '[TPAF01] Autotransporte Federal de carga general.'},
|
||||
{id: 'TPAF02', value: '[TPAF02] Transporte privado de carga.'},
|
||||
{id: 'TPAF03', value: '[TPAF03] Autotransporte Federal de Carga Especializada de materiales y residuos peligrosos.'},
|
||||
|
@ -978,7 +1041,7 @@ var opt_carta_tipo_permiso_sct = [
|
|||
]
|
||||
|
||||
|
||||
var opt_config_auto = [
|
||||
var opt_ccp_config_auto = [
|
||||
{id: '', value: ''},
|
||||
{id: 'VL', value: '[VL] Vehículo ligero de carga (2 llantas en el eje delantero y 2 llantas en el eje trasero)'},
|
||||
{id: 'C2', value: '[C2] Camión Unitario (2 llantas en el eje delantero y 4 llantas en el eje trasero)'},
|
||||
|
@ -1017,7 +1080,7 @@ var opt_config_auto = [
|
|||
]
|
||||
|
||||
|
||||
var opt_carta_tipo_remolque = [
|
||||
var opt_ccp_tipo_remolque = [
|
||||
{id: '', value: ''},
|
||||
{id: 'CTR001', value: '[CTR001] Caballete'},
|
||||
{id: 'CTR002', value: '[CTR002] Caja'},
|
||||
|
@ -1053,27 +1116,41 @@ var opt_carta_tipo_remolque = [
|
|||
]
|
||||
|
||||
|
||||
var opt_carta_aseguradoras = [
|
||||
{id: 'General de Seguros', value: 'General de Seguros'},
|
||||
{id: 'Qualitas', value: 'Qualitas'},
|
||||
]
|
||||
//~ var opt_carta_aseguradoras = [
|
||||
//~ {id: 'General de Seguros', value: 'General de Seguros'},
|
||||
//~ {id: 'Qualitas', value: 'Qualitas'},
|
||||
//~ ]
|
||||
|
||||
|
||||
var grid_cols_carta_autotransporte = [
|
||||
var grid_cols_ccp_autotransporte = [
|
||||
{id: 'id', header: 'ID', hidden: true},
|
||||
{id: 'PermSCT', header: 'Tipo Permiso SCT', editor: 'select', options: opt_carta_tipo_permiso_sct, fillspace: 1},
|
||||
{id: 'NumPermisoSCT', header: 'Número Permiso SCT', editor: 'text', fillspace: 1},
|
||||
{id: 'ConfigVehicular', header: 'Clave Autotransporte', editor: 'select', options: opt_config_auto, fillspace: 1},
|
||||
{id: 'PermSCT', header: 'PermSCT', editor: 'select', options: opt_ccp_tipo_permiso_sct, fillspace: 1},
|
||||
{id: 'NumPermisoSCT', header: 'NumPermisoSCT', editor: 'text', fillspace: 1},
|
||||
{id: 'ConfigVehicular', header: 'ConfigVehicular', editor: 'select', options: opt_ccp_config_auto, fillspace: 1},
|
||||
{id: 'PesoBrutoVehicular', header: 'PesoBrutoVehicular', editor: 'text', format: webix.i18n.numberFormat, css: 'right', fillspace: 1},
|
||||
{id: 'PlacaVM', header: 'Placa', editor: 'text', fillspace: 1},
|
||||
{id: 'AnioModeloVM', header: 'Modelo (Año)', editor: 'text', fillspace: 1},
|
||||
{id: 'SubTipoRem', header: 'ST Remolque', editor: 'select', options: opt_carta_tipo_remolque, fillspace: 1},
|
||||
//~ {id: 'SubTipoRem', header: 'ST Remolque', editor: 'select', options: opt_ccp_tipo_remolque, fillspace: 1},
|
||||
//~ {id: 'Placa', header: 'Placa', editor: 'text', fillspace: 1},
|
||||
]
|
||||
var grid_cols_ccp_remolques = [
|
||||
{id: 'id', header: 'ID', hidden: true},
|
||||
{id: 'SubTipoRem', header: 'SubTipo Remolque', editor: 'select', options: opt_ccp_tipo_remolque, fillspace: 1},
|
||||
{id: 'Placa', header: 'Placa', editor: 'text', fillspace: 1},
|
||||
]
|
||||
var grid_cols_ccp_seguros = [
|
||||
{id: 'id', header: 'ID', hidden: true},
|
||||
{id: 'AseguraRespCivil', header: 'Aseguradora', editor: 'text', fillspace: 1},
|
||||
{id: 'PolizaRespCivil', header: 'Póliza', editor: 'text', fillspace: 1},
|
||||
//~ {id: 'AseguraMedAmbiente', header: 'AseguraMedAmbiente', editor: 'text', fillspace: 1},
|
||||
//~ {id: 'PolizaMedAmbiente', header: 'PolizaMedAmbiente', editor: 'text', fillspace: 1},
|
||||
//~ {id: 'AseguraCarga', header: 'AseguraCarga', editor: 'text', fillspace: 1},
|
||||
//~ {id: 'PolizaCarga', header: 'PolizaCarga', editor: 'text', fillspace: 1},
|
||||
//~ {id: 'PrimaSeguro', header: 'PrimaSeguro', editor: 'text', format: webix.i18n.numberFormat, css: 'right', fillspace: 1},
|
||||
]
|
||||
|
||||
|
||||
var opt_tipos_figura = [
|
||||
var opt_ccp_tipos_figura = [
|
||||
{id: '', value: ''},
|
||||
{id: '01', value: '[01] Operador'},
|
||||
{id: '02', value: '[02] Propietario'},
|
||||
|
@ -1082,101 +1159,163 @@ var opt_tipos_figura = [
|
|||
]
|
||||
|
||||
|
||||
var grid_cols_carta_tipos_figuras = [
|
||||
var grid_cols_ccp_tipos_figuras = [
|
||||
{id: 'id', header: 'ID', hidden: true},
|
||||
{id: 'TipoFigura', header: 'Tipo Figura', editor: 'select', options: opt_tipos_figura, fillspace: 1},
|
||||
{id: 'RFCFigura', header: 'RFC Figura', editor: 'text', fillspace: 1},
|
||||
{id: 'NombreFigura', header: 'Nombre Figura', editor: 'text', fillspace: 1},
|
||||
{id: 'NumLicencia', header: 'Número de Licencia', editor: 'text', fillspace: 1},
|
||||
{id: 'TipoFigura', header: 'TipoFigura', editor: 'select', options: opt_ccp_tipos_figura, fillspace: 1},
|
||||
{id: 'RFCFigura', header: 'RFCFigura', editor: 'text', fillspace: 1},
|
||||
{id: 'NumLicencia', header: 'NumLicencia', editor: 'text', fillspace: 1},
|
||||
{id: 'NombreFigura', header: 'NombreFigura', editor: 'text', fillspace: 1},
|
||||
//~ {id: 'NumRegIdTribFigura', header: 'NumRegIdTribFigura', editor: 'text', fillspace: 1},
|
||||
//~ {id: 'ResidenciaFiscalFigura', header: 'ResidenciaFiscalFigura', editor: 'text', fillspace: 1},
|
||||
{id: 'Municipio', header: 'Municipio', editor: 'text', fillspace: 1},
|
||||
{id: 'Estado', header: 'Estado', editor: 'select', options: opt_ccp_carta_estados, fillspace: 1},
|
||||
{id: 'Pais', header: 'País', editor: 'select', options: opt_ccp_countries, fillspace: 1},
|
||||
{id: 'CodigoPostal', header: 'C.P.', editor: 'text', fillspace: 1},
|
||||
]
|
||||
|
||||
|
||||
var grid_carta_ubicaciones = {
|
||||
var grid_ccp_ubicaciones = {
|
||||
view: 'datatable',
|
||||
id: 'grid_carta_ubicaciones',
|
||||
id: 'grid_ccp_ubicaciones',
|
||||
multiselect: false,
|
||||
adjust: true,
|
||||
autoheight: true,
|
||||
headermenu: true,
|
||||
editable: true,
|
||||
footer: true,
|
||||
columns: grid_cols_carta_ubicaciones,
|
||||
//~ data: data_tmp1,
|
||||
data: [
|
||||
{delete: '-', TipoUbicacion: 'Origen', Pais: 'MEX'},
|
||||
{delete: '-', TipoUbicacion: 'Destino', Pais: 'MEX'},
|
||||
]
|
||||
columns: grid_cols_ccp_ubicaciones,
|
||||
}
|
||||
|
||||
|
||||
var grid_carta_mercancias = {
|
||||
var grid_ccp_mercancias = {
|
||||
view: 'datatable',
|
||||
id: 'grid_carta_mercancias',
|
||||
id: 'grid_ccp_mercancias',
|
||||
multiselect: false,
|
||||
adjust: true,
|
||||
autoheight: true,
|
||||
headermenu: true,
|
||||
editable: true,
|
||||
footer: true,
|
||||
columns: grid_cols_carta_mercancias,
|
||||
columns: grid_cols_ccp_mercancias,
|
||||
}
|
||||
|
||||
|
||||
var grid_carta_autotransporte = {
|
||||
var grid_ccp_autotransporte = {
|
||||
view: 'datatable',
|
||||
id: 'grid_carta_autotransporte',
|
||||
id: 'grid_ccp_autotransporte',
|
||||
multiselect: false,
|
||||
adjust: true,
|
||||
autoheight: true,
|
||||
headermenu: true,
|
||||
editable: true,
|
||||
columns: grid_cols_carta_autotransporte,
|
||||
columns: grid_cols_ccp_autotransporte,
|
||||
data: [{id: 0}],
|
||||
//~ data: data_tmp2,
|
||||
}
|
||||
|
||||
|
||||
var grid_carta_tipos_figuras = {
|
||||
var grid_ccp_remolques = {
|
||||
view: 'datatable',
|
||||
id: 'grid_carta_tipos_figuras',
|
||||
id: 'grid_ccp_remolques',
|
||||
multiselect: false,
|
||||
adjust: true,
|
||||
autoheight: true,
|
||||
headermenu: true,
|
||||
editable: true,
|
||||
columns: grid_cols_carta_tipos_figuras,
|
||||
columns: grid_cols_ccp_remolques,
|
||||
data: [{id: 0}, {id: 1}],
|
||||
}
|
||||
var grid_ccp_seguros = {
|
||||
view: 'datatable',
|
||||
id: 'grid_ccp_seguros',
|
||||
multiselect: false,
|
||||
adjust: true,
|
||||
autoheight: true,
|
||||
headermenu: true,
|
||||
editable: true,
|
||||
columns: grid_cols_ccp_seguros,
|
||||
data: [{id: 0}],
|
||||
//~ data: data_tmp3,
|
||||
}
|
||||
|
||||
|
||||
var body_carta_mercancias = {rows:[
|
||||
var grid_ccp_tipos_figuras = {
|
||||
view: 'datatable',
|
||||
id: 'grid_ccp_tipos_figuras',
|
||||
multiselect: false,
|
||||
adjust: true,
|
||||
autoheight: true,
|
||||
headermenu: true,
|
||||
editable: true,
|
||||
columns: grid_cols_ccp_tipos_figuras,
|
||||
data: [{id: 0}],
|
||||
}
|
||||
|
||||
|
||||
var body_ccp_ubicaciones = {rows:[
|
||||
{cols: [
|
||||
{view: 'button', id: 'cmd_carta_add_product', label: 'Agregar Mercancía', icon: 'plus',
|
||||
{view: 'button', id: 'cmd_ccp_agregar_ubicacion', label: 'Agregar Ubicación', icon: 'plus',
|
||||
type: 'iconButton', autowidth: true, align: 'center'},
|
||||
{view: 'button', id: 'cmd_carta_copy_from_invoice', label: 'Copiar de CFDI', icon: 'copy',
|
||||
{}]},
|
||||
{maxHeight: 10},
|
||||
grid_ccp_ubicaciones,
|
||||
]}
|
||||
|
||||
|
||||
var body_ccp_mercancias = {rows:[
|
||||
{cols: [
|
||||
{view: 'button', id: 'cmd_ccp_add_product', label: 'Agregar Mercancía', icon: 'plus',
|
||||
type: 'iconButton', autowidth: true, align: 'center'},
|
||||
//~ {view: 'button', id: 'cmd_carta_copy_from_invoice', label: 'Copiar de CFDI', icon: 'copy',
|
||||
//~ type: 'iconButton', autowidth: true, align: 'center'},
|
||||
{},
|
||||
{view: 'richselect', id: 'lst_carta_UnidadPeso', label: 'Unidad de Peso: ',
|
||||
labelWidth: 110, maxWidth: 300, options: '/satunidadespeso?opt=active'}
|
||||
]},
|
||||
{maxHeight: 10},
|
||||
grid_carta_mercancias,
|
||||
grid_ccp_mercancias,
|
||||
]}
|
||||
|
||||
|
||||
var body_carta_ubicaciones = {rows:[
|
||||
grid_carta_ubicaciones,
|
||||
var body_ccp_autotransporte = {rows:[
|
||||
grid_ccp_autotransporte,
|
||||
{maxHeight: 10},
|
||||
grid_ccp_remolques,
|
||||
{maxHeight: 10},
|
||||
grid_ccp_seguros,
|
||||
]}
|
||||
|
||||
|
||||
var body_carta_autotransporte = {rows:[
|
||||
grid_carta_autotransporte,
|
||||
var body_ccp_tipos_figuras = {rows:[
|
||||
grid_ccp_tipos_figuras,
|
||||
]}
|
||||
|
||||
|
||||
var body_carta_tipos_figuras = {rows:[
|
||||
grid_carta_tipos_figuras,
|
||||
var body_cp_datos_generales = {rows:[
|
||||
{cols: [{maxWidth: 15},
|
||||
{view: 'richselect', id: 'lst_cp_TranspInternac', labelPosition: 'top',
|
||||
label: 'TranspInternac', options: opt_ccp_transporte_internacional,
|
||||
value: 'No', readonly: true},
|
||||
{view: 'richselect', id: 'lst_cp_RegimenAduanero', labelPosition: 'top',
|
||||
label: 'RegimenAduanero', options: opt_ccp_regimen_aduanero,
|
||||
value: '', disabled: true},
|
||||
{view: 'richselect', id: 'lst_cp_EntradaSalidaMerc', labelPosition: 'top',
|
||||
label: 'EntradaSalidaMerc', options: opt_ccp_entrada_salida,
|
||||
value: '', disabled: true},
|
||||
{view: 'richselect', id: 'lst_cp_PaisOrigenDestino', labelPosition: 'top',
|
||||
label: 'PaisOrigenDestino', options: opt_ccp_pais_origen,
|
||||
value: '', disabled: true},
|
||||
{view: 'richselect', id: 'lst_cp_ViaEntradaSalida', labelPosition: 'top',
|
||||
label: 'ViaEntradaSalida', options: opt_ccp_via_entrada,
|
||||
value: '', disabled: true},
|
||||
]},
|
||||
{cols: [{maxWidth: 15},
|
||||
{view: 'richselect', id: 'lst_cp_RegistroISTMO', labelPosition: 'top',
|
||||
label: 'RegistroISTMO', options: opt_ccp_registro_istmo,
|
||||
value: '', readonly: false},
|
||||
{view: 'richselect', id: 'lst_cp_UbicacionPoloOrigen', labelPosition: 'top',
|
||||
label: 'UbicacionPoloOrigen', options: opt_ccp_ubicacion_polo,
|
||||
value: '', disabled: true},
|
||||
{view: 'richselect', id: 'lst_cp_UbicacionPoloDestino', labelPosition: 'top',
|
||||
label: 'UbicacionPoloDestino', options: opt_ccp_ubicacion_polo,
|
||||
value: '', disabled: true},
|
||||
{}]},
|
||||
]}
|
||||
|
||||
|
||||
|
@ -1189,24 +1328,11 @@ var controls_carta_porte = [
|
|||
{view: 'button', id: 'cmd_carta_import_ods', label: 'Importar ODS',
|
||||
icon: 'upload', type: 'iconButton', autowidth: true, align: 'center'},
|
||||
{maxWidth: 15}]},
|
||||
{view: 'fieldset', label: 'Mercancias', body: body_carta_mercancias},
|
||||
{cols: [{maxWidth: 15},
|
||||
{view: 'richselect', id: 'lst_carta_TranspInternac', labelPosition: 'top',
|
||||
label: 'Transporte Internacional', options: opt_transporte_internacional,
|
||||
value: 'No', readonly: true},
|
||||
{view: 'richselect', id: 'lst_carta_EntradaSalidaMerc', labelPosition: 'top',
|
||||
label: 'Entrada o Salida', options: opt_entrada_salida,
|
||||
value: '', disabled: true},
|
||||
{view: 'richselect', id: 'lst_carta_PaisOrigenDestino', labelPosition: 'top',
|
||||
label: 'País Origen/Destino', options: [],
|
||||
value: '', disabled: true},
|
||||
{view: 'richselect', id: 'lst_carta_ViaEntradaSalida', labelPosition: 'top',
|
||||
label: 'Vía de Entrada o Salida', options: [],
|
||||
value: '', disabled: true},
|
||||
]},
|
||||
{view: 'fieldset', label: 'Ubicaciones', body: body_carta_ubicaciones},
|
||||
{view: 'fieldset', label: 'Autotransporte', body: body_carta_autotransporte},
|
||||
{view: 'fieldset', label: 'Tipos Figura', body: body_carta_tipos_figuras},
|
||||
{view: 'fieldset', label: 'Datos generales', body: body_cp_datos_generales},
|
||||
{view: 'fieldset', label: 'Ubicaciones', body: body_ccp_ubicaciones},
|
||||
{view: 'fieldset', label: 'Mercancias', body: body_ccp_mercancias},
|
||||
{view: 'fieldset', label: 'Autotransporte', body: body_ccp_autotransporte},
|
||||
{view: 'fieldset', label: 'Tipos Figura', body: body_ccp_tipos_figuras},
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue