FIX : Bankaccounts API fetch with 'id' and 'socid'
This commit is contained in:
parent
03485a2f73
commit
3475e55b80
@ -217,7 +217,7 @@ class CompanyBankAccount extends Account
|
|||||||
if ($id) {
|
if ($id) {
|
||||||
$sql .= " WHERE rowid = ".((int) $id);
|
$sql .= " WHERE rowid = ".((int) $id);
|
||||||
}
|
}
|
||||||
if ($socid) {
|
elseif ($socid) {
|
||||||
$sql .= " WHERE fk_soc = ".((int) $socid);
|
$sql .= " WHERE fk_soc = ".((int) $socid);
|
||||||
if ($default > -1) {
|
if ($default > -1) {
|
||||||
$sql .= " AND default_rib = ".((int) $default);
|
$sql .= " AND default_rib = ".((int) $default);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user