https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44183

            Bug ID: 44183
           Summary: Add default values to parameters
   Initiative type: ---
        Sponsorship ---
            status:
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Reports
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]
  Target Milestone: ---

Right now we have to use jQuery to inject defaults into reports if we want
them.  It would be helpful if parameters in Koha SQL would allow us to define
defaults.  For example:

WHERE somedate BETWEEN <<Start Date|date>> AND <<End Date|date>>

could turn into this:

WHERE somedate BETWEEN <<Start Date|date|'2026-10-01'>> AND <<End
Date|date|'2027-10-01'>>

The challenge would be to determine what the value represents, because in this
example, you might not choose to use the calendar tool.  So then it would need
to be defined as:

WHERE somedate BETWEEN <<Start Date||'2026-10-01'>> AND <<End
Date||'2027-10-01'>>

I could see default values being used on any parameters, not just dates.

branchcode Like <<Library|branches|'COEUR'>>

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to