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