def afectacion_presupuesta(self,pdf):
y=320
pdf.drawString(40, y-90, u"HOJA DE AFECTACIÓN PRESUPUESTAL:")
p = ParagraphStyle('parrafos')
p.alignment = TA_JUSTIFY
p.fontSize = 8
p.fontName="Times-Roman"
lista = ListFlowable([
Paragraph("""Consignar el número de la presente Orden de Compra en su Guía de Remisión y Factura.
Facturar a nombre de """ + smart_str(EMPRESA.razon_social),p),
Paragraph("El " + smart_str(EMPRESA.razon_social) + """, se reserva el derecho de devolver
la mercaderia, sino se ajusta a las especificaciones requeridas, asimismo de anular la presente
Orden de Compra.""",p),
Paragraph("""El pago de toda factura se hará de acuerdo a las condiciones establecidas.""",p)
],bulletType='1'
)
p1=Paragraph("RECIBIDO POR: ",p)
pdf.drawString(330, y-150,"FIRMA: ")
pdf.line(370, y-150, 560, y-150)
pdf.drawString(330, y-170,"NOMBRE: ")
pdf.line(370, y-170, 560, y-170)
pdf.drawString(330, y-190,"DNI: ")
pdf.line(370, y-190, 560, y-190)
pdf.setFont("Times-Roman", 6)
pdf.drawString(525, y-127,"FECHA")
afectacion = [[(Paragraph("IMPORTANTE:",p), lista),"RECIBIDO POR:"]]
tabla_afectacion = Table(afectacion,colWidths=[10 * cm, 8.50 * cm])
tabla_afectacion.setStyle(TableStyle(
[
('GRID', (0, 0), (1, 0), 1, colors.black),
('VALIGN',(1,0),(1,0),'TOP'),
('FONTSIZE', (0, 0), (-1, -1), 8),
]
))
tabla_afectacion.wrapOn(pdf, 800, 600)
tabla_afectacion.drawOn(pdf, 40,y-200)
fecha = [[' ',' ',' ']]
tabla_fecha = Table(fecha,colWidths=[0.6 * cm, 0.6 * cm, 0.6 * cm], rowHeights=0.6 * cm)
tabla_fecha.setStyle(TableStyle(
[
('GRID', (0, 0), (-1, -1), 1, colors.black),
('FONTSIZE', (0, 0), (-1, -1), 5),
]
))
tabla_fecha.wrapOn(pdf, 800, 600)
tabla_fecha.drawOn(pdf, 510,y-120)
评论列表
文章目录