From 58dc5e30624c92ca6fcb3f61a156a3e1260f6967 Mon Sep 17 00:00:00 2001 From: jekkos-t520 Date: Fri, 19 Dec 2014 08:47:40 +0100 Subject: [PATCH] Newly created item in sales module is auto added to sale again --- application/views/sales/register.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/views/sales/register.php b/application/views/sales/register.php index a514a7b13..1a32ee2b8 100644 --- a/application/views/sales/register.php +++ b/application/views/sales/register.php @@ -531,6 +531,7 @@ function post_item_form_submit(response) { var $stock_location = $("select[name='stock_location']").val(); $("#item_location").val($stock_location); + $("#item").val(response.item_id); $("#add_item_form").submit(); } }