diff --git a/application/models/rawmaterialdetails_model.php b/application/models/rawmaterialdetails_model.php index 25485397..9ee47436 100755 --- a/application/models/rawmaterialdetails_model.php +++ b/application/models/rawmaterialdetails_model.php @@ -14,6 +14,7 @@ class rawmaterialdetails_model extends CI_Model { $this->db->select('*'); $this->db->from('T_MaterialMaster'); + $this->db->where('IsActive',1 ); $query = $this->db->get(); $result = $query->result(); return $result; diff --git a/application/views/editOldRawmaterial.php b/application/views/editOldRawmaterial.php index f372e915..6b24be94 100755 --- a/application/views/editOldRawmaterial.php +++ b/application/views/editOldRawmaterial.php @@ -74,10 +74,7 @@ if(!empty($materialDetails))
- - +
@@ -104,22 +101,6 @@ if(!empty($materialDetails))
-
@@ -129,47 +110,29 @@ if(!empty($materialDetails)) *
- - - +
* +
@@ -182,69 +145,38 @@ if(!empty($materialDetails))
- - +
+
- -
+ +
+
+
- +
+
@@ -277,35 +209,7 @@ if(!empty($materialDetails))
-
- load->helper('form'); - $error = $this->session->flashdata('error'); - if($error) - { - ?> -
- - session->flashdata('error'); ?> -
- - session->flashdata('success'); - if($success) - { - ?> -
- - session->flashdata('success'); ?> -
- - -
-
- ', '
'); ?> -
-
-
+ @@ -314,55 +218,81 @@ if(!empty($materialDetails))