// The connected company is classified as a client
$soc=newSociete($this->db);
$soc->id=$this->socid;
$result=$soc->set_as_client();
if($result<0)
{
$this->error=$this->db->error();
$this->db->rollback();
return-2;
}
else
{
if(!empty($conf->global->SUPPLIER_PROPOSAL_UPDATE_PRICE_ON_SUPPlIER_PROPOSAL))// TODO This option was not tested correctly. Error if product ref does not exists