summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-11-11 01:09:23 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-11-11 01:09:23 +0000
commitcce814fe922b5b735b4389a3043bb3d4bab74ba3 (patch)
tree31114b84cd90cab47b1e102d5f9a8c1559a2c965
parent947564de6d00e4a359da0c9f236d5e0ff7b4588a (diff)
Test case for billing info
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2389 4979c152-3d1c-0410-bac9-87ea11338e46
-rw-r--r--sql/modules/test/Company.sql6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/modules/test/Company.sql b/sql/modules/test/Company.sql
index d8f1576a..08b2f96b 100644
--- a/sql/modules/test/Company.sql
+++ b/sql/modules/test/Company.sql
@@ -41,6 +41,12 @@ SELECT 'Contact found correctly', count(*) = 1
FROM eca__list_contacts(currval('entity_credit_account_id_seq')::int)
WHERE contact = 'test_c';
+INSERT INTO test_result(test_name, success)
+SELECT 'Company_get_billing_info working', count(*) = 1
+FROM company_get_billing_info((select max(id) from entity_credit_account))
+WHERE control_code is not null;
+
+
SELECT * FROM test_result;