reportes v3

parent 15fb883f
......@@ -526,7 +526,7 @@ def PDFGenerator(request,purchase_id):
style3.fontSize = 19
# Header
im = Image(USERS_PATH + 'header.png', width=300, height=70)
im = Image(USERS_PATH + 'header.png', width=500, height=70)
im.hAlign = 'CENTER'
story.append(im)
......@@ -575,16 +575,22 @@ def PDFGenerator(request,purchase_id):
# Header
im = Image(USERS_PATH + 'header.png', width=300, height=70)
im = Image(USERS_PATH + 'header.png', width=500, height=70)
im.hAlign = 'CENTER'
story.append(im)
story.append(Spacer(1, .3 * inch))
story.append(Spacer(1, .5 * inch))
fecha = file[6:8] + "/" + file[4:6] + "/" + file[0:4]
story.append(Paragraph("<strong>"+fecha+"</strong>", styleN, ))
story.append(Spacer(1, .3 * inch))
# table with images
story.append(myTable(path1, SCL, file))
story.append(Spacer(1, .5 * inch))
story.append(Spacer(1, .2 * inch))
# add barchart and legend
......@@ -596,7 +602,7 @@ def PDFGenerator(request,purchase_id):
story.append(PageBreak())
# build our document with the list of flowables we put together
doc = SimpleDocTemplate(ruta + reporteDir + ".pdf", pagesize=letter, topMargin=5, title=searchInfo['report_name']+" "+searchInfo['title'],)
doc = SimpleDocTemplate(ruta + reporteDir + ".pdf", pagesize=letter, topMargin=7, title=searchInfo['report_name']+" "+searchInfo['title'],)
doc.build(story)
#return HttpResponse (request.POST.get('ruta'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment