one more Decimal() conversion
This commit is contained in:
parent
e77a089dc2
commit
36293892d9
|
@ -228,7 +228,7 @@ class OrderProductRelation(CreatedUpdatedModel):
|
|||
|
||||
@property
|
||||
def total(self):
|
||||
return self.product.price * self.quantity
|
||||
return Decimal(self.product.price * self.quantity)
|
||||
|
||||
|
||||
class EpayCallback(CreatedUpdatedModel, UUIDModel):
|
||||
|
@ -275,6 +275,7 @@ class Invoice(CreatedUpdatedModel):
|
|||
def regretdate(self):
|
||||
return inv.created+timedelta(days=14)
|
||||
|
||||
|
||||
class CoinifyAPIInvoice(CreatedUpdatedModel):
|
||||
invoicejson = JSONField()
|
||||
order = models.OneToOneField('shop.Order')
|
||||
|
|
Loading…
Reference in a new issue