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

Payment calculation module #2

Closed
LeHack opened this issue Dec 4, 2016 · 0 comments
Closed

Payment calculation module #2

LeHack opened this issue Dec 4, 2016 · 0 comments
Labels
Milestone

Comments

@LeHack
Copy link
Owner

LeHack commented Dec 4, 2016

We need a module that will be able to handle the monthly fee calculations for a attendee using the following rules:

  • to calculate the monthly fee, first check what type of payment the attendee has, if it's monthly then it's a fixed fee and nothing else needs to be calculated for the given month
  • if it's attendance-based, then we need to know how many times the attendee was present during that particular month and then we take the group monthly fee subtract the attendance count x10zł, note that this number may come out negative and that's valid (then we get a surplus which advances for the next month)

Finally the module should be able to give us two numbers:

  • the fee for any selected month (using the above rules)
  • the total current balance - to calculate this we take every month for which there is any attendance info available for that particular attendee, multiply the month count by the group fee and subtract the attendance count x10zł (this should be always calculated live, not stored anywhere)
@LeHack LeHack added this to the Must have milestone Dec 4, 2016
@LeHack LeHack added the django label Jan 5, 2017
@LeHack LeHack closed this as completed Jan 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

1 participant