Merge branch 'foodcourt' of gitlab.com:code2lab/SXRestaurant into foodcourt
This commit is contained in:
@@ -193,12 +193,18 @@
|
|||||||
<%= number_with_precision(@cash, precision: precision.to_i ) rescue number_with_precision(0, precision: precision.to_i ) %>
|
<%= number_with_precision(@cash, precision: precision.to_i ) rescue number_with_precision(0, precision: precision.to_i ) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<%else%>
|
||||||
|
<div class="col-md-4" id="cash" style="display:none;">
|
||||||
|
<%= number_with_precision(@cash, precision: precision.to_i ) rescue number_with_precision(0, precision: precision.to_i ) %>
|
||||||
|
</div>
|
||||||
<%end%>
|
<%end%>
|
||||||
<%if @credit_exist%>
|
<%if @credit_exist%>
|
||||||
<div class="row payment credit-color p-l-5 p-r-5" id="credit_payment" >
|
<div class="row payment credit-color p-l-5 p-r-5" id="credit_payment" >
|
||||||
<div class="col-md-8">Credit</div>
|
<div class="col-md-8">Credit</div>
|
||||||
<div class="col-md-4" id="credit"><%= number_with_precision(@credit, precision: precision.to_i ) rescue number_with_precision(0, precision: precision.to_i ) %></div>
|
<div class="col-md-4" id="credit"><%= number_with_precision(@credit, precision: precision.to_i ) rescue number_with_precision(0, precision: precision.to_i ) %></div>
|
||||||
</div>
|
</div>
|
||||||
|
<%else%>
|
||||||
|
<div class="col-md-4" id="credit" style="display:none;"><%= number_with_precision(@credit, precision: precision.to_i ) rescue number_with_precision(0, precision: precision.to_i ) %></div>
|
||||||
<%end%>
|
<%end%>
|
||||||
<div class="row payment other-payment-color btn_paymal_member">
|
<div class="row payment other-payment-color btn_paymal_member">
|
||||||
<div class="col-md-8">Other Payments</div>
|
<div class="col-md-8">Other Payments</div>
|
||||||
@@ -907,6 +913,7 @@ $(document).ready(function(){
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
<% if @cash_exist%>
|
||||||
$(document).on('click', '.cashier_number', function(event){
|
$(document).on('click', '.cashier_number', function(event){
|
||||||
if(event.handled !== true) {
|
if(event.handled !== true) {
|
||||||
var original_value;
|
var original_value;
|
||||||
@@ -976,7 +983,7 @@ $(document).ready(function(){
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
<%end%>
|
||||||
|
|
||||||
function update_balance(){
|
function update_balance(){
|
||||||
var cash = $('#cash').text();
|
var cash = $('#cash').text();
|
||||||
|
|||||||
Reference in New Issue
Block a user