Skip to content
This repository has been archived by the owner on Oct 31, 2021. It is now read-only.

Track how much was spent from an expense per transaction. #47

Closed
elliotcourant opened this issue Mar 16, 2021 · 2 comments
Closed

Track how much was spent from an expense per transaction. #47

elliotcourant opened this issue Mar 16, 2021 · 2 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request Expenses Transactions
Milestone

Comments

@elliotcourant
Copy link
Member

When a transaction is spent from an expense we need to keep track of how much was spent. For example; If a transaction is $10 and is spent from an expense that only has $5 allocated, then we cannot spend all $10 from it. We should thus keep track in a separate object, or as an additional field on the transaction itself for expenseAmount. This way if the expense a transaction is spent from changes we can easily revert the amount on an expense.

This solves an issue relating to #46

@elliotcourant elliotcourant added bug Something isn't working enhancement New feature or request labels Mar 16, 2021
@elliotcourant elliotcourant added this to the Simple Dies milestone Mar 16, 2021
@elliotcourant elliotcourant self-assigned this Mar 16, 2021
@elliotcourant
Copy link
Member Author

For now I've added the field to the transaction object. I will add additional handling of this fields as I get expenses more built out.

@elliotcourant
Copy link
Member Author

This is now implemented

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working enhancement New feature or request Expenses Transactions
Projects
None yet
Development

No branches or pull requests

1 participant