diff --git a/account/application/controllers/inventory/Purchases.php b/account/application/controllers/inventory/Purchases.php index 2841c0a..5351777 100644 --- a/account/application/controllers/inventory/Purchases.php +++ b/account/application/controllers/inventory/Purchases.php @@ -50,6 +50,7 @@ class Purchases extends CI_Controller 'items_id' => $item, 'qty' => $_POST['quantity'][$a], 'rate' => $_POST['rate'][$a], + 'vat' => $_POST['vat'][$a], 'created_on' => date('Y-m-d H:i:s'), 'created_by' => 'admin', 'remarks' => '', diff --git a/account/application/controllers/inventory/Sales.php b/account/application/controllers/inventory/Sales.php index ee682a6..2540937 100644 --- a/account/application/controllers/inventory/Sales.php +++ b/account/application/controllers/inventory/Sales.php @@ -44,12 +44,13 @@ class Sales extends CI_Controller // print_r($_POST);die; foreach ($_POST['item_id'] as $item) { - if ($item != 0 || $_POST['qty'][$i] != 0 || $_POST['rate'][$i] != 0) : + if ($item != 0 || $_POST['qty'][$i] != 0 || $_POST['rate'][$i] != 0 || $_POST['vat'][$i] != 0) : $TableData = array( 'sales_id' => $sales_id, 'items_id' => $item, 'qty' => $_POST['qty'][$i], 'rate' => $_POST['rate'][$i], + 'vat' => $_POST['vat'][$i], 'created_on' => date('Y-m-d H:i:s'), 'created_by' => 'admin', 'status' => 1, diff --git a/account/application/views/inventory/purchases/create.php b/account/application/views/inventory/purchases/create.php index bbdebe5..7bdd7f7 100644 --- a/account/application/views/inventory/purchases/create.php +++ b/account/application/views/inventory/purchases/create.php @@ -143,6 +143,7 @@ Qty Units Rate + VAT* Amount @@ -154,6 +155,8 @@ + +