Mostrar cantidad de facturas
This commit is contained in:
parent
6476a3997f
commit
c8005aaad8
|
@ -1164,13 +1164,6 @@ def cancel_cfdi(uuid, pk12, rfc, auth):
|
|||
return data, result
|
||||
|
||||
|
||||
#~ def run_in_thread(fn, *args, **kwargs):
|
||||
#~ t = threading.Thread(target=fn, args=args, kwargs=kwargs)
|
||||
#~ t.daemon = True
|
||||
#~ t.start()
|
||||
#~ return
|
||||
|
||||
|
||||
def run_in_thread(fn):
|
||||
def run(*k, **kw):
|
||||
t = threading.Thread(target=fn, args=k, kwargs=kw)
|
||||
|
|
|
@ -56,11 +56,13 @@ function get_icon(tipo){
|
|||
|
||||
|
||||
var grid_invoices_cols = [
|
||||
{id: 'index', header: '#', adjust: 'data', css: 'right',
|
||||
footer: {content: 'rowCount', colspan: 3, css: 'right'}},
|
||||
{id: "id", header:"ID", hidden:true},
|
||||
{id: "serie", header: ["Serie", {content: "selectFilter"}], adjust: "data",
|
||||
sort:"string"},
|
||||
{id: "folio", header: ["Folio", {content: "numberFilter"}], adjust: "data",
|
||||
sort:"int", css: "cell_right"},
|
||||
{id: 'folio', header: ['Folio', {content: 'numberFilter'}], adjust: 'data',
|
||||
sort: 'int', css: 'right', footer: {text: 'Facturas', colspan: 3}},
|
||||
{id: "uuid", header: ["UUID", {content: "textFilter"}], adjust: "data",
|
||||
sort:"string", hidden:true},
|
||||
{id: "fecha", header: ["Fecha y Hora"],
|
||||
|
@ -89,7 +91,14 @@ var grid_invoices = {
|
|||
resizeColumn: true,
|
||||
headermenu: true,
|
||||
columns: grid_invoices_cols,
|
||||
};
|
||||
on:{
|
||||
'data->onStoreUpdated':function(){
|
||||
this.data.each(function(obj, i){
|
||||
obj.index = i + 1
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
var grid_details_cols = [
|
||||
|
|
Loading…
Reference in New Issue