Lines 4-9
Link Here
|
4 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
[% INCLUDE 'doc-head-close.inc' %] |
5 |
[% INCLUDE 'calendar.inc' %] |
5 |
[% INCLUDE 'calendar.inc' %] |
6 |
[% INCLUDE 'datatables.inc' %] |
6 |
[% INCLUDE 'datatables.inc' %] |
|
|
7 |
[% IF close_form %] |
8 |
<link href="[% interface %]/lib/jquery/plugins/treetable/stylesheets/jquery.treetable.css" rel="stylesheet" type="text/css" /> |
9 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/treetable/jquery.treetable.js"></script> |
10 |
[% END %] |
7 |
<script type="text/javascript" src="[% themelang %]/js/acq.js"></script> |
11 |
<script type="text/javascript" src="[% themelang %]/js/acq.js"></script> |
8 |
<script type="text/javascript"> |
12 |
<script type="text/javascript"> |
9 |
// ################################################################################# |
13 |
// ################################################################################# |
Lines 84-91
Link Here
|
84 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
88 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
85 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] } |
89 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] } |
86 |
], |
90 |
], |
87 |
"bPaginate": false |
91 |
"bPaginate": false, |
|
|
92 |
'bAutoWidth': false |
88 |
} ) ); |
93 |
} ) ); |
|
|
94 |
|
95 |
[% IF close_form %] |
96 |
$("#budgeth").dataTable($.extend(true, {}, dataTablesDefaults, { |
97 |
sDom: "t" |
98 |
})); |
99 |
$("#move_form").submit(function(){ |
100 |
var budget_from = "[% budget_period_description %]"; |
101 |
var budget_to = $("#budget_period").find("option:selected").html(); |
102 |
var alert_message = _("You have chosen to move all unreceived orders from '%s' to '%s'.").format(budget_from, budget_to); |
103 |
alert_message += _("\nThis action cannot be reversed. Do you wish to continue?"); |
104 |
return confirm ( alert_message ); |
105 |
}); |
106 |
[% END %] |
89 |
}); |
107 |
}); |
90 |
</script> |
108 |
</script> |
91 |
|
109 |
|
Lines 106-111
Link Here
|
106 |
[% IF ( delete_confirmed ) %]› |
124 |
[% IF ( delete_confirmed ) %]› |
107 |
Data deleted |
125 |
Data deleted |
108 |
[% END %] |
126 |
[% END %] |
|
|
127 |
[% IF close_form %]› |
128 |
Close budget [% budget_period_description %] |
129 |
[% END %] |
109 |
</title> |
130 |
</title> |
110 |
|
131 |
|
111 |
|
132 |
|
Lines 150-155
Link Here
|
150 |
[% IF ( duplicate_form ) %] |
171 |
[% IF ( duplicate_form ) %] |
151 |
<a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Budgets</a> › Duplicate budget |
172 |
<a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Budgets</a> › Duplicate budget |
152 |
[% END %] |
173 |
[% END %] |
|
|
174 |
|
175 |
<!-- close a budget --> |
176 |
[% IF close_form %] |
177 |
<a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Budgets</a> › |
178 |
Close budget <a href="cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id %]">[% budget_period_description %]</a> |
179 |
[% END %] |
153 |
<!-- display budget periods list --> |
180 |
<!-- display budget periods list --> |
154 |
<!-- ########################################## --> |
181 |
<!-- ########################################## --> |
155 |
[% IF ( else ) %] |
182 |
[% IF ( else ) %] |
Lines 162-168
Link Here
|
162 |
<div id="yui-main"> |
189 |
<div id="yui-main"> |
163 |
<div class="yui-b"> |
190 |
<div class="yui-b"> |
164 |
|
191 |
|
165 |
[% INCLUDE 'budgets-admin-toolbar.inc' %] |
192 |
[% UNLESS close_form %] |
|
|
193 |
[% INCLUDE 'budgets-admin-toolbar.inc' %] |
194 |
[% END %] |
166 |
|
195 |
|
167 |
[% IF ( duplicate_form ) %] |
196 |
[% IF ( duplicate_form ) %] |
168 |
<h3>Duplicate budget</h3> |
197 |
<h3>Duplicate budget</h3> |
Lines 309-314
Link Here
|
309 |
|
338 |
|
310 |
</div> |
339 |
</div> |
311 |
[% END %] |
340 |
[% END %] |
|
|
341 |
|
342 |
[% IF close_form %] |
343 |
[% IF budget_periods.size == 0 %] |
344 |
You cannot move funds of this budget, there is no active budget. |
345 |
Please create a new active budget and retry. |
346 |
<a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Back</a> |
347 |
[% ELSIF number_of_unreceived_orders == 0 %] |
348 |
There is no unreceived orders for this budget. |
349 |
<a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Back</a> |
350 |
[% ELSE %] |
351 |
<h3>Choose the funds you want to move unreceived orders:</h3> |
352 |
Fund list of budget <a href="cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id %]">[% budget_period_description %]</a>: |
353 |
<table id="budgeth"> |
354 |
<thead> |
355 |
<tr> |
356 |
<th>Fund id</th> |
357 |
<th>Fund code</th> |
358 |
<th>Fund name</th> |
359 |
<th>Unreceived orders</th> |
360 |
</tr> |
361 |
</thead> |
362 |
<tbody> |
363 |
[% FOREACH budget IN budgets_to_move %] |
364 |
<tr> |
365 |
<td>[% budget.budget_id %]</td> |
366 |
<td>[% budget.budget_code_indent %]</td> |
367 |
<td>[% budget.budget_name %]</td> |
368 |
<td>[% budget.unreceived_orders.size %]</td> |
369 |
</tr> |
370 |
[% END %] |
371 |
</tbody> |
372 |
</table> |
373 |
<form action="/cgi-bin/koha/admin/aqbudgetperiods.pl" name="f" method="post" id="move_form"> |
374 |
<fieldset class="rows"> |
375 |
<ol> |
376 |
<li> |
377 |
<label class="required" for="to_budget_period_id">Select a budget</label> |
378 |
<select name="to_budget_period_id" id="to_budget_period_id" required="required"> |
379 |
<option value=""></option> |
380 |
[% FOR budget_period IN budget_periods %] |
381 |
<option value="[% budget_period.budget_period_id %]">[% budget_period.budget_period_description %]</option> |
382 |
[% END %] |
383 |
</select> |
384 |
</li> |
385 |
</ol> |
386 |
</fieldset> |
387 |
<fieldset class="action"> |
388 |
<input type="hidden" name="op" value="close_confirmed" /> |
389 |
<input type="hidden" name="budget_period_id" value="[% budget_period_id %]" /> |
390 |
<input type="submit" value="Move unreceive orders" /> |
391 |
<a class="cancel" href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Cancel</a> |
392 |
</fieldset> |
393 |
</form> |
394 |
[% END %] |
395 |
[% END %] |
396 |
|
312 |
<!-- DEFAULT display budget periods list --> |
397 |
<!-- DEFAULT display budget periods list --> |
313 |
[% IF ( else ) %] |
398 |
[% IF ( else ) %] |
314 |
<h2>Budgets administration</h2> |
399 |
<h2>Budgets administration</h2> |
Lines 350-355
Link Here
|
350 |
<a href="[% script_name %]?op=add_form&budget_period_id=[% period_active.budget_period_id |html %]">Edit</a> |
435 |
<a href="[% script_name %]?op=add_form&budget_period_id=[% period_active.budget_period_id |html %]">Edit</a> |
351 |
<a href="[% script_name %]?op=delete_confirm&budget_period_id=[% period_active.budget_period_id %]">Delete</a> |
436 |
<a href="[% script_name %]?op=delete_confirm&budget_period_id=[% period_active.budget_period_id %]">Delete</a> |
352 |
<a href="[% script_name %]?op=duplicate_form&budget_period_id=[% period_active.budget_period_id %]">Duplicate</a> |
437 |
<a href="[% script_name %]?op=duplicate_form&budget_period_id=[% period_active.budget_period_id %]">Duplicate</a> |
|
|
438 |
<a href="[% script_name %]?op=close_form&budget_period_id=[% period_active.budget_period_id %]">Close</a> |
353 |
<a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_period_id=[% period_active.budget_period_id %]">Add fund</a> |
439 |
<a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_period_id=[% period_active.budget_period_id %]">Add fund</a> |
354 |
</td> |
440 |
</td> |
355 |
</tr> |
441 |
</tr> |
Lines 390-395
Link Here
|
390 |
<a href="[% script_name %]?op=add_form&budget_period_id=[% period_loo.budget_period_id |html %]">Edit</a> |
476 |
<a href="[% script_name %]?op=add_form&budget_period_id=[% period_loo.budget_period_id |html %]">Edit</a> |
391 |
<a href="[% script_name %]?op=delete_confirm&budget_period_id=[% period_loo.budget_period_id %]">Delete</a> |
477 |
<a href="[% script_name %]?op=delete_confirm&budget_period_id=[% period_loo.budget_period_id %]">Delete</a> |
392 |
<a href="[% script_name %]?op=duplicate_form&budget_period_id=[% period_loo.budget_period_id %]">Duplicate</a> |
478 |
<a href="[% script_name %]?op=duplicate_form&budget_period_id=[% period_loo.budget_period_id %]">Duplicate</a> |
|
|
479 |
<a href="[% script_name %]?op=close_form&budget_period_id=[% period_loo.budget_period_id %]">Close</a> |
393 |
<a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_period_id=[% period_loo.budget_period_id %]">Add fund</a> |
480 |
<a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_period_id=[% period_loo.budget_period_id %]">Add fund</a> |
394 |
</td> |
481 |
</td> |
395 |
</tr> |
482 |
</tr> |