summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-10-19 18:47:03 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-10-19 18:47:03 +0000
commitdb3e35002f922a80bf93ab5b5da09d2b352681d1 (patch)
tree87bb50fe590ac5b62ed69b610e0d02fd526bfeca /sql
parentc2f3e31ee16b527315a3c6ffde4f4001c431f9ee (diff)
GL Vouchers are posting and saving correctly. Need to get listing and approving but that is conceptually a lot easier and involves a lot less legacy code
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1796 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'sql')
-rw-r--r--sql/modules/Voucher.sql2
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;