This commit is contained in:
Laurent Destailleur 2021-12-17 18:05:49 +01:00
parent 7266c78162
commit 9a5f2634a4
2 changed files with 6 additions and 2 deletions

View File

@ -38,7 +38,7 @@ class CompanyBankAccount extends Account
public $default_rib;
/**
* Value 'FRST' or 'RCUR' (For SEPA mandate)
* Value 'FRST' or 'RCUR' (For SEPA mandate). Warning, in database, we store 'RECUR'.
*
* @var string
*/
@ -207,7 +207,7 @@ class CompanyBankAccount extends Account
return 1;
}
} else {
dol_print_error($this->db);
$this->error = $this->db->lasterror();
return -1;
}
}

View File

@ -325,6 +325,10 @@ class CompanyPaymentMode extends CommonObject
}
$result = $this->fetchCommon($id, $ref, $morewhere);
// For backward compatibility
$this->iban = $this->iban_prefix;
//if ($result > 0 && ! empty($this->table_element_line)) $this->fetchLines();
return $result;
}