stock module - 19-03-2025
This commit is contained in:
parent
ff4c28d76f
commit
4afebb851f
@ -282,7 +282,7 @@ class Rawmaterialdetails extends BaseController
|
|||||||
$data['currentstock'] = $this->rawmaterialdetails_model->getMaterialstock($RawMaterialID, $currentdate);
|
$data['currentstock'] = $this->rawmaterialdetails_model->getMaterialstock($RawMaterialID, $currentdate);
|
||||||
$data['materialType'] = $this->rawmaterialdetails_model->getmaterialType($MaterialType);
|
$data['materialType'] = $this->rawmaterialdetails_model->getmaterialType($MaterialType);
|
||||||
$data['materialCategory'] = $this->rawmaterialdetails_model->getmaterialCategory($MaterialCategory);
|
$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['UOMList'] = $this->rawmaterialdetails_model->getUOM($UOM);
|
||||||
$data['costcentercode'] = $this->rawmaterialdetails_model->getCostCenterCode();
|
$data['costcentercode'] = $this->rawmaterialdetails_model->getCostCenterCode();
|
||||||
$data['cfUOM'] = $this->rawmaterialdetails_model->getConversionfactorUOM();
|
$data['cfUOM'] = $this->rawmaterialdetails_model->getConversionfactorUOM();
|
||||||
|
|||||||
@ -319,7 +319,6 @@ return $result;
|
|||||||
public function getMaterialCategoryList(){
|
public function getMaterialCategoryList(){
|
||||||
|
|
||||||
$result = $this->db->table('t_configdetails')
|
$result = $this->db->table('t_configdetails')
|
||||||
->select('ConfigValue')
|
|
||||||
->where('Config_ID','C023')
|
->where('Config_ID','C023')
|
||||||
->get()
|
->get()
|
||||||
->getResultArray();
|
->getResultArray();
|
||||||
|
|||||||
@ -174,10 +174,11 @@ if ($total <= $reorder) {
|
|||||||
</i> -->
|
</i> -->
|
||||||
<select class="form-control select2" id="MaterialCategory" name="MaterialCategory" required>
|
<select class="form-control select2" id="MaterialCategory" name="MaterialCategory" required>
|
||||||
<?php
|
<?php
|
||||||
if (!empty($materialCategory)) {
|
if (!empty($materialCategoryList)) {
|
||||||
foreach ($materialCategory as $SID) {
|
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
|
<?php
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user