CompanyName; $CompanyAddress = $CO->Address; $companyEmail=$CO->EmailAddress; $companyGst=$CO->GSTNO; $companyPan=$CO->PAN; $companyWebsit=$CO->companyWebsite; $CompanyStateCode=$CO->StateCode; } } foreach ($GetPoFormat[0] as $For) { $PONO = $For; } if(!empty($POItem)) { foreach ($POItem as $PO) { $ReqNo=$PO->ReqNo; $postatus= $PO->Status; $SuplierName = $PO->SupplierName; $SuplierAddress = $PO->Address; $DeliveryAddress = $PO->DeliveryAddress; $advance=$PO->AdvanceAmount; $dt = new DateTime($PO->PODate, new DateTimeZone('Asia/Kolkata')); $Podt = $dt->format('d-m-Y'); if($PO->DeliveryOption=='1'){ $DeliveryDate = ''; $DeliverySchedule = $PO->DeliverySchedule; $dispatch=""; } else if($PO->DeliveryOption=='0'){ $dispatch=""; $dtDe = new DateTime($PO->DeliveryDate, new DateTimeZone('Asia/Kolkata')); $DeliveryDate = $dtDe->format('d-m-Y'); $DeliverySchedule = ''; }else if($PO->DeliveryOption=='2'){ $DeliveryDate=''; $DeliverySchedule = ''; $dispatch=$PO->Import_DispatchDetails; } $ServiceDescription =$PO->ServiceDescription; $finCap=$PO->Fincap; $modShp=$PO->Mode_Of_Shipment; if($PO->InsuranceNumber==''){ $insNo = 'No'; } else{ $insNo=$PO->InsuranceNumber; } $supRef=$PO->Supplier_Reference; $supOfferNo=$PO->Supplier_Offer_No; $supplierEmail=$PO->EmailAddress; $supplierGst=$PO->GSTNO; $supplierPan=$PO->PAN; $supplierContact=$PO->ContactNumber; $ourRef=$PO->Other_Reference; $supplierVendor=$PO->SupplierID; $CostCenterCode=$PO->CostCenterCode; $PaymentTerms=$PO->PaymentTerms; if($PaymentTerms=='Others'){ $PaymentTerms=$PO->PaymentOtherDescription; } $CapitalRange=$PO->CapitalRange; $TotalOrderValue=$PO->TotalOrderValue; } } $currencyCode =''; $currencyName=''; if(!empty($CurrencySymbol)) { foreach ($CurrencySymbol as $Curr) { $currencyCode = $Curr->FontCode2000; $currencyName = $Curr->Currency_Code; } } ?>

Please arrange to deliver the materials/ services listed below as per schedule to our works
SNo ITEM CODE ITEM DESCRIPTION HSN UOM  QTY RATE PER
MaterialCode;?> MaterialName. $record->ServiceMaterialDescription ; ?> HSNCODE)){echo $record->HSNCODE;}else {echo "NIL";}?> UOM; ?> Quantity ; ?> Rate),2) ; ?> Per ; ?>


ParentPO != ''){ $i++; } } } if($i>0){ ?> lineamd)){ echo $record->lineamd ; } } } ?>

Amended Details

AmendedDetails)) { echo "" . $v->AmendedDetails . ""; break; } } }?>
Item Description Current Details Revised Details
Total Current Total Order :partenttotalorder ?> Revised Total Order :TotalOrderValue ?>
   Tax and other details: TotalCGST; $TotalSgst=$TotalSgst+$st->TotalSGST; $TotalIgst=$TotalIgst+$st->TotalIGST; $TotalDiscount=$TotalDiscount+$st->TotalDiscount; $TotalOtherAllowance=$TotalOtherAllowance+$st->TotalOtherAllowance; $TotalFreight=$TotalFreight+$st->TotalFreight; // $TotalFreight='-'; ?> TotalDiscount>0 && $st->TotalDiscount!='') { ?> CGST>0 && $st->CGST!='') { ?> SGST>0 && $st->SGST!='') { ?> IGST>0 && $st->IGST!='') { ?> TotalOtherAllowance>0 && $st->TotalOtherAllowance!='') { ?> TotalFreight>0 && $st->TotalFreight!='') { ?> TotalIGSTPer; $TotalIgst1=$TotalIgst1+$st->AIgst; $TotalDiscount='-'; $TotalOtherAllowance='-'; $TotalFreight=$TotalFreight+$st->TotalFreight; ?> TotalFreight>0 && $st->TotalFreight!='') { ?>
Item code DIS  CGST% SGST% IGST% OTHER  FREIGHT CHARGES 
Itemcode;?> TotalDiscount,2); ?> CGST; ?> SGST; ?> IGST; ?> TotalOtherAllowance,2); ?> TotalFreight,2); ?> TotalIGSTPer; ?> TotalFreight,2); ?>
Special Instructions:
0 && $TotalOrderValue!='' && $CapitalRange==1) { ?> 0 && $TotalCgst1!='') { ?> 0 && $TotalSgst!='') { ?> 0 && $TotalIgst!='') { ?> 0 && $TotalOtherAllowance!='') { ?> 0 && $TotalCgst+$TotalSgst+$TotalIgst!='') { ?> 0 && $TotalOrderValue!='') { ?>
Payment terms :
Total Amount  Total CGST Amount  Total SGST Amount  Total IGST Amount  Others  Total Tax Amount  Order Value 

Order value in words: