changeset 8dae926b0f0b in modules/account_invoice:default
details: 
https://hg.tryton.org/modules/account_invoice?cmd=changeset;node=8dae926b0f0b
description:
        Allow to run test scenario on 31st December

        The scenario pays an invoice "tomorrow" so on 31st December the move is 
posted
        on the next fiscal year.

        issue7959
        review68411002
diffstat:

 tests/scenario_invoice_alternate_currency.rst |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r b77bc7c602cc -r 8dae926b0f0b 
tests/scenario_invoice_alternate_currency.rst
--- a/tests/scenario_invoice_alternate_currency.rst     Mon Dec 31 15:36:47 
2018 +0100
+++ b/tests/scenario_invoice_alternate_currency.rst     Mon Dec 31 20:19:04 
2018 +0100
@@ -41,11 +41,14 @@
     >>> rate.rate = eur.rates[0].rate + Decimal('0.5')
     >>> eur.save()
 
-Create fiscal year::
+Create fiscal years::
 
     >>> fiscalyear = set_fiscalyear_invoice_sequences(
-    ...     create_fiscalyear(company))
+    ...     create_fiscalyear(company, today=today))
     >>> fiscalyear.click('create_period')
+    >>> next_fiscalyear = set_fiscalyear_invoice_sequences(
+    ...     create_fiscalyear(company, today=today + relativedelta(years=1)))
+    >>> next_fiscalyear.click('create_period')
 
 Create chart of accounts::
 

Reply via email to