lab.nexedi.com will be down from Thursday, 20 March 2025, 07:30:00 UTC for a duration of approximately 2 hours

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

Set different dates on created transactions, because we sort on dates and we

have to be sure of the order.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13977 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 028e3a2d
......@@ -116,7 +116,11 @@ class TestAccountingReports(AccountingTestCase):
title='Second One',
simulation_state='delivered',
destination_section_value=self.organisation_module.client_2,
start_date=DateTime(2006, 2, 2),
start_date=DateTime(2006, 2, 2, 1, 1), # XXX we have to force
# different values of hour minutes, because /for now/ sorting is
# done on date, uid. Sorting on [source|destination]_reference
# would be too heavy, and we just want a sort on date, with a
# stable order (hence the cheap sort on uid)
lines=(dict(source_value=account_module.receivable,
source_debit=239.20),
dict(source_value=account_module.collected_vat,
......@@ -221,7 +225,7 @@ class TestAccountingReports(AccountingTestCase):
# Second Transaction
self.checkLineProperties(data_line_list[3],
specific_reference=second.getSourceReference(),
date=DateTime(2006, 2, 2),
date=DateTime(2006, 2, 2, 1, 1),
title='Second One',
node_title='41',
mirror_section_title='Client 2',
......
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