Lines 13-18
Basket [% basket.basketno | html %] › Duplicate existing orders
Link Here
|
13 |
[% Asset.css("css/datatables.css") | $raw %] |
13 |
[% Asset.css("css/datatables.css") | $raw %] |
14 |
<style type="text/css"> |
14 |
<style type="text/css"> |
15 |
.picked_to_duplicate > td { background-color: #bcdb89 !important; } |
15 |
.picked_to_duplicate > td { background-color: #bcdb89 !important; } |
|
|
16 |
span.hint { margin-left: 1em; } |
16 |
</style> |
17 |
</style> |
17 |
</head> |
18 |
</head> |
18 |
|
19 |
|
Lines 179-219
Basket [% basket.basketno | html %] › Duplicate existing orders
Link Here
|
179 |
<p>Duplicate all the orders with the following accounting details:</p> |
180 |
<p>Duplicate all the orders with the following accounting details:</p> |
180 |
<fieldset class="rows" style="float:none;"> |
181 |
<fieldset class="rows" style="float:none;"> |
181 |
<legend>Accounting details</legend> |
182 |
<legend>Accounting details</legend> |
|
|
183 |
<div class="hint" style="margin: 1em 1em 0">Check boxes to duplicate the original values</div> |
182 |
<ol> |
184 |
<ol> |
183 |
<li> |
185 |
<li> |
184 |
<!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, useful when receiveing an order --> |
186 |
<label for="all_currency">Currency:</label> |
185 |
<input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="1" /> |
187 |
<input type="checkbox" name="copy_existing_value" value="currency" title="Copy existing value" /> |
|
|
188 |
<select name="all_currency" id="all_currency"> |
189 |
[% FOREACH currency IN currencies %] |
190 |
[% IF currency.currency == vendor.listprice %] |
191 |
<option value="[% currency.currency | html %]" selected="selected">[% currency.currency | html %]</option> |
192 |
[% ELSIF not currency.archived %] |
193 |
<option value="[% currency.currency | html %]">[% currency.currency | html %]</option> |
194 |
[% END %] |
195 |
[% END %] |
196 |
</select> |
197 |
<span class="hint" id="hint_currency">The original currency value will be copied</span> |
186 |
</li> |
198 |
</li> |
187 |
<li> |
199 |
<li> |
188 |
<li> |
200 |
<label for="all_budget_id">Fund: </label> |
189 |
<label for="all_currency">Currency:</label> |
201 |
<input type="checkbox" name="copy_existing_value" value="budget_id" title="Copy existing value" /> |
190 |
<input type="checkbox" name="copy_existing_value" value="currency" title="Copy existing value" /> |
202 |
<select id="all_budget_id" size="1" name="all_budget_id"> |
191 |
<select name="all_currency" id="all_currency"> |
203 |
<option value="">Select a fund</option> |
192 |
[% FOREACH currency IN currencies %] |
204 |
[% FOREACH budget_loo IN budget_loop %] |
193 |
[% IF currency.currency == vendor.listprice %] |
205 |
[% IF ( budget_loo.b_active ) %]<option value="[% budget_loo.b_id | html %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]">[% budget_loo.b_txt | html %]</option> |
194 |
<option value="[% currency.currency | html %]" selected="selected">[% currency.currency | html %]</option> |
206 |
[% ELSE %]<option value="[% budget_loo.b_id | html %]" class="b_inactive" data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]">[% budget_loo.b_txt | html %] (inactive)</option> |
195 |
[% ELSIF not currency.archived %] |
207 |
[% END %] |
196 |
<option value="[% currency.currency | html %]">[% currency.currency | html %]</option> |
208 |
[% END %] |
197 |
[% END %] |
209 |
</select> |
198 |
[% END %] |
210 |
<label for="all_showallbudgets" style="float:none;width:auto;margin-right:0;"> Show inactive:</label> |
199 |
</select> |
211 |
<input type="checkbox" id="all_showallbudgets" /> |
200 |
<span class="hint" id="hint_currency">The original currency value will be copied</span> |
212 |
<span class="hint" id="hint_budget_id">The original fund will be used</span> |
201 |
</li> |
|
|
202 |
<li> |
203 |
<label for="all_budget_id">Fund: </label> |
204 |
<input type="checkbox" name="copy_existing_value" value="budget_id" title="Copy existing value" /> |
205 |
<select id="all_budget_id" size="1" name="all_budget_id"> |
206 |
<option value="">Select a fund</option> |
207 |
[% FOREACH budget_loo IN budget_loop %] |
208 |
[% IF ( budget_loo.b_active ) %]<option value="[% budget_loo.b_id | html %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]">[% budget_loo.b_txt | html %]</option> |
209 |
[% ELSE %]<option value="[% budget_loo.b_id | html %]" class="b_inactive" data-sort1-authcat="[% budget_loo.b_sort1_authcat | html %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat | html %]">[% budget_loo.b_txt | html %] (inactive)</option> |
210 |
[% END %] |
211 |
[% END %] |
212 |
</select> |
213 |
<label for="all_showallbudgets" style="float:none;width:auto;"> Show inactive:</label> |
214 |
<input type="checkbox" id="all_showallbudgets" /> |
215 |
<span class="hint" id="hint_budget_id">The original fund will be used</span> |
216 |
</li> |
217 |
</li> |
213 |
</li> |
218 |
<li> |
214 |
<li> |
219 |
<label for="all_order_internalnote">Internal note: </label> |
215 |
<label for="all_order_internalnote">Internal note: </label> |
Lines 251-256
Basket [% basket.basketno | html %] › Duplicate existing orders
Link Here
|
251 |
[% END %] |
247 |
[% END %] |
252 |
<input type="hidden" name="op" value="do_duplicate" /> |
248 |
<input type="hidden" name="op" value="do_duplicate" /> |
253 |
<input type="hidden" name="basketno" value="[% basket.basketno | html %]" /> |
249 |
<input type="hidden" name="basketno" value="[% basket.basketno | html %]" /> |
|
|
250 |
<!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, useful when receiveing an order --> |
251 |
<input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="1" /> |
254 |
<button type="submit" class="btn btn-default">Duplicate orders</button> |
252 |
<button type="submit" class="btn btn-default">Duplicate orders</button> |
255 |
<a class="cancel" href="/cgi-bin/koha/acqui/duplicate_orders.pl?basketno=[% basket.basketno %]">Cancel</a> |
253 |
<a class="cancel" href="/cgi-bin/koha/acqui/duplicate_orders.pl?basketno=[% basket.basketno %]">Cancel</a> |
256 |
</fieldset> |
254 |
</fieldset> |
Lines 321-327
Basket [% basket.basketno | html %] › Duplicate existing orders
Link Here
|
321 |
var MSG_NO_ITEM_SELECTED = _("Nothing is selected."); |
319 |
var MSG_NO_ITEM_SELECTED = _("Nothing is selected."); |
322 |
var MSG_NO_FUND_SELECTED = _("No fund selected."); |
320 |
var MSG_NO_FUND_SELECTED = _("No fund selected."); |
323 |
$(document).ready(function() { |
321 |
$(document).ready(function() { |
324 |
$('.hint').hide(); |
322 |
$('span.hint').hide(); |
325 |
var columns_settings;// = [% ColumnsSettings.GetColumns( 'acqui', 'histsearch', 'histsearcht', 'json' ) | $raw %]; |
323 |
var columns_settings;// = [% ColumnsSettings.GetColumns( 'acqui', 'histsearch', 'histsearcht', 'json' ) | $raw %]; |
326 |
KohaTable("table_orders", { |
324 |
KohaTable("table_orders", { |
327 |
"aoColumnDefs": [ |
325 |
"aoColumnDefs": [ |
328 |
- |
|
|