David Winterbottom
ebfad6a2d0
Improve order detail dashboard view
- Rework view to use simpler methods
- Rename reloading method (not sure why, for readability I think)
- Use a form for changing the order status (we should be using forms for
changing line stuff too - will look at that next)
- Generally clean up the view a little
11 years ago
David Winterbottom
8486a9147e
Extend validation of line quantities submitted in order dashboard
Motivated by #988 , this change adds extra validation for when quantities
are submitted on the dashboard page. Without this, negative and too-high
values can be submitted without getting blocked by validation checks.
Fixes #988
11 years ago
Maik Hoepfel
e413f858f6
Switch to Oscar's get_model function
This should always be used instead of Django's silent version.
12 years ago
Markus Bertheau
c53d6cc0ae
Fix all flake8 issues.
12 years ago
Michael van Tellingen
dc4e7b07f1
Add amount to EventHandler.validate_payment_event args
12 years ago
Maik Hoepfel
833d198602
Subtle changes to handle '' instead of None
Tests failed on a few occasions, because CharFields were set to None or
expected to be None.
12 years ago
David Winterbottom
ec93cd6a0a
Add FK to stockrecord from order line
I had thought we wouldn't need this but it turns out you do in order to
consume/cancel stock allocations through the order EventHandler.
12 years ago
David Winterbottom
faa70ead1f
Add simple order processing to demo site
- Only handles Datacash payments at the moment
12 years ago
David Winterbottom
fac257669b
Allow EventHandler to create notes on behalf of user
12 years ago
David Winterbottom
11242f2f5f
Add reference field to payment event
This is useful for linking between payment events and transactions.
12 years ago
David Winterbottom
c883998060
Further document EventHandler class
12 years ago
David Winterbottom
ef4007b7a2
Add verification of payment events
12 years ago
David Winterbottom
dc854dd015
Document how order model can be extended to validate shipping events
12 years ago
David Winterbottom
4f3f2756cb
Rework the shipping event testing methods
12 years ago
David Winterbottom
eb74742ec2
Introduce payment event subtotal calculation
12 years ago
David Winterbottom
11930636c7
Rework shipping event validation
12 years ago
David Winterbottom
0f81a0245c
Enhance order dashboard
- Add more links
- Add event details to line detail page
12 years ago
David Winterbottom
eeab700bfa
Updated stock handling to allow checking for valid allocations
13 years ago
David Winterbottom
768e608516
Added additional helper method to order processing facade.
This is for checking if any line has passed a given shipping event.
13 years ago
David Winterbottom
3b40bee678
Added helper method to check if lines have passed shipping event.
This is useful when validating potential shipping events.
13 years ago
David Winterbottom
9e0e6cc2cc
Updated processing code to handle case where a product may be deleted
when trying to perform order management events.
14 years ago
David Winterbottom
4e769ad1ef
Fixed method signatures for order processing functions
14 years ago
David Winterbottom
91cb70b4c7
Added extra helper methods for dealing with stock allocations
14 years ago
David Winterbottom
4493f039b3
Added shipping event reference saving to order dashboard
14 years ago
David Winterbottom
641c27553c
Added more sophisticated shipping event checking
14 years ago
David Winterbottom
e88ef32a49
Split up the order payment event processing
14 years ago
David Winterbottom
41d4bc8997
Added amount field to payment event
14 years ago
David Winterbottom
37ef596c86
Added handling of order status changes to EventHandler
14 years ago
David Winterbottom
eeaac941cd
Fixed missing method arg for creating order notes
14 years ago
David Winterbottom
7cce358490
Updated models for shipping events
14 years ago
David Winterbottom
c273ebff0c
Added shipping events form to the order detail page
14 years ago