stock module - 19-03-2025

This commit is contained in:
vadivelJ96 2025-03-19 18:29:04 +05:30
parent ff4c28d76f
commit 4afebb851f
3 changed files with 5 additions and 5 deletions

View File

@ -282,7 +282,7 @@ class Rawmaterialdetails extends BaseController
$data['currentstock'] = $this->rawmaterialdetails_model->getMaterialstock($RawMaterialID, $currentdate);
$data['materialType'] = $this->rawmaterialdetails_model->getmaterialType($MaterialType);
$data['materialCategory'] = $this->rawmaterialdetails_model->getmaterialCategory($MaterialCategory);
$data['materialCategoryList']= $this->materialCategories_model->where('is_active',1)->findAll(); // Told by Pavithra
$data['materialCategoryList']= $this->config_model->getMaterialCategoryList(); // Told by Pavithra
$data['UOMList'] = $this->rawmaterialdetails_model->getUOM($UOM);
$data['costcentercode'] = $this->rawmaterialdetails_model->getCostCenterCode();
$data['cfUOM'] = $this->rawmaterialdetails_model->getConversionfactorUOM();

View File

@ -319,7 +319,6 @@ return $result;
public function getMaterialCategoryList(){
$result = $this->db->table('t_configdetails')
->select('ConfigValue')
->where('Config_ID','C023')
->get()
->getResultArray();

View File

@ -174,10 +174,11 @@ if ($total <= $reorder) {
</i> -->
<select class="form-control select2" id="MaterialCategory" name="MaterialCategory" required>
<?php
if (!empty($materialCategory)) {
foreach ($materialCategory as $SID) {
if (!empty($materialCategoryList)) {
foreach ($materialCategoryList as $SID) {
?>
<option value="<?php echo $SID->Key ?>" <?php if ($MaterialCategory === $SID->Key) echo "selected"; ?>><?php echo $SID->ConfigValue ?></option>
<option value="<?php echo $SID['Key'] ?>" <?php if ($MaterialCategory === $SID['Key']) echo "selected"; ?>><?php echo $SID['ConfigValue'] ?></option>
<?php
}
}