Fix - Ticket #230
This commit is contained in:
parent
a8405a98fb
commit
a04f92fab8
|
@ -2010,21 +2010,37 @@ function cmd_invoice_save_note_click(){
|
|||
|
||||
|
||||
function cmd_invoice_report_pdf_click(){
|
||||
var d = new Date()
|
||||
var ds = d.toISOString().slice(0,10).replace(/-/g, "_")
|
||||
|
||||
webix.toPDF($$('grid_invoices'), {
|
||||
ignore: {'xml': true, 'pdf': true, 'zip': true, 'mail': true},
|
||||
filename: 'Reporte_de_Facturas',
|
||||
filename: 'Reporte_de_Facturas_' + ds,
|
||||
width: 612,
|
||||
height: 792,
|
||||
autowidth: true,
|
||||
//~ autowidth: true,
|
||||
filterHTML: true,
|
||||
fontSize: 8,
|
||||
padding: 5,
|
||||
header:{
|
||||
textAlign: 'center',
|
||||
fontSize: 9,
|
||||
},
|
||||
table:{
|
||||
fontSize: 8,
|
||||
},
|
||||
row:{
|
||||
padding: 0,
|
||||
},
|
||||
columns:{
|
||||
index: true,
|
||||
serie: {width: 50},
|
||||
folio: {width: 50},
|
||||
fecha: {width: 125},
|
||||
tipo_comprobante: {width: 25},
|
||||
estatus: true,
|
||||
total_mn: {css: 'right'},
|
||||
cliente: true,
|
||||
serie: {width: 40},
|
||||
folio: {width: 30},
|
||||
fecha: {width: 95},
|
||||
tipo_comprobante: {width: 20},
|
||||
estatus: {width: 50},
|
||||
total_mn: {width: 70},
|
||||
cliente: {width: 200},
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue