Sachi King
|
17693754de
|
Huge batch of pep8 fixes
|
2017-04-22 18:39:07 +10:00 |
|
Christopher Neugebauer
|
3517bdd281
|
Makes sure that discounts always apply to the most expensive product in the cart first. Adds test to that effect.
Fixes #88.
|
2016-09-15 16:01:49 +10:00 |
|
Christopher Neugebauer
|
02fe88a4e4
|
Tests and fixes for a bug where discount quantities did not respect per-line item quantities.
|
2016-04-29 11:11:59 +10:00 |
|
Christopher Neugebauer
|
162db24817
|
Flake8 fixes
|
2016-04-29 11:08:45 +10:00 |
|
Christopher Neugebauer
|
71de0df5dc
|
Makes DiscountController a class and puts available_discounts inside it
|
2016-04-29 11:08:42 +10:00 |
|
Christopher Neugebauer
|
63dfd353c1
|
Replaces active/released flags in Cart with a single int flag. Closes #41
|
2016-04-25 15:36:55 +10:00 |
|
Christopher Neugebauer
|
875f736d67
|
Consolidates models.py into a directory module.
|
2016-04-22 15:06:24 +10:00 |
|
Christopher Neugebauer
|
ae8f39381f
|
Flake8 fixes
|
2016-04-08 19:49:18 +10:00 |
|
Christopher Neugebauer
|
5633554854
|
Tests now use TestingInvoiceController
|
2016-04-07 17:16:21 +10:00 |
|
Christopher Neugebauer
|
8e95bb7469
|
flake8 fixes
|
2016-04-07 13:26:25 +10:00 |
|
Christopher Neugebauer
|
2f77f5bb23
|
Replaces .active = False; .save() pattern in tests with a test controller method
|
2016-04-06 17:24:25 +10:00 |
|
Christopher Neugebauer
|
8ad265a65a
|
Fixes tests now that $0 invoices pay themselves
|
2016-04-06 17:19:09 +10:00 |
|
Christopher Neugebauer
|
eab1deff77
|
Removes set_quantity and add_to_cart from CartController, and factors it into a test controller for testing
|
2016-04-03 10:07:59 +10:00 |
|
Christopher Neugebauer
|
12e4d0a3cb
|
flake8
|
2016-04-01 12:14:39 +01:00 |
|
Christopher Neugebauer
|
cf85af7719
|
Adds refund function, adds tests, makes sure that refunds are obeyed elsewhere in the codebase
|
2016-03-27 21:04:10 +11:00 |
|
Christopher Neugebauer
|
fb3878ce2e
|
Adds available_discounts, which allows enumeration of the discounts that are available for a given set of products and categories
|
2016-03-25 18:59:34 +11:00 |
|
Christopher Neugebauer
|
8d66ed5715
|
Fix flake8 warnings
|
2016-03-25 14:51:39 +11:00 |
|
Christopher Neugebauer
|
8e6364d02a
|
Fixes bug where discount quantity applied to all users rather than specific user. Adds test case.
|
2016-03-25 12:50:34 +11:00 |
|
Christopher Neugebauer
|
0182a32f03
|
Fixes various errors in discount calculation, and adds tests for these
|
2016-03-04 18:32:52 -08:00 |
|
Christopher Neugebauer
|
224878a10c
|
Fixes flake8 errors
|
2016-01-22 17:21:29 +11:00 |
|
Christopher Neugebauer
|
c2400c4695
|
Moves the controller modules into their own subpackage. There's going to be a lot of stuff in there.
|
2016-01-22 16:29:41 +11:00 |
|
Christopher Neugebauer
|
d9e433659d
|
Imports code from old Symposion repo
|
2016-01-22 16:19:11 +11:00 |
|