]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/db/PatternAccount.java
add a pattern flag for negation of amount
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / db / PatternAccount.java
index eff346445ddb945b396f2a70274e0a26772c8a64..3ebd51da1c27e11fd6e6aaac975299ac5eaa381f 100644 (file)
@@ -61,6 +61,8 @@ public class PatternAccount extends PatternBase {
     private String accountComment;
     @ColumnInfo(name = "comment_match_group")
     private Integer accountCommentMatchGroup;
+    @ColumnInfo(name = "negate_amount")
+    private Boolean negateAmount;
     public PatternAccount(@NotNull Long id, @NonNull Long patternId, @NonNull Long position) {
         this.id = id;
         this.patternId = patternId;
@@ -72,6 +74,12 @@ public class PatternAccount extends PatternBase {
     public void setId(Long id) {
         this.id = id;
     }
+    public Boolean getNegateAmount() {
+        return negateAmount;
+    }
+    public void setNegateAmount(Boolean negateAmount) {
+        this.negateAmount = negateAmount;
+    }
     public @NotNull Long getPatternId() {
         return patternId;
     }