stock moule chages
This commit is contained in:
parent
ee394e1e87
commit
8d874ffa75
@ -1083,7 +1083,7 @@ $(function() {
|
|||||||
<table class="table table-bordered" style="border:1px solid #333">
|
<table class="table table-bordered" style="border:1px solid #333">
|
||||||
<div align="right" style="padding-right:10px">
|
<div align="right" style="padding-right:10px">
|
||||||
<div align="right">
|
<div align="right">
|
||||||
<a type="button" class="btn btn-primary btn-md" data-toggle="modal" data-target="#Coproduct">Add Co-Products</a>
|
<a type="button" class="btn btn-primary btn-md" data-toggle="modal" data-target="#Coproduct">Add Re-Clamation Materials</a>
|
||||||
<!-- Add line Item -->
|
<!-- Add line Item -->
|
||||||
<div class="modal fade" id="Coproduct" role="dialog">
|
<div class="modal fade" id="Coproduct" role="dialog">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
|
|||||||
@ -15,10 +15,16 @@ $setclose='';
|
|||||||
|
|
||||||
if(!empty($field_det))
|
if(!empty($field_det))
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
$seyear=$field_det['year'];
|
$seyear=$field_det['year'];
|
||||||
$semonth=$field_det['month'];
|
$semonth=$field_det['month'];
|
||||||
$sefdate=$field_det['fdate'];
|
$sefdate=$field_det['fdate'];
|
||||||
|
|
||||||
|
if($field_det['tdate'] !='0')
|
||||||
|
{
|
||||||
$setdate=$field_det['tdate'];
|
$setdate=$field_det['tdate'];
|
||||||
|
}
|
||||||
$setopen=$field_det['open'];
|
$setopen=$field_det['open'];
|
||||||
$setadd=$field_det['addition'];
|
$setadd=$field_det['addition'];
|
||||||
$setreduce=$field_det['reduce'];
|
$setreduce=$field_det['reduce'];
|
||||||
@ -30,7 +36,12 @@ if(!empty($field_det))
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if($seyear == '-1')
|
||||||
|
{
|
||||||
|
$seyear ='';
|
||||||
|
}
|
||||||
|
|
||||||
|
//echo $seyear;die();
|
||||||
|
|
||||||
$material='';
|
$material='';
|
||||||
$code='';
|
$code='';
|
||||||
@ -191,7 +202,7 @@ $(function() {
|
|||||||
|
|
||||||
<h1>
|
<h1>
|
||||||
<center>Siddharth Industries - Stock Abstract of (<?php echo $material.$product ." - ".$code; ?>)</center>
|
<center>Siddharth Industries - Stock Abstract of (<?php echo $material.$product ." - ".$code; ?>)</center>
|
||||||
<?php if(!empty($seyear)){?><h4> <center>For the Year of <?php echo $seyear;?></center></h4> <?php }?>
|
<?php if(!empty($seyear)){ if($seyear !='-1'){?><h4> <center>For the Year of <?php echo $seyear;?></center></h4> <?php } }?>
|
||||||
|
|
||||||
<?php if(!empty($semonth)){?><h4> <center> month of <?php echo $monthname;?></center></h4> <?php }?>
|
<?php if(!empty($semonth)){?><h4> <center> month of <?php echo $monthname;?></center></h4> <?php }?>
|
||||||
|
|
||||||
@ -224,31 +235,13 @@ $(function() {
|
|||||||
|
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<label>Year</label>
|
<label>Year</label>
|
||||||
<?php
|
|
||||||
|
|
||||||
$options = array("-1"=>'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');
|
<?php
|
||||||
// echo form_input($data);
|
$data = array('name' => 'Finyear','value' => set_value('Finyear',$seyear),'id'=>'Finyear', 'class' => 'form-control','onkeypress'=>'return false;');
|
||||||
|
echo form_input($data);
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -256,21 +249,13 @@ $(function() {
|
|||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<label>Month</label>
|
<label>Month</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<select class="form-control" id="month" name="month">
|
|
||||||
<option value="">Select Month</option>
|
<?php
|
||||||
<option value="1">January</option>
|
$data = array('name' => 'month','value' => set_value('month',$monthname),'id'=>'month', 'class' => 'form-control' ,'onkeypress'=>'return false;');
|
||||||
<option value="2">February</option>
|
echo form_input($data);
|
||||||
<option value="3">March</option>
|
?>
|
||||||
<option value="4">April</option>
|
|
||||||
<option value="5">May</option>
|
|
||||||
<option value="6">June</option>
|
|
||||||
<option value="7">July</option>
|
|
||||||
<option value="8">August</option>
|
|
||||||
<option value="9">September</option>
|
|
||||||
<option value="10">October</option>
|
|
||||||
<option value="11">November</option>
|
|
||||||
<option value="12">December</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -459,9 +444,16 @@ var month = <?php echo json_encode($semonth, JSON_PRETTY_PRINT)?>;
|
|||||||
var year = <?php echo json_encode($seyear, JSON_PRETTY_PRINT)?>;
|
var year = <?php echo json_encode($seyear, JSON_PRETTY_PRINT)?>;
|
||||||
|
|
||||||
|
|
||||||
$('#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');
|
$('#fdate').datepicker('disable');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user