summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authoraurynn_cmd <aurynn_cmd@4979c152-3d1c-0410-bac9-87ea11338e46>2007-07-24 20:29:24 +0000
committeraurynn_cmd <aurynn_cmd@4979c152-3d1c-0410-bac9-87ea11338e46>2007-07-24 20:29:24 +0000
commit660d45346a48cabde5b42c3a933ebb3fb58fdfb3 (patch)
tree4deca227041f8326003f217d30188f9de48cde33 /sql
parent93c032fd413ac95eae648c544b07d986f7dc3ec3 (diff)
Adds the missing SELECT INTO statements for the correct_bank_charge and correct_unaccounted_charge functions
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1437 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'sql')
-rw-r--r--sql/modules/Reconciliaton.sql4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/modules/Reconciliaton.sql b/sql/modules/Reconciliaton.sql
index 1dfc7d7e..2142a1fe 100644
--- a/sql/modules/Reconciliaton.sql
+++ b/sql/modules/Reconciliaton.sql
@@ -137,6 +137,8 @@ CREATE OR REPLACE FUNCTION reconciliation_correct_bank_charge (in_report_id int,
pending_entry pending_reports;
BEGIN
+ select into pending_entry from pending_reports where report_id = in_report_id and id = in_id;
+
IF NOT FOUND THEN
-- Raise an exception.
RAISE EXCEPTION "Cannot find entry with ID % in report %.", in_id, in_report_id;
@@ -164,6 +166,8 @@ CREATE OR REPLACE FUNCTION reconciliation_correct_unaccounted_charge (in_report_
note TEXT;
BEGIN
+ select into pending_entry from pending_reports where report_id = in_report_id and id = in_id;
+
IF NOT FOUND THEN
-- Raise an exception.
RAISE EXCEPTION "Cannot find entry with ID % in report %.", in_id, in_report_id;