X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Fadmin%2Faqbudgetperiods.tt;h=498486ccb2bbcc3b9a4b4e0d1421c32fc476aed1;hb=cd81bdc6a0b0250d97cbb5c49bcb90290d29e34a;hp=4b2599227f7c9a27612f8e75992bc67061325c84;hpb=fe4df9978a3fd8acdc115e85c167bea7f9697a6a;p=koha.git diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt index 4b2599227f..498486ccb2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt @@ -1,101 +1,69 @@ +[% 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' %] -[% 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 @@ HomeAdministration › - - [% 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 ) %]

Duplicate budget

-
+
- +
  1. - - - Show start date calendar - -
    [% INCLUDE 'date-format.inc' %]
    + + + Required +
    [% INCLUDE 'date-format.inc' %]
  2. - - - Show end date calendar + + + Required +
    [% INCLUDE 'date-format.inc' %]
    +
  3. - -
    [% INCLUDE 'date-format.inc' %]
    +
  4. + + + Required +
  5. + +
  6. + + % +
    (can be positive or negative)
    +
  7. + +
  8. + + +
    (amounts will be rounded down)
    +
  9. + +
  10. + + +
  11. + +
  12. + +
- Cancel + + Cancel
@@ -210,77 +190,60 @@ [% IF ( budget_period_id ) %] -

Modify budget

+

Modify budget [% budget_period_description | html %]

[% ELSE %]

Add budget

[% END %] -
+
- +
  1. - - - Show start date calendar - -
    [% INCLUDE 'date-format.inc' %]
    + + + Required +
    [% INCLUDE 'date-format.inc' %]
  2. - - - Show end date calendar - - -
    [% INCLUDE 'date-format.inc' %]
    + + + Required +
    [% INCLUDE 'date-format.inc' %]
  3. - + + size="48" maxlength="80" value="[% budget_period_description | html %]" /> + Required
  4. - + + size="10" maxlength="80" value="[% budget_period_total | $Price on_editing => 1 | html %]" />
  5. - + [% IF ( budget_period_active ) %][% ELSE %] [% END %]
  6. - + [% IF ( budget_period_locked ) %][% ELSE %] [% END %]
@@ -289,9 +252,12 @@
- - - [% IF ( budget_period_id ) %]Cancel[% END %] + + [% IF ( budget_period_id ) %] + Cancel + [% ELSE %] + Cancel + [% 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

+ Fund list of budget [% budget_period_description | html %]: + + + + + + + + + + + [% FOREACH budget IN budgets_to_move %] + + + + + + + [% END %] + +
Fund idFund codeFund nameUnreceived orders
[% budget.budget_id | html %][% budget.budget_code_indent | html %][% budget.budget_name | html %][% budget.unreceived_orders.size | html %]
+
+
+
    +
  1. + + +
  2. +
  3. + + +
  4. +
+
+
+ + + + 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%])

- +
- - - - - - - - - - - - [% FOREACH period_loo IN period_loop %] - [% IF ( loop.odd ) %] - - [% ELSE %] - - [% END %] - - - - - - - - - [% END %] - [% UNLESS ( period_loop ) %] - - [% END %] + + + + + + + + + [% 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 nameStart dateEnd dateActiveLockedTotalActions
[% period_loo.budget_period_description %][% period_loo.budget_period_startdate %][% period_loo.budget_period_enddate %][% IF ( period_loo.budget_period_active ) %]Active [% ELSE %][% END %] [% IF ( period_loo.budget_period_locked ) %]Locked [% ELSE %][% END %] [% period_loo.budget_period_total %] - Edit - Delete - Add fund -
No budget
Budget idBasketOrdernumberDetails
[% 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.
-
[% pagination_bar %]
+ + Back [% END %] + +[% IF ( else ) %] +

Budgets administration

-
-
-
-[% INCLUDE 'acquisitions-menu.inc' %] -
-
+ [% 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 nameStart dateEnd dateLockedTotalActions
[% 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 nameStart dateEnd dateLockedTotalActions
[% 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' %]