@HitchHiker71 ,
I just don't get ARP available points being kept track of in use-year records.. I could have 10 different CWS deeds and CWA to boot. How many accumulators will be set up? (And then there is the concept of RARP.)
I would guess that ARP reservation is much more complex and it could go like this:
First, check eligibility for ARP by looking for eligible deeds. I see such a query is being made when you try to make a reservation past the 10-month window.
If it passes eligibility then the website actually sends the reservation request to the backend where available points for ARP has to be determined before a reservation can be made.
First look at the total points available in the use-year, Reject reservation if points are not sufficient.
Get the sum of all CWS points eligible for ARP at that resort. Get the sum of all CWA points.
Get the sum of all ARP reservations made at that resort and other Resorts for CWA. Keep track of CWS points and CWA points separately.
If Member has only CWS, get CWS balance. If Member has both CWS and CWA, then apply needed logic to compute the Balance.
If the balance is sufficient, make the ARP reservation otherwise Reject.
I can see some complex logic required here. No big deal. If the rules are clear, the logic will be clear. (I haven't even addressed RARP here).