+[% END -%]
+
[% INCLUDE 'doc-head-open.inc' %]
[% INCLUDE 'doc-head-close.inc' %]
-[% INCLUDE 'calendar.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_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 %]'?
+ 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 %]
@@ -114,92 +82,104 @@
Home ›
Administration ›
-
-
[% IF ( add_form ) %]
- Budget ›
+ Budgets ›
[% IF ( budget_period_id ) %]
- Modify budget [% budget_period_description %]
-
+ Modify budget '[% budget_period_description | html %]'
[% ELSE %]
- Add budget
+ Add budget
[% END %]
[% END %]
-
-
-
[% IF ( delete_confirm ) %]
Budgets ›
- [% IF ( total ) %]
- Cannot delete budget '[% budget_period_description %]'
+ [% IF ( total || funds_exist ) %]
+ Cannot delete budget '[% budget_period_description | html %]'
[% ELSE %]
- Delete budget '[% budget_period_description %]'?
+ Delete budget '[% budget_period_description | html %]'?
[% END %]
[% END %]
-
[% IF ( duplicate_form ) %]
Budgets › Duplicate budget
[% END %]
-
-
+ [% IF close_form %]
+ Budgets ›
+ Close budget [% budget_period_description | html %]
+ [% END %]
+ [% IF closed %]
+ Budgets ›
+ Budget [% budget_period_description | html %] closed
+ [% END %]
[% IF ( else ) %]
- Budgets administration
+ Budgets administration
[% END %]
-
-
-
-
+
+
+
+
-[% INCLUDE 'budgets-admin-toolbar.inc' %]
+[% UNLESS close_form OR closed OR duplicate_form %]
+ [% INCLUDE 'budgets-admin-toolbar.inc' %]
+[% END %]
[% IF ( duplicate_form ) %]
Modify budget [% budget_period_description | html %]
[% ELSE %]
Add budget
[% END %]
-
@@ -306,81 +272,328 @@
[% IF ( total ) %]
Cannot delete budget
-
This record is used [% total %] times
+
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 %]'?
- [% END %]
+
Delete budget '[% budget_period_description | html %]'?
-
-
-
+ [% END %]
[% END %]
-
-[% IF ( else ) %]
-
Budgets administration
- [% INCLUDE 'budgets-active-currency.inc' %]
+[% 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
+
+
+ [% FOR r IN report %]
+ [% IF r.moved %]
+ [% IF r.orders_moved.size > 0 %]
+ [% FOR order IN r.orders_moved %]
+
+
[% 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!
+
+ [% END %]
+ [% ELSE %]
+
+
[% r.budget.budget_name | html %] (id=[% r.budget.budget_id | html %])
+
+
+
There were no unreceived orders for this fund.
+
+ [% END %]
+ [% ELSE %]
+ [% IF r.error == 'budget_code_not_exists' %]
+
+
[% 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.