fix tester bugs

This commit is contained in:
Yan
2017-11-17 15:51:20 +06:30
parent a3eb2e44eb
commit e7cd8deb8e
6 changed files with 14 additions and 10 deletions

View File

@@ -424,9 +424,11 @@
// Selected Items
var sale_items = get_selected_sale_items();
console.log(sale_items.length);
if(sale_items.length == 0){
//swal("Information!", "You have no selected item!");
swal ( "Oops" , "You have no selected item!" , "error" );
swal ( "Oops" , "You have no selected item!" , "error" );
return;
}
for(var i=0;i < sale_items.length;i++){
@@ -434,7 +436,8 @@
discount_items.push(sale_items[i]);
}
else {
swal ("Oops" , "You have no selected item!" , "error" );
swal ("Oops" , "You have no selected item!" , "error" );
return;
}
}