phpBMS

Changeset 763 for trunk

Show
Ignore:
Timestamp:
01/15/10 13:41:05 (2 years ago)
Author:
brieb
Message:
  • fixed [762] Company Name not displaying in ship to box on invoice PDFs
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/modules/bms/report/invoices_pdf_class.php

    r703 r763  
    370370            $companyDisplay = ""; 
    371371 
     372            if($this->invoicerecord["company"]){ 
     373 
     374                $companyDisplay .= $this->invoicerecord["company"]; 
     375                if($this->invoicerecord["firstname"]) 
     376                        $companyDisplay .= " (".$this->invoicerecord["firstname"]." ".$this->invoicerecord["lastname"].")"; 
     377 
     378            } else 
     379                $companyDisplay .= $this->invoicerecord["firstname"]." ".$this->invoicerecord["lastname"]; 
     380 
    372381            switch($areaToPrint){ 
    373382 
    374383 
    375384                case "billto": 
    376  
    377                     if($this->invoicerecord["company"]){ 
    378  
    379                             $companyDisplay .= $this->invoicerecord["company"]; 
    380                             if($this->invoicerecord["firstname"]) 
    381                                     $companyDisplay .= " (".$this->invoicerecord["firstname"]." ".$this->invoicerecord["lastname"].")"; 
    382  
    383                     } else 
    384                             $companyDisplay .= $this->invoicerecord["firstname"]." ".$this->invoicerecord["lastname"]; 
    385385 
    386386                    $pdf->SetXY($pdf->GetX() + 0.0625, $pdf->GetY() + 0.0625); 
Scanned by Orvant Copyright © 2010 Kreotek, LLC. All Rights reserved.