2018-08-23 00:55:45 -05:00
|
|
|
//~ Empresa Libre
|
|
|
|
//~ Copyright (C) 2016-2018 Mauricio Baeza Servin (web@correolibre.net)
|
|
|
|
//~
|
|
|
|
//~ This program is free software: you can redistribute it and/or modify
|
|
|
|
//~ it under the terms of the GNU General Public License as published by
|
|
|
|
//~ the Free Software Foundation, either version 3 of the License, or
|
|
|
|
//~ (at your option) any later version.
|
|
|
|
//~
|
|
|
|
//~ This program is distributed in the hope that it will be useful,
|
|
|
|
//~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
//~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
//~ GNU General Public License for more details.
|
|
|
|
//~
|
|
|
|
//~ You should have received a copy of the GNU General Public License
|
|
|
|
//~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2017-11-16 22:49:17 -06:00
|
|
|
|
|
|
|
|
|
|
|
var toolbar_banco = [
|
|
|
|
{view: 'richselect', id: 'lst_cuentas_banco', label: 'Cuenta',
|
|
|
|
labelWidth: 100, options: []},
|
|
|
|
{view: 'text', id: 'txt_cuenta_moneda', label: 'Moneda', readonly: true},
|
|
|
|
{view: 'currency', id: 'txt_cuenta_saldo', label: 'Saldo', readonly: true,
|
|
|
|
inputAlign: 'right', value: 0}
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
var toolbar_filtro_cuenta = [
|
2018-02-12 23:51:42 -06:00
|
|
|
{view: 'richselect', id: 'filter_cuenta_year', label: 'Año',
|
2017-11-16 22:49:17 -06:00
|
|
|
labelAlign: 'right', labelWidth: 50, width: 150, options: []},
|
2018-02-12 23:51:42 -06:00
|
|
|
{view: 'richselect', id: 'filter_cuenta_month', label: 'Mes',
|
2017-11-16 22:49:17 -06:00
|
|
|
labelAlign: 'right', labelWidth: 50, width: 200, options: months},
|
2018-02-12 23:51:42 -06:00
|
|
|
{view: 'daterangepicker', id: 'filter_cuenta_dates', label: 'Fechas',
|
2017-11-16 22:49:17 -06:00
|
|
|
labelAlign: 'right', width: 300},
|
|
|
|
{},
|
2017-11-23 23:56:03 -06:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
var toolbar_movimientos_banco = [
|
2017-11-16 22:49:17 -06:00
|
|
|
{view: 'button', id: 'cmd_agregar_retiro', label: 'Retiro',
|
|
|
|
type: 'iconButton', autowidth: true, icon: 'minus'},
|
|
|
|
{view: 'button', id: 'cmd_agregar_deposito', label: 'Depósito',
|
|
|
|
type: 'iconButton', autowidth: true, icon: 'plus'},
|
2017-11-23 23:56:03 -06:00
|
|
|
{},
|
2018-08-28 01:02:35 -05:00
|
|
|
{view: 'button', id: 'cmd_complemento_pago', label: 'Factura de Pago',
|
2018-08-23 00:55:45 -05:00
|
|
|
type: 'iconButton', autowidth: true, icon: 'file-code-o'},
|
|
|
|
{},
|
2017-11-23 23:56:03 -06:00
|
|
|
{view: 'button', id: 'cmd_cancelar_movimiento', label: 'Cancelar',
|
|
|
|
type: 'iconButton', autowidth: true, icon: 'ban'},
|
2017-11-16 22:49:17 -06:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
var grid_cuentabanco_cols = [
|
|
|
|
{id: 'id', header:'ID', hidden: true},
|
|
|
|
{id: 'fecha', header: 'Fecha', width: 150},
|
|
|
|
{id: 'numero_operacion', header: 'Referencia'},
|
2018-08-23 00:55:45 -05:00
|
|
|
{id: 'way_payment', header: 'Forma de Pago', hidden: true},
|
2017-11-16 22:49:17 -06:00
|
|
|
{id: 'descripcion', header: ['Descripción', {content: 'textFilter'}],
|
|
|
|
fillspace:true},
|
|
|
|
{id: 'retiro', header: ['Retiro', {content: 'numberFilter'}],
|
|
|
|
width: 125, format: webix.i18n.priceFormat, css: 'right'},
|
|
|
|
{id: 'deposito', header: ['Depósito', {content: 'numberFilter'}],
|
|
|
|
width: 125, format: webix.i18n.priceFormat, css: 'right'},
|
|
|
|
{id: 'saldo', header: ['Saldo'],
|
|
|
|
width: 125, format: webix.i18n.priceFormat, css: 'right'},
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
var grid_cuentabanco = {
|
|
|
|
view: 'datatable',
|
|
|
|
id: 'grid_cuentabanco',
|
|
|
|
select: 'row',
|
|
|
|
adjust: true,
|
|
|
|
footer: true,
|
|
|
|
resizeColumn: true,
|
|
|
|
headermenu: true,
|
|
|
|
columns: grid_cuentabanco_cols,
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-11-22 00:46:23 -06:00
|
|
|
var grid_cfdi_por_pagar_cols = [
|
|
|
|
{id: 'index', header: '#', adjust: 'data', css: 'right'},
|
|
|
|
{id: 'id', header: 'ID', hidden: true},
|
|
|
|
{id: 'serie', header: 'Serie', adjust: 'data'},
|
2018-09-12 17:42:52 -05:00
|
|
|
{id: 'folio', header: ['Folio', {content: 'numberFilter'}], adjust: 'data', css: 'right'},
|
2017-11-22 00:46:23 -06:00
|
|
|
{id: 'uuid', header: 'UUID', width: 250, hidden: true},
|
|
|
|
{id: 'fecha', header: 'Fecha y Hora', width: 150, sort: 'date'},
|
|
|
|
{id: 'tipo_comprobante', header: 'Tipo', adjust: 'data'},
|
|
|
|
{id: 'estatus', header: 'Estatus', adjust: 'header'},
|
|
|
|
{id: 'cliente', header: ['Razón Social', {content: 'selectFilter'}],
|
|
|
|
fillspace:true, sort: 'string'},
|
|
|
|
{id: 'total', header: ['Total'], width: 125, sort: 'int',
|
|
|
|
format: webix.i18n.priceFormat, css: 'right'},
|
|
|
|
{id: 'saldo', header: ['Saldo'], width: 125, sort: 'int',
|
|
|
|
format: webix.i18n.priceFormat, css: 'right'},
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
var grid_cfdi_este_deposito_cols = [
|
|
|
|
{id: 'index', header: '#', adjust: 'data', css: 'right'},
|
|
|
|
{id: 'id', header: 'ID', hidden: true},
|
|
|
|
{id: 'serie', header: 'Serie', adjust: 'data'},
|
|
|
|
{id: 'folio', header: 'Folio', adjust: 'data', css: 'right'},
|
|
|
|
{id: 'uuid', header: 'UUID', width: 250, hidden: true},
|
|
|
|
{id: 'fecha', header: 'Fecha y Hora', width: 150, sort: 'date'},
|
|
|
|
{id: 'tipo_comprobante', header: 'Tipo', adjust: 'data'},
|
|
|
|
{id: 'estatus', header: 'Estatus', adjust: 'header'},
|
|
|
|
{id: 'cliente', header: ['Razón Social'], fillspace: true},
|
|
|
|
{id: 'total', header: ['Total'], width: 125, sort: 'int',
|
|
|
|
format: webix.i18n.priceFormat, css: 'right'},
|
|
|
|
{id: 'saldo', header: ['Saldo'], width: 125, sort: 'int',
|
|
|
|
format: webix.i18n.priceFormat, css: 'right'},
|
2017-11-22 01:03:42 -06:00
|
|
|
{id: 'importe', header: ['Este pago'], width: 125, sort: 'int',
|
2017-11-22 19:44:26 -06:00
|
|
|
format: webix.i18n.priceFormat, css: 'right', editor: 'text'},
|
2017-11-22 00:46:23 -06:00
|
|
|
]
|
|
|
|
|
|
|
|
|
2018-08-30 00:13:12 -05:00
|
|
|
var grid_cfdi_pay_cols = [
|
2018-08-23 00:55:45 -05:00
|
|
|
{id: 'index', header: '#', adjust: 'data', css: 'right',
|
|
|
|
footer: {content: 'countRows', colspan: 3, css: 'right'}},
|
|
|
|
{id: "id", header:"ID", hidden:true},
|
2018-08-28 01:02:35 -05:00
|
|
|
{id: 'serie', header: ["Serie"], adjust: "data", sort: 'string'},
|
2018-08-23 00:55:45 -05:00
|
|
|
{id: 'folio', header: ['Folio'], adjust: 'data',
|
|
|
|
sort: 'int', css: 'right', footer: {text: 'Facturas', colspan: 3}},
|
|
|
|
{id: "uuid", header: ["UUID"], adjust: "data",
|
|
|
|
sort:"string", hidden:true},
|
|
|
|
{id: "fecha", header: ["Fecha y Hora"],
|
|
|
|
adjust: "data", sort: "string"},
|
|
|
|
{id: "tipo_comprobante", header: ["Tipo"],
|
|
|
|
adjust: 'header', sort: 'string'},
|
|
|
|
{id: "estatus", header: ["Estatus"],
|
|
|
|
adjust: "data", sort:"string"},
|
2018-08-27 00:53:52 -05:00
|
|
|
{id: 'cliente', header: ['Razón Social'], fillspace: true},
|
2018-08-23 00:55:45 -05:00
|
|
|
{id: 'xml', header: 'XML', adjust: 'data', template: get_icon('xml')},
|
|
|
|
{id: 'pdf', header: 'PDF', adjust: 'data', template: get_icon('pdf')},
|
|
|
|
{id: 'email', header: '', adjust: 'data', template: get_icon('email')}
|
|
|
|
]
|
|
|
|
|
|
|
|
|
2018-08-24 00:52:59 -05:00
|
|
|
var grid_pay_related_cols = [
|
2018-08-23 00:55:45 -05:00
|
|
|
{id: 'index', header: '#', adjust: 'data', css: 'right'},
|
|
|
|
{id: 'id', header: 'ID', hidden: true},
|
|
|
|
{id: 'serie', header: 'Serie', adjust: 'data'},
|
|
|
|
{id: 'folio', header: 'Folio', adjust: 'data', css: 'right'},
|
|
|
|
{id: 'uuid', header: 'UUID', width: 250, hidden: true},
|
|
|
|
{id: 'fecha', header: 'Fecha y Hora', width: 150, sort: 'date'},
|
|
|
|
{id: 'tipo_comprobante', header: 'Tipo', adjust: 'data'},
|
|
|
|
{id: 'estatus', header: 'Estatus', adjust: 'header'},
|
|
|
|
{id: 'cliente', header: ['Razón Social'], fillspace: true},
|
|
|
|
{id: 'total', header: ['Total'], width: 125, sort: 'int',
|
|
|
|
format: webix.i18n.priceFormat, css: 'right'},
|
|
|
|
{id: 'saldo', header: ['Saldo'], width: 125, sort: 'int',
|
2018-08-24 00:52:59 -05:00
|
|
|
format: webix.i18n.priceFormat, css: 'right', css: 'right',
|
|
|
|
footer: 'Importe Depósito'},
|
2018-08-23 00:55:45 -05:00
|
|
|
{id: 'importe', header: ['Este pago'], width: 125, sort: 'int',
|
2018-08-24 00:52:59 -05:00
|
|
|
format: webix.i18n.priceFormat, css: 'right',
|
|
|
|
footer: {content: 'summColumn', css: 'right'}},
|
2018-08-23 00:55:45 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
|
2017-11-22 00:46:23 -06:00
|
|
|
var grid_cfdi_por_pagar = {
|
|
|
|
view: 'datatable',
|
|
|
|
id: 'grid_cfdi_por_pagar',
|
|
|
|
select: 'row',
|
2018-02-12 23:12:50 -06:00
|
|
|
multiselect: true,
|
2017-11-22 00:46:23 -06:00
|
|
|
autoConfig: false,
|
|
|
|
adjust: true,
|
|
|
|
height: 250,
|
|
|
|
resizeColumn: true,
|
|
|
|
headermenu: true,
|
|
|
|
drag: true,
|
|
|
|
columns: grid_cfdi_por_pagar_cols,
|
|
|
|
on:{
|
|
|
|
'data->onStoreUpdated':function(){
|
|
|
|
this.data.each(function(obj, i){
|
|
|
|
obj.index = i + 1
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var grid_cfdi_este_deposito = {
|
|
|
|
view: 'datatable',
|
|
|
|
id: 'grid_cfdi_este_deposito',
|
|
|
|
select: 'row',
|
2018-09-12 22:19:51 -05:00
|
|
|
multiselect: true,
|
2017-11-22 00:46:23 -06:00
|
|
|
autoConfig: false,
|
|
|
|
adjust: true,
|
|
|
|
height: 200,
|
|
|
|
resizeColumn: true,
|
|
|
|
headermenu: true,
|
|
|
|
drag: true,
|
2017-11-22 19:44:26 -06:00
|
|
|
editable: true,
|
2017-11-22 00:46:23 -06:00
|
|
|
columns: grid_cfdi_este_deposito_cols,
|
|
|
|
on:{
|
|
|
|
'data->onStoreUpdated':function(){
|
|
|
|
this.data.each(function(obj, i){
|
|
|
|
obj.index = i + 1
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-08-27 00:53:52 -05:00
|
|
|
var grid_cfdi_pay = {
|
2018-08-23 00:55:45 -05:00
|
|
|
view: 'datatable',
|
2018-08-27 00:53:52 -05:00
|
|
|
id: 'grid_cfdi_pay',
|
2018-08-23 00:55:45 -05:00
|
|
|
select: 'row',
|
|
|
|
autoConfig: false,
|
|
|
|
adjust: true,
|
|
|
|
autoheight: true,
|
|
|
|
resizeColumn: true,
|
|
|
|
headermenu: true,
|
2018-08-30 00:13:12 -05:00
|
|
|
columns: grid_cfdi_pay_cols,
|
2018-08-23 00:55:45 -05:00
|
|
|
on:{
|
|
|
|
'data->onStoreUpdated':function(){
|
|
|
|
this.data.each(function(obj, i){
|
|
|
|
obj.index = i + 1
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-08-24 00:52:59 -05:00
|
|
|
var grid_pay_related = {
|
2018-08-23 00:55:45 -05:00
|
|
|
view: 'datatable',
|
2018-08-24 00:52:59 -05:00
|
|
|
id: 'grid_pay_related',
|
2018-08-23 00:55:45 -05:00
|
|
|
select: 'row',
|
|
|
|
autoConfig: false,
|
|
|
|
adjust: true,
|
|
|
|
autoheight: true,
|
|
|
|
resizeColumn: true,
|
|
|
|
headermenu: true,
|
2018-08-24 00:52:59 -05:00
|
|
|
footer: true,
|
|
|
|
columns: grid_pay_related_cols,
|
2018-08-23 00:55:45 -05:00
|
|
|
on:{
|
|
|
|
'data->onStoreUpdated':function(){
|
|
|
|
this.data.each(function(obj, i){
|
|
|
|
obj.index = i + 1
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-11-21 00:48:51 -06:00
|
|
|
var toolbar_banco_retiro = [
|
|
|
|
{view: 'label', label: 'Agregar retiro de banco'},
|
|
|
|
{},
|
2017-11-22 00:46:23 -06:00
|
|
|
{view: 'button', id: 'cmd_guardar_retiro', label: 'Guardar Retiro',
|
|
|
|
type: 'iconButton', autowidth: true, icon: 'minus'},
|
2017-11-21 00:48:51 -06:00
|
|
|
{view: 'icon', click: '$$("multi_bancos").setValue("banco_home")',
|
|
|
|
icon: 'times-circle'}
|
|
|
|
]
|
|
|
|
|
|
|
|
|
2017-11-22 00:46:23 -06:00
|
|
|
var toolbar_banco_deposito = [
|
|
|
|
{view: 'label', label: 'Agregar depósito de banco'},
|
|
|
|
{},
|
|
|
|
{view: 'button', id: 'cmd_guardar_deposito', label: 'Guardar Depósito',
|
|
|
|
type: 'iconButton', autowidth: true, icon: 'plus'},
|
|
|
|
{view: 'icon', click: '$$("multi_bancos").setValue("banco_home")',
|
|
|
|
icon: 'times-circle'}
|
2017-11-21 00:48:51 -06:00
|
|
|
]
|
|
|
|
|
2017-11-22 00:46:23 -06:00
|
|
|
|
2018-08-27 00:53:52 -05:00
|
|
|
var toolbar_bank_pay = [
|
2018-08-23 00:55:45 -05:00
|
|
|
{view: 'label', label: 'Factura de pago'},
|
|
|
|
{},
|
2018-08-27 00:53:52 -05:00
|
|
|
{view: 'button', id: 'cmd_pay_stamp', label: 'Timbrar',
|
2018-08-23 00:55:45 -05:00
|
|
|
type: 'iconButton', autowidth: true, icon: 'ticket'},
|
2018-08-27 00:53:52 -05:00
|
|
|
{view: 'button', id: 'cmd_pay_cancel', label: 'Cancelar',
|
2018-08-23 00:55:45 -05:00
|
|
|
type: 'iconButton', autowidth: true, icon: 'ban'},
|
|
|
|
{},
|
|
|
|
{view: 'icon', click: '$$("multi_bancos").setValue("banco_home")',
|
|
|
|
icon: 'times-circle'}
|
|
|
|
]
|
|
|
|
|
|
|
|
|
2017-11-21 00:48:51 -06:00
|
|
|
var controls_banco_retiro = [
|
|
|
|
{view: 'toolbar', elements: toolbar_banco_retiro},
|
|
|
|
{cols: [
|
|
|
|
{view: 'datepicker', id: 'date_retiro', name: 'retiro_fecha',
|
|
|
|
label: 'Fecha', format: '%d-%M-%Y', labelAlign: 'right',
|
|
|
|
required: true, invalidMessage: 'Selecciona una fecha',
|
|
|
|
labelWidth: 125},
|
|
|
|
{view: 'search', id: 'time_retiro', name: 'retiro_hora',
|
|
|
|
label: 'Hora', icon: 'clock-o', labelAlign: 'right',
|
|
|
|
pattern:{mask: '##:##:##', allow:/[0-9]/g}, required: true,
|
|
|
|
invalidMessage: 'Captura una hora'},
|
|
|
|
{view: 'text', id: 'retiro_referencia', name: 'retiro_referencia',
|
|
|
|
label: 'Referencia', labelAlign: 'right'},
|
|
|
|
]},
|
|
|
|
{cols: [
|
|
|
|
{view: 'richselect', id: 'lst_retiro_forma_pago',
|
|
|
|
name: 'retiro_forma_pago', label: 'Forma de Pago', required: true,
|
|
|
|
options: [], labelWidth: 125, labelAlign: 'right'},
|
|
|
|
{view: 'currency', type: 'text', id: 'txt_retiro_importe',
|
|
|
|
name: 'retiro_importe', label: 'Importe', labelAlign: 'right',
|
|
|
|
required: true, invalidMessage: 'Captura un valor númerico',
|
|
|
|
inputAlign: 'right', value: ''}
|
|
|
|
]},
|
|
|
|
{cols: [
|
|
|
|
{view: 'text', id: 'retiro_descripcion', name: 'retiro_descripcion',
|
|
|
|
label: 'Descripción', labelAlign: 'right', required: true,
|
|
|
|
labelWidth: 125},
|
|
|
|
]},
|
2017-11-22 00:46:23 -06:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
var controls_banco_deposito = [
|
|
|
|
{view: 'toolbar', elements: toolbar_banco_deposito},
|
|
|
|
{cols: [
|
|
|
|
{view: 'datepicker', id: 'date_deposito', name: 'deposito_fecha',
|
|
|
|
label: 'Fecha', format: '%d-%M-%Y', labelAlign: 'right',
|
|
|
|
required: true, invalidMessage: 'Selecciona una fecha',
|
|
|
|
labelWidth: 125},
|
|
|
|
{view: 'search', id: 'time_deposito', name: 'deposito_hora',
|
|
|
|
label: 'Hora', icon: 'clock-o', labelAlign: 'right',
|
|
|
|
pattern:{mask: '##:##:##', allow:/[0-9]/g}, required: true,
|
|
|
|
invalidMessage: 'Captura una hora'},
|
|
|
|
{view: 'text', id: 'deposito_referencia', name: 'deposito_referencia',
|
|
|
|
label: 'Referencia', labelAlign: 'right'},
|
|
|
|
]},
|
|
|
|
{cols: [
|
|
|
|
{view: 'richselect', id: 'lst_deposito_forma_pago',
|
|
|
|
name: 'deposito_forma_pago', label: 'Forma de Pago', required: true,
|
|
|
|
options: [], labelWidth: 125, labelAlign: 'right'},
|
|
|
|
{view: 'currency', type: 'text', id: 'txt_deposito_importe',
|
|
|
|
name: 'deposito_importe', label: 'Importe', labelAlign: 'right',
|
|
|
|
required: true, invalidMessage: 'Captura un valor númerico',
|
|
|
|
inputAlign: 'right', value: ''}
|
|
|
|
]},
|
|
|
|
{cols: [
|
|
|
|
{view: 'textarea', id: 'deposito_descripcion', label: 'Descripción',
|
|
|
|
name: 'deposito_descripcion', labelAlign: 'right', required: true,
|
|
|
|
labelWidth: 125, height: 70},
|
|
|
|
]},
|
2018-02-12 23:12:50 -06:00
|
|
|
{cols: [
|
|
|
|
{view: 'label', label: '<b>Facturas por pagar: </b>'},
|
2018-09-06 18:15:54 -05:00
|
|
|
{view: 'button', id: 'cmd_invoice_payed', label: 'Solo marcar pagada',
|
|
|
|
type: 'iconButton', autowidth: true, icon: 'check-circle',
|
|
|
|
tooltip: 'No afecta a saldos'},
|
2018-02-12 23:12:50 -06:00
|
|
|
]},
|
2017-11-22 00:46:23 -06:00
|
|
|
grid_cfdi_por_pagar,
|
|
|
|
{view: 'label', label: '<b>Facturas a pagar en este depósito: </b>'},
|
|
|
|
grid_cfdi_este_deposito,
|
2017-11-21 00:48:51 -06:00
|
|
|
]
|
|
|
|
|
|
|
|
|
2018-08-27 00:53:52 -05:00
|
|
|
var controls_bank_pay = [
|
|
|
|
{view: 'toolbar', elements: toolbar_bank_pay},
|
2018-08-23 00:55:45 -05:00
|
|
|
{view: 'label', label: '<b>Este depósito: </b>'},
|
|
|
|
{cols: [
|
|
|
|
{view: 'datepicker', id: 'pay_date', name: 'pay_date',
|
|
|
|
label: 'Fecha', format: '%d-%M-%Y', labelAlign: 'right',
|
|
|
|
required: true, invalidMessage: 'Selecciona una fecha',
|
|
|
|
labelWidth: 125, readonly: true},
|
|
|
|
{view: 'search', id: 'pay_time', name: 'pay_time', label: 'Hora',
|
|
|
|
icon: 'clock-o', labelAlign: 'right', required: true,
|
|
|
|
readonly: true,
|
|
|
|
invalidMessage: 'Captura una hora'},
|
|
|
|
{view: 'text', id: 'pay_reference', name: 'pay_reference',
|
|
|
|
label: 'Referencia', labelAlign: 'right', readonly: true},
|
|
|
|
]},
|
|
|
|
{cols: [
|
2018-08-24 00:52:59 -05:00
|
|
|
{view: 'richselect', id: 'pay_way_payment', readonly: true,
|
2018-08-23 00:55:45 -05:00
|
|
|
name: 'pay_way_payment', label: 'Forma de Pago', required: true,
|
|
|
|
options: [], labelWidth: 125, labelAlign: 'right'},
|
|
|
|
{view: 'currency', type: 'text', id: 'pay_import', name: 'pay_import',
|
|
|
|
label: 'Importe', labelAlign: 'right', required: true, readonly: true,
|
|
|
|
invalidMessage: 'Captura un valor númerico', inputAlign: 'right'}
|
|
|
|
]},
|
|
|
|
{cols: [
|
|
|
|
{view: 'textarea', id: 'pay_description', label: 'Descripción',
|
|
|
|
name: 'pay_description', labelAlign: 'right', required: true,
|
|
|
|
labelWidth: 125, height: 70, readonly: true},
|
|
|
|
]},
|
|
|
|
{view: 'label', label: '<b>Facturas de pago de este depósito: </b>'},
|
2018-08-27 00:53:52 -05:00
|
|
|
grid_cfdi_pay,
|
2018-08-23 00:55:45 -05:00
|
|
|
{view: 'label', label: '<b>Facturas relacionadas en este pago: </b>'},
|
2018-08-24 00:52:59 -05:00
|
|
|
grid_pay_related
|
2018-08-23 00:55:45 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
|
2017-11-21 00:48:51 -06:00
|
|
|
var form_banco_retiro = {
|
|
|
|
type: 'space',
|
|
|
|
responsive: true,
|
|
|
|
cols: [{
|
|
|
|
view: 'form',
|
|
|
|
id: 'form_banco_retiro',
|
|
|
|
complexData: true,
|
|
|
|
scroll: true,
|
|
|
|
elements: controls_banco_retiro,
|
2017-11-22 00:46:23 -06:00
|
|
|
}],
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var form_banco_deposito = {
|
|
|
|
type: 'space',
|
|
|
|
responsive: true,
|
|
|
|
cols: [{
|
|
|
|
view: 'form',
|
|
|
|
id: 'form_banco_deposito',
|
|
|
|
complexData: true,
|
|
|
|
scroll: true,
|
|
|
|
elements: controls_banco_deposito,
|
|
|
|
}],
|
2017-11-21 00:48:51 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-08-27 00:53:52 -05:00
|
|
|
var form_bank_pay = {
|
2018-08-23 00:55:45 -05:00
|
|
|
type: 'space',
|
|
|
|
responsive: true,
|
|
|
|
cols: [{
|
|
|
|
view: 'form',
|
2018-08-27 00:53:52 -05:00
|
|
|
id: 'form_bank_pay',
|
2018-08-23 00:55:45 -05:00
|
|
|
complexData: true,
|
|
|
|
scroll: true,
|
2018-08-27 00:53:52 -05:00
|
|
|
elements: controls_bank_pay,
|
2018-08-23 00:55:45 -05:00
|
|
|
}],
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-11-16 22:49:17 -06:00
|
|
|
var multi_bancos = {
|
|
|
|
id: 'multi_bancos',
|
|
|
|
animate: true,
|
|
|
|
cells:[
|
2017-11-21 00:48:51 -06:00
|
|
|
{id: 'banco_home', rows:[
|
2017-11-16 22:49:17 -06:00
|
|
|
{view: 'toolbar', elements: toolbar_banco},
|
|
|
|
{view: 'toolbar', elements: toolbar_filtro_cuenta},
|
2017-11-23 23:56:03 -06:00
|
|
|
{view: 'toolbar', elements: toolbar_movimientos_banco},
|
2017-11-16 22:49:17 -06:00
|
|
|
grid_cuentabanco,
|
2017-11-21 00:48:51 -06:00
|
|
|
]},
|
2017-11-22 00:46:23 -06:00
|
|
|
{id: 'banco_retiro', rows: [form_banco_retiro]},
|
2018-08-23 00:55:45 -05:00
|
|
|
{id: 'banco_deposito', rows: [form_banco_deposito]},
|
2018-08-27 00:53:52 -05:00
|
|
|
{id: 'bank_pay', rows: [form_bank_pay]}
|
2017-11-16 22:49:17 -06:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var title_partners = 'Administración de Bancos'
|
|
|
|
var app_bancos = {
|
|
|
|
id: 'app_bancos',
|
|
|
|
rows:[
|
|
|
|
{view: 'template', id: 'th_bancos', type: 'header',
|
|
|
|
template: title_partners},
|
|
|
|
multi_bancos
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
|