diff options
Diffstat (limited to 'sql/modules')
-rw-r--r-- | sql/modules/Voucher.sql | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/modules/Voucher.sql b/sql/modules/Voucher.sql index d626595f..c21105c4 100644 --- a/sql/modules/Voucher.sql +++ b/sql/modules/Voucher.sql @@ -276,7 +276,7 @@ BEGIN batch (batch_class_id, description, control_code, created_by) VALUES ((SELECT id FROM batch_class WHERE class = in_batch_class), in_description, in_batch_number, - (select id FROM users WHERE username = session_user)); + (select entity_id FROM users WHERE username = session_user)); return currval('batch_id_seq'); END; |