Details
Description
In the Order interface:
- On the Order homepage (/order/forms/) a list of available order forms are shown
- Ensure that order forms containing only restricted packages are shown if the client has any of those packages set in his profile
- On the order form package page (/order/main/index/{order form name}/ or /order/main/packages/{order form name}/?group_id={package group ID})
- Ensure that the order form lists restricted packages if the client has any of those packages set in his profile
- Ensure that restricted packages are orderable by any client that is assigned them
- They should be able to checkout on any order form
- The client must be logged-in in order to see restricted packages in order forms
Currently, it's impossible to order restricted packages as a client. Clients should be able to see and order restricted packages, if..
1. They are logged in, and..
2. They have the packages set under Set Packages, and..
3. The packages are assigned to the order form.
If the Package status is "Restricted", it cannot be ordered, even if it belongs to a Package Group assigned to the order form. The purpose of Restricted packages originally was to allow clients who have this Package enabled (Actions > Set Packages under Client Profile) to order it while others cannot.
This task simply completes this feature by allowing clients who have a Restricted Package set under Set Packages to order it through the order form. Restricted Packages cannot currently be ordered at all, regardless of whether the client has permission to them.