done service po pdf changes

This commit is contained in:
gandhimathi 2017-09-14 12:35:45 +05:30
parent 1600b775f1
commit 8d1d1a0289
5 changed files with 483 additions and 517 deletions

View File

@ -67,6 +67,7 @@ class emergencypurchaseorder extends BaseController
//$data['WorkStatus']=$this->purchaseorder_model->GetWorkStatus('C019');
$data['WorkStatus']=$this->purchaseorder_model->getStatus(7);
$data['ServiceOption'] = $this->requistion_model->getConfigValue('C022');
$data['PoTypeOptions'] = $this->purchaseorder_model->getConfigValue('C026');
$this->loadViews("alterpurchaseorder", $this->global, $data, Null);
}
@ -134,8 +135,17 @@ class emergencypurchaseorder extends BaseController
$ServiceWorkStatus=$this->input->post('workStatus');
$ServiceScheduleType = $this->input->post('ScheduleType');
$ServiceScheduleOptions = $this->input->post('ServiceOptions');
$ServiceServiceNo = $this->input->post('ServiceNo');
$ServiceScheduleOptions = $this->input->post('ServiceOptions');
$ServiceServiceNo = $this->input->post('ServiceNo');
$ModeOfShipment=$this->input->post('emergmodeofshipment');
$SupplierReference=$this->input->post('emergsupplierreference');
$SuppliersOfferNo=$this->input->post('emergsupplierofferno');
$OtherReferences=$this->input->post('emergotherreference');
$Fincap=$this->input->post('emergfincap');
$InsuranceOptions=$this->input->post('insuranceStatus');
$InsuranceNo=$this->input->post('insuranceNo');
$ServiceTypeOptions=$this->input->post('PoTypeOptions');
$DescriptionOfPo = $this->input->post('emergdescofpo');
//create T_Requestion_Master
$Request = array('ReqType'=>$POType, 'Requestedby'=>$RequestedBy,'CostCenterCode'=>$CostCenterName,'Status'=>$ReqStatus,'Comments'=>$RequistionComments,'ReqDate'=>$createddt,'CreatedDate'=>$createddt,'CreatedBy'=>$CreateBy,'Schedule_Type'=>$ServiceScheduleType,'NumberOfService'=>$ServiceServiceNo,'Service_Period'=>$ServiceScheduleOptions);
@ -150,7 +160,7 @@ class emergencypurchaseorder extends BaseController
// PO Master
$POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'Status'=>$POStatus,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$createddt,'PaymentTerms'=>$PaymentTerms,'ServiceWorkStatus'=>$ServiceWorkStatus,'POType'=>$POType,'PaymentOtherDescription'=>$OtherPayment);
$POList = array('SupplierID'=>$SupplierID, 'TotalOrderValue'=>$TotalOrderValueSummary,'PODate'=>$PODate,'Status'=>$POStatus,'DeliverySchedule'=>$DeliverySchedule,'DeliveryOption'=>$DeliveryOption,'ServiceDescription'=>$SpcialInstruction,'CreatedBy'=>$CreateBy,'DeliveryAddress'=>$DeliveryAddr,'DeliveryDate'=>$Deliverydt,'CreatedDate'=>$createddt,'PaymentTerms'=>$PaymentTerms,'ServiceWorkStatus'=>$ServiceWorkStatus,'POType'=>$POType,'PaymentOtherDescription'=>$OtherPayment,'Supplier_Reference'=>$SupplierReference,'Mode_Of_Shipment'=>$ModeOfShipment,'Supplier_Offer_No'=>$SuppliersOfferNo,'Other_Reference'=>$OtherReferences,'Fincap'=>$Fincap,'Description_Of_Service'=>$DescriptionOfPo,'InsuranceStatus'=>$InsuranceOptions,'InsuranceNumber'=>$InsuranceNo,'POSubType'=>$ServiceTypeOptions);
$POMaster = $this->purchaseorder_model->addPOMaster($POList);
$PONO = '';
@ -166,7 +176,7 @@ class emergencypurchaseorder extends BaseController
for ($i = 1; $i <= $RowCount; $i++)
{
$Per = $this->input->post('Serviceper'.$i);
$MaterialCode = $this->input->post('materialCode'.$i);
$Quantity = $this->input->post('quantity'.$i);
$Reqnumber = $this->input->post('Reqnumber'.$i);
@ -209,7 +219,7 @@ class emergencypurchaseorder extends BaseController
$POLineItemList = array('PONO'=>$PONO, 'ReqNo'=>$RegNo,'MaterialCode'=>$MaterialCode,'Quantity'=>$Quantity,'Rate'=>$itemRate,'Status'=>$LineItemStatus,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt,'CostCenterCode'=>$CostCenter,'ServiceMaterialDescription'=>$ServiceMaterialDescription,'ServiceFrequency'=>$ServiceFrequency);
$POLineItemList = array('PONO'=>$PONO, 'ReqNo'=>$RegNo,'MaterialCode'=>$MaterialCode,'Quantity'=>$Quantity,'Rate'=>$itemRate,'Status'=>$LineItemStatus,'CreatedBy'=>$CreateBy,'CreatedDate'=>$createddt,'CostCenterCode'=>$CostCenter,'ServiceMaterialDescription'=>$ServiceMaterialDescription,'ServiceFrequency'=>$ServiceFrequency,'Per'=>$Per);
$POLineItem = $this->purchaseorder_model->addPOLineItem($POLineItemList);
$LineItemNo = '';
if(count($POLineItem)>0)
@ -1104,3 +1114,4 @@ class emergencypurchaseorder extends BaseController
?>

View File

@ -1194,7 +1194,8 @@ $AdvanceAmount=0.00;
$data['releasedetails'] = $this->purchaseorder_model->GetReleasedDetails($PONO);
$data['serviceTaxList'] = $this->purchaseorder_model->GetServiceTaxDetails($PONO);
$data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName('INR');
//print_r( $data['CurrencySymbol']);

View File

@ -419,7 +419,7 @@ function GetPOType($ReqNo)
function getCompanyInformation()
{
$this->db->select('CompanyName,Address');
$this->db->select('CompanyName,Address,GSTNO,PAN,ContactNumber,EmailAddress,AlternateContactNumber,companyWebsite,StateCode');
$this->db->from('T_Company_Details');
$query = $this->db->get();
@ -656,10 +656,10 @@ function GetPOType($ReqNo)
$subQuery ='SELECT distinct LineItem.LineItemNo,LineItem.ReqNo,LineItem.ServiceMaterialDescription,Mat.MaterialCode,Mat.MaterialName,POMaster.ParentPO,
$subQuery ='SELECT distinct LineItem.LineItemNo,LineItem.ReqNo,LineItem.Per,LineItem.ServiceMaterialDescription,Mat.MaterialCode,Mat.MaterialName,POMaster.ParentPO,
Mat.UOM,Quantity,Rate,ROUND((Quantity *Rate),2 ) as BasicValue,POMaster.AmendedDetails,LineItem.AmendedDetails as lineamenddetails,
ROUND(( Tax.After_SGST + Tax.After_CGST + Tax.After_IGST ) ,2)as Taxamount,ReqMat.NumberOfService,ReqMat.Schedule_Type,ReqMat.Service_Period,
TotalValue,Tax.*,LineItem.CostCenterCode ,POMaster.*,sup.SupplierName,sup.Address,Payment.PaymentTerms,AdvanceAmount
TotalValue,Tax.*,LineItem.CostCenterCode ,POMaster.*,sup.SupplierName,sup.SupplierID,sup.Address,sup.ContactNumber,sup.EmailAddress,sup.PAN,sup.GSTNO,Payment.PaymentTerms,AdvanceAmount
FROM T_PurchaseOrder_LineItem LineItem
join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode
join T_Service_Tax Tax on Tax.LineItemNo = LineItem.LineItemNo
@ -1400,7 +1400,7 @@ join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode
}
else{
$ReqNo = $res->ReqNo;
$this->db->select('ReqMast.ReqNo,ReqMast.CostCenterCode,ReqMast.ReqDate,ReqMast.Schedule_Type,ReqMast.NumberOfService,ReqMast.Service_Period,re.FirstName,Dept.DEPCode,Dept.DepartmentName');
$this->db->select('ReqMast.ReqNo,ReqMast.CostCenterCode,ReqMast.ReqDate,ReqMast.Schedule_Type,ReqMast.NumberOfService,ReqMast.Service_Period,re.FirstName,Dept.DEPCode,Dept.DepartmentName,Dept.shortName');
$this->db->from('T_Requestion_Master ReqMast');
$this->db->join('T_Employee_Details re','re.EmpID=ReqMast.Requestedby');
$this->db->join('T_DepartmentDetails Dept', 're.Departmentcode = Dept.DEPCode');
@ -1409,7 +1409,7 @@ join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode
$Details['RequistionNo']= $Reqresult->result()[0]->ReqNo;
$Detaisl['ReqDate']=$Reqresult->result()[0]->ReqDate;
$Details['RequestedName']= $Reqresult->result()[0]->FirstName;
$Details['RequestedDept']= $Reqresult->result()[0]->DepartmentName;
$Details['RequestedDept']= $Reqresult->result()[0]->shortName;
$Details['CostCenterCode']= $Reqresult->result()[0]->CostCenterCode;
$date = new DateTime($Reqresult->result()[0]->ReqDate,new DateTimeZone('Asia/Kolkata'));
$retDate = $date->format('d-m-Y');
@ -1565,5 +1565,18 @@ join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode
}
}
//get service tax listusing po number
function GetServiceTaxDetails($PONO = ''){
$taxQuery ='SELECT @count:=@count+1 serial_number,group_concat(@count ORDER BY @count ASC) as Itemcode,st.CGST,st.SGST,st.IGST,st.otherallowance FROM kasiram9_SIADEV.T_Service_Tax st
join T_PurchaseOrder_LineItem pl on pl.LineItemNo=st.LineItemNo
join T_PurchaseOrder_Master pm on pm.PONO=pl.PONO
JOIN (SELECT @count := 0) count
where pm.POType=? and pm.PONO=?
group by st.CGST,st.SGST,st.IGST,st.otherallowance ORDER BY st.LineItemNo ASC';
$query = $this->db->query($taxQuery,array("SERVICE",$PONO));
return $query->result();
}
}

View File

@ -1,4 +1,8 @@
<?php $ReqType ='';
<?php
$insuranceStatus = array(
array("name"=>"NO","value"=>"0"),array("name"=>"YES","value"=>"1")
);
$ReqType ='';
$CompanyAddress = '';
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
$CurrentDate = $dt->format('d-m-Y');
@ -2464,7 +2468,85 @@ function populateValueMainFormForDeleteItem(rowid)
</div>
</div>
</div><!--End new fields 1 sep-->
</div>
<!--start new fields 1 sep-->
<div class="row">
<div class="col-md-12">
<div class="col-md-3">
<div class="col-md-12" style="padding: 0px;">
<label id="typeOptions">Service Type Options</label>
<div class="form-group">
<?php
//$optionsWork = array("0"=>'Select Work Status');
if(!empty($PoTypeOptions))
{
foreach ($PoTypeOptions as $POpt):
$optionsPO[$POpt->ConfigValue] = $POpt->ConfigValue;
endforeach;
}
echo form_dropdown('PoTypeOptions', $optionsPO,set_value('PoTypeOptions'),'id="PoTypeOptions"' ,'required="true"' ,'class="form-control select2');
?>
</div>
</div>
</div>
<div class="col-md-9" style="padding:0px;">
<div class="col-md-4" style="padding:0px;" >
<div class="col-md-12">
<label>Insurance Options</label>
<div class="form-group">
<?php
if(!empty($insuranceStatus))
{
foreach ($insuranceStatus as $INS):
$optionsInsurance[$INS['value']] = $INS['name'];
endforeach;
}
echo form_dropdown('insuranceStatus', $optionsInsurance,set_value('insuranceStatus'),'id="insuranceStatus"' ,'required="true"' ,'class="form-control select2');
?>
</div>
</div>
</div>
<div class="col-md-4" id="insuranceTxtDiv" style="display:block;">
<label>Insurance No<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</span></label>
<div class="form-group">
<?php
$data = array('name' => 'insuranceNo','value' => set_value('insuranceNo'),'id'=>'insuranceNo', 'class' => 'form-control' ,'required' => 'true');
echo form_input($data);
?>
</div>
</div>
</div>
</div>
</div><!--End new fields 1 sep-->
<div class="col-md-12" style="padding:0px;">
@ -3893,7 +3975,7 @@ function populateValueMainFormForDeleteItem(rowid)
<div class="col-md-4" >
<div class="form-group">
<?php
$data = array('name' => 'OtherAllowances','value' => set_value('OtherAllowances',0),'id'=>'OtherAllowances', 'class' => 'form-control num' ,'placeholder' => 'Other Allowances','onchange'=>'Ratechange()');
$data = array('name' => 'OtherAllowances','value' => set_value('OtherAllowances',0),'id'=>'OtherAllowances', 'class' => 'form-control num' ,'placeholder' => 'Other Allowances','onchange'=>'Ratechange()','onkeypress'=>'return isNumberKey(event);');
echo form_input($data);
?>
</div>
@ -5436,6 +5518,7 @@ function populateValueMainFormForDeleteItem(rowid)
$("#selectdeliveryby").show();
$("#txtPoRange").show();
$("#emergdescofpo").hide();
$('#typeOptions').html('Revenue Type Options');
}
else if ( this.value == 'SERVICE') // Service po
{
@ -5449,6 +5532,7 @@ function populateValueMainFormForDeleteItem(rowid)
$('#EditDisplayScheduleDiv').show();
$("#txtPoRange").hide();
$("#emergdescofpo").show();
$('#typeOptions').html('Service Type Options');
}
else if ( this.value == 'IMPORT') // Import po
@ -5458,6 +5542,7 @@ function populateValueMainFormForDeleteItem(rowid)
$("#revenuepotaxes").hide();
$("#servicepotaxes").hide();
$("#workstatus").hide();
$('#typeOptions').html('Import Type Options');
}
else if ( this.value == 'CAPITAL') // Capital po
{
@ -5466,6 +5551,7 @@ function populateValueMainFormForDeleteItem(rowid)
$("#revenuepotaxes").hide();
$("#servicepotaxes").hide();
$("#workstatus").hide();
$('#typeOptions').html('Capital Type Options');
}
else // Default
{
@ -5540,6 +5626,10 @@ function populateValueMainFormForDeleteItem(rowid)
$('#otheroptiondiv').hide();
$('#Otherpayment').val('');
}
else if(supPaymentTerms=='PT08'){
$('#otheroptiondiv').show();
}
$('#PaymentMethod').empty();
var paymentList = <?php echo json_encode($Payment, JSON_PRETTY_PRINT) ?>;
@ -5925,7 +6015,7 @@ function populateValueMainFormForDeleteItem(rowid)
$('#AfterIgst').val(calculateIgstTax($('#ServiceBasAmt').val(),$("#Igst").val()== '' ? "0.00" : $('#Igst').val()));
calculateTotalOrdervalue();
var res = ExceedBudget($('#TotalOrderValue').val(), $('#AvalBuget').val());
var res = ExceedBudget($('#ServiceBasAmt').val(), $('#AvalBuget').val());
if(!res)
{
$('#ServiceRate').focus();
@ -6021,6 +6111,13 @@ function populateValueMainFormForDeleteItem(rowid)
var materialCode =$('#ServiceMaterialCode').val();
var materialName = $("#ServiceDescription").val();
var uom = $("#ServiceUOM").val();
var addPer='';
if($("#AddEmergPer").val().trim()==''){
addPer = $("#ServiceUOM").val();
}
else{
addPer = $("#AddEmergPer").val();
}
var quantity = $("#ServiceQuantity").val();
var itemRate = parseFloat($("#ServiceRate").val()).toFixed(2);
@ -6035,7 +6132,7 @@ function populateValueMainFormForDeleteItem(rowid)
var Frequency=$("#ServiceOptions").val();
var FrequencySchedule=$("#ScheduleType").val();
var OtherAmt=$("#OtherAllowances").val();
var OtherAmt=parseFloat($("#OtherAllowances").val()).toFixed(2);
var ItemServiceDescription=$("#txtSpcialInstructionSingle").val();
var TotalOrderValue = $("#TotalOrderValue ").val();
@ -6072,6 +6169,7 @@ function populateValueMainFormForDeleteItem(rowid)
addHidden(theForm,"materialCode"+temp,materialCode );
addHidden(theForm,"materialName"+temp,materialName );
addHidden(theForm,"uom"+temp,uom);
addHidden(theForm,"Serviceper"+temp,addPer);
addHidden(theForm,"quantity"+temp,quantity);
addHidden(theForm,"itemRate"+temp,itemRate);
addHidden(theForm,"Cgst"+temp,Cgst);
@ -6134,7 +6232,7 @@ function populateValueMainFormForDeleteItem(rowid)
$('#txtSpcialInstructionSingle').focus();
return false;
}
else if(ExceedBudget($('#TotalOrderValue').val(),$('#AvalBuget').val()) == false)
else if(ExceedBudget($('#ServiceBasAmt').val(),$('#AvalBuget').val()) == false)
{
$('#ServiceRate').focus();
return false;
@ -6211,7 +6309,8 @@ function populateValueMainFormForDeleteItem(rowid)
$("#Sgst").val(0);
$("#Igst").val(0);
$("#TotalOrderValue ").val('');
$("#txtSpcialInstructionSingle ").val('');
tinyMCE.get('txtSpcialInstructionSingle').setContent('');
$('#AddEmergPer').val('');
$("#OtherAllowances ").val(0);
}
@ -6237,6 +6336,7 @@ function populateValueMainFormForDeleteItem(rowid)
$('#EditItemName').val($('#materialName'+userid).val());
$('#EditUOM').val($('#uom'+userid).val());
$('#EditEmergPer').val($('#Serviceper'+userid).val());
$('#EditQuantity').val($('#quantity'+userid).val());
$('#EditRate').val($('#itemRate'+userid).val());
$('#txtEditBasicValue').val(cellval[7].innerHTML);
@ -6250,7 +6350,8 @@ function populateValueMainFormForDeleteItem(rowid)
//$('#EditFrequency').val($('#Frequency'+userid).val());
$('#EditTotalOrderValue').val(cellval[9].innerHTML);
$('#EditOtherAllowances').val($('#OtherAmt'+userid).val());
$('#EdittxtSpcialInstructionSingle').val($('#ItemServiceDescription'+userid).val());
tinyMCE.get('EdittxtSpcialInstructionSingle').setContent($('#ItemServiceDescription'+userid).val());
if($('#FrequencySchedule'+userid).val()!='Recurring'){
$('#EditFrequencyChange').val('One time');
@ -6348,7 +6449,7 @@ $('#content').loader('hide');
var Tot = txtQuantity * txtUnitPrice * requencyValue
$('#txtEditBasicValue').val(parseFloat(Tot).toFixed(2));
ExceedBudget(Tot, $('#EditAvlBudAmt').val());
ExceedBudget($('#txtEditBasicValue').val(), $('#EditAvlBudAmt').val());
$('#EditAfterCgst').val(calculateCgstTax($('#txtEditBasicValue').val(),$("#EditCgst").val()== '' ? "0.00" : $('#EditCgst').val()));
$('#EditAfterSgst').val(calculateSgstTax($('#txtEditBasicValue').val(),$("#EditSgst").val()== '' ? "0.00" : $('#EditSgst').val()));
@ -6378,7 +6479,7 @@ $('#content').loader('hide');
* This function is used for update service
*/
$('.EditService').click(function(){
tinyMCE.triggerSave();
if( validateEditServiceTax())
{
@ -6388,8 +6489,15 @@ $('#content').loader('hide');
var editDescription = $("#EditItemName").val();
var ItemServiceDescription=$("#EdittxtSpcialInstructionSingle").val();
var OtherAmt=$("#EditOtherAllowances").val();
var OtherAmt=parseFloat($("#EditOtherAllowances").val()).toFixed(2);
var editUOM = $('#EditUOM').val();
var editPer='';
if($("#EditEmergPer").val().trim()==''){
editPer = $("#EditUOM").val();
}
else{
editPer = $("#EditEmergPer").val();
}
var editQuantity = $('#EditQuantity').val();
var itemRate = $("#EditRate").val();
@ -6431,6 +6539,7 @@ $('#content').loader('hide');
$('#materialCode'+userid).val(editMaterialCode);
$('#materialName'+userid).val(editDescription);
$('#uom'+userid).val(editUOM);
$('#Serviceper'+userid).val(editPer);
$('#quantity'+userid).val(editQuantity);
$('#itemRate'+userid).val(itemRate);
$('#Cgst'+userid).val(Cgst);
@ -6490,7 +6599,7 @@ $('#content').loader('hide');
return false;
}
else if(ExceedBudget($('#EditTotalOrderValue').val(),$('#EditAvlBudAmt').val()) == false)
else if(ExceedBudget($('#txtEditBasicValue').val(),$('#EditAvlBudAmt').val()) == false)
{
$('#EditRate').focus();
return false;
@ -6620,7 +6729,7 @@ $('#content').loader('hide');
$('#txtStatus').val(stat);
var TextRowCount = $('#txtRowCount').val();
var TextDeletedRowCount = $('#txtDeletedRow').val();
var TextTotalOrderValueSummaryService = $('#txtTotalOrderValueSummaryService').val();
var TextTotalOrderValueSummaryService = $('#txtTotBasicAmount').val();
var TextSpcialInstruction = $('#ScopeOfWork').val();
var TextStatus = stat;
var PaymentMethod = $('#PaymentMethod').val();
@ -7398,5 +7507,17 @@ $("#PaymentMethod").change(function() {
$('#txtTotalOrderValueSummary').val('');
}
$('#insuranceTxtDiv').hide();
$("#insuranceStatus").change(function(){
if($("#insuranceStatus").val()=="1"){
$('#insuranceTxtDiv').show();
}
else{
$('#insuranceTxtDiv').hide();
$('#insuranceNo').val('');
}
});
</script>

View File

@ -1,10 +1,11 @@
<!-- <?php
<?php
$PONO = '';
$postatus ='';
$CompanyAddress = '';
$CompanyName = '';
$CompanyStateCode='';
$SuplierName = '';
$SuplierAddress = '';
$DeliveryAddress = '';
@ -25,13 +26,33 @@
$PaymentOtherDescription='';
$NoOfServices=0;
$advance=0;
$finCap='';
$modShp='';
$insNo='';
$insNo='';
$supRef='';
$supOfferNo='';
$companyEmail='';
$companyGst='';
$companyPan='';
$companyWebsit='';
$supplierEmail='';
$supplierGst='';
$supplierPan='';
$supplierContact='';
$supplierVendor='';
$serviceDescription='';
if(!empty($CompanyDetails))
{
foreach ($CompanyDetails as $CO)
{
$CompanyName = $CO->CompanyName;
$CompanyAddress = $CO->Address;
$companyEmail=$CO->EmailAddress;
$companyGst=$CO->GSTNO;
$companyPan=$CO->PAN;
$companyWebsit=$CO->companyWebsite;
$CompanyStateCode=$CO->StateCode;
}
}
@ -88,516 +109,315 @@
}
$advance=$PO->AdvanceAmount;
$finCap=$PO->Fincap;
$modShp=$PO->Mode_Of_Shipment;
$insNo=$PO->InsuranceNumber;
$supRef=$PO->Supplier_Reference;
$supOfferNo=$PO->Supplier_Offer_No;
$supplierEmail=$PO->EmailAddress;
$supplierGst=$PO->GSTNO;
$supplierPan=$PO->PAN;
$supplierContact=$PO->ContactNumber;
$serviceDescription=$PO->Description_Of_Service;
$supplierVendor=$PO->SupplierID;
}
}
?>
<style>
@page { margin: 240px 50px 30px 50px; }
.header { position: fixed; left: 0px; top: -240px; right: 0px; height: 550px;text-align: center; }
.footer { position: fixed; bottom: 0px; }
@page { margin: 280px 25px 120px 25px; }
.header { position: fixed; left: 0px; top: -280px; right: 0px; height: 500px;text-align: center; }
.footer { position: fixed; bottom: 120px;}
.pagenum:before { content: counter(page); }
</style>
<div class="footer">Page: <span class="pagenum"></span></div>
<div style="border:1px solid;font-size:12px;">
<div class="header">
<div style="text-align:right;">
<?php
if ($postatus == PO_RELEASED || $postatus == PO_SERVICE_COMPLETED || $postatus == MRIR_APPROVED || $postatus == MRIR_REJECTED || $postatus == IGR_CREATED)
{ }
else
{
echo '<div><b>DRAFT</b> </div>';
}
?>
</div>
<div>&nbsp;</div>
<center> <span style="font-size:24px;">PURCHASE ORDER - <a style="color:#515151">PO NO:<?php echo $PONO?>/S </a></span></center>
<table style="border-collapse: collapse;" border="1" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="width:1px;"><img width="125" 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>
<td colspan="3">
<p style="text-align: center; color:#3c8dbc;font-size:16px;""><?php echo $CompanyName; ?></p>
<p style="text-align: center;"><?php echo $CompanyAddress; ?></p>
</td>
<td colspan="1">
<p>PO No: <?php echo $PONO?></p>
<p>Date: <?php echo $Podt?></p>
</td>
</tr>
<tr>
<td>
<p>Supplier :</p>
</td>
<td colspan="3" style="text-align: center;"><?php echo $SuplierName?><br /><?php echo $SuplierAddress ?> </td>
<td colspan="1">DELIVERY DATE / SCHEDULE BY: <?php echo $DeliveryDate.$DeliverySchedule;?><br /><br /></td>
</tr>
</tbody>
</table>
</div>
<!--
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tbody>
<tr bgcolor="#8c8c8c" color="#fff">
<td style="text-align: center;">Requistion Number</td>
<td style="text-align: center;">Requistion Date</td>
<td style="text-align: center;">Frequency</td>
<td style="text-align: center;">Requested By</td>
<td style="text-align: center;">Requested Department</td>
<td style="text-align: center;">Cost Center</td>
</tr>
<?php
if(!empty($RequistionDetails))
{
foreach($RequistionDetails as $ReqDetails)
{
?>
<tr>
<td style="text-align: center;"><?php echo $ReqDetails['RequistionNo']; ?></td>
<td style="text-align: center;"><?php $date = new DateTime($ReqDetails['ReqDate'],new DateTimeZone('Asia/Kolkata')); $date=$date->format("d-m-Y"); echo $date; ?></td>
<td style="text-align: center;"><?php echo $ReqDetails['Frequency']; ?></td>
<td style="text-align: center;"><?php echo $ReqDetails['RequestedName']; ?></td>
<td style="text-align: center;"><?php echo $ReqDetails['RequestedDept']; ?></td>
<td style="text-align: center;"><?php echo $ReqDetails['CostCenterCode']; ?></td>
</tr>
<?php
}
}
?>
</tbody>
</table
<div class="page" style="font-size:12px;">
<?php
if(!empty($RequistionDetails))
{
foreach($RequistionDetails as $ReqDetails)
{
?>
<p>Indent ref:&nbsp;<?php echo $ReqDetails['RequistionNo']; ?>/<?php $date = new DateTime($ReqDetails['ReqDate'],new DateTimeZone('Asia/Kolkata')); $date=$date->format("Y-m-d"); echo $date; ?>/ dept:<?php echo $ReqDetails['RequestedDept']; ?> / ccd:<?php echo $ReqDetails['CostCenterCode']; ?> </p>
<?php
}
}
?>
<p>Please arrange to deliver the materials listed below as per schedule to our works</p>
<table style="border-collapse: collapse;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tr style="background:#8c8c8c;color:#fff;">
<th style="text-align: center;">#</th>
<th style="text-align: center;">Service Description</th>
<th style="text-align: center;">UOM</th>
<th style="text-align: center;">Qty</th>
<th style="text-align: center;">Rate In INR</th>
<th style="text-align: center;">Basic Amount In INR</th>
<td style="text-align: center;"><strong>CGST</strong> <br /><br /></td>
<td style="text-align: center;"><strong>SGST</strong> <br /><br /></td>
<td style="text-align: center;"><strong>IGST</strong> <br /><br /></td>
<td style="text-align: center;"><strong>Total Tax Amt</strong></td>
<td style="text-align: center;"><strong>Other Allow In INR</strong></td>
<td style="text-align: center;"><strong>Total Amt In INR</strong></td>
</tr>
<?php
if(!empty($POItem))
{
$index = 0;
$TotalAmount = 0;
$OrderValue = 0;
foreach($POItem as $record)
{
$index = $index + 1;
if($record->Schedule_Type=="One Time"){
$TotalAmount = ($record->BasicValue) + $record->Taxamount ;//+ $record->otherallowance;
}else if($record->Schedule_Type=="Recurring"){
$TotalAmount = ($record->BasicValue * $record->NumberOfService) + $record->Taxamount ;//+ $record->otherallowance;
}
?>
<tr style="line-height: 1.5em;">
<td style="text-align: center;"><?php echo $index ; ?></td>
<td style="text-align: center;"><?php echo $record->ServiceMaterialDescription ; ?></td>
<td style="text-align: center;"><?php echo $record->UOM ; ?></td>
<td align="right"><?php echo $record->Quantity ; ?></td>
<td align="right"><?php echo $record->Rate ; ?></td>
<td align="right"><?php if($record->Schedule_Type == "One Time"){echo number_format(($record->Quantity * $record->Rate),2,'.','');}else if($record->Schedule_Type == "Recurring"){echo number_format((($record->Quantity * $record->Rate) * $record->NumberOfService),2,'.','');} ?></td>
<td style="text-align: right;"><?php echo $record->CGST?>%</td>
<td style="text-align: right;"><?php echo $record->SGST?>%</td>
<td style="text-align: right;"><?php echo $record->IGST?>%</td>
<td style="text-align: right;"><?php echo $record->Taxamount?></td>
<td style="text-align: right;"><?php echo $record->otherallowance?></td>
<td style="text-align: right;"><?php if($record->Schedule_Type == "One Time"){echo number_format(($record->Taxamount + $record->otherallowance + ($record->Rate * $record->Quantity)),2,'.','');}else if($record->Schedule_Type == "Recurring"){echo number_format(($record->Taxamount + $record->otherallowance + ($record->Rate * $record->Quantity * $record->NumberOfService)),2,'.','');}?></td>
</tr>
<?php
$SubTotalAmount = $SubTotalAmount + $TotalAmount;
$AfterSGST =$AfterSGST + $record->After_SGST;
$AfterCGST =$AfterCGST + $record->After_CGST;
$AfterIGST = $AfterIGST + $record->After_IGST;
$otherallowances =$otherallowances + $record->otherallowance;
$totaltaxamount=$totaltaxamount+$record->Taxamount;
}
$OrderValue = $SubTotalAmount+ $otherallowances;
}
?>
</table>
<?php
$i=0;
if(!empty($POItem))
{
foreach($POItem as $x){
if($x->ParentPO != ''){
$i++;
}
}
}
if($i>0){
<div style="text-align:right;">
<?php
if ($postatus == PO_RELEASED || $postatus == PO_SERVICE_COMPLETED || $postatus == MRIR_APPROVED || $postatus == MRIR_REJECTED || $postatus == IGR_CREATED)
{ echo '<br>'; }
else
{
echo '<b>DRAFT</b>'; }
?>
<table style="border-collapse: collapse;font-size:12px;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tbody>
</div>
<p>&nbsp;</p>
<table style="border-collapse: collapse;" border="1" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="text-align: center;" colspan="3">
<p>Amended Details</p>
</td>
<td style= "text-align: center;" colspan="12"><center> <span style="font-size:24px;">PURCHASE ORDER </span></center></td>
</tr>
<tr>
<td colspan="3">
<?php
if(!empty($POItem))
{
foreach($POItem as $v)
{
echo "<b>" . $v->AmendedDetails . "</b>";
break;
}
}?>
</td>
</tr>
<tr>
<td style="text-align: center;"><strong>Item Description</strong></td>
<td style="text-align: center;" rowspan="2"><strong>Previous Details</strong></td><td style="text-align: center;" rowspan="2" ><strong>Current Details</strong></td>
</tr>
<td style="width:1px;" rowspan="2"><center><img width="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==" width="80" /></center></td>
<td style="text-align: left;" colspan="5" rowspan="2">
<span><strong style="font-size:16px;"> <?php echo $CompanyName; ?> </strong></span><br>
<span><?php echo $CompanyAddress; ?></span><br>
<span><?php echo $companyWebsit; ?></a> </span>
<span><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PAN:</strong> <?php echo $companyPan; ?></span><br>
<?php if(!empty($POItem))
{
foreach($POItem as $record)
{
echo $record->lineamenddetails ;
}
} ?>
<span>Email: <?php echo $companyEmail; ?> </span>
<span><strong>&nbsp;&nbsp;GSTIN: </strong><?php echo $companyGst; ?></span>
</td>
<td colspan="3">
<span><strong>Purchase Order No:</strong></span><br>
<span><?php echo $PONO?></span>
</td>
<td colspan="3">
<span><strong> PO Date :</strong> </span><br>
<span> <?php echo $Podt?></span>
</td>
</tr>
<tr>
<td colspan="3">
<span><strong>Supplier's Offer No</strong>:<br> <?php echo $supOfferNo; ?></span>
</td>
<td colspan="3"><strong>Contact : </strong><br> <?php echo $supRef; ?></td> </tr>
<tr>
<td colspan="4" rowspan="2"><u><strong style="font-size:16px;">Shipped From:</strong></u>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Vendor code: <?php echo $supplierVendor; ?> <!--data will come--><br /><?php echo $SuplierName?><br/><?php echo $SuplierAddress ?> <br /><strong>Email ID:</strong><?php echo $supplierEmail; ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>PAN:</strong><?php echo $supplierPan; ?><br ><strong>Our Reference:</strong><?php echo $supplierContact; ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>GSTIN:</strong><?php echo $supplierGst; ?></td>
<td rowspan="2" colspan="2"><u><strong style="font-size:16px;">Shipped To:</strong></u><br />Survey NO: 168/1C3,Pennalur Pet Road, Goonipalyam village, Uthukottai Taluk,Tiruvallur Dist,Chennai,Tamilnadu,602026.<br> <strong>State code:</strong>33 </td><!--data should be come-->
<td colspan="6"><strong>Delivery</strong> :<br><?php echo $DeliveryDate.$DeliverySchedule;?></td>
</tr>
<?php
if(!empty($RequistionDetails))
{
foreach($RequistionDetails as $ReqDetails)
{
?>
<tr>
<td><strong>Indent :</strong></td>
<td><?php echo $ReqDetails['RequistionNo']; ?></td>
<td><?php $date = new DateTime($ReqDetails['ReqDate'],new DateTimeZone('Asia/Kolkata')); $date=$date->format("d-m-Y"); echo $date; ?></td>
<td><strong>Dept:</strong> <?php echo $ReqDetails['RequestedDept']; ?></td>
<td><strong>CCD: </strong><?php echo $ReqDetails['CostCenterCode']; ?></td>
<td><strong>Fin cap:</strong><?php echo $finCap; ?></td>
</tr>
<?php } } ?>
</tbody>
</table>
</div>
<div class="page" style="height:85%;">
<p><strong>Mode of Shipment</strong>: <?php echo $modShp; ?></p>
<p><strong>Insurance </strong>:<?php echo $insNo; ?></p>
<p>Please arrange to deliver the materials listed below as per schedule to our works</p>
<table style="border-collapse: collapse; height: 36px; width: 100%;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="text-align: center;"><strong>S#</strong></td>
<td style="text-align: center;"><strong>SERVICE DESCRIPTION</strong></td>
<td style="text-align: center;"><strong>UOM</strong></td>
<td style="text-align: center;"><strong>QTY</strong></td>
<td style="text-align: center;"><strong>RATE Rs</strong></td>
<td style="text-align: center;"><strong>PER</strong></td>
</tr>
<tr><td></td><td style="text-align: center;"> <strong><?php echo $serviceDescription; ?></strong></td><td></td><td></td><td></td><td></td></tr>
<?php
if(!empty($POItem))
{
$index = 0;
$TotalAmount = 0;
$OrderValue = 0;
$BasicAmount = 0.00;
foreach($POItem as $record)
{
$index = $index + 1;
if($record->Schedule_Type=="One Time"){
$TotalAmount = ($record->BasicValue) + $record->Taxamount ;//+ $record->otherallowance;
$BasicAmount = $BasicAmount + $record->BasicValue;
}else if($record->Schedule_Type=="Recurring"){
$TotalAmount = ($record->BasicValue * $record->NumberOfService) + $record->Taxamount ;//+ $record->otherallowance;
$BasicAmount = $BasicAmount + ($record->BasicValue * $record->NumberOfService);
}
?>
<tr style="line-height: 1em;">
<td style="text-align: center;"><?php echo $index ; ?></td>
<td><?php echo $record->ServiceMaterialDescription ; ?></td>
<td style="text-align: center;"><?php echo $record->UOM ; ?></td>
<td style="text-align: center;"><?php echo $record->Quantity ; ?>&nbsp;</td>
<td style="text-align: center;"><?php echo $record->Rate ; ?>&nbsp;</td>
<td style="text-align: center;"><?php echo $record->Per; ?></td><!--per data should be come-->
</tr>
<?php
$SubTotalAmount = $SubTotalAmount + $TotalAmount;
$AfterSGST =$AfterSGST + $record->After_SGST;
$AfterCGST =$AfterCGST + $record->After_CGST;
$AfterIGST = $AfterIGST + $record->After_IGST;
$otherallowances =$otherallowances + $record->otherallowance;
$totaltaxamount=$totaltaxamount+$record->Taxamount;
}
$OrderValue = $SubTotalAmount+ $otherallowances;
}
?>
</tbody>
</table>
<p>&nbsp;</p>
<?php
$i=0;
if(!empty($POItem))
{
foreach($POItem as $x){
if($x->ParentPO != ''){
$i++;
}
}
}
if($i>0){
?>
<table style="border-collapse: collapse;font-size:12px;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tbody>
<tr>
<td style="text-align: center;" colspan="3">
<p>Amended Details</p>
</td>
</tr>
<tr>
<td colspan="3">
<?php
if(!empty($POItem))
{
foreach($POItem as $v)
{
echo "<b>" . $v->AmendedDetails . "</b>";
break;
}
}?>
</td>
</tr>
<tr>
<td style="text-align: center;"><strong>Item Description</strong></td>
<td style="text-align: center;" rowspan="2"><strong>Previous Details</strong></td><td style="text-align: center;" rowspan="2" ><strong>Current Details</strong></td>
</tr>
<?php if(!empty($POItem))
{
foreach($POItem as $record)
{
echo $record->lineamenddetails ;
}
} ?>
</tbody>
</table>
<?php
}?>
<span><b>Tax and other details:</b></span>
<table style="border-collapse: collapse; height: 36px;" border="1" width="60%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="text-align: center;"><strong>S#</strong></td>
<td style="text-align: center;"><strong>CGST%</strong></td>
<td style="text-align: center;"><strong>SGST%</strong></td>
<td style="text-align: center;"><strong>IGST%</strong></td>
<td style="text-align: center;"><strong>OTHERS</strong></td>
</tr>
<?php
if(!empty($serviceTaxList))
{
foreach($serviceTaxList as $st)
{ ?><tr>
<td style="text-align: center;"><?php echo $st->Itemcode?></td>
<td style="text-align: center;"><?php echo $st->CGST?></td>
<td style="text-align: center;"><?php echo $st->SGST?></td>
<td style="text-align: center;"><?php echo $st->IGST?></td>
<td style="text-align: center;"><?php echo $st->otherallowance?></td>
<?php
}
}?>
</tr>
</tbody>
</table>
<?php
}?>
<p><strong>Payment Terms:</strong>&nbsp;<?php echo $PaymentTerms ."&nbsp;&nbsp;".$PaymentOtherDescription;?></p>
&nbsp;
<div align="Left"> <b>Scope Of Work As Annexure :</b><br/><?php echo $ServiceDescription;?></div>
<div align="right">
&nbsp;
<p style="text-align: left;"><strong> Scope of work:</strong></p>
<p style="text-align: left;"><?php echo $ServiceDescription;?></p>
<table style="border-collapse: collapse;font-size:14px;" cellpadding="0" cellspacing="0" border="1" width="100%">
<tbody>
<tr>
<td style="text-align: center;" rowspan="5"><strong>Total Amount In Words</strong><br /><br /><em><?php echo $TotalAmountInWords;?></em></td>
<td style="text-align: right;"><strong>Total Amount Before Tax In INR&nbsp;&nbsp;</strong></td>
<td style="text-align: right;"><?php echo number_format(($OrderValue - $totaltaxamount),2,'.','')?></td>
</tr>
<tr>
<td style="text-align: right;"><strong>Total Tax Amount In INR&nbsp;&nbsp;</strong></td>
<td style="text-align: right;"><?php echo number_format($totaltaxamount,2,'.','');?> </td>
</tr>
<tr>
<td style="text-align: right;"><strong>Total Amount After Tax In INR&nbsp;&nbsp;</strong></td>
<td style="text-align: right;"><?php echo number_format($OrderValue,2,'.','');?></td>
</tr>
<tr>
<td style="text-align: right;"><strong>Advance Amount Paid In INR&nbsp;&nbsp;</strong></td>
<td style="text-align: right;"><?php echo number_format($advance,2,'.','');?></td>
</tr>
<tr>
<td style="text-align: right;"><strong>Balance Needs to be pay In INR&nbsp;&nbsp;</strong></td>
<td style="text-align: right;"><?php echo number_format(($OrderValue-$advance),2,'.','');?></td>
</tr>
<tr>
<td>
<?php
if(!empty($releasedetails)){
$releasedOn = '';
foreach($releasedetails as $detail){
$releasedOn= new DateTime($detail->ReleasedOn, new DateTimeZone('Asia/Kolkata'));
?>
<table style="border-collapse: collapse;" border="1" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td colspan="4" rowspan="3">
<span><strong>Payment terms :</strong><br><?php echo $PaymentTerms ."&nbsp;&nbsp;".$PaymentOtherDescription;?></span>
</td>
<td style="text-align: center;"><strong>Total Amount Rs</strong></td>
<td style="text-align: center;"><strong>Total CGST Amount in Rs</strong></td>
<td style="text-align: center;"><strong>Total SGST Amount in Rs</strong></td>
<td style="text-align: center;"><strong>Total IGST Amount in Rs</strong></td>
<td style="text-align: center;"><strong>Others Rs</strong></td>
<td style="text-align: center;"><strong>Total Tax Rs</strong></td>
<td style="text-align: center;"><strong>Order value Rs</strong></td>
</tr>
<tr>
<td style="text-align: right;"><?php echo number_format(($BasicAmount),2,'.','')?>&nbsp;</td>
<td style="text-align: right;"><?php echo number_format(($AfterCGST),2,'.','')?>&nbsp;</td>
<td style="text-align: right;"><?php echo number_format(($AfterSGST),2,'.','')?>&nbsp;</td>
<td style="text-align: right;"><?php echo number_format(($AfterIGST),2,'.','')?>&nbsp;</td>
<td style="text-align: center;"><?php echo number_format(($otherallowances),2,'.','')?>&nbsp;</td>
<td style="text-align: right;"><?php echo number_format(($AfterCGST+$AfterSGST+$AfterIGST),2,'.','')?>&nbsp;</td>
<td style="text-align: right;"><?php echo number_format(($BasicAmount+$AfterCGST+$AfterSGST+$AfterIGST+$otherallowances),2,'.','')?>&nbsp;</td>
</tr>
<tr>
<td colspan="7">
<p><strong>Order value in words: </strong><?php echo $TotalAmountInWords;?></p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="footer">
<table style="border-collapse: collapse; height: 8px;" border="1" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<p><b>Note:</b> Please acknowledge receipt of this order for acceptance<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Material to be delivered to our stores before 3pm<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Please refer order number and item code in your challan/invoice</p>
<?php
if(!empty($releasedetails)){
$releasedOn = '';
foreach($releasedetails as $detail){
$releasedOn= new DateTime($detail->ReleasedOn, new DateTimeZone('Asia/Kolkata'));
?>
<div align="Left"> Released By : <?php echo $detail->FirstName;?></div>
<div align="Left"> Released On : <?php echo $releasedOn->format('d-m-Y');?></div>
<?php
}
}
else { }
?>
</td>
<td style="text-align: right;">
<p>For SIDDHARTH INDUSTRIES</p>
<p>&nbsp;</p>
<div align="Left"> <b>&nbsp;Released By : </b><?php echo $detail->FirstName;?></div>
<div align="Left"> <b>&nbsp;Released On : </b><?php echo $releasedOn->format('d-m-Y');?></div>
<?php
}
}
else {
?>
<?php } ?>
</td>
<td style="text-align: center;" colspan="2">
<p>&nbsp;</p>
<p>Authorized Signatory</p>
</td>
</tr>
</tbody>
</table>
</div>
&nbsp;
<p>Note:&nbsp;Please acknowledge receipt of this order for acceptance</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Material to be delivered to our stores before 3pm &nbsp;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Please refer order number and item code in your challan/invoice&nbsp; &nbsp; &nbsp; &nbsp;</p>
<p>&nbsp;</p>
</div>-->
<div style="border:2px solid #333;font-size:12px;">
<div class="header">
<div style="text-align:right;">
<?php
if ($postatus == PO_RELEASED || $postatus == PO_SERVICE_COMPLETED || $postatus == MRIR_APPROVED || $postatus == MRIR_REJECTED || $postatus == IGR_CREATED)
{ }
else
{
echo '<div><b>DRAFT</b> </div>';
}
?>
</div>
<div>&nbsp;</div>
<table style="border-collapse: collapse;" border="1" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style= "text-align: center;" colspan="9"><center> <span style="font-size:24px;">PURCHASE ORDER </span></center></td>
</tr>
<tr>
<td style="background-color:#2c0101;"><center><img 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==" width="80" /></center></td>
<td style="text-align: left;" colspan="2">
<span><strong>Siddharth Industries</strong></span>
<span> Survey NO: 168/1C3,Pennalur Pet Road,<br> Goonipalyam village, Uthukottai Taluk,Tiruvallur Dist, <br>Chennai,Tamilnadu,602026. </span><br>
<span><strong><a href="http://www.Sidharthindustries.com">www.Sidharthindustries.com</a></strong></span><br>
<span><strong>GSTIN: 33BCHPS1840J1ZJ </strong></span><br>
<span><strong>PAN: BCHP6184J</strong></span><br>
<span><strong>Email: purchase@sidharthindustries.com</strong></span>
</td>
<td colspan="3">
<span><strong>Purchase Order No:</strong></span>
<span>SI/30001/17 - 18/S</span>
</td>
<td colspan="3">
<span><strong>PO Date :</strong></span>
<span>25-08-2017</span>
&nbsp;</td>
</tr>
<tr>
<td colspan="2" rowspan="3"><strong>Shipped From</strong>:<br />HYDRO POWER PRODUCTS<br />No, 31, Pillaiyar Koil street (Near Kasi Theatre) Jafferkhanpet,Chennai,Tamilnadu,600 083<br />GSTIN: PAN:<br />Email ID:<br />Vendor code:&nbsp;</td>
<td rowspan="3"><strong>Shipped To</strong>:<br />Survey NO: 168/1C3,Pennalur Pet Road, Goonipalyam village, Uthukottai Taluk,Tiruvallur Dist,Chennai,Tamilnadu,602026.<br />State code:33 </td>
<td colspan="2">
<span><strong> Supplier's Offer No</strong>: SC265/030</span>
</td>
<td colspan="4">&nbsp;<strong>Our Reference(s)</strong><br /><strong>Contact</strong>: Mr.D.Viswanathan</td>
</tr>
<tr>
<td colspan="6"><strong>Delivery</strong> : 29-08-2017</td>
</tr>
<tr>
<td>Indent :</td>
<td>REQ001</td>
<td>24-08-2017</td>
<td>Dept: PRODN CCD: T01</td>
<td>CCD: T01</td>
<td>Fin cap:854944</td>
</tr>
</tbody>
</table>
</div>
<p><strong>Supplier Reference</strong>: Mr.M.Arun</p>
<p><strong>Cell</strong>: 9381320202</p>
<p><strong>Mode of Shipment</strong>: By road</p>
<p><strong>Insurance Policy No</strong>: AA5683WE45</p>
<p>Please arrange to deliver the materials listed below as per schedule to our works</p>
<table style="border-collapse: collapse; height: 36px; width: 100%;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="text-align: center;"><strong>&nbsp;S.No</strong></td>
<td style="text-align: center;"><strong>&nbsp;SERVICE DESCRITION</strong></td>
<td style="text-align: center;">&nbsp;<strong>UOM</strong></td>
<td style="text-align: center;"><strong>&nbsp;QTY</strong></td>
<td style="text-align: center;">&nbsp;<strong>RATE </strong></td>
<td style="text-align: center;">&nbsp;<strong>PER</strong></td>
</tr>
<tr>
<td>1</td>
<td>(G85215523056,DS45116203717-up to 50kg)</td>
<td>Nos</td>
<td style="text-align: right;">2</td>
<td style="text-align: right;">4250</td>
<td>Nos</td>
</tr>
<tr>
<td>2</td>
<td>(G85215523542,DS45116203803-60 to 150 kg)</td>
<td>Nos</td>
<td style="text-align: right;">2</td>
<td style="text-align: right;">4890</td>
<td>Nos</td>
</tr>
<tr>
<td>3</td>
<td>(45114159809 600kg-2000kg)</td>
<td>Nos</td>
<td style="text-align: right;">2</td>
<td style="text-align: right;">7860</td>
<td>Nos</td>
</tr>
<tr>
<td>4</td>
<td>60 to 150 kg-DS45116203803</td>
<td>Nos</td>
<td style="text-align: right;">2</td>
<td style="text-align: right;">1500</td>
<td>Nos</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<table style="border-collapse: collapse; height: 36px;" border="1" width="60%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="text-align: center;"><strong>S.No</strong></td>
<td style="text-align: center;"><strong>CGST%</strong></td>
<td style="text-align: center;"><strong>SGST%</strong></td>
<td style="text-align: center;"><strong>IGST%</strong></td>
<td style="text-align: center;"><strong>OTHERS</strong></td>
</tr>
<tr>
<td>1</td>
<td style="text-align: right;">5</td>
<td style="text-align: right;">5</td>
<td style="text-align: right;">NA</td>
<td style="text-align: right;">Nil</td>
</tr>
<tr>
<td>2</td>
<td style="text-align: right;">5</td>
<td style="text-align: right;">5</td>
<td style="text-align: right;">NA</td>
<td style="text-align: right;">Nil</td>
</tr>
<tr>
<td>3</td>
<td style="text-align: right;">5</td>
<td style="text-align: right;">5</td>
<td style="text-align: right;">NA</td>
<td style="text-align: right;">Nil</td>
</tr>
</tbody>
</table>
<p style="text-align: left;"><strong> Scope of work:</strong></p>
<p style="text-align: left;">1.The Asc is for the period of one year from 01-08-2017 to 30-07-2018.</p>
<p style="text-align: left;">2.The parts for the service to be replaced during the ASC other than a specified in serial &nbsp; &nbsp; &nbsp; &nbsp;NO 7 of your offer&nbsp;</p>
<table style="border-collapse: collapse;" border="1" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td rowspan="3">
<span><strong>Payment terms</strong> :</span>
<span>100 % Against performa </span>
</td>
<td style="text-align: center;"><strong>Total Amount</strong></td>
<td style="text-align: center;"><strong>CGST</strong></td>
<td style="text-align: center;"><strong>SGST</strong></td>
<td style="text-align: center;"><strong>IGST</strong></td>
<td style="text-align: center;"><strong>Others</strong></td>
<td style="text-align: center;"><strong>Total Tax</strong></td>
<td style="text-align: center;"><strong>Order value</strong></td>
</tr>
<tr>
<td style="text-align: right;">27,640.00</td>
<td style="text-align: right;">2,764.00</td>
<td style="text-align: right;">2,764.00</td>
<td style="text-align: right;">0.00</td>
<td style="text-align: center;">-</td>
<td style="text-align: right;">5,528.00</td>
<td style="text-align: right;">33,168.00</td>
</tr>
<tr>
<td colspan="7">
<p>Order value in words: Rupees Thirty Three thousand one sixty eight.</p>
</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<table style="border-collapse: collapse; height: 8px;" border="1" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<p>&nbsp;Note: Please acknowledge receipt of this order for acceptance<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Material to be delivered to our stores before 3pm<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Please refer order number and item code in your challan/invoice</p>
<p>Released By : Management<br />Released On : 25-08-2017</p>
</td>
<td style="text-align: right;">
<p>For SIDDHARTH INDUSTRIES</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Authorised signatory</p>
</td>
</tr>
</tbody>
</table>
<p style="text-align: center;">This is a system generated purchase order</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Authorised signatory</p>
</td>
</tr>
<tr><td colspan="2"><p style="text-align: center;">This is a system generated purchase order</p></td></tr>
</tbody>
</table>
Page: <span class="pagenum"></span>
</div>
</div>