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
|
638ec26126
|
Replaces the mandatory/non-mandatory concept with the enabled_if_true/disabled_if_false concept. Closes #4.
|
2016-04-11 20:48:18 +10:00 |
|
Christopher Neugebauer
|
7b476fd5cb
|
s/enabling_condition/flag
|
2016-04-11 17:56:11 +10:00 |
|
Christopher Neugebauer
|
4fedc73304
|
Renames EnablingCondition to Flag where possible
|
2016-04-11 17:55:00 +10:00 |
|
Christopher Neugebauer
|
6b10a0a7e4
|
Adds CreditNote, CreditNoteController, related models, and tests.
|
2016-04-11 13:11:56 +10:00 |
|
Christopher Neugebauer
|
38cdb8aa63
|
Makes invoice model, controller, and test changes to match issue #15 design doc
|
2016-04-07 17:16:56 +10:00 |
|
Christopher Neugebauer
|
5633554854
|
Tests now use TestingInvoiceController
|
2016-04-07 17:16:21 +10:00 |
|
Christopher Neugebauer
|
ac10ea4ee8
|
s/cart_controller_helper/controller_helpers/
|
2016-04-07 17:16:04 +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
|
c8c16072ba
|
fix_simple_errors() now removes exhausted vouchers from the voucher set.
|
2016-04-06 14:02:23 +10:00 |
|
Christopher Neugebauer
|
0d57da8d6f
|
Makes apply_voucher() idempotent, adds _test_voucher to validate_cart, and updates tests.
|
2016-04-06 14:02:22 +10:00 |
|
Christopher Neugebauer
|
8d07518a9b
|
Fixes an incorrect voucher test
|
2016-04-06 14:02:22 +10:00 |
|
Christopher Neugebauer
|
4d134e95d7
|
Refactors discount ceiling testing to make sure that the discount ceiling only considers items where the discount was applied in determining if the discount was reached.
|
2016-04-03 13:16:35 +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
|
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
|
2d5cd622c5
|
Makes it invalid for a user to re-enter a voucher code they already have.
|
2016-03-26 19:47:01 +11:00 |
|
Christopher Neugebauer
|
8d66ed5715
|
Fix flake8 warnings
|
2016-03-25 14:51:39 +11:00 |
|
Christopher Neugebauer
|
cc42490832
|
Applying a voucher to a cart now uses the voucher code rather than the voucher object. Adds tests for constraints on vouchers.
|
2016-03-23 15:04:51 +11: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 |
|