summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-07-09 14:47:33 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-07-09 14:47:33 +0000
commita9a106916a0b005ff79ea5df1bc1d7e438f14200 (patch)
treee2813925837aba4ef4efe7b4bf707404d30d5bb5 /sql
parentccea86a2e34e09185a9cb0e98c1f74a1211b5ced (diff)
Correctig bug in exchangerate function
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2199 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'sql')
-rw-r--r--sql/modules/Payment.sql4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/modules/Payment.sql b/sql/modules/Payment.sql
index 87cca5ca..8f0317e5 100644
--- a/sql/modules/Payment.sql
+++ b/sql/modules/Payment.sql
@@ -710,11 +710,11 @@ DECLARE
BEGIN
IF in_account_class = 1 THEN
- SELECT INTO out_exrate buy
+ SELECT buy INTO out_exrate
FROM exchangerate
WHERE transdate = in_date AND curr = in_currency;
ELSE
- SELECT INTO out_exrate sell
+ SELECT sell INTO out_exrate
FROM exchangerate
WHERE transdate = in_date AND curr = in_currency;
END IF;