[Koha-bugs] [Bug 9088] neworderempty should preselect the only active fund for new orders

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu May 8 08:40:46 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9088

M. de Rooy <m.de.rooy at rijksmuseum.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #27712|0                           |1
        is obsolete|                            |

--- Comment #24 from M. de Rooy <m.de.rooy at rijksmuseum.nl> ---
Created attachment 28043
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=28043&action=edit
Bug 9088: Neworderempty should preselect the only active fund

This patch makes the following changes to the template:

[1] If you add an order line, and you have one active fund (and zero or
    more inactive funds), the only active fund is preselected.
[2] If you modify an order line while its fund is inactive, it now shows
    the label (inactive) behind the fund name. (Note that other inactive funds
    may come up when clicking 'Show all' as they did before.)
[3] Corrected some indentation in this template part.

Test plan:

[1] Add an order line while having one active fund. Is it selected?
[2] Add an order line while having two or more active funds. No fund
    should be preselected.
[3] Modify an order line with an active fund. Is it still selected?
[4] Modify an order line with an inactive fund F2 (while having one active
    fund F1; note that this test explicitly wants F1 to be before F2).
    Check if F2 is selected and is labeled inactive.
[5] (Bonus points:) Modify an order line that refers to a deleted fund.
    If you edit this order, the fund combo should say: Select a fund.
    (Note: if you delete a fund, the budget_id in aqorders remains.)

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list