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

Create Model for ExpenseLog #26

Closed
2 tasks
zacck-zz opened this issue Feb 16, 2018 · 1 comment
Closed
2 tasks

Create Model for ExpenseLog #26

zacck-zz opened this issue Feb 16, 2018 · 1 comment
Assignees

Comments

@zacck-zz
Copy link
Member

zacck-zz commented Feb 16, 2018

An ExpenseLog is generated everytime a user spends in a MoneyLog, it contains the following details

  • name: name of this expense
  • log_category_id: id of the LogCategory this expense belongs to
  • desc: a description of this expense
  • amount: amount spent in this expense
  • payment_method_id: id of PaymentMethod used for this expense
  • money_log_id: id of MoneyLog this expense belongs to
  • date: date of this expense

A model will be needed to

  • Create an expense if name and amount spent provided
  • Update expense details if id is provided
@zacck-zz zacck-zz added this to the Planning Context milestone Mar 28, 2018
@zacck-zz zacck-zz changed the title Create Model for ExpenceLog Create Model for ExpenseLog Mar 29, 2018
@zacck-zz
Copy link
Member Author

zacck-zz commented Jul 1, 2018

Notes

Needs to be associated to a Payment Method #113

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

2 participants