minor changes in material module -vadivel J

This commit is contained in:
vadivel J 2024-10-08 08:45:07 +05:30
parent 3d3e1ff37c
commit 6f271d81a3
2 changed files with 5 additions and 10 deletions

View File

@ -207,12 +207,10 @@ class Rawmaterialdetails extends BaseController
} }
} }
$chked = $this->request->getPost('isactive');
$IsActive = ($chked != '') ? '1' : '0';
$HSNcode = ($HSN == '') ? null : $HSN; $HSNcode = ($HSN == '') ? null : $HSN;
$RawMaterial = array('MaterialName' => $MaterialName, 'MaterialType' => $MaterialType, 'UOM' => $UOM, 'Category' => $MaterialCategory, 'CreatedBy' => $CreatedBy, 'IsActive' => $IsActive, 'Remarks' => $Remarks, 'HSNCODE' => $HSNcode, 'stock' => $stock, 'stockdate' => $stockdate, 'reorder' => $reorder, 'Current_stock' => $currentstock); $RawMaterial = array('MaterialName' => $MaterialName, 'MaterialType' => $MaterialType, 'UOM' => $UOM, 'Category' => $MaterialCategory, 'CreatedBy' => $CreatedBy, 'Remarks' => $Remarks, 'HSNCODE' => $HSNcode, 'stock' => $stock, 'stockdate' => $stockdate, 'reorder' => $reorder, 'Current_stock' => $currentstock);
//print_r($RawMaterial);die(); //print_r($RawMaterial);die();
$result = $this->rawmaterialdetails_model->addNewRawMaterial($RawMaterial); $result = $this->rawmaterialdetails_model->addNewRawMaterial($RawMaterial);

View File

@ -131,12 +131,9 @@
<input type="text" class="form-control" id="remarks" name="remarks" maxlength="255"> <input type="text" class="form-control" id="remarks" name="remarks" maxlength="255">
</div> </div>
</div> </div>
<div class="form-row" style="margin-top:20px">
<div class="col-md-3">
<input type="checkbox" id="isactive" name="isactive">
<label for="IsActive">IsActive</label>
</div>
</div>
</div> </div>
<div class="col-md-12 text-right"> <div class="col-md-12 text-right">
<input type="reset" id="reset" class="btn btn-reset" style="background-color: red;color: white; margin-right: 15px;width: 80px;" value="Reset" /> <input type="reset" id="reset" class="btn btn-reset" style="background-color: red;color: white; margin-right: 15px;width: 80px;" value="Reset" />