Bug 5963

Summary: Acquisitions: Add the capability to have a filter by active budget
Product: Koha Reporter: Chris Cormack <chris>
Component: AcquisitionsAssignee: Paul Poulain <paul.poulain>
Status: CLOSED FIXED QA Contact: Bugs List <koha-bugs>
Severity: enhancement    
Priority: PATCH-Sent (DO NOT USE) CC: alex.arnaud, julian.maurice, katrin.fischer
Version: 3.4   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on:    
Bug Blocks: 5580, 6051    
Attachments: Proposed Patch
Screenshot
Follow up patch
Follow up patch
Sqashed all 3 patches into one

Description Chris Cormack 2011-03-28 01:47:10 UTC
The sub GetBudgetHierarchy return aqbudgetperiods.budget_period_active to have acces to a new filtering way, more the neworderempty.pl page have a check box "shox all".
Comment 1 Chris Cormack 2011-03-28 01:50:46 UTC Comment hidden (obsolete)
Comment 2 Julian Maurice 2011-03-31 13:15:24 UTC
Created attachment 3571 [details]
Screenshot

The 'Show all' label is placed to the left of dropdown list instead of the right.
Can someone confirms this behavior? because i don't see any errors in the template.
Comment 3 Owen Leonard 2011-03-31 13:42:42 UTC
To solve the layout problem I recommend replacing this markup at line 314 of neworderempty.tmpl:

<span class="label">&nbsp;Show all :</span><input type="checkbox" id="showallbudgets" />

...with this:

<label for="showallbudgets" style="float:none;width:auto;">&nbsp;Show all: </label><input type="checkbox" id="showallbudgets" />

Is this checkbox supposed to trigger the display of inactive funds? It didn't do anything at all for me, but I suspect I don't have the right kind of budgets set up to properly test.

Please provide more details about how to test this properly.
Comment 4 Julian Maurice 2011-03-31 14:04:43 UTC
Checkbox does nothing, because GetBudgetHierarchy returns only active funds.
I will submit a follow up patch with this modification, and Owen's fix for layout.
Comment 5 Julian Maurice 2011-03-31 14:14:49 UTC Comment hidden (obsolete)
Comment 6 Julian Maurice 2011-03-31 14:29:56 UTC Comment hidden (obsolete)
Comment 7 MJ Ray (software.coop) 2011-04-03 23:19:29 UTC
This bug is mentioned in:
Bug 5963 : Add the ability to filter budgets	using the active column http://lists.koha-community.org/pipermail/koha-patches/2011-March/014250.html
Bug 5963: Modify GetBudgetsHierarchy to	returns all funds http://lists.koha-community.org/pipermail/koha-patches/2011-March/014399.html
Bug 5963: follow up: Remove useless comments http://lists.koha-community.org/pipermail/koha-patches/2011-March/014400.html
Comment 8 Katrin Fischer 2011-04-04 09:45:27 UTC
Created attachment 3610 [details] [review]
Sqashed all 3 patches into one
Comment 9 Chris Cormack 2011-04-05 02:58:43 UTC
Pushed, please test
Comment 10 Alex Arnaud 2011-04-05 08:56:09 UTC
*** Bug 6051 has been marked as a duplicate of this bug. ***