Merge pull request #22978 from ATM-Nicolas/fix_bankaccount_api
FIX : Bankaccounts API fetch with 'id' and 'socid'
This commit is contained in:
commit
2ce4e1d125
@ -217,7 +217,7 @@ class CompanyBankAccount extends Account
|
||||
if ($id) {
|
||||
$sql .= " WHERE rowid = ".((int) $id);
|
||||
}
|
||||
if ($socid) {
|
||||
elseif ($socid) {
|
||||
$sql .= " WHERE fk_soc = ".((int) $socid);
|
||||
if ($default > -1) {
|
||||
$sql .= " AND default_rib = ".((int) $default);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user