Commit c810951e authored by Jérome Perrin's avatar Jérome Perrin

debit / credit was reversed in latest test


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16910 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 384fa7e3
...@@ -1343,17 +1343,17 @@ class TestAccountingReports(AccountingTestCase): ...@@ -1343,17 +1343,17 @@ class TestAccountingReports(AccountingTestCase):
self.assertEquals(2, len(data_line_list)) self.assertEquals(2, len(data_line_list))
self.checkLineProperties(data_line_list[0], node_id='40', self.checkLineProperties(data_line_list[0], node_id='40',
node_title='Payable', initial_debit_balance=200, node_title='Payable', initial_debit_balance=0,
initial_credit_balance=0, debit=0, credit=0,
final_debit_balance=200, final_credit_balance=0,
final_balance_if_debit=200, final_balance_if_credit=0)
self.checkLineProperties(data_line_list[1], node_id='41',
node_title='Receivable', initial_debit_balance=0,
initial_credit_balance=200, debit=0, credit=0, initial_credit_balance=200, debit=0, credit=0,
final_debit_balance=0, final_credit_balance=200, final_debit_balance=0, final_credit_balance=200,
final_balance_if_debit=0, final_balance_if_credit=200) final_balance_if_debit=0, final_balance_if_credit=200)
self.checkLineProperties(data_line_list[1], node_id='41',
node_title='Receivable', initial_debit_balance=200,
initial_credit_balance=0, debit=0, credit=0,
final_debit_balance=200, final_credit_balance=0,
final_balance_if_debit=200, final_balance_if_credit=0)
self.failUnless(line_list[-1].isStatLine()) self.failUnless(line_list[-1].isStatLine())
self.checkLineProperties(line_list[-1], node_id=None, node_title=None, self.checkLineProperties(line_list[-1], node_id=None, node_title=None,
initial_debit_balance=200, initial_credit_balance=200, debit=0, initial_debit_balance=200, initial_credit_balance=200, debit=0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment