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