UI - CFDI relacionados

This commit is contained in:
Mauricio Baeza 2017-11-06 23:34:43 -06:00
parent 270072b029
commit 7bfa2552eb
3 changed files with 20 additions and 6 deletions

View File

@ -1128,3 +1128,8 @@ function grid_preinvoices_click(id, e, node){
} }
} }
function cmd_cfdi_relacionados_click(){
show('CFDI Relacionados, en desarrollo')
}

View File

@ -52,6 +52,7 @@ var controllers = {
$$('filter_month').attachEvent('onChange', filter_month_change) $$('filter_month').attachEvent('onChange', filter_month_change)
$$('filter_dates').attachEvent('onChange', filter_dates_change) $$('filter_dates').attachEvent('onChange', filter_dates_change)
$$('cmd_prefactura').attachEvent('onItemClick', cmd_prefactura_click) $$('cmd_prefactura').attachEvent('onItemClick', cmd_prefactura_click)
$$('cmd_cfdi_relacionados').attachEvent('onItemClick', cmd_cfdi_relacionados_click)
$$('lst_metodo_pago').attachEvent('onChange', lst_metodo_pago_change) $$('lst_metodo_pago').attachEvent('onChange', lst_metodo_pago_change)
var tb_invoice = $$('tv_invoice').getTabbar() var tb_invoice = $$('tv_invoice').getTabbar()

View File

@ -22,6 +22,12 @@ var toolbar_invoices_util = [
] ]
var toolbar_invoices_generate = {view: 'toolbar', elements: [{},
{view: 'button', id: 'cmd_cfdi_relacionados', label: 'CFDI Relacionados',
type: 'iconButton', autowidth: true, icon: 'file-o'},
]}
var months = [ var months = [
{id: -1, value: 'Todos'}, {id: -1, value: 'Todos'},
{id: 1, value: 'Enero'}, {id: 1, value: 'Enero'},
@ -97,7 +103,7 @@ var grid_invoices = {
obj.index = i + 1 obj.index = i + 1
}) })
} }
}, }
} }
@ -266,7 +272,9 @@ var body_regimen_fiscal = {
var controls_generate = [ var controls_generate = [
{minHeight: 15, maxHeight: 15}, {minHeight: 10, maxHeight: 10},
toolbar_invoices_generate,
{minHeight: 10, maxHeight: 10},
{cols: [ {rows:[ {cols: [ {rows:[
{view: 'fieldset', label: 'Buscar Cliente', body: {rows: [ {view: 'fieldset', label: 'Buscar Cliente', body: {rows: [
{cols: [ {cols: [
@ -314,10 +322,10 @@ var controls_generate = [
{cols: [{}, grid_totals]}, {cols: [{}, grid_totals]},
{minHeight: 15, maxHeight: 15}, {minHeight: 15, maxHeight: 15},
{margin: 20, cols: [{}, {margin: 20, cols: [{},
{view: "button", id: "cmd_timbrar", label: "Timbrar", {view: "button", id: "cmd_timbrar", label: "Timbrar", icon: 'ticket',
type: "form", autowidth: true, align:"center"}, type: 'iconButton', autowidth: true, align:"center"},
{view: "button", id: 'cmd_prefactura', label: "PreFactura", {view: "button", id: 'cmd_prefactura', label: "PreFactura",
type: "form", autowidth: true, align:"center"}, type: 'iconButton', autowidth: true, align: 'center', icon: 'file-o'},
{}] {}]
}, },
{rows: [ {rows: [
@ -374,7 +382,7 @@ var grid_preinvoices = {
resizeColumn: true, resizeColumn: true,
autoheight: true, autoheight: true,
headermenu: true, headermenu: true,
columns: grid_preinvoices_cols, columns: grid_preinvoices_cols
} }