Class Overview
Hi
Just getting started with MoneyDance and really like what I have seen so far. I was trying to put together my first Python script for it but I am finding the data model hard to get my head around, for instance Txn and how it relates to Categories, Account, Payee etc.
I cant find any documentation for an overview of the relationships other than the basic class documentation.
Thanks
Neil
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by NeilB on 17 Feb, 2018 12:51 PM
So far I have the following to flatten Account and Transactions. I realise that I will need to enhance this to include splits.
print "Account AccountType CategoryCount Payee Category Date Amount"
for txn in txnSet.iterableTxns():
if str(txn.getAccount()) == "Nationwide Flex" and counter < 100:
print "%s %s %d %s %s %u %s"%\
(txn.getAccount().getAccountName(), txn.getAccount().getAccountType(), txn.getOtherTxnCount(), txn.getDescription(), txn.getOtherTxn(0).getAccount(), txn.getDateInt(), txn.getAccount().getCurrencyType().formatFancy(txn.getValue(), '.'))
counter += 1
2 Posted by Mike Bray on 17 Feb, 2018 01:13 PM
Neil
Have a look at
https://bitbucket.org/mikerb/moneydance-2015/wiki/Home
It will give you some pointers. It is written with Java in mind but it will help with the data model.
Mike
Sent from my iPad
3 Posted by NeilB on 17 Feb, 2018 02:11 PM
Thanks Mike
Looks really helpful
Shame the developers didnt take onboard your suggestions 3 years ago or at least find a way to pin your Wiki post.
Thanks agin
Neil
System closed this discussion on 19 May, 2018 02:20 PM.