parentpostatus) && $AmendmentPDF[0]->parentpostatus == 'ST030') { $pdftitle = "AMENDMENT PURCHASE ORDER"; } else { $pdftitle = "PURCHASE ORDER"; } $CompanyName = (!empty($CompanyDetails) && !empty($CompanyDetails[0]->CompanyName)) ? $CompanyDetails[0]->CompanyName : "-"; $CompanyAddress = (!empty($CompanyDetails) && !empty($CompanyDetails[0]->Address)) ? $CompanyDetails[0]->Address : "-"; $companyEmail = (!empty($CompanyDetails) && !empty($CompanyDetails[0]->EmailAddress)) ? $CompanyDetails[0]->EmailAddress : "-"; $companyGst = (!empty($CompanyDetails) && !empty($CompanyDetails[0]->GSTNO)) ? $CompanyDetails[0]->GSTNO : "-"; $companyPan = (!empty($CompanyDetails) && !empty($CompanyDetails[0]->PAN)) ? $CompanyDetails[0]->PAN : "-"; $companyWebsit = (!empty($CompanyDetails) && !empty($CompanyDetails[0]->companyWebsite)) ? $CompanyDetails[0]->companyWebsite : "-"; $CompanyStateCode = (!empty($CompanyDetails) && !empty($CompanyDetails[0]->StateCode)) ? $CompanyDetails[0]->StateCode : "-"; $companyMsme = (!empty($CompanyDetails) && !empty($CompanyDetails[0]->MSME)) ? $CompanyDetails[0]->MSME : "-"; $address = preg_replace('/SURVEY\s*:\s*[^,]+,/', '', $CompanyAddress); $currencyCode = (!empty($CurrencySymbol) && !empty($CurrencySymbol[0]->FontCode2000)) ? $CurrencySymbol[0]->FontCode2000 : "-"; $PONO = (!empty($GetPoFormat) && !empty($GetPoFormat[0]->PONO)) ? $GetPoFormat[0]->PONO : "-"; $POType = (!empty($POItem) && !empty($POItem[0]->POType)) ? $POItem[0]->POType : "-"; $postatus = (!empty($POItem) && !empty($POItem[0]->Status)) ? $POItem[0]->Status : "-"; $SuplierName = (!empty($POItem) && !empty($POItem[0]->SupplierName)) ? $POItem[0]->SupplierName : "-"; $SuplierAddress = (!empty($POItem) && !empty($POItem[0]->Address)) ? $POItem[0]->Address : "-"; $DeliveryAddress = (!empty($POItem) && !empty($POItem[0]->DeliveryAddress)) ? $POItem[0]->DeliveryAddress : "-"; $SplserviceDescription = (!empty($POItem) && !empty($POItem[0]->ServiceDescription)) ? $POItem[0]->ServiceDescription : "-"; $SplserviceDescription = ($POType == 'SERVICE') ? $POItem[0]->Description_Of_Service : $SplserviceDescription; $supRef = (!empty($POItem) && !empty($POItem[0]->Supplier_Reference)) ? $POItem[0]->Supplier_Reference : "-"; $supOfferNo = (!empty($POItem) && !empty($POItem[0]->Supplier_Offer_No)) ? $POItem[0]->Supplier_Offer_No : "-"; $supplierEmail = (!empty($POItem) && !empty($POItem[0]->EmailAddress)) ? $POItem[0]->EmailAddress : "-"; $supplierGst = (!empty($POItem) && !empty($POItem[0]->GSTNO)) ? $POItem[0]->GSTNO : "-"; $supplierPan = (!empty($POItem) && !empty($POItem[0]->PAN)) ? $POItem[0]->PAN : "-"; $supplierMsme = (!empty($POItem) && !empty($POItem[0]->MSME)) ? $POItem[0]->MSME : "-"; $supplierContact = (!empty($POItem) && !empty($POItem[0]->ContactNumber)) ? $POItem[0]->ContactNumber : "-"; $serviceDescription = (!empty($POItem) && !empty($POItem[0]->Description_Of_Service)) ? $POItem[0]->Description_Of_Service : "-"; $supplierVendor = (!empty($POItem) && !empty($POItem[0]->SupplierID)) ? $POItem[0]->SupplierID : "-"; $ourRef = (!empty($POItem) && !empty($POItem[0]->Other_Reference)) ? $POItem[0]->Other_Reference : "-"; $dispatch = (!empty($POItem) && !empty($POItem[0]->Import_DispatchDetails)) ? $POItem[0]->Import_DispatchDetails : ""; $advance = (!empty($POItem) && !empty($POItem[0]->AdvanceAmount)) ? $POItem[0]->AdvanceAmount : "-"; $modShp = (!empty($POItem) && !empty($POItem[0]->Mode_Of_Shipment)) ? $POItem[0]->Mode_Of_Shipment : "-"; $insNo = (!empty($POItem) && !empty($POItem[0]->InsuranceNumber)) ? $POItem[0]->InsuranceNumber : 'No'; $PaymentTerms = (!empty($POItem) && !empty($POItem[0]->PaymentTerms)) ? ($POItem[0]->PaymentTerms == 'Others' ? $POItem[0]->PaymentOtherDescription : $POItem[0]->PaymentTerms) : ""; $CurrencyType = (!empty($POItem) && !empty($POItem[0]->CurrencyType)) ? $POItem[0]->CurrencyType : ""; $purchaseorderDate = (!empty($POItem) && !empty($POItem[0]->PODate)) ? new DateTime($POItem[0]->PODate, new DateTimeZone('Asia/Kolkata')) : ""; $poDate = $purchaseorderDate ? $purchaseorderDate->format('d-m-Y') : "-"; $IsOpenOrder = (!empty($POItem) && !empty($POItem[0]->IsOpenOrder)) ? $POItem[0]->IsOpenOrder : ""; $DlvSch = ""; if ($POItem[0]->DeliveryOption == 1) { $DlvSch = $POItem[0]->DeliverySchedule; } if ($POItem[0]->DeliveryOption == 0 && !empty($POItem[0]->DeliveryDate)) { $dtDe = new DateTime($POItem[0]->DeliveryDate, new DateTimeZone('Asia/Kolkata')); $DlvSch = $dtDe ? $dtDe->format('d-m-Y') : ""; } if(!empty($dispatch)){ $DlvSch = $dispatch; // for import means. } $RequistionNo = (!empty($RequistionDetails) && !empty($RequistionDetails[0]['RequistionNo'])) ? $RequistionDetails[0]['RequistionNo'] : "-"; $ReqDate = (!empty($RequistionDetails) && !empty($RequistionDetails[0]['ReqDate'])) ? $RequistionDetails[0]['ReqDate'] : ""; // $RequestedDept = (!empty($RequistionDetails) && !empty($RequistionDetails[0]['RequestedDept'])) ? $RequistionDetails[0]['RequestedDept'] : "-"; // $CostCenterCode = (!empty($RequistionDetails) && !empty($RequistionDetails[0]['CostCenterCode'])) ? $RequistionDetails[0]['CostCenterCode'] : "-"; $costCenterName = $costCenterDetails[0]->CostCenterName ?? '-'; $releasedBy = (!empty($releasedetails) && !empty($releasedetails[0]->FirstName)) ? $releasedetails[0]->FirstName : "-"; $releasedDt = (!empty($releasedetails) && !empty($releasedetails[0]->ReleasedOn)) ? new DateTime($releasedetails[0]->ReleasedOn, new DateTimeZone('Asia/Kolkata')) : ""; $releasedOn = $releasedDt ? $releasedDt->format('d-m-Y') : "-"; $invoice_discount_percent = '0.00'; $invoice_discount_amount = '0.00'; $rowCount = count($POItem); $minTableHeightEm = 100; if ($rowCount <= 5) { $rowHeightEm = $minTableHeightEm / $rowCount; } else { $rowHeightEm = 100 / 16; } ?> '', '1' => 'One', '2' => 'Two', '3' => 'Three', '4' => 'Four', '5' => 'Five', '6' => 'Six', '7' => 'Seven', '8' => 'Eight', '9' => 'Nine', '10' => 'Ten', '11' => 'Eleven', '12' => 'Twelve', '13' => 'Thirteen', '14' => 'Fourteen', '15' => 'Fifteen', '16' => 'Sixteen', '17' => 'Seventeen', '18' => 'Eighteen', '19' => 'Nineteen', '20' => 'Twenty', '30' => 'Thirty', '40' => 'Forty', '50' => 'Fifty', '60' => 'Sixty', '70' => 'Seventy', '80' => 'Eighty', '90' => 'Ninety' ); $digits = array('', 'Hundred', 'Thousand', 'Lakh', 'Crore'); while ($i < $digits_1) { $divider = ($i == 2) ? 10 : 100; $number = floor($no % $divider); $no = floor($no / $divider); $i += ($divider == 10) ? 1 : 2; if ($number) { $plural = (($counter = count($str)) && $number > 9) ? '' : null; $hundred = ($counter == 1 && $str[0]) ? ' and ' : null; $str[] = ($number < 21) ? $words[$number] . " " . $digits[$counter] . $plural . " " . $hundred : $words[floor($number / 10) * 10] . " " . $words[$number % 10] . " " . $digits[$counter] . $plural . " " . $hundred; } else $str[] = null; } $str = array_reverse($str); $result = implode('', $str); $points = ($point) ? " " . $words[$point / 10] . " " . $words[$point = $point % 10] : ''; if ($ShowPaise == '0') { $amountInWords = $CurrencyType ." ". $result . " Only"; } else { $amountInWords = $CurrencyType ." ". $result . " Paise " . $points . " Only"; } return $amountInWords; } ?>

RI/PUR/R 02

' . htmlsc($CompanyAddress) . ' ' . ''; } ?> '.trans('Phone') . ': ' . htmlsc($companyPhone).','.''; // } if ($companyEmail !== '' && $companyEmail !== '-') { echo '
' . trans('Email') . ' : ' . htmlsc($companyEmail) . '
'; } if ($companyWebsit !== '' && $companyWebsit !== '-') { echo '
' . trans('Website') . ' : ' . htmlsc($companyWebsit) . '
'; } if ($companyGst !== '' && $companyGst !== '-') { echo '
' . trans('GST') . ' : ' . htmlsc($companyGst) . '
'; } if ($companyMsme !== '' && $companyMsme !== '-') { echo '
' . trans('MSME') . ' : ' . htmlsc($companyMsme) . '
'; } if ($companyPan !== '' && $companyPan !== '-') { echo '
' . trans('PAN') . ' : ' . htmlsc($companyPan) . '
'; } } ?>

Shipped From Shipped To
: ' . htmlsc($SuplierName) . ''; ?>
:

:
:
:
:
: ' . htmlsc($CompanyName) . ''; ?>
:
:
:
:
:
BasicValue; $cgst[] = isset($item->AfterCGST) ? $item->AfterCGST : 0.00; $sgst[] = isset($item->AfterSGST) ? $item->AfterSGST : 0.00; $igst[] = isset($item->AfterIGST) ? $item->AfterIGST : 0.00; $Insurance[] = isset($item->Insurance) ? $item->Insurance : 0.00; $tax[] = $totalwithtax; $invoiceTotalAmount = round($item->TotalOrderValue); ?> "; // } $remaining_rows = max(15 - count($POItem), 0); for ($j = 0; $j < $remaining_rows; $j++) { ?>  










MaterialCode . ' - ') . ($item->MaterialName . $item->ServiceMaterialDescription); echo ($item->LineitemAuditorNotes == '-' ? '' : '
( ' . $item->LineitemAuditorNotes. ' )
'); } ?> MaterialCode . ' - ') . ($item->MaterialName ? $item->MaterialName : $item->ServiceMaterialDescription); echo ($item->LineitemAuditorNotes == '-' ? '' : '
( ' . $item->LineitemAuditorNotes. ' )
'); } ?> MaterialCode . ' - ') . ($item->MaterialName); echo ($item->LineitemAuditorNotes == '-' ? '' : '
( ' . $item->LineitemAuditorNotes. ' )
'); } ?> MaterialCode . ' - ') . ($item->MaterialName); echo ($item->LineitemAuditorNotes == '-' ? '' : '
( ' . $item->LineitemAuditorNotes. ' )
'); //old -- echo ($item->LineitemAuditorNotes == '-' ? '' : '
'.$item->LineitemAuditorNotes ); } ?>
HSNCODE ?? 'N/A'; ?> Quantity > 0) { echo number_alignment($item->Quantity); if ($item->Per) : ?> Per); ?> Quantity == 0) { echo "xxx"; } ?> Rate); ?> BasicValue)); ?> CGST) && $item->CGST != '' ){ _htmlsc($item->CGST); }else{ echo 0; } ?> AfterCGST) && $item->AfterCGST != '') { echo number_alignment(abs($item->AfterCGST)); } else { echo '0.00'; } ?> SGST) && $item->SGST != '' ){ _htmlsc($item->SGST); }else{ echo 0; } ?> AfterSGST) && $item->AfterSGST != '') { echo number_alignment(abs($item->AfterSGST)); } else { echo '0.00'; } ?> IGST) && $item->IGST != '' ){ _htmlsc($item->IGST); }else{ echo 0; } ?> AfterIGST) && $item->AfterIGST != '') { echo number_alignment(abs($item->AfterIGST)); } else { echo '0.00'; } ?> Taxamount) ? $item->Taxamount : 0 ) + $item->BasicValue; echo number_alignment(abs($totalwithtax)); ?>
No items available.
 TOTAL      
ParentPO != '' && isset($record->lineamenddetails) && count($record->lineamenddetails) > 1) { // if ($x->ParentPO != '') { $k++; } } } if ($k > 0) { ?> lineamenddetails ; } } ?>

Amended Details

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

TOTAL AMOUNT IN WORDS :  

0) { $invoiceTotalAmountInWords = convertNumber(abs(round($invoiceTotalAmount)) , $CurrencyType); } echo $invoiceTotalAmountInWords; ?>


Payment Terms :  


Special Instructions :  

$value) { $AfterPackagingValue[] = isset($value->AfterPackagingValue) ? $value->AfterPackagingValue : 0.00; $AfterFreightValue[] = isset($value->AfterFreightValue) ? $value->AfterFreightValue : 0.00; $AfterDiscount[] = isset($value->AfterDiscount) ? $value->AfterDiscount : 0.00; } ?>

Note: Please acknowledge receipt of this order for acceptance
          Material to be delivered to our stores before 3pm
          Please refer order number and item code in your challan/invoice

Authorized Signatory
Declaration: We Declare that this invoice shows the actual price of the goods described and that all particulars are true and correct
This is a system generated purchase order