We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 57241e8 + 1794882 commit b70f9e7Copy full SHA for b70f9e7
1 file changed
app/src/main/java/org/gnucash/android/ui/transaction/TransactionFormFragment.java
@@ -938,8 +938,9 @@ public boolean onOptionsItemSelected(MenuItem item) {
938
* @return {@code true} if the transaction can be saved, {@code false} otherwise
939
*/
940
private boolean canSave(){
941
- return (mAmountEditText.isInputValid())
942
- && (mUseDoubleEntry && mTransferAccountSpinner.getCount() > 0);
+ return (mUseDoubleEntry && mAmountEditText.isInputValid()
+ && mTransferAccountSpinner.getCount() > 0)
943
+ || (!mUseDoubleEntry && mAmountEditText.isInputValid());
944
}
945
946
/**
0 commit comments