ria/app/Views/create_pdf.php
2024-09-11 08:54:25 +05:30

325 lines
9.8 KiB
PHP
Executable File

<?php
$PONO = '';
$POType = '';
$PODate= '';
$SupplierName = '';
$Address = '';
$SpecialOrder = '';
$Username = '';
$RequesterEmail = '';
$RequesterPh = '';
$RequestedDate = '';
$BudgetManager = '';
$BudgetManagerDepartment = '';
$PurchasingCategory = '';
$PurchasingJustification = '';
$OrderValue = '';
$DiscountType = '';
$DiscountValue = '';
$PackagingType = '';
$PackagingValue = '';
$ExciseDuty = '';
$Vat = '';
$Freight = '';
$SupplierName = '';
$Address = '';
if(!empty($PODetail))
{
foreach ($PODetail as $PO)
{
$PONO = $PO->PONO;
$POType = $PO->POType;
$PODate = $PO->PODate;
$SupplierName = $PO->SupplierName;
$SpecialOrder = $PO->SpecialOrder;
$Username = $PO->name;
$RequesterEmail =$PO->RequesterEmail;
$RequesterPh = $PO->RequesterPh;
$RequestedDate = $PO->RequestedDate;
$BudgetManager= $PO->BudgetManager;
$BudgetManagerDepartment = $PO->BudgetManagerDepartment;
$PurchasingCategory = $PO->PurchasingCategory;
$PurchasingJustification = $PO->PurchasingJustification;
$OrderValue = $PO->OrderValue;
$DiscountType= $PO->DiscountType;
$DiscountValue= $PO->DiscountValue;
$PackagingType = $PO->PackagingType;
$PackagingValue= $PO->PackagingValue;
$ExciseDuty= $PO->ExciseDuty;
$Vat = $PO->Vat;
$Freight = $PO->Freight;
$Address = $PO->Address;
}
}
?>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div>
<h4>
<h3> RESICO</h3><br/>
Survey NO: 168/1C3,<br/>
Pennalur Pet Road,
Goonipalyam village,<br/>
Uthukottai Taluk,
Tiruvallur Dist,<br/>
Tamilnadu,Pin code : 602026.<br/>
Email: customersupport@sidharthindustries.com
</h4>
</div>
<section class="content-header">
<center>
<h1><b>Purchase Order - <?php echo $PONO ?> </b> </h1>
</center>
</section>
<section class="content">
<div class="row">
<!-- left column -->
<div class="col-md-12">
<!-- general form elements -->
<div class="box box-success">
<div class="box-header">
<form role="form" id="addUser" action="" name="addUser" method="post" role="form">
<div class="box-body">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="PO_Type">PO Type : </label>
<?php echo $POType;?>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="PO_Date">PO Date : </label>
<?php echo $PODate; ?>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="SupplierID">Supplier Name : </label>
<select class="form-control required" id="SupplierID" readonly name="SupplierID">
<?php echo $SupplierName; ?>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="SupplierAddress">Supplier's Address :</label>
<?php echo $Address; ?>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="role">Requested By :</label>
<?php echo $Username;?>
</select>
</div>
</div>
<div class="col-md-6 ">
<div class="form-group">
<label for="re_email">Requester Email :</label>
<?php echo $RequesterEmail; ?>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6 ">
<div class="form-group">
<label for="re_phone">Requesters Phone :</label>
<?php echo $RequesterPh;?>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="re_Date">Requested Date :</label>
<?php echo $RequestedDate; ?>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="bud_manager">Budget Manager : </label>
<?php echo $BudgetManager; ?>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="bud_manager_de">Budget Manager Department : </label>
<?php echo $BudgetManagerDepartment; ?>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="Pur_category">Purchasing Category : </label>
<?php echo $PurchasingCategory; ?>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="SpecialOrder">Special Requirement of order : </label>
<?php echo $SpecialOrder; ?>
</div>
</div>
</div>
<div class="row">
<label for="Justification">Justification for the Purchase : </label>
<?php echo $PurchasingJustification; ?>
</div>
</div>
<div class="col-md-12" >
<div><b><u>Purchase Order Line Item : </u><b> </div>
<div class="col-md-12 col-xs-12" style="border:1px solid #000">
<table id="POLineItem" class="table table-hover" cellpadding="10" >
<tr style="background-color:powderblue;">
<th text-align="center" nowrap >Product Description</th>
<th text-align="center" nowrap>UOM</th>
<th text-align="center" nowrap >Quantity</th>
<th text-align="center" nowrap >Unit Price</th>
<th text-align="center" nowrap>Product Amount</th>
</tr>
<tbody id="tempAppend">
<?php $TotalAmount = 0.00;
if(!empty($POLineItem))
{
foreach ($POLineItem as $us)
{
?>
<tr border="1">
<td align="left"><?php echo $us->materialName?></td>
<td align="left"><?php echo $us->UOM ?></td>
<td align="left"><?php echo $us->Quantity ?></td>
<td align="left"><?php echo $us->UnitPrice ?></td>
<td align="left"><?php echo $us->ProductPrice ?></td>
</tr>
<?php $TotalAmount = $TotalAmount + $us->ProductPrice;
}
}
?>
</tbody>
</table>
<div class="col-md-12" style="border:1px solid #000">
<div class="row">
<div class="col-md-offset-3 col-md-3">
<label for="Basic_Value">Basic Value : </label>
<?php echo $TotalAmount ?>
</div>
</div>
<br>
<div class="row">
<div class="col-md-offset-3 col-md-3">
<label for="Discount_Value">Discount : </label>
<?php echo $DiscountType; ?> --
<?php echo $DiscountValue; ?>
</div>
</div>
<br>
<div class ="col-md-offset-6 col-md-6" style="border-bottom:1px solid black"></div>
<br>
<div class="row">
<div class="col-md-offset-3 col-md-3">
<label for="AfterDiscount_Value">After Discount : </label>
<input type="text" class="form-control required digits" id="AfterDiscount" maxlength="12" readonly name="AfterDiscount">
</div>
</div>
<br>
<div class="row">
<div class="col-md-offset-3 col-md-3">
<label for="Packaging">Packaging : </label>
<?php echo $PackagingType; ?> --
<?php echo $PackagingValue; ?>
</div>
</div>
<br>
<div class ="col-md-offset-6 col-md-6" style="border-bottom:1px solid black"></div>
<br>
<div class="row">
<div class="col-md-offset-3 col-md-3">
<label for="AfterPackaging">After Packaging : </label>
<input type="input" class="form-control required digits" readonly id="AfterPackaging" style="float:left; text-align:left" name="AfterPackaging">
</div>
</div>
<br>
<div class="row">
<div class="col-md-offset-3 col-md-3">
<label for="ExciseDuty">Excise duty @ 12.5% : </label>
<?php echo $ExciseDuty; ?>
</div>
</div>
<br>
<div class="row">
<div class="col-md-offset-3 col-md-3">
<label for="AfterExciseDuty">After Excise duty : </label>
<input type="input" class="form-control required digits" id="AferExciseduty" readonly style="float:left; text-align:left" name="AferExciseduty">
</div>
</div>
<br>
<div class="row">
<div class="col-md-offset-3 col-md-3">
<label for="Vat">Vat : </label>
<?php echo $Vat; ?>
</div>
</div>
<br>
<div class ="col-md-offset-6 col-md-6" style="border-bottom:1px solid black"></div>
<br>
<div class="row">
<div class="col-md-offset-3 col-md-3">
<label for="AfterVat">After Vat : </label>
<input type="input" class="form-control required digits" readonly id="txtAfterVat" style="float:left; text-align:left" name="txtAfterVat">
</div>
</div>
<br>
<div class="row">
<div class="col-md-offset-3 col-md-3">
<label for="Freight">Freight : </label>
<?php echo $Freight; ?>
</div>
</div>
<br>
<div class ="col-md-offset-6 col-md-6" style="border-bottom:1px solid black"></div>
<br>
<div class="row">
<div class="col-md-offset-3 col-md-3">
<label for="Total_Order_Value ">Total Order Value : </label>
<input type="number" class="form-control required digits" style="float:left; text-align:left" id="txtOrderValue" readonly name="txtOrderValue">
</div>
</div>
</div>
</div><!-- /.box-body -->
</div>
</form>
</div>
</div>
</div>
</div>
</section>
</div>