[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[3379] trunk
- Subject: SF.net SVN: ledger-smb:[3379] trunk
- From: ..hidden..
- Date: Wed, 29 Jun 2011 10:14:54 +0000
Revision: 3379
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3379&view=rev
Author: einhverfr
Date: 2011-06-29 10:14:54 +0000 (Wed, 29 Jun 2011)
Log Message:
-----------
Reconciliation tests passing
Renamed 'Payee' column 'Description'
Modified Paths:
--------------
trunk/UI/reconciliation/report.html
trunk/sql/modules/test/Reconciliation.sql
trunk/sql/modules/test/data/Reconciliation.sql
trunk/t/43-dbtest.t
Modified: trunk/UI/reconciliation/report.html
===================================================================
--- trunk/UI/reconciliation/report.html 2011-06-29 07:33:51 UTC (rev 3378)
+++ trunk/UI/reconciliation/report.html 2011-06-29 10:14:54 UTC (rev 3379)
@@ -68,7 +68,7 @@
<th><?lsmb text('Clear date') ?></th>
<th><?lsmb text('Source') ?></th>
<th><?lsmb text('Posted Date') ?></th>
- <th><?lsmb text('Payee') ?></th>
+ <th><?lsmb text('Description') ?></th>
<th><?lsmb text('Our Debits') ?></th>
<th><?lsmb text('Our Credits') ?></th>
<th><?lsmb text('Their Debits') ?></th>
Modified: trunk/sql/modules/test/Reconciliation.sql
===================================================================
--- trunk/sql/modules/test/Reconciliation.sql 2011-06-29 07:33:51 UTC (rev 3378)
+++ trunk/sql/modules/test/Reconciliation.sql 2011-06-29 10:14:54 UTC (rev 3379)
@@ -21,19 +21,13 @@
from cr_report_line where report_id = currval('cr_report_id_seq')::int;
INSERT INTO test_result(test_name, success)
-SELECT 'Correct number of GL groups', count(*) = 4 from cr_report_line where scn like '% gl %' and report_id = currval('cr_report_id_seq')::int;
+SELECT 'Correct number of GL groups', count(*) = 3 from cr_report_line where scn like '% gl %' and report_id = currval('cr_report_id_seq')::int;
INSERT INTO test_result(test_name, success)
SELECT 'Correct number of report lines', count(*) = 10 from cr_report_line where report_id = currval('cr_report_id_seq')::int;
-\echo matching tests
-select reconciliation__add_entry(currval('cr_report_id_seq')::int, '1', 'GL', '2001-01-01'::timestamp, '10');
INSERT INTO test_result(test_name, success)
-select 'Match 1 is correct', their_balance = our_balance
-from cr_report_line where scn = 'Recon gl test 1';
-
-INSERT INTO test_result(test_name, success)
SELECT 'Report Submitted', reconciliation__submit_set(currval('cr_report_id_seq')::int, (select as_array(id::int) from cr_report_line where report_id = currval('cr_report_id_seq')::int));
INSERT INTO test_result(test_name, success)
@@ -66,8 +60,9 @@
from cr_report_line where report_id = currval('cr_report_id_seq')::int;
INSERT INTO test_result(test_name, success)
-SELECT '1 Correct number of GL groups', count(*) = 4 from cr_report_line where scn like '% gl %' and report_id = currval('cr_report_id_seq')::int;
+SELECT '1 Correct number of GL groups', count(*) = 3 from cr_report_line where scn like '% gl %' and report_id = currval('cr_report_id_seq')::int;
+
INSERT INTO test_result(test_name, success)
SELECT '1 Correct number of report lines', count(*) = 10 from cr_report_line where report_id = currval('cr_report_id_seq')::int;
@@ -132,4 +127,4 @@
|| (select count(*) from test_result where success is not true)
|| ' failed' as message;
-ROLLBACK;
+--ROLLBACK;
Modified: trunk/sql/modules/test/data/Reconciliation.sql
===================================================================
--- trunk/sql/modules/test/data/Reconciliation.sql 2011-06-29 07:33:51 UTC (rev 3378)
+++ trunk/sql/modules/test/data/Reconciliation.sql 2011-06-29 10:14:54 UTC (rev 3379)
@@ -38,10 +38,10 @@
INSERT INTO acc_trans (trans_id, chart_id, transdate, amount, source) values (-200, test_get_account_id('-11112'), '1000-01-01', 10, '1');
INSERT INTO acc_trans (trans_id, chart_id, transdate, amount, source) values (-201, test_get_account_id('-11111'), '1000-01-03', -10, '1');
INSERT INTO acc_trans (trans_id, chart_id, transdate, amount, source) values (-201, test_get_account_id('-11112'), '1000-01-03', 10, '1');
-INSERT INTO acc_trans (trans_id, chart_id, transdate, amount, source) values (-202, test_get_account_id('-11111'), '1000-01-01', -10, '1');
-INSERT INTO acc_trans (trans_id, chart_id, transdate, amount, source) values (-202, test_get_account_id('-11112'), '1000-01-01', 10, '1');
-INSERT INTO acc_trans (trans_id, chart_id, transdate, amount, source) values (-203, test_get_account_id('-11111'), '1000-01-01', -10, '1');
-INSERT INTO acc_trans (trans_id, chart_id, transdate, amount, source) values (-203, test_get_account_id('-11112'), '1000-01-01', 10, '1');
+INSERT INTO acc_trans (trans_id, chart_id, transdate, amount, source) values (-202, test_get_account_id('-11111'), '1000-01-01', -10, 't gl 1');
+INSERT INTO acc_trans (trans_id, chart_id, transdate, amount, source) values (-202, test_get_account_id('-11112'), '1000-01-01', 10, 't gl 1');
+INSERT INTO acc_trans (trans_id, chart_id, transdate, amount, source) values (-203, test_get_account_id('-11111'), '1000-01-01', -10, 't gl 1');
+INSERT INTO acc_trans (trans_id, chart_id, transdate, amount, source) values (-203, test_get_account_id('-11112'), '1000-01-01', 10, 't gl 1');
INSERT INTO acc_trans (trans_id, chart_id, transdate, amount, source) values (-204, test_get_account_id('-11111'), '1000-01-01', -10, '1');
INSERT INTO acc_trans (trans_id, chart_id, transdate, amount, source) values (-204, test_get_account_id('-11112'), '1000-01-01', 10, '1');
INSERT INTO acc_trans (trans_id, chart_id, transdate, amount, source) values (-205, test_get_account_id('-11111'), '1000-01-03', -10, '1');
@@ -56,8 +56,8 @@
INSERT INTO acc_trans (trans_id, chart_id, transdate, amount, source) values (-209, test_get_account_id('-11112'), '1000-01-03', 10, '2');
INSERT INTO acc_trans (trans_id, chart_id, transdate, amount, source) values (-210, test_get_account_id('-11111'), '1000-01-03', -10, '1');
INSERT INTO acc_trans (trans_id, chart_id, transdate, amount, source) values (-210, test_get_account_id('-11112'), '1000-01-03', 10, '1');
-INSERT INTO acc_trans (trans_id, chart_id, transdate, amount, source) values (-211, test_get_account_id('-11111'), '1000-01-03', -10, '1');
-INSERT INTO acc_trans (trans_id, chart_id, transdate, amount, source) values (-211, test_get_account_id('-11112'), '1000-01-03', 10, '1');
+INSERT INTO acc_trans (trans_id, chart_id, transdate, amount, source) values (-211, test_get_account_id('-11111'), '1000-01-03', -10, 't gl 1');
+INSERT INTO acc_trans (trans_id, chart_id, transdate, amount, source) values (-211, test_get_account_id('-11112'), '1000-01-03', 10, 't gl 1');
INSERT INTO acc_trans (trans_id, chart_id, transdate, amount, source, cleared) values (-212, test_get_account_id('-11111'), '1000-01-03', -10, '1', true);
INSERT INTO acc_trans (trans_id, chart_id, transdate, amount, source, cleared) values (-212, test_get_account_id('-11112'), '1000-01-03', 10, '1', true);
INSERT INTO acc_trans (trans_id, chart_id, transdate, amount, source, cleared) values (-213, test_get_account_id('-11111'), '1000-01-03', -10, '1', false);
Modified: trunk/t/43-dbtest.t
===================================================================
--- trunk/t/43-dbtest.t 2011-06-29 07:33:51 UTC (rev 3378)
+++ trunk/t/43-dbtest.t 2011-06-29 10:14:54 UTC (rev 3379)
@@ -5,7 +5,7 @@
plan skip_all => 'Skipping all. Told not to test db.';
}
else {
- plan tests => 117;
+ plan tests => 116;
if (defined $ENV{LSMB_NEW_DB}){
$ENV{PGDATABASE} = $ENV{LSMB_NEW_DB};
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.