def process(self, order, items):
        tax_details = {}

        for item in items:
            taxable = (item._line_item_discount or 0) - item._line_item_price
            item._line_item_tax = (taxable * item.tax_rate / 100).quantize(
                Decimal('0.0000000000'))

            self.add_tax_details(
                tax_details,
                item.tax_rate,
                item._line_item_price,
                item._line_item_discount,
                item._line_item_tax,
                )

        order.data['tax_details'] = list(tax_details.items())
dataset/ETHPy150Open matthiask/plata/plata/shop/processors.py/TaxProcessor.process/swapped operands of `-`