From a9a106916a0b005ff79ea5df1bc1d7e438f14200 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Wed, 9 Jul 2008 14:47:33 +0000 Subject: Correctig bug in exchangerate function git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2199 4979c152-3d1c-0410-bac9-87ea11338e46 --- sql/modules/Payment.sql | 4 ++-- 1 file 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; -- cgit v1.2.3