Add dedicated client view of order #124
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Also rework routes a bit to not mix client/customer this much
Also move client orders into scope path
Move login out of client orders controller into client controller
Client controller serves as a mock of actual authorization
Client Orders controller now holds actions connected to orders scoped by client
Added relation of client order with actual order, for easy access in the view
The regular show view of order for scoped view of a client is a bit smaller, does not have client name and link to history, restricted to staff
Since orders and client_orders are scoped separatly in cqrs part of the app I thought it would make sense to scope client orders - subsidiary of actual orders - to their connected client in the rails app too.
Done for those issues:
#104
#94