diff --git a/application/views/receivings/receiving.php b/application/views/receivings/receiving.php index 8e037851c..fd9395bce 100644 --- a/application/views/receivings/receiving.php +++ b/application/views/receivings/receiving.php @@ -518,8 +518,7 @@ $(document).ready(function() } $('[name="price"],[name="quantity"],[name="discount"],[name="description"],[name="serialnumber"]').change(function() { - var index = $(this).parents("tr").index() - 1; - $("#cart_" + index).submit(); + $(this).parents("tr").prevAll("form:first").submit() }); });