CompanyName; $CompanyAddress = $CO->Address; $companyWebsit=$CO->companyWebsite; $companyPan=$CO->PAN; $companyEmail=$CO->EmailAddress; $companyGst=$CO->GSTNO; $statecode=$CO->StateCode; } } foreach ($GetPoFormat[0] as $For) { $PONO = $For; } if(!empty($POItem)) { foreach ($POItem as $PO) { $postatus= $PO->Status; $SuplierName = $PO->SupplierName; $SuplierAddress = $PO->Address; $supplierEmail=$PO->EmailAddress; $supcode=$PO->SupplierID; $supplierPan=$PO->PAN; $supplierContact=$PO->ContactNumber; $supplierGst=$PO->GSTNO; $ourRef=$PO->Other_Reference; $DeliveryAddress = $PO->DeliveryAddress; $postatus= $PO->Status; $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; } else{ $dtDe = new DateTime($PO->DeliveryDate, new DateTimeZone('Asia/Kolkata')); $DeliveryDate = $dtDe->format('d-m-Y'); $DeliverySchedule = ''; } $ServiceDescription =$PO->ServiceDescription; $supOfferNo = $PO->Supplier_Offer_No; $supRef = $PO->Supplier_Reference; $finCap = $PO->Fincap; $modeofshipment = $PO->Mode_Of_Shipment; $PaymentTerms = $PO->PaymentTerms; if($PO->InsuranceNumber==''){ $insuranceno = 'No'; } else{ $insuranceno = $PO->InsuranceNumber; } if($PaymentTerms=='Others'){ $PaymentOtherDescription=$PO->PaymentOtherDescription; } else{ $PaymentOtherDescription=$PO->PaymentTerms; } } } $currencyName='INR'; $currencyCode =''; if(!empty($CurrencySymbol)) { foreach ($CurrencySymbol as $Curr) { $currencyCode = $Curr->FontCode2000; //$currencyName = $currencyName; } } if(!empty($ParentMaster)){ foreach($ParentMaster as $pm){ $PPaymentTerms = $pm->PaymentTerms; $PDeliverydate= $pm->DeliveryDate; $dtDe = new DateTime($PDeliverydate, new DateTimeZone('Asia/Kolkata')); $PDeliverydate = $dtDe->format('d-m-Y'); $PDeliverySchedule=$pm->DeliverySchedule; } } ?>

Please arrange to deliver the materials/ services listed below as per schedule to our works
BasicValue; $AfterCGST =$AfterCGST + $record->AfterCGST; $AfterSGST =$AfterSGST + $record->AfterSGST; $AfterIGST =$AfterIGST + $record->AfterIGST; $Insurance =$Insurance + $record->Insurance; $AfterFreightValue =$AfterFreightValue + $record->AfterFreightValue; $AfterDiscount = $AfterDiscount + $record->AfterDiscount ; $AfterPackaging=$AfterPackaging+$record->AfterPackagingValue; $totaltaxonly=($AfterCGST+$AfterSGST+$AfterIGST); $others=$Insurance+$AfterFreightValue+$AfterPackaging; } $OrderValue = (( $SubTotalAmount + $AfterCGST +$AfterIGST+$AfterSGST +$Insurance +$AfterFreightValue+$AfterPackaging) - $AfterDiscount) ; }?>
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){ ?> LineAmend ; } } ?>

Amended Details

" . $v->AmendedDetails . ""; break; } }?>
Item Description Current Details Revised Details
Total Current Total Order :partenttotalorder ?> Revised Total Order :TotalOrderValue ?>

 Tax and other details: AfterDiscount>0 && $r->AfterDiscount!='') { ?> AfterPackagingValue>0 && $r->AfterPackagingValue!='') { ?> CGST>0 && $r->CGST!='') { ?> SGST>0 && $r->SGST!='') { ?> IGST>0 && $r->IGST!='') { ?> AfterFreightValue>0 && $r->AfterFreightValue!='') { ?>
ITEM CODE DIS  PACKING  CGST% SGST% IGST% FREIGHT 
Itemcode ; ?> AfterDiscount,2); ?> AfterPackagingValue,2); ?> CGST; ?> SGST; ?> IGST; ?> AfterFreightValue,2); ?>
Special Instructions:
0 && $SubTotalAmount!='') { ?> 0 && $AfterCGST!='') { ?> 0 && $AfterSGST!='') { ?> 0 && $AfterIGST!='') { ?> 0 && $others!='') { ?> 0 && $totaltaxonly!='') { ?> 0 && $OrderValue!='') { ?>
Payment terms :
Total Amount  Total CGST Amount  Total SGST Amount  Total IGST Amount  Others  Total Tax Amount  Order Value 

Order value in words: