Page 1 of 1

Editing Reports

Posted: Tue May 17, 2016 8:37 am
by petemac
Hello. I've been using MMEX for a while and find it is very close to what I need, and close to its aim - a simple way to manage relatively simple accounts. I am not a SQL programmer and am grateful to those who do the work on that side.

I would like to create an income-expenses report for a year before the previous year. At the moment I can go back to 2015 but not 2014. Is it possible to simply edit the parameters so that I can enter 2014 dates as the year? I have looked at the repository of submitted reports and can't find any income-expenses template. Is it possible? I have played with the General Report Manager but that does not seem able to edit or duplicate existing reports such as income-expense and I can't find an external income-expense report to import and edit. Thanks for any help.

Re: Editing Reports

Posted: Fri May 20, 2016 10:02 am
by petemac
Nobody with any thoughts on this? To rephrase my earlier post, I'm looking for an editable version of the income vs expenses report with figures visible in a table like the 'Last Year' version so that I can try to change the year (so I'd probably need the SQL, Lua and Template files to do a proper job). It must exist somewhere, mustn't it?

Re: Editing Reports

Posted: Sat May 21, 2016 10:01 am
by sterling
So far the authors have never given out the reports like that.  Though it will be on sourceforce like the rest of it i assume.

Re: Editing Reports

Posted: Sat May 21, 2016 10:04 am
by petemac
Thanks Sterling. I'll have a look to see if there's anything I can spot there.

Re: Editing Reports

Posted: Sat May 21, 2016 5:19 pm
by sterling
There are loads of reports which may suite you anyway.  A few people contribute to just the custom reports section such as myself.  I just dont know where the built in reports source is.

Re: Editing Reports

Posted: Sat May 21, 2016 5:26 pm
by petemac
Thanks. I have trawled through the custom reports section but haven't found anything that offers the simple change to the income/expenses report or anything that successfully adapts (I tried tinkering with a couple). I imagine this is because there appear to be many options in the default installation, which is true, and they are very useful. However, the lack of an option to create custom date ranges for the income/expense reports, beyond the default versions, seems rather limiting to me. No problem if one is assessing accounts that only extend over the last 2 years but not much help if one needs to go back further as I would like/need to do.

Re: Editing Reports

Posted: Sun Feb 04, 2018 11:18 pm
by frankieorabona
petemac wrote:Thanks. I have trawled through the custom reports section but haven't found anything that offers the simple change to the income/expenses report or anything that successfully adapts (I tried tinkering with a couple). I imagine this is because there appear to be many options in the default installation, which is true, and they are very useful. However, the lack of an option to create custom date ranges for the income/expense reports, beyond the default versions, seems rather limiting to me. No problem if one is assessing accounts that only extend over the last 2 years but not much help if one needs to go back further as I would like/need to do.
+1

Re: Editing Reports

Posted: Thu Mar 21, 2019 7:12 am
by siowena
petemac wrote:I'm looking for an editable version of the income vs expenses report with figures visible in a table like the 'Last Year' version so that I can try to change the year (so I'd probably need the SQL, Lua and Template files to do a proper job). It must exist somewhere, mustn't it?
Hi, are you talking about the "Income vs. Expenses" report that's on of the built-on reports (with the monthly sub-report beneath it)?

Re: Editing Reports

Posted: Thu Mar 21, 2019 12:08 pm
by petemac
Yes, that's the one. In the dropdown one can choose other options such as Financial Year, Last Financial Year and Over Time. But if you choose Over Time the dates are not editable so one cannot go back further than the Last Financial Year.

Re: Editing Reports

Posted: Sat Mar 23, 2019 2:08 pm
by siowena
petemac wrote:Yes, that's the one. In the dropdown one can choose other options such as Financial Year, Last Financial Year and Over Time. But if you choose Over Time the dates are not editable so one cannot go back further than the Last Financial Year.
I believe in v1.4.x there will be the ability to enter date ranges into reports.

For now try this attached report to see if it give you want you require. The report shows per year 2015-2020 assuming there are transactions for the year. If you need different years, edit the SQL to have the years your interested in.

It's for v1.3.3.

Re: Editing Reports

Posted: Sat Mar 23, 2019 3:03 pm
by petemac
Thank you very much, that's interesting. What are the year parameters - 1 January to 31 December? What I generally need are the financial year totals, which for me are 1 May to 30 April (hence needing the custom date function if going beyond the Current/Last Financial Years in the stock installation). I can see how to edit the years in the way you suggest, so that's good esp as I'm a SQL know-nothing. What could I edit to introduce the financial year parameters in a simple way?

I look forward to version 4.

Re: Editing Reports

Posted: Sun Mar 24, 2019 8:49 am
by siowena
petemac wrote:Thank you very much, that's interesting. What are the year parameters - 1 January to 31 December? What I generally need are the financial year totals, which for me are 1 May to 30 April (hence needing the custom date function if going beyond the Current/Last Financial Years in the stock installation). I can see how to edit the years in the way you suggest, so that's good esp as I'm a SQL know-nothing. What could I edit to introduce the financial year parameters in a simple way?

I look forward to version 4.
Yes, the year is Calendar Jan-01 to Dec-31.

I've modified the report to now read the Financial Year start month/day form the MMEX Tools -> Options -> General -> Financial Year settings.

You'll need to change the line 20 in the SQL to FIN_YEAR and also change and line 44 for the years you are interested.

Re: Editing Reports

Posted: Sun Mar 24, 2019 10:13 am
by petemac
Thanks again. I've got it working, paddling into personally uncharted waters with that sort of data manipulation. I'm a graphic designer not a coder though I've worked with html and php. SQL is probably something I'll mostly leave to those with a talent for it, like yourself. Cheers.

Re: Editing Reports

Posted: Fri Apr 10, 2020 4:32 pm
by Nikolay
Using substr('&single_date', 1, 4) and strftime('%Y', c.TRANSDATE) year you can create report that will change date by a date widget.

Code: Select all

with p as (select PAYEEID, PAYEENAME from PAYEE_V1),
c as (
select 
strftime('%Y', c.TRANSDATE) year,
c.payeeid, count(*) count, 
sum( TRANSAMOUNT) summ
from CHECKINGACCOUNT_V1 c
where c.STATUS !='Void' and c.TRANSCODE='Deposit'
group by c.payeeid
)
select 
-- c.year, 
p.payeename, c.count, 
c.summ,
case  when  c.summ>45 then '*****' when c.summ>35 then '****' when c.summ>25 then '***'  when c.summ>15 then '**' else '*' end stars
from c, p
where p.payeeid = c.payeeid
and c.year= substr('&single_date', 1, 4)
group by c.payeeid
order by 4 desc, 3 desc, 1

Re: Editing Reports

Posted: Thu Apr 01, 2021 1:45 pm
by AstridWilma
Any Transcript rules that one needs to adhere to?
THE APA referencing style maybe?

Re: Editing Reports

Posted: Thu Apr 01, 2021 2:08 pm
by Renato
Do not understand these questions