Skip to content

Commit

Permalink
#724 - mark transaction as expenditure depending on amount
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlocker8 committed Jan 18, 2023
1 parent 4f5b4a5 commit 61df2fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ private Transaction createTransactionFromCsvTransaction(CsvTransaction csvTransa
newTransaction.setName(csvTransaction.getName());
newTransaction.setDescription(csvTransaction.getDescription());
newTransaction.setAmount(csvTransaction.getAmount());
newTransaction.setIsExpenditure(true);
newTransaction.setIsExpenditure(csvTransaction.getAmount() <= 0);
newTransaction.setAccount(helpers.getCurrentAccountOrDefault());
newTransaction.setCategory(categoryService.findByType(CategoryType.NONE));

Expand Down

0 comments on commit 61df2fa

Please sign in to comment.