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

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

Loading…
Cancel
Save