update sale item xls

This commit is contained in:
Aung Myo
2017-12-05 16:28:21 +06:30
parent 7d701edaab
commit 97bb6ae211
5 changed files with 9 additions and 20 deletions

View File

@@ -379,21 +379,21 @@
return false;
});
$('#pay').click(function() {
$('#pay').click(function(event) {
// $('#pay').text("Processing, Please wait!")
$( "#loading_wrapper" ).show();
$( "#loading_wrapper").show();
if($('#balance').text() > 0){
swal ( "Oops" , "Insufficient Amount!" , "error" );
$( "#loading_wrapper" ).hide();
$( "#loading_wrapper").hide();
}else{
$(this).off("click");
var sale_id = $('#sale_id').text();
var item_row = $('.is_card');
if (item_row.length < 1) {
calculate_member_discount(sale_id);
}
// payment
var cash = $('#cash').text();
var credit = $('#credit').text();