remotes/origin/artem
Gena 11 years ago
parent 526f193811
commit 25c560519c
  1. 4
      store/models.py

@ -183,7 +183,7 @@ class Product(models.Model):
if not retval:
retval = self.variations.aggregate(Min('price'))['price__min'] or 0
if retval > 15000:
if retval > 10000:
return int(retval * Decimal('.95'))
else:
return int(retval * Decimal('.93'))
@ -218,7 +218,7 @@ class ProductVariation(models.Model):
return self.variation
def get_price(self):
if self.price > 15000:
if self.price > 10000:
return int(self.price * Decimal('.95'))
else:
return int(self.price * Decimal('.93'))

Loading…
Cancel
Save