Currency_Code . ' ' . ' - ' . ' ' . $Detail->Country_and_Currency; $CurCode = $Detail->Currency_Code; } if (!empty($AvlBudAmt)) { $AvlAmount = $AvlBudAmt; } //echo $AvlBudAmt; foreach ($PaymentTerms as $TER) { $Terms = $TER->PaymentTerms; } $dt = new DateTime('now', new DateTimeZone('Asia/Kolkata')); $CurrentDate = $dt->format('d-m-Y'); $MaxPoDate = ''; if (!empty($MaxPODate)) { foreach ($MaxPODate as $date) { $MaxPoDate = $date->PODate; } } $INR = ''; $INRSYM = ''; if (!empty($INRSYMBOL)) { foreach ($INRSYMBOL as $INR) { $INRSYM = $INR->Currency_Code; $INR = $INR->FontCode2000; } } //echo $INR; $CompanyAddress = ''; if (!empty($CompanyDetails)) { foreach ($CompanyDetails as $Req) { $CompanyAddress = $Req->Address; } } $SupId = ''; $SupName = ''; $Address = ''; $PODate = ''; $Deliverydt = ''; $DeliveryAddress = ''; $PONOStatus = ''; $PONO = ''; $ServiceDescription = ''; $TotalLanding = 0.00; $tothighseas = 0.00; $totcustom = 0.00; $totexciseduty = 0.00; $totexcisedutyED = 0.00; $totexciseSH = 0.00; $totcustomED = 0.00; $totcustomSH = 0.00; $totaddtnlexcise = 0.00; $totgrossduty = 0.00; $totavlmodvat = 0.00; $totgrossexpense = 0.00; $totordervalue = 0.00; $ExchangeRate = 0.00; $totorder = 0.00; $totfreight = 0.00; //$ExchangeRate $ExchangeRateCalculatedon = ''; $StatusName = ''; $Reqon = ''; $Requestedby = ''; $RequesterName = ''; $BudgetType = ''; $PrePOFile = ''; if (!empty($POMaster)) { foreach ($POMaster as $Req) { $SupId = $Req->SupplierID; $SupName = $Req->SupplierName; $Address = $Req->MSME ? "MSME : " . $Req->MSME . "\n" . $Req->Address : $Req->Address; $Pdt = new DateTime($Req->PODate); $PODate = $Pdt->format('d-m-Y'); $Ddt = new DateTime($Req->DeliveryDate); $Deliverydt = $Ddt->format('d-m-Y'); $DeliveryAddress = $Req->DeliveryAddress; $PONOStatus = $Req->StatusCode; $PONO = $Req->PONO; $ServiceDescription = $Req->ServiceDescription; $ExchangeRate = number_format(($Req->ExchangeRate), 2); $EDt = new DateTime($Req->ExchangeRateCalculatedon); $ExchangeRateCalculatedon = $EDt->format('d-m-Y'); // $ExchangeRateCalculatedon=$Req->ExchangeRateCalculatedon; $PaymentTerms = $Req->PaymentTerms; // $PayableAT=$Req->PayableAT; // $PaymentDays=$Req->PaymentDays; $StatusName = $Req->StatusName; $Import_DispatchDetails = $Req->Import_DispatchDetails; $Import_PlaceofOrgin = $Req->Import_PlaceofOrgin; $DeliverySchedule = $Req->DeliverySchedule; $ServiceDescription = $Req->ServiceDescription; $DeliveryOption = $Req->DeliveryOption; $Orderedsum = $Req->TotalOrderValue; $Shipmentmode = $Req->Mode_Of_Shipment; $SupplierRef = $Req->Supplier_Reference; $SupOfferno = $Req->Supplier_Offer_No; $Otherref = $Req->Other_Reference; $Otherpay = $Req->PaymentOtherDescription; $Insurance = $Req->InsuranceStatus; $InsuranceNumber = $Req->InsuranceNumber; $Importoption = $Req->POSubType; $InsuranceStatus = $Req->InsuranceStatus; $BudgetType = $Req->BudgetType; $PrePOFile = $Req->POFile; } } //$AvilableBudget=0; //echo $InsuranceStatus; $SavedSum = $Orderedsum * $ExchangeRate; //echo $SavedSum; $AvilableBudget = $SavedSum + $AvlAmount; //echo $AvilableBudget; if (!empty($RequistionDetails)) { foreach ($RequistionDetails as $ReqDet) { // $Reqon=$ReqDet->ReqDate; $Reqonn = new DateTime($ReqDet->ReqDate); $Reqon = $Reqonn->format('Y-m-d'); $Requestedby = $ReqDet->Requestedby; $RequesterName = $ReqDet->FirstName; //$Status=$ReqDet->Status; } } //echo $RequesterName; // foreach ($POSTATUS as $PST ) // { // $POStatus=$PST->StatusName; // } //echo "$POStatus"; ?>