Reportes de Tickets
This commit is contained in:
parent
14b4421eda
commit
ef08e750bb
|
@ -1552,6 +1552,9 @@ def _backup_and_sync(rfc, data):
|
||||||
|
|
||||||
@run_in_thread
|
@run_in_thread
|
||||||
def _backup_companies():
|
def _backup_companies():
|
||||||
|
if DEBUG:
|
||||||
|
return
|
||||||
|
|
||||||
_, filename = os.path.split(COMPANIES)
|
_, filename = os.path.split(COMPANIES)
|
||||||
if SEAFILE_SERVER:
|
if SEAFILE_SERVER:
|
||||||
msg = '\tSincronizando backup RFCs...'
|
msg = '\tSincronizando backup RFCs...'
|
||||||
|
|
|
@ -4069,6 +4069,7 @@ class Tickets(BaseModel):
|
||||||
|
|
||||||
row = {
|
row = {
|
||||||
'id': obj.id,
|
'id': obj.id,
|
||||||
|
'serie': obj.serie,
|
||||||
'folio': obj.folio,
|
'folio': obj.folio,
|
||||||
'fecha': obj.fecha,
|
'fecha': obj.fecha,
|
||||||
'estatus': obj.estatus,
|
'estatus': obj.estatus,
|
||||||
|
|
|
@ -701,7 +701,6 @@ function grid_tickets_click(id, e, node){
|
||||||
print_ticket(id.row)
|
print_ticket(id.row)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -709,6 +708,8 @@ function cmd_ticket_report_pdf_click(){
|
||||||
webix.toPDF($$('grid_tickets'), {
|
webix.toPDF($$('grid_tickets'), {
|
||||||
ignore: {'pdf': true, 'print': true},
|
ignore: {'pdf': true, 'print': true},
|
||||||
filename: 'Reporte_Tickets',
|
filename: 'Reporte_Tickets',
|
||||||
|
width: 612,
|
||||||
|
height: 792,
|
||||||
columns:{
|
columns:{
|
||||||
index: true,
|
index: true,
|
||||||
serie: {width: 50},
|
serie: {width: 50},
|
||||||
|
@ -722,5 +723,9 @@ function cmd_ticket_report_pdf_click(){
|
||||||
|
|
||||||
|
|
||||||
function cmd_ticket_report_xls_click(){
|
function cmd_ticket_report_xls_click(){
|
||||||
|
webix.toExcel($$('grid_tickets'), {
|
||||||
|
filename: 'Reporte_Tickets',
|
||||||
|
name: 'Tickets',
|
||||||
|
ignore: {'pdf': true, 'print': true},
|
||||||
|
})
|
||||||
}
|
}
|
|
@ -6,10 +6,10 @@ var toolbar_tickets = [
|
||||||
{view: 'button', id: 'cmd_ticket_to_invoice', label: 'Facturar',
|
{view: 'button', id: 'cmd_ticket_to_invoice', label: 'Facturar',
|
||||||
type: 'iconButton', autowidth: true, icon: 'file-code-o'},
|
type: 'iconButton', autowidth: true, icon: 'file-code-o'},
|
||||||
{},
|
{},
|
||||||
{view: 'button', id: 'cmd_ticket_report_pdf', label: 'Reporte [PDF]',
|
{view: 'button', id: 'cmd_ticket_report_pdf', label: 'Reporte',
|
||||||
type: 'iconButton', autowidth: true, icon: 'bars'},
|
type: 'iconButton', autowidth: true, icon: 'file-pdf-o'},
|
||||||
{view: 'button', id: 'cmd_ticket_report_xls', label: 'Reporte [XLS]',
|
{view: 'button', id: 'cmd_ticket_report_xls', label: 'Reporte',
|
||||||
type: 'iconButton', autowidth: true, icon: 'bars'},
|
type: 'iconButton', autowidth: true, icon: 'table'},
|
||||||
{},
|
{},
|
||||||
{view: 'button', id: 'cmd_cancelar_ticket', label: 'Cancelar',
|
{view: 'button', id: 'cmd_cancelar_ticket', label: 'Cancelar',
|
||||||
type: 'iconButton', autowidth: true, icon: 'ban'},
|
type: 'iconButton', autowidth: true, icon: 'ban'},
|
||||||
|
|
Loading…
Reference in New Issue