Commit Graph

640 Commits

Author SHA1 Message Date
Raphael Michel
455d0ba64f Remove debugging statement 2016-11-09 10:48:19 +01:00
Raphael Michel
7b48a17b51 Reduce number of redundant SQL queries 2016-11-06 19:59:19 +01:00
Raphael Michel
ad35110166 Offer download options per position, not per order 2016-11-02 14:51:05 +01:00
Raphael Michel
3596fcd4dd Include a sample address for sample orders 2016-11-01 15:44:58 +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
Raphael Michel
853510a375 Added an upper price limit to fit our decimal context 2016-10-23 19:34:29 +02:00
Raphael Michel
dcd6f2d8d1 Fixed unused import 2016-10-21 10:49:09 +02:00
Raphael Michel
0dece9e62b Add a custom context manager for rollbacks (#282) 2016-10-21 10:40:04 +02:00
Raphael Michel
39e940da5e Preview for ticket outputs 2016-10-20 20:43:31 +02:00
Raphael Michel
d6478e66de Fix #278 -- Preview for invoices 2016-10-20 18:58:05 +02:00
Raphael Michel
32d00e4313 Refs #273 -- Fix broken migration tree and timezone issues 2016-10-20 15:10:55 +02:00
Raphael Michel
f22596a5a5 Fix #273 -- Set correct all order expiry times to the end of the day 2016-10-20 11:56:46 +02:00
Raphael Michel
d82e159ffc Removed duplicate keys from dictionary 2016-10-18 19:00:44 +02:00
Raphael Michel
158043e29e Fixed a bug in order validation 2016-10-18 19:00:44 +02:00
Raphael Michel
503f6dd06f Use consistent flake8 settings everywhere and fix flake8 issues 2016-10-13 22:57:57 +02:00
Tobias Kunze
9db333bf80 Transactiontask (#268)
* Introduce TransactionAwareTask

As described in
https://blog.hypertrack.io/2016/10/08/dealing-with-database-transactions-in-django-celery/

* Use TransactionAwareTask instead of countdown

… to prevent race conditions when using a newly created object in a
task.
2016-10-10 16:38:06 +02:00
Raphael Michel
96a640ad90 Fixed a bug that lead to wrong payment type links in the order overview 2016-10-02 19:13:55 +02:00
Raphael Michel
68987970bf OrderChangeManager: Deal with unlimited quotas correctly 2016-09-26 14:13:33 +02:00
Raphael Michel
2a8bbb9952 Fixed missing check for variation.active 2016-09-25 20:54:40 +02:00
Raphael Michel
48791b2f02 Refs #250 -- Keep payment deadlines on weekdays 2016-09-25 12:19:15 +02:00
Tobias Kunze
1a69185754 There was a missing in a sentence (#247)
;)
2016-09-22 09:38:09 +02:00
Raphael Michel
84fd7cb166 Merge remote-tracking branch 'remotes/flaviabastos/187_unify_canceled_spelling' 2016-09-21 19:07:15 +02:00
Flavia Bastos
8ef6439c44 Unify spelling of 'canceled'
Issue 187
Remove typeahead JS file.
2016-09-21 10:35:41 -06:00
Raphael Michel
1faacef9d4 Always process tasks through celery (#245) 2016-09-21 10:38:31 +02:00
Raphael Michel
96828c3f5a Fixed bug introduced in last commit 2016-09-17 23:50:56 +02:00
Raphael Michel
5a9c760633 Fixed bug when modifying an expired cart including a voucher 2016-09-17 23:42:23 +02:00
cherti
ecef64c035 Change signature-separator (#242)
`"-- "` on a single line as a signature-delimiter is noticed by a lot of mail programs out there as an actual signature separator and the text below may be marked that way, e.g. is greyed out a little in Mozilla Thunderbird.

This change should leverage that behavior for e-mails sent by pretix.
2016-09-17 12:13:13 +02:00
Martin Gross
8fb363f815 Fix #233 -- Make orderlist and overview filterable by payment_provider (#234)
* Make orderlist and overview filterable by payment_provider (fixing #233)

* Remove checks for allowed and enabled payment_providers as discussed
2016-09-14 13:01:22 +02:00
Raphael Michel
e93a24afb2 Call order_placed signal after invoice address is set 2016-09-12 17:31:02 +02:00
Raphael Michel
582eb1b7a8 Fixed a TypeError in send_expiry_warnings 2016-09-11 17:11:04 +02:00
Raphael Michel
9b67d8d363 Strip whitespace from voucher codes 2016-09-09 14:47:22 +02:00
Raphael Michel
15b9d8420c Improve error messages, update German translation 2016-09-09 14:47:22 +02:00
Raphael Michel
54d5477069 Resolve naive datetime warning 2016-09-08 21:42:20 +02:00
Tobias Kunze
55120fc4ea Proper regeneration behavior for cancellations 2016-09-08 15:46:26 +02:00
Tobias Kunze
988dfc32a3 Use @transaction.atomic instead of @transaction.atomic() 2016-09-07 15:30:38 +02:00
Tobias Kunze
65db55f21b Extract common code of generate_invoice and regenerate_invoice
Only change is that a regenerated invoice's date is updated to the
current date, which would seem to be better to me, anyways.
2016-09-07 15:30:36 +02:00
Tobias Kunze
3eb4e84db4 Allow payment providers to supply invoice content 2016-09-07 15:30:35 +02:00
Raphael Michel
30ab315fec Use full codes in orders 2016-09-05 22:47:44 +02:00
Raphael Michel
d8f81955ba Changed order overview columns to increase usefulness 2016-09-04 22:57:42 +02:00
Raphael Michel
a6bafd816b Send automatic payment reminder emails, redesign mail settings 2016-09-02 10:16:08 +02:00
Raphael Michel
972ad211bf Only expire orders in the evening of their expiry date 2016-09-02 10:09:15 +02:00
Tobias Kunze
7e19effe3c Fix #122 -- Allow users to re-send order links (#197)
If the provided mail address has not ordered anything, there will still
be a mail generated and sent to an invalid mail address, to avoid
obvious timing attacks to determine active users.
2016-09-01 08:59:36 +02:00
Raphael Michel
b21ed4d99f Fix #163 -- Form to change orders (#191) 2016-08-31 19:10:11 +02:00
Tobias Kunze
5f401f17d8 Add a footer and a second text field to invoices
Also, move to using localized strings for Invoice.additional_text
settings for consistency.
2016-08-30 19:49:29 +02:00
Tobias Kunze
157a16810d Add a net_value column to invoices
TODO: localization
2016-08-30 19:05:35 +02:00
Tobias Kunze
b8e77aeca4 Render line breaks in invoices "Additional text" 2016-08-30 19:05:35 +02:00
Tobias Kunze
3c8f9f5a62 Catch and display mail sending errors (#215) 2016-08-30 16:49:52 +02:00
Raphael Michel
c30ff5e657 Only call now() once inside any event.lock() call 2016-08-29 22:33:51 +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