Lines 3-8
Link Here
|
3 |
[% USE KohaDates %] |
3 |
[% USE KohaDates %] |
4 |
[% USE Price %] |
4 |
[% USE Price %] |
5 |
[% SET footerjs = 1 %] |
5 |
[% SET footerjs = 1 %] |
|
|
6 |
[% USE AuthorisedValues %] |
7 |
|
6 |
[% INCLUDE 'doc-head-open.inc' %] |
8 |
[% INCLUDE 'doc-head-open.inc' %] |
7 |
<title>Koha › Acquisitions › Invoice</title> |
9 |
<title>Koha › Acquisitions › Invoice</title> |
8 |
[% Asset.css("css/datatables.css") %] |
10 |
[% Asset.css("css/datatables.css") %] |
Lines 82-87
Link Here
|
82 |
[% END %] |
84 |
[% END %] |
83 |
</fieldset> |
85 |
</fieldset> |
84 |
</form> |
86 |
</form> |
|
|
87 |
<form action="/cgi-bin/koha/acqui/invoice.pl" method="post" class="validated"> |
88 |
<input type="hidden" name="invoiceid" value="[% invoiceid %]" /> |
89 |
<table id="invoice_adj_table"> |
90 |
<tr> |
91 |
<th>Id</th> |
92 |
<th>Amount</th> |
93 |
<th>Reason</th> |
94 |
<th>Note</th> |
95 |
<th>Fund</th> |
96 |
<th>Encumber while invoice open</th> |
97 |
<th> </th> |
98 |
</tr> |
99 |
[% IF (adjustments.count > 0) %] |
100 |
<tr><td colspan="7">Current adjustments</td></tr> |
101 |
[% total_adj = 0 %] |
102 |
[% FOREACH adjustment IN adjustments %] |
103 |
[% total_adj = total_adj + adjustment.adjustment %] |
104 |
<tr> |
105 |
<td><input type="hidden" name="adjustment_id" value="[% adjustment.adjustment_id %]" />[% adjustment.adjustment_id %]</td> |
106 |
<td><input type="text" name="adjustment" id="adjustment_[% adjustment.adjustment_id %]" value="[% adjustment.adjustment | $Price %]" /></td> |
107 |
<td> |
108 |
[% reasons = AuthorisedValues.Get("ADJ_REASON") %] |
109 |
[% IF reasons %] |
110 |
<select id="reason_[% adjustment.adjustment_id %]" name="reason"> |
111 |
<option value="">No reason</option> |
112 |
[% FOREACH reason IN reasons %] |
113 |
[% IF ( adjustment.reason == reason.authorised_value ) %] |
114 |
<option selected="selected" value="[% reason.authorised_value %]"> |
115 |
[% ELSE %] |
116 |
<option value="[% reason.authorised_value %]"> |
117 |
[% END %] |
118 |
[% reason.lib %] |
119 |
</option> |
120 |
[% END %] |
121 |
</select> |
122 |
[% ELSE %] |
123 |
<p title="Define values in authorised value category ADJ_REASON to enable">None</p> |
124 |
<input type="hidden" name="reason" id="reason_[% adjustment.adjustment_id %]" value="" /> |
125 |
[% END %] |
126 |
</td> |
127 |
<td><input type="text" name="note" id="note_new" value="[% adjustment.note %]"/></td> |
128 |
<td> |
129 |
<select id="budget_id_[% adjustment.adjustment_id %]" name="budget_id"> |
130 |
<option value="">No fund</option> |
131 |
[% FOREACH budget IN budgets_loop %] |
132 |
[% IF ( budget.budget_id == adjustment.budget_id ) %] |
133 |
<option selected="selected" value="[% budget.budget_id %]"> |
134 |
[% ELSE %] |
135 |
<option value="[% budget.budget_id %]"> |
136 |
[% END %] |
137 |
[% budget.budget_name %] |
138 |
</option> |
139 |
[% END %] |
140 |
</select> |
141 |
</td> |
142 |
[% IF adjustment.encumber_open %] |
143 |
<td> |
144 |
<input type="checkbox" name="encumber_open" id="encumber_[% adjustment.adjustment_id %]" value="[% adjustment.adjustment_id %]" checked/> |
145 |
</td> |
146 |
[% ELSE %] |
147 |
<td> |
148 |
<input type="checkbox" name="encumber_open" id="encumber_[% adjustment.adjustment_id %]" value="[% adjustment.adjustment_id %]" /> |
149 |
</td> |
150 |
[% END %] |
151 |
<td> |
152 |
<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> |
153 |
</td> |
154 |
</tr> |
155 |
[% END %] |
156 |
[% END %] |
157 |
<tr><td colspan="7">Add an adjustment</td></tr> |
158 |
<td><input type="hidden" name="adjustment_id" value="new" />New</td> |
159 |
<td><input type="text" name="adjustment" id="adjustment_new]" /></td> |
160 |
<td> |
161 |
[% reasons = AuthorisedValues.Get("ADJ_REASON") %] |
162 |
[% IF reasons %] |
163 |
<select id="reason_[% adjustment.adjustment_id %]" name="reason"> |
164 |
<option value="">No reason</option> |
165 |
[% FOREACH reason IN reasons %] |
166 |
<option value="[% reason.authorised_value %]"> |
167 |
[% reason.lib %] |
168 |
</option> |
169 |
[% END %] |
170 |
</select> |
171 |
[% ELSE %] |
172 |
<p title="Define values in authorised value category ADJ_REASON to enable">None</p> |
173 |
[% END %] |
174 |
</td> |
175 |
<td><input type="text" name="note" id="note_new" value=""/></td> |
176 |
<td> |
177 |
<select id="budget_id_[% adjustment.adjustment_id %]" name="budget_id"> |
178 |
<option selected="selected" value="">No fund</option> |
179 |
[% FOREACH budget IN budgets_loop %] |
180 |
<option value="[% budget.budget_id %]"> |
181 |
[% budget.budget_name %] |
182 |
</option> |
183 |
[% END %] |
184 |
</select> |
185 |
</td> |
186 |
<td><input type="checkbox" name="encumber_open" id="encumber_new" value="1" /></td> |
187 |
<td><input type="hidden" name="delete" value=""></td> |
188 |
</tr> |
189 |
</table> |
190 |
<input type="hidden" name="op" value="mod_adj" /> |
191 |
<input type="submit" value="Update adjustments" /> |
192 |
</form> |
85 |
<p> |
193 |
<p> |
86 |
<a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]">Go to receipt page</a> |
194 |
<a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]">Go to receipt page</a> |
87 |
[% IF Koha.Preference('AcqEnableFiles') %]| <a href="/cgi-bin/koha/acqui/invoice-files.pl?invoiceid=[% invoiceid %]">Manage invoice files</a>[% END %] |
195 |
[% IF Koha.Preference('AcqEnableFiles') %]| <a href="/cgi-bin/koha/acqui/invoice-files.pl?invoiceid=[% invoiceid %]">Manage invoice files</a>[% END %] |
Lines 164-174
Link Here
|
164 |
<th> </th> |
272 |
<th> </th> |
165 |
</tr> |
273 |
</tr> |
166 |
<tr> |
274 |
<tr> |
167 |
<th colspan="2">Total + Shipment cost ([% currency.symbol %])</th> |
275 |
<th colspan="2">Total + Adjustments + Shipment cost ([% currency.symbol %])</th> |
168 |
<th class="tax_excluded"></th> |
276 |
<th class="tax_excluded"></th> |
169 |
<th class="tax_included"></th> |
277 |
<th class="tax_included"></th> |
170 |
<th>[% total_quantity %]</th> |
278 |
<th>[% total_quantity %]</th> |
171 |
<th class="tax_excluded">[% total_tax_excluded_shipment | $Price %]</th> |
279 |
<th class="tax_excluded">[% total_tax_excluded_shipment + total_adj | $Price %]</th> |
172 |
<th class="tax_included">[% total_tax_included_shipment | $Price %]</th> |
280 |
<th class="tax_included">[% total_tax_included_shipment | $Price %]</th> |
173 |
<th> </th> |
281 |
<th> </th> |
174 |
<th>[% total_tax_value | $Price %]</th> |
282 |
<th>[% total_tax_value | $Price %]</th> |
Lines 177-183
Link Here
|
177 |
</tfoot> |
285 |
</tfoot> |
178 |
</table> |
286 |
</table> |
179 |
[% ELSE %] |
287 |
[% ELSE %] |
180 |
<div class="dialog message"><p>No orders yet</p></div> |
288 |
<div class="dialog message"><p>No orders yet</p> |
|
|
289 |
[% IF adjustments.count > 0 || shipmentcost > 0 %] |
290 |
<p>Adjustments plus shipping:[% total_adj + shipmentcost | $Price %]</p> |
291 |
[% END %] |
292 |
</div> |
181 |
[% END %] |
293 |
[% END %] |
182 |
[% IF ( (Koha.Preference('AcqEnableFiles')) && files ) %] |
294 |
[% IF ( (Koha.Preference('AcqEnableFiles')) && files ) %] |
183 |
<br /> |
295 |
<br /> |