format('Y-m-d');
$MaxPoDate = '';
$AvlAmount = 0;
$DeliverSchedule='';
$DeliverOption='';
$RowCount = 0;
if(!empty($MaxPODate))
{
foreach ($MaxPODate as $date)
{
$MaxPoDate = $date->PODate;
}
}
if(!empty($CompanyDetails))
{
foreach ($CompanyDetails as $Req)
{
$CompanyAddress = $Req->Address;
}
}
if(!empty($AvlBudAmt))
{
$AvlAmount = $AvlBudAmt;
}
foreach ($PaymentTerms as $TER)
{
$Terms=$TER->PaymentTerms;
}
$SupId = '';
$SupName = '';
$Address = '';
$PODate = '';
$Deliverydt ='';
$DeliveryAddress ='';
$POStatus = '';
$PONO = '';
$totBasicAmt = 0;
$totDiscountAmt = 0.0;
$totPackagingAmt = 0.0;
$totExciseAmt = 0.0;
$totVATAmt = 0.0; //FOR SGST
$totCSTAmt = 0.0;//FOR CGST
$totGSTAmt = 0.0;//FOR IGST
$totOtherTaxAmt = 0.0;
$totFreightAmt = 0.0;
$totInsuranceAmt = 0.0;
$totOrderSummaryAmt = 0.0;
$ServiceDescription = '';
if(!empty($POMaster))
{
// print_r($POMaster);
// print_r($Payment);
// echo "****";
// print_r($PaymentTerms);
foreach ($POMaster as $Req)
{
$SupId = $Req->SupplierID;
$SupName = $Req->SupplierName;
$Address = $Req->Address;
$Pdt = new DateTime($Req->PODate);
$PODate = $Pdt->format('Y-m-d');
$DeliverOption = $Req->DeliveryOption;
$DeliverSchedule = $Req->DeliverySchedule;
$Ddt = new DateTime($Req->DeliveryDate);
echo $Req->DeliveryDate."
";
$Deliverydt = $Ddt->format('Y-m-d');
echo $Deliverydt;
$DeliveryAddress =$Req->DeliveryAddress;
$POStatus = $Req->StatusCode;
$PONO = $Req->PONO;
$ServiceDescription = $Req->ServiceDescription;
$PayableAT=$Req->PayableAT;
$PaymentDays=$Req->PaymentDays;
}
}
if(!empty($RequistionDetails))
{
foreach ($RequistionDetails as $ReqDet)
{
$Reqon=$ReqDet->ReqDate;
$Requestedby=$ReqDet->Requestedby;
//$Status=$ReqDet->Status;
}
}
//echo $ServiceDescription;
foreach ($POSTATUS as $PST )
{
$POStatus=$PST->StatusName;
}
?>