minor changes in material module -vadivel J
This commit is contained in:
parent
3d3e1ff37c
commit
6f271d81a3
@ -206,13 +206,11 @@ class Rawmaterialdetails extends BaseController
|
||||
$currentstock = $stock;
|
||||
}
|
||||
}
|
||||
|
||||
$chked = $this->request->getPost('isactive');
|
||||
$IsActive = ($chked != '') ? '1' : '0';
|
||||
|
||||
$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();
|
||||
$result = $this->rawmaterialdetails_model->addNewRawMaterial($RawMaterial);
|
||||
|
||||
|
||||
@ -131,12 +131,9 @@
|
||||
<input type="text" class="form-control" id="remarks" name="remarks" maxlength="255">
|
||||
</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 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" />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user