From bce0f6b0d60cfeecdc0b0af02286d6b14add5c09 Mon Sep 17 00:00:00 2001 From: Laura_Escamilla Date: Wed, 3 Sep 2025 15:45:30 +0000 Subject: [PATCH] Bug 40743: Make active funds visible again MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To test: 1. Create a basket and add an item to the order. Close the basket. 2. Receive shipment. Create an invoice. 3. Go to the invoice and then go to the receipt page. 4. Receive the item you had added to your basket. Under Fund you will only see “Keep current (your budget name)”. Active budgets are not visible. 5. Click on “Show inactive” — both inactive and active budgets become visible. 6. Apply the patch. Restart all. 7. Repeat step 3 and 4. Notice now that the active budgets are visible under your Fund dropdown. On this step you can create an inactive budget / fund if you don’t have one set already. Next click on “Show inactive” and notice that the active fund is active, and the inactive fund has a budget_description of inactive. 8. Test to make sure budgets stick. 9. Sign off and have a wonderful day! Signed-off-by: David Nind --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt index b36f1d39b9..caf9ba9547 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt @@ -288,12 +288,12 @@ [% SET budget_period = budget_loops.$budget_period_id %] [% SET optgroup_class = "" %] [% SET optgroup_label = budget_period.description %] - [% IF budget_period.active %] + [% IF !budget_period.active %] [% SET optgroup_class = "inactive_budget" %] [% SET optgroup_label = t("{budget_description} (Inactive)", {budget_description = budget_period.description}) %] [% END %] - + [% FOREACH budget_loo IN budget_period.funds %] [% level_indent_cnt = 0 %] [% level_indent = "" %] -- 2.39.5