OrderChangeManager: Fix a type error for orders without tax

This commit is contained in:
Raphael Michel
2019-02-26 09:16:32 +01:00
parent 61c6cd2937
commit ac4ecfbe69

View File

@@ -823,7 +823,7 @@ class OrderChangeManager:
if keep_price: if keep_price:
price = TaxedPrice(gross=position.price, net=position.price - position.tax_value, price = TaxedPrice(gross=position.price, net=position.price - position.tax_value,
tax=position.tax_value, rate=position.tax_rate, tax=position.tax_value, rate=position.tax_rate,
name=position.tax_rule.name) name=position.tax_rule.name if position.tax_rule else None)
else: else:
price = get_price(item, variation, voucher=position.voucher, subevent=position.subevent, price = get_price(item, variation, voucher=position.voucher, subevent=position.subevent,
invoice_address=self._invoice_address) invoice_address=self._invoice_address)