def tabla_otros(self):
orden = self.orden_compra
p = ParagraphStyle('parrafos',
alignment = TA_CENTER,
fontSize = 8,
fontName="Times-Roman")
sub_total = Paragraph(u"SUBTOTAL: ",p)
igv = Paragraph(u"IGV: ",p)
total = Paragraph(u"TOTAL: ",p)
datos_otros = [[ Paragraph(u"LUGAR DE ENTREGA",p), Paragraph(u"PLAZO DE ENTREGA",p), Paragraph(u"FORMA DE PAGO",p),sub_total,orden.subtotal],
[Paragraph(EMPRESA.direccion(),p),Paragraph(u"INMEDIATA",p),Paragraph(orden.forma_pago.descripcion,p),igv,str(orden.igv)],
['','','',total,str(orden.total)],
]
tabla_otros = Table(datos_otros,colWidths=[5.5 * cm, 5 * cm, 5 * cm, 2 * cm, 2.5 * cm])
tabla_otros.setStyle(TableStyle(
[
('GRID', (0, 0), (2, 2), 1, colors.black),
('SPAN',(0,1),(0,2)),
('SPAN',(1,1),(1,2)),
('SPAN',(2,1),(2,2)),
('GRID', (4, 0), (4, 2), 1, colors.black),
('VALIGN',(0,1),(2,1),'MIDDLE'),
]
))
return tabla_otros
评论列表
文章目录