From abd3e8ac3420c13e699679c530308b0f83cd1a27 Mon Sep 17 00:00:00 2001 From: FrancescoUK Date: Sat, 12 Aug 2017 19:22:27 +0100 Subject: [PATCH] Fix receiving issue (#1457) --- application/views/receivings/receiving.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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() }); });