1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2025-06-13 13:39:23 -04:00

lua: Fetch reports from directory

This commit is contained in:
2017-02-07 20:59:52 -05:00
parent 5478ba3fd0
commit af704250e2
2 changed files with 24 additions and 13 deletions

8
reports/test.lua Normal file
View File

@ -0,0 +1,8 @@
accounts = get_accounts()
for id, account in pairs(accounts) do
print(account, account.security)
a = account:balance(date.new("2015-12-01"), date.new("2017-12-01"))
b = account:balance(date.new("2015-06-01"), date.new("2015-12-01"))
print(a, b, a+b, account:balance())
end