|
Lines 81-239
Link Here
|
| 81 |
<h2>Details of debit</h2> |
81 |
<h2>Details of debit</h2> |
| 82 |
[% END %] |
82 |
[% END %] |
| 83 |
|
83 |
|
| 84 |
<table id="table_account_fines"> |
84 |
<div class="page-section"> |
| 85 |
<thead> |
|
|
| 86 |
<tr> |
| 87 |
<th>Date</th> |
| 88 |
<th>Description</th> |
| 89 |
<th>Barcode</th> |
| 90 |
<th>Due date</th> |
| 91 |
<th>Return date</th> |
| 92 |
<th>Note</th> |
| 93 |
[% FOREACH value IN af_values %] |
| 94 |
<th>[% value.field.name | html %]</th> |
| 95 |
[% END %] |
| 96 |
<th>Amount</th> |
| 97 |
<th>Outstanding</th> |
| 98 |
</tr> |
| 99 |
</thead> |
| 100 |
|
| 101 |
<tbody> |
| 102 |
<tr> |
| 103 |
<td> |
| 104 |
[% accountline.date | $KohaDates %] |
| 105 |
</td> |
| 106 |
<td> |
| 107 |
[%- PROCESS account_type_description account=accountline -%] |
| 108 |
[%- IF accountline.payment_type -%] |
| 109 |
, [% AuthorisedValues.GetByCode('PAYMENT_TYPE', accountline.payment_type) | html %] |
| 110 |
[%- END =%] |
| 111 |
[%- IF accountline.description -%] |
| 112 |
, [% accountline.description | html %] |
| 113 |
[%- END -%] |
| 114 |
|
85 |
|
| 115 |
|
86 |
<table id="table_account_fines"> |
| 116 |
[% IF ( accountline.itemnumber ) %] |
87 |
<thead> |
| 117 |
[% SET biblio = accountline.item.biblio %] |
88 |
<tr> |
| 118 |
<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber | uri %]&itemnumber=[% accountline.itemnumber | uri %]">[% biblio.title | html %]</a> |
89 |
<th>Date</th> |
|
|
90 |
<th>Description</th> |
| 91 |
<th>Barcode</th> |
| 92 |
<th>Due date</th> |
| 93 |
<th>Return date</th> |
| 94 |
<th>Note</th> |
| 95 |
[% FOREACH value IN af_values %] |
| 96 |
<th>[% value.field.name | html %]</th> |
| 119 |
[% END %] |
97 |
[% END %] |
| 120 |
</td> |
98 |
<th>Amount</th> |
|
|
99 |
<th>Outstanding</th> |
| 100 |
</tr> |
| 101 |
</thead> |
| 121 |
|
102 |
|
| 122 |
<td> |
103 |
<tbody> |
| 123 |
[% IF ( accountline.itemnumber ) %] |
104 |
<tr> |
| 124 |
<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% accountline.item.biblionumber | uri %]&itemnumber=[% accountline.itemnumber | uri %]#item[% accountline.itemnumber | uri %]">[% accountline.item.barcode | html %]</a> |
105 |
<td> |
| 125 |
[% END %] |
106 |
[% accountline.date | $KohaDates %] |
| 126 |
</td> |
107 |
</td> |
|
|
108 |
<td> |
| 109 |
[%- PROCESS account_type_description account=accountline -%] |
| 110 |
[%- IF accountline.payment_type -%] |
| 111 |
, [% AuthorisedValues.GetByCode('PAYMENT_TYPE', accountline.payment_type) | html %] |
| 112 |
[%- END =%] |
| 113 |
[%- IF accountline.description -%] |
| 114 |
, [% accountline.description | html %] |
| 115 |
[%- END -%] |
| 127 |
|
116 |
|
| 128 |
<td> |
117 |
|
| 129 |
[% IF ( accountline.issue_id ) %] |
118 |
[% IF ( accountline.itemnumber ) %] |
| 130 |
[% accountline.checkout.date_due | $KohaDates as_due_date => 1 %] |
119 |
[% SET biblio = accountline.item.biblio %] |
| 131 |
[% END %] |
120 |
<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber | uri %]&itemnumber=[% accountline.itemnumber | uri %]">[% biblio.title | html %]</a> |
| 132 |
</td> |
121 |
[% END %] |
|
|
122 |
</td> |
| 133 |
|
123 |
|
| 134 |
<td> |
124 |
<td> |
| 135 |
[% IF ( accountline.issue_id ) %] |
125 |
[% IF ( accountline.itemnumber ) %] |
| 136 |
[% accountline.checkout.returndate | $KohaDates with_hours => 1 %] |
126 |
<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% accountline.item.biblionumber | uri %]&itemnumber=[% accountline.itemnumber | uri %]#item[% accountline.itemnumber | uri %]">[% accountline.item.barcode | html %]</a> |
| 137 |
[% END %] |
127 |
[% END %] |
| 138 |
</td> |
128 |
</td> |
| 139 |
|
129 |
|
| 140 |
<td> |
130 |
<td> |
| 141 |
[% accountline.note | html_line_break %] |
131 |
[% IF ( accountline.issue_id ) %] |
| 142 |
</td> |
132 |
[% accountline.checkout.date_due | $KohaDates as_due_date => 1 %] |
|
|
133 |
[% END %] |
| 134 |
</td> |
| 143 |
|
135 |
|
| 144 |
[% FOREACH value IN af_values %] |
|
|
| 145 |
<td> |
136 |
<td> |
| 146 |
[% IF value.field.authorised_value_category %] |
137 |
[% IF ( accountline.issue_id ) %] |
| 147 |
[% AuthorisedValues.GetByCode( value.field.authorised_value_category, value.value ) | html %] |
138 |
[% accountline.checkout.returndate | $KohaDates with_hours => 1 %] |
| 148 |
[% ELSE %] |
|
|
| 149 |
[% value.value | html %] |
| 150 |
[% END %] |
139 |
[% END %] |
| 151 |
</td> |
140 |
</td> |
| 152 |
[% END %] |
|
|
| 153 |
|
141 |
|
| 154 |
<td> |
142 |
<td> |
| 155 |
[% accountline.amount | $Price %] |
143 |
[% accountline.note | html_line_break %] |
| 156 |
</td> |
144 |
</td> |
| 157 |
|
145 |
|
| 158 |
<td> |
146 |
[% FOREACH value IN af_values %] |
| 159 |
[% accountline.amountoutstanding | $Price %] |
147 |
<td> |
| 160 |
</td> |
148 |
[% IF value.field.authorised_value_category %] |
| 161 |
</tr> |
149 |
[% AuthorisedValues.GetByCode( value.field.authorised_value_category, value.value ) | html %] |
| 162 |
</tbody> |
150 |
[% ELSE %] |
| 163 |
</table> |
151 |
[% value.value | html %] |
|
|
152 |
[% END %] |
| 153 |
</td> |
| 154 |
[% END %] |
| 164 |
|
155 |
|
| 165 |
<h3>History</h3> |
156 |
<td> |
| 166 |
<table class="accountline-offsets-table" id="accountline-debits-table"> |
157 |
[% accountline.amount | $Price %] |
| 167 |
<thead> |
158 |
</td> |
| 168 |
<tr> |
|
|
| 169 |
<th rowspan="2">Date</th> |
| 170 |
<th colspan="2">Change</th> |
| 171 |
<th rowspan="2">Action</th> |
| 172 |
<th colspan="4">Related transaction</th> |
| 173 |
</tr> |
| 174 |
<tr> |
| 175 |
<th>Increase</th> |
| 176 |
<th>Decrease</th> |
| 177 |
<th>Type</th> |
| 178 |
<th>Amount</th> |
| 179 |
<th>Librarian</th> |
| 180 |
<th>Note</th> |
| 181 |
</tr> |
| 182 |
</thead> |
| 183 |
|
159 |
|
| 184 |
<tbody> |
160 |
<td> |
| 185 |
[% FOREACH ao IN account_offsets %] |
161 |
[% accountline.amountoutstanding | $Price %] |
| 186 |
[% IF ao.credit_id == accountline.accountlines_id %] |
162 |
</td> |
| 187 |
[% SET offset_accountline = ao.debit %] |
163 |
</tr> |
| 188 |
[% ELSIF ao.debit_id == accountline.accountlines_id %] |
164 |
</tbody> |
| 189 |
[% SET offset_accountline = ao.credit %] |
165 |
</table> |
| 190 |
[% END %] |
166 |
</div> <!-- /.page-section --> |
|
|
167 |
|
| 168 |
<div class="page-section"> |
| 169 |
<h3>History</h3> |
| 170 |
<table class="accountline-offsets-table" id="accountline-debits-table"> |
| 171 |
<thead> |
| 172 |
<tr> |
| 173 |
<th rowspan="2">Date</th> |
| 174 |
<th colspan="2">Change</th> |
| 175 |
<th rowspan="2">Action</th> |
| 176 |
<th colspan="4">Related transaction</th> |
| 177 |
</tr> |
| 178 |
<tr> |
| 179 |
<th>Increase</th> |
| 180 |
<th>Decrease</th> |
| 181 |
<th>Type</th> |
| 182 |
<th>Amount</th> |
| 183 |
<th>Librarian</th> |
| 184 |
<th>Note</th> |
| 185 |
</tr> |
| 186 |
</thead> |
| 191 |
|
187 |
|
| 192 |
[%- BLOCK ao_description -%] |
188 |
<tbody> |
| 193 |
[%- SWITCH ao.type -%] |
189 |
[% FOREACH ao IN account_offsets %] |
| 194 |
[%- CASE 'CREATE' -%]<span>Created</span> |
190 |
[% IF ao.credit_id == accountline.accountlines_id %] |
| 195 |
[%- CASE 'OVERDUE_INCREASE' -%]<span>Increase</span> |
191 |
[% SET offset_accountline = ao.debit %] |
| 196 |
[%- CASE 'OVERDUE_DECREASE' -%]<span>Decrease</span> |
192 |
[% ELSIF ao.debit_id == accountline.accountlines_id %] |
| 197 |
[%- CASE 'APPLY' -%]<span>Applied</span> |
193 |
[% SET offset_accountline = ao.credit %] |
| 198 |
[%- CASE 'VOID' -%]<span>Reversed</span> |
194 |
[% END %] |
|
|
195 |
|
| 196 |
[%- BLOCK ao_description -%] |
| 197 |
[%- SWITCH ao.type -%] |
| 198 |
[%- CASE 'CREATE' -%]<span>Created</span> |
| 199 |
[%- CASE 'OVERDUE_INCREASE' -%]<span>Increase</span> |
| 200 |
[%- CASE 'OVERDUE_DECREASE' -%]<span>Decrease</span> |
| 201 |
[%- CASE 'APPLY' -%]<span>Applied</span> |
| 202 |
[%- CASE 'VOID' -%]<span>Reversed</span> |
| 203 |
[%- END -%] |
| 199 |
[%- END -%] |
204 |
[%- END -%] |
| 200 |
[%- END -%] |
|
|
| 201 |
|
205 |
|
| 202 |
<tr> |
206 |
<tr> |
| 203 |
<td>[% ao.created_on | $KohaDates with_hours => 1%]</td> |
207 |
<td>[% ao.created_on | $KohaDates with_hours => 1%]</td> |
| 204 |
<td>[%- IF ao.amount > 0 -%][% ao.amount | $Price %][% END %]</td> |
208 |
<td>[%- IF ao.amount > 0 -%][% ao.amount | $Price %][% END %]</td> |
| 205 |
<td>[%- IF ao.amount < 0 -%][% ao.amount | $Price %][% END %]</td> |
209 |
<td>[%- IF ao.amount < 0 -%][% ao.amount | $Price %][% END %]</td> |
| 206 |
<td> |
210 |
<td> |
| 207 |
[% PROCESS ao_description ao=ao %] |
211 |
[% PROCESS ao_description ao=ao %] |
| 208 |
</td> |
212 |
</td> |
| 209 |
[%- IF offset_accountline -%] |
213 |
[%- IF offset_accountline -%] |
| 210 |
<td> |
214 |
<td> |
| 211 |
[% PROCESS account_type_description account=offset_accountline %] (<a href="accountline-details.pl?accountlines_id=[% offset_accountline.id | uri %]">[% offset_accountline.id | html %]</a>) |
215 |
[% PROCESS account_type_description account=offset_accountline %] (<a href="accountline-details.pl?accountlines_id=[% offset_accountline.id | uri %]">[% offset_accountline.id | html %]</a>) |
| 212 |
</td> |
216 |
</td> |
| 213 |
<td> |
217 |
<td> |
| 214 |
[% offset_accountline.amount | $Price %] |
218 |
[% offset_accountline.amount | $Price %] |
| 215 |
</td> |
219 |
</td> |
| 216 |
<td> |
220 |
<td> |
| 217 |
[% IF offset_accountline.manager_id %] |
221 |
[% IF offset_accountline.manager_id %] |
| 218 |
<a href="moremember.pl?borrowernumber=[% offset_accountline.manager_id | uri %]"> |
222 |
<a href="moremember.pl?borrowernumber=[% offset_accountline.manager_id | uri %]"> |
| 219 |
[% IF offset_accountline.manager.firstname %] |
223 |
[% IF offset_accountline.manager.firstname %] |
| 220 |
[% offset_accountline.manager.firstname | html %] [% offest_accountline.manager.surname | html %] |
224 |
[% offset_accountline.manager.firstname | html %] [% offest_accountline.manager.surname | html %] |
| 221 |
[% ELSE %] |
225 |
[% ELSE %] |
| 222 |
[% offset_accountline.manager.surname | html %] |
226 |
[% offset_accountline.manager.surname | html %] |
|
|
227 |
[% END %] |
| 228 |
</a> |
| 223 |
[% END %] |
229 |
[% END %] |
| 224 |
</a> |
230 |
</td> |
| 225 |
[% END %] |
231 |
[%- ELSE -%] |
| 226 |
</td> |
232 |
<td></td> |
| 227 |
[%- ELSE -%] |
233 |
<td></td> |
| 228 |
<td></td> |
234 |
<td></td> |
| 229 |
<td></td> |
235 |
[%- END -%] |
| 230 |
<td></td> |
236 |
<td>[% offset_accountline.note | html %]</td> |
| 231 |
[%- END -%] |
237 |
</tr> |
| 232 |
<td>[% offset_accountline.note | html %]</td> |
238 |
[% END %] |
| 233 |
</tr> |
239 |
</tbody> |
| 234 |
[% END %] |
240 |
</table> |
| 235 |
</tbody> |
241 |
</div> <!-- /.page-section --> |
| 236 |
</table> |
|
|
| 237 |
[% ELSE %] |
242 |
[% ELSE %] |
| 238 |
<div class="dialog message"> |
243 |
<div class="dialog message"> |
| 239 |
Account not found |
244 |
Account not found |
| 240 |
- |
|
|