format('d-m-Y'); $MaxPoDate = ''; $AvlAmount = 0; $DeliverSchedule=''; $DeliverOption=''; $StatusName=''; $modeofshipment=''; $supplierref=''; $suppofferno=''; $otherref=''; $fincap=''; $revenuesubtype=''; $insurencestatus=''; $insurenceno=''; if(!empty($MaxPODate)) { foreach ($MaxPODate as $date) { $MaxPoDate = $date->PODate; } } if(!empty($CompanyDetails)) { foreach ($CompanyDetails as $Req) { $CompanyAddress = $Req->Address; } } if(!empty($AvlBudAmt)) { $AvlAmount = number_format($AvlBudAmt, 2, '.', ''); } if(!empty($INRSYMBOL)) { foreach($INRSYMBOL as $INRS) { $INRSYM=$INRS->FontCode2000; } } foreach ($PaymentTerms as $TER) { $Terms=$TER->PaymentTerms; } $SupId = ''; $SupName = ''; $Address = ''; $PODate = ''; $Deliverydt =''; $DeliveryAddress =''; $PONOStatus = ''; $PONO = ''; $totBasicAmt = 0; $totDiscountAmt = 0.0; $totPackagingAmt = 0.0; $totCgst = 0.0; $totSgst = 0.0; $totIgst = 0.0; $totFreightAmt = 0.0; $totInsuranceAmt = 0.0; $totOrderSummaryAmt = 0.0; $ServiceDescription = ''; $CapitalRange = ''; $otherPayment=''; if(!empty($POMaster)) { //print_r($POMaster); //print_r($POItem); 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); $Deliverydt = $Ddt->format('d-m-Y'); $DeliveryAddress =$Req->DeliveryAddress; $PONOStatus = $Req->StatusCode; $PONO = $Req->PONO; $ServiceDescription = $Req->ServiceDescription; $CapitalRange = $Req->CapitalRange; $StatusName=$Req->StatusName; $otherPayment = $Req->PaymentOtherDescription; $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; // echo $insurenceno; // echo $otherPayment; } } if(!empty($RequistionDetails)) { foreach ($RequistionDetails as $ReqDet) { $Reqonn=new DateTime($ReqDet->ReqDate); $Reqon=$Reqonn->format('d-m-Y'); // $Pdt = new DateTime($Req->PODate); // $PODate = $Pdt->format('Y-m-d'); $Requestedby=$ReqDet->Requestedby; $RequesterName=$ReqDet->FirstName; //$Status=$ReqDet->Status; } } // foreach ($POSTATUS as $PST ) // { // $POStatus=$PST->StatusName; // } ?>