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 0d9b29cc70..dfd24e152f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt @@ -181,7 +181,7 @@ [% reasons = AuthorisedValues.Get("ADJ_REASON") %] [% IF reasons.0 %] -
  • +
  • - + [% FOREACH budget IN budgets %] - + [% IF ( budget.selected ) %] + + [% ELSIF ( budget.b_active ) %] + + [% ELSE %] + + [% END %] [% END %] + +
  • @@ -443,6 +449,18 @@ $('.b_inactive').remove(); } }); + // same effort for the adjustments + var adjBudgetId = $("#budget_id_new"); + var disabledAdjBudgetsCopy = adjBudgetId.html(); + $('.ab_inactive').remove(); + $('#showallfunds_adj').click(function() { + if ($(this).is(":checked")) { + adjBudgetId.html(disabledAdjBudgetsCopy); //Puts back all the funds + } + else { + $('.ab_inactive').remove(); + } + }); }); [% END %]