Merge pull request #6755 from edx/muhhshoaib/removing-extra-condition-from-pdf-file

removed the is_invoice condition from the pdf file
This commit is contained in:
chrisndodge
2015-01-28 00:06:14 -05:00

View File

@@ -391,9 +391,9 @@ class PDFInvoice(object):
# NOTE: since we are not printing the TaxID for Credit Card
# based receipts, we need to change the cell range for
# these formatting rules
('RIGHTPADDING', (-1, 0), (-1, -2 if self.is_invoice else -1), 7 * mm),
('GRID', (-1, 0), (-1, -2 if self.is_invoice else -1), 3.0, colors.white),
('BACKGROUND', (-1, 0), (-1, -2 if self.is_invoice else -1), '#EEEEEE'),
('RIGHTPADDING', (-1, 0), (-1, 2), 7 * mm),
('GRID', (-1, 0), (-1, 2), 3.0, colors.white),
('BACKGROUND', (-1, 0), (-1, 2), '#EEEEEE'),
]
totals_table.setStyle(TableStyle(styles))