]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/db/TemplateAccount.java
copy-constructors for TemplateHeader/TemplateAccount/TemplateWithAccounts
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / db / TemplateAccount.java
index 8651e3fee09ba66ac857788e30a62e0e04894e84..f697b4dd54466431da96c383107f3e68235acf50 100644 (file)
@@ -69,6 +69,20 @@ public class TemplateAccount extends TemplateBase {
         this.templateId = templateId;
         this.position = position;
     }
+    public TemplateAccount(TemplateAccount o) {
+        id = o.id;
+        templateId = o.templateId;
+        accountName = o.accountName;
+        position = o.position;
+        accountNameMatchGroup = o.accountNameMatchGroup;
+        currency = o.currency;
+        currencyMatchGroup = o.currencyMatchGroup;
+        amount = o.amount;
+        amountMatchGroup = o.amountMatchGroup;
+        accountComment = o.accountComment;
+        accountCommentMatchGroup = o.accountCommentMatchGroup;
+        negateAmount = o.negateAmount;
+    }
     public Long getId() {
         return id;
     }