Overview
A customer(s) may have inadvertently been moved to a rate class from where they need to be rolled back to the previous one.
Solution
Provide the customer's account numbers for whom the active rate classes have to be deleted and rolled back to the previous rate class.
<supportagent>
- Login to the Jump server 10.185.40.141.
- Open Microsoft SSMS and connect to
aes.cons.com
. - Select
New Query
in the top bar. - Select the client-specific database and perform the following steps for each account number.
- Find the
CustID
from theCustomer
table for an account number, like thisselect CustID, * from Customer where CustNo='<client provided account number>'
- Find the most recent
RateTransition
applied to the account like thisselect RateTransitionID, * from RateTransition where CustID=<obtained from Step 5> order by RateTransitionID desc
Also, check if theRateTransition
right after the most recent one is a valid one and has aSwitchDate
in the past and anEndDate
in the future or else the customer will have no rate attached to their account after the most recent RateTransition is deleted. - Find the corresponding row in
RateDetail
with the aboveRateTransitionID
like thisselect * from RateDetail where RateTransitionID=<obtained from Step 6>
- If the next
RateTransition
row has valid dates, then delete the target row inRateDetail
&RateTransition
withdelete from RateDetail where RateTransitionID=<obtained from Step 6> delete from RateTransition where RateTransitionID=<obtained from Step 6>
- If the RateTransition table doesn't have valid dates, then highlight this to the client by sharing the date range of the next RateTransition row and ask for the date range to be used for the next
RateTransition
.
</supportagent>