darsoarafa commited on
Commit
ad11954
·
verified ·
1 Parent(s): 455aec2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -78,13 +78,13 @@ def create_pdf(data, filename):
78
  ('TEXTCOLOR', (0, 0), (-1, 0), colors.whitesmoke),
79
  ('ALIGN', (0, 0), (-1, -1), 'CENTER'),
80
  ('FONTNAME', (0, 0), (-1, 0), 'Helvetica-Bold'),
81
- ('FONTSIZE', (0, 0), (-1, -1), 12),
82
- ('BOTTOMPADDING', (0, 0), (-1, 0), 12),
83
  ('BACKGROUND', (0, 1), (-1, -3), colors.beige),
84
  ('GRID', (0, 0), (-1, -1), 1, colors.black),
85
  ('SPAN', (0, -2), (1, -2)), # Span sub-total
86
  ('SPAN', (0, -1), (1, -1)), # Span grand total
87
- ('ALIGN', (2, -2), (3, -1), 'RIGHT'), # Align right for totals
88
  ]))
89
  if diskon_percent > 0:
90
  table.setStyle(TableStyle([
 
78
  ('TEXTCOLOR', (0, 0), (-1, 0), colors.whitesmoke),
79
  ('ALIGN', (0, 0), (-1, -1), 'CENTER'),
80
  ('FONTNAME', (0, 0), (-1, 0), 'Helvetica-Bold'),
81
+ ('FONTSIZE', (0, 0), (-1, -1), 10),
82
+ ('BOTTOMPADDING', (0, 0), (-1, 0), 10),
83
  ('BACKGROUND', (0, 1), (-1, -3), colors.beige),
84
  ('GRID', (0, 0), (-1, -1), 1, colors.black),
85
  ('SPAN', (0, -2), (1, -2)), # Span sub-total
86
  ('SPAN', (0, -1), (1, -1)), # Span grand total
87
+ ('ALIGN', (2, -2), (3, -1), 'CENTER'), # Align right for totals
88
  ]))
89
  if diskon_percent > 0:
90
  table.setStyle(TableStyle([