From c3388a950ef59e0531c482bc7dba0b647150589e Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 19 Mar 2021 15:02:12 +0000 Subject: [PATCH] Bug 28003: Invoice adjustments using inactive budgets do not indicate that status This patch affects the display of existing invoice adjustments to indicate when using an inactive budget To recreate 1 - In acquisitions go to a vendor 2 - Click 'Receive' 3 - Create an invoice 4 - Finish receiving 5 - Go to Admin->budgets 6 - Duplicate your current budget 7 - Mark the original budget inactive 8 - View the invoice you created 9 - No indication the budget is inactive 10 - Apply patch 11 - Reload the page 12 - The fund shows '(inactive)' 13 - The dropdown to edit the funds also indicates which funds are inactive Note that adding new adjustments does show only the active budget unless you request to see inactive. Signed-off-by: Amit Gupta Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart (cherry picked from commit 7dcb4287e0642b87b3f66b421ea64ad712e49661) Signed-off-by: Fridolin Somers (cherry picked from commit 0164135763b6d6842b57d74630e4831657a7a62c) Signed-off-by: Andrew Fuerste-Henry --- .../intranet-tmpl/prog/en/modules/acqui/invoice.tt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt index dfd24e152f..303c0e7a19 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt @@ -144,9 +144,13 @@ + [% END %] + [% IF budget.b_active %] + [% budget.b_txt | html %] + [% ELSE %] + [% budget.b_txt | html %] (inactive) + [% END %] + [% END %] -- 2.39.5