- no tax after edit, discount, other charges
- redirect after discount, edit and other changes
This commit is contained in:
DevTeam
2025-07-04 16:34:00 +06:30
parent f003900fee
commit 04e03896b9
5 changed files with 45 additions and 79 deletions

View File

@@ -557,7 +557,7 @@ $(document).ready(function(){
var sale_id = $('#save_order_id').attr('data-order');
}
if (sale_id != "") {
window.location.href = '/foodcourt/' + sale_id +"/"+cashier_type+ '/other_charges'
window.location.href = '/foodcourt/' + sale_id +"/"+cashier_type+ '/other_charges?payment_type=qr'
}
else {
swal ( "Oops" , "Please select an table!" , "warning" );
@@ -575,7 +575,7 @@ $(document).ready(function(){
}
if (sale_id != "") {
window.location.href = '/foodcourt/' + sale_id + "/"+cashier_type+'/discount'
window.location.href = '/foodcourt/' + sale_id + "/"+cashier_type+'/discount?payment_type=qr'
}
else {
swal ( "Oops" , "Please select an table!" , "warning" );
@@ -591,9 +591,9 @@ $(document).ready(function(){
var sale_id = $('#sale_id').text();
if ($(this).attr('active')=== "true") {
if (dining_id) {
window.location.href = '/foodcourt/table/' + dining_id + "/sale/" + sale_id + "/"+cashier_type+"/edit";
window.location.href = '/foodcourt/table/' + dining_id + "/sale/" + sale_id + "/"+cashier_type+"/edit?payment_type=qr";
}else{
window.location.href = "/foodcourt/table/sale/" + sale_id + "/"+cashier_type+"/edit";
window.location.href = "/foodcourt/table/sale/" + sale_id + "/"+cashier_type+"/edit?payment_type=qr";
}
}else{
@@ -1010,7 +1010,7 @@ $(document).ready(function(){
if (type == "edit") {
var dining_id = $('#dining').text();
var sale_id = $('#sale_id').text();
window.location.href = "/foodcourt/table/sale/" + sale_id + "/"+cashier_type+"/edit";
window.location.href = "/foodcourt/table/sale/" + sale_id + "/"+cashier_type+"/edit?payment_type=qr";
}else if(type == "void"){
$('#AccessCodeModal').modal('hide');
$('#voidModal').modal('show');