Fix iban_prefix
This commit is contained in:
parent
e555683787
commit
2de5db83a9
@ -132,11 +132,19 @@ class Account extends CommonObject
|
||||
public $bic;
|
||||
|
||||
/**
|
||||
* IBAN number (International Bank Account Number). Stored into iban_prefix field into database
|
||||
* IBAN number (International Bank Account Number). Stored into iban_prefix field into database (TODO Rename field in database)
|
||||
* @var string
|
||||
*/
|
||||
public $iban;
|
||||
|
||||
/**
|
||||
* IBAN number
|
||||
*
|
||||
* @var string
|
||||
* @deprecated see $iban
|
||||
*/
|
||||
public $iban_prefix;
|
||||
|
||||
/**
|
||||
* Name of account holder
|
||||
* @var string
|
||||
|
||||
@ -814,7 +814,7 @@ class pdf_standard extends ModelePDFSuppliersPayments
|
||||
$pdf->MultiCell($widthrecbox, 4, $carac_client, 0, 'L');
|
||||
|
||||
// Show default IBAN account
|
||||
$sql = "SELECT iban_prefix";
|
||||
$sql = "SELECT iban_prefix as iban";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."societe_rib as rib";
|
||||
$sql .= " WHERE fk_soc = ".($object->thirdparty->id);
|
||||
$sql .= " AND rib.default_rib = 1";
|
||||
@ -823,7 +823,7 @@ class pdf_standard extends ModelePDFSuppliersPayments
|
||||
$resql = $this->db->query($sql);
|
||||
if ($resql) {
|
||||
$obj = $this->db->fetch_object($resql);
|
||||
$iban = $obj->iban_prefix;
|
||||
$iban = $obj->iban;
|
||||
}
|
||||
|
||||
if (!empty($iban)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user