Currency_Code.' '.' - '.' '.$Detail->Country_and_Currency; } //echo $Cur; foreach ($PaymentTerms as $TER) { $Terms=$TER->PaymentTerms; } //echo $Terms; $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; } } if(!empty($AvlBudAmt)) { $AvlAmount = $AvlBudAmt; } //echo $AvlBudAmt;; $CompanyAddress = ''; if(!empty($CompanyDetails)) { foreach ($CompanyDetails as $Req) { $CompanyAddress = $Req->Address; } } $INR=''; $INRSYM=''; if(!empty($INRSYMBOL)) { foreach ($INRSYMBOL as $INR) { $INRSYM=$INR->Currency_Code; $INR=$INR->FontCode2000; } } //echo $INR; //echo "$CompanyAddress"; //$Exchangerate=$ExchangeRate; $index = 0; $SupId = ''; $SupName = ''; $Address = ''; $PODate = ''; $Deliverydt =''; $DeliveryAddress =''; $PONOStatus=''; $PONO = ''; $ServiceDescription = ''; $TotalLanding=0; $tothighseas=0; $totcustom=0; $totexciseduty=0; $totexcisedutyED=0; $totexciseSH=0; $totcustomED=0; $totcustomSH=0; $totaddtnlexcise=0; $totgrossduty=0; $totavlmodvat=0; $totgrossexpense=0; $totordervalue=0; $totfreight=0; $ExchangeRate=0; $totorder=0; $totassesable=0; $totSubtotal=0; $totigst=0; $Cur=''; $Currency_Type=''; $PayableAT=''; //$ExchangeRate $ExchangeRateCalculatedon=''; $StatusName=''; $Import_DispatchDetails=''; $Import_PlaceofOrgin=''; $DeliveryOption=''; $Orderedsum=''; $PaymentTermsCode=''; $Shipmentmode=''; $SupplierRef=''; $SupOfferno=''; $Otherref=''; $Fincap=''; $BudgetType = ''; if(!empty($POMaster)) { foreach ($POMaster as $Req) { $SupId = $Req->SupplierID; $SupName = $Req->SupplierName; $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); //echo "$ExchangeRate"; $EDt = new DateTime($Req->ExchangeRateCalculatedon); $ExchangeRateCalculatedon = $EDt->format('d-m-Y'); $PaymentTerms=$Req->PaymentTerms; // $PayableAT=$Req->PayableAT; // $PaymentDays=$Req->PaymentDays; $StatusName=$Req->StatusName; $Currency_Type=$Req->CurrencyType; $parentPO =$Req->ParentPO; $DeliverySchedule=$Req->DeliverySchedule; $Import_DispatchDetails=$Req->Import_DispatchDetails; $Import_PlaceofOrgin=$Req->Import_PlaceofOrgin; $PaymentTerms=$Req->PaymentTerms; $DeliveryOption=$Req->DeliveryOption; $ServiceDescription=$Req->ServiceDescription; $Orderedsum=$Req->TotalOrderValue; $PaymentTermsCode=$Req->PaymentOtherDescription; $Shipmentmode=$Req->Mode_Of_Shipment; $SupplierRef=$Req->Supplier_Reference; $SupOfferno=$Req->Supplier_Offer_No; $Otherref=$Req->Other_Reference; $Fincap=$Req->Fincap; $Insurance=$Req->InsuranceStatus; $InsuranceNo=$Req->InsuranceNumber; $Importoption=$Req->POSubType; $BudgetType = $Req->BudgetType; } } //echo $InsuranceNo; $ins=''; if($Insurance==1) { $ins='YES'; } else { $ins='NO'; } $SavedSum=$Orderedsum*$ExchangeRate; //echo $SavedSum; $AvilableBudget=$SavedSum+$AvlAmount; //echo $AvilableBudget; //echo $PaymentTermsCode; if(!empty($RequistionDetails)) { foreach ($RequistionDetails as $ReqDet) { // $Reqon=$ReqDet->ReqDate; $Reqonn=new DateTime($ReqDet->ReqDate); $Reqon=$Reqonn->format('d-m-Y'); $Requestedby=$ReqDet->Requestedby; $RequesterName=$ReqDet->FirstName; //$Status=$ReqDet->Status; } } if(!empty($getlogpodtl)) { foreach ($getlogpodtl as $values ) { $update=$values->FirstName; } } ?>