Siddharth Industries - Amend Import Purchase Order-
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('Y-m-d'); $MaxPoDate = ''; if(!empty($MaxPODate)) { foreach ($MaxPODate as $date) { $MaxPoDate = $date->PODate; } } $INR=''; if(!empty($INRSYMBOL)) { foreach ($INRSYMBOL as $INR) { $INR=$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; //$ExchangeRate $ExchangeRateCalculatedon=''; $StatusName=''; if(!empty($POMaster)) { foreach ($POMaster as $Req) { $SupId = $Req->SupplierID; $SupName = $Req->SupplierName; $Address = $Req->Address; $Pdt = new DateTime($Req->PODate); $PODate = $Pdt->format('Y-m-d'); $Ddt = new DateTime($Req->DeliveryDate); $Deliverydt = $Ddt->format('Y-m-d'); $DeliveryAddress =$Req->DeliveryAddress; $PONOStatus = $Req->StatusCode; $PONO = $Req->PONO; $ServiceDescription = $Req->ServiceDescription; $ExchangeRate=number_format(($Req->ExchangeRate),2); $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; } } 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"; ?>