UI fixes in IGR ,MRIR,Store details

This commit is contained in:
venbatechnologies@gmail.com 2017-08-09 18:18:47 +05:30
parent 658a4b6bd9
commit 50b0b98042
15 changed files with 226 additions and 166 deletions

0
application/controllers/report.php Normal file → Executable file
View File

View File

@ -1,19 +1 @@
<span style='color: #900'>8,192 KB</span> <span style='color: #090'>335.4859 ms</span><br /><div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>A PHP Error was encountered</h4>
<p>Severity: Warning</p>
<p>Message: explode() expects parameter 2 to be string, array given</p>
<p>Filename: include/style.cls.php</p>
<p>Line Number: 948</p>
</div><div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>A PHP Error was encountered</h4>
<p>Severity: Warning</p>
<p>Message: explode() expects parameter 2 to be string, array given</p>
<p>Filename: include/style.cls.php</p>
<p>Line Number: 948</p>
</div>
<span style='color: #900'>8,192 KB</span> <span style='color: #090'>183.2461 ms</span><br />

View File

@ -81,8 +81,10 @@ if(!empty($MRIRDetails))
}
</style>
<div class="content-wrapper" style="min-height:537px;">
<!-- Content Header (Page header) -->
<section class="content-header">
<section class="content">
<div id ="content"></div>
<section class="content-header">
<h1>
<center>Siddharth Industries - Edit Material Receipt And Inspection Report (MRIR) -<?php echo $MRIRNO ;?></center>
</h1>
@ -90,9 +92,11 @@ if(!empty($MRIRDetails))
<?php
$attributes = array('class' => 'form-label-left MRIR ','name' => 'MRIR','id' => 'MRIR');
echo form_open($this->config->base_url().'/MRIRcontroller/generateMRIR/',$attributes); ?>
</section>
<section class="content"><br/>
<div id ="content"></div>
</section>
<div style="border:2px solid #333">
<!-- Content Header (Page header) -->
<div class="container-fluid">
<div class="row" style="font-size:12px;">
<div class="col-md-12" style="padding:0px;">
@ -138,7 +142,7 @@ if(!empty($MRIRDetails))
</div>
</div>
<div class="col-md-2" style="padding:0px;">
<label for="IGRNO">IGR Number</label>
<label for="IGRNO">IGR No</label>
<div class="form-group">
<?php
$data = array('name' => 'IGRNO','value' => set_value('IGRNO',$IGRNO),'id'=>'IGRNO', 'class' => 'form-control' ,'readonly' => 'true');
@ -172,7 +176,7 @@ if(!empty($MRIRDetails))
<div class="col-md-12" style="padding:0px;">
<div class="col-md-2">
<label for="PONO">PO Number</label>
<label for="PONO">PO No</label>
<div class="form-group">
<?php
$data = array('name' => 'PONO','value' => set_value('PONO',$PONO),'id'=>'PONO', 'class' => 'form-control' ,'readonly' => 'true');
@ -217,7 +221,7 @@ if(!empty($MRIRDetails))
</div>
</div>
<div class="col-md-2">
<label for="VehicleNo">Vehicle Number</label>
<label for="VehicleNo">Vehicle No</label>
<div class="form-group">
<?php
$data = array('name' => 'VehicleNo','value' => set_value('VehicleNo',$VehicleNo),'id'=>'VehicleNo', 'class' => 'form-control', 'readonly' => 'true','align' => 'left');
@ -226,7 +230,7 @@ if(!empty($MRIRDetails))
</div>
</div>
<div class="col-md-2">
<label for="CourierNo">Courier Number</label>
<label for="CourierNo">Courier No</label>
<div class="form-group">
<?php
$data = array('name' => 'CourierNo','value' => set_value('CourierNo',$CourierNo),'id'=>'CourierNo', 'class' => 'form-control' ,'readonly' => 'true');
@ -241,7 +245,7 @@ if(!empty($MRIRDetails))
<table id="mytable" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
<thead style="background-color:#ddf">
<tr>
<th>S.NO</th>
<th>S.No</th>
<th>Item Code</th>
<th>Material Name</th>
<th>UOM</th>
@ -268,7 +272,7 @@ if(!empty($MRIRDetails))
?>
<tr id="<?php echo $SNo?>">
<td><?php echo $SNo?></td>
<td style="text-align: center;"><?php echo $SNo?></td>
<td><?php echo $record->MaterialCode?></td>
<input type="hidden" name="<?php echo 'MaterialCode'.$SNo ?>" id="<?php echo 'MaterialCode'.$SNo ?>" value=" <?php echo $record->MaterialCode ?> "/>
<input type="hidden" name="<?php echo 'Lineitm'.$SNo ?>" id="<?php echo 'Lineitm'.$SNo ?>" value=" <?php echo $record->MRIRItemNo ?> "/>
@ -296,7 +300,7 @@ if(!empty($MRIRDetails))
?>
</tbody>
</table>
<div class="col-md-1 col-md-offset-10">
<div class="col-md-2 col-md-offset-10" align="right" style="padding: 0px;">
<?php if($MRIRStatus == MRIR_CREATED)
{ ?>
<a class="btn btn-primary" type="submit" onclick="updatemrir()">Update MRIR</a>
@ -310,9 +314,11 @@ if(!empty($MRIRDetails))
</div>
</div>
</div>
</div>
</div>
</section>
</div>
</div>
<script>
function Redirect()
@ -336,16 +342,10 @@ function Redirect()
<script>
function validate()
{
var rowcount = $("#RowCount").val();
var Noval = 0;
var isExceed = 0;
var CheckEmpty=0;
var TotalRow =0;
for(m=1;m<=rowcount ; m++){
TotalRow=TotalRow+m;
}
for(k=1;k<=rowcount ; k++)
{
@ -361,9 +361,8 @@ function validate()
var RejectedQuantity = parseFloat( $('#RejectQuantity'+k).val() == '' ? '0.00' : $('#RejectQuantity'+k).val());
if($('#AcceptQuantity'+k).val() != '')
if(AcceptQuantity != '0.00')
{
CheckEmpty=CheckEmpty+k;
if(ActualQty < (AcceptQuantity+RejectedQuantity))
{
@ -371,14 +370,7 @@ function validate()
return false;
}
Noval = 1;
}
else if($('#AcceptQuantity'+k).val() == ''){
$('#AcceptQuantity'+k).focus();
exit();
}
else if(RejectedQuantity != 0)
{
if(ActualQty < (AcceptQuantity+RejectedQuantity))
@ -388,14 +380,9 @@ function validate()
}
// Noval = 1;
}
else{
}
}
//alert(Noval);
if (TotalRow !=CheckEmpty)
if (Noval == 0 )
{
alert('Accepted Quantity/ Rejected Quantity is Empty.Please Enter the value');
@ -414,7 +401,7 @@ function validate()
}
function setaccept(rowId)
{
if($('#AcceptQuantity'+rowId).val()!=''){
var accept = parseFloat($('#AcceptQuantity'+rowId).val());
var tr= document.getElementById(rowId);
var Actulqty = 0.0;
@ -461,20 +448,11 @@ function setaccept(rowId)
$('#status').val('<?php echo MRIR_REJECTED?>');
}
}
}
else{
$('#RejectQuantity'+rowId).val('') ;
$('#QuantityRejected'+rowId).val('') ;
$('#QuantityAccepted'+rowId).val('') ;
$('#AcceptQuantity'+rowId).val('') ;
}
}
function setreject(rowId)
{
var tr= document.getElementById(rowId);
var Actulqty = 0.0;
@ -483,7 +461,7 @@ function setreject(rowId)
Actulqty = parseFloat(cellval[6].innerHTML);
var reject = parseFloat($('#RejectQuantity'+rowId).val());
if(reject > Actulqty)
if(reject > Actulqty )
{
alert("Reject Quantity is exceeding the Actual Quantity.Please change the AcceptQuantity ")
$("#RejectQuantity"+rowId).focus();

View File

@ -20,18 +20,18 @@
<div id="content" > </div>
<thead style="background-color:#ddf">
<tr>
<th>Purchase Order Number</th>
<th>Requisition Number</th>
<th>Requested By</th>
<th>Requested Department</th>
<th>Requested Date</th>
<th>Purchase Order No</th>
<th>Requisition No</th>
<th>Req By</th>
<th>Req Dept</th>
<th>Req Date</th>
<th>Material Code</th>
<th>Material Name</th>
<th>UOM</th>
<th>Requested Qty</th>
<th>Ordered Quantity</th>
<th>Req Qty</th>
<th>Ordered Qty</th>
<th>Accepted Quantity </th>
<th>Accepted Qty </th>
<th>Remarks</th>
<th>Action</th>
</tr>
@ -157,32 +157,15 @@
var id = $('#Remarks'+Index).val();
var StatusCode = $('#status'+Index).val();
var Remarks = $('#Remarks'+Index).val();
var AcceptedQty=cellval[10].innerHTML;
var RequestedQty=cellval[8].innerHTML;
var Remarks = $('#Remarks'+Index).val();
var MaterialCode = cellval[5].innerHTML;
var ReqNo = cellval[1].innerHTML;
if(StatusCode=='ST050' &&(RequestedQty>AcceptedQty))
{
var ReqQuantity=cellval[10].innerHTML;
}
if(StatusCode=='ST050' &&(RequestedQty<AcceptedQty))
{
var ReqQuantity=cellval[8].innerHTML;
}
if (StatusCode!='ST050')
{
var ReqQuantity=0;
}
var Sendvalues = [];
Sendvalues[0] = StatusCode;
Sendvalues[1] = MaterialCode;
Sendvalues[2] = ReqNo;
Sendvalues[3] = Remarks;
Sendvalues[4]= ReqQuantity;
Sendvalues[5]= AcceptedQty;
//alert(MaterialCode);
//alert(StatusCode);
$('#content').loader('show');
@ -190,6 +173,7 @@
data:{id:Sendvalues},
type:"POST",
url:"<?php echo base_url() ?>MRIRcontroller/UpdateReqItemStatus",
success:function(data) {
if(data)
{

0
application/views/Report_POreleased.php Normal file → Executable file
View File

0
application/views/Report_costcenter.php Normal file → Executable file
View File

0
application/views/Report_openorder.php Normal file → Executable file
View File

0
application/views/Report_totalorders.php Normal file → Executable file
View File

View File

@ -49,15 +49,17 @@ Inputmask("A{2,3} 9{1,2} A{1,2} 9{4}").mask($("#VehicleNo"));
padding-bottom: 0px;
}
</style>
<div class="content-wrapper" style="min-height:537px;"">
<section class="content" style="margin: 15px;"><br/>
<div style="border:2px solid #333;">
<div class="content-wrapper" style="min-height:537px;">
<!-- Content Header (Page header) -->
<section class="content-header">
<section class="content-header">
<h1>
<center>Siddharth Industries - Inward Gate Register (IGR) Entry</center>
</h1>
</section>
<section class="content"><br/>
</section>
<div class="row" >
<div id="content" > </div>
<div class="col-md-12">
@ -66,7 +68,7 @@ Inputmask("A{2,3} 9{1,2} A{1,2} 9{4}").mask($("#VehicleNo"));
$attributes = array('class' => 'form-label-left IGR ','name' => 'IGR','id' => 'IGR');
echo form_open($this->config->base_url().'/inwardgateregister/addNewigr/',$attributes); ?>
<label>Select Purchase Order NO </label>
<label>Select Purchase Order No </label>
<?php
$options = array("-1"=>'Purchase Order No');
@ -97,13 +99,13 @@ Inputmask("A{2,3} 9{1,2} A{1,2} 9{4}").mask($("#VehicleNo"));
echo form_input($data);
?>
</div>
</div>
</div>
<div class="col-md-2">
<label>Delivery Challan/Invoice NO</label>
<div class="col-md-2">
<label>Delivery Challan/Invoice No</label>
<?php
$data = array('name' => 'InvoiceNo','value' => set_value('InvoiceNo'),'id'=>'InvoiceNo', 'class' => 'form-control', 'required=>"true"' );
@ -120,7 +122,7 @@ Inputmask("A{2,3} 9{1,2} A{1,2} 9{4}").mask($("#VehicleNo"));
</div>
<div class="col-md-2">
<label>Vechicle NO</label>
<label>Vechicle No</label>
<?php
$data = array('name' => 'VehicleNo','value' => set_value('VehicleNo'), 'id'=>'VehicleNo', 'class' => 'form-control', );
echo form_input($data);
@ -128,7 +130,7 @@ Inputmask("A{2,3} 9{1,2} A{1,2} 9{4}").mask($("#VehicleNo"));
<span pattern="" required="true"></span>
</div>
<div class="col-md-2">
<label>Courier NO</label>
<label>Courier No</label>
<?php
$data = array('name' => 'CourierNo','value' => set_value('CourierNo'),'id'=>'CourierNo', 'class' => 'form-control' );
echo form_input($data);
@ -137,13 +139,13 @@ Inputmask("A{2,3} 9{1,2} A{1,2} 9{4}").mask($("#VehicleNo"));
</div>
</div>
<div class="row">
<div class="row">
<div class="col-md-12">
<table id="Inwardgateregistertable" class="table table-bordered table-hover editabletable IGR_Line" style="background-color:#fff;font-size:12px;">
<thead style="background-color:#ddf">
<tr>
<th>S.NO</th>
<th>S.No</th>
<th>Item Code</th>
<th>Material</th>
<th>UOM</th>
@ -173,7 +175,7 @@ Inputmask("A{2,3} 9{1,2} A{1,2} 9{4}").mask($("#VehicleNo"));
<!--<a class="btn btn-primary" type="submit" id="Save" onclick="Save(0);">Generate IGR</a>-->
<a class="btn btn-primary" id='IGRLink' name='IGRLink' onclick="Save();">Generate IGR</a>
</div>
</div>
</div>
@ -189,8 +191,8 @@ Inputmask("A{2,3} 9{1,2} A{1,2} 9{4}").mask($("#VehicleNo"));
<center><h4>Inward Gate Register Number</h4></center>
</div>
<div class="col-md-12"> <br/>
<center></center>
<center><label style="font-size:40px;" id="finaligr" >Default</label> <center>
<center><label style="font-size:40px;" id="finaligr" >Default</label> </center>
</div>
<div class="modal-footer">
@ -205,16 +207,16 @@ Inputmask("A{2,3} 9{1,2} A{1,2} 9{4}").mask($("#VehicleNo"));
<!-- new modal ended-->
<!-- new modal ended-->
</div>
</div>
</section>
</div>

View File

@ -73,9 +73,14 @@ if(!empty($IGRDetails))
padding-bottom: 0px;
}
</style>
<div class="content-wrapper" style="min-height:537px;">
<!-- Content Header (Page header) -->
<section class="content-header">
<section class="content">
<div id="content"></div>
<section class="content-header">
<h1>
<center>Siddharth Industries - Material Receipt And Inspection Report (MRIR)</center>
</h1>
@ -83,14 +88,17 @@ if(!empty($IGRDetails))
<?php
$attributes = array('class' => 'form-label-left MRIR ','name' => 'MRIR','id' => 'MRIR');
echo form_open($this->config->base_url().'/MRIRcontroller/generateMRIR/',$attributes); ?>
</section>
<section class="content"><br/>
<div id="content"></div>
</section>
<div style="border:2px solid #333">
<!-- Content Header (Page header) -->
<div class="container-fluid">
<div class="row">
<div class="col-md-12 col-sm-12">
<div class="col-md-3 col-sm-3">
<label for="IGRNO">Inward Gate Register Number</label>
<label for="IGRNO">Inward Gate Register No</label>
<div class="form-group">
<?php
$data = array('name' => 'IGRNO','value' => set_value('IGRNO',$IGRNO),'id'=>'IGRNO', 'class' => 'form-control' ,'readonly' => 'true');
@ -112,7 +120,7 @@ if(!empty($IGRDetails))
<div class="col-md-2 col-sm-2">
<label for="PONO">Purchase Order Number</label>
<label for="PONO">Purchase Order No</label>
<div class="form-group"><?php
$data = array('name' => 'PONO','value' => set_value('PONO',$PONO),'id'=>'PONO', 'class' => 'form-control' ,'readonly' => 'true');
echo form_input($data);
@ -149,7 +157,7 @@ if(!empty($IGRDetails))
</div>
</div>
<div class="col-md-2 col-sm-2">
<label for="DeliveryChellanOrInvoiceNo">DC / Inv Number</label>
<label for="DeliveryChellanOrInvoiceNo">DC / Inv No</label>
<div class="form-group">
<?php
@ -167,7 +175,7 @@ if(!empty($IGRDetails))
</div>
</div>
<div class="col-md-2 col-sm-2">
<label for="VehicleNo">Vehicle Number</label>
<label for="VehicleNo">Vehicle No</label>
<div class="form-group">
<?php
$data = array('name' => 'VehicleNo','value' => set_value('VehicleNo',$VehicleNo),'id'=>'VehicleNo', 'class' => 'form-control' ,'readonly' => 'true','align' => 'left');
@ -176,7 +184,7 @@ if(!empty($IGRDetails))
</div>
</div>
<div class="col-md-3 col-sm-3">
<label for="CourierNo">Courier Number</label>
<label for="CourierNo">Courier No</label>
<div class="form-group"><?php
$data = array('name' => 'CourierNo','value' => set_value('CourierNo',$CourierNo),'id'=>'CourierNo', 'class' => 'form-control','readonly' => 'true');
echo form_input($data);
@ -248,8 +256,8 @@ if(!empty($IGRDetails))
?>
</tbody>
</table>
<div id="content"></div>
<div class="col-md-1 col-md-offset-10">
<div class="col-md-2 col-md-offset-10" align="right" style="padding: 0px;">
<a class="btn btn-primary" type="submit" onclick="savemrir()">Generate MRIR</a>
<input type="hidden" name="RowCount" id="RowCount" value="<?php echo $RowCount ?>" />
</div>
@ -257,8 +265,9 @@ if(!empty($IGRDetails))
</div>
</div>
</section>
</div>
</div>
</section>
</div>
<script>

0
application/views/report_pendingreqst.php Normal file → Executable file
View File

View File

@ -2,8 +2,12 @@
.num {
text-align :right;
}
.select2 {
width: 100% ! important;
}
</style>
<div class="content-wrapper">
<?php
$attributes = array('class' => 'form-label-left StoreStock ','name' => 'StoreStock','id' => 'StoreStock','method' => 'post','role' => 'form' );
@ -27,9 +31,9 @@
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<div class="modal-header" style="background-color: #3c8dbc;color:#fff;">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<center><h4>Add Item </h4></center>
<center><h4>Add Stock Item</h4></center>
</div>
<div align="left">
@ -121,7 +125,7 @@
</div>
<div class="modal-footer">
<a class="btn btn-primary font EditItem" onclick="AddStock();" ID="AddItem" ><i class="fa fa-plus" ></i>&nbsp;&nbsp;<span class="bold">Add</span></a>
<a class="btn btn-primary font EditItem" onclick="AddStock();" ID="AddItem" ></i>&nbsp;&nbsp;<span class="bold">Add</span></a>
<a class="btn btn-primary" data-dismiss="modal" onclick="cancel();" value="Cancel">cancel</a>
</div>
</div></div>
@ -133,7 +137,7 @@
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<div class="modal-header" style="background-color: #3c8dbc;color:#fff;">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<center><h4>Edit Stock Item </h4></center>
</div>
@ -141,7 +145,7 @@
<div class="col-md-6">
<label>Material Code</label>
<div >
<div>
<?php
$options = array("0"=>'Material Code');
//print_r( $options);
@ -210,7 +214,7 @@
endforeach;
}
echo form_dropdown('EditStockAvail', $options,set_value('EditStockAvail'),'id="EditStockAvail"' ,'class="form-control"');
echo form_dropdown('EditStockAvail', $options,set_value('EditStockAvail'),'id="EditStockAvail"' ,'class="form-control select2"');
?>
</div>
@ -228,7 +232,7 @@
</div>
<div class="modal-footer">
<a class="btn btn-primary font EditItem" onclick="EditStock();" ID="EditItem" ><i class="fa fa-plus" ></i>&nbsp;&nbsp;<span class="bold">Edit</span></a>
<a class="btn btn-primary font EditItem" onclick="EditStock();" ID="EditItem" > <span class="bold">Edit</span></a>
<a class="btn btn-primary" data-dismiss="modal" onclick="cancel();" value="Cancel">cancel</a>
</div>
</div></div>
@ -239,7 +243,7 @@
<div class="modal fade" role="dialog">
<thead style="background-color:#fff">
<thead style="background-color:#ddf">
<tr>
<th>SNo.</th>
<th>Material Code</th>
@ -266,7 +270,7 @@
<td align="left"><a data-toggle="modal" data-target="#EditItemModel" data-id="<%=index%>" data-userid="<?php echo $index ?>" > <u><?php echo $record->MaterialCode ?></u></a></td>
<td align="left"><?php echo $record->MaterialName ; ?></td>
<td align="left"><?php echo $record->UOM ; ?></td>
<td align="right"><?php echo $record->Quantity; ?>
<td align="right"><?php echo $record->Quantity ; ?>
</td>
@ -302,7 +306,7 @@ $updatedOn = $dt->format('d-m-y');
$(function() {
//Initialize Select2 Elements
$(".select2").select2();
// $(".select2").select2();
$('#MaterialCode').change(function() {
var id = $('#MaterialCode').val();
@ -500,4 +504,12 @@ function validate()
"autoWidth": false
});
});
</script><script type="text/javascript">
$(document).ready(function(){
$("#MaterialCode").select2();
$("#StockAvail").select2();
$("#EditStockAvail").select2();
});
</script>

View File

@ -10,7 +10,7 @@
}
.modal-content
{
width:950px ! important;
width:800px ! important;
}
</style>
<div class="content-wrapper">
@ -27,14 +27,14 @@
<table id="Inwardgateregistertable" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
<thead style="background-color:#ddf">
<tr>
<th>S.NO</th>
<th>S.No</th>
<th>IGR No</th>
<th>PO NO</th>
<th>Supplier name</th>
<th>PO No</th>
<th>Supplier Name</th>
<th>Invoice No</th>
<th>Date of Invoice</th>
<th>Vechicle No</th>
<th>CourierNo</th>
<th>Courier No</th>
</tr>
@ -50,7 +50,7 @@
$index = $index +1;
?>
<tr id="<?php echo $index ?>" >
<td align="right"><?php echo $index?></td>
<td style="text-align: center;"><?php echo $index?></td>
<td><a data-toggle="modal" data-target="#Igrshow" data-id="<%=index%>" data-userid="<?php echo $record->IGRNO ?>" > <u><?php echo $record->IGRNO ?></u></a></td>
<td><?php echo $record->PONO ?></a></td>
<td><?php echo $record->SupplierName ?></td>
@ -82,12 +82,12 @@
<div class="modal-dialog">
<!-- Modal content-->
<form>
<div class="modal-content" style="width:900px;">
<div class="modal-content" style="width:800px;">
<div class="modal-header" style="background-color: #3c8dbc;color:#fff;">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<center><h4>Inward Gate Register Details</h4></center> <!-- IGR number should display here-->
</div>
<div class="col-md-12">
<!--<div class="col-md-12">
<div class="col-md-3">
<label>IGR Number :</label>
</div>
@ -125,11 +125,57 @@
</div>
</div>
</div>-->
<div class="col-md-12">
<div class="col-md-4">
<label>IGR Number </label>
<?php
$data = array('name' => 'IGRNumber','value' => set_value('IGRNumber'),'id'=>'IGRNO1', 'class' => 'form-control', 'required=>"true"' , 'readonly'=>'true' );
echo form_input($data);
?>
</div>
<div class="col-md-4">
<label>Purchase Order Number </label>
<?php
$data = array('name' => 'PurchaseOrderNumber','value' => set_value('PurchaseOrderNumber'),'id'=>'PONo', 'class' => 'form-control', 'required=>"true"' , 'readonly'=>'true' );
echo form_input($data);
?>
</div>
<div class="col-md-4">
<label>Delivery Challan/Invoice NO </label>
<?php
$data = array('name' => 'DeliveryChallan/InvoiceNO','value' => set_value('DeliveryChallan/InvoiceNO'),'id'=>'Invoice_No', 'class' => 'form-control', 'required=>"true"' , 'readonly'=>'true' );
echo form_input($data);
?>
</div>
</div>
<div class="col-md-12" style=" padding-bottom: 10px;">
<div class="col-md-4">
<label>Delivery Challan / Invoice Date </label>
<?php
$data = array('name' => 'DeliveryChallan/InvoiceDate','value' => set_value('DeliveryChallan/InvoiceDate'),'id'=>'Invoice_Date', 'class' => 'form-control', 'required=>"true"' , 'readonly'=>'true' );
echo form_input($data);
?>
</div>
<div class="col-md-4">
<label>Supplier Name </label>
<?php
$data = array('name' => 'SupplierName','value' => set_value('SupplierName'),'id'=>'Supplier', 'class' => 'form-control', 'required=>"true"' , 'readonly'=>'true' );
echo form_input($data);
?>
</div>
</div>
<!-- Table to show the line item of po -->
<div id="content" > </div>
<table class="table table-bordered" id="Inwardgateregistertable1">
<thead>
<table class="table table-bordered" id="Inwardgateregistertable1" style="font-size:12px;">
<thead style="background-color:#ddf">
<tr>
<th>SNo</th>
<th>Item Code</th>

View File

@ -10,7 +10,7 @@
}
.modal-content
{
width:950px ! important;
width: 800px ! important;
}
</style>
<div class="content-wrapper">
@ -27,14 +27,14 @@
<table id="Inwardgateregistertable" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
<thead style="background-color:#ddf">
<tr>
<th>S.NO</th>
<th>S.No</th>
<th>IGR No</th>
<th>PO NO</th>
<th>Supplier name</th>
<th>PO No</th>
<th>Supplier Name</th>
<th>Invoice No</th>
<th>Date of Invoice</th>
<th>Vechicle No</th>
<th>CourierNo</th>
<th>Courier No</th>
<th>Action</th>
</tr>
@ -50,7 +50,7 @@
$index = $index +1;
?>
<tr id="<?php echo $index ?>" >
<td align="right"><?php echo $index?></td>
<td style="text-align: center;"><?php echo $index?></td>
<td><a data-toggle="modal" data-target="#Igrshow" data-id="<%=index%>" data-userid="<?php echo $record->IGRNO ?>" > <u><?php echo $record->IGRNO ?></u></a></td>
<td><?php echo $record->PONO ?></a></td>
<td><?php echo $record->SupplierName ?></td>
@ -83,12 +83,12 @@
<div class="modal-dialog">
<!-- Modal content-->
<form>
<div class="modal-content" style="width:900px;">
<div class="modal-content" style="width:800px;">
<div class="modal-header" style="background-color: #3c8dbc;color:#fff;">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<center><h4>Inward Gate Register Details</h4></center> <!-- IGR number should display here-->
</div>
<div class="col-md-12">
<!--<div class="col-md-12">
<div class="col-md-3">
<label>IGR Number :</label>
</div>
@ -127,11 +127,58 @@
</div>
</div>
</div>-->
<div class="col-md-12">
<div class="col-md-4">
<label>IGR Number </label>
<?php
$data = array('name' => 'IGRNumber','value' => set_value('IGRNumber'),'id'=>'IGRNO1', 'class' => 'form-control', 'required=>"true"' , 'readonly'=>'true' );
echo form_input($data);
?>
</div>
<div class="col-md-4">
<label>Purchase Order Number </label>
<?php
$data = array('name' => 'PurchaseOrderNumber','value' => set_value('PurchaseOrderNumber'),'id'=>'PONo', 'class' => 'form-control', 'required=>"true"' , 'readonly'=>'true' );
echo form_input($data);
?>
</div>
<div class="col-md-4">
<label>Delivery Challan/Invoice NO </label>
<?php
$data = array('name' => 'DeliveryChallan/InvoiceNO','value' => set_value('DeliveryChallan/InvoiceNO'),'id'=>'Invoice_No', 'class' => 'form-control', 'required=>"true"' , 'readonly'=>'true' );
echo form_input($data);
?>
</div>
</div>
<div class="col-md-12" style=" padding-bottom: 10px;">
<div class="col-md-4">
<label>Delivery Challan / Invoice Date </label>
<?php
$data = array('name' => 'DeliveryChallan/InvoiceDate','value' => set_value('DeliveryChallan/InvoiceDate'),'id'=>'Invoice_Date', 'class' => 'form-control', 'required=>"true"' , 'readonly'=>'true' );
echo form_input($data);
?>
</div>
<div class="col-md-4">
<label>Supplier Name </label>
<?php
$data = array('name' => 'SupplierName','value' => set_value('SupplierName'),'id'=>'Supplier', 'class' => 'form-control', 'required=>"true"' , 'readonly'=>'true' );
echo form_input($data);
?>
</div>
</div>
<!-- Table to show the line item of po -->
<div id="content" > </div>
<table class="table table-bordered" id="Inwardgateregistertable1">
<thead>
<table class="table table-bordered" id="Inwardgateregistertable1" style="font-size:12px;">
<thead style="background-color:#ddf">
<tr>
<th>SNo</th>
<th>Item Code</th>

View File

@ -24,16 +24,16 @@
<table id="MRIRtable" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
<thead style="background-color:#ddf">
<tr>
<th>S.NO</th>
<th>MRIR NO</th>
<th>IGR NO</th>
<th>PO NO</th>
<th>S.No</th>
<th>MRIR No</th>
<th>IGR No</th>
<th>PO No</th>
<th>PO Department</th>
<th>PO Raised By</th>
<th>Invoice NO</th>
<th>Invoice No</th>
<th>Invoice Date</th>
<th>Vehicle NO</th>
<th>Courier NO</th>
<th>Vehicle No</th>
<th>Courier No</th>
<th>Updated By</th>
<th>Action</th>
@ -51,7 +51,7 @@
<tr id="<?php echo $Index ?>">
<td align="right"><?php echo $Index ?></td>
<td style="text-align: center;"><?php echo $Index ?></td>
<td><?php echo $d->MRIRNO ?></td>
<td><?php echo $d->IGRNO ?></td>
<td><?php echo $d->PONO ?></td>
@ -68,7 +68,7 @@
<a href="<?php echo base_url().'EditMRIR?MRIRNO='.$d->MRIRNO; ?>"><button style="font-size:12px" id="generated" name="generated">Edit MRIR <i class="fa fa-pencil"></i></button></a>&nbsp;&nbsp;&nbsp;
<a href="<?php echo base_url().'MRIRcontroller/MrirDetailsPrintPdf?MRIRNO='.$d->MRIRNO;?>"<i class="fa fa-print" data-toggle="tooltip" title=" Click here to Print the MRIR details"></i>&nbsp;&nbsp;&nbsp;</a>
<a href="<?php echo base_url().'MRIRcontroller/MrirDetailsPrintPdf?MRIRNO='.$d->MRIRNO;?>"<i class="fa fa-print" data-toggle="tooltip" target="_blank" title=" Click here to Print the MRIR details"></i>&nbsp;&nbsp;&nbsp;</a>
</td>
</tr>
<?php