[Vtigercrm-commits] [vtiger development] #5863: wrong account	number in pdf template
    vtiger development 
    vtiger-tickets at trac.vtiger.com
       
    Thu Apr 23 16:05:37 EDT 2009
    
    
  
#5863: wrong account number in pdf template
------------------------------------+---------------------------------------
 Reporter:  Sebastian.Schmitzdorff  |       Owner:  developer 
     Type:  patch                   |      Status:  new       
 Priority:  trivial                 |   Milestone:  5.1.0     
Component:  vtigercrm               |     Version:  5.1.0-val2
 Keywords:                          |  
------------------------------------+---------------------------------------
 When exporting a Quote to PDF it uses the $account_id variable for the
 account number. From my understanding account_id is only the primary key
 in the account table.
 I expected it to print the account_no field from the account table
 instead.
 I wrote attached patch to add a new $account_no variable.
 1.) add function getAccountNumber to include/utils/CommonUtils.php[[BR]]
 2.) add $account_no variable include/InventoryPDF.php for invoice, quote
 and sales order.[[BR]]
 3.) replace $account_id with $account_no in
 modules/Quotes/pdf_templates/header.php
-- 
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/5863>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
    
    
More information about the vtigercrm-commits
mailing list