Test FEC for previous fiscal year
issue7720 review60361002
This commit is contained in:
1 parent
ee07505ffc
commit
bd7188104a
3 files changed
+14
-1
No files matched your search
@@ -73,7 +73,7 @@ setup(name=name,
|
||||
package_data={
|
||||
'trytond.modules.account_fr': (info.get('xml', [])
|
||||
+ ['tryton.cfg', 'view/*.xml', 'locale/*.po', 'tests/*.rst',
|
||||
'tests/FEC.csv']),
|
||||
'tests/*.csv']),
|
||||
},
|
||||
classifiers=[
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
JournalCode JournalLib EcritureNum EcritureDate CompteNum CompteLib CompAuxNum CompAuxLib PieceRef PieceDate EcritureLib Debit Credit EcritureLet DateLet ValidDate Montantdevise Idevise
|
||||
REV Revenue 1 20170101 797 Transferts de charges exceptionnelles - 20170101 - 0,00 5,00 20170101
|
||||
REV Revenue 1 20170101 4967 Autres comptes débiteurs 2 Party - 20170101 - 5,00 0,00 20170101
|
||||
|
@@ -148,3 +148,13 @@ Generate FEC::
|
||||
>>> with io.open(file, mode='rb') as fp:
|
||||
... FEC.form.file.decode('utf-8') == fp.read().decode('utf-8')
|
||||
True
|
||||
|
||||
Generate FEC for previous fiscal year::
|
||||
|
||||
>>> FEC = Wizard('account.fr.fec')
|
||||
>>> FEC.form.fiscalyear = fiscalyear_previous
|
||||
>>> FEC.execute('generate')
|
||||
>>> file = os.path.join(os.path.dirname(__file__), 'FEC-previous.csv')
|
||||
>>> with io.open(file, mode='rb') as fp:
|
||||
... FEC.form.file.decode('utf-8') == fp.read().decode('utf-8')
|
||||
True
|
||||
Reference in new issue
Block a user