2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Acquisitions</title>
4 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
5 [% INCLUDE 'doc-head-close.inc' %]
6 [% INCLUDE 'datatables.inc' %]
7 <script type="text/javascript">
10 dt_overwrite_html_sorting_localeCompare();
12 $(document).ready(function() {
14 var inactive = $(".b_inactive,.bu_active");
15 var active = $(".bu_inactive");
19 $('#showallbudgets').click(function() {
20 if ( $('#showallbudgets:checked').val() !== undefined) {
29 var srlt = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, {
36 { "sType": "title-numeric" },
37 { "sType": "title-numeric" },
38 { "sType": "title-numeric" },
39 { "sType": "title-numeric" }
51 <body id="acq_acqui-home" class="acq">
52 [% INCLUDE 'header.inc' %]
53 [% INCLUDE 'acquisitions-search.inc' %]
55 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › </div>
57 <div id="doc3" class="yui-t2">
63 [% INCLUDE 'acquisitions-toolbar.inc' %]
66 [% UNLESS ( loop_budget ) %]
67 [% IF ( CAN_user_acquisition_period_manage ) %]
68 <div class="dialog alert">You must <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">define a budget</a> in Administration</div>
70 <div class="dialog alert">Your administrator must define a budget in Administration</div>
74 <div class="yui-u first">
75 <div id="acqui_acqui_home_order">
77 <legend>Manage orders</legend>
78 <form name="findsupplier" action="/cgi-bin/koha/acqui/booksellers.pl" method="post">
79 <p><label for="supplierpage">Vendor: </label><input type="text" size="25" name="supplier" id="supplierpage" class="focus" />
80 <input type="submit" value="Search" />
87 [% IF ( suggestion && suggestions_count ) %]
89 <div id="acqui_acqui_home_suggestions">
91 <legend>Pending suggestions</legend>
92 <p>[% suggestions_count %] suggestions waiting. <a href="/cgi-bin/koha/suggestion/suggestion.pl">Manage suggestions</a>.</p>
100 [% IF ( loop_budget ) %]
102 <h3>All available funds[% IF ( branchname ) %] for [% branchname %][% END %]</h3>
104 <div id="BudgetsAndFunds">
105 <p><label for="showallbudgets">Show active and inactive:</label> <input type="checkbox" id="showallbudgets" /></p>
106 <table id="accounts">
111 <th class="b_inactive">Active</th>
120 <tfoot id="funds_total">
124 <th class="b_inactive"> </th>
127 <th class="data"><span class="bu_active">[% total %]</span><span class="bu_inactive" >[% total_active | $Price %]</span></th>
128 <th class="data"><span class="bu_active">[% totordered %]</span><span class="bu_inactive" >[% totordered_active | $Price %]</span></th>
129 <th class="data"><span class="bu_active">[% totspent %]</span><span class="bu_inactive" >[% totspent_active | $Price %]</span></th>
130 <th class="data"><span class="bu_active">[% totavail %]</span><span class="bu_inactive" >[% totavail_active | $Price %]</span></th>
134 [% FOREACH loop_budge IN loop_budget %]
135 [% IF ( loop_budge.budget_period_active ) %]
138 [% IF ( CAN_user_acquisition_budget_manage ) %]
139 <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% loop_budge.budget_period_id %]">[% loop_budge.budget_code %]</a>
141 [% loop_budge.budget_code %]
144 <td>[% loop_budge.budget_name %]</td>
145 <td class="b_inactive">Active</td>
146 <td>[% IF ( loop_budge.budget_owner_borrowernumber ) %]
147 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loop_budge.budget_owner_borrowernumber %]">[% loop_budge.budget_owner_surname %], [% loop_budge.budget_owner_firstname %]</a>
152 <td>[% loop_budge.budget_branchname %]</td>
153 <td class="data"><span title="[% loop_budge.budget_amount %]">[% loop_budge.budget_amount | $Price %]</span></td>
154 <td class="data"><span title="[% loop_budge.budget_ordered %]"><a href="ordered.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_ordered | $Price %]</a></span></td>
155 <td class="data"><span title="[% loop_budge.budget_spent %]"><a href="spent.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_spent | $Price %]</span></a></td>
156 <td class="data"><span title="[% loop_budge.budget_avail %]">[% loop_budge.budget_avail | $Price %]</td>
159 <tr class="b_inactive">
161 [% IF ( CAN_user_acquisition_budget_manage ) %]
162 <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% loop_budge.budget_period_id %]">[% loop_budge.budget_code %]</a>
164 [% loop_budge.budget_code %]
167 <td>[% loop_budge.budget_name %]</td>
168 <td class="b_inactive">Inactive</td>
169 <td>[% IF ( loop_budge.budget_owner_borrowernumber ) %]
170 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loop_budge.budget_owner_borrowernumber %]">[% loop_budge.budget_owner_surname %], [% loop_budge.budget_owner_firstname %]</a>
175 <td>[% loop_budge.budget_branchname %]</td>
176 <td class="data"><span title="[% loop_budge.budget_amount %]">[% loop_budge.budget_amount | $Price %]</span></td>
177 <td class="data"><span title="[% loop_budge.budget_ordered %]"><a href="ordered.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_ordered | $Price %]</a></span></td>
178 <td class="data"><span title="[% loop_budge.budget_spent %]"><a href="spent.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_spent | $Price %]</span></a></td>
179 <td class="data"><span title="[% loop_budge.budget_avail %]">[% loop_budge.budget_avail | $Price %]</td>
191 [% INCLUDE 'acquisitions-menu.inc' %]
194 [% INCLUDE 'intranet-bottom.inc' %]