Commit edac6d0c authored by Tatuya Kamada's avatar Tatuya Kamada

Configure a dedicated business link to build accounting transaction lines.

parent 3aff002c
No related merge requests found
......@@ -3018,9 +3018,22 @@ class TestPayroll(TestPayrollMixin):
'product_line/payroll_tax_1'],
**kw)
def createPayrollAccountingBusinessLink(self):
invoiced = self.portal.portal_categories.trade_state.invoiced
completed_state_list = ['delivered']
frozen_state_list = ['delivered', 'confirmed']
self.createBusinessLink(
self.business_process,
successor_value=invoiced,
trade_phase='default/accounting',
completed_state_list=completed_state_list,
frozen_state_list=frozen_state_list,
delivery_builder_list=('portal_deliveries/pay_sheet_transaction_builder',))
def test_AccountingLineGeneration(self):
# create a pay sheet
self.createPayrollBusinesProcess()
self.createPayrollAccountingBusinessLink()
eur = self.portal.currency_module.EUR
employer = self.portal.organisation_module.newContent(
portal_type='Organisation',
......
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