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

Remove the hard-coded dollar values #3

Open
tshearouse opened this issue Mar 24, 2018 · 0 comments
Open

Remove the hard-coded dollar values #3

tshearouse opened this issue Mar 24, 2018 · 0 comments

Comments

@tshearouse
Copy link
Contributor

We should know the price. If a user has a discounted membership, that's documented in the member spreadsheet. Instead of a big chain of hard-coded dollar values, move that logic inside the spreadsheet processor and check whether (price - discount == paymentAmount).

This can handle the whole monthly / yearly thing too. If ((price - discount) * 12 == paymentAmount), then it's probably yearly.

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

No branches or pull requests

1 participant