Commit Graph

30 Commits

Author SHA1 Message Date
Raphael Michel
09020143e7 Refactoring of cart services (#414) 2017-02-21 17:15:43 +01:00
Raphael Michel
70fa7eac6b Vouchers: Bug in export, default mode 2016-12-22 17:54:24 +01:00
Raphael Michel
7154d3f510 Fix setting a voucher price to 0 2016-12-07 11:31:37 +01:00
Raphael Michel
f76d173162 Fix various doc issues 2016-11-29 17:19:22 +01:00
Raphael Michel
eea6a5e9da Refs #145 -- Vouchers that grant discounts 2016-11-29 16:18:07 +01:00
Raphael Michel
db6fb51fc6 Refs #145 -- Multi-use vouchers 2016-11-27 16:02:40 +01:00
Raphael Michel
37598ed914 Further SQL optimizations 2016-11-08 16:58:48 +01:00
Tobias Kunze
aa63a4cded Improved voucher interface with new methods (#284)
* Check that a voucher's variation matches its item

* Add method to check applicability of a voucher

* Add method to check if a voucher can be used

* Add tests for new voucher methods

* Test for ValidationErrors in Voucher.clean()

* Test for voucher state during ordering process
2016-10-24 12:40:06 +02:00
Tobias Kunze
e6075cf97c Return boolean as method name suggests (#283) 2016-10-23 18:42:11 +02:00
Raphael Michel
503f6dd06f Use consistent flake8 settings everywhere and fix flake8 issues 2016-10-13 22:57:57 +02:00
Raphael Michel
122221c218 Fixed code style in vouchers.py 2016-09-16 00:04:05 +02:00
koebi
5aa1ecec7c Add documentation for voucher tags (#240)
Voucher tags were not documented in the help text at the beginning
of the voucher class.
Related to #228
2016-09-15 21:52:02 +02:00
Raphael Michel
6e829ff30a Removed redundant voucher.is_ordered 2016-09-06 21:29:21 +02:00
Raphael Michel
dc3e1e3d30 Got rid of javascript-based random generator 2016-08-29 23:46:17 +02:00
Raphael Michel
5f64aecafa Merge pull request #201 from rixx/ticket165_reactivate_voucher
Fix #165 -- Reactivate voucher on cancelled orders
2016-08-29 21:15:10 +02:00
Tobias Kunze
4a02ed566f Use get_random_string everywhere (#210)
Django's get_random_string tries really hard to either use sysrandom or
be otherwise as unpredictable as possible. Thanks to David Gullasch for
pointing out both the problem and the solution.
2016-08-29 19:10:01 +02:00
Tobias Kunze
87a77989e7 Disallow cancelling an expired order
as per discussion on #165
2016-08-24 15:26:54 +02:00
Tobias Kunze
5667866c9d Make vouchers reusable upon cancelation of an Order
Refs #165.
2016-08-21 15:56:25 +02:00
Tobias Kunze
3eb581e55a Add comment field to Orders
refs #177
2016-08-12 10:30:23 +02:00
Raphael Michel
221ce9f0ae Added configuration options for some secret lengths 2016-08-03 00:18:04 +02:00
Raphael Michel
d976d8d26d Added some database indices 2016-08-03 00:18:04 +02:00
Raphael Michel
2541855948 Fixed missing or unused imports 2016-07-18 23:12:16 +02:00
Tobias Kunze
bfc721978d Fixed minor documentation errors and mistakes (#151) 2016-07-14 20:01:38 +02:00
Raphael Michel
cc9a9723fe Added "comments" and "tags" to vouchers 2016-06-01 12:45:32 +02:00
Raphael Michel
eea90a9066 Updated models and signals documentation 2016-05-08 12:35:04 +02:00
Raphael Michel
09cee356b0 Allow for vouchers that are valid for multiple items 2016-05-04 17:50:19 +02:00
Raphael Michel
047e5bb067 Refs #105 -- Variation support for vouchers 2016-03-20 11:46:55 +01:00
Raphael Michel
f18a180ae4 Added voucher redemption 2016-02-11 16:41:22 +01:00
Raphael Michel
6e22149a21 UI for creating and chacnging vouchers 2016-02-09 11:47:16 +01:00
Raphael Michel
7a9930954c Added voucher data model [backwards incompatible] 2016-02-09 10:42:35 +01:00