Skip to content

Commit

Permalink
added some queries to fetch id of incomecategory and expensecategory
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrax committed Mar 18, 2021
1 parent fd6692d commit ca6e914
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/AccountingData.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,5 +198,18 @@ public function getAllIncomes()
}


public function getIncomeCategoryIdByName($categoryname){

return IncomeCategory::where('category',$categoryname)->first()->id;
}


public function getExpenseCategoryIdByName($categoryname){

return ExpenseCategory::where('category',$categoryname)->first()->id;
}




}
Empty file.

0 comments on commit ca6e914

Please sign in to comment.