Lines 393-402
Link Here
|
393 |
</div> |
393 |
</div> |
394 |
</div> |
394 |
</div> |
395 |
<div class="modal-footer"> |
395 |
<div class="modal-footer"> |
|
|
396 |
[% IF multiple_orders.split(',').size == 1 %] |
397 |
<button type="button" class="btn btn-primary modal-save" disabled>Confirm</button> |
398 |
<a class="cancel btn btn-default" href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid | html %]&sticky_filters=1">Cancel</a> |
399 |
[% ELSE %] |
396 |
<button type="button" class="btn btn-defualt modal-prev">Previous order</button> |
400 |
<button type="button" class="btn btn-defualt modal-prev">Previous order</button> |
397 |
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button> |
401 |
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button> |
398 |
<button type="button" class="btn btn-primary modal-save">Save changes</button> |
402 |
<button type="button" class="btn btn-primary modal-save">Save changes</button> |
399 |
<button type="button" class="btn btn-defualt modal-next">Next order</button> |
403 |
<button type="button" class="btn btn-defualt modal-next">Next order</button> |
|
|
404 |
[% END %] |
400 |
</div> |
405 |
</div> |
401 |
</div> |
406 |
</div> |
402 |
</div> |
407 |
</div> |
Lines 873-878
Link Here
|
873 |
$("#quantity").val(qty); |
878 |
$("#quantity").val(qty); |
874 |
var row = $("#order_edit").data('row'); |
879 |
var row = $("#order_edit").data('row'); |
875 |
row.quantity_received = qty; |
880 |
row.quantity_received = qty; |
|
|
881 |
[% IF multiple_orders.split(',').size == 1 %] |
882 |
$('.modal-save').prop('disabled', qty < 1 ); |
883 |
[% END %] |
876 |
}) |
884 |
}) |
877 |
|
885 |
|
878 |
$("#order_edit").on("change", "#tax_rate", function() { |
886 |
$("#order_edit").on("change", "#tax_rate", function() { |
Lines 1317-1323
Link Here
|
1317 |
}); |
1325 |
}); |
1318 |
|
1326 |
|
1319 |
$("#order_edit").on("hide.bs.modal", function() { |
1327 |
$("#order_edit").on("hide.bs.modal", function() { |
|
|
1328 |
[% IF multiple_orders.split(',').size == 1 %] [%# On the single case, dismissing the modal equals to cancelling %] |
1329 |
location.href = "/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid | html %]&sticky_filters=1"; |
1330 |
[% ELSE %] |
1320 |
$("#child_orders_table").DataTable().off('preDraw').destroy(); |
1331 |
$("#child_orders_table").DataTable().off('preDraw').destroy(); |
|
|
1332 |
[% END %] |
1321 |
}); |
1333 |
}); |
1322 |
}); |
1334 |
}); |
1323 |
</script> |
1335 |
</script> |
1324 |
- |
|
|