From b93648a46195d7ecd427488c87f072c6052435c4 Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Mon, 9 Jul 2018 12:40:10 +0530 Subject: [PATCH] material adjustment --- application/controllers/batchcard.php | 1 + application/models/batchcard_model.php | 9 +++++++ application/views/materialadjustment.php | 33 ++++++++++++++++++++++-- 3 files changed, 41 insertions(+), 2 deletions(-) diff --git a/application/controllers/batchcard.php b/application/controllers/batchcard.php index e0e7e996..69f102c3 100755 --- a/application/controllers/batchcard.php +++ b/application/controllers/batchcard.php @@ -1335,6 +1335,7 @@ class batchcard extends BaseController { $data['MaterialCode'] = $this->batchcard_model->getMaterial(); $data['Supplier'] = $this->batchcard_model->getSupplierlist(); + $data['stock_value'] = $this->batchcard_model->getStockValue(); $this->global['pageTitle'] = 'Siddharth : Material Adjustment'; $this->loadViews("materialadjustment", $this->global,$data,NULL); diff --git a/application/models/batchcard_model.php b/application/models/batchcard_model.php index 0feda3cf..566c069d 100755 --- a/application/models/batchcard_model.php +++ b/application/models/batchcard_model.php @@ -26,6 +26,15 @@ class batchcard_model extends CI_Model } + + function getStockValue() + { + $this->db->select('MaterialCode,stock'); + $this->db->from('T_MaterialMaster'); + $supp = $this->db->get(); + return $supp->result(); + } + function saveHourlyBatchInfo($datatostore) { $this->db->insert('T_hourly_batch_info',$datatostore); diff --git a/application/views/materialadjustment.php b/application/views/materialadjustment.php index 957d3a8f..be3a2416 100644 --- a/application/views/materialadjustment.php +++ b/application/views/materialadjustment.php @@ -1,3 +1,7 @@ + +