Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.2.1
-
Fix Version/s: 4.3.0-b1
-
Component/s: Staff Interface
-
Labels:None
Description
In the admin interface, when updating a service, there is a single Coupon Code field.
This should be updated to:
- Add a new field called Current Coupon Code above the current Coupon Code field that is disabled.
- This field just displays the coupon code of the current service, if any. It is unused
- When processing a service change, the existing coupon should be used to process the service change removal
- The current Coupon Code field should be blank by default and it refers to the new coupon code to be added for the service change
- The coupon entered into the Coupon Code field should only be applied to the new service change while the old coupon code is applied to the old service removal
Issue Links
- is blocked by
-
CORE-2566 Service changes not considering current coupon when changing it
- Closed
Currently service changes assume that if a blank value is given for a new coupon, then the coupon is meant to stay the same. It seems that the intent and what really should be done is that if the not given at all then the coupon is meant to stay the same, but if it is empty it should be treated as the removal of the old coupon (This is the difference between an isset() and an empty()).
Relevant code is currently in app/models/services_changes.php on lines 225-242 under ServiceChanges::getPresenter.