Skip to content

Instantly share code, notes, and snippets.

@NiklasMerz
Created November 5, 2019 19:56
Show Gist options
  • Save NiklasMerz/84a820a99347c127a4b7ad6f0bdaf2f8 to your computer and use it in GitHub Desktop.
Save NiklasMerz/84a820a99347c127a4b7ad6f0bdaf2f8 to your computer and use it in GitHub Desktop.
Pecuniator Script
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