diff --git a/application/views/individualStockdetails.php b/application/views/individualStockdetails.php
index 0a922a6e..7cacd182 100644
--- a/application/views/individualStockdetails.php
+++ b/application/views/individualStockdetails.php
@@ -15,10 +15,16 @@ $setclose='';
if(!empty($field_det))
{
+
+
$seyear=$field_det['year'];
$semonth=$field_det['month'];
$sefdate=$field_det['fdate'];
+
+ if($field_det['tdate'] !='0')
+ {
$setdate=$field_det['tdate'];
+ }
$setopen=$field_det['open'];
$setadd=$field_det['addition'];
$setreduce=$field_det['reduce'];
@@ -30,7 +36,12 @@ if(!empty($field_det))
}
+if($seyear == '-1')
+{
+ $seyear ='';
+}
+//echo $seyear;die();
$material='';
$code='';
@@ -191,7 +202,7 @@ $(function() {
Siddharth Industries - Stock Abstract of ()
- For the Year of
+ For the Year of
month of
@@ -224,31 +235,13 @@ $(function() {
- 'Select Financial Year');
-
- if(!empty($finyear))
- {
- foreach ($finyear as $item):
- $options[$item->financial_year] =$item->financial_year;
-
-
- //$RL[$SID->ReqNo] = $SID->ReqNo.' '.' - '.' '.$SID->DepartmentName;
- endforeach;
- }
-
- echo form_dropdown('Finyear', $options,set_value('financial_year',$seyear),'id="Finyear"' ,'class="form-control select2"' , 'required="true"' );
-
- // $data = array('name' => 'Finyear','value' => set_value('Finyear',$seyear),'id'=>'Finyear', 'class' => 'form-control');
- // echo form_input($data);
-
+ 'Finyear','value' => set_value('Finyear',$seyear),'id'=>'Finyear', 'class' => 'form-control','onkeypress'=>'return false;');
+ echo form_input($data);
+ ?>
-
-
- ?>
@@ -256,21 +249,13 @@ $(function() {
-
+
+ 'month','value' => set_value('month',$monthname),'id'=>'month', 'class' => 'form-control' ,'onkeypress'=>'return false;');
+ echo form_input($data);
+ ?>
+
+
@@ -459,9 +444,16 @@ var month = ;
var year = ;
-$('#month').val(month);
+document.getElementById("Finyear").readOnly = true;
-$('#Finyear').val(year);
+document.getElementById("month").readOnly = true;
+
+document.getElementById("fdate").readOnly = true;
+
+document.getElementById("tdate").readOnly = true;
+//$('#month').val(month);
+
+//$('#Finyear').val(year);
$('#fdate').datepicker('disable');