This commit is contained in:
Yan
2017-12-01 18:54:14 +06:30
parent 43fd5f6cb2
commit 6493a648f9
8 changed files with 15 additions and 14 deletions

View File

@@ -99,11 +99,11 @@
<script type="text/javascript">
$(document).ready(function(){
original_value = $('#qty').val();
console.log(original_value);
// Qty update for OQS Edit Controller
$('#qty-update').on('click', function(){
var qty_weight = $("input[name='qty_weight']").val();
console.log(qty_weight);
if(parseInt(qty_weight) > parseInt(original_value)){
swal("Alert!", "Not allowed over quantity", "warning");
return;