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