diff options
Diffstat (limited to 'LedgerSMB/AA.pm')
-rwxr-xr-x | LedgerSMB/AA.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/LedgerSMB/AA.pm b/LedgerSMB/AA.pm index 3dfda666..d624eaa0 100755 --- a/LedgerSMB/AA.pm +++ b/LedgerSMB/AA.pm @@ -213,8 +213,10 @@ sub post_transaction { $query = q| - SELECT fxgain_accno_id, fxloss_accno_id - FROM defaults|; + SELECT (SELECT value FROM defaults + WHERE setting_key = 'fxgain_accno_id'), + (SELECT value FROM defaults + WHERE setting_key = 'fxloss_accno_id')|; my ($fxgain_accno_id, $fxloss_accno_id) = $dbh->selectrow_array($query); |