From 44e66497c837e9218e9460873623495d1cf31bca Mon Sep 17 00:00:00 2001
From: einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>
Date: Sat, 22 Nov 2008 22:59:56 +0000
Subject: Correcting bad join which caused payable batches not to show up in
 batch details

git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2416 4979c152-3d1c-0410-bac9-87ea11338e46
---
 sql/modules/test/Voucher.sql | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'sql/modules/test/Voucher.sql')

diff --git a/sql/modules/test/Voucher.sql b/sql/modules/test/Voucher.sql
index d749bf09..467d3d38 100644
--- a/sql/modules/test/Voucher.sql
+++ b/sql/modules/test/Voucher.sql
@@ -26,6 +26,9 @@ values (-5, currval('batch_id_seq'), 3);
 INSERT INTO voucher (trans_id, batch_id, batch_class)
 values (-5, currval('batch_id_seq'), 3);
 
+INSERT INTO test_result(test_name, success)
+select 'Voucher Seach finds Payable Vouchers',  count(*)=1 
+from voucher_list( currval('batch_id_seq')::int);
 
 INSERT INTO test_result (test_name, success)
 SELECT 'partial payment support', count(*) > 1 
-- 
cgit v1.2.3

