update receipt repoert

This commit is contained in:
Aung Myo
2017-07-08 10:39:14 +06:30
parent 8985393535
commit 9608dc96a0
2 changed files with 6 additions and 14 deletions

View File

@@ -150,20 +150,12 @@ $(function(){
}
});
//Reset the form to pervious values
$("#branch").val(<%=params[:branch] rescue '-'%>);
$("#waiter").val("<%=params[:waiter] rescue '-'%>");
$("#cashier").val(<%=params[:cashier] rescue '-'%>);
$("#product").val(<%=params[:product] rescue '-'%>);
$("#singer").val(<%=params[:singer] rescue '-'%>);
$("#item").val('<%=params[:item] rescue '-'%>');
$("#guest_role").val('<%=params[:guest_role] rescue '-'%>');
$("#from").val("<%=params[:from] rescue '-'%>");
$("#to").val("<%=params[:to] rescue '-'%>");
$("#sel_period").val(<%=params[:period] rescue '-'%>);
$("#sel_sale_type").val(<%=params[:sale_type] rescue '-'%>);
// $("#from").val("<%=params[:from] rescue '-'%>");
// $("#to").val("<%=params[:to] rescue '-'%>");
// $("#sel_period").val(<%=params[:period] rescue '-'%>);
// $("#sel_sale_type").val(<%=params[:sale_type] rescue '-'%>);
<% if params[:period_type] == 1 || params[:period_type] == "1" %>
$("#rd_period_type_1").attr("checked","checked");

View File

@@ -11,13 +11,13 @@
<hr />
</div>
<div class="container">
<!-- <div class="container">
<div class="row">
<div class="col-md-12 text-right">
<a href="javascript:export_to('<%=reports_receipt_no_index_path%>.xls')" class = "btn btn-default">Export to Excel</a>
</div>
</div>
</div>
</div> -->
<div class="container margin-top-20">
<div class="card row">