navigation  interaction  search

 other resources

Changeset 379

Show
Ignore:
Timestamp:
01/31/08 08:48:12
Author:
brieb
Message:

* Fixed updating of prospect to client when changing from quote to order.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/phpbms/modules/bms/include/invoices.php

    r375 r379  
    505505                                unset($this->fields["transactionid"]); 
    506506                        } 
    507                  
     507 
    508508                        if(parent::updateRecord($variables, $modifiedby)){ 
    509509         
     
    520520                        }//end if 
    521521                         
    522                         if($variables["clienttype"] == "prospect" && $variables["clienttype"] == "Order") 
    523                                 $this->prospectToClient($variables["id"]); 
     522                        if($variables["clienttype"] == "prospect" && $variables["type"] == "Order") 
     523                                $this->prospectToClient($variables["clientid"]); 
    524524                         
    525525                        //reset field after updating (if unset by rights management) 
     
    548548                                $this->updateStatus($newid,$variables["statusid"],$variables["statusdate"],$variables["assignedtoid"]); 
    549549 
    550                         if($variables["clienttype"] == "prospect" && $variables["clienttype"] == "Order") 
    551                                 $this->prospectToClient($variables["id"]); 
     550                        if($variables["clienttype"] == "prospect" && $variables["type"] == "Order") 
     551                                $this->prospectToClient($variables["clientid"]); 
    552552         
    553553                        return $newid; 
Copyright © 2006-2007 Kreotek, LLC. All Rights reserved.