[Vtigercrm-commits] [vtiger-commits] r4471 - /vtigercrm/trunk/modules/PurchaseOrder/CreatePDF.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon Mar 27 22:01:24 EST 2006


Author: saraj
Date: Mon Mar 27 20:01:20 2006
New Revision: 4471

Log:
junk code has been removed

Modified:
    vtigercrm/trunk/modules/PurchaseOrder/CreatePDF.php

Modified: vtigercrm/trunk/modules/PurchaseOrder/CreatePDF.php
==============================================================================
--- vtigercrm/trunk/modules/PurchaseOrder/CreatePDF.php (original)
+++ vtigercrm/trunk/modules/PurchaseOrder/CreatePDF.php Mon Mar 27 20:01:20 2006
@@ -3,13 +3,7 @@
 require_once('modules/PurchaseOrder/PurchaseOrder.php');
 require_once('include/database/PearDatabase.php');
 
-//define('EURO', chr(128) );
-//define('EURO_VAL', 6.55957 );
-//define('USD',"£");
-
-//Curency Settings By OpenCRM
-global $adb;
-global $app_strings;
+global $adb,$app_strings;
 
 $sql="select currency_symbol from currency_info";
 $result = $adb->query($sql);
@@ -21,7 +15,6 @@
 $products_per_page="6";
 
 $id = $_REQUEST['record'];
-global $adb;
 //retreiving the invoice info
 $focus = new Order();
 $focus->retrieve_entity_info($_REQUEST['record'],"PurchaseOrder");
@@ -175,38 +168,11 @@
 	$mid = $y1 + ($y2 / 2);
 	$width=10;
 	$this->SetFillColor(192);
-	//$this->RoundedRect($r1-16, $y1-1, (strlen($label." ".$total)*8)+4, $y2+1, 2.5, 'DF');
 	$this->RoundedRect($r1-16, $y1-1, 52, $y2+1, 2.5, 'DF');
 	$this->SetXY( $r1 + 4, $y1+1 );
 	$this->SetFont( "Helvetica", "B", 15);
 	$this->Cell($width,5, $label." ".$total, 0, 0, "C");
 }
-
-/*
-// Label and number of invoice/estimate
-function title( $label, $num, $position )
-{
-	$length =strlen($label.$num);
-	$r1  = $position[0];
-	$r2  = $r1 + ($length*2.5);
-	$y1  = 6;
-	$y2  = $y1 + 2;
-	$mid = $r1 + $r2;
-
-	$text  = $label ." ". $num;
-	$szfont = 23;
-
-	$this->SetFont( "Helvetica", "", $szfont );
-	$sz = $this->GetStringWidth( $text );
-
-	$this->SetLineWidth(0.1);
-	$this->SetFillColor(192);
-	//$this->RoundedRect($r1, $position[1], ($r2 - $r1), $y2, 2.5, 'DF');
-	$this->RoundedRect($r1-15, $position[1]-3, $sz+5, 12, 2.5, 'DF');
-	$this->SetXY($r1, $position[1]+1);
-	$this->Cell($r2-$r1 -1,5, $text, 0, 0, "C" );
-}
-*/
 
 // text block, non-wrapped
 function addTextBlock( $title,$text,$positions )
@@ -343,11 +309,9 @@
 	$r2  = $this->w - ($r1 * 2) ;
 	$y1  = 80;
 	$x1  = $positions[1];
-	//$y2  = $this->h - $x1 - $y1 - 17;
 	$y2  = $bottom;
 	$this->SetXY( $r1, $y1 );
 	$this->SetFont( "Helvetica", "", 10);
-	//$this->Rect( $r1, $y1, $r2, $y2, "D");
 
 	$colX = $r1;
 	$columns = $tab;
@@ -377,14 +341,6 @@
 	}
 }
 
-// add a line to the invoice/estimate
-/*    $line = array( 	"Product Name" 	=> prodname,
-						"Description" 	=> descr,
-						"Qty" 		=> rty,
-						"List Price" 	=> listprice,
-						"Unit Price" 	=> unitprice,
-			"total" 	=> total);
-*/
 function addProductLine( $line, $tab )
 {
 	global $columns, $format;
@@ -562,7 +518,6 @@
 $page_num='1';
 $pdf = new PDF( 'P', 'mm', 'A4' );
 $pdf->Open();
-//$pdf->AddPage();
 
 $num_pages=ceil(($num_products/$products_per_page));
 





More information about the vtigercrm-commits mailing list