SQL-Ledger Homepage

SQL-Ledger User Forum

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Pre-fill drop down menus? (General)

posted by JayArr(R) Homepage, Mission BC Canada, 21.01.2016, 15:35

I think it would be a real nice feature if the drop down boxes for Month and Year in the reports pages were pre-filled with the 'current' month and year.

I don't know about everyone else but 99% of the time when I want to run a report it's for "this month" not last year. We all have to select the month and year every time which is a waste of time.

I'd like to open up my A/R or A/P aging reports or my Income Statement and have it all set up to just hit continue and get my report, having to set the month and year every time is just wasteful.

Here's the section of code I want to edit:

> if ($selectfrom) {
> print qq|
> <tr>
> <th align=right>|.$locale->text('Period').qq|</th>
> <td colspan=3>
> <select name=frommonth>|.$form->select_option($selectaccountingmonth, undef, 1, 1).qq|</select>
> <select name=fromyear>|.$form->select_option($selectaccountingyear) .qq|</select>
> <input name=interval class=radio type=radio value=0>&nbsp;|.$locale->text('Current').qq|
> <input name=interval class=radio type=radio value=1 checked>&nbsp;|.$locale->text('Month').qq|
> <input name=interval class=radio type=radio value=3>&nbsp;|.$locale->text('Quarter').qq|
> <input name=interval class=radio type=radio value=12>&nbsp;|.$locale->text('Year').qq|
> </td>
> </tr>
> |;
> }

Can anyone suggest a way to make "select name" lines have a default value that corresponds to the current date?

This should not be difficult. IMHO.



Complete thread:

Back to the forum
Board view  Mix view
1024 Postings in 338 Threads, 377 registered users, 111 users online (0 registered, 111 guests)
SQL-Ledger User Forum | Admin contact
powered by my little forum