Skip to content

Releases: mirumee/prices

Allow to choose rounding type for discounts calculations

07 Oct 12:55
95fd443
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.1.0...1.1.1

The one that turns Price and PriceRange to named tuples

06 Mar 10:59
Compare
Choose a tag to compare
Merge pull request #7 from mirumee/use-namedtuples

Make Price and PriceRange namedtuples

Fixed discounts

20 Aug 16:08
Compare
Choose a tag to compare

This version adds a FixedDiscount price modifier. You can use it to automatically subtract a certain amount from a price.

Price(30, currency='USD') + FixedDiscount(Price(10, currency='USD'))
# Price('20', currency='USD')

We now also have automated testing using Travis and coverage reporting using Coveralls.