format('d-m-Y');
$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;
//echo $AvlAmount;
}
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;
$PaymentOtherDescription='';
$ServiceDescription = '';
$taxrange="";
$modeofshipment='';
$supplierref='';
$suppofferno='';
$otherref='';
$fincap='';
$revenuesubtype='';
$insurencestatus='';
$insurenceno='';
$BudgetType = '';
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('d-m-Y');
$DeliverOption = $Req->DeliveryOption;
$DeliverSchedule = $Req->DeliverySchedule;
$Ddt = new DateTime($Req->DeliveryDate);
//echo $Req->DeliveryDate."
";
$Deliverydt = $Ddt->format('d-m-Y');
//echo $Deliverydt;
$PaymentOtherDescription=$Req->PaymentOtherDescription;
//echo $PaymentOtherDescription;
$DeliveryAddress =$Req->DeliveryAddress;
$POStatus = $Req->StatusName;
$PONO = $Req->PONO;
$taxrange=$Req->PORange;
//echo $taxrange . "t";
$ServiceDescription = $Req->ServiceDescription;
$modeofshipment = $Req->Mode_Of_Shipment;
$supplierref = $Req->Supplier_Reference;
$suppofferno = $Req->Supplier_Offer_No;
$otherref = $Req->Other_Reference;
$fincap = $Req->Fincap;
$revenuesubtype = $Req->POSubType;
$insurencestatus = $Req->InsuranceStatus;
$insurenceno = $Req->InsuranceNumber;
$BudgetType = $Req->BudgetType;
}
}
//echo $BudgetType;
if(!empty($RequistionDetails))
{
foreach ($RequistionDetails as $ReqDet)
{
$Reqon=$ReqDet->ReqDate;
$Requestedby=$ReqDet->Requestedby;
//echo $ReqDet->FirstName . "3";die();
if( $Requestedby != '' )
{
$RequesterName=$ReqDet->FirstName;
}
$Status=$ReqDet->Status;
}
}
//echo $ServiceDescription;
foreach ($POSTATUS as $PST )
{
$POStatus=$PST->StatusName;
}
if(!empty($INRSYMBOL))
{
foreach($INRSYMBOL as $INRS)
{
$INRSYM=$INRS->FontCode2000;
}
}
?>