Santander
This commit is contained in:
@ -77,7 +77,6 @@
|
||||
<th>Documento</th>
|
||||
<th class="right aligned">Cargo</th>
|
||||
<th class="right aligned">Abono</th>
|
||||
<th class="right aligned">Saldo</th>
|
||||
<th>Centro de Costo</th>
|
||||
<th>Detalle</th>
|
||||
<th>Orden</th>
|
||||
@ -138,6 +137,24 @@
|
||||
})))) !!}'),
|
||||
}
|
||||
},
|
||||
dataTableConfig: {
|
||||
pageLength: 100,
|
||||
order: [[7, 'asc']],
|
||||
columnDefs: [
|
||||
{
|
||||
targets: [0, 2, 3, 4],
|
||||
width: '10%'
|
||||
},
|
||||
{
|
||||
targets: [1],
|
||||
width: '20%'
|
||||
},
|
||||
{
|
||||
targets: [7],
|
||||
visible: false
|
||||
}
|
||||
],
|
||||
},
|
||||
get() {
|
||||
return {
|
||||
bancos: inmobiliaria_rut => {
|
||||
@ -210,7 +227,6 @@
|
||||
documento: row.documento,
|
||||
cargo: row.cargo,
|
||||
abono: row.abono,
|
||||
saldo: row.saldo
|
||||
}
|
||||
})
|
||||
this.draw().cartola()
|
||||
@ -291,8 +307,6 @@
|
||||
$('<td></td>').addClass('right aligned').html(row.cargo === 0 ? '' : numberFormatter.format(row.cargo))
|
||||
).append(
|
||||
$('<td></td>').addClass('right aligned').html(row.abono === 0 ? '' : numberFormatter.format(row.abono))
|
||||
).append(
|
||||
$('<td></td>').addClass('right aligned').html(row.saldo === 0 ? '' : numberFormatter.format(row.saldo))
|
||||
).append(
|
||||
$('<td></td>').append(this.draw().centrosDropdown(idx + 1, row.cargo === 0))
|
||||
).append(
|
||||
@ -306,24 +320,7 @@
|
||||
)
|
||||
)
|
||||
})
|
||||
table.DataTable({
|
||||
pageLength: 100,
|
||||
order: [[8, 'asc']],
|
||||
columnDefs: [
|
||||
{
|
||||
targets: [1, 2, 3, 4, 5],
|
||||
width: '10%'
|
||||
},
|
||||
{
|
||||
targets: [1],
|
||||
width: '20%'
|
||||
},
|
||||
{
|
||||
targets: [8],
|
||||
visible: false
|
||||
}
|
||||
],
|
||||
})
|
||||
table.DataTable(this.dataTableConfig)
|
||||
},
|
||||
centrosDropdown: (idx, ingreso=true) => {
|
||||
const menu = $('<div></div>').addClass('menu')
|
||||
@ -336,7 +333,7 @@
|
||||
$('<div></div>').addClass('item').attr('data-value', centro.id).html(centro.id + ' - ' + centro.descripcion)
|
||||
)
|
||||
})
|
||||
return $('<div></div>').addClass('ui selection search dropdown centro').attr('data-index', idx).append(
|
||||
return $('<div></div>').addClass('ui selection search dropdown centro').attr('data-index', idx).css('width', '80%').append(
|
||||
$('<input />').attr('type', 'hidden').attr('name', 'centro' + idx)
|
||||
).append(
|
||||
$('<i></i>').addClass('dropdown icon')
|
||||
@ -375,7 +372,7 @@
|
||||
}
|
||||
$(this.ids.form.mes).calendar(calendar_date_options)
|
||||
$(this.ids.form.base).submit(this.parse().cartola)
|
||||
$(this.ids.table.base).DataTable()
|
||||
$(this.ids.table.base).DataTable(this.dataTableConfig)
|
||||
|
||||
$(this.ids.button).click(this.export().cartola)
|
||||
}
|
||||
|
Reference in New Issue
Block a user