views.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:tambox 作者: joseamaya 项目源码 文件源码
def cuadro_total(self,pdf,y,orden):
        pdf.drawString(445, y+40, u"SUB-TOTAL: ")
        pdf.drawString(445, y+20, u"IGV: ")
        pdf.drawString(445, y, u"TOTAL: ")
        total = [[orden.subtotal],[str(orden.impuesto)],[str(orden.total)]]
        tabla_total = Table(total,colWidths=[2.5 * cm])
        tabla_total.setStyle(TableStyle(
            [
                ('GRID', (0, 0), (0, 2), 1, colors.black),
                ('FONTSIZE', (0, 0), (-1, -1), 8),
                ('ALIGN',(0,0),(-1,-1),'RIGHT'),
            ]
        ))
        tabla_total.wrapOn(pdf, 800, 600)
        tabla_total.drawOn(pdf, 495,y-2)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号