Commit 4c0aea47 authored by Jérome Perrin's avatar Jérome Perrin

accounting_ui_test: Rename AccountingZuite_createDocument to...

accounting_ui_test: Rename AccountingZuite_createDocument to AccountingModule_createAccountingTestDocument
parent 56958777
......@@ -54,7 +54,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>AccountingZuite_createDocument</string> </value>
<value> <string>AccountingModule_createAccountingTestDocument</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......
......@@ -29,11 +29,11 @@ def get_object_by_title(portal_type, title):
bank1 = get_object_by_title(portal_type='Bank Account', title='Bank1')
if bank1 is None:
bank1 = portal.AccountingZuite_createDocument(
bank1 = portal.AccountingModule_createAccountingTestDocument(
portal_type='Bank Account', title='Bank1', simulation_state='validated',
parent=organisation_module.my_organisation)
purchase1 = portal.AccountingZuite_createDocument(
purchase1 = portal.AccountingModule_createAccountingTestDocument(
portal_type='Purchase Invoice Transaction',
title='Purchase invoice 1',
destination_reference='1',
......@@ -51,7 +51,7 @@ purchase1 = portal.AccountingZuite_createDocument(
destination_credit=500.0)),
)
sale2 = portal.AccountingZuite_createDocument(
sale2 = portal.AccountingModule_createAccountingTestDocument(
portal_type='Sale Invoice Transaction',
title='Sale invoice 2',
source_reference='2',
......@@ -71,7 +71,7 @@ sale2 = portal.AccountingZuite_createDocument(
portal.Zuite_waitForActivities()
payment3 = portal.AccountingZuite_createDocument(
payment3 = portal.AccountingModule_createAccountingTestDocument(
portal_type='Payment Transaction',
title='Payment 1',
source_reference='3',
......@@ -90,7 +90,7 @@ payment3 = portal.AccountingZuite_createDocument(
source_credit=500.0)),
)
payment4 = portal.AccountingZuite_createDocument(
payment4 = portal.AccountingModule_createAccountingTestDocument(
portal_type='Payment Transaction',
title='Payment 2',
source_reference='4',
......
......@@ -19,7 +19,7 @@ today = DateTime(now.year(), now.month(), now.day()) + 8 * one_hour
yesterday = today - one_day
tomorrow = today + one_day
bank1 = context.AccountingZuite_createDocument(
bank1 = context.AccountingModule_createAccountingTestDocument(
parent=organisation_module.my_organisation,
portal_type='Bank Account',
title='Bank1',
......@@ -28,7 +28,7 @@ bank1 = context.AccountingZuite_createDocument(
bank2 = bank1
if two_banks:
bank2 = context.AccountingZuite_createDocument(
bank2 = context.AccountingModule_createAccountingTestDocument(
parent=organisation_module.my_organisation,
portal_type='Bank Account',
title='Bank2',
......@@ -36,7 +36,7 @@ if two_banks:
)
context.AccountingZuite_createDocument(
context.AccountingModule_createAccountingTestDocument(
portal_type='Accounting Transaction',
title='Transaction 1',
source_reference='1',
......@@ -52,7 +52,7 @@ context.AccountingZuite_createDocument(
source_credit=100.0)),
)
context.AccountingZuite_createDocument(
context.AccountingModule_createAccountingTestDocument(
portal_type='Accounting Transaction',
title='Transaction 2',
source_reference='2',
......@@ -70,7 +70,7 @@ context.AccountingZuite_createDocument(
# in the period
context.AccountingZuite_createDocument(
context.AccountingModule_createAccountingTestDocument(
portal_type='Payment Transaction',
title='Transaction 3',
source_reference='3',
......@@ -87,7 +87,7 @@ context.AccountingZuite_createDocument(
source_credit=300.0)),
)
context.AccountingZuite_createDocument(
context.AccountingModule_createAccountingTestDocument(
portal_type='Payment Transaction',
title='Transaction 4',
destination_reference='4',
......@@ -106,7 +106,7 @@ context.AccountingZuite_createDocument(
destination_credit=400.0)),
)
context.AccountingZuite_createDocument(
context.AccountingModule_createAccountingTestDocument(
portal_type='Accounting Transaction',
title='Transaction 5',
source_reference='5',
......@@ -123,7 +123,7 @@ context.AccountingZuite_createDocument(
source_credit=500.0)),
)
context.AccountingZuite_createDocument(
context.AccountingModule_createAccountingTestDocument(
portal_type='Purchase Invoice Transaction',
title='Transaction 6',
destination_reference='6',
......@@ -143,7 +143,7 @@ context.AccountingZuite_createDocument(
# another simulation state
context.AccountingZuite_createDocument(
context.AccountingModule_createAccountingTestDocument(
portal_type='Accounting Transaction',
title='Transaction 7',
source_reference='7',
......@@ -162,7 +162,7 @@ context.AccountingZuite_createDocument(
# after the period
context.AccountingZuite_createDocument(
context.AccountingModule_createAccountingTestDocument(
portal_type='Accounting Transaction',
title='Transaction 8',
source_reference='8',
......
......@@ -10,7 +10,7 @@ yesterday = today - 1
tomorrow = today + 1
context.AccountingZuite_createDocument(
context.AccountingModule_createAccountingTestDocument(
portal_type='Accounting Transaction',
simulation_state='delivered',
start_date=yesterday,
......@@ -23,7 +23,7 @@ context.AccountingZuite_createDocument(
"source_credit": 100}
]
)
context.AccountingZuite_createDocument(
context.AccountingModule_createAccountingTestDocument(
portal_type='Sale Invoice Transaction',
title='First One',
simulation_state='delivered',
......@@ -42,7 +42,7 @@ context.AccountingZuite_createDocument(
"source_credit": 100.00},
]
)
context.AccountingZuite_createDocument(
context.AccountingModule_createAccountingTestDocument(
portal_type='Sale Invoice Transaction',
title='Second One',
simulation_state='delivered',
......@@ -65,7 +65,7 @@ context.AccountingZuite_createDocument(
"source_credit": 200.00},
]
)
context.AccountingZuite_createDocument(
context.AccountingModule_createAccountingTestDocument(
portal_type='Sale Invoice Transaction',
title='Third One',
simulation_state='delivered',
......@@ -85,7 +85,7 @@ context.AccountingZuite_createDocument(
"source_credit": 300.00},
]
)
context.AccountingZuite_createDocument(
context.AccountingModule_createAccountingTestDocument(
portal_type='Accounting Transaction',
simulation_state='delivered',
start_date=today,
......@@ -98,7 +98,7 @@ context.AccountingZuite_createDocument(
"source_credit": 111},
]
)
context.AccountingZuite_createDocument(
context.AccountingModule_createAccountingTestDocument(
portal_type='Sale Invoice Transaction',
simulation_state='delivered',
destination_section_value=portal.organisation_module.client_2,
......
......@@ -46,7 +46,7 @@ else:
extra_kwargs_general = {}
extra_kwargs_detailed = {}
context.AccountingZuite_createDocument(
context.AccountingModule_createAccountingTestDocument(
portal_type='Accounting Transaction',
title='Transaction 1',
source_reference='1',
......@@ -62,7 +62,7 @@ context.AccountingZuite_createDocument(
**extra_kwargs_general
)
context.AccountingZuite_createDocument(
context.AccountingModule_createAccountingTestDocument(
portal_type='Accounting Transaction',
title='Transaction 2',
source_reference='2',
......@@ -78,7 +78,7 @@ context.AccountingZuite_createDocument(
)
if with_ledger:
context.AccountingZuite_createDocument(
context.AccountingModule_createAccountingTestDocument(
portal_type='Accounting Transaction',
title='Transaction 3',
source_reference='3',
......
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