summaryrefslogtreecommitdiff
path: root/sql/modules
diff options
context:
space:
mode:
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;