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), 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.

Jeff

 

Complete thread:

Back to the forum
Board view  Mix view
964 Postings in 318 Threads, 323 registered users, 159 users online (0 registered, 159 guests)
SQL-Ledger User Forum | Admin contact
RSS-Feed
powered by my little forum