update oqs and addorder qty 0

This commit is contained in:
Aung Myo
2018-05-11 14:06:23 +06:30
parent ae5ced251b
commit d141947eb0
2 changed files with 14 additions and 6 deletions

View File

@@ -1001,8 +1001,13 @@ $(function() {
});
//click save buttom after change qty
$('#sx_itemModal').on('click','#save', function(){
summary_items_filter();
calculate_sub_total();
if ($('#modal-qty').val()>0) {
summary_items_filter();
calculate_sub_total();
}else{
swal("Opps", "Please enter number for qty ","warning");
}
});
//calculate subtotal