no print for cloud

This commit is contained in:
Yan
2017-12-12 18:51:13 +06:30
parent dcb3a37a81
commit c660097d28
14 changed files with 242 additions and 254 deletions

View File

@@ -201,7 +201,7 @@
<% if @sale.sale_status != 'void' %>
<button type="button" id="void" class="btn bg-danger btn-block">VOID</button>
<% end %>
<button type="button" id="re-print" class="btn bg-blue btn-block">Re.Print</button>
<!-- <button type="button" id="re-print" class="btn bg-blue btn-block">Re.Print</button> -->
</div>
</div>
</div>
@@ -271,10 +271,10 @@ $('#back').on('click',function(){
});
});
$('#re-print').click(function() {
var sale_id = $('#sale_id').val();
window.location.href = '/origami/'+ sale_id + "/reprint"
// $('#re-print').click(function() {
// var sale_id = $('#sale_id').val();
// window.location.href = '/origami/'+ sale_id + "/reprint"
return false;
});
// return false;
// });
</script>