update order queue , sale void

This commit is contained in:
Aung Myo
2017-06-15 16:24:00 +06:30
parent f83d11e379
commit f0d3f30d88
8 changed files with 50 additions and 40 deletions

View File

@@ -61,18 +61,16 @@
var reason = $('input[type="radio"]:checked').val();
console.log(reason)
var url = '<% transactions_manual_void_sale_path()%>';
var url = 'manual_void_sale';alert(url)
var sale_id = $(this).find(".customer-id").text();
$.ajax({
type: 'POST',
url: 'sales/manual_void_sale',
url: 'manual_void_sale',
data: {reason: reason, sale_id: sale_id},
success: function(data){
window.location.href = "transactions/sales"
// window.location.href = "transactions/sales"
}
});
});
});