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
|
||||
def _backup_companies():
|
||||
if DEBUG:
|
||||
return
|
||||
|
||||
_, filename = os.path.split(COMPANIES)
|
||||
if SEAFILE_SERVER:
|
||||
msg = '\tSincronizando backup RFCs...'
|
||||
|
|
|
@ -4069,6 +4069,7 @@ class Tickets(BaseModel):
|
|||
|
||||
row = {
|
||||
'id': obj.id,
|
||||
'serie': obj.serie,
|
||||
'folio': obj.folio,
|
||||
'fecha': obj.fecha,
|
||||
'estatus': obj.estatus,
|
||||
|
|
|
@ -701,7 +701,6 @@ function grid_tickets_click(id, e, node){
|
|||
print_ticket(id.row)
|
||||
return
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -709,6 +708,8 @@ function cmd_ticket_report_pdf_click(){
|
|||
webix.toPDF($$('grid_tickets'), {
|
||||
ignore: {'pdf': true, 'print': true},
|
||||
filename: 'Reporte_Tickets',
|
||||
width: 612,
|
||||
height: 792,
|
||||
columns:{
|
||||
index: true,
|
||||
serie: {width: 50},
|
||||
|
@ -722,5 +723,9 @@ function cmd_ticket_report_pdf_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',
|
||||
type: 'iconButton', autowidth: true, icon: 'file-code-o'},
|
||||
{},
|
||||
{view: 'button', id: 'cmd_ticket_report_pdf', label: 'Reporte [PDF]',
|
||||
type: 'iconButton', autowidth: true, icon: 'bars'},
|
||||
{view: 'button', id: 'cmd_ticket_report_xls', label: 'Reporte [XLS]',
|
||||
type: 'iconButton', autowidth: true, icon: 'bars'},
|
||||
{view: 'button', id: 'cmd_ticket_report_pdf', label: 'Reporte',
|
||||
type: 'iconButton', autowidth: true, icon: 'file-pdf-o'},
|
||||
{view: 'button', id: 'cmd_ticket_report_xls', label: 'Reporte',
|
||||
type: 'iconButton', autowidth: true, icon: 'table'},
|
||||
{},
|
||||
{view: 'button', id: 'cmd_cancelar_ticket', label: 'Cancelar',
|
||||
type: 'iconButton', autowidth: true, icon: 'ban'},
|
||||
|
|
Loading…
Reference in New Issue