[% USE raw %] [% USE Asset %] [% USE KohaDates %] [% USE Price %] [% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [%- BLOCK action_menu %]
Actions
[% END -%] [% INCLUDE 'doc-head-open.inc' %] [% INCLUDE 'doc-head-close.inc' %] [% IF close_form %] [% Asset.css("lib/jquery/plugins/treetable/stylesheets/jquery.treetable.css") | $raw %] [% END %] [% FILTER collapse %] [% IF ( add_form ) %] [% IF ( budget_period_id ) %] [% tx("Modify budget '{budget_period_description}'", { budget_period_description = budget_period_description }) | html %] [% ELSE %] [% t("New budget") | html %] [% END %] › [% END %] [% IF ( duplicate_form ) %] [% t("Duplicate budget") | html %] › [% END %] [% IF ( delete_confirm ) %] [% IF ( total || funds_exist ) %] [% tx("Cannot delete budget '{budget_period_description}'", { budget_period_description = budget_period_description }) | html %] › [% ELSE %] [% tx("Confirm deletion of budget '{budget_period_description}'", { budget_period_description = budget_period_description }) | html %] › [% END %] [% END %] [% IF close_form %] [% tx("Close budget '{budget_period_description}'", { budget_period_description = budget_period_description }) | html %] › [% END %] [% IF closed %] [% tx("Budget '{budget_period_description}' closed", { budget_period_description = budget_period_description }) | html %] › [% END %] [% t("Budgets") | html %] › [% t("Administration") | html %] › [% t("Koha") | html %] [% END %] [% WRAPPER 'header.inc' %] [% INCLUDE 'budgets-admin-search.inc' %] [% END %] [% WRAPPER 'sub-header.inc' %] [% WRAPPER breadcrumbs %] [% WRAPPER breadcrumb_item %] Administration [% END %] [% IF ( else ) %] [% WRAPPER breadcrumb_item bc_active= 1 %] Budgets [% END %] [% ELSE %] [% WRAPPER breadcrumb_item %] Budgets [% END %] [% END %] [% IF ( add_form ) %] [% IF ( budget_period_id ) %] [% WRAPPER breadcrumb_item bc_active= 1 %] [% tx("Modify budget '{budget_period_description}'", { budget_period_description = budget_period_description }) | html %] [% END %] [% ELSE %] [% WRAPPER breadcrumb_item bc_active= 1 %] New budget [% END %] [% END %] [% END %] [% IF ( delete_confirm ) %] [% IF ( total || funds_exist ) %] [% WRAPPER breadcrumb_item bc_active= 1 %] [% tx("Cannot delete budget '{budget_period_description}'", { budget_period_description = budget_period_description }) | html %] [% END %] [% ELSE %] [% WRAPPER breadcrumb_item bc_active= 1 %] [% tx("Confirm deletion of budget '{budget_period_description}'", { budget_period_description = budget_period_description }) | html %] [% END %] [% END %] [% END %] [% IF ( duplicate_form ) %] [% WRAPPER breadcrumb_item bc_active= 1 %] Duplicate budget [% END %] [% END %] [% IF close_form %] [% WRAPPER breadcrumb_item bc_active= 1 %] [% tx("Close budget '{budget_period_description}'", { budget_period_description = budget_period_description }) | html %] [% END %] [% END %] [% IF closed %] [% WRAPPER breadcrumb_item bc_active= 1 %] [% tx("Budget '{budget_period_description}' closed", { budget_period_description = budget_period_description }) | html %] [% END %] [% END %] [% END #/ WRAPPER breadcrumbs %] [% END #/ WRAPPER sub-header.inc %]
[% INCLUDE 'messages.inc' %] [% UNLESS close_form OR closed OR duplicate_form %] [% INCLUDE 'budgets-admin-toolbar.inc' %] [% END %] [% IF ( duplicate_form ) %]

Duplicate budget

[% INCLUDE 'csrf-token.inc' %]
  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 ) %]

[% tx("Modify budget '{budget_period_description}'", { budget_period_description = budget_period_description }) | html %]

[% ELSE %]

New budget

[% END %]
[% INCLUDE 'csrf-token.inc' %]
  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 %]

[% tx("Confirm deletion of budget '{budget_period_description}'?", { budget_period_description = budget_period_description }) | html %]

[% INCLUDE 'csrf-token.inc' %]
No, do not delete [% END %]
[% END %] [% IF close_form %]

[% tx("Close budget '{budget_period_description}'", { budget_period_description = budget_period_description }) | html %]

[% 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.

Return to budgets
[% ELSIF number_of_unreceived_orders == 0 %]

Cannot close budget

There are no unreceived orders for this budget.

Return to budgets
[% 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 | html %] [% budget.budget_name | html %] [% budget.unreceived_orders.size | html %]
[% INCLUDE 'csrf-token.inc' %]
Cancel
[% END %] [% ELSIF closed %]

[% tx("Budget '{budget_period_description}' closed", { budget_period_description = budget_period_description }) | html %]

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

[% IF ( failed_delete_funds_exist ) %]
Failed to delete budget because funds exist.
[% END %] [% INCLUDE 'budgets-active-currency.inc' %] [% WRAPPER tabs id= "budgetsTabs" %] [% WRAPPER tabs_nav %] [% WRAPPER tab_item tabname= "active" bt_active= 1 %] Active budgets [% END %] [% WRAPPER tab_item tabname= "inactive" %] Inactive budgets [% END %] [% END # /WRAPPER tabs_nav %] [% WRAPPER tab_panels %] [% WRAPPER tab_panel tabname="active" bt_active= 1 %] [% IF ( period_active_loop ) %] [% FOREACH period_active IN period_active_loop %] [% END # /FOREACH period_active %]
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_active_loop %] [% END # /WRAPPER tab_panel#active %] [% WRAPPER tab_panel tabname="inactive" %] [% IF ( period_inactive_loop ) %] [% FOREACH period_loo IN period_inactive_loop %] [% END # /FOREACH period_loo %]
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[% END %] [% period_loo.budget_period_total | $Price %] [% PROCESS action_menu block_budget=period_loo %]
[% ELSE %] No inactive budgets [% END # /IF inactiveperiodst %] [% END # /WRAPPER tab_panel#inactive %] [% END # /WRAPPER tab_panels %] [% END # /WRAPPER tabs %] [% END # /IF else %]
[% 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' %]