From edac6d0c821beb446de0f469a0f974ec711bc753 Mon Sep 17 00:00:00 2001 From: Tatuya Kamada <tatuya@nexedi.com> Date: Thu, 10 Nov 2011 17:10:21 +0900 Subject: [PATCH] Configure a dedicated business link to build accounting transaction lines. --- product/ERP5/tests/testPayroll.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/product/ERP5/tests/testPayroll.py b/product/ERP5/tests/testPayroll.py index 176851a6a8..ad97746d24 100644 --- a/product/ERP5/tests/testPayroll.py +++ b/product/ERP5/tests/testPayroll.py @@ -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', -- 2.30.9