Gestion du RIB
This commit is contained in:
parent
9c46583596
commit
5b41c06802
@ -256,7 +256,6 @@ class Societe {
|
|||||||
|
|
||||||
if ($this->client == 1)
|
if ($this->client == 1)
|
||||||
{
|
{
|
||||||
|
|
||||||
$this->nom_url = '<a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid='.$this->id.'">'.$obj->nom.'</a>';
|
$this->nom_url = '<a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid='.$this->id.'">'.$obj->nom.'</a>';
|
||||||
}
|
}
|
||||||
elseif($this->client == 2)
|
elseif($this->client == 2)
|
||||||
@ -272,12 +271,12 @@ class Societe {
|
|||||||
|
|
||||||
$this->note = $obj->note;
|
$this->note = $obj->note;
|
||||||
|
|
||||||
return 1;
|
$result = 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print "Aucun enregistrement trouvé<br>$sql";
|
print "Aucun enregistrement trouvé<br>$sql";
|
||||||
return -2;
|
$result = -2;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->db->free();
|
$this->db->free();
|
||||||
@ -285,7 +284,10 @@ class Societe {
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
dolibarr_print_error($this->db);
|
dolibarr_print_error($this->db);
|
||||||
|
$result = -3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -674,6 +676,20 @@ class Societe {
|
|||||||
}
|
}
|
||||||
return $fj;
|
return $fj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function display_rib()
|
||||||
|
{
|
||||||
|
require_once DOL_DOCUMENT_ROOT . "/companybankaccount.class.php";
|
||||||
|
|
||||||
|
$bac = new CompanyBankAccount($this->db, $this->id);
|
||||||
|
$bac->fetch();
|
||||||
|
|
||||||
|
$rib = $bac->code_banque." ".$bac->code_guichet." ".$bac->number." ".$bac->cle_rib;
|
||||||
|
|
||||||
|
return $rib;
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user