diff --git a/.gitignore b/.gitignore
index 4e9a7114..74198609 100755
--- a/.gitignore
+++ b/.gitignore
@@ -103,8 +103,8 @@ php_errors.log
/app/Views/*.tmp
# Ignore Composer files
-/vendor/*
-!/vendor/.gitkeep
+vendor/*
+!vendor/.gitkeep
composer.lock
# Ignore environment-specific settings
diff --git a/app/Controllers/Purchaseorder.php b/app/Controllers/Purchaseorder.php
index a7f02a34..92249aa7 100644
--- a/app/Controllers/Purchaseorder.php
+++ b/app/Controllers/Purchaseorder.php
@@ -290,22 +290,95 @@ class Purchaseorder extends BaseController
{
$PONO = $this->request->getVar('PONO');
- // print_r($PONO);
+
$ReqType = $this->request->getVar('ReqType');
- // print_r($ReqType);
+
+ $this->poprint($PONO);
-
- if ($ReqType == SERVICE) {
- $this->servicepoprint($PONO);
- } else if ($ReqType == REVENUE) {
- $this->revenuepoprint($PONO);
- } else if ($ReqType == IMPORT) {
- $this->importpoprint($PONO);
- } else if ($ReqType == CAPITAL) {
- $this->CapitalPoPrint($PONO);
- }
+ // if ($ReqType == SERVICE) {
+ // $this->servicepoprint($PONO);
+ // } else if ($ReqType == REVENUE) {
+ // $this->revenuepoprint($PONO);
+ // } else if ($ReqType == IMPORT) {
+ // $this->importpoprint($PONO);
+ // } else if ($ReqType == CAPITAL) {
+ // $this->CapitalPoPrint($PONO);
+ // }
}
+ public function poprint($PONO)
+ {
+
+ // Load all views as normal
+
+
+ //$PONO = $this->request->getVar('PO');
+ $PoStatus = '';
+ $data['AmendmentPDF'] = $this->purchaseorder_model->amendpdf($PONO);
+ $data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformationforPDF();
+ $data['GetPoFormat'] = $this->purchaseorder_model->GetPoFormat($PONO);
+ $data['POItem'] = $this->purchaseorder_model->GetRevenuePurchaseOrderDetailsForPDF($PONO);
+ $data['releasedetails'] = $this->purchaseorder_model->GetReleasedDetails($PONO);
+ $data['CurrencySymbol'] = $this->purchaseorder_model->GerCurrencyCodeName('INR');
+ $data['reveuetax'] = $this->purchaseorder_model->getRevenueTaxinforforpdf($PONO);
+ $data['AmendmentPDF'] = $this->purchaseorder_model->amendpdf($PONO);
+ $Currencycode = '';
+ $TotalOrderValue = $data['POItem'][0]->TotalOrderValue;
+ $AdvanceAmount = 0.00;
+ foreach ($data['POItem'] as $POI) {
+ $AdvanceAmount = $POI->AdvanceAmount;
+ $PoStatus = $POI->Status;
+ }
+
+ $TotaltoPay = 0.00;
+ $TotaltoPay = $TotalOrderValue - $AdvanceAmount;
+ $totalAmt = sprintf("%.2f", $TotalOrderValue);
+
+
+
+ $data['TotalAmountInWords'] = $this->convertNumber($totalAmt);
+ $data['RequistionDetails'] = $this->purchaseorder_model->GetPdfRequistionDetails($PONO);
+
+ $mpdf = new \Mpdf\Mpdf(['mode' => 'utf-8',
+ 'format' => 'A4',
+ 'default_font' => 'sans-serif',
+ 'orientation' => 'P']);
+ // Set PDF properties
+ $mpdf->SetTitle('Invoice');
+ $mpdf->SetAuthor($data['CompanyDetails'][0]->CompanyName);
+ $mpdf->SetCreator('Venba');
+
+
+ // Generate the PDF content (HTML)
+ // if ($PoStatus == PO_RELEASED || $PoStatus == PO_SERVICE_COMPLETED || $PoStatus == MRIR_APPROVED || $PoStatus == MRIR_REJECTED || $PoStatus == IGR_CREATED || $PoStatus == '' || $PoStatus == SPECIAL_PO) {
+ // $mpdf->SetWatermarkText('');
+ // } else {
+ // $mpdf->SetWatermarkText('DRAFT');
+ // }
+
+
+ // Set auto margins
+ $mpdf->setAutoTopMargin = 'stretch';
+ $mpdf->setAutoBottomMargin = 'stretch';
+
+ // Set HTML header
+ // $HtmlHeading = view('includes/pdfheader', $data);
+ // $mpdf->SetHTMLHeader($HtmlHeading);
+
+ // Set HTML body
+ // $html = view('pdf_view', $data);
+ // $mpdf->WriteHTML($html); // Use WriteHTML() method to add body content
+ $html = view('po_pdf', $data);
+ $mpdf->WriteHTML($html); // Use WriteHTML() method to add body content
+
+ // Set HTML footer
+ // $HTMLFooter = view('includes/pdffooter', $data);
+ // $mpdf->setFooter($HTMLFooter . "Page {PAGENO} of {nb}");
+
+ // Output PDF
+ $mpdf->Output('POReport' . $PONO . '.pdf', 'D');
+ }
+
diff --git a/app/Controllers/User.php b/app/Controllers/User.php
index 451f6115..305896d9 100644
--- a/app/Controllers/User.php
+++ b/app/Controllers/User.php
@@ -54,8 +54,6 @@ class User extends BaseController
log_message('error', '#####Dashboard session name : ' . $this->session->get('name'));
- $this->global['pageTitle'] = 'Dashboard';
-
$data['EmpCount'] = $this->employeedetails_model->getEmployeeCount();
$data['UserCount'] = $this->dahsboard_Model->getUserCount();
@@ -1217,7 +1215,7 @@ class User extends BaseController
$this->global['pageTitle'] = 'Delivery Performance';
if ($this->request->getPost('btn_submit')) {
- $ab = $this->request->getPost('financialyear');
+ $ab = (string)$this->request->getPost('financialyear');
$fa = substr($ab, 0, -5);
$aa = substr($ab, 5, 5);
@@ -1583,7 +1581,7 @@ class User extends BaseController
}
// curl_close($ch);
// }
- } catch (Exception $e) {
+ } catch (\Exception $e) {
$data['err'] = $e->getMessage();
$data['last_query'] = $this->db->getLastQuery();
$Zohobook_model->customInsert($data, 'zohobook_api_err');
diff --git a/app/Helpers/cias_helper.php b/app/Helpers/cias_helper.php
old mode 100644
new mode 100755
index 33e15080..4dc17523
--- a/app/Helpers/cias_helper.php
+++ b/app/Helpers/cias_helper.php
@@ -53,4 +53,81 @@ if (!function_exists('generateCopyrightNotice')) {
return " Copyright © $current_year ";
}
}
-}
\ No newline at end of file
+}
+function format_currency($amount)
+{
+
+ if ($amount) {
+ // Ensure the number has two decimal places
+ $number = number_format($amount, 2, '.', '');
+
+ // Split the number into integer and decimal parts
+ $numberParts = explode('.', $number);
+ $integerPart = $numberParts[0];
+ $decimalPart = isset($numberParts[1]) ? $numberParts[1] : '00';
+
+ // Format the integer part with commas according to the Indian numbering system
+ $lastThree = substr($integerPart, -3);
+ $restUnits = substr($integerPart, 0, -3);
+ if (strlen($restUnits) > 0) {
+ $formattedInteger = preg_replace('/\B(?=(\d{2})+(?!\d))/', ',', $restUnits) . ',' . $lastThree;
+ } else {
+ $formattedInteger = $lastThree;
+ }
+
+ return $formattedInteger . '.' . $decimalPart;
+ }
+ return "0.00";
+}
+
+if (!function_exists('htmlsc')) {
+function htmlsc($output)
+{
+ return htmlspecialchars($output, ENT_QUOTES);
+}}
+
+if (!function_exists('_htmlsc')) {
+function _htmlsc($output)
+{
+ echo htmlspecialchars($output, ENT_QUOTES);
+}}
+
+if (!function_exists('_htmle')) {
+function _htmle($output)
+{
+ echo htmlentities($output);
+}}
+
+if (!function_exists('_trans')) {
+function _trans($line, $id = '', $default = null)
+{
+ echo trans($line, $id, $default);
+}}
+
+if (!function_exists('trans')) {
+ function trans($line, $id = '', $default = null)
+ {
+ // Load the Language service
+ $lang = service('language');
+
+ // Get the translation
+ $lang_string = $lang->getLine($line);
+
+ // Fall back to default language if translation is not found
+ if (empty($lang_string)) {
+ $lang->setLocale('english'); // Set the default locale
+ $lang_string = $lang->getLine($line);
+ }
+
+ // Fall back to the $line value if the default language has no translation either
+ if (empty($lang_string)) {
+ $lang_string = $default ?? $line;
+ }
+
+ if ($id != '') {
+ $lang_string = '' . $lang_string . ' ';
+ }
+
+ return $lang_string;
+ }
+}
diff --git a/app/Helpers/datetime_helper.php b/app/Helpers/datetime_helper.php
index 3f781570..601fee60 100755
--- a/app/Helpers/datetime_helper.php
+++ b/app/Helpers/datetime_helper.php
@@ -143,6 +143,22 @@ if (!function_exists('get_shorten_financial_year')) {
}
}
+if (!function_exists('date_from_mysql')) {
+
+ function date_from_mysql($date, $ignore_post_check = false)
+ {
+ if ($date !== '0000-00-00') {
+ if (!$ignore_post_check) {
+ $dateObj = DateTime::createFromFormat('Y-m-d', $date);
+ $retDate = $dateObj->format('Y-m-d');
+ return $retDate;
+ }
+ return $date;
+ }
+ return '';
+ }
+ }
+
if (!function_exists('add_one_hour_date')) {
function add_one_hour_date($dateString) {
$date = new DateTime($dateString);
diff --git a/app/Helpers/purchaseorder_helper.php b/app/Helpers/purchaseorder_helper.php
index f0e7a161..7d56be21 100755
--- a/app/Helpers/purchaseorder_helper.php
+++ b/app/Helpers/purchaseorder_helper.php
@@ -26,6 +26,20 @@ if (!function_exists('generate_po_number')) {
return $PoNo;
}
}
+if (!function_exists('invoice_logo_pdf'))
+{
+ function invoice_logo_pdf()
+ {
+ return ' ';
+ }
+}
+if (!function_exists('authorized_signatory'))
+{
+ function authorized_signatory()
+ {
+ return ' ';
+ }
+}
?>
\ No newline at end of file
diff --git a/app/Helpers/session_helper.php b/app/Helpers/session_helper.php
old mode 100644
new mode 100755
diff --git a/app/Helpers/zohobook_helper.php b/app/Helpers/zohobook_helper.php
old mode 100644
new mode 100755
diff --git a/app/Views/dashboard.php b/app/Views/dashboard.php
index ab67e40f..0d074e00 100644
--- a/app/Views/dashboard.php
+++ b/app/Views/dashboard.php
@@ -340,7 +340,7 @@ function synczohobooks(){
var options = {
width: 600, height: 250,
- redFrom: 00, redTo: 20,
+ redFrom: 0, redTo: 20,
yellowFrom:20, yellowTo: 50,
greenFrom:50, greenTo: 100,
minorTicks: 5
@@ -532,7 +532,7 @@ function synczohobooks(){
var options = {
width: 600, height: 250,
- redFrom: 00, redTo: 20,
+ redFrom: 0, redTo: 20,
yellowFrom:20, yellowTo: 50,
greenFrom:50, greenTo: 100,
minorTicks: 5
@@ -680,9 +680,11 @@ $('#datepick').change(function() {
-
44
-
+ users) ? $UserCount[0]->users : 0 ;?>
+
= $users; ?>
User Registrations
+ EmpCount) ? $EmpCount[0]->EmpCount : 0 ;?>
+ 1 ? '
' . $employees . ' Employees ' : ($employees == 1 ? '
' . $employees . ' Employee ' : ''); ?>
@@ -700,11 +702,14 @@ $('#datepick').change(function() {
Sync With Zoho Books
getFlashdata('error'); ?>
-
+
+
diff --git a/app/Views/editRevenuepurchaseorder.php b/app/Views/editRevenuepurchaseorder.php
index 6667450b..c25f80bb 100644
--- a/app/Views/editRevenuepurchaseorder.php
+++ b/app/Views/editRevenuepurchaseorder.php
@@ -247,7 +247,7 @@ if (!empty($getlogpodtl)) {
var insuranceno = '';
var statuscheck = '';
$(document).ready(function() {
- alert('capital-');
+ //alert('capital-');
if (statuscheck == "") {
$('#splpodiv').show();
// var js_array =;
diff --git a/app/Views/po_pdf.php b/app/Views/po_pdf.php
new file mode 100755
index 00000000..fad63b5f
--- /dev/null
+++ b/app/Views/po_pdf.php
@@ -0,0 +1,595 @@
+
+
+
+
+
+
+
+
+
+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 : "-";
+
+$currencyName = 'INR';
+$currencyCode = (!empty($CurrencySymbol) && !empty($CurrencySymbol[0]->FontCode2000)) ? $CurrencySymbol[0]->FontCode2000 : "-";
+$PONO = (!empty($GetPoFormat) && !empty($GetPoFormat[0]->PONO)) ? $GetPoFormat[0]->PONO : "-";
+
+$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 : "-";
+$ServiceDescription = (!empty($POItem) && !empty($POItem[0]->ServiceDescription)) ? $POItem[0]->ServiceDescription : "-";
+$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 : "-";
+$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 : "-";
+$finCap = (!empty($POItem) && !empty($POItem[0]->Fincap)) ? $POItem[0]->Fincap : "-";
+$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 ): "-";
+$purchaseorderDate = (!empty($POItem) && !empty($POItem[0]->PODate)) ? new DateTime($POItem[0]->PODate, new DateTimeZone('Asia/Kolkata')) : "";
+$poDate = $purchaseorderDate ? $purchaseorderDate->format('d-m-Y') : "-";
+
+ if(!empty($POItem) && !empty($POItem[0]->DeliveryOption)){
+ if ($POItem[0]->DeliveryOption == 1) {
+ $DeliverySchedule = $PO->DeliverySchedule;
+ $DeliveryDate = "";
+ } else if ($POItem[0]->DeliveryOption == 0 && !empty($POItem[0]->DeliveryDate)) {
+ $dtDe = new DateTime($POItem[0]->DeliveryDate, new DateTimeZone('Asia/Kolkata'));
+ $DeliveryDate = $dtDe ? $dtDe->format('d-m-Y') : "";
+ $DeliverySchedule = "";
+ }
+ }else{
+ $DeliveryDate = "-";
+ $DeliverySchedule = "-";
+ }
+ $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'] : "-";
+
+
+ $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' ;
+
+?>
+
+ '', '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 = "Rupees " . $result." Only";
+}
+else{
+
+$amountInWords = "Rupees " . $result ." Paise ". $points." Only";
+}
+
+
+ return $amountInWords;
+ }
+?>
+ '', '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 = "Rupees " . $result." Only";
+ }
+ else{
+
+ $amountInWords = "Rupees " . $result ." Paise ". $points." Only";
+ }
+
+
+ return $amountInWords;
+ }
+?>
+
+
+ RI/PUR/R 02
+
+
+
+
+
+
+
+
+ '.htmlsc($CompanyAddress) .' '.'';
+ } ?>
+
+ '.trans('Phone') . ': ' . htmlsc($companyPhone).','.'';
+ // }
+ if ($companyEmail) {
+ echo ''.trans('Email') . ' : ' . htmlsc($companyEmail).'
';
+ }
+ if ($companyWebsit ) {
+ echo ''.trans('Website') . ' : ' . htmlsc($companyWebsit ).'
';
+ }
+
+ if ($companyGst ) {
+ echo ''.trans('GSTIN') . ' : ' . htmlsc($companyGst ).'
';
+ }
+ if ($companyPan ) {
+ echo ''.trans('PAN') . ' : ' . htmlsc($companyPan ).'
';
+ }
+
+ }
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Shipped From
+ Shipped To
+
+
+
+
+
+
+
+
+
+ ';?>
+ '; ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ';?>
+
+ '; ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ₹
+ ₹
+
+
+
+
+ ₹
+
+
+
+ ₹
+
+ ₹
+
+ ₹
+
+
+
+
+
+
+
+ MaterialCode.'/'.$item->MaterialName.$item->ServiceMaterialDescription);?>
+ HSNCODE ?? 'N/A'; ?>
+
+ UOM) : ?>
+ UOM); ?>
+
+
+
+ Quantity); ?>
+
+
+ Rate); ?>
+
+
+ BasicValue));?>
+
+
+
+
+
+ CGST); ?>
+
+
+ AfterCGST != ''){
+ echo format_currency(abs($item->AfterCGST));}
+ else { }
+ ?>
+
+
+ SGST); ?>
+
+
+ AfterSGST != ''){
+ echo format_currency(abs($item->AfterSGST));}
+ else { }
+ ?>
+
+
+ IGST); ?>
+
+
+ AfterIGST != ''){
+ echo format_currency(abs($item->AfterIGST)); }
+ else { }
+ ?>
+
+
+
+ Taxamount));
+ $totalBasic = $item->BasicValue;
+ $totalCGST = $item->AfterCGST ;
+ $totalSGST = $item->AfterSGST ;
+ $totalIGST = $item->AfterIGST ;
+ $totalTax = $item->Taxamount;
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ TOTAL
+
+
+
+
+
+
+
+
+ 0)
+ {
+ $invoiceTotalAmountInWords=convertNumber(abs(round($invoiceTotalAmount)));
+ }
+ else
+ {
+ $invoiceTotalAmountInWords=convertNumber(abs(round($invoiceTotalAmount)));
+ }
+ ?>
+
+
+
+
+
+ TOTAL AMOUNT IN WORDS:
+
+
+ ₹
+
+
+
+ Add :CGST ₹
+
+
+
+ Add :SGST ₹
+
+
+
+ Add :IGST ₹
+
+
+
+ ₹
+
+
+
+
+ ₹
+ TotalOrderValue); ?>
+
+
+
+ ₹
+ TotalOrderValue)));?>
+
+
+
+
+
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 orde
+
+
+
+
+
+
+
\ No newline at end of file