Lines 16-28
Link Here
|
16 |
[% END %] |
16 |
[% END %] |
17 |
[% END %] |
17 |
[% END %] |
18 |
</span> |
18 |
</span> |
|
|
19 |
|
19 |
[% BLOCK fund_dropdown %] |
20 |
[% BLOCK fund_dropdown %] |
20 |
<span> |
21 |
<span> |
21 |
<label for="[% form_name | html %]">Fund: </label> |
22 |
<label for="[% form_name | html %]">Fund: </label> |
22 |
<select id="[% form_id | html %]" name="[% form_name | html %]" class="fund_dropdown" data-selected="[% selected | html %]"> |
23 |
<select id="[% form_id | html %]" name="[% form_name | html %]" class="fund_dropdown" data-selected="[% selected | html %]"> |
23 |
</select> |
24 |
</select> |
24 |
<label for="showallfunds" style="float:none;width:auto;"> Show inactive:</label> |
25 |
<label for="showallfunds" style="float:none;width:auto;"> Show inactive:</label> |
25 |
<input type="checkbox" class="showallfunds" /> |
26 |
<input type="checkbox" class="showallfunds" /> |
26 |
</span> |
27 |
</span> |
27 |
[% END %] |
28 |
[% END %] |
28 |
|
29 |
|
Lines 36-52
Link Here
|
36 |
<div class="modal-body"> |
37 |
<div class="modal-body"> |
37 |
<p>Updating the fund may change available statistics for the order, please check values before submitting.</p> |
38 |
<p>Updating the fund may change available statistics for the order, please check values before submitting.</p> |
38 |
<fieldset class="rows"> |
39 |
<fieldset class="rows"> |
39 |
<ol> |
40 |
<ol> |
40 |
<li>[% PROCESS fund_dropdown form_id => 'modify_budget_id' form_name => 'modify_budget_id' selected => "" %]</li> |
41 |
<li> |
41 |
<li> |
42 |
[% PROCESS fund_dropdown form_id => 'modify_budget_id' form_name => 'modify_budget_id' selected => "" %] |
42 |
<label for="sort1">Statistic 1: </label> |
43 |
</li> |
43 |
<input type="text" name="sort1" /> |
44 |
<li> |
44 |
</li> |
45 |
<label for="sort1">Statistic 1: </label> |
45 |
<li> |
46 |
<input type="text" name="sort1" /> |
46 |
<label for="sort2">Statistic 2: </label> |
47 |
</li> |
47 |
<input type="text" name="sort2" /> |
48 |
<li> |
48 |
</li> |
49 |
<label for="sort2">Statistic 2: </label> |
49 |
</ol> |
50 |
<input type="text" name="sort2" /> |
|
|
51 |
</li> |
52 |
</ol> |
50 |
</fieldset> |
53 |
</fieldset> |
51 |
<a id="update_fund" class="btn btn-default">Update fund</a> |
54 |
<a id="update_fund" class="btn btn-default">Update fund</a> |
52 |
</div> |
55 |
</div> |
Lines 70-93
Link Here
|
70 |
|
73 |
|
71 |
[% SET readonly = NOT CAN_user_acquisition_edit_invoices %] |
74 |
[% SET readonly = NOT CAN_user_acquisition_edit_invoices %] |
72 |
|
75 |
|
73 |
|
|
|
74 |
[% WRAPPER 'sub-header.inc' %] |
76 |
[% WRAPPER 'sub-header.inc' %] |
75 |
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb"> |
77 |
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb"> |
76 |
<ol> |
78 |
<ol> |
77 |
<li> |
79 |
<li> |
78 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> |
80 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> |
79 |
</li> |
81 |
</li> |
80 |
<li> |
82 |
<li> |
81 |
<a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> |
83 |
<a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> |
82 |
</li> |
84 |
</li> |
83 |
<li> |
85 |
<li> |
84 |
<a href="/cgi-bin/koha/acqui/invoices.pl">Invoices</a> |
86 |
<a href="/cgi-bin/koha/acqui/invoices.pl">Invoices</a> |
85 |
</li> |
87 |
</li> |
86 |
<li> |
88 |
<li> |
87 |
<a href="#" aria-current="page">[% invoicenumber | html %]</a> |
89 |
<a href="#" aria-current="page">[% invoicenumber | html %]</a> |
88 |
</li> |
90 |
</li> |
89 |
</ol> |
91 |
</ol> |
90 |
</nav> |
92 |
</nav> |
91 |
[% END %] |
93 |
[% END %] |
92 |
|
94 |
|
93 |
<div class="main container-fluid"> |
95 |
<div class="main container-fluid"> |
Lines 95-490
Link Here
|
95 |
<div class="col-sm-10 col-sm-push-2"> |
97 |
<div class="col-sm-10 col-sm-push-2"> |
96 |
<main> |
98 |
<main> |
97 |
|
99 |
|
98 |
<h1>Invoice: [% invoicenumber | html %]</h1> |
100 |
<h1>Invoice: [% invoicenumber | html %]</h1> |
99 |
[% INCLUDE 'blocking_errors.inc' %] |
101 |
[% INCLUDE 'blocking_errors.inc' %] |
100 |
|
102 |
|
101 |
[% IF ( modified ) %] |
103 |
[% IF ( modified ) %] |
102 |
<div class="dialog message"> |
104 |
<div class="dialog message"> |
103 |
<p>Invoice has been modified</p> |
105 |
<p>Invoice has been modified</p> |
104 |
</div> |
106 |
</div> |
105 |
[% END %] |
|
|
106 |
|
107 |
<p>Vendor: <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% suppliername | html %]</a></p> |
108 |
<form action="/cgi-bin/koha/acqui/invoice.pl" method="post" class="validated"> |
109 |
<fieldset class="rows"> |
110 |
<ol> |
111 |
<li> |
112 |
[% IF readonly %] |
113 |
<label for="shipmentdate">Invoice number:</label> |
114 |
[% invoicenumber | html %] |
115 |
[% ELSE %] |
116 |
<label for="shipmentdate" class="required">Invoice number:</label> |
117 |
<input type="text" id="invoicenumber" name="invoicenumber" value="[% invoicenumber | html %]" class="required" required="required"/> |
118 |
<span class="required">Required</span> |
119 |
[% END %] |
107 |
[% END %] |
120 |
</li> |
|
|
121 |
|
108 |
|
122 |
<li> |
109 |
<p>Vendor: <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% suppliername | html %]</a></p> |
123 |
<label for="shipmentdate">Shipment date:</label> |
|
|
124 |
[% IF readonly %] |
125 |
[% shipmentdate | $KohaDates %] |
126 |
[% ELSE %] |
127 |
<input type="text" size="10" id="shipmentdate" name="shipmentdate" value="[% shipmentdate | html %]" class="flatpickr" /> |
128 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
129 |
[% END %] |
130 |
</li> |
131 |
|
110 |
|
132 |
<li> |
111 |
<form action="/cgi-bin/koha/acqui/invoice.pl" method="post" class="validated"> |
133 |
<label for="billingdate">Billing date:</label> |
112 |
<fieldset class="rows"> |
134 |
[% IF readonly %] |
113 |
<ol> |
135 |
[% billingdate | $KohaDates %] |
114 |
<li> |
136 |
[% ELSE %] |
115 |
[% IF readonly %] |
137 |
<input type="text" size="10" id="billingdate" name="billingdate" value="[% billingdate | html %]" class="flatpickr" /> |
116 |
<label for="shipmentdate">Invoice number:</label> |
138 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
117 |
[% invoicenumber | html %] |
139 |
[% END %] |
118 |
[% ELSE %] |
140 |
</li> |
119 |
<label for="shipmentdate" class="required">Invoice number:</label> |
|
|
120 |
<input type="text" id="invoicenumber" name="invoicenumber" value="[% invoicenumber | html %]" class="required" required="required"/> |
121 |
<span class="required">Required</span> |
122 |
[% END %] |
123 |
</li> |
124 |
<li> |
125 |
<label for="shipmentdate">Shipment date:</label> |
126 |
[% IF readonly %] |
127 |
[% shipmentdate | $KohaDates %] |
128 |
[% ELSE %] |
129 |
<input type="text" size="10" id="shipmentdate" name="shipmentdate" value="[% shipmentdate | html %]" class="flatpickr" /> |
130 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
131 |
[% END %] |
132 |
</li> |
133 |
<li> |
134 |
<label for="billingdate">Billing date:</label> |
135 |
[% IF readonly %] |
136 |
[% billingdate | $KohaDates %] |
137 |
[% ELSE %] |
138 |
<input type="text" size="10" id="billingdate" name="billingdate" value="[% billingdate | html %]" class="flatpickr" /> |
139 |
<div class="hint">[% INCLUDE 'date-format.inc' %]</div> |
140 |
[% END %] |
141 |
</li> |
142 |
<li> |
143 |
<label for="shipmentcost">Shipping cost:</label> |
144 |
[% IF readonly %] |
145 |
[% shipmentcost | $Price %] |
146 |
[% ELSE %] |
147 |
<input type="text" size="10" id="shipmentcost" name="shipmentcost" value="[% shipmentcost | $Price on_editing => 1 %]" /> |
148 |
[% END %] |
149 |
</li> |
150 |
<li> |
151 |
[% PROCESS fund_dropdown form_id => 'shipment_budget_id' form_name => 'shipment_budget_id' selected => shipment_budget_id %] |
152 |
</li> |
141 |
|
153 |
|
142 |
<li> |
154 |
[% IF ( invoiceclosedate ) %] |
143 |
<label for="shipmentcost">Shipping cost:</label> |
155 |
<li> |
144 |
[% IF readonly %] |
156 |
<span class="label">Status:</span> |
145 |
[% shipmentcost | $Price %] |
157 |
Closed on [% invoiceclosedate | $KohaDates %] |
146 |
[% ELSE %] |
158 |
</li> |
147 |
<input type="text" size="10" id="shipmentcost" name="shipmentcost" value="[% shipmentcost | $Price on_editing => 1 %]" /> |
159 |
[% IF CAN_user_acquisition_reopen_closed_invoices AND NOT readonly %] |
148 |
[% END %] |
160 |
<li> |
149 |
</li> |
161 |
<label for="reopen">Reopen: </label> |
150 |
<li> |
162 |
<input type="checkbox" name="reopen" id="reopen" /> |
151 |
[% PROCESS fund_dropdown form_id => 'shipment_budget_id' form_name => 'shipment_budget_id' selected => shipment_budget_id %] |
163 |
</li> |
152 |
</li> |
164 |
[% END %] |
|
|
165 |
[% ELSE %] |
166 |
<li> |
167 |
<span class="label">Status:</span> |
168 |
Open |
169 |
</li> |
170 |
[% UNLESS ( readonly ) %] |
171 |
<li> |
172 |
<label for="close">Close: </label> |
173 |
<input type="checkbox" name="close" id="close" /> |
174 |
</li> |
175 |
[% END %] |
176 |
[% END %] |
177 |
</ol> |
153 |
|
178 |
|
154 |
[% IF ( invoiceclosedate ) %] |
179 |
<fieldset class="rows"> |
155 |
<li><span class="label">Status:</span> |
180 |
[% IF available_additional_fields.count %] |
156 |
Closed on [% invoiceclosedate | $KohaDates %]</li> |
181 |
[% INCLUDE 'additional-fields-entry.inc' available=available_additional_fields values=additional_field_values %] |
|
|
182 |
[% END %] |
183 |
</fieldset> |
157 |
|
184 |
|
158 |
[% IF CAN_user_acquisition_reopen_closed_invoices AND NOT readonly %] |
185 |
[% UNLESS readonly %] |
159 |
<li> |
186 |
<input type="hidden" name="op" value="mod" /> |
160 |
<label for="reopen">Reopen: </label> |
187 |
<input type="hidden" name="invoiceid" value="[% invoiceid | html %]" /> |
161 |
<input type="checkbox" name="reopen" id="reopen" /> |
188 |
<fieldset class="action"> |
162 |
</li> |
189 |
<input type="submit" class="btn btn-primary" value="Save" /> |
163 |
[% END %] |
190 |
[% IF CAN_user_acquisition_delete_invoices AND NOT orders_loop.size %] |
164 |
[% ELSE %] |
191 |
<a href="invoice.pl?op=delete&invoiceid=[% invoiceid | uri %]" id="delete">Delete</a> |
165 |
<li> |
192 |
[% END %] |
166 |
<span class="label">Status:</span> |
193 |
</fieldset> |
167 |
Open |
194 |
[% END %] |
168 |
</li> |
195 |
</fieldset> |
169 |
[% UNLESS ( readonly ) %] |
196 |
</form> |
170 |
<li> |
197 |
|
171 |
<label for="close">Close: </label> |
198 |
<h3>Adjustments</h3> |
172 |
<input type="checkbox" name="close" id="close" /> |
199 |
|
173 |
</li> |
200 |
<form action="/cgi-bin/koha/acqui/invoice.pl" method="post" class="validated"> |
174 |
[% END %] |
201 |
<fieldset class="rows"> |
175 |
[% END %] |
202 |
<input type="hidden" name="invoiceid" value="[% invoiceid | html %]" /> |
176 |
</ol> |
203 |
[% IF (adjustments && adjustments.count > 0) %] |
177 |
<fieldset class="rows"> |
204 |
<table id="invoice_adj_table"> |
178 |
[% IF available_additional_fields.count %] |
205 |
<tr> |
179 |
[% INCLUDE 'additional-fields-entry.inc' available=available_additional_fields values=additional_field_values %] |
206 |
<th>Id</th> |
180 |
[% END %] |
207 |
<th>Amount</th> |
181 |
</fieldset> |
208 |
<th>Reason</th> |
182 |
[% UNLESS readonly %] |
209 |
<th>Note</th> |
183 |
<input type="hidden" name="op" value="mod" /> |
210 |
<th>Fund</th> |
184 |
<input type="hidden" name="invoiceid" value="[% invoiceid | html %]" /> |
211 |
<th>Encumber while invoice open</th> |
185 |
<fieldset class="action"> |
212 |
[% UNLESS readonly %]<th> </th>[% END %] |
186 |
<input type="submit" class="btn btn-primary" value="Save" /> |
213 |
</tr> |
187 |
[% IF CAN_user_acquisition_delete_invoices AND NOT orders_loop.size %] |
214 |
[% total_adj = 0 %] |
188 |
<a href="invoice.pl?op=delete&invoiceid=[% invoiceid | uri %]" id="delete">Delete</a> |
215 |
[% FOREACH adjustment IN adjustments %] |
189 |
[% END %] |
216 |
[% total_adj = total_adj + adjustment.adjustment %] |
190 |
</fieldset> |
217 |
<tr> |
191 |
[% END %] |
218 |
<td> |
192 |
</fieldset> |
219 |
<input type="hidden" name="adjustment_id" value="[% adjustment.adjustment_id | html %]" />[% adjustment.adjustment_id | html %] |
193 |
</form> |
220 |
</td> |
194 |
|
221 |
<td> |
195 |
<h3>Adjustments</h3> |
222 |
[% IF readonly %] |
196 |
|
223 |
[% adjustment.adjustment | $Price %] |
197 |
<form action="/cgi-bin/koha/acqui/invoice.pl" method="post" class="validated"> |
224 |
[% ELSE %] |
198 |
<fieldset class="rows"> |
225 |
<input type="text" name="adjustment" id="adjustment_[% adjustment.adjustment_id | html %]" value="[% adjustment.adjustment | $Price on_editing => 1 %]" /> |
199 |
<input type="hidden" name="invoiceid" value="[% invoiceid | html %]" /> |
226 |
[% END %] |
200 |
[% IF (adjustments && adjustments.count > 0) %] |
227 |
</td> |
201 |
<table id="invoice_adj_table"> |
228 |
<td> |
202 |
<tr> |
229 |
[% IF readonly %] |
203 |
<th>Id</th> |
230 |
[% AuthorisedValues.GetByCode('ADJ_REASON', adjustment.reason) | html %] |
204 |
<th>Amount</th> |
231 |
[% ELSE %] |
205 |
<th>Reason</th> |
232 |
[% reasons = AuthorisedValues.Get("ADJ_REASON") %] |
206 |
<th>Note</th> |
233 |
[% IF reasons.0 %] |
207 |
<th>Fund</th> |
234 |
<select id="reason_[% adjustment.adjustment_id | html %]" name="reason"> |
208 |
<th>Encumber while invoice open</th> |
235 |
<option value="">No reason</option> |
209 |
[% UNLESS readonly %]<th> </th>[% END %] |
236 |
[% FOREACH reason IN reasons %] |
210 |
</tr> |
237 |
[% IF ( adjustment.reason == reason.authorised_value ) %] |
211 |
[% total_adj = 0 %] |
238 |
<option selected="selected" value="[% reason.authorised_value | html %]"> |
212 |
[% FOREACH adjustment IN adjustments %] |
239 |
[% ELSE %] |
213 |
[% total_adj = total_adj + adjustment.adjustment %] |
240 |
<option value="[% reason.authorised_value | html %]"> |
214 |
<tr> |
241 |
[% END %] |
215 |
<td><input type="hidden" name="adjustment_id" value="[% adjustment.adjustment_id | html %]" />[% adjustment.adjustment_id | html %]</td> |
242 |
[% reason.lib | html %] |
216 |
<td> |
243 |
</option> |
217 |
[% IF readonly %] |
244 |
[% END %] |
218 |
[% adjustment.adjustment | $Price %] |
245 |
</select> |
219 |
[% ELSE %] |
246 |
[% ELSE %] |
220 |
<input type="text" name="adjustment" id="adjustment_[% adjustment.adjustment_id | html %]" value="[% adjustment.adjustment | $Price on_editing => 1 %]" /> |
247 |
<p title="Define values in authorised value category ADJ_REASON to enable">None</p> |
221 |
[% END %] |
248 |
<input type="hidden" name="reason" id="reason_[% adjustment.adjustment_id | html %]" value="" /> |
222 |
</td> |
249 |
[% END %] |
223 |
<td> |
250 |
[% END %] |
224 |
[% IF readonly %] |
251 |
</td> |
225 |
[% AuthorisedValues.GetByCode('ADJ_REASON', adjustment.reason) | html %] |
252 |
<td> |
226 |
[% ELSE %] |
253 |
[% IF readonly %] |
227 |
[% reasons = AuthorisedValues.Get("ADJ_REASON") %] |
254 |
[% adjustment.note | html %] |
228 |
[% IF reasons.0 %] |
255 |
[% ELSE %] |
229 |
<select id="reason_[% adjustment.adjustment_id | html %]" name="reason"> |
256 |
<input type="text" name="note" id="note_new" value="[% adjustment.note | html %]"/> |
230 |
<option value="">No reason</option> |
257 |
[% END %] |
231 |
[% FOREACH reason IN reasons %] |
258 |
</td> |
232 |
[% IF ( adjustment.reason == reason.authorised_value ) %] |
259 |
<td> |
233 |
<option selected="selected" value="[% reason.authorised_value | html %]"> |
260 |
[% PROCESS fund_dropdown form_id => "budget_id_" _ adjustment.adjustment_id form_name => 'budget_id' selected => adjustment.budget_id %] |
234 |
[% ELSE %] |
261 |
</td> |
235 |
<option value="[% reason.authorised_value | html %]"> |
262 |
[% IF adjustment.encumber_open %] |
236 |
[% END %] |
263 |
<td> |
237 |
[% reason.lib | html %] |
264 |
[% IF readonly %] |
238 |
</option> |
265 |
<input type="checkbox" checked="checked" readonly="readonly" /> |
239 |
[% END %] |
266 |
[% ELSE %] |
240 |
</select> |
267 |
<input type="checkbox" name="encumber_open" id="encumber_[% adjustment.adjustment_id | html %]" value="[% adjustment.adjustment_id | html %]" checked/> |
241 |
[% ELSE %] |
268 |
[% END %] |
242 |
<p title="Define values in authorised value category ADJ_REASON to enable">None</p> |
269 |
</td> |
243 |
<input type="hidden" name="reason" id="reason_[% adjustment.adjustment_id | html %]" value="" /> |
|
|
244 |
[% END %] |
245 |
[% END %] |
246 |
</td> |
247 |
<td> |
248 |
[% IF readonly %] |
249 |
[% adjustment.note | html %] |
250 |
[% ELSE %] |
251 |
<input type="text" name="note" id="note_new" value="[% adjustment.note | html %]"/> |
252 |
[% END %] |
253 |
</td> |
254 |
<td> |
255 |
[% PROCESS fund_dropdown form_id => "budget_id_" _ adjustment.adjustment_id form_name => 'budget_id' selected => adjustment.budget_id %] |
256 |
</td> |
257 |
[% IF adjustment.encumber_open %] |
258 |
<td> |
259 |
[% IF readonly %] |
260 |
<input type="checkbox" checked="checked" readonly="readonly" /> |
261 |
[% ELSE %] |
270 |
[% ELSE %] |
262 |
<input type="checkbox" name="encumber_open" id="encumber_[% adjustment.adjustment_id | html %]" value="[% adjustment.adjustment_id | html %]" checked/> |
271 |
<td> |
|
|
272 |
[% IF readonly %] |
273 |
<input type="checkbox" disabled="disabled" /> |
274 |
[% ELSE %] |
275 |
<input type="checkbox" name="encumber_open" id="encumber_[% adjustment.adjustment_id | html %]" value="[% adjustment.adjustment_id | html %]" /> |
276 |
[% END %] |
277 |
</td> |
263 |
[% END %] |
278 |
[% END %] |
264 |
</td> |
279 |
[% UNLESS readonly %] |
265 |
[% ELSE %] |
280 |
<td> |
266 |
<td> |
281 |
<a class="btn btn-default btn-xs delete_adjustment" href="/cgi-bin/koha/acqui/invoice.pl?op=del_adj&adjustment_id=[% adjustment.adjustment_id | html %]&invoiceid=[% invoiceid | html %]"><i class="fa fa-trash"></i> Delete</a> |
267 |
[% IF readonly %] |
282 |
</td> |
268 |
<input type="checkbox" disabled="disabled" /> |
|
|
269 |
[% ELSE %] |
270 |
<input type="checkbox" name="encumber_open" id="encumber_[% adjustment.adjustment_id | html %]" value="[% adjustment.adjustment_id | html %]" /> |
271 |
[% END %] |
283 |
[% END %] |
272 |
</td> |
284 |
</tr> |
273 |
[% END %] |
285 |
[% END %] |
274 |
[% UNLESS readonly %] |
286 |
</table> |
275 |
<td> |
287 |
[% END %] |
276 |
<a class="btn btn-default btn-xs delete_adjustment" href="/cgi-bin/koha/acqui/invoice.pl?op=del_adj&adjustment_id=[% adjustment.adjustment_id | html %]&invoiceid=[% invoiceid | html %]"><i class="fa fa-trash"></i> Delete</a> |
288 |
|
277 |
</td> |
289 |
[% UNLESS readonly %] |
278 |
[% END %] |
290 |
<p> |
279 |
</tr> |
291 |
<a href="#" id="show_invoice_adjustment" class="toggle_invoice_adjustment"><i class="fa fa-plus"></i> Add an adjustment</a> |
280 |
[% END %] |
292 |
</p> |
281 |
</table> |
293 |
|
282 |
[% END %] |
294 |
<fieldset id="add_invoice_adjustment" style="display:none"> |
283 |
|
295 |
<h4>Add an adjustment</h4> |
284 |
[% UNLESS readonly %] |
296 |
<input type="hidden" name="adjustment_id" value="new" /> |
285 |
<p> |
297 |
<ol> |
286 |
<a href="#" id="show_invoice_adjustment" class="toggle_invoice_adjustment"><i class="fa fa-plus"></i> Add an adjustment</a> |
298 |
<li> |
287 |
</p> |
299 |
<label for="adjustment_new">Amount: </label> |
288 |
|
300 |
<input type="text" name="adjustment" id="adjustment_new" /> |
289 |
<fieldset id="add_invoice_adjustment" style="display:none"> |
301 |
</li> |
290 |
<h4>Add an adjustment</h4> |
302 |
[% reasons = AuthorisedValues.Get("ADJ_REASON") %] |
291 |
<input type="hidden" name="adjustment_id" value="new" /> |
303 |
[% IF reasons.0 %] |
292 |
<ol> |
304 |
<li> |
293 |
<li> |
305 |
<label for="reason_[% adjustment.adjustment_id | html %]">Reason: </label> |
294 |
<label for="adjustment_new">Amount: </label> |
306 |
<select id="reason_[% adjustment.adjustment_id | html %]" name="reason"> |
295 |
<input type="text" name="adjustment" id="adjustment_new" /> |
307 |
<option value="">No reason</option> |
296 |
</li> |
308 |
[% FOREACH reason IN reasons %] |
297 |
[% reasons = AuthorisedValues.Get("ADJ_REASON") %] |
309 |
<option value="[% reason.authorised_value | html %]"> |
298 |
[% IF reasons.0 %] |
310 |
[% reason.lib | html %] |
299 |
<li> |
311 |
</option> |
300 |
<label for="reason_[% adjustment.adjustment_id | html %]">Reason: </label> |
312 |
[% END %] |
301 |
<select id="reason_[% adjustment.adjustment_id | html %]" name="reason"> |
313 |
</select> |
302 |
<option value="">No reason</option> |
314 |
</li> |
303 |
[% FOREACH reason IN reasons %] |
315 |
[% ELSE %] |
304 |
<option value="[% reason.authorised_value | html %]"> |
316 |
<li> |
305 |
[% reason.lib | html %] |
317 |
<span class="label">Reason: </span> |
306 |
</option> |
318 |
<span>None</span> |
307 |
[% END %] |
319 |
<div class="hint">Define values in authorised value category ADJ_REASON to enable</div> |
308 |
</select> |
320 |
</li> |
309 |
</li> |
321 |
[% END %] |
310 |
[% ELSE %] |
322 |
<li> |
311 |
<li> |
323 |
<label for="note_new">Note: </label> |
312 |
<span class="label">Reason: </span> |
324 |
<input type="text" name="note" id="note_new" value=""/> |
313 |
<span>None</span> |
325 |
</li> |
314 |
<div class="hint">Define values in authorised value category ADJ_REASON to enable</div> |
326 |
<li> |
315 |
</li> |
327 |
[% PROCESS fund_dropdown form_id => "budget_id_new" form_name => 'budget_id' selected => "" %] |
316 |
[% END %] |
328 |
</li> |
317 |
<li> |
329 |
<li> |
318 |
<label for="note_new">Note: </label> |
330 |
<label for="encumber_new">Encumber while invoice open? </label> |
319 |
<input type="text" name="note" id="note_new" value=""/> |
331 |
<input type="checkbox" name="encumber_open" id="encumber_new" value="new" /> |
320 |
</li> |
332 |
<input type="hidden" name="delete" value=""> |
321 |
<li> |
333 |
</li> |
322 |
[% PROCESS fund_dropdown form_id => "budget_id_new" form_name => 'budget_id' selected => "" %] |
334 |
<li> |
323 |
</li> |
335 |
<span class="label"> </span> |
324 |
<li> |
336 |
<a href="#" id="cancel_invoice_adjustment" class="toggle_invoice_adjustment" style="display:none"><i class="fa fa-remove"></i> Cancel</a> |
325 |
<label for="encumber_new">Encumber while invoice open? </label> |
337 |
</li> |
326 |
<input type="checkbox" name="encumber_open" id="encumber_new" value="new" /> |
338 |
</ol> |
327 |
<input type="hidden" name="delete" value=""> |
339 |
</fieldset> |
328 |
</li> |
340 |
<fieldset class="action"> |
329 |
<li> |
341 |
<input type="hidden" name="op" value="mod_adj" /> |
330 |
<span class="label"> </span> |
342 |
<input type="submit" class="btn btn-primary" value="Update adjustments" /> |
331 |
<a href="#" id="cancel_invoice_adjustment" class="toggle_invoice_adjustment" style="display:none"><i class="fa fa-remove"></i> Cancel</a> |
343 |
</fieldset> |
332 |
</li> |
344 |
[% END %] |
333 |
</ol> |
345 |
</fieldset> |
334 |
</fieldset> |
346 |
</form> |
335 |
<fieldset class="action"> |
347 |
|
336 |
<input type="hidden" name="op" value="mod_adj" /> |
348 |
<p> |
337 |
<input type="submit" class="btn btn-primary" value="Update adjustments" /> |
349 |
<a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid | uri %]">Go to receipt page</a> |
338 |
</fieldset> |
350 |
[% IF Koha.Preference('AcqEnableFiles') %]| <a href="/cgi-bin/koha/acqui/invoice-files.pl?invoiceid=[% invoiceid | uri %]">Manage invoice files</a>[% END %] |
339 |
[% END %] |
351 |
</p> |
340 |
</fieldset> |
352 |
|
341 |
</form> |
353 |
<h2>Invoice details</h2> |
342 |
<p> |
354 |
|
343 |
<a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid | uri %]">Go to receipt page</a> |
355 |
<fieldset> |
344 |
[% IF Koha.Preference('AcqEnableFiles') %]| <a href="/cgi-bin/koha/acqui/invoice-files.pl?invoiceid=[% invoiceid | uri %]">Manage invoice files</a>[% END %] |
356 |
[% IF orders_loop.size %] |
345 |
</p> |
357 |
<label for="show_all_details"> |
346 |
<h2>Invoice details</h2> |
358 |
<input type="checkbox" style="vertical-align: middle;" id="show_all_details" /> |
347 |
<fieldset> |
359 |
Show all details |
348 |
[% IF orders_loop.size %] |
360 |
</label> |
349 |
<label for="show_all_details"> |
361 |
<table id="orderst"> |
350 |
<input type="checkbox" style="vertical-align: middle;" id="show_all_details" /> |
362 |
<thead> |
351 |
Show all details |
363 |
<tr> |
352 |
</label> |
364 |
<th class="anti-the">Summary</th> |
353 |
<table id="orderst"> |
365 |
<th>Library</th> |
354 |
<thead> |
366 |
<th class="tax_excluded">Actual cost tax exc.</th> |
355 |
<tr> |
367 |
<th class="tax_included">Actual cost tax inc.</th> |
356 |
<th class="anti-the">Summary</th> |
368 |
<th class="replacementprice">Replacement price</th> |
357 |
<th>Library</th> |
369 |
<th>Qty.</th> |
358 |
<th class="tax_excluded">Actual cost tax exc.</th> |
370 |
<th class="tax_excluded">Total tax exc. ([% currency.symbol | html %])</th> |
359 |
<th class="tax_included">Actual cost tax inc.</th> |
371 |
<th class="tax_included">Total tax inc. ([% currency.symbol | html %])</th> |
360 |
<th class="replacementprice">Replacement price</th> |
372 |
<th>GST %</th> |
361 |
<th>Qty.</th> |
373 |
<th>GST</th> |
362 |
<th class="tax_excluded">Total tax exc. ([% currency.symbol | html %])</th> |
374 |
<th>Fund</th> |
363 |
<th class="tax_included">Total tax inc. ([% currency.symbol | html %])</th> |
375 |
</tr> |
364 |
<th>GST %</th> |
376 |
</thead> |
365 |
<th>GST</th> |
377 |
<tbody> |
366 |
<th>Fund</th> |
378 |
[% FOREACH order IN orders_loop %] |
367 |
</tr> |
379 |
<tr> |
368 |
</thead> |
380 |
<td> |
369 |
<tbody> |
381 |
[% IF order.biblionumber %] |
370 |
[% FOREACH order IN orders_loop %] |
382 |
[% INCLUDE 'biblio-title.inc' biblio=order link = 1 %] |
371 |
<tr> |
383 |
[% IF ( order.author ) %] |
372 |
<td> |
384 |
<br /><em>by</em> [% order.author | html %] |
373 |
[% IF order.biblionumber %] |
385 |
[% END %] |
374 |
[% INCLUDE 'biblio-title.inc' biblio=order link = 1 %] |
386 |
[% ELSE %] |
375 |
[% IF ( order.author ) %] |
387 |
<em>Deleted bibliographic record, can't find title</em> |
376 |
<br /><em>by</em> [% order.author | html %] |
388 |
[% END %] |
377 |
[% END %] |
389 |
[% IF ( order.isbn ) %] – [% order.isbn | html %][% END %] |
|
|
390 |
[% IF ( order.publishercode ) %] |
391 |
<br/>[% order.publishercode | html %] |
392 |
[% IF order.publicationyear %], [% order.publicationyear | html %] |
393 |
[% ELSIF ( order.copyrightdate ) %][% order.copyrightdate | html %][% END %] |
394 |
[% END %] |
395 |
</td> |
396 |
<td> |
397 |
<p>[% order.branchcode | html %]</p> |
398 |
</td> |
399 |
<td class="number tax_excluded"> |
400 |
[% order.unitprice_tax_excluded | $Price %] |
401 |
</td> |
402 |
<td class="number tax_included"> |
403 |
[% order.unitprice_tax_included | $Price %] |
404 |
</td> |
405 |
<td class="number replacementprice"> |
406 |
[% order.replacementprice | $Price %] |
407 |
[% IF ( order.uncertainprice ) %] |
408 |
<span>(Uncertain)</span> |
409 |
[% END %] |
410 |
</td> |
411 |
<td class="number"> |
412 |
[% order.quantity | html %] |
413 |
</td> |
414 |
<td class="number tax_excluded"> |
415 |
[% order.total_tax_excluded | $Price %] |
416 |
</td> |
417 |
<td class="number tax_included"> |
418 |
[% order.total_tax_included | $Price %] |
419 |
</td> |
420 |
<td class="number"> |
421 |
[% order.tax_rate * 100 | html %] |
422 |
</td> |
423 |
<td class="number"> |
424 |
[% order.tax_value | $Price %] |
425 |
</td> |
426 |
<td> |
427 |
<span class="order_name" data-order_id="[% order.ordernumber | html %]">[% order.budget_name | html %]</span></br> |
428 |
<a href="#" class="modify_fund" data-order_id="[% order.ordernumber | html %]" data-budget_id="[% order.budget_id | html %]" data-sort_1="[% order.sort1 | html %]" data-sort_2="[% order.sort2 | html %]" data-sort1="[% order.sort1 | html %]" data-sort2="[% order.sort2 | html %]">Modify fund</a> |
429 |
</td> |
430 |
</tr> |
431 |
[% END %] |
432 |
</tbody> |
433 |
<tfoot> |
434 |
[% FOR tf IN foot_loop %] |
435 |
<tr> |
436 |
<th colspan="2">Total (GST [% tf.tax_rate * 100 | html %] %)</th> |
437 |
<th class="tax_excluded"></th> |
438 |
<th class="tax_included"></th> |
439 |
<th class="replacementprice"/> |
440 |
<th>[% tf.quantity | html %]</th> |
441 |
<th class="tax_excluded">[% tf.total_tax_excluded | $Price %]</th> |
442 |
<th class="tax_included">[% tf.total_tax_included | $Price %]</th> |
443 |
<th> </th> |
444 |
<th>[% tf.tax_value | $Price %]</th> |
445 |
<th> </th> |
446 |
</tr> |
447 |
[% END %] |
448 |
<tr> |
449 |
<th colspan="2">Total ([% currency.symbol | html %])</th> |
450 |
<th class="tax_excluded"></th> |
451 |
<th class="tax_included"></th> |
452 |
<th class="replacementprice"/> |
453 |
<th>[% total_quantity | html %]</th> |
454 |
<th class="tax_excluded">[% total_tax_excluded | $Price %]</th> |
455 |
<th class="tax_included">[% total_tax_included | $Price %]</th> |
456 |
<th> </th> |
457 |
<th>[% total_tax_value | $Price %]</th> |
458 |
<th> </th> |
459 |
</tr> |
460 |
<tr> |
461 |
<th colspan="2">Total + adjustments + shipment cost ([% currency.symbol | html %])</th> |
462 |
<th class="tax_excluded"></th> |
463 |
<th class="tax_included"></th> |
464 |
<th class="replacementprice"/> |
465 |
<th>[% total_quantity | html %]</th> |
466 |
<th class="tax_excluded">[% total_tax_excluded_shipment + total_adj | $Price %]</th> |
467 |
<th class="tax_included">[% total_tax_included_shipment + total_adj | $Price %]</th> |
468 |
<th> </th> |
469 |
<th>[% total_tax_value | $Price %]</th> |
470 |
<th> </th> |
471 |
</tr> |
472 |
</tfoot> |
473 |
</table> |
378 |
[% ELSE %] |
474 |
[% ELSE %] |
379 |
<em>Deleted bibliographic record, can't find title</em> |
475 |
<div class="dialog message"> |
|
|
476 |
<p>No orders yet</p> |
477 |
[% IF adjustments && adjustments.count > 0 || shipmentcost && shipmentcost > 0 %] |
478 |
<p>Adjustments plus shipping: [% total_adj + shipmentcost | $Price %]</p> |
479 |
[% END %] |
480 |
</div> |
380 |
[% END %] |
481 |
[% END %] |
381 |
[% IF ( order.isbn ) %] – [% order.isbn | html %][% END %] |
482 |
[% IF ( (Koha.Preference('AcqEnableFiles')) && files ) %] |
382 |
[% IF ( order.publishercode ) %] |
483 |
<br /> |
383 |
<br/>[% order.publishercode | html %] |
484 |
<h2>Files attached to invoice</h2> |
384 |
[% IF order.publicationyear %], [% order.publicationyear | html %] |
485 |
<table id="invoice_files_table"> |
385 |
[% ELSIF ( order.copyrightdate ) %][% order.copyrightdate | html %][% END %] |
486 |
<thead> |
|
|
487 |
<tr> |
488 |
<th>Name</th> |
489 |
<th>Type</th> |
490 |
<th>Description</th> |
491 |
<th>Uploaded</th> |
492 |
</tr> |
493 |
</thead> |
494 |
<tbody> |
495 |
[% FOREACH f IN files %] |
496 |
<tr> |
497 |
<td> |
498 |
<a href="/cgi-bin/koha/acqui/invoice-files.pl?invoiceid=[% invoiceid | uri %]&op=download&view=1&file_id=[% f.file_id | uri %]">[% f.file_name | html %]</a> |
499 |
</td> |
500 |
<td>[% f.file_type | html %]</td> |
501 |
<td>[% f.file_description | html %]</td> |
502 |
<td data-order="[% f.date_uploaded | html %]"> |
503 |
[% f.date_uploaded | $KohaDates %] |
504 |
</td> |
505 |
</tr> |
506 |
[% END %] |
507 |
</tbody> |
508 |
</table> |
386 |
[% END %] |
509 |
[% END %] |
387 |
</td> |
510 |
</fieldset> |
388 |
<td><p>[% order.branchcode | html %]</p></td> |
511 |
</main> |
389 |
<td class="number tax_excluded">[% order.unitprice_tax_excluded | $Price %]</td> |
512 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
390 |
<td class="number tax_included">[% order.unitprice_tax_included | $Price %]</td> |
|
|
391 |
<td class="number replacementprice">[% order.replacementprice | $Price %] [% IF ( order.uncertainprice ) %] <span>(Uncertain)</span> [% END %]</td> |
392 |
<td class="number">[% order.quantity | html %]</td> |
393 |
<td class="number tax_excluded">[% order.total_tax_excluded | $Price %]</td> |
394 |
<td class="number tax_included">[% order.total_tax_included | $Price %]</td> |
395 |
<td class="number">[% order.tax_rate * 100 | html %]</td> |
396 |
<td class="number">[% order.tax_value | $Price %]</td> |
397 |
<td> |
398 |
<span class="order_name" data-order_id="[% order.ordernumber | html %]">[% order.budget_name | html %]</span></br> |
399 |
<a href="#" class="modify_fund" data-order_id="[% order.ordernumber | html %]" data-budget_id="[% order.budget_id | html %]" data-sort_1="[% order.sort1 | html %]" data-sort_2="[% order.sort2 | html %]" data-sort1="[% order.sort1 | html %]" data-sort2="[% order.sort2 | html %]">Modify fund</a> |
400 |
</td> |
401 |
</tr> |
402 |
[% END %] |
403 |
</tbody> |
404 |
<tfoot> |
405 |
[% FOR tf IN foot_loop %] |
406 |
<tr> |
407 |
<th colspan="2">Total (GST [% tf.tax_rate * 100 | html %] %)</th> |
408 |
<th class="tax_excluded"></th> |
409 |
<th class="tax_included"></th> |
410 |
<th class="replacementprice"/> |
411 |
<th>[% tf.quantity | html %]</th> |
412 |
<th class="tax_excluded">[% tf.total_tax_excluded | $Price %]</th> |
413 |
<th class="tax_included">[% tf.total_tax_included | $Price %]</th> |
414 |
<th> </th> |
415 |
<th>[% tf.tax_value | $Price %]</th> |
416 |
<th> </th> |
417 |
</tr> |
418 |
[% END %] |
419 |
<tr> |
420 |
<th colspan="2">Total ([% currency.symbol | html %])</th> |
421 |
<th class="tax_excluded"></th> |
422 |
<th class="tax_included"></th> |
423 |
<th class="replacementprice"/> |
424 |
<th>[% total_quantity | html %]</th> |
425 |
<th class="tax_excluded">[% total_tax_excluded | $Price %]</th> |
426 |
<th class="tax_included">[% total_tax_included | $Price %]</th> |
427 |
<th> </th> |
428 |
<th>[% total_tax_value | $Price %]</th> |
429 |
<th> </th> |
430 |
</tr> |
431 |
<tr> |
432 |
<th colspan="2">Total + adjustments + shipment cost ([% currency.symbol | html %])</th> |
433 |
<th class="tax_excluded"></th> |
434 |
<th class="tax_included"></th> |
435 |
<th class="replacementprice"/> |
436 |
<th>[% total_quantity | html %]</th> |
437 |
<th class="tax_excluded">[% total_tax_excluded_shipment + total_adj | $Price %]</th> |
438 |
<th class="tax_included">[% total_tax_included_shipment + total_adj | $Price %]</th> |
439 |
<th> </th> |
440 |
<th>[% total_tax_value | $Price %]</th> |
441 |
<th> </th> |
442 |
</tr> |
443 |
</tfoot> |
444 |
</table> |
445 |
[% ELSE %] |
446 |
<div class="dialog message"><p>No orders yet</p> |
447 |
[% IF adjustments && adjustments.count > 0 || shipmentcost && shipmentcost > 0 %] |
448 |
<p>Adjustments plus shipping: [% total_adj + shipmentcost | $Price %]</p> |
449 |
[% END %] |
450 |
</div> |
451 |
[% END %] |
452 |
[% IF ( (Koha.Preference('AcqEnableFiles')) && files ) %] |
453 |
<br /> |
454 |
<h2>Files attached to invoice</h2> |
455 |
<table id="invoice_files_table"> |
456 |
<thead> |
457 |
<tr> |
458 |
<th>Name</th> |
459 |
<th>Type</th> |
460 |
<th>Description</th> |
461 |
<th>Uploaded</th> |
462 |
</tr> |
463 |
</thead> |
464 |
<tbody> |
465 |
[% FOREACH f IN files %] |
466 |
<tr> |
467 |
<td><a href="/cgi-bin/koha/acqui/invoice-files.pl?invoiceid=[% invoiceid | uri %]&op=download&view=1&file_id=[% f.file_id | uri %]">[% f.file_name | html %]</a></td> |
468 |
<td>[% f.file_type | html %]</td> |
469 |
<td>[% f.file_description | html %]</td> |
470 |
<td data-order="[% f.date_uploaded | html %]"> |
471 |
[% f.date_uploaded | $KohaDates %] |
472 |
</td> |
473 |
</tr> |
474 |
[% END %] |
475 |
</tbody> |
476 |
</table> |
477 |
[% END %] |
478 |
</fieldset> |
479 |
</main> |
480 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
481 |
|
513 |
|
482 |
<aside> |
514 |
<aside> |
483 |
<div class="col-sm-2 col-sm-pull-10"> |
515 |
<div class="col-sm-2 col-sm-pull-10"> |
484 |
[% INCLUDE 'acquisitions-menu.inc' %] |
516 |
[% INCLUDE 'acquisitions-menu.inc' %] |
485 |
</div> |
517 |
</div> |
486 |
</aside> |
518 |
</aside> |
487 |
</div> <!-- /.row --> |
519 |
</div> <!-- /.row --> |
488 |
|
520 |
|
489 |
[% MACRO jsinclude BLOCK %] |
521 |
[% MACRO jsinclude BLOCK %] |
490 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
522 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
491 |
- |
|
|