[% USE raw %] [% USE Asset %] [% USE KohaDates %] [% USE Price %] [% SET footerjs = 1 %] [%- BLOCK action_menu %] [% END -%] [% INCLUDE 'doc-head-open.inc' %] [% INCLUDE 'doc-head-close.inc' %] [% Asset.css("css/datatables.css") | $raw %] [% IF close_form %] [% Asset.css("lib/jquery/plugins/treetable/stylesheets/jquery.treetable.css") | $raw %] [% END %] Koha › Administration › Budgets [% IF ( add_form ) %]› [% IF ( budget_period_id ) %] Modify budget [% budget_period_description | html %] [% ELSE %] Add budget [% END %] [% END %] [% IF ( duplicate_form ) %]› Duplicate budget[% END %] [% IF ( delete_confirm ) %]› Delete budget '[% budget_period_description | html %]'? [% END %] [% IF ( delete_confirmed ) %]› Data deleted [% END %] [% IF close_form %]› Close budget [% budget_period_description | html %] [% END %] [% IF closed %]› Budget [% budget_period_description | html %] closed [% END %] [% INCLUDE 'header.inc' %] [% INCLUDE 'budgets-admin-search.inc' %]
[% UNLESS close_form OR closed OR duplicate_form %] [% INCLUDE 'budgets-admin-toolbar.inc' %] [% END %] [% IF ( duplicate_form ) %]

Duplicate budget

  1. Required
    [% INCLUDE 'date-format.inc' %]
  2. Required
    [% INCLUDE 'date-format.inc' %]
  3. Required
  4. %
    (can be positive or negative)
  5. (amounts will be rounded down)
Cancel
[% END %] [% IF ( add_form ) %] [% IF ( budget_period_id ) %]

Modify budget [% budget_period_description | html %]

[% ELSE %]

Add budget

[% END %]
  1. Required
    [% INCLUDE 'date-format.inc' %]
  2. Required
    [% INCLUDE 'date-format.inc' %]
  3. Required
  4. [% IF ( budget_period_active ) %][% ELSE %] [% END %]
  5. [% IF ( budget_period_locked ) %][% ELSE %] [% END %]
[% IF ( budget_period_id ) %] Cancel [% ELSE %] Cancel [% END %]
[% END %] [% IF ( delete_confirm ) %] [% IF ( total ) %]

Cannot delete budget

This record is used [% total | html %] times . Deletion is not possible.

[% ELSIF ( funds_exist ) %]

Cannot delete budget

This budget has funds attached. You must delete all attached funds before you can delete this budget.

[% ELSE %]

Delete budget '[% budget_period_description | html %]'?

[% END %]
[% END %] [% IF close_form %] [% IF budget_periods.size == 0 %] You cannot move funds of this budget, there is no active budget. Please create a new active budget and retry. Back [% ELSIF number_of_unreceived_orders == 0 %] There are no unreceived orders for this budget. Back [% ELSE %]

The unreceived orders from the following funds will be moved

Fund list of budget [% budget_period_description | html %]: [% FOREACH budget IN budgets_to_move %] [% END %]
Fund id Fund code Fund name Unreceived orders
[% budget.budget_id | html %] [% budget.budget_code_indent | html %] [% budget.budget_name | html %] [% budget.unreceived_orders.size | html %]
Cancel
[% END %] [% ELSIF closed %]

Report after moving unreceived orders from budget [% from_budget_period.budget_period_description | html %] ([% from_budget_period.budget_period_startdate | $KohaDates %] - [% from_budget_period.budget_period_enddate | $KohaDates %]) to [% to_budget_period.budget_period_description | html %] ([% to_budget_period.budget_period_startdate | $KohaDates %] - [% to_budget_period.budget_period_enddate | $KohaDates%])

[% FOR r IN report %] [% IF r.moved %] [% IF r.orders_moved.size > 0 %] [% FOR order IN r.orders_moved %] [% END %] [% ELSE %] [% END %] [% ELSE %] [% IF r.error == 'budget_code_not_exists' %] [% END %] [% END %] [% END %]
Budget id Basket Ordernumber Details
[% r.budget.budget_name | html %] (id=[% r.budget.budget_id | html %]) Amount=[% r.budget.budget_amount | $Price %][% IF r.unspent_moved %] ([% r.unspent_moved | $Price %] remaining has been moved)[% END %] [% order.basketname | html %] [% order.ordernumber | html %] Moved!
[% r.budget.budget_name | html %] (id=[% r.budget.budget_id | html %]) There were no unreceived orders for this fund.
[% r.budget.budget_id | html %] [% r.budget.budget_amount | $Price %][% IF r.unspent_moved %] ([% r.unspent_moved | $Price %] remaining has been moved)[% END %] This fund code does not exist in the destination budget.
Back [% END %] [% IF ( else ) %]

Budgets administration

[% IF ( failed_delete_funds_exist ) %]
Failed to delete budget because funds exist.
[% END %] [% INCLUDE 'budgets-active-currency.inc' %]
[% IF ( period_active_loop ) %] [% FOREACH period_active IN period_active_loop %] [% END %]
Budget name Start date End date Locked Total Actions
[% period_active.budget_period_description | html %] [% period_active.budget_period_startdate | $KohaDates %] [% period_active.budget_period_enddate | $KohaDates %] [% IF ( period_active.budget_period_locked ) %] Locked  [% END %] [% period_active.budget_period_total | $Price %] [% PROCESS action_menu block_budget=period_active %]
[% ELSE %] No active budgets [% END %]
[% IF ( period_inactive_loop ) %] [% FOREACH period_loo IN period_inactive_loop %] [% END %]
Budget name Start date End date Locked Total Actions
[% period_loo.budget_period_description | html %] [% period_loo.budget_period_startdate | $KohaDates %] [% period_loo.budget_period_enddate | $KohaDates %] [% IF ( period_loo.budget_period_locked ) %]Locked [% ELSE %][% END %] [% period_loo.budget_period_total | $Price %] [% PROCESS action_menu block_budget=period_loo %]
[% ELSE %] No inactive budgets [% END %]
[% END %]
[% MACRO jsinclude BLOCK %] [% INCLUDE 'calendar.inc' %] [% INCLUDE 'datatables.inc' %] [% IF close_form %] [% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %] [% END %] [% Asset.js("js/acq.js") | $raw %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]