Improve visual transaction table

This commit is contained in:
Raphael Michel
2021-10-18 18:34:52 +02:00
parent c8cdb2b311
commit 846527546a
3 changed files with 39 additions and 6 deletions

View File

@@ -2515,6 +2515,14 @@ class Transaction(models.Model):
obj.tax_rule_id, obj.tax_value, obj.fee_type, obj.internal_type)
raise ValueError('invalid state') # noqa
@property
def full_price(self):
return self.price * self.count
@property
def full_tax_value(self):
return self.tax_value * self.count
class CartPosition(AbstractPosition):
"""