menu alt name

This commit is contained in:
Nweni
2017-07-02 14:36:57 +06:30
parent 58f2ff28e5
commit f06e526ea3
5 changed files with 165 additions and 158 deletions

View File

@@ -32,7 +32,7 @@
<script>
$('#close_cashier').on('click',function(){
var amount = $('#closing_balance_amount').val();
var shift_id = "<%= @shift.id %>"
var shift_id = "<%= @shift.id rescue ""%>"
$.ajax({type: "POST",
url: "<%= origami_close_shift_path %>",
data: "closing_balance="+ amount + "&shift_id="+ shift_id,