or Create a profile
Extension Development →
07 Dec, 2018 10:03 AM
I'm trying to write a small extension that requires data about budgeted and actual amounts of several categories. Looking through the documentation, I assumed the Budget.calculate method would do the work of calculating actual amounts based on transactions and returning that information. However, it seems to always return nothing. I have the following minimal Python repro:
from com.infinitekind.moneydance.model import *
from com.moneydance.apps.md.controller import *
from java.util import Date
budget = moneydance_data.getBudgets().findCurrentBudget()
start = Util.convertDateToInt(Date(2018,1,1))
end = Util.convertDateToInt(Date(2018,12,31))
items = budget.calculate(start, end, True, True)
This results in printing an empty list. I checked and the budget returned is the expected one (2018) which does have several categories and is being tracked correctly in the UI. I can get the budget items from the budget and they contain data as expected. It's only the call to calculate that presents this problem.
Any idea about what might be going on?
Formatting help /
(switch to plain text)
(switch to Markdown)
You can attach files up to 10MB
If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.
A conversation has been started with the Infinite Kind staff to resolve this discussion.
This discussion is private.
Only you and Infinite Kind support staff can see and reply to it.
This discussion is public. Everyone can see and reply to it.
You can use Command ⌘ instead of Control ^ on Mac
Powered by Tender™.