general-reports
general-reports copied to clipboard
Bunch of general reports for Money Manager Ex
general-reports
General reports for Money Manager Ex which can be downloaded and imported easily. Reports can be created using Money Manager Ex as well.
Report structure
Typically, one general report contains:
-
sqlcontent.sql (MMEX will execute this SQL first to return one result set)
select * from assets;
-
luacontent.lua (There are two APIs here)
- handle_record
function handle_record(record) -- Your logic to modify a record and apply this function against every record from SQL. record:set("extra_value", record::get("VALUE") * 2); end
- complete
function complete(result) -- Put some accumulated value and apply this function after SQL completes. result:set("TOTAL", 1000); end
-
template.htt (a plain text template file powered by html template which shares the same syntax with Perl's HTML::Template)
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new pull request