diff --git a/application/controllers/amendmentpurchaseorder.php b/application/controllers/amendmentpurchaseorder.php
index 5f749f71..c907569a 100755
--- a/application/controllers/amendmentpurchaseorder.php
+++ b/application/controllers/amendmentpurchaseorder.php
@@ -1431,464 +1431,7 @@ function UpdateAmendServicePurchaseOrder()
echo 'Purchase Order is'.$PONO.'Amended Successfully! New PO Number is: '.$NewPO ; }
-function CreateAmendPOPrint()
- {
- $PONO = $_GET['PONO'];
- $ReqType = $_GET['ReqType'];
-
- 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 importpoprint($PONO)
- {
-
- //$this->load->view('includes/pdfheader');
-
- // Load the pdf page with multiviews
- $Requester='';
- $Depcode='';
- $Currencycode='';
- $data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformation();
- $data['POItem'] = $this->purchaseorder_model->GetImportPurchaseOrderDetailsForPDF($PONO);
- //print_r($data['POItem']);
- //die();
- $data['releasedetails'] = $this->purchaseorder_model->GetReleasedDetails($PONO);
- //print_r( $data['releasedetails']);
- foreach ($data['POItem'] as $Reqdby)
- {
- $Requester=$Reqdby->Requestedby;
-
- }
-
- foreach ($data['POItem'] as $CURTYPE)
- {
- $Currencycode=$CURTYPE->CurrencyType;
- }
-
- $data['Requestername']=$this->purchaseorder_model->GerRequesterName($Requester);
-
- foreach ($data['Requestername'] as $ReqDep)
- {
- $Depcode=$ReqDep->Departmentcode;
- }
-
- $data['DEPCODE']=$this->purchaseorder_model->GerRequesterDep($Depcode);
- //print_r($data['Requestername']);
- $data['Currencytype']=$this->purchaseorder_model->GerCurrencyCodeName($Currencycode);
- $ProductPrice='';
- $TotalOrderValue = '';
- foreach ($data['POItem'] as $PO )
- {
- $TotalOrderValue=$PO->TotalOrderValue;
- }
-
- //$totalAmt=sprintf("%.2f", $ProductPrice);
- //$data['TotalAmountInWords']= $this->convertNumber($totalAmt);
- //print_r($data['TotalAmountInWords']);
-
- //$this->load->View("importpopdf", $data);
-
-
- $CurrencyType='';
- if(!empty($data['POItem'])){
- $CurrencyType=$data['POItem'][0]->CurrencyType;
- }
- //echo $CurrencyType;
-
- if($CurrencyType=='')
- {
- $data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName('INR');
- }
- else
- {
- $data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName($CurrencyType);
- }
-
- // $TotalOrderValue=$data['POItem'][0]->$TotalOrderValue;
- //print_r($data['POItem'][0]);
-
- $totalAmt=sprintf("%.2f", $TotalOrderValue);
-
- $data['TotalAmountInWords']= $this->convertNumber($totalAmt);
-
-
-
-
- $SymbolCurrency = '';
- $SymbolCurrencyName ='';
- $PaiseVal = '';
- if(!empty($data['CurrencySymbol']) >0)
- {
- $SymbolCurrency=$data['CurrencySymbol'][0]->FontCode2000;
- $SymbolCurrencyName=$data['CurrencySymbol'][0]->Currency;
- $PaiseVal=$data['CurrencySymbol'][0]->PaiseVal;
- }
- $TotalOrderValue=$data['POItem'][0]->TotalOrderValue;
-
- $totalAmt=sprintf("%.2f", $TotalOrderValue);
-
- $data['TotalAmountInWords']= $this->convertNumberSymbol($totalAmt,$SymbolCurrency,$SymbolCurrencyName,$PaiseVal);
-
-
- $this->load->View("Amendedimportpopdf", $data);
-
-
- // Add header to pdf
- //s $this->load->view('includes/pdffooter');
-
- // Get output html
- $php = $this->output->get_output();
-
- // Load library
- $this->load->library('dompdf_gen');
-
- // Convert to PDF
- //$this->dompdf->set_paper(array(0, 0, 841.89, 1190.55), 'landscape');
- $this->dompdf->load_html($php);
- $this->dompdf->render();
- $data['Attachment'] = FALSE;
- $this->dompdf->stream("ImportPOReport.pdf",$data,$php);
-
-}
-
-
- public function revenuepoprint($PONO)
- {
- // Load all views as normal
-
-
-
-
- $data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformation();
- $data['POItem'] = $this->purchaseorder_model->GetRevenuePurchaseOrderDetailsForAmendPDF($PONO);
- //print_r($data['POItem']);
-
- //die();
- $data['releasedetails'] = $this->purchaseorder_model->GetReleasedDetails($PONO);
- $data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName('INR');
-
- $Currencycode='';
-
- $TotalOrderValue=$data['POItem'][0]->TotalOrderValue;
-
- $totalAmt=sprintf("%.2f", $TotalOrderValue);
-
- // die();
-
- $data['TotalAmountInWords']= $this->convertNumber($totalAmt);
-
- $data['RequistionDetails'] = $this->purchaseorder_model->GetPdfRequistionDetails($PONO);
-
- // Add header to pdf
- //$this->load->view('includes/pdfheader');
-
- // Load the pdf page with multiviews
- $this->load->View("Amendrevenuepopdf", $data);
-
- // Add header to pdf
- //$this->load->view('includes/pdffooter');
-
- // Get output html
- $php = $this->output->get_output();
-
- // // Load library
- $this->load->library('dompdf_gen');
-
- // // Convert to PDF
- $this->dompdf->load_html($php);
-
- $this->dompdf->render();
-
- $data['Attachment'] = FALSE;
-
- $this->dompdf->stream("Amendrevenuepopdf.pdf",$data,$php);
-
-}
-public function servicepoprint($PONO)
- {
-
- // $this->load->view('includes/pdfheader');
-
- // Load the pdf page with multiviews
- $data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformation();
- $data['POItem'] = $this->purchaseorder_model->GetServicePurchaseOrderAmendDetailsforPdfprint($PONO);
-
-
- $data['releasedetails'] = $this->purchaseorder_model->GetReleasedDetails($PONO);
-
- $data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName('INR');
-
- //print_r( $data['CurrencySymbol']);
-
- $TotalOrderValue=0;
- $Currencycode='';
- foreach ($data['POItem'] as $POValue)
- {
-
- $TotalOrderValue=$TotalOrderValue + $POValue->TotalValue;
-
-
- }
-
-
-
- $totalAmt=sprintf("%.2f", $TotalOrderValue);
-
- $data['TotalAmountInWords']= $this->convertNumber($totalAmt);
-
- $data['RequistionDetails'] = $this->purchaseorder_model->GetPdfRequistionDetails($PONO);
-
- $this->load->View("Amendervicepopdf", $data);
-
- // Add header to pdf
- //$this->load->view('includes/pdffooter');
-
- // Get output html
- $php = $this->output->get_output();
-
- // Load library
- $this->load->library('dompdf_gen');
-
- // Convert to PDF
- $this->dompdf->load_html($php);
- $this->dompdf->render();
- $data['Attachment'] = FALSE;
- $this->dompdf->stream("Amendservicepopdf.pdf",$data,$php);
-
-}
-
-public function CapitalPoPrint($PONO)
- {
-
-
-
- $data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformation();
- //print_r($data['CompanyDetails']);
- $data['POItem'] = $this->purchaseorder_model->GetCapitalAmendPurchaseOrderDetailsForprintPDF($PONO);
- //print_r($data['POItem']);
- $data['releasedetails'] = $this->purchaseorder_model->GetReleasedDetails($PONO);
- //print_r($data['releasedetails']);
-
- $CurrencyType='';
- if(!empty($data['POItem'])){
- $CurrencyType=$data['POItem'][0]->CurrencyType;
- // echo $CurrencyType;
- }
-
-
- if($CurrencyType=='' OR $CurrencyType=='0'){
- $data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName('INR');
- // echo "
";
- //print_r($data['CurrencySymbol']);
- $TotalOrderValue=$data['POItem'][0]->TotalOrderValue;
- //echo $TotalOrderValue;
- $totalAmt=sprintf("%.2f", $TotalOrderValue);
- //echo $totalAmt;
- $data['TotalAmountInWords']= $this->convertNumber($totalAmt);
- //print_r($data['TotalAmountInWords']);
- }
-
-
- else{
- $data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName($CurrencyType);
- //echo "
";
- // print_r($data['CurrencySymbol']);
- $SymbolCurrency=$data['CurrencySymbol'][0]->FontCode2000;
- $SymbolCurrencyName=$data['CurrencySymbol'][0]->Currency;
- $PaiseVal=$data['CurrencySymbol'][0]->PaiseVal;
-
- $TotalOrderValue=$data['POItem'][0]->TotalOrderValue;
- // echo $TotalOrderValue;
- $totalAmt=sprintf("%.2f", $TotalOrderValue);
- //echo "
" . $totalAmt;
-
- $data['TotalAmountInWords']= $this->convertNumberSymbol($totalAmt,$SymbolCurrency,$SymbolCurrencyName,$PaiseVal);
- //print_r($data['TotalAmountInWords']);
- }
-
-
-
-
-
-
- $data['RequistionDetails'] = $this->purchaseorder_model->GetPdfRequistionDetails($PONO);
-
-
-
- $this->load->View("amendcapitalpopdf", $data);
-
-
-
-
- $php = $this->output->get_output();
-
- // Load library
- $this->load->library('dompdf_gen');
-
- // Convert to PDF
- $this->dompdf->load_html($php);
- $this->dompdf->render();
- $data['Attachment'] = FALSE;
- $this->dompdf->stream("capitalamenpo.pdf",$data,$php);
-
-}
-
- public function convertNumber($amt){
-$ShowPaise='0';
-$totalAmt=explode(".",$amt);
-
-$number = $totalAmt[0];
- $no = $number;
-
-if(!empty($totalAmt[1]) && $totalAmt[1]!=0){
-$point = $totalAmt[1];
- $ShowPaise='1';
-}
- else{
-$point=0;
- $ShowPaise='0';
-}
-
-
- $hundred = null;
- $digits_1 = strlen($no);
-
- $i = 0;
- $str = array();
- $words = array('0' => '', '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) ? 's' : 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 = "Rupee " . $result." Only";
-}
-else{
-
-$amountInWords = "Rupee " . $result ." Paise ". $points." Only";
-}
-
-
- return $amountInWords;
- }
-
-public function convertNumberSymbol($amt,$symbol,$name,$paise){
-$ShowPaise='0';
-$totalAmt=explode(".",$amt);
-
-$number = $totalAmt[0];
- $no = $number;
-if(!empty($totalAmt[1]) && $totalAmt[1]!=0){
-$point = $totalAmt[1];
- $ShowPaise='1';
-}
- else{
-$point=0;
- $ShowPaise='0';
-}
-
- $hundred = null;
- $digits_1 = strlen($no);
-
- $i = 0;
- $str = array();
- $words = array('0' => '', '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) ? 's' : 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 = $name." " . $result." Only";
-}
-else{
-$amountInWords = $name." " . $result.$paise ." ". $points." Only";
-}
-
-
- return $amountInWords;
- }
+
function getDateformat($Val)
{
diff --git a/application/controllers/purchaseorder.php b/application/controllers/purchaseorder.php
index 2362e173..d2f919a9 100755
--- a/application/controllers/purchaseorder.php
+++ b/application/controllers/purchaseorder.php
@@ -276,33 +276,7 @@ class purchaseorder extends BaseController
}
- function CreateMRIRPOPrint()
- {
- $PONO = $_GET['PONO'];
- $POType = $_GET['POType'];
-
- if($POType == SERVICE)
- {
- $this ->mrirservicepoprint($PONO);
-
- }
- else if($POType == REVENUE)
- {
- $this ->mrirrevenuepoprint($PONO);
-
- }
-
- else if($POType == IMPORT)
- {
- $this ->mririmportpoprint($PONO);
-
- }
- else if($POType == CAPITAL)
- {
- $this ->mrirCapitalPoPrint($PONO);
-
- }
- }
+
function CreaterevenuePOPrint()
{
@@ -1026,6 +1000,9 @@ class purchaseorder extends BaseController
// Load library
$this->load->library('dompdf_gen');
+ $paper_orientation = 'portrait';
+ $customPaper = array(0,0,750,950);
+ $this->dompdf->set_paper($customPaper,$paper_orientation);
// Convert to PDF
$this->dompdf->load_html($php);
@@ -1037,60 +1014,7 @@ class purchaseorder extends BaseController
-public function mrirrevenuepoprint($PONO)
- {
- // Load all views as normal
-
-
- //$PONO = $_GET['PO'];
-
- $data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformation();
- $data['POItem'] = $this->purchaseorder_model->GetRevenuePurchaseOrderDetailsForPDF($PONO);
- $data['releasedetails'] = $this->purchaseorder_model->GetReleasedDetails($PONO);
- $data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName('INR');
-
- $Currencycode='';
-
- $TotalOrderValue=$data['POItem'][0]->TotalOrderValue;
- $AdvanceAmount=0.00;
- foreach ($data['POItem'] as $POI)
- {
- $AdvanceAmount=$POI->AdvanceAmount;
- }
-
- //echo "total $TotalOrderValue";
- //echo "Advance $TotaltoPay";
- $TotaltoPay=0.00;
- $TotaltoPay=$TotalOrderValue-$AdvanceAmount;
- // echo "$TotaltoPay";
-
- $totalAmt=sprintf("%.2f",$TotaltoPay);
-
- $data['TotalAmountInWords']= $this->convertNumber($totalAmt);
- $data['RequistionDetails'] = $this->purchaseorder_model->GetPdfRequistionDetails($PONO);
- // Add header to pdf
- //$this->load->view('includes/pdfheader');
-
- // Load the pdf page with multiviews
- $this->load->View("mrirrevenuepopdf", $data);
-
- // Add header to pdf
- //$this->load->view('includes/pdffooter');
-
- // Get output html
- $php = $this->output->get_output();
-
- // Load library
- $this->load->library('dompdf_gen');
-
- // Convert to PDF
- $this->dompdf->load_html($php);
- $this->dompdf->render();
- $data['Attachment'] = FALSE;
- $this->dompdf->stream("RevenuePOReport.pdf",$data,$php);
-
-}
public function servicepoprint($PONO)
{
@@ -1135,6 +1059,9 @@ public function mrirrevenuepoprint($PONO)
// Load library
$this->load->library('dompdf_gen');
+ $paper_orientation = 'portrait';
+ $customPaper = array(0,0,750,950);
+ $this->dompdf->set_paper($customPaper,$paper_orientation);
// Convert to PDF
$this->dompdf->load_html($php);
@@ -1147,66 +1074,7 @@ public function mrirrevenuepoprint($PONO)
-public function mrirservicepoprint($PONO)
- {
-
- // $this->load->view('includes/pdfheader');
-
- // Load the pdf page with multiviews
- $data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformation();
- $data['POItem'] = $this->purchaseorder_model->GetServicePurchaseOrderDetailsForPrint($PONO);
-
-
- $data['releasedetails'] = $this->purchaseorder_model->GetReleasedDetails($PONO);
-
- $data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName('INR');
-
- //print_r( $data['CurrencySymbol']);
-
- $TotalOrderValue=0;
- $Currencycode='';
- foreach ($data['POItem'] as $POValue)
- {
-
- $TotalOrderValue=$TotalOrderValue + $POValue->TotalValue;
-
- }
-
- $Advance=0.00;
- foreach ($data['POItem'] as $PO)
- {
- $Advance=$PO->AdvanceAmount;
- }
-
- $TotaltoPay=0.00;
- $TotaltoPay=$TotalOrderValue-$Advance;
- //echo $TotaltoPay;
-
-
- $totalAmt=sprintf("%.2f", $TotaltoPay);
-
- $data['TotalAmountInWords']= $this->convertNumber($totalAmt);
-
- $data['RequistionDetails'] = $this->purchaseorder_model->GetPdfRequistionDetails($PONO);
-
- $this->load->View("mrirservicepopdf", $data);
-
- // Add header to pdf
- //$this->load->view('includes/pdffooter');
-
- // Get output html
- $php = $this->output->get_output();
-
- // Load library
- $this->load->library('dompdf_gen');
-
- // Convert to PDF
- $this->dompdf->load_html($php);
- $this->dompdf->render();
- $data['Attachment'] = FALSE;
- $this->dompdf->stream("ServicePOReport.pdf",$data,$php);
-
-}
+
public function importpoprint($PONO)
{
@@ -1310,6 +1178,9 @@ public function importpoprint($PONO)
// Load library
$this->load->library('dompdf_gen');
+ $paper_orientation = 'portrait';
+ $customPaper = array(0,0,750,950);
+ $this->dompdf->set_paper($customPaper,$paper_orientation);
// Convert to PDF
//$this->dompdf->set_paper(array(0, 0, 841.89, 1190.55), 'landscape');
@@ -1322,128 +1193,7 @@ public function importpoprint($PONO)
-public function mririmportpoprint($PONO)
- {
-
- //$this->load->view('includes/pdfheader');
-
- // Load the pdf page with multiviews
- $Requester='';
- $Depcode='';
- $Currencycode='';
- $data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformation();
- $data['POItem'] = $this->purchaseorder_model->GetImportPurchaseOrderDetailsForPDF($PONO);
- $data['releasedetails'] = $this->purchaseorder_model->GetReleasedDetails($PONO);
- //print_r( $data['POItem']);
- foreach ($data['POItem'] as $Reqdby)
- {
- $Requester=$Reqdby->Requestedby;
- }
-
- foreach ($data['POItem'] as $CURTYPE)
- {
- $Currencycode=$CURTYPE->CurrencyType;
- }
-
- $data['Requestername']=$this->purchaseorder_model->GerRequesterName($Requester);
-
- foreach ($data['Requestername'] as $ReqDep)
- {
- $Depcode=$ReqDep->Departmentcode;
- }
-
- $data['DEPCODE']=$this->purchaseorder_model->GerRequesterDep($Depcode);
- //print_r($data['Requestername']);
- $data['Currencytype']=$this->purchaseorder_model->GerCurrencyCodeName($Currencycode);
- $ProductPrice='';
- $TotalOrderValue = '';
- foreach ($data['POItem'] as $PO )
- {
- $TotalOrderValue=$PO->TotalOrderValue;
- }
-
- foreach ($data['POItem'] as $POI)
- {
- $AdvanceAmount=$POI->AdvanceAmount;
- }
-
- //echo "Total $TotalOrderValue";
- //echo "Advance $AdvanceAmount";
- //$TotaltoPay=0.00;
- $TotaltoPay=$TotalOrderValue-$AdvanceAmount;
- //echo "Total to pay $TotaltoPay";
- //$totalAmt=sprintf("%.2f", $ProductPrice);
- //$data['TotalAmountInWords']= $this->convertNumber($totalAmt);
- //print_r($data['TotalAmountInWords']);
-
- //$this->load->View("importpopdf", $data);
-
-
- $CurrencyType='';
- if(!empty($data['POItem'])){
- $CurrencyType=$data['POItem'][0]->CurrencyType;
- }
- //echo $CurrencyType;
-
- if($CurrencyType=='')
- {
- $data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName('INR');
- }
- else
- {
- $data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName($CurrencyType);
- }
-
- // $TotalOrderValue=$data['POItem'][0]->$TotalOrderValue;
- //print_r($data['POItem'][0]);
-
- $totalAmt=sprintf("%.2f", $TotaltoPay);
- //echo $totalAmt;
-
- $data['TotalAmountInWords']= $this->convertNumber($totalAmt);
-
-
-
-
- $SymbolCurrency = '';
- $SymbolCurrencyName ='';
- $PaiseVal = '';
- if(!empty($data['CurrencySymbol']) >0)
- {
- $SymbolCurrency=$data['CurrencySymbol'][0]->FontCode2000;
- $SymbolCurrencyName=$data['CurrencySymbol'][0]->Currency;
- $PaiseVal=$data['CurrencySymbol'][0]->PaiseVal;
- }
- $TotalOrderValue=$data['POItem'][0]->TotalOrderValue;
-
- $totalAmt=sprintf("%.2f", $TotaltoPay);
-
- $data['TotalAmountInWords']= $this->convertNumberSymbol($totalAmt,$SymbolCurrency,$SymbolCurrencyName,$PaiseVal);
-
-
- // $this->load->View("importpopdf", $data);
-
- $this->load->View("mririmportpopdf", $data);
-
-
- // Add header to pdf
- //s $this->load->view('includes/pdffooter');
-
- // Get output html
- $php = $this->output->get_output();
-
- // Load library
- $this->load->library('dompdf_gen');
-
- // Convert to PDF
- //$this->dompdf->set_paper(array(0, 0, 841.89, 1190.55), 'landscape');
- $this->dompdf->load_html($php);
- $this->dompdf->render();
- $data['Attachment'] = FALSE;
- $this->dompdf->stream("ImportPOReport.pdf",$data,$php);
-
-}
/**
* This function used to load the Delete the Requistion Items
@@ -2554,6 +2304,9 @@ function addNewImportPurchaseOrder()
// Load library
$this->load->library('dompdf_gen');
+ $paper_orientation = 'portrait';
+ $customPaper = array(0,0,750,950);
+ $this->dompdf->set_paper($customPaper,$paper_orientation);
// Convert to PDF
$this->dompdf->load_html($php);
@@ -2566,93 +2319,7 @@ function addNewImportPurchaseOrder()
- public function mrirCapitalPoPrint($PONO)
- {
-
-
- // Load the pdf page with multiviews
- $data['CompanyDetails'] = $this->purchaseorder_model->getCompanyInformation();
-
- $data['POItem'] = $this->purchaseorder_model->GetCapitalPurchaseOrderDetailsForPDF($PONO);
- $AdvanceAmount='';
- $TotaltoPay='';
- $data['releasedetails'] = $this->purchaseorder_model->GetReleasedDetails($PONO);
-
- $CurrencyType='';
- if(!empty($data['POItem'])){
- $CurrencyType=$data['POItem'][0]->CurrencyType;
- }
-
-
- if($CurrencyType=='' OR $CurrencyType=='0'){
- $data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName('INR');
-
- $TotalOrderValue=$data['POItem'][0]->TotalOrderValue;
-
-
-
- foreach ($data['POItem'] as $POI)
- {
- $AdvanceAmount=$POI->AdvanceAmount;
- }
-
-
- $TotaltoPay=$TotalOrderValue-$AdvanceAmount;
-
- $totalAmt=sprintf("%.2f", $TotaltoPay);
-
- $data['TotalAmountInWords']= $this->convertNumber($totalAmt);
- }
-
-
- else{
- $data['CurrencySymbol']=$this->purchaseorder_model->GerCurrencyCodeName($CurrencyType);
- $SymbolCurrency=$data['CurrencySymbol'][0]->FontCode2000;
- $SymbolCurrencyName=$data['CurrencySymbol'][0]->Currency;
- $PaiseVal=$data['CurrencySymbol'][0]->PaiseVal;
-
- $TotalOrderValue=$data['POItem'][0]->TotalOrderValue;
-
- foreach ($data['POItem'] as $POI)
- {
- $AdvanceAmount=$POI->AdvanceAmount;
- }
-
-
- $TotaltoPay=$TotalOrderValue-$AdvanceAmount;
-
- $totalAmt=sprintf("%.2f", $TotaltoPay);
-
- $data['TotalAmountInWords']= $this->convertNumberSymbol($totalAmt,$SymbolCurrency,$SymbolCurrencyName,$PaiseVal);
- }
-
-
-
-
-
-
- $data['RequistionDetails'] = $this->purchaseorder_model->GetPdfRequistionDetails($PONO);
-
-
-
- $this->load->View("mrircapitalpopdf", $data);
-
- // Add header to pdf
- //$this->load->view('includes/pdffooter');
-
- // Get output html
- $php = $this->output->get_output();
-
- // Load library
- $this->load->library('dompdf_gen');
-
- // Convert to PDF
- $this->dompdf->load_html($php);
- $this->dompdf->render();
- $data['Attachment'] = FALSE;
- $this->dompdf->stream("CapitalPOReport.pdf",$data,$php);
-
-}
+
diff --git a/application/logs/log-2017-08-17.php b/application/logs/log-2017-08-17.php
new file mode 100644
index 00000000..694426b1
--- /dev/null
+++ b/application/logs/log-2017-08-17.php
@@ -0,0 +1,20 @@
+
+
+ERROR - 2017-08-17 17:54:06 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given C:\5.6\xampp\htdocs\SIA\SIANEW\siddharth_application\system\database\drivers\mysqli\mysqli_result.php 38
+ERROR - 2017-08-17 17:54:43 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given C:\5.6\xampp\htdocs\SIA\SIANEW\siddharth_application\system\database\drivers\mysqli\mysqli_result.php 38
+ERROR - 2017-08-17 17:55:05 --> Severity: Warning --> mysqli_connect(): (HY000/2002): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
+ C:\5.6\xampp\htdocs\SIA\SIANEW\siddharth_application\system\database\drivers\mysqli\mysqli_driver.php 77
+ERROR - 2017-08-17 17:55:05 --> Unable to connect to the database
+ERROR - 2017-08-17 17:55:19 --> Severity: Warning --> mysqli_connect(): (HY000/2002): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
+ C:\5.6\xampp\htdocs\SIA\SIANEW\siddharth_application\system\database\drivers\mysqli\mysqli_driver.php 77
+ERROR - 2017-08-17 17:55:19 --> Unable to connect to the database
+ERROR - 2017-08-17 17:55:31 --> Severity: Notice --> Undefined index: ReqType C:\5.6\xampp\htdocs\SIA\SIANEW\siddharth_application\application\controllers\purchaseorder.php 253
+ERROR - 2017-08-17 17:56:42 --> Severity: Notice --> Undefined index: ReqType C:\5.6\xampp\htdocs\SIA\SIANEW\siddharth_application\application\controllers\purchaseorder.php 253
+ERROR - 2017-08-17 17:57:39 --> Severity: Notice --> Undefined offset: 0 C:\5.6\xampp\htdocs\SIA\SIANEW\siddharth_application\application\controllers\purchaseorder.php 1161
+ERROR - 2017-08-17 17:57:39 --> Severity: Notice --> Trying to get property of non-object C:\5.6\xampp\htdocs\SIA\SIANEW\siddharth_application\application\controllers\purchaseorder.php 1161
+ERROR - 2017-08-17 17:57:39 --> Severity: Notice --> Undefined variable: Import_DispatchDetails C:\5.6\xampp\htdocs\SIA\SIANEW\siddharth_application\application\views\importpopdf.php 159
+ERROR - 2017-08-17 17:57:39 --> Severity: Notice --> Undefined variable: ReqNo C:\5.6\xampp\htdocs\SIA\SIANEW\siddharth_application\application\views\importpopdf.php 180
+ERROR - 2017-08-17 17:57:39 --> Severity: Notice --> Undefined variable: CostCenterCode C:\5.6\xampp\htdocs\SIA\SIANEW\siddharth_application\application\views\importpopdf.php 184
+ERROR - 2017-08-17 17:57:39 --> Severity: Warning --> number_format() expects parameter 1 to be double, string given C:\5.6\xampp\htdocs\SIA\SIANEW\siddharth_application\application\views\importpopdf.php 373
+ERROR - 2017-08-17 18:00:01 --> Severity: Notice --> Undefined variable: Placeoforigin C:\5.6\xampp\htdocs\SIA\SIANEW\siddharth_application\application\views\capitalpopdf.php 144
+ERROR - 2017-08-17 18:00:28 --> Severity: Notice --> Undefined variable: Placeoforigin C:\5.6\xampp\htdocs\SIA\SIANEW\siddharth_application\application\views\capitalpopdf.php 144
diff --git a/application/models/purchaseorder_model.php b/application/models/purchaseorder_model.php
index e17272ad..700803b0 100755
--- a/application/models/purchaseorder_model.php
+++ b/application/models/purchaseorder_model.php
@@ -603,38 +603,15 @@ function purchaseorderListing($forwhat='')
}
// This Method to get the Service PO Child Details for Edit the Item
- function GetServicePurchaseOrderDetailsForPrint($PONO = '')
- {
-
- $subQuery ='SELECT distinct LineItem.LineItemNo,LineItem.ReqNo,LineItem.ServiceMaterialDescription,Mat.MaterialCode,Mat.MaterialName,Mat.UOM,Mat.HSNCODE,
- LineItem.Quantity,LineItem.Rate,(LineItem.Quantity *LineItem.Rate) as BasicValue ,(After_CGST + After_SGST + After_IGST) as Taxamount
- ,TotalValue,CGST,SGST,IGST,After_CGST,After_SGST,After_IGST,otherallowance,LineItem.CostCenterCode,sup.SupplierName,sup.Address,POMaster.DeliveryAddress,POMaster.DeliveryDate,POMaster.Status,POMaster.PODate,POMaster.PONO,POMaster.ServiceDescription,POMaster.PaymentOtherDescription,POMaster.DeliveryOption,POMaster.DeliverySchedule,ReqMat.NumberOfService,ReqMat.Service_Period,ReqMat.Schedule_Type,Payment.PaymentID,Payment.PaymentTerms,AdvanceAmount,HSNCODE FROM
- T_PurchaseOrder_LineItem LineItem
- join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode
- join T_Service_Tax Tax on Tax.LineItemNo = LineItem.LineItemNo
- join T_PurchaseOrder_Master POMaster on POMaster.PONO = LineItem.PONO
- join T_SupplierDetailsN sup on sup.SupplierID = POMaster.SupplierID
- join T_Requestion_Master ReqMat on ReqMat.ReqNo = LineItem.ReqNo
- join T_PaymentTerms Payment on Payment.PaymentID = POMaster.PaymentTerms
- left join T_PurchaseOrder_AdvanceRequest PurAdv on POMaster.PONO=PurAdv.PONO
- where LineItem.PONO =?';
-
- $query = $this->db->query($subQuery,array($PONO));
-
- return $query->result();
-
-
- }
-
- function GetServicePurchaseOrderAmendDetailsforPdfprint($PONO = '')
+ function GetServicePurchaseOrderDetailsforPdf($PONO = '')
{
- $subQuery ='SELECT distinct LineItem.LineItemNo,LineItem.ReqNo,LineItem.ServiceMaterialDescription,Mat.MaterialCode,Mat.MaterialName,
+ $subQuery ='SELECT distinct LineItem.LineItemNo,LineItem.ReqNo,LineItem.ServiceMaterialDescription,Mat.MaterialCode,Mat.MaterialName,POMaster.ParentPO,
Mat.UOM,Quantity,Rate,ROUND((Quantity *Rate),2 ) as BasicValue,POMaster.AmendedDetails,LineItem.AmendedDetails as lineamenddetails,
ROUND(( Tax.After_SGST + Tax.After_CGST + Tax.After_IGST ) ,2)as Taxamount,ReqMat.NumberOfService,ReqMat.Schedule_Type,ReqMat.Service_Period,
- TotalValue,Tax.*,LineItem.CostCenterCode ,POMaster.*,sup.SupplierName,sup.Address,Payment.PaymentTerms
+ TotalValue,Tax.*,LineItem.CostCenterCode ,POMaster.*,sup.SupplierName,sup.Address,Payment.PaymentTerms,AdvanceAmount
FROM T_PurchaseOrder_LineItem LineItem
join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode
join T_Service_Tax Tax on Tax.LineItemNo = LineItem.LineItemNo
@@ -642,6 +619,7 @@ function purchaseorderListing($forwhat='')
join T_SupplierDetailsN sup on sup.SupplierID = POMaster.SupplierID
join T_PaymentTerms Payment on Payment.PaymentID = POMaster.PaymentTerms
join T_Requestion_Master ReqMat on ReqMat.ReqNo = LineItem.ReqNo
+ left join T_PurchaseOrder_AdvanceRequest PurAdv on POMaster.PONO=PurAdv.PONO
where LineItem.PONO =?';
$query = $this->db->query($subQuery,array($PONO));
@@ -651,6 +629,8 @@ function purchaseorderListing($forwhat='')
}
+
+
// This Method to get the Revenue PO Child Details for Edit the Item
function GetRevenuePurchaseOrderDetails($PONO = '')
{
@@ -676,19 +656,18 @@ function purchaseorderListing($forwhat='')
function GetRevenuePurchaseOrderDetailsForPDF($PONO = '')
{
- $subQuery ='SELECT distinct LineItem.LineItemNo,ReqNo,Mat.MaterialCode,Mat.MaterialName,
- Mat.UOM,Mat.HSNCODE,Quantity,Rate,(Quantity *Rate) as BasicValue ,
- (AfterPackagingValue + AfterFreightValue + AfterSGST + AfterCGST +
- AfterIGST + Insurance) as Taxamount,AdvanceAmount,
- TotalValue,Tax.*,LineItem.CostCenterCode ,POMaster.*,sup.SupplierName,sup.Address,Payment.PaymentID,Payment.PaymentTerms,HSNCODE
+ $subQuery ='SELECT distinct LineItem.LineItemNo,ReqNo,Mat.MaterialCode,Mat.MaterialName,POMaster.PaymentOtherDescription,
+ Mat.UOM,Quantity,Rate,ROUND((Quantity *Rate),2 ) as BasicValue ,
+ ROUND(((AfterPackagingValue + AfterFreightValue + AfterSGST + AfterCGST +
+ AfterIGST + Insurance)) ,2)as Taxamount,AdvanceAmount,
+ TotalValue,Tax.*,LineItem.CostCenterCode ,POMaster.*,sup.SupplierName,sup.Address,LineItem.AmendedDetails as LineAmend,Payment.PaymentTerms
FROM T_PurchaseOrder_LineItem LineItem
join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode
join T_Revenue_Tax Tax on Tax.LineItemNo = LineItem.LineItemNo
join T_PurchaseOrder_Master POMaster on POMaster.PONO = LineItem.PONO
join T_SupplierDetailsN sup on sup.SupplierID = POMaster.SupplierID
-
- join T_PaymentTerms Payment on Payment.PaymentID = POMaster.PaymentTerms
- left join T_PurchaseOrder_AdvanceRequest PurAdv on POMaster.PONO=PurAdv.PONO
+ join T_PaymentTerms Payment on Payment.PaymentID = POMaster.PaymentTerms
+ left join T_PurchaseOrder_AdvanceRequest PurAdv on POMaster.PONO=PurAdv.PONO
where LineItem.PONO =?';
$query = $this->db->query($subQuery,array($PONO));
@@ -698,28 +677,7 @@ function purchaseorderListing($forwhat='')
}
// This Method to get the Revenue PO Child Details for Edit the Item
- function GetRevenuePurchaseOrderDetailsForAmendPDF($PONO = '')
- {
-
- $subQuery ='SELECT distinct LineItem.LineItemNo,ReqNo,Mat.MaterialCode,Mat.MaterialName,POMaster.PaymentOtherDescription,
- Mat.UOM,Quantity,Rate,ROUND((Quantity *Rate),2 ) as BasicValue ,
- ROUND(((AfterPackagingValue + AfterFreightValue + AfterSGST + AfterCGST +
- AfterIGST + Insurance)) ,2)as Taxamount,
- TotalValue,Tax.*,LineItem.CostCenterCode ,POMaster.*,sup.SupplierName,sup.Address,LineItem.AmendedDetails as LineAmend,Payment.PaymentTerms
- FROM T_PurchaseOrder_LineItem LineItem
- join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode
- join T_Revenue_Tax Tax on Tax.LineItemNo = LineItem.LineItemNo
- join T_PurchaseOrder_Master POMaster on POMaster.PONO = LineItem.PONO
- join T_SupplierDetailsN sup on sup.SupplierID = POMaster.SupplierID
- join T_PaymentTerms Payment on Payment.PaymentID = POMaster.PaymentTerms
- where LineItem.PONO =?';
-
- $query = $this->db->query($subQuery,array($PONO));
-
- return $query->result();
-
-
- }
+
function GetImportPurchaseOrderDetailsForPDF($PONO = '')
{
@@ -882,27 +840,7 @@ QuantityRejected,ROUND(Quantity-ReceivedQuantity)as PendingQty,
}
- function GetCapitalAmendPurchaseOrderDetailsForprintPDF($PONO = '')
- {
- //echo $PONO;
-
- $subQuery ='SELECT distinct LineItem.PONO,LineItem.AmendedDetails as lineamd,LineItem.LineItemNo,SUP.SupplierName,SUP.Address,POMast.DeliveryAddress,POMast.DeliveryDate,POMast.PODate,POMast.DeliveryOption,POMast.ServiceDescription,POMast.ServiceDescription,POMast.Import_DispatchDetails,POMast.Import_PlaceofOrgin,POMast.AmendedDetails,POMast.DeliverySchedule,POMast.TotalOrderValue,Req.ReqNo,Mat.MaterialCode,Mat.MaterialName,LineItem.ServiceMaterialDescription,LineItem.ServiceFrequency,
-Mat.UOM,Quantity,Rate,POMast.Status,POMast.ExchangeRate,POMast.ExchangeRateCalculatedon,POMast.PaymentOtherDescription,POMast.TotalOrderValue as BasicValue,POMast.CapitalRange,POMast.CurrencyType,Payment.PaymentTerms,
- Req.CostCenterCode FROM T_PurchaseOrder_LineItem LineItem
- join T_PurchaseOrder_Master POMast on POMast.PONO = LineItem.PONO
- join T_SupplierDetailsN SUP on SUP.SupplierID=POMast.SupplierID
-join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode
- join T_Service_Tax ServiceTax on ServiceTax.LineItemNo = LineItem.LineItemNo
- join T_Import_Tax Tax on Tax.LineItemNo = LineItem.LineItemNo
- join T_Requestion_Master Req on Req.ReqNo = LineItem.ReqNo
- join T_PaymentTerms Payment on Payment.PaymentID = POMast.PaymentTerms
- join T_Employee_Details emp on Req.Requestedby = emp.EmpID where LineItem.PONO =?';
- $query = $this->db->query($subQuery,array($PONO));
- //print_r ($query->result());
- return $query->result();
-
-
- }
+
@@ -1338,7 +1276,7 @@ join T_MaterialMaster Mat on Mat.MaterialCode = LineItem.MaterialCode
function GetCapitalPurchaseOrderDetailsForPDF($PONO = '')
{
- $subQuery ='SELECT distinct LineItem.LineItemNo,ReqNo,Mat.MaterialCode,Mat.MaterialName,
+ $subQuery ='SELECT distinct LineItem.LineItemNo,LineItem.AmendedDetails as lineamd,ReqNo,Mat.MaterialCode,Mat.MaterialName,
Mat.UOM,Mat.HSNCODE,Quantity,Rate,ROUND((Quantity *Rate),2 ) as BasicValue ,
LineItem.CostCenterCode , POMaster.*,sup.SupplierName,sup.Address,Payment.PaymentID,Payment.PaymentTerms,AdvanceAmount,HSNCODE
FROM T_PurchaseOrder_LineItem LineItem
diff --git a/application/third_party/dompdf/lib/fonts/log.htm b/application/third_party/dompdf/lib/fonts/log.htm
index fef6681f..bc2b9fe7 100755
--- a/application/third_party/dompdf/lib/fonts/log.htm
+++ b/application/third_party/dompdf/lib/fonts/log.htm
@@ -1 +1 @@
-8,192 KB 183.2461 ms
\ No newline at end of file
+12,800 KB 897.1789 ms
\ No newline at end of file
diff --git a/application/views/AmendPOlist.php b/application/views/AmendPOlist.php
index 11176a94..8df6beda 100755
--- a/application/views/AmendPOlist.php
+++ b/application/views/AmendPOlist.php
@@ -73,7 +73,7 @@
|
- - - |
-||
|
- Vendor Address : - |
-
- Delivery To : - - |
-|
| PO DATE : | -DISPATCH INSTRUCTION/ SCHEDULE BY : | -PLACE OF ORIGIN: | -
| Requistion Number | -Requistion Date | -Requested By | -Requested Department | -Cost Center | -
| - | 03/08/2017 | -- | - | - |
- -
| # | -Item and Description | -HSN Code | -UOM | -Qty | - -Rate per unit in | -Basic Price in | - - -
|---|---|---|---|---|---|---|
| - | MaterialName ; ?> | -HSNCODE;?> | -UOM ; ?> | -Quantity ; ?> | - -Rate ; ?> | -Quantity*$record->Rate); - echo number_format($BasicValue,2,'.','') ; ?> | - - - - -
- -
Payment Terms:
- -|
- Amended Details - |
- ||
| -" . $v->AmendedDetails . ""; - break; - } -}?> - | -||
| Item Description | -Previous Details | Current Details | -
-
| Total Amount In Words |
- Total Amount In | -
|
-
-
-
- ReleasedOn, new DateTimeZone('Asia/Kolkata'));
-
-
- ?>
-
-
- - Released By : FirstName;?>
- Released On : format('d-m-Y');?>
-
-
-
-
- |
-
- Certified that the particulars given above are true and correct - -- Authorized Signatory - |
-
|
- - - |
-||
|
- Vendor Address : - |
-
- Delivery To : - - |
-|
| PO DATE : | -DELIVERY DATE / SCHEDULE BY : | -|
| Requistion Number | -Requistion Date | -Frequency | -Requested By | -Requested Department | -Cost Center | -
| - | format("d-m-Y"); echo $date; ?> | -- | - | - | - |
| # | - -Service Description | -HSN Code | -UOM | -Qty | - -Rate In INR | -Basic Amount In INR | - -
|---|---|---|---|---|---|---|
| - | ServiceMaterialDescription ; ?> | -HSNCODE)){echo $record->HSNCODE;}else{echo "NIL";}?> | -UOM ; ?> | -Quantity ; ?> | - -Rate ; ?> | -Schedule_Type == "One Time"){echo number_format(($record->Quantity * $record->Rate),2,'.','');}else if($record->Schedule_Type == "Recurring"){echo number_format((($record->Quantity * $record->Rate) * $record->NumberOfService),2,'.','');} ?> | - -
| HSN Code | -CGST |
-SGST |
-IGST |
-Total Tax Amt | -Other Allow In INR | -Total Amt In INR | -|||
| Value | -Amt | -Value | -Amt | -Value | -Amt | -||||
| HSNCODE)){echo $record->HSNCODE;}else{echo "NIL";}?> | -CGST?>% | -After_CGST?> | -SGST?>% | -After_SGST?> | -IGST?>% | -After_IGST?> | -Taxamount?> | -otherallowance?> | -Schedule_Type == "One Time"){echo number_format(($l->Taxamount + $l->otherallowance + ($l->Rate * $l->Quantity)),2,'.','');}else if($record->Schedule_Type == "Recurring"){echo number_format(($l->Taxamount + $l->otherallowance + ($l->Rate * $l->Quantity * $l->NumberOfService)),2,'.','');}?> | -
- -
|
- Amended Details - |
- ||
| -" . $v->AmendedDetails . ""; - break; - } -}?> - | -||
| Item Description | -Previous Details | Current Details | -
- - -
Payment Terms:
- -| Total Amount In Words |
- Total Amount Before Tax In INR | -- |
| Total Tax Amount In INR | -- | |
| Total Amount After Tax In INR | -- | |
|
- ReleasedOn, new DateTimeZone('Asia/Kolkata'));
-
-
- ?>
-
-
- - Released By : FirstName;?>
- Released On : format('d-m-Y');?>
-
-
-
-
- |
-
- Certified that the particulars given above are true and correct - -- Authorized Signatory - |
- |
|
- - - |
-||
|
- Vendor Address :
- - |
-
- Delivery To : - - |
-|
| PO DATE : | -DELIVERY DATE / SCHEDULE BY : | -|
| Requistion Number | -Requistion Date | -Requested By | -Requested Department | -Cost Center | -
| - | format("Y-m-d"); echo $date; ?> | -- | - | - |
| # | -Item Code | -Item Description | -HSN Code | -UOM | -Qty | -Rate In INR | -Basic Value In INR | - - -
|---|---|---|---|---|---|---|---|
| - | MaterialCode ; ?> | -MaterialName ; ?> | -HSNCODE)){echo $record->HSNCODE;}else{echo "NIL";} ; ?> | -UOM ; ?> | -Quantity ; ?> | -Rate ; ?> | -BasicValue ; ?> | - -
| HSN Code |
-Discount In INR |
-SGST |
-CGST |
-IGST |
-
-Packaging In INR | -Insurance In INR | -Freight In INR | -Total Tax | -Total Amount In INR | -||||||
| Value | -Amt | -Value | -Amt | -Value | -Amt | -Value | -Amt | -Value | -Amt | -Value | -Amt | -||||
| HSNCODE)){echo $l->HSNCODE;}else{echo "NIL";} ; ?> | -DiscountType == 'PERCENTAGE'){$type="%";}else if($l->DiscountType == 'LUMP SUM'){$type="LS";}else if($l->DiscountType == 'NIL'){$type='';} echo $l->DiscountValue . $type;?> | -AfterDiscount;?> | -SGST."%";?> | -AfterSGST;?> | -CGST."%";?> | -AfterCGST;?> | -IGST."%";?> | -AfterIGST;?> | -PackagingType == 'PERCENTAGE'){$type="%";}else if($l->PackagingType == 'LUMP SUM'){$type="LS";}else if($l->PackagingType == 'NIL'){$type='';} echo $l->PackagingValue . $type;?> | -AfterPackagingValue;?> | -Insurance;?> | -FreightType == 'PER TRIP'){$type="TRIP"; echo $l->FreightValue ."*" . $l->NoOfTrip . $type;}else{ if($l->FreightType == 'LUMP SUM'){$type="LS";}else if($l->FreightType == 'NIL'){$type='';}else if($l->FreightType == 'PER UOM'){$type='UOM';}else if($l->FreightType == 'PERCENTAGE'){$type='%';} echo $l->PackagingValue . $type;}?> | -AfterFreightValue;?> | -AfterSGST+$l->AfterCGST+$l->AfterIGST+$l->AfterPackagingValue+$l->Insurance+$l->AfterFreightValue;echo number_format($tax,2);?> | -BasicValue + $tax)-($l->AfterDiscount)),2);?> | - -
|
- Amended Details - |
- ||
| -" . $v->AmendedDetails . ""; - break; - } -}?> - | -||
| Item Description | -Previous Details | Current Details | -
Payment Terms :
- -| Total Amount In Words : |
- Total Amount Before Tax In INR : | -- |
| Total Tax Amount In INR : | -- | |
| Total Amount After Tax In INR : | -- | |
|
-
-
-
- ReleasedOn, new DateTimeZone('Asia/Kolkata'));
-
-
- ?>
-
- - Released By : FirstName;?>
- Released On : format('d-m-Y');?>
-
-
-
-
- |
-
- Certified that the particulars given above are true and correct -- - Authorized Signatory - |
- |
- - - -
|
- - - |
-||
|
- Vendor Address : - |
-
- Delivery To : - - |
-|
| PO DATE : | -DELIVERY DATE / SCHEDULE BY : | - -|
| Requistion Number | -Requistion Date | -Requested By | -Requested Department | -Cost Center | -
| - | format("Y-m-d"); echo $date; ?> | -- | - | - |
-
| # | -Item and Description | -HSN Code | -UOM | -Qty | - -Rate Per Unit in | - -Rate Per Unit in | - - - -Total Amount in | - -Total Amount in | -
|---|---|---|---|---|---|---|---|---|
| - | MaterialCode;?> - MaterialName ; ?> | -HSNCODE)){echo $record->HSNCODE;}else {echo "NIL";}?> | -UOM; ?> | -Quantity ; ?> | -Rate ; ?> | - -Quantity*$record->Rate); - echo number_format($BasicValue,2) ; ?> | -
- -
Payment Terms:
- - -|
- Amended Details - |
- ||
| -AmendedDetails)) - { - echo "" . $v->AmendedDetails . ""; - break; - } - } -}?> - | -||
| Item Description | -Previous Details | Current Details | -
-
| Total Amount In Words |
-
- Total Order Amount in Total Order Amount in |
-
|
-
- ReleasedOn, new DateTimeZone('Asia/Kolkata'));
-
-
- ?>
-
-
-
- - Released By : FirstName;?>
- Released On : format('d-m-Y');?>
-
-
-
-
-
-
-
- |
-
- Certified that the particulars given above are true and correct - -- Authorized Signatory - |
-
| + |
|
@@ -120,43 +131,34 @@
||||
|
Vendor Address : - |
-+ |
Delivery To : - + |
|||
| PO DATE : | -DISPATCH / SCHEDULE BY : | -PLACE OF ORIGIN: | - -|||
| PO DATE : | -DELIVERY DATE/ SCHEDULE BY : | - -PO DATE : | +DELIVERY DATE / SCHEDULE BY : | + +||
| Requistion Number | -Requistion Date | -Requested By | -Requested Department | -Cost Center | -Requistion Number | +Requistion Date | +Requested By | +Requested Department | +Cost Center | + +
| - | - | - | - | + | + | format("Y-m-d"); echo $date; ?> | ++ | + |
- -
| # | -Item Code | -Item Name | -HSN Code | -Qty | -UOM | +
|---|
+
| # | +Item and Description | +HSN Code | +UOM | +Qty | - -Rate Per Unit in | - +Rate Per Unit in | +Rate Per Unit in | -Rate Per Unit in | - - - -Total Amount in | + +Total Amount in | +Total Amount in | +Total Amount in | + - - -Quantity*$record->Rate; - ?> -
|---|---|---|---|---|---|---|---|---|---|---|---|
| - | MaterialCode ; ?> | -MaterialName ; ?> | -HSNCODE ; ?> | +||||||||
| + | MaterialCode;?> - MaterialName ; ?> | +HSNCODE)){echo $record->HSNCODE;}else {echo "NIL";}?> | +UOM; ?> | Quantity ; ?> | -UOM ; ?> | -Rate),2, '.', '') ; ?> | -Quantity * $record->Rate),2, '.', '');?> | - +Rate ; ?> | + +Quantity * $record->Rate); + echo number_format($BasicValue,2) ; ?> | +
+ +
Payment Terms:
+ + +|
+ Amended Details + |
+ ||
| + - - + foreach($POItem as $v) + { + if(!empty($v->AmendedDetails)) + { + echo "" . $v->AmendedDetails . ""; + break; + } + } +}?> + | +||
| Item Description | +Previous Details | Current Details | +
- -
Payment Terms:
- -Special Instruction:
- - -+
| Total Amount In Words |
- + | Total Amount In Words |
+
+
+ + Total Order Amount in | Total Order Amount in
- Total Order Amount in Total Order Amount in |
+
| Advance Paid In | ||||
| Balance amount needs to pay | ||||
| - ReleasedOn, new DateTimeZone('Asia/Kolkata')); - + ?> @@ -299,16 +345,16 @@ } } else { - ?> - + + | -+ |
Certified that the particulars given above are true and correct @@ -316,10 +362,17 @@ |
||
+
- \ No newline at end of file + \ No newline at end of file diff --git a/application/views/importpopdf.php b/application/views/importpopdf.php index ba64286e..27cbd0b5 100755 --- a/application/views/importpopdf.php +++ b/application/views/importpopdf.php @@ -13,13 +13,8 @@ $DeliverySchedule=''; $ServiceDescription = ''; $ReqBy=''; - $PaymentTerms=''; - $PaymentDays=''; - $PayableAT=''; - $Placeoforigin=''; - $Import_DispatchDetails=''; - $ReqDate=''; - + $PaymentTerms=''; + $advance=0; $index=0; @@ -32,20 +27,20 @@ } } - + $TotalOrderValue1=''; + $PlaceofOrigin=''; if(!empty($POItem)) { foreach ($POItem as $PO) { $ReqNo=$PO->ReqNo; - $ReqDate=$PO->ReqDate; $PONO = $PO->PONO; $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'); $dtDe = new DateTime($PO->DeliveryDate, new DateTimeZone('Asia/Kolkata')); @@ -53,18 +48,28 @@ $ServiceDescription =$PO->ServiceDescription; $CostCenterCode=$PO->CostCenterCode; //$ReqBy=$PO->Requestedby; + $TotalOrderValue1=$PO->TotalOrderValue; - $PaymentTerms = $PO->Pay; + $PaymentTerms = $PO->Pay; + //$PaymentDays=$PO->PaymentDays; + //$PayableAT=$PO->PayableAT; + $PlaceofOrigin=$PO->Import_PlaceofOrgin; - $Placeoforigin=$PO->Import_PlaceofOrgin; - $Import_DispatchDetails=$PO->Import_DispatchDetails; - // $PaymentDays=$PO->PaymentDays; - // $PayableAT=$PO->PayableAT; - $DeliverySchedule=$PO->DeliverySchedule; + if($PO->DeliveryOption=='1'){ + $DeliveryDate = ''; + $DeliverySchedule = $PO->DeliverySchedule; + $Import_DispatchDetails=''; + } + else{ + $dtDe = new DateTime($PO->DeliveryDate, new DateTimeZone('Asia/Kolkata')); + $DeliveryDate = $dtDe->format('d-m-Y'); + $DeliverySchedule = ''; + $Import_DispatchDetails=$PO->Import_DispatchDetails; + } } } +//echo $SuplierName; -//echo $DeliverySchedule; if(!empty($Requestername)) { @@ -115,7 +120,7 @@
| Requistion Number | -Requistion Date | -Requested By | -Requested Department | -Cost Center Code | +Requistion Number | +Requistion Date | +Requested By | +Requested Department | +Cost Center |
| - | - | - | - | + | + | 03/08/2017 | ++ | + |
| # | -Item and Description | -HSN Code | -Qty | +# | +Item and Description | +HSN Code | +UOM | +Qty | -UOM - | Rate per unit in | -Basic Price in | -Total Amount in | +Rate per unit in | +Basic Price in | +
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| - | MaterialName ; ?> | -HSNCODE;?> | -Quantity ; ?> | ++ | MaterialName ; ?> | +HSNCODE;?> | +UOM ; ?> | +Quantity ; ?> | -UOM ; ?> | -Rate),2, '.', '') ; ?> | -Quantity*$record->Rate); - echo number_format($BasicValue,2, '.', '') ; ?> | - -Quantity*$record->Rate); - echo number_format($BasicValue,2, '.', '') ; ?> | +Rate ; ?> | +Quantity*$record->Rate); + echo number_format($BasicValue,2,'.','') ; ?> | + + +
- -
Payment Terms:
- -Payment Terms:
+ +|
+ Amended Details + |
+ ||
| +" . $v->AmendedDetails . ""; + break; + } +}?> + | +||
| Item Description | +Previous Details | Current Details | +
| Total Amount In Words |
- Total Amount In | +Total Amount In Words |
+ Total Amount In | |
| Advance Paid In | ||||
| Balance amount needs to pay | ||||
| - - - - - + | -+ |
Certified that the particulars given above are true and correct @@ -323,9 +412,10 @@ | ||
|
- - - |
-|||
|
- Vendor Address : - |
-
- Delivery To : - - |
-||
| PO DATE : | -DISPATCH / SCHEDULE BY : | -PLACE OF ORIGIN: | - -|
| PO DATE : | -DELIVERY DATE/ SCHEDULE BY : | - -||
| Requistion Number | -Requistion Date | -Requested By | -Requested Department | -Cost Center | -
| - - - | - | - | - | - |
- -
| # | -Item Code | -Item Name | -HSN Code | -UOM - | Qty | - - - -Rate Per Unit in | - - - -Rate Per Unit in | - - - -Total Amount in | - - - -Total Amount in | - - - - -
|---|---|---|---|---|---|---|---|---|---|
| - | MaterialCode ; ?> | -MaterialName ; ?> | -HSNCODE ;?> | -UOM ; ?> | -Quantity ; ?> | - -Rate),2, '.', '') ; ?> | -Quantity * $record->Rate),2, '.', '');?> | - - -
Payment Terms
- - -Special Instruction:
- --
| Total Amount In Words |
- - - Total Order Amount in Total Order Amount in | -- |
| Advance Amount Paid | -- | |
| Total Amount To Pay In INR | -- | |
|
- ReleasedOn, new DateTimeZone('Asia/Kolkata'));
-
-
- ?>
-
-
- - Released By : FirstName;?>
- Released On : format('d-m-Y');?>
-
-
-
-
- |
-
- Certified that the particulars given above are true and correct - -- Authorized Signatory - |
- |
- - - diff --git a/application/views/mririmportpopdf.php b/application/views/mririmportpopdf.php deleted file mode 100755 index c73ca66e..00000000 --- a/application/views/mririmportpopdf.php +++ /dev/null @@ -1,369 +0,0 @@ -CompanyName; - $CompanyAddress = $CO->Address; - } - } - - - if(!empty($POItem)) - { - - foreach ($POItem as $PO) - { - $ReqNo=$PO->ReqNo; - $ReqD=new DateTime($PO->ReqDate,new DateTimeZone('Asia/Kolkata')); - $ReqDate=$ReqD->format('d-m-Y'); - //$ReqDate=$PO->ReqDate; - $PONO = $PO->PONO; - $postatus= $PO->Status; - $SuplierName = $PO->SupplierName; - $SuplierAddress = $PO->Address; - $DeliveryAddress = $PO->DeliveryAddress; - - $dt = new DateTime($PO->PODate, new DateTimeZone('Asia/Kolkata')); - $Podt = $dt->format('d-m-Y'); - $dtDe = new DateTime($PO->DeliveryDate, new DateTimeZone('Asia/Kolkata')); - $DeliveryDate = $dtDe->format('d-m-Y'); - $ServiceDescription =$PO->ServiceDescription; - $CostCenterCode=$PO->CostCenterCode; - //$ReqBy=$PO->Requestedby; - - $PaymentTerms = $PO->Pay; - - $Placeoforigin=$PO->Import_PlaceofOrgin; - $Import_DispatchDetails=$PO->Import_DispatchDetails; - // $PaymentDays=$PO->PaymentDays; - // $PayableAT=$PO->PayableAT; - $DeliverySchedule=$PO->DeliverySchedule; - $AdvanceAmount=$PO->AdvanceAmount; - $Total=$PO->TotalOrderValue; - - } - } - -//echo $DeliverySchedule; - if(!empty($Requestername)) - - { - foreach ($Requestername as $Reqname) - { - $ReqBy=$Reqname->FirstName; - } - } - - $CurrencyCode=''; - $CurrencyName=''; - - if(!empty($Currencytype)) - { - foreach ($Currencytype as $CURRE) - { - $CurrencyCode=$CURRE->Currency_Code; - $CurrencyName=$CURRE->FontCode2000; - } - - } - - // echo $CurrencyCode; - - $DEPNAME=''; - - if(!empty($DEPCODE)) - { - foreach ($DEPCODE as $DEP) - { - $DEPNAME=$DEP->DepartmentName; - } - } - - - - - -?> - - - -
|
- - - |
-||
|
- Vendor Address : - |
-
- Delivery To : - - |
-|
| PO DATE : | -DELIVERY DATE / SCHEDULE BY : | -PLACE OF ORIGIN: | -
| Requistion Number | -Requistion Date | -Requested By | -Requested Department | -Cost Center Code | -
| - - | - | - | - | - |
| # | -Item and Description | -HSN Code | -Qty | - -UOM - | Rate per unit in | -Basic Price in | -Total Amount in | - -
|---|---|---|---|---|---|---|---|
| - | MaterialName ; ?> | -HSNCODE;?> | -Quantity ; ?> | - -UOM ; ?> | -Rate),2, '.', '') ; ?> | -Quantity*$record->Rate); - echo number_format($BasicValue,2, '.', '') ; ?> | - -Quantity*$record->Rate); - echo number_format($BasicValue,2, '.', '') ; ?> | - -
- -
Payment Terms:
- -- -
|
-
- Total Amount In Words |
-
-
- Total Amount In | - -- - - | |
| Advance Paid | -- - | ||
| Balance amount needs to pay | -- - | ||
|
-
-
-
-
- ReleasedOn, new DateTimeZone('Asia/Kolkata'));
-
-
- ?>
-
-
- - Released By : FirstName;?>
- Released On : format('d-m-Y');?>
-
-
-
-
- |
-
- Certified that the particulars given above are true and correct - -- Authorized Signatory - |
- ||
|
- - - |
-||
|
- Vendor Address : - |
-
- Delivery To : - - |
-|
| PO DATE : | -DELIVERY DATE / SCHEDULE BY : | -|
| Requistion Number | -Requistion Date | -Requested By | -Requested Department | -Cost Center | -
| - | - | - | - | - |
- -
| # | -Item Code | -Item Name | -HSN Code | -UOM | -Qty | -Rate In INR | -Basic Value In INR | - -
| - | MaterialCode ; ?> | -MaterialName ; ?> | -HSNCODE ; ?> - | UOM ; ?> | -Quantity ; ?> | - -Rate ; ?> | -BasicValue, 2, '.', '') ;?> | - -
- - -
| HSN Code |
-Discount In INR |
-SGST |
-CGST |
-IGST |
-Packaging In INR | -Insurance In INR | -Freight In INR | -Tax Amt In INR |
-Total Amount In INR | -|||||||
| Type | -Amt | -Type | -Amt | -Type | -Amt | -Type | -Amt | -Type | -Amt | -Type | -Amt | -|||||
| HSNCODE ; ?> | -DiscountType.'-'.$record1->DiscountValue; ?> | -AfterDiscount, 2, '.', ''); ?> | -SGST ; ?> | -AfterSGST, 2, '.', ''); ?> | -CGST ; ?> | -AfterCGST, 2, '.', ''); ?> | -IGST ; ?> | -AfterIGST, 2, '.', ''); ?> | -PackagingType.'-'. $record1->PackagingValue ; ?> | -AfterPackagingValue, 2, '.', ''); ?> | -Insurance, 2, '.', ''); ?> | -FreightType=='PER TRIP'){ ?> -FreightType.'('.$record1->NoOfTrip.')-'. $record1->FreightValue;?> | - -FreightType!='PER TRIP'){ ?> -FreightType.'-'. $record1->FreightValue;?> | - - -AfterFreightValue, 2, '.', ''); ?> | -Taxamount, 2, '.', ''); ?> | -BasicValue+$record1->Taxamount-$record1->AfterDiscount), 2, '.', ''); ?> | -
-
Payment Terms:
- - - -Special Instructions:
- - - -|
-
- Total Amount In Words - - |
-
-Total Amount Before Tax In INR | -- - |
| Total Tax Amount In INR | -- - | |
| Total Amount After Tax In INR | -- - | |
| Advance Paid | -- - | |
| Balance amount needs to pay | -- - | |
|
-
-ReleasedOn, new DateTimeZone('Asia/Kolkata'));
-
-
- ?>
-
-
-
- - Released By : FirstName;?>
- Released On : format('d-m-Y');?>
-
-
-
-
-
- |
-
-
-
- Certified that the particulars given above are true and correct - -- - - - Authorized Signatory - |
-|
|
- - - |
- ||
|
- Vendor Address : - |
-
- Delivery To : - - |
- |
| PO DATE : | -DELIVERY DATE / SCHEDULE BY : | -|
| Requistion Number | -Frequency | -Requistion Date | - -Requested By | - -Requested Department | - -Cost Center Code | - -
| - | - | - | - | - | - |
- - -
| # | - - - -Item Description | - -HSN Code | - -UOM | - - - -Qty | - -Rate In INR | - -Basic Value In INR | - - - -
| - - | ServiceMaterialDescription ; ?> | -HSNCODE ; ?> | -UOM ; ?> | - -Quantity ; ?> | - -Rate, 2, '.', ''); ?> | -NumberOfService==0 || $record->NumberOfService==''){ - echo number_format($record->BasicValue, 2, '.', ''); - $TotalAmount = $record->BasicValue + $record->Taxamount + $record->otherallowance; - $SubTotalAmount = $SubTotalAmount + $record->BasicValue + $record->otherallowance; - } - else{ - echo number_format($record->BasicValue * $record->NumberOfService, 2, '.', ''); - $TotalAmount = $record->BasicValue * $record->NumberOfService + $record->Taxamount + $record->otherallowance; - $SubTotalAmount = $SubTotalAmount + $record->BasicValue * $record->NumberOfService + $record->otherallowance; - } - ?> | - -
- -
| HSN |
- CGST |
- SGST |
- IGST |
- Tax Amt In INR |
- Other Allow In INR |
- Total Amount In INR | - -|||
| IN% | -Amt | -IN% | -Amt | -IN% | -Amt | -||||
| HSNCODE ; ?> | -CGST ; ?> | -After_CGST, 2, '.', ''); ?> | -SGST ; ?> | -After_SGST, 2, '.', ''); ?> | -IGST ; ?> | -After_IGST, 2, '.', ''); ?> | -Taxamount, 2, '.', ''); ?> | -otherallowance, 2, '.', ''); ?> | -NumberOfService==0 || $record->NumberOfService==''){ - echo number_format($record->BasicValue + $record1->Taxamount + $record1->otherallowance, 2, '.', ''); - - } - else{ - echo number_format($record->BasicValue * $record->NumberOfService + $record1->Taxamount + $record1->otherallowance, 2, '.', ''); - - } - ?> | -
- - -
Payment Terms:
- - -Scope Of Work As Per Annexure:
- - - - - - - -|
-
-
-
- Total Amount In Words - - - - |
-
-
-
- Total Amount Before Tax In INR | - -- - |
| Total Tax Amount In INR | -- | |
| Total Amount After Tax In INR | - -- - | |
| Advance Paid | - -- - | |
| Balance amount needs to pay | - -- - | |
|
- - ReleasedOn, new DateTimeZone('Asia/Kolkata')); - - - ?> - - Released By : FirstName;?>
- Released On : format('d-m-Y');?>
-
-
-
-
-
-
-
-
-
-
- |
-
-
-
-
-
-
-
- Certified that the particulars given above are true and correct - - - -- - - - - - - - Authorized Signatory - - |
-
- |
|
@@ -110,47 +132,48 @@ |
||
|
- Vendor Address : - |
Delivery To : - + |
|
| PO DATE : | -DELIVERY DATE / SCHEDULE BY : | +|
| PO DATE : | +DELIVERY DATE / SCHEDULE BY : | |
| Requistion Number | -Requistion Date | -Requested By | -Requested Department | -Cost Center | -Requistion Number | +Requistion Date | +Requested By | +Requested Department | +Cost Center | + + -
| - | + | format("Y-m-d"); echo $date; ?> | @@ -158,72 +181,82 @@ |
- -
| # | -Item Code | -Item Name | -HSN Code | -UOM | -Qty | -Rate In INR | -Basic Value In INR | - -
| # | +Item Code | +Item Description | +HSN Code | +UOM | +Qty | +Rate In INR | +Basic Value In INR | + + +|||
|---|---|---|---|---|---|---|---|---|---|---|
| MaterialCode ; ?> | MaterialName ; ?> | -HSNCODE ; ?> + | HSNCODE)){echo $record->HSNCODE;}else{echo "NIL";} ; ?> | UOM ; ?> | Quantity ; ?> | - -Rate ; ?> | -BasicValue, 2, '.', '') ;?> | - +Rate ; ?> | +BasicValue,2,'.','') ; ?> | +
- + +
| SGST |
CGST |
IGST |
+
Packaging In INR | Insurance In INR | Freight In INR | -Tax Amt In INR |
+Total Tax | Total Amount In INR | ||||||||
| Type | +||||||||||||||||
| Value | Amt | -Type | +Value | Amt | -Type | +Value | Amt | -Type | +Value | Amt | -Type | +Value | Amt | -Type | +Value | Amt |
| HSNCODE ; ?> | -DiscountType.'-'.$record1->DiscountValue; ?> | -AfterDiscount, 2, '.', ''); ?> | -SGST ; ?> | -AfterSGST, 2, '.', ''); ?> | -CGST ; ?> | -AfterCGST, 2, '.', ''); ?> | -IGST ; ?> | -AfterIGST, 2, '.', ''); ?> | -PackagingType.'-'. $record1->PackagingValue ; ?> | -AfterPackagingValue, 2, '.', ''); ?> | -Insurance, 2, '.', ''); ?> | -FreightType=='PER TRIP'){ ?> -FreightType.'('.$record1->NoOfTrip.')-'. $record1->FreightValue;?> | - -FreightType!='PER TRIP'){ ?> -FreightType.'-'. $record1->FreightValue;?> | - - -AfterFreightValue, 2, '.', ''); ?> | -Taxamount, 2, '.', ''); ?> | -BasicValue+$record1->Taxamount-$record1->AfterDiscount), 2, '.', ''); ?> | + +
| HSNCODE)){echo $l->HSNCODE;}else{echo "NIL";} ; ?> | +DiscountType == 'PERCENTAGE'){$type="%";}else if($l->DiscountType == 'LUMP SUM'){$type="LS";}else if($l->DiscountType == 'NIL'){$type='';} echo $l->DiscountValue . $type;?> | +AfterDiscount;?> | +SGST."%";?> | +AfterSGST;?> | +CGST."%";?> | +AfterCGST;?> | +IGST."%";?> | +AfterIGST;?> | +PackagingType == 'PERCENTAGE'){$type="%";}else if($l->PackagingType == 'LUMP SUM'){$type="LS";}else if($l->PackagingType == 'NIL'){$type='';} echo $l->PackagingValue . $type;?> | +AfterPackagingValue;?> | +Insurance;?> | +FreightType == 'PER TRIP'){$type="TRIP"; echo $l->FreightValue ."*" . $l->NoOfTrip . $type;}else{ if($l->FreightType == 'LUMP SUM'){$type="LS";}else if($l->FreightType == 'NIL'){$type='';}else if($l->FreightType == 'PER UOM'){$type='UOM';}else if($l->FreightType == 'PERCENTAGE'){$type='%';} echo $l->PackagingValue . $type;}?> | +AfterFreightValue;?> | +AfterSGST+$l->AfterCGST+$l->AfterIGST+$l->AfterPackagingValue+$l->Insurance+$l->AfterFreightValue;echo number_format($tax,2);?> | +BasicValue + $tax)-($l->AfterDiscount)),2,'.','');?> | +|
-
Payment Terms:
+Special Instructions:
- - - -|
-
- Total Amount In Words - - |
-
-Total Amount Before Tax In INR | -- - | |||||||||||||||||||||||
| Total Tax Amount In INR | -- - | ||||||||||||||||||||||||
| Total Amount After Tax In INR | -- - | ||||||||||||||||||||||||
-
-
+ ParentPO != ''){
+ $i++;
+ }
+ }
+ }
+ if($i>0){
+ ?>
+
+
Payment Terms : + + Special Instruction:
+
+
+ + + + - |
-
-
- Certified that the particulars given above are true and correct - -- - - - Authorized Signatory - |
-||||||||||||||||||||||||