Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discount code deleted when making additional payments #3669

Closed
ambermccoy opened this issue Apr 30, 2019 · 12 comments
Closed

Discount code deleted when making additional payments #3669

ambermccoy opened this issue Apr 30, 2019 · 12 comments

Comments

@ambermccoy
Copy link

ambermccoy commented Apr 30, 2019

Description

We have a registration with multiple discount codes that are auto-applied based on the date of registration. We do not require full payment when registering. When the parent goes to make an additional payment at a later time, their discount code is gone and it is showing the full amount of the registration due.

Steps to Reproduce

  1. Create Registration with discount code(s) that auto-apply based on date of registration
  2. Person registers and doesn't pay the full amount
  3. Person comes back at a later time to make additional payments
  4. Check balance due and see that it is for the wrong amount. Screen Shot 2019-04-30 at 4 44 07 PM

Expected behavior:

Once the person is registered and the discount code is applied, their registration amount should remained fixed. The person should be able to come back and make additional payments without the discount code disappearing off their registration.

Actual behavior:

Person comes back to make additional payments and the discount code is gone and the full registration amount is now showing due.

Versions

  • Rock Version: Rock Version: Rock McKinley 8.4 (1.8.4.40)
  • Client Culture Setting: en-US
@nairdo
Copy link
Member

nairdo commented Apr 30, 2019

If someone from the community can reproduce this issue, I'd be grateful. I was unable to make this problem happen on the v8.6 demo site.

After registering two kids with 'staff' discount and making initial $110 partial payment during registration, then returning later in the day to pay $10 more:
image

The discount % remains:
image

And returning to pay again, the discount amount remains:
image

...even after a manual cash payment via the internal site... [7/1 Update: this was an error in my attempt to reproduce this problem -- I should have used the external portal as the original person to make a payment]

image

The log shows:
image

...and the discount remains:
image

@ambermccoy
Copy link
Author

Hi Nick, I believe this is only happening when you have the code Au͏t͏o-generate based on a specific day/date range. For example, we have $70 off if they registered on 3/21. Then $50 off if they registered between 3/22 and 4/1, etc. It seems like it re-Au͏t͏o applies (or doesn’t apply anything if the dates are out of range) whatever the current code is instead of what they originally received.

@cabal95
Copy link
Member

cabal95 commented Apr 30, 2019

@ambermccoy Just for some extra clarification, are you saying the discount code vanishes only when the registrar goes in via the public portal to make an additional payment, or does it also vanish if you go in to add a manual payment via the internal/staff pages?

I haven't looked at the code, but I can see what you mention about the auto-applied via date ranges making sense if it is looking at "todays date" vs the "registration date". Just trying to determine if this is a potential issue with just that one block or across the board with the discount counts.

@ambermccoy
Copy link
Author

Both times they were on the external “my account” page. In the instance I have on my screenshot she registered on 3/21and got $70 off. That code was only good for 3/21. She then came back on 3/25 (or some time around then) and made an additional payment and it changed the discount amount to $40 which was the code that was in effect at that time. She then came back and made an additional and final payment on 4/30 and there was no code applied because there was not one in effect at that time. It appears that every time they login from the external site it’s changing the discount code to whatever is in effect for that date instead of just leaving it from what it was on the registration date.
I have the added a couple of manual payments on the backend and that does not affect the discount code that is on the registration.

@HansenGrace
Copy link

Thanks for your input. We will add this into our pipeline for additional review and next steps.

@chrisfunk
Copy link
Contributor

@nairdo it sounds eerily similar to #3532

@cj-walk
Copy link

cj-walk commented May 8, 2019

I'm having the same issue. We have several discount codes set up for summer camp and seem to have an issue with one of the codes. Parents register (cost is $550), and apply the code, reducing the cost to $450, and pay a deposit of $50. At the time they register the correct amount is shown. However, sometimes - and it doesn't happen every time - on my end it doesn't show that a discount code was used, and when they log back in to pay the balance the discount code is no longer reflected and there is no option to enter it again (which they shouldn't need to). I had tested last week and never could reproduce the problem on my end, but after reports from parents again this week I just tested and got the same result. What could be making this discount code disappear? It doesn't seem to be consistently happening because I haven't been able to reproduce the issue myself until this morning. Immediately after registering I checked internally and the discount code was not there. My discount code has no dates or use limits. I manually applied the discount code internally so now that shows the correct balance, but on the member site it still shows the incorrect balance.

@TheCoreyHall
Copy link

TheCoreyHall commented May 10, 2019

I have discovered the same issue at one of my clients. They are on 8.6.

Actually two of my clients. The other is on 8.5

@HansenGrace
Copy link

Thanks for all your input. We’ll increase the priority on this and look for a solution.

@TheCoreyHall
Copy link

TheCoreyHall commented May 10, 2019

Here is an example from one of my clients. Personal information blacked out. You can see at the bottom they added the discount code when the registered, then they added a first payment. After that, they returned to pay again, and on the timestamps on the right, you can see that the discount was deleted at this time. The user it says who deleted it was the parent who was paying so we know that didnt happen manually.
image

@TheCoreyHall
Copy link

Still nothing found? My client on 8.5 experiences this issue every other week it seems.

@nairdo
Copy link
Member

nairdo commented Jul 1, 2019

Since I had no luck reproducing this issue on v8.8 or v9 (today), I created a Rock v8.4 system and was able to reproduce the issue there. So, as @chrisfunk hinted at above, and as @mikejed mentions in issue #3532:

I want to note that this also fixes the issue of auto-applied date-dependent discounts ("early bird discounts") from being removed when payments are made after the discount expires.

...this appears to have been fixed in version v8.7 with this change: 7fcfe7f.

I'm going to close this issue but please feel free to open it once you've upgraded to v8.8 if you are still able to reproduce this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants