def summary(self):
        summary_table = [
            ('', ''),
            (capfirst(_('subtotal')), u'%.2f' % self.order.subtotal),
        ]

        if self.order.discount:
            summary_table.append((
                capfirst(_('discount')),
                u'%.2f' % self.order.discount))

        if self.order.shipping:
            summary_table.append((
                capfirst(_('shipping')),
                u'%.2f' % self.order.shipping))

        self.pdf.table(
            summary_table, (12 * cm, 4.4 * cm), self.pdf.style.table)

        self.pdf.spacer(1 * mm)

        total_title = u'%s %s' % (capfirst(_('total')), self.order.currency)

        if self.order.tax:
            if 'tax_details' in self.order.data:
                zero = Decimal('0.00')

                self.pdf.table([(
                    u'',
                    u'%s %s' % (
                        _('Incl. tax'),
                        u'%.1f%%' % row['tax_rate'],
                        ),
                    row['total'].quantize(zero),
                    row['tax_amount'].quantize(zero),
                    u'',
                    ) for rate, row in self.order.data['tax_details']],
                    (2 * cm, 4 * cm, 3 * cm, 3 * cm, 4.4 * cm),
                    self.pdf.style.table)

        self.pdf.table([
            (total_title, self.order.total % u'%.2f'),
            ], (12 * cm, 4.4 * cm), self.pdf.style.tableHead)

        self.pdf.spacer()
dataset/ETHPy150Open matthiask/plata/plata/reporting/order.py/OrderReport.summary/swapped operands of `%`