navigation  interaction  search

 other resources

Changeset 396

Show
Ignore:
Timestamp:
05/15/08 12:28:37
Author:
brieb
Message:
  • Fixed old references to client address on client statement and summary print outs.
  • Updated thanks file
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/phpbms/THANKS.txt

    r381 r396  
    44 * Hauge Quality Water - http://haguekc.com/ 
    55 * Black Tie: Audio, Lighting & Video - http://blacktie.com.mx 
     6 * Concept Z Performance - http://www.conceptzperformance.com/ 
  • trunk/phpbms/modules/bms/report/aritems_clientstatement.php

    r312 r396  
    8484                                clients.lastname, 
    8585                                clients.company, 
    86                                 clients.address1, 
    87                                 clients.address2, 
    88                                 clients.city, 
    89                                 clients.postalcode, 
    90                                 clients.state, 
    91                                 clients.country, 
     86                                addresses.address1, 
     87                                addresses.address2, 
     88                                addresses.city, 
     89                                addresses.postalcode, 
     90                                addresses.state, 
     91                                addresses.country, 
    9292                                clients.creditlimit, 
    9393                                clients.homephone, 
     
    9797                                users.lastname AS saleslastname 
    9898                        FROM 
    99                                 (aritems INNER JOIN clients ON aritems.clientid = clients.id) 
    100                                 LEFT JOIN users ON clients.salesmanagerid = users.id"; 
     99                                (aritems INNER JOIN clients  
     100                                        ON aritems.clientid = clients.id  
     101                                INNER JOIN addresstorecord  
     102                                        ON addresstorecord.tabledefid = 2 AND addresstorecord.primary = 1 
     103                                        AND addresstorecord.recordid = clients.id  
     104                                INNER JOIN addresses 
     105                                        ON addresstorecord.addressid = addresses.id                              
     106                                )LEFT JOIN users  
     107                                        ON clients.salesmanagerid = users.id"; 
    101108                                 
    102109                $this->sortorder = 'if(clients.lastname!="",concat(clients.lastname,", ",clients.firstname,if(clients.company!="",concat(" (",clients.company,")"),"")),clients.company)'; 
  • trunk/phpbms/modules/bms/report/aritems_summary.php

    r311 r396  
    9393                                clients.lastname, 
    9494                                clients.company, 
    95                                 clients.address1, 
    96                                 clients.address2, 
    97                                 clients.city, 
    98                                 clients.postalcode, 
    99                                 clients.state, 
    100                                 clients.country, 
     95                                addresses.address1, 
     96                                addresses.address2, 
     97                                addresses.city, 
     98                                addresses.postalcode, 
     99                                addresses.state, 
     100                                addresses.country, 
    101101                                clients.creditlimit, 
    102102                                clients.homephone, 
     
    106106                                users.lastname AS saleslastname 
    107107                        FROM 
    108                                 (aritems INNER JOIN clients ON aritems.clientid = clients.id) 
    109                                 LEFT JOIN users ON clients.salesmanagerid = users.id"; 
     108                                (aritems INNER JOIN clients  
     109                                        ON aritems.clientid = clients.id  
     110                                INNER JOIN addresstorecord  
     111                                        ON addresstorecord.tabledefid = 2 AND addresstorecord.primary = 1 
     112                                        AND addresstorecord.recordid = clients.id  
     113                                INNER JOIN addresses 
     114                                        ON addresstorecord.addressid = addresses.id                              
     115                                )LEFT JOIN users  
     116                                        ON clients.salesmanagerid = users.id"; 
    110117                                 
    111118                $this->sortorder = 'if(clients.lastname!="",concat(clients.lastname,", ",clients.firstname,if(clients.company!="",concat(" (",clients.company,")"),"")),clients.company)'; 
Copyright © 2006-2007 Kreotek, LLC. All Rights reserved.