[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[2712] trunk/sql/modules/test/Draft.sql
- Subject: SF.net SVN: ledger-smb:[2712] trunk/sql/modules/test/Draft.sql
- From: ..hidden..
- Date: Mon, 06 Jul 2009 16:31:45 +0000
Revision: 2712
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2712&view=rev
Author: einhverfr
Date: 2009-07-06 16:31:45 +0000 (Mon, 06 Jul 2009)
Log Message:
-----------
Correcting test cases for Drafts
Modified Paths:
--------------
trunk/sql/modules/test/Draft.sql
Modified: trunk/sql/modules/test/Draft.sql
===================================================================
--- trunk/sql/modules/test/Draft.sql 2009-07-03 05:54:29 UTC (rev 2711)
+++ trunk/sql/modules/test/Draft.sql 2009-07-06 16:31:45 UTC (rev 2712)
@@ -11,8 +11,7 @@
SELECT account_save(NULL, '00002', 'test only', 'A', NULL, NULL, FALSE, '{}');
INSERT INTO ap (invnumber, entity_credit_account, amount, netamount, paid,
approved, curr)
-select '_TEST AP', -1000, '100', '100', '0', FALSE, 'USD'
-FROM entity_credit_account WHERE entity_class = 1;
+select '_TEST AP', -1000, '100', '100', '0', FALSE, 'USD';
INSERT INTO acc_trans (chart_id, trans_id, amount, approved)
SELECT id, currval('id'), '100', TRUE FROM chart WHERE accno = '00001';
@@ -25,8 +24,7 @@
INSERT INTO ar (invnumber, entity_credit_account, amount, netamount, paid,
approved, curr)
-select '_TEST AR', -1001, '100', '100', '0', FALSE, 'USD'
-FROM entity_credit_account WHERE entity_class = 2;
+select '_TEST AR', -1001, '100', '100', '0', FALSE, 'USD';
INSERT INTO acc_trans (chart_id, trans_id, amount, approved)
SELECT id, currval('id'), '-100', TRUE FROM chart WHERE accno = '00001';
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.