summaryrefslogtreecommitdiff
path: root/sql/modules
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-12-08 02:38:53 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-12-08 02:38:53 +0000
commit705245329bb81c7f237c8b24de1ca4fd1822e05b (patch)
treebb412077edf650bb2f3a7ca5743cc52bfaa9669f /sql/modules
parentdcf0f09c7da42575e8df2592a1b980517823bc08 (diff)
Removing sql/legacy-- will package new download from the files in branches/1.2
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1964 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'sql/modules')
-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 b3ba24a7..e8c0375b 100644
--- a/sql/modules/Payment.sql
+++ b/sql/modules/Payment.sql
@@ -223,8 +223,8 @@ BEGIN
IF in_batch_id IS NULL THEN
t_voucher_id := NULL;
ELSE
- INSERT INTO voucher (batch_id, trans_id)
- values (in_batch_id, in_transactions[1][1]);
+ INSERT INTO voucher (batch_id, batch_class, trans_id)
+ values (in_batch_id, 3, in_transactions[1][1]);
t_voucher_id := currval('voucher_id_seq');
END IF;