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

Calculate the Total income in a Period of Time #22

Open
htmfilho opened this issue Jan 17, 2019 · 2 comments
Open

Calculate the Total income in a Period of Time #22

htmfilho opened this issue Jan 17, 2019 · 2 comments

Comments

@htmfilho
Copy link
Owner

The Total Income is the sum of all credit transactions in all accounts of the user, or the family, during a period of time.

To calculate the total income, the function requires the family and the period of time. For each member of the family, get the list of accounts. For each account, get the list of credit transactions that are not originated from a transfer. return the sum of the amounts.

@keniasousa
Copy link
Collaborator

keniasousa commented Jan 17, 2019 via email

@htmfilho
Copy link
Owner Author

Yes. When we move money from an account to another, there is a debit transaction in the first account and a credit transaction in the second account. Those credit transactions indicate just the movement of money from an account to another. All other credit transactions are different types of income from different sources.

@htmfilho htmfilho assigned htmfilho and unassigned keniasousa Jan 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants