def process(self, order, items):
        cost = plata.settings.PLATA_SHIPPING_FIXEDAMOUNT['cost']
        tax = plata.settings.PLATA_SHIPPING_FIXEDAMOUNT['tax']

        order.shipping_cost, __ = self.split_cost(cost, tax)
        order.shipping_discount = min(
            order.discount_remaining,
            order.shipping_cost,
        )
        order.shipping_tax = tax / 100 * (
            order.shipping_cost - order.shipping_discount)

        self.set_processor_value(
            'total', 'shipping',
            order.shipping_cost - order.shipping_discount
            + order.shipping_tax)

        tax_details = dict(order.data.get('tax_details', []))
        self.add_tax_details(
            tax_details, tax, order.shipping_cost,
            order.shipping_discount, order.shipping_tax)
        order.data['tax_details'] = list(tax_details.items())
dataset/ETHPy150Open matthiask/plata/plata/shop/processors.py/FixedAmountShippingProcessor.process/original