Created
November 5, 2019 19:56
-
-
Save NiklasMerz/84a820a99347c127a4b7ad6f0bdaf2f8 to your computer and use it in GitHub Desktop.
Pecuniator Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var budget = new Budget({name: "My car budget", interval: "yearly"}); | |
var account = Accounts.get("MYGIROIBAN"); | |
const insuranceQuery = new TransactionsQuery(); | |
insuranceQuery.subject.contains("Insurance Payment Car"); | |
//insuranceQuery.subject.regex(.. | |
insuranceQuery.iban.equals("DE....") | |
const insuranceTransactions = account.query(insuranceQuery); | |
budget.add("Insurance", insuranceTransactions); | |
console.log(budgte.name, budget.summary()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment