Changeset 72d1b07 in rattail for rattail/batch/pricing.py
- Timestamp:
- 06/14/2022 01:48:22 PM (8 months ago)
- Branches:
- master
- Children:
- aca6ed6
- Parents:
- 03c3bded
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rattail/batch/pricing.py
r03c3bded r72d1b07 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-202 0Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 46 46 # cached decimal object used for rounding percentages, below 47 47 percent_decimal = decimal.Decimal('.001') 48 49 def allow_future(self): 50 """ 51 Returns boolean indicating whether "future" price changes 52 should be allowed. 53 54 :returns: ``True`` if future price changes allowed; else ``False``. 55 """ 56 return self.config.getbool('rattail.batch', 'pricing.allow_future', 57 default=False) 48 58 49 59 def should_populate(self, batch):
Note: See TracChangeset
for help on using the changeset viewer.