Skip to content

Commit

Permalink
codinguser#876 - Set amount to 0 if text field is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanGarf committed Jun 10, 2020
1 parent eb0f00d commit 7fc3485
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,18 @@ private List<Split> extractSplitsFromView() {

BigDecimal amountBigD = mAmountEditText.getValue();

if (amountBigD != null) {
// Amount is null

// RAF

} else {
// Amount is not null

// init to 0
amountBigD=new BigDecimal(0);
}

String baseCurrencyCode = mTransactionsDbAdapter.getAccountCurrencyCode(mAccountUID);

// Store signed amount
Expand Down

0 comments on commit 7fc3485

Please sign in to comment.