display qr code on second screen on qrpay
This commit is contained in:
@@ -800,6 +800,7 @@ $(document).on('click','#mmqr_btn', function(event){
|
||||
let table_id = $("#table_id").text();
|
||||
let booking_id = $("#booking_id").text();
|
||||
let customer_id = $("#customer_id").text();
|
||||
let second_display_lookup = $("#display_type").val();
|
||||
|
||||
|
||||
let params = {
|
||||
@@ -823,7 +824,7 @@ $(document).on('click','#mmqr_btn', function(event){
|
||||
window.location.href = `/foodcourt/${result.sale_id}/qrpay/init#`
|
||||
// `/foodcourt/sale/${result.sale_id}/${cashier_type}/payment`;
|
||||
if ($("#server_mode").val() != "cloud" && second_display_lookup == 2) {
|
||||
customer_display_view(null, "reload");
|
||||
// customer_display_view(null, "reload");
|
||||
}
|
||||
},
|
||||
error: function (XMLHttpRequest, textStatus, errorThrown) {
|
||||
@@ -902,6 +903,7 @@ function create_order(data,paymentMethod = "") {
|
||||
window.location.href = "/origami/room/" + table_id;
|
||||
}
|
||||
}
|
||||
|
||||
if ($("#server_mode").val() != "cloud" && second_display_lookup == 2) {
|
||||
customer_display_view(null, "reload");
|
||||
}
|
||||
|
||||
@@ -50,4 +50,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-6 col-md-6 col-sm-6 h-100">
|
||||
<div id="qrpay_svg" style="background-color: #ddd;">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -148,7 +148,7 @@
|
||||
<%if current_login_employee.role =="cashier"%>
|
||||
<li>
|
||||
<p class="waves-effect waves-block p-l-30 m-b-5">
|
||||
<a href="/origami/second_display" onclick="window.open('/origami/second_display', 'newwindow', 'width=700,height=500'); return false;" style="text-decoration: none;">
|
||||
<a href="/origami/second_display" onclick="window.open('/foodcourt/second_display', 'newwindow', 'width=700,height=500'); return false;" style="text-decoration: none;">
|
||||
<i class="material-icons font-7 logout_icon shopinfo">info</i>
|
||||
<span class="font-15 shopinfo" >Second Display</span>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user