This commit is contained in:
venbatechnologies@gmail.com 2017-07-31 15:25:04 +05:30
parent 1f7c1ee230
commit b7664772be
8 changed files with 467 additions and 29 deletions

View File

@ -95,23 +95,24 @@ function ViewDistributionList()
function view_mrir_Billing()
{
$this->db->distinct();
$this->db->select('TMM.MRIRNO,TMM.PONO,TMM.IGRNO,IGRM.DeliveryChellanOrInvoiceNo,IGRM.DeliveryChellanDate,IGRM.VehicleNo,IGRM.CourierNo,TMD.StoreInchargeID,TMD.QualityInchargeID,TMD.PlantInchargeID,TMD.UpdateBY,POM.PODate,POM.POType,POM.ReleasedBy,ED.FirstName as UpdatedbyName,ED1.FirstName as ReleasedbyName,MM.MaterialCode,MM.MaterialName,MM.UOM,POL.Quantity,IGRD.QuantityAsPerInvoice,TMD.ActualQuantityReceived,TMD.QuantityAccepted,TMD.QuantityRejected,ST.StatusName,TMD.Remarks');
$this->db->select('TMM.MRIRNO,TMM.PONO,TMM.IGRNO,IGRM.DeliveryChellanOrInvoiceNo,IGRM.DeliveryChellanDate,IGRM.VehicleNo,IGRM.CourierNo,TMD.StoreInchargeID,TMD.QualityInchargeID,TMD.PlantInchargeID,TMD.UpdateBY,POM.PODate,POM.POType,POM.ReleasedBy,ED.FirstName as UpdatedbyName,ED1.FirstName as ReleasedbyName,MM.MaterialCode,MM.MaterialName,MM.UOM,POL.Quantity,IGRD.QuantityAsPerInvoice,TMD.ActualQuantityReceived,TMD.QuantityAccepted,TMD.QuantityRejected,ST.StatusName,TMD.Remarks,AdvanceAmount');
$this->db->from ('T_MRIR_Master TMM');
$this->db->join ('T_MRIR_Details TMD','TMM.MRIRNO=TMD.MRIRNO');
$this->db->join ('T_IGR_Master IGRM','TMM.IGRNO=IGRM.IGRNO');
$this->db->join ('T_IGR_Details IGRD','IGRM.IGRNO=IGRD.IGRNO');
$this->db->join ('T_PurchaseOrder_Master POM','POM.PONO=IGRM.PONO');
$this->db->join ('T_PurchaseOrder_LineItem POL','POL.PONO=POM.PONO');
$this->db->join ('T_PurchaseOrder_LineItem POL','POL.PONO=POM.PONO');
$this->db->join('T_PurchaseOrder_AdvanceRequest PUADV','POM.PONO=PUADV.PONO','left');
$this->db->join ('tbl_users user','user.userid=TMD.UpdateBY');
$this->db->join ('T_Employee_Details ED','ED.EmpID = user.EmpID');
$this->db->join ('tbl_users user1','user1.userid = POM.ReleasedBy');
$this->db->join ('T_Employee_Details ED1','ED1.EmpID = user1.EmpID');
$this->db->join ('T_MaterialMaster MM','MM.MaterialCode = IGRD.MaterialCode and POL.MaterialCode = MM.MaterialCode');
$this->db->join ('T_Status ST','ST.StatusCode = TMD.MRIRStatus');
$this->db->where('TMM.MRIRStatus',MRIR_APPROVED);
$this->db->join ('T_MaterialMaster MM','MM.MaterialCode = IGRD.MaterialCode and POL.MaterialCode = MM.MaterialCode');
$this->db->join ('T_Status ST','ST.StatusCode = TMD.MRIRStatus');
$this->db->where('TMM.MRIRStatus',MRIR_APPROVED);
$this->db->order_by('TMM.MRIRNO','asc');
$query = $this->db->get();
// print_r($this->db->last_query());
//print_r($this->db->last_query());
return $query->result();
}

View File

@ -43,10 +43,11 @@ class purchaseorder_model extends CI_Model
function GetServicePOListforBilling()
{
$subQuery ='select POMast.PONO,supp.SupplierName,PODate,POMast.PaymentTerms,POMast.ServiceWorkStatusRemarks,
LineItem.*,mat.MaterialName,mat.UOM,emp.FirstName,emp.LastName,Tax.TotalValue,Cost.CostCenterName
LineItem.*,mat.MaterialName,mat.UOM,emp.FirstName,emp.LastName,Tax.TotalValue,Cost.CostCenterName,AdvanceAmount
,Dept.DepartmentName from T_PurchaseOrder_Master POMast
join T_PurchaseOrder_LineItem LineItem on LineItem.PONO = POMast.PONO
join T_Service_Tax Tax on Tax.LineItemNo = LineItem.LineItemNo
left join T_PurchaseOrder_AdvanceRequest PUADV on POMast.PONO=PUADV.PONO
join T_SupplierDetailsN supp on supp.SupplierID = POMast.SupplierID
join T_MaterialMaster mat on mat.MaterialCode = LineItem.MaterialCode
join T_Status Stat on Stat.StatusCode = POMast.Status

View File

@ -0,0 +1,356 @@
<?php
$PONO = '';
$postatus ='';
$CompanyAddress = '';
$CompanyName = '';
$SuplierName = '';
$SuplierAddress = '';
$DeliveryAddress = '';
$Podt = '';
$DeliveryDate ='';
$postatus='';
$ServiceDescription = '';
$PaymentTerms = '';
$PaymentDays='';
$PayableAT='';
$DeliverySchedule='';
$Import_DispatchDetails='';
$Placeoforigin='';
$ExchangeRate='';
$CapitalRange='';
$AdvanceAmount=0.00;
$color='';
if(!empty($CompanyDetails))
{
foreach ($CompanyDetails as $CO)
{
$CompanyName = $CO->CompanyName;
$CompanyAddress = $CO->Address;
}
}
if(!empty($POItem))
{
foreach ($POItem as $PO)
{
$PONO = $PO->PONO;
$postatus= $PO->Status;
$SuplierName = $PO->SupplierName;
$SuplierAddress = $PO->Address;
$DeliveryAddress = $PO->DeliveryAddress;
$postatus= $PO->Status;
$dt = new DateTime($PO->PODate, new DateTimeZone('Asia/Kolkata'));
$Podt = $dt->format('d-m-Y');
if($PO->DeliveryOption=='1')
{
$DeliveryDate = '';
$DeliverySchedule = $PO->DeliverySchedule;
$Import_DispatchDetails='';
}
else
{
$dtDe = new DateTime($PO->DeliveryDate, new DateTimeZone('Asia/Kolkata'));
$DeliveryDate = $dtDe->format('d-m-Y');
$DeliverySchedule = '';
$Import_DispatchDetails=$PO->Import_DispatchDetails;
}
$ServiceDescription =$PO->ServiceDescription;
$PaymentTerms = $PO->PaymentTerms;
$Placeoforigin=$PO->Import_PlaceofOrgin;
$ExchangeRate = $PO->ExchangeRate;
$CapitalRange = $PO->CapitalRange;
$AdvanceAmount=$PO->AdvanceAmount;
}
}
if($AdvanceAmount>0)
{
$color="green";
}
else
{
$color="black";
}
$currencyName='INR';
$currencyCode ='';
if(!empty($CurrencySymbol))
{
foreach ($CurrencySymbol as $Curr)
{
$currencyCode = $Curr->FontCode2000;
//$currencyName = $currencyName;
}
}
?>
<style>
@page { margin: 280px 50px 30px 50px; }
.header { position: fixed; left: 0px; top: -280px; right: 0px; height: 550px;text-align: center; }
.footer { position: fixed; bottom: 0px; }
.pagenum:before { content: counter(page); }
</style>
<div class="footer">Page: <span class="pagenum"></span></div>
<div class="header">
<div style="text-align:right;">
<?php
if ($postatus == 'ST026')
{}
else
{
echo '<div><b>DRAFT</b> </div>';
}
?>
</div>
<center> <span style="font-size:24px;">PURCHASE ORDER - <a style="color:#515151">PO NO:<?php echo $PONO?> </a></span></center>
<table style="border-collapse: collapse;font-size:12px;" border="1" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td colspan="3">
<p style="color:#3c8dbc;font-size:16px;"><strong><?php echo $CompanyName; ?></strong></p>
<p> <?php echo $CompanyAddress; ?></p>
</td>
<td align="right"><img width="100" height="100" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA11JREFUeNrsnT9IHEEYxWfFw8rgpUhlo5URi2gTbIUUSrq1ui4oRLRIY9JIKrGKTQrBgJLuuutEi4CtSSOpPIuATdIEcid2YpN9C3sc8c6bf7uZmX0P7k7ultm7337zzXxvZjGaiaIfQoiqoHTUHk6eniSPUbLQUmUoebojB23dDZGBmQiQAAmQAAmQIkACJEACpAiweA3bbvDV5mb6+iKOxfTc3MDjf15dicbBQfr3591d7wBGM1H0J3l9bNLI84UFsby6mkIzFWACJMCafJ9PJyfSx29vbHQuoqJaxl34zc5O+mVtwIPi5EIcXV52IjnoLvx+by/9wXkIF8aHbq0dgYi4vOB1Q7QV2c4BXM4Z3r+RGBTAR9VqmqhVBoZnIyOdx9taTXqQGJ+YUDqXFwBV4WGU69aXRkNsr69LtyEzHfIKIKJCVl9PT3u+/63P+6bnC64SuWm3jdsYn5xkKcdamCJAAiwjQJcHAC8ATs/OBg1Qy0y4ub6WPhb1cuPwUFycn9/77OPWlvXzeQGw2QPGQ9o/PhZrS0v3IPpooFrpwgChYniidq6fnTnvrBSaA3Uc3A/1uvPuSmEA0f0uFLsyBKcZDjaisvSj8DsFW6pbcHPQpV12WQoBCHhri4taEOGwhJAXjeeBgFebn1eyp0LKi1Ym0rCsXieRqLk06HVetFqJwHmWnRz3yotHzabT9n0hpRxGZ0SjjpGKCEQkxgUtWDlbCyMfIi/qTHMgrDf7srCem5mQDS5YQNKRD2vCuQLMhCVM3bwIiK4PLIUYqrp5EXPFeGWFALO8CEdGddId7NYOHWFQUa1cUO4Fty78/fZW6tFrjx7gqfqAT0PbmWAqVCwq+bDUOxMeyokh6L8B1J1kE2BgIkACJMDyAbSx56/cACV3CoyOjfX9rNSrcrI7E/qVYYCnYhKY3LXkJECVOdx+Us51m6Nwm7HVQyUCf4UGEJuFZPMgIhC+XlYfw21WWQ/GxXJ50q09iBS1MSjYW73ww3SXMVXOobsk4MU80GQZc5DQbl5tOzWRRpS8nJqy1tUAzWZ7ecvKDdfdggWfTV0GbdnA4JB1UdhbHjo0LesAS6YWa2GaCQRIgARIESABEiABUgRIgARYRoAVYtBWBfcL/xb8hwS6av8VYADVjF2M5sTWJAAAAABJRU5ErkJggg=="></td>
</tr>
<tr>
<td>
<p><strong>Vendor Address :</strong></p>
<p><?php echo $SuplierName; ?><br /><?php echo $SuplierAddress; ?></p>
</td>
<td colspan="3">
<p><strong>Delivery To :</strong></p>
<p><?php echo $DeliveryAddress; ?></p>
</td>
</tr>
<?php if ($CapitalRange =='0') { ?>
<tr>
<td>PO DATE :<?php echo $Podt; ?></td>
<td>DISPATCH / SCHEDULE BY :<?php echo $Import_DispatchDetails.$DeliverySchedule;?></td>
<td>PLACE OF ORIGIN:<?php echo $Placeoforigin; ?></td>
<td>EXCHANGE RATE:<?php echo $ExchangeRate; ?></td>
</tr><?php } else {?>
<tr>
<td>PO DATE :<?php echo $Podt; ?></td>
<td colspan="3">DELIVERY DATE/ SCHEDULE BY :<?php echo $DeliveryDate.$DeliverySchedule;?></td>
</tr><?php }?>
</tbody>
</table>
</div>
<p>&nbsp;</p>
<table style="border-collapse: collapse;" border="1" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>Requistion Number</td>
<td>Requested By</td>
<td>Requested Department</td>
<td>Cost Center &nbsp;</td>
</tr>
<?php
if(!empty($RequistionDetails))
{
foreach($RequistionDetails as $ReqDetails)
{
?>
<tr>
<td><?php echo $ReqDetails['RequistionNo']; ?></td>
<td><?php echo $ReqDetails['RequestedName']; ?></td>
<td><?php echo $ReqDetails['RequestedDept']; ?></td>
<td><?php echo $ReqDetails['CostCenterCode']; ?></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
<p>&nbsp;</p>
<table style="border-collapse: collapse;" border="1" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<th>#</th>
<th>Item Code</th>
<th>Item Name</th>
<th>Qty</th>
<th>UOM</p>
<?php if($currencyName!='INR'){ ?>
<th>Rate Per Unit in <?php echo "$currencyName"."("."$currencyCode".")"?></th>
<?php
} else{
?>
<th>Rate Per Unit in <?php echo "$currencyName";?></th><?php } ?>
<?php if($currencyName!='INR'){ ?>
<th>Total Amount in <?php echo "$currencyName"."("."$currencyCode".")"?></th>
<?php
} else{
?>
<th>Total Amount in <?php echo "$currencyName";?></th><?php } ?>
</tr>
<?php
if(!empty($POItem))
{
$index = 0;
$TotalAmount = 0;
$OrderValue = 0;
foreach($POItem as $record)
{
$index = $index + 1;
$OrderValue= $OrderValue + $record->Quantity*$record->Rate;
?>
<tr style="line-height: 1.5em;">
<td><?php echo $index ; ?></td>
<td> <?php echo $record->MaterialCode ; ?></td>
<td><?php echo $record->MaterialName ; ?></td>
<td align="right"><?php echo $record->Quantity ; ?></td>
<td align="right"><?php echo $record->UOM ; ?></td>
<td align="right"><?php echo number_format(($record->Rate),2, '.', '') ; ?></td>
<td align="right"><?php echo number_format(($record->Quantity * $record->Rate),2, '.', '');?></td>
</tr>
<?php
}
}
?>
</tbody>
</table>
<p>&nbsp;</p>
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tbody>
<tr>
<td style="text-align: center;" rowspan="4" ><strong>Total Amount In Words</strong><br /><br /><em><?php echo $TotalAmountInWords." "."Only.";?></em></td>
</tr>
<tr>
<td style="text-align: right;" colspan="3" ><?php if($currencyName!='INR'){ ?>
Total Order Amount in <?php echo "$currencyName"."("."$currencyCode".")" ?><?php } else { ?><b>Total Order Amount in <?php echo "$currencyName"; ?><?php } ?> </b> <br/><?php if($currencyName!='INR'){ ?><?php echo number_format($OrderValue,2); } else {?> <?php echo number_format($OrderValue,2, '.', '');}?></td>
</tr>
<tr>
<td colspan="3" style="text-align: right;"><strong>Advance Anount Paid: <?php echo $AdvanceAmount?></strong></td>
</tr>
<tr>
<td colspan="3" style="text-align: right;"><strong>Total Amount To Be Paid:<?php echo number_format(($OrderValue-$AdvanceAmount),2)?></strong></td>
</tr>
<tr>
<td>
<p><strong>Payment Terms</strong></p>
<p><?php echo $PaymentTerms;?></p>
</td>
<td style="text-align: center;" colspan="3">
<p><font size="1">Certified that the particulars given above are true and correct</font></p>
<p><?php echo $CompanyName; ?></p>
<p>&nbsp;</p>
<p>Authorized Signatory</p>
</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p><strong>Special Instruction:</strong></p>
<p><?php echo $ServiceDescription;?></p>
<p>&nbsp;</p>
<?php
if(!empty($releasedetails)){
$releasedOn = '';
foreach($releasedetails as $detail){
$releasedOn= new DateTime($detail->ReleasedOn, new DateTimeZone('Asia/Kolkata'));
?>
<!-- <table width="100%">
<tbody>
<tr>
<td><b>Released By:</b></td>
<td style="text-align:right;"><b>Released On:</b></td>
</tr>
<tr>
<td><?php echo $detail->FirstName;?></td>
<td style="text-align:right;"><?php echo $releasedOn->format('d-m-Y');?></td>
</tr>
</tbody>
</table> -->
<p>&nbsp;</p>
<div align="Left"> <b>Released By : </b><?php echo $detail->FirstName;?></div>
<div align="Left"> <b>Released On : </b><?php echo $releasedOn->format('d-m-Y');?></div>
<?php
}
}
else {
?>
<?php } ?>

View File

@ -137,7 +137,7 @@
?>
</div>
<div>&nbsp;</div>
<center> <span style="font-size:24px;">PURCHASE ORDER - <a style="color:<?php echo $color?>">PO NO:<?php echo $PONO?> </a></span></center>
<center> <span style="font-size:24px;">PURCHASE ORDER - <a>PO NO:<?php echo $PONO?> </a></span></center>
<table style="border-collapse: collapse;font-size:12px;" border="1" width="100%" cellspacing="0" cellpadding="0">
@ -279,12 +279,27 @@
<p>&nbsp;</p>
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tbody>
<tr>
<td style="text-align: center;" ><strong>Total Amount In Words</strong><br /><br /><em><?php echo $TotalAmountInWords." "."Only.";?></em></td>
<td style="text-align: center;" ><strong>Total Amount In <?php echo "$CurrencyCode ($CurrencyName)" ;?> <?php echo $TotalOrderValue;?> </strong></td>
<td><strong style="color: <?php echo $color?>">Advance Amount :<?php echo "$CurrencyCode ($CurrencyName)" ;?> <?php echo number_format($AdvanceAmount,2)?></strong></td>
<td><strong>Amount to Pay:<?php echo number_format(($TotalOrderValue-$AdvanceAmount),2)?></strong></td>
<tr>
<td style="text-align: center;" rowspan="4"><strong>Total Amount In Words</strong><br /><br /><em><?php echo $TotalAmountInWords." "."Only.";?></em></td>
</tr>
<tr>
<td style="text-align: right;" colspan="3" ><strong>Total Amount In <?php echo "$CurrencyCode ($CurrencyName)" ;?> <?php echo $TotalOrderValue;?> </strong></td>
</tr>
<tr>
<td style="text-align: right;" colspan="3"><strong>Advance Amount :<?php echo "$CurrencyCode ($CurrencyName)" ;?> <?php echo number_format($AdvanceAmount,2)?></strong></td>
</tr>
<tr>
<td style="text-align: right;" colspan="3"><strong>Amount to Pay:<?php echo "$CurrencyCode ($CurrencyName)" ;?><?php echo number_format(($TotalOrderValue-$AdvanceAmount),2)?></strong></td>
</tr>
<tr>

View File

@ -108,7 +108,7 @@
?>
</div>
<center> <span style="font-size:24px;">PURCHASE ORDER - <a style="color:<?php echo $color?>">PO NO:<?php echo $PONO?> </a></span></center>
<center> <span style="font-size:24px;">PURCHASE ORDER - <a>PO NO:<?php echo $PONO?> </a></span></center>
<table style="border-collapse: collapse;font-size:12px;" border="1" width="100%" cellspacing="0" cellpadding="0">
@ -253,7 +253,7 @@
<tr>
<td style="text-align: center;" rowspan="3">
<td style="text-align: center;" rowspan="5">
<p><strong>Total Amount In Words</strong><br /><br /><br /></p>
@ -273,12 +273,20 @@
<tr>
<td><strong>Total Amount After Tax In INR <?php echo number_format($OrderValue,2);?></strong></td>
<td><strong style="color: <?php echo $color?>">Advance Amout In INR -<?php echo number_format($AdvanceAmount,2)?></strong></td>
<td><strong>Total Amount To Pay In INR-<?php echo number_format(($OrderValue-$AdvanceAmount),2)?></strong> </td>
<td style="text-align: right;" colspan="3"><strong>Total Amount After Tax In INR <?php echo number_format($OrderValue,2);?></strong></td>
</tr>
<tr>
<td style="text-align: right;" colspan="3"><strong>Advance Amout In INR -<?php echo number_format($AdvanceAmount,2)?></strong></td>
</tr>
<tr>
<td style="text-align: right;" colspan="3"><strong>Total Amount To Pay In INR-<?php echo number_format(($OrderValue-$AdvanceAmount),2)?></strong> </td>
</tr>
<tr>

View File

@ -110,7 +110,7 @@
?>
</div>
<center> <span style="font-size:24px;">PURCHASE ORDER - <a style="color:<?php echo $color?>">PO NO:<?php echo $PONO?> </a></span></center>
<center> <span style="font-size:24px;">PURCHASE ORDER - <a>PO NO:<?php echo $PONO?> </a></span></center>
<table style="border-collapse: collapse;font-size:12px;" border="1" width="100%" cellspacing="0" cellpadding="0">
@ -302,7 +302,7 @@
<td style="text-align: center;" rowspan="3">
<td style="text-align: center;" rowspan="5">
@ -342,13 +342,21 @@
<td><strong>Total Amount After Tax In INR - <?php echo number_format($OrderValue,2);?></strong></td>
<td style="text-align: right;" colspan="3"><strong>Total Amount After Tax In INR - <?php echo number_format($OrderValue,2);?></strong></td>
<td><strong style="color: <?php echo $color?>">Advance Amout In INR -<?php echo number_format($AdvanceAmount,2)?></strong></td>
<td><strong>Total Amount In INR-<?php echo number_format(($OrderValue-$AdvanceAmount),2)?></strong> </td>
</tr>
<tr>
<td style="text-align: right;" colspan="3"><strong>Advance Amout In INR -<?php echo number_format($AdvanceAmount,2)?></strong></td>
</tr>
<tr>
<td style="text-align: right;" colspan="3"><strong>Total Amount In INR-<?php echo number_format(($OrderValue-$AdvanceAmount),2)?></strong> </td>
</tr>

View File

@ -1,9 +1,22 @@
<?php
$color='';
$Adv='';
?>
<style>
.pagination {
margin:0px !important;
}
span.highlight {
background-color: yellow;
}
</style>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
@ -14,6 +27,8 @@
<div class="box">
<div class="box-header">
<center><h3 class="box-title"> Service Purchase Order Report</h3></center>
<span class="highlight">The PONO Shown In Green Colour Are Paid Advance Amount</span>
</div>
<div class="box-body">
<table id="example1" class="table table-bordered table-hover editableTable" style="font-size:12px;">
@ -47,13 +62,25 @@
foreach($Billing as $record)
{
$SNo =$SNo + 1;
$Adv=$record->AdvanceAmount;
if($Adv>0)
{
$color="green";
}
else
{
$color="baby blue";
}
//print_r($MRIRDetails);
?>
<tr>
<td><?php echo $SNo?></td>
<td><a data-toggle="tooltip" href="<?php echo base_url().'purchaseorder/CreatePOPrint?PONO='.$record->PONO.'&ReqType='.SERVICE ?>" target="new"><?php echo $record->PONO?></a></td>
<td><a data-toggle="tooltip" href="<?php echo base_url().'purchaseorder/CreateMRIRPOPrint?PONO='.$record->PONO.'&POType='.SERVICE ?>" style="color:<?php echo $color?>" target="new"><?php echo $record->PONO?></a></td>
<!-- <td><a target="_blank" href="<?php echo base_url() ?>purchaseorder/CreateMRIRPOPrint?PONO=<?php echo $record->PONO ?>&POType=<?php echo $record->POType ?>" data-id="<%=index%>" data-userid="<?php echo $record->PONO ?>" ><?php echo $d->PONO ?> </a></td> -->
<td><?php echo $record->SupplierName?></td>
<td><?php echo $record->MaterialCode?></td>
<td><?php echo $record->MaterialName?></td>

View File

@ -1,5 +1,10 @@
<?php
$Adv='';
$color='';
?>
<style>
.modal
@ -9,6 +14,10 @@
.num{
text-align:right;
}
span.highlight {
background-color: yellow;
}
</style>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
@ -18,6 +27,8 @@
<div class="box-header">
<center><h3 class="box-title">Siddharth Industries - Billing For MRIR </h3></center>
</div>
<span class="highlight">The PONO Shown In Green Colour Are Paid Advance Amount</span>
<div class="container-fluid">
<div class="row">
@ -27,16 +38,18 @@
<thead style="background-color:#ddf">
<tr>
<th>IGR NO</th>
<th>MRIR NO</th>
<th>PONO</th>
<th>PO Type</th>
<th>PO Type</th>
<th>Material Code</th>
<th>Material Name</th>
<th>UOM</th>
<th>Ordered Qty</th>
<th>Ordered Qty</th>
<th>Received Quantity</th>
<th>Accepted Quantity</th>
<th>Rejected Quantity</th>
<th>Rejected Quantity</th>
<th>Status of MRIR</th>
<th>Remarks</th>
<th>Quality Incharge</th>
@ -52,6 +65,15 @@
foreach($Billing as $d)
{
$Index= $Index+1;
$Adv=$d->AdvanceAmount;
if($Adv>0)
{
$color="green";
}
else
{
$color="baby blue";
}
?>
<tr id="<?php echo $Index ?>">
@ -59,11 +81,11 @@
<td><?php echo $d->IGRNO ?></td>
<td><a data-toggle="modal" data-target="#materialreport" data-userid="<?php echo $d->MRIRNO ?>" data-id="<%=Index%>" data-dismiss="modal" ><?php echo $d->MRIRNO ?> </a></td>
<!-- <td><?php echo $d->PONO ?></td> -->
<td><a target="_blank" href="<?php echo base_url() ?>purchaseorder/CreateMRIRPOPrint?PONO=<?php echo $d->PONO ?>&POType=<?php echo $d->POType ?>" data-id="<%=index%>" data-userid="<?php echo $d->PONO ?>" ><u><?php echo $d->PONO ?> </u></a></td>
<td><a target="_blank" href="<?php echo base_url() ?>purchaseorder/CreateMRIRPOPrint?PONO=<?php echo $d->PONO ?>&POType=<?php echo $d->POType ?>" data-id="<%=index%>" style="color:<?php echo $color?>" data-userid="<?php echo $d->PONO ?>" ><?php echo $d->PONO ?> </a></td>
<td><?php echo $d->POType ?></td><!-- Department -->
<td><?php echo $d->MaterialCode ?></td><!-- Material Code -->
<td><?php echo $d->MaterialName ?></td><!-- Material Name -->