Lines 1-6
Link Here
|
1 |
[% USE Koha %] |
1 |
[% USE Koha %] |
2 |
[% USE KohaDates %] |
2 |
[% USE KohaDates %] |
3 |
[% USE Price %] |
3 |
[% USE Price %] |
|
|
4 |
[% USE AuthorisedValues %] |
4 |
|
5 |
|
5 |
[% INCLUDE 'doc-head-open.inc' %] |
6 |
[% INCLUDE 'doc-head-open.inc' %] |
6 |
<title>Koha › Acquisitions › Invoice</title> |
7 |
<title>Koha › Acquisitions › Invoice</title> |
Lines 127-132
Link Here
|
127 |
[% END %] |
128 |
[% END %] |
128 |
</fieldset> |
129 |
</fieldset> |
129 |
</form> |
130 |
</form> |
|
|
131 |
<form action="/cgi-bin/koha/acqui/invoice.pl" method="post" class="validated"> |
132 |
<input type="hidden" name="invoiceid" value="[% invoiceid %]" /> |
133 |
<table id="invoice_adj_table"> |
134 |
<tr> |
135 |
<th>Id</th> |
136 |
<th>Amount</th> |
137 |
<th>Reason</th> |
138 |
<th>Note</th> |
139 |
<th>Fund</th> |
140 |
<th>Encumber while invoice open</th> |
141 |
<th> </th> |
142 |
</tr> |
143 |
[% IF (adjustments.count > 0) %] |
144 |
<tr><td colspan="7">Current adjustments</td></tr> |
145 |
[% total_adj = 0 %] |
146 |
[% FOREACH adjustment IN adjustments %] |
147 |
[% total_adj = total_adj + adjustment.adjustment %] |
148 |
<tr> |
149 |
<td><input type="hidden" name="adjustment_id" value="[% adjustment.adjustment_id %]" />[% adjustment.adjustment_id %]</td> |
150 |
<td><input type="text" name="adjustment" id="adjustment_[% adjustment.adjustment_id %]" value="[% adjustment.adjustment | $Price %]" /></td> |
151 |
<td> |
152 |
[% reasons = AuthorisedValues.Get("ADJ_REASON") %] |
153 |
[% IF reasons %] |
154 |
<select id="reason_[% adjustment.adjustment_id %]" name="reason"> |
155 |
<option value="">No reason</option> |
156 |
[% FOREACH reason IN reasons %] |
157 |
[% IF ( adjustment.reason == reason.authorised_value ) %] |
158 |
<option selected="selected" value="[% reason.authorised_value %]"> |
159 |
[% ELSE %] |
160 |
<option value="[% reason.authorised_value %]"> |
161 |
[% END %] |
162 |
[% reason.lib %] |
163 |
</option> |
164 |
[% END %] |
165 |
</select> |
166 |
[% ELSE %] |
167 |
<p title="Define values in authorised value category ADJ_REASON to enable">None</p> |
168 |
<input type="hidden" name="reason" id="reason_[% adjustment.adjustment_id %]" value="" /> |
169 |
[% END %] |
170 |
</td> |
171 |
<td><input type="text" name="note" id="note_new" value="[% adjustment.note %]"/></td> |
172 |
<td> |
173 |
<select id="budget_id_[% adjustment.adjustment_id %]" name="budget_id"> |
174 |
<option value="">No fund</option> |
175 |
[% FOREACH budget IN budgets_loop %] |
176 |
[% IF ( budget.budget_id == adjustment.budget_id ) %] |
177 |
<option selected="selected" value="[% budget.budget_id %]"> |
178 |
[% ELSE %] |
179 |
<option value="[% budget.budget_id %]"> |
180 |
[% END %] |
181 |
[% budget.budget_name %] |
182 |
</option> |
183 |
[% END %] |
184 |
</select> |
185 |
</td> |
186 |
[% IF adjustment.encumber_open %] |
187 |
<td> |
188 |
<input type="checkbox" name="encumber_open" id="encumber_[% adjustment.adjustment_id %]" value="[% adjustment.adjustment_id %]" checked/> |
189 |
</td> |
190 |
[% ELSE %] |
191 |
<td> |
192 |
<input type="checkbox" name="encumber_open" id="encumber_[% adjustment.adjustment_id %]" value="[% adjustment.adjustment_id %]" /> |
193 |
</td> |
194 |
[% END %] |
195 |
<td> |
196 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/acqui/invoice.pl?op=del_adj&adjustment_id=[% adjustment.adjustment_id %]&invoiceid=[% invoiceid %]"><i class="fa fa-trash"></i> Delete</a> |
197 |
</td> |
198 |
</tr> |
199 |
[% END %] |
200 |
[% END %] |
201 |
<tr><td colspan="7">Add an adjustment</td></tr> |
202 |
<td><input type="hidden" name="adjustment_id" value="new" />New</td> |
203 |
<td><input type="text" name="adjustment" id="adjustment_new]" /></td> |
204 |
<td> |
205 |
[% reasons = AuthorisedValues.Get("ADJ_REASON") %] |
206 |
[% IF reasons %] |
207 |
<select id="reason_[% adjustment.adjustment_id %]" name="reason"> |
208 |
<option value="">No reason</option> |
209 |
[% FOREACH reason IN reasons %] |
210 |
<option value="[% reason.authorised_value %]"> |
211 |
[% reason.lib %] |
212 |
</option> |
213 |
[% END %] |
214 |
</select> |
215 |
[% ELSE %] |
216 |
<p title="Define values in authorised value category ADJ_REASON to enable">None</p> |
217 |
[% END %] |
218 |
</td> |
219 |
<td><input type="text" name="note" id="note_new" value=""/></td> |
220 |
<td> |
221 |
<select id="budget_id_[% adjustment.adjustment_id %]" name="budget_id"> |
222 |
<option selected="selected" value="">No fund</option> |
223 |
[% FOREACH budget IN budgets_loop %] |
224 |
<option value="[% budget.budget_id %]"> |
225 |
[% budget.budget_name %] |
226 |
</option> |
227 |
[% END %] |
228 |
</select> |
229 |
</td> |
230 |
<td><input type="checkbox" name="encumber_open" id="encumber_new" value="1" /></td> |
231 |
<td><input type="hidden" name="delete" value=""></td> |
232 |
</tr> |
233 |
</table> |
234 |
<input type="hidden" name="op" value="mod_adj" /> |
235 |
<input type="submit" value="Update adjustments" /> |
236 |
</form> |
130 |
<p> |
237 |
<p> |
131 |
<a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]">Go to receipt page</a> |
238 |
<a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]">Go to receipt page</a> |
132 |
[% IF Koha.Preference('AcqEnableFiles') %]| <a href="/cgi-bin/koha/acqui/invoice-files.pl?invoiceid=[% invoiceid %]">Manage invoice files</a>[% END %] |
239 |
[% IF Koha.Preference('AcqEnableFiles') %]| <a href="/cgi-bin/koha/acqui/invoice-files.pl?invoiceid=[% invoiceid %]">Manage invoice files</a>[% END %] |
Lines 207-217
Link Here
|
207 |
<th> </th> |
314 |
<th> </th> |
208 |
</tr> |
315 |
</tr> |
209 |
<tr> |
316 |
<tr> |
210 |
<th colspan="2">Total + Shipment cost ([% currency.symbol %])</th> |
317 |
<th colspan="2">Total + Adjustments + Shipment cost ([% currency.symbol %])</th> |
211 |
<th class="tax_excluded"></th> |
318 |
<th class="tax_excluded"></th> |
212 |
<th class="tax_included"></th> |
319 |
<th class="tax_included"></th> |
213 |
<th>[% total_quantity %]</th> |
320 |
<th>[% total_quantity %]</th> |
214 |
<th class="tax_excluded">[% total_tax_excluded_shipment | $Price %]</th> |
321 |
<th class="tax_excluded">[% total_tax_excluded_shipment + total_adj | $Price %]</th> |
215 |
<th class="tax_included">[% total_tax_included_shipment | $Price %]</th> |
322 |
<th class="tax_included">[% total_tax_included_shipment | $Price %]</th> |
216 |
<th> </th> |
323 |
<th> </th> |
217 |
<th>[% total_tax_value | $Price %]</th> |
324 |
<th>[% total_tax_value | $Price %]</th> |
Lines 220-226
Link Here
|
220 |
</tfoot> |
327 |
</tfoot> |
221 |
</table> |
328 |
</table> |
222 |
[% ELSE %] |
329 |
[% ELSE %] |
223 |
<div class="dialog message"><p>No orders yet</p></div> |
330 |
<div class="dialog message"><p>No orders yet</p> |
|
|
331 |
[% IF adjustments.count > 0 || shipmentcost > 0 %] |
332 |
<p>Adjustments plus shipping:[% total_adj + shipmentcost | $Price %]</p> |
333 |
[% END %] |
334 |
</div> |
224 |
[% END %] |
335 |
[% END %] |
225 |
[% IF ( (Koha.Preference('AcqEnableFiles')) && files ) %] |
336 |
[% IF ( (Koha.Preference('AcqEnableFiles')) && files ) %] |
226 |
<br /> |
337 |
<br /> |