Commit 93858f78 authored by Patrick's avatar Patrick

Show VAT on customers invoices

parent 283cd95b
......@@ -135,6 +135,13 @@ class CustomerInvoice(models.Model):
return self.customer_who_pays if self.total_price_with_tax != DECIMAL_ZERO else DECIMAL_ZERO
def get_total_price_wo_tax(self):
return self.get_total_price_with_tax() - self.get_total_tax()
def get_total_tax(self):
# round to 2 decimals
return RepanierMoney(self.total_vat.amount + self.delta_vat.amount)
def set_delivery(self, delivery):
# May not use delivery_id because it won't reload
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment