public boolean hasLiteralAccountComment() {
return accountComment.hasLiteralValue();
}
+ public boolean hasLiteralCurrency() { return currency.hasLiteralValue(); }
public boolean equalContents(AccountRow o) {
if (position != o.position) {
Logger.debug("cmpAcc",
public void switchToLiteralAmount() {
amount.switchToLiteral();
}
+ public void switchToLiteralCurrency() {
+ currency.switchToLiteral();
+ }
public void switchToLiteralAccountName() {
accountName.switchToLiteral();
}
result.setNegateAmount(negateAmount ? true : null);
}
+ if (currency.hasLiteralValue()) {
+ net.ktnx.mobileledger.db.Currency c = currency.getValue();
+ result.setCurrency((c == null) ? null : c.getId());
+ }
+ else {
+ result.setCurrencyMatchGroup(currency.getMatchGroup());
+ }
+
return result;
}
public boolean isEmpty() {