|
Lines 415-466
Link Here
|
| 415 |
[% END %] |
415 |
[% END %] |
| 416 |
[% ELSIF closed %] |
416 |
[% ELSIF closed %] |
| 417 |
<h1>Budget [% budget_period_description | html %] closed</h1> |
417 |
<h1>Budget [% budget_period_description | html %] closed</h1> |
| 418 |
<h3>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%])</h3> |
418 |
|
| 419 |
|
419 |
<div class="page-section"> |
| 420 |
<table id="closed_report"> |
420 |
<h3>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%])</h3> |
| 421 |
<thead> |
421 |
|
| 422 |
<tr> |
422 |
<table id="closed_report"> |
| 423 |
<td>Budget id</td> |
423 |
<thead> |
| 424 |
<td>Basket</td> |
424 |
<tr> |
| 425 |
<td>Ordernumber</td> |
425 |
<td>Budget id</td> |
| 426 |
<td>Details</td> |
426 |
<td>Basket</td> |
| 427 |
</tr> |
427 |
<td>Ordernumber</td> |
| 428 |
</thead> |
428 |
<td>Details</td> |
| 429 |
<tbody> |
429 |
</tr> |
| 430 |
[% FOR r IN report %] |
430 |
</thead> |
| 431 |
[% IF r.moved %] |
431 |
<tbody> |
| 432 |
[% IF r.orders_moved.size > 0 %] |
432 |
[% FOR r IN report %] |
| 433 |
[% FOR order IN r.orders_moved %] |
433 |
[% IF r.moved %] |
| 434 |
<tr> |
434 |
[% IF r.orders_moved.size > 0 %] |
| 435 |
<td>[% 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 %]</td> |
435 |
[% FOR order IN r.orders_moved %] |
| 436 |
<td>[% order.basketname | html %]</td> |
436 |
<tr> |
| 437 |
<td>[% order.ordernumber | html %]</td> |
437 |
<td>[% 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 %]</td> |
| 438 |
<td>Moved!</td> |
438 |
<td>[% order.basketname | html %]</td> |
| 439 |
</tr> |
439 |
<td>[% order.ordernumber | html %]</td> |
|
|
440 |
<td>Moved!</td> |
| 441 |
</tr> |
| 442 |
[% END %] |
| 443 |
[% ELSE %] |
| 444 |
<tr> |
| 445 |
<td>[% r.budget.budget_name | html %] (id=[% r.budget.budget_id | html %])</td> |
| 446 |
<td></td> |
| 447 |
<td></td> |
| 448 |
<td>There were no unreceived orders for this fund.</td> |
| 449 |
</tr> |
| 450 |
[% END %] |
| 451 |
[% ELSE %] |
| 452 |
[% IF r.error == 'budget_code_not_exists' %] |
| 453 |
<tr> |
| 454 |
<td>[% r.budget.budget_id | html %] [% r.budget.budget_amount | $Price %][% IF r.unspent_moved %] ([% r.unspent_moved | $Price %] remaining has been moved)[% END %]</td> |
| 455 |
<td></td> |
| 456 |
<td></td> |
| 457 |
<td>This fund code does not exist in the destination budget.</td> |
| 458 |
</tr> |
| 459 |
[% END %] |
| 440 |
[% END %] |
460 |
[% END %] |
| 441 |
[% ELSE %] |
461 |
</tr> |
| 442 |
<tr> |
|
|
| 443 |
<td>[% r.budget.budget_name | html %] (id=[% r.budget.budget_id | html %])</td> |
| 444 |
<td></td> |
| 445 |
<td></td> |
| 446 |
<td>There were no unreceived orders for this fund.</td> |
| 447 |
</tr> |
| 448 |
[% END %] |
| 449 |
[% ELSE %] |
| 450 |
[% IF r.error == 'budget_code_not_exists' %] |
| 451 |
<tr> |
| 452 |
<td>[% r.budget.budget_id | html %] [% r.budget.budget_amount | $Price %][% IF r.unspent_moved %] ([% r.unspent_moved | $Price %] remaining has been moved)[% END %]</td> |
| 453 |
<td></td> |
| 454 |
<td></td> |
| 455 |
<td>This fund code does not exist in the destination budget.</td> |
| 456 |
</tr> |
| 457 |
[% END %] |
| 458 |
[% END %] |
462 |
[% END %] |
| 459 |
</tr> |
463 |
</tbody> |
| 460 |
[% END %] |
464 |
</table> |
| 461 |
</tbody> |
465 |
<a class="cancel" href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Back</a> |
| 462 |
</table> |
466 |
</div> |
| 463 |
<a class="cancel" href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Back</a> |
|
|
| 464 |
[% END %] |
467 |
[% END %] |
| 465 |
|
468 |
|
| 466 |
<!-- DEFAULT display budget periods list --> |
469 |
<!-- DEFAULT display budget periods list --> |
| 467 |
- |
|
|