Details
-
Type: Sub-task
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.6.0-b1
-
Component/s: Staff Interface
-
Labels:None
Description
With the addition of a renewal price for individual pricing records, we need to display these in the UI and allow them to be saved.
Update the following sections:
- Packages on add and edit
- Package Options on add and edit
- Add a column in the Pricing section, to the right of the "Price" column, called "Renewal"
- Include a checkbox and input box, "[x] [25.00]"
- The checkbox will be unchecked by default
- If unchecked:
- The input box next to it is disabled
- The input box is emptied of any value (i.e. blank string)
- If checked:
- The input box next to it is enabled and free to edit
- The input box is set the value of the "Price" field. The user can change this
- If unchecked:
- Add a tooltip to the right of the input box that reads
- "A price can be set here for renewals, or will otherwise default to the set Price. Any prorated changes to services will be based off of this value."
- The renewal input field will have a placeholder that equals the value of the set Price
- This should change as the user sets the Price
- If the pricing period is ONETIME, the renewal input field and checkbox are both emptied/unchecked and disabled
- The checkbox will be unchecked by default
- When the renewal price is saved, a value must ALWAYS be set, to one of the following:
- NULL if the period is ONETIME
- The value provided, if provided
- The given "Price" value, if not provided
Be sure to test that when input fields are disabled that the pricing rows are still submitted with values corresponding to the proper row.