Lines 105-204
Link Here
|
105 |
</select> |
105 |
</select> |
106 |
</span> |
106 |
</span> |
107 |
</div> |
107 |
</div> |
|
|
108 |
<div class="page-section"> |
109 |
<table id="accounts"> |
108 |
|
110 |
|
109 |
<table id="accounts"> |
111 |
<thead> |
110 |
|
112 |
<tr> |
111 |
<thead> |
113 |
<th>Active</th> |
112 |
<tr> |
114 |
<th>Budget period description</th> |
113 |
<th>Active</th> |
115 |
<th>Fund code</th> |
114 |
<th>Budget period description</th> |
116 |
<th>Fund name</th> |
115 |
<th>Fund code</th> |
117 |
<th>Owner</th> |
116 |
<th>Fund name</th> |
118 |
<th>Library</th> |
117 |
<th>Owner</th> |
119 |
<th>Amount</th> |
118 |
<th>Library</th> |
120 |
<th>Ordered</th> |
119 |
<th>Amount</th> |
121 |
<th>Spent</th> |
120 |
<th>Ordered</th> |
122 |
<th>Total available</th> |
121 |
<th>Spent</th> |
123 |
</tr> |
122 |
<th>Total available</th> |
124 |
</thead> |
123 |
</tr> |
125 |
<tfoot id="funds_total"> |
124 |
</thead> |
126 |
<tr> |
125 |
<tfoot id="funds_total"> |
127 |
<th></th> |
126 |
<tr> |
128 |
<th></th> |
127 |
<th></th> |
129 |
<th colspan="4">Total</th> |
128 |
<th></th> |
130 |
<th class="data"></th> |
129 |
<th colspan="4">Total</th> |
131 |
<th class="data"></th> |
130 |
<th class="data"></th> |
132 |
<th class="data"></th> |
131 |
<th class="data"></th> |
133 |
<th class="data"></th> |
132 |
<th class="data"></th> |
134 |
</tr> |
133 |
<th class="data"></th> |
135 |
</tfoot> |
134 |
</tr> |
136 |
<tbody> |
135 |
</tfoot> |
137 |
[% FOREACH loop_budge IN loop_budget %] |
136 |
<tbody> |
138 |
[% IF loop_budge.budget_parent_id %] |
137 |
[% FOREACH loop_budge IN loop_budget %] |
139 |
<tr data-tt-id="[% loop_budge.budget_id | html %]" data-tt-parent-id="[% loop_budge.budget_parent_id | html %]"> |
138 |
[% IF loop_budge.budget_parent_id %] |
|
|
139 |
<tr data-tt-id="[% loop_budge.budget_id | html %]" data-tt-parent-id="[% loop_budge.budget_parent_id | html %]"> |
140 |
[% ELSE %] |
141 |
<tr data-tt-id="[% loop_budge.budget_id | html %]"> |
142 |
[% END %] |
143 |
|
144 |
<td>[% loop_budge.budget_period_active | html %]</td> |
145 |
<td>Budget [% loop_budge.budget_period_description | html %] [id=[% loop_budge.budget_period_id | html %]][% UNLESS loop_budge.budget_period_active %] (inactive)[% END %]</td> |
146 |
<td> |
147 |
[% IF ( CAN_user_acquisition_budget_manage ) %] |
148 |
<a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% loop_budge.budget_period_id | uri %]">[% loop_budge.budget_code | html %]</a> |
149 |
[% ELSE %] |
150 |
[% loop_budge.budget_code | html %] |
151 |
[% END %] |
152 |
</td> |
153 |
<td>[% loop_budge.budget_name | html %]</td> |
154 |
<td>[% IF ( loop_budge.budget_owner ) %] |
155 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loop_budge.budget_owner.borrowernumber | uri %]">[% loop_budge.budget_owner.surname | html %], [% loop_budge.budget_owner.firstname | html %]</a> |
156 |
[% ELSE %] |
157 |
|
158 |
[% END %] |
159 |
</td> |
160 |
<td>[% Branches.GetName( loop_budge.budget_branchcode ) | html %]</td> |
161 |
<td class="data"> |
162 |
<span class="total_amount" data-parent_id="[% loop_budge.budget_parent_id | html %]" data-self_id="[% loop_budge.budget_id | html %]">[% loop_budge.budget_amount | $Price %]</span> |
163 |
</td> |
164 |
<td class="data"> |
165 |
<a href="ordered.pl?fund=[% loop_budge.budget_id | uri %]&fund_code=[% loop_budge.budget_code | uri %]"> |
166 |
[% IF loop_budge.children.size %] |
167 |
<a title="Ordered from this fund" href="ordered.pl?fund=[% loop_budge.budget_id | uri %]&fund_code=[% loop_budge.budget_code | uri %]"> |
168 |
(<span class="total_amount">[% loop_budge.budget_ordered | $Price %]</span>) |
169 |
</a> |
170 |
<span title="Ordered from this fund and children" class="inclusive_amount">[% loop_budge.total_ordered | $Price %]</span> |
171 |
[% ELSE %] |
140 |
[% ELSE %] |
172 |
<a href="ordered.pl?fund=[% loop_budge.budget_id | uri %]&fund_code=[% loop_budge.budget_code | uri %]"> |
141 |
<tr data-tt-id="[% loop_budge.budget_id | html %]"> |
173 |
<span class="total_amount">[% loop_budge.budget_ordered | $Price %]</span> |
|
|
174 |
</a> |
175 |
[% END %] |
142 |
[% END %] |
176 |
</td> |
143 |
|
177 |
<td class="data"> |
144 |
<td>[% loop_budge.budget_period_active | html %]</td> |
178 |
[% IF loop_budge.children.size %] |
145 |
<td>Budget [% loop_budge.budget_period_description | html %] [id=[% loop_budge.budget_period_id | html %]][% UNLESS loop_budge.budget_period_active %] (inactive)[% END %]</td> |
179 |
<a title="Spent from this fund" href="spent.pl?fund=[% loop_budge.budget_id | uri %]&fund_code=[% loop_budge.budget_code | uri %]"> |
146 |
<td> |
180 |
(<span class="total_amount">[% loop_budge.budget_spent | $Price %]</span>) |
147 |
[% IF ( CAN_user_acquisition_budget_manage ) %] |
181 |
</a> |
148 |
<a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% loop_budge.budget_period_id | uri %]">[% loop_budge.budget_code | html %]</a> |
182 |
<span title="Spent from this fund and children" class="inclusive_amount">[% loop_budge.total_spent | $Price %]</span> |
149 |
[% ELSE %] |
183 |
[% ELSE %] |
150 |
[% loop_budge.budget_code | html %] |
184 |
<a href="spent.pl?fund=[% loop_budge.budget_id | uri %]&fund_code=[% loop_budge.budget_code | uri %]"> |
151 |
[% END %] |
185 |
<span class="total_amount">[% loop_budge.budget_spent | $Price %]</span> |
152 |
</td> |
186 |
</a> |
153 |
<td>[% loop_budge.budget_name | html %]</td> |
187 |
[% END %] |
154 |
<td>[% IF ( loop_budge.budget_owner ) %] |
188 |
</td> |
155 |
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loop_budge.budget_owner.borrowernumber | uri %]">[% loop_budge.budget_owner.surname | html %], [% loop_budge.budget_owner.firstname | html %]</a> |
189 |
<td class="data"> |
156 |
[% ELSE %] |
190 |
[% IF loop_budge.children.size %] |
157 |
|
191 |
(<span title="Remaining in this fund" class="parent_amount" data-parent_id="[% loop_budge.budget_parent_id | html %]" data-self_id="[% loop_budge.budget_id | html %]">[% loop_budge.budget_avail | $Price %]</span>) |
158 |
[% END %] |
192 |
<span title="Remaining with child funds included" class="total_amount" data-parent_id="[% loop_budge.budget_parent_id | html %]" data-self_id="[% loop_budge.budget_id | html %]">[% loop_budge.total_avail | $Price %]</span> |
159 |
</td> |
193 |
[% ELSE %] |
160 |
<td>[% Branches.GetName( loop_budge.budget_branchcode ) | html %]</td> |
194 |
<span class="total_amount" data-parent_id="[% loop_budge.budget_parent_id | html %]" data-self_id="[% loop_budge.budget_id | html %]">[% loop_budge.budget_avail | $Price %]</span> |
161 |
<td class="data"> |
195 |
[% END %] |
162 |
<span class="total_amount" data-parent_id="[% loop_budge.budget_parent_id | html %]" data-self_id="[% loop_budge.budget_id | html %]">[% loop_budge.budget_amount | $Price %]</span> |
196 |
</td> |
163 |
</td> |
197 |
</tr> |
164 |
<td class="data"> |
198 |
[% END %] |
165 |
<a href="ordered.pl?fund=[% loop_budge.budget_id | uri %]&fund_code=[% loop_budge.budget_code | uri %]"> |
199 |
</tbody> |
166 |
[% IF loop_budge.children.size %] |
200 |
</table> |
167 |
<a title="Ordered from this fund" href="ordered.pl?fund=[% loop_budge.budget_id | uri %]&fund_code=[% loop_budge.budget_code | uri %]"> |
201 |
</div> |
168 |
(<span class="total_amount">[% loop_budge.budget_ordered | $Price %]</span>) |
|
|
169 |
</a> |
170 |
<span title="Ordered from this fund and children" class="inclusive_amount">[% loop_budge.total_ordered | $Price %]</span> |
171 |
[% ELSE %] |
172 |
<a href="ordered.pl?fund=[% loop_budge.budget_id | uri %]&fund_code=[% loop_budge.budget_code | uri %]"> |
173 |
<span class="total_amount">[% loop_budge.budget_ordered | $Price %]</span> |
174 |
</a> |
175 |
[% END %] |
176 |
</td> |
177 |
<td class="data"> |
178 |
[% IF loop_budge.children.size %] |
179 |
<a title="Spent from this fund" href="spent.pl?fund=[% loop_budge.budget_id | uri %]&fund_code=[% loop_budge.budget_code | uri %]"> |
180 |
(<span class="total_amount">[% loop_budge.budget_spent | $Price %]</span>) |
181 |
</a> |
182 |
<span title="Spent from this fund and children" class="inclusive_amount">[% loop_budge.total_spent | $Price %]</span> |
183 |
[% ELSE %] |
184 |
<a href="spent.pl?fund=[% loop_budge.budget_id | uri %]&fund_code=[% loop_budge.budget_code | uri %]"> |
185 |
<span class="total_amount">[% loop_budge.budget_spent | $Price %]</span> |
186 |
</a> |
187 |
[% END %] |
188 |
</td> |
189 |
<td class="data"> |
190 |
[% IF loop_budge.children.size %] |
191 |
(<span title="Remaining in this fund" class="parent_amount" data-parent_id="[% loop_budge.budget_parent_id | html %]" data-self_id="[% loop_budge.budget_id | html %]">[% loop_budge.budget_avail | $Price %]</span>) |
192 |
<span title="Remaining with child funds included" class="total_amount" data-parent_id="[% loop_budge.budget_parent_id | html %]" data-self_id="[% loop_budge.budget_id | html %]">[% loop_budge.total_avail | $Price %]</span> |
193 |
[% ELSE %] |
194 |
<span class="total_amount" data-parent_id="[% loop_budge.budget_parent_id | html %]" data-self_id="[% loop_budge.budget_id | html %]">[% loop_budge.budget_avail | $Price %]</span> |
195 |
[% END %] |
196 |
</td> |
197 |
</tr> |
198 |
[% END %] |
199 |
</tbody> |
200 |
</table> |
201 |
</div><!-- /.page-section --> |
202 |
</div><!-- /#BudgetsAndFunds --> |
202 |
[% END %] |
203 |
[% END %] |
203 |
|
204 |
|
204 |
</main> |
205 |
</main> |
205 |
- |
|
|