Commit graph

55 commits

Author SHA1 Message Date
Thomas Steen Rasmussen 01687ea11a run pre-commit --all-files, it's been a while since last time 2021-07-19 15:06:10 +02:00
Thomas Steen Rasmussen 7f05372bb9 rename cash payment method to 'in person' - it could also be called izettle, but lets keep the brandname out of it :) Orders with payment method IN_PERSON can be paid at the infodesk with izettle. While here update some text on the checkout page and update icons to FA 2020-08-12 17:49:24 +02:00
Thomas Steen Rasmussen 26e471ef2a only allow the order review view for unpaid orders, fixes #571 2020-08-03 23:59:53 +02:00
Thomas Steen Rasmussen bd53f64208 add responsible_team to most emails, while here run pre-commit run --all-files 2020-06-22 17:25:08 +02:00
Thomas Steen Rasmussen 00af109e2f
add flake8 and isort to pre-commit config, make flake8 and isort happy (#441)
* add flake8 to pre-commit config, and fixup many things to make flake8 happy

* add isort and sort all imports, add to pre-commit and requirements
2020-02-12 13:10:41 +01:00
Thomas Steen Rasmussen 377a77143c black everything, working on #355 2020-02-07 18:46:34 +01:00
Thomas Steen Rasmussen 0cb7b688fa sort products by category weight on shop page 2019-12-16 23:41:05 +01:00
Thomas Steen Rasmussen ca0ed4fb27 redirect back to shop after adding something to an order, and make link to shopping cart bigger 2019-07-21 16:27:25 +02:00
Víðir Valberg Guðmundsson 24c95a82fd Don't empty out comment and invoice address when closing order. 2019-07-09 21:03:56 +02:00
Víðir Valberg Guðmundsson fa855fb69e Add cancel and proforma buttons to review and pay template. 2019-07-09 10:59:03 +02:00
Víðir Valberg Guðmundsson 3ba33649cb Redirect to review if the order is closed but not paid. Also remove the option to remove products when the order is closed. 2019-07-09 10:46:30 +02:00
Thomas Steen Rasmussen effd900b62 add proforma invoice support 2019-07-09 10:38:14 +02:00
Víðir Valberg Guðmundsson fef09baa3d Make review and pay button save changes made to order. Also move shop related templates back into shop app. 2019-07-09 10:07:00 +02:00
Víðir Valberg Guðmundsson 9adc2a878f Add "review and pay" as a step in order payment. (#356) 2019-07-09 00:29:18 +02:00
Víðir Valberg Guðmundsson 4aad051c72 More tests - and some blackness. 2019-03-29 22:06:52 +01:00
Víðir Valberg Guðmundsson c69bf46255 Adding more tests, finding more errors - again! 2019-03-29 20:58:35 +01:00
Víðir Valberg Guðmundsson 2ce2205bd3 Adding more tests, finding more errors. 2019-03-29 17:06:53 +01:00
Víðir Valberg Guðmundsson 4cbb25a537 Use OrderProductRelationForm to validate stock when adding a new product to order, also make it possible to update the quantity of a product on the product detail page if it is already in the current order. 2019-03-27 23:34:44 +01:00
Víðir Valberg Guðmundsson 59cde9163f Use a modelformset for the order detail view to be able to validate stock on updates of quantities and payment of the order. 2019-03-27 22:53:23 +01:00
Víðir Valberg Guðmundsson 101cb2db63 Check stock when incrementing orderproduct quantity. 2019-03-27 20:25:06 +01:00
Víðir Valberg Guðmundsson bda1d77275 Forgot about credit notes. 2019-03-26 21:39:44 +01:00
Víðir Valberg Guðmundsson 0b2075425e Keep view code in the respective apps, implement the template in the profiles app. 2019-03-26 21:22:54 +01:00
Thomas Steen Rasmussen f396708156 finish work on custom invoice address 2018-08-27 11:52:42 +02:00
Thomas Steen Rasmussen d3ba04b6f2 fix coinify callbacks by passing request argument to order.mark_as_paid() 2018-07-13 14:38:01 +02:00
Víðir Valberg Guðmundsson ff758b15ff Initial work on uprading. 2018-04-03 18:44:10 +02:00
Stephan Telling 488767b4f0 cleanup in shop/ 2018-03-04 16:00:30 +01:00
Thomas Steen Rasmussen c676abd5cf add missing request argument 2018-01-07 17:36:44 +01:00
Thomas Steen Rasmussen 66014811a4 remove the old Ticket model, move irc notification signal handler to the new Tickets app, various cleanup, fixes #168 2017-10-04 00:06:49 +02:00
Stephan Telling 984b82ba11
update tickets app with list and detail views
Also this commit allows users to download their ticket as PDF.
2017-08-19 22:06:32 +02:00
Thomas Steen Rasmussen ec120bca39 only pass the invoicejson not the whole thing 2017-07-11 07:16:51 +02:00
Thomas Steen Rasmussen fe3e2b3d0a callbackobject.payload not invoicejson 2017-07-11 07:11:02 +02:00
Thomas Steen Rasmussen 69074d6496 another missing import 2017-07-11 07:06:25 +02:00
Thomas Steen Rasmussen 1d23989df1 pass order to save_coinify_callback 2017-07-11 07:02:17 +02:00
Thomas Steen Rasmussen 55316e1bd0 missing import 2017-07-11 06:54:15 +02:00
Thomas Steen Rasmussen 4d9663123a add coinifyapiinvoice property to order model 2017-06-20 09:02:13 +02:00
Thomas Steen Rasmussen e839396d40 right, tempinvoice 2017-06-20 00:18:57 +02:00
Thomas Steen Rasmussen cc874cdbb8 loop over invoices to check if they expired 2017-06-20 00:13:37 +02:00
Thomas Steen Rasmussen 3010033b75 pass request to create_coinify_invoice() 2017-06-19 23:52:01 +02:00
Thomas Steen Rasmussen 45a5f58ddf add missing import 2017-06-19 23:46:52 +02:00
Thomas Steen Rasmussen 8644d4ba2f Coinify multiinvoice fix (#126)
* rework coinify api stuff, work in progress

* fix imports

* indentation

* rework coinify api stuff, work in progress

* fix imports

* indentation
2017-05-22 18:03:09 +02:00
Thomas Steen Rasmussen cc771d20f1 only show creditnotes belonging to the logged in user 2017-04-14 15:36:41 +02:00
Thomas Steen Rasmussen 6288cfd9df remove 2016 from coinify messages 2017-04-08 11:58:29 +02:00
Thomas Steen Rasmussen 63a10d3af1 encode, decode, do something to make this work 2017-04-08 11:41:36 +02:00
Thomas Steen Rasmussen 7506326cd7 decode the utf8 encoded body to a unicode string before passing it on 2017-04-08 11:28:08 +02:00
Thomas Steen Rasmussen 0d5d6dc31e str() not neccesary here 2017-04-08 11:09:54 +02:00
Thomas Steen Rasmussen 8a318400ae changed the wrong model :( 2017-04-08 11:04:39 +02:00
Thomas Steen Rasmussen e5215830b0 catch anything here 2017-04-08 10:50:51 +02:00
Thomas Steen Rasmussen 1b98c01f63 improved error handling, always save callback body, various fixes 2017-04-03 18:00:25 +02:00
Thomas Steen Rasmussen c90837a8f0 json.loads wants strings 2017-04-02 21:55:14 +02:00
Thomas Steen Rasmussen 850de5554f fix customer comment error when changing payment method for an order with empty comment 2017-03-26 10:15:54 +02:00