Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
Commits
6cb19f4e
Commit
6cb19f4e
authored
Dec 20, 2012
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure business path for tax
parent
fb497349
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
209 additions
and
178 deletions
+209
-178
bt5/erp5_configurator_standard/SkinTemplateItem/portal_skins/erp5_configurator_standard/standard_business_process.ods.xml
...5_configurator_standard/standard_business_process.ods.xml
+185
-174
bt5/erp5_configurator_standard/TestTemplateItem/testStandardConfigurationWorkflow.py
...ard/TestTemplateItem/testStandardConfigurationWorkflow.py
+24
-4
No files found.
bt5/erp5_configurator_standard/SkinTemplateItem/portal_skins/erp5_configurator_standard/standard_business_process.ods.xml
View file @
6cb19f4e
This diff is collapsed.
Click to expand it.
bt5/erp5_configurator_standard/TestTemplateItem/testStandardConfigurationWorkflow.py
View file @
6cb19f4e
...
@@ -638,6 +638,13 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
...
@@ -638,6 +638,13 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
self
.
assertEquals
(
invoicing_path
.
getTradeDate
(),
'trade_phase/trade/delivery'
)
self
.
assertEquals
(
invoicing_path
.
getTradeDate
(),
'trade_phase/trade/delivery'
)
self
.
assertEquals
(
invoicing_path
.
getTestMethodId
(),
None
)
self
.
assertEquals
(
invoicing_path
.
getTestMethodId
(),
None
)
tax_path
=
getattr
(
business_process
,
"tax_path"
,
None
)
self
.
assertNotEquals
(
tax_path
,
None
)
self
.
assertEquals
(
tax_path
.
getEfficiency
(),
1.0
)
self
.
assertEquals
(
tax_path
.
getTradePhase
(),
'trade/tax'
)
self
.
assertEquals
(
tax_path
.
getTradeDate
(),
'trade_phase/trade/invoicing'
)
self
.
assertEquals
(
tax_path
.
getTestMethodId
(),
None
)
accounting_credit_path
=
getattr
(
business_process
,
"accounting_credit_path"
,
None
)
accounting_credit_path
=
getattr
(
business_process
,
"accounting_credit_path"
,
None
)
self
.
assertNotEquals
(
accounting_credit_path
,
None
)
self
.
assertNotEquals
(
accounting_credit_path
,
None
)
self
.
assertEquals
(
accounting_credit_path
.
getEfficiency
(),
-
1.0
)
self
.
assertEquals
(
accounting_credit_path
.
getEfficiency
(),
-
1.0
)
...
@@ -690,8 +697,20 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
...
@@ -690,8 +697,20 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
self
.
assertEquals
(
invoice_link
.
getDeliveryBuilderList
(),
self
.
assertEquals
(
invoice_link
.
getDeliveryBuilderList
(),
[
"portal_deliveries/purchase_invoice_builder"
,
[
"portal_deliveries/purchase_invoice_builder"
,
"portal_deliveries/purchase_invoice_transaction_trade_model_builder"
,
"portal_deliveries/sale_invoice_builder"
])
"portal_deliveries/sale_invoice_builder"
,
tax_link
=
getattr
(
business_process
,
"tax_link"
,
None
)
self
.
assertNotEquals
(
tax_link
,
None
)
#self.assertFalse(tax_link.getDeliverable())
self
.
assertEquals
(
tax_link
.
getSuccessor
(),
"trade_state/trade/invoiced"
)
self
.
assertEquals
(
tax_link
.
getPredecessor
(),
"trade_state/trade/invoiced"
)
self
.
assertEquals
(
tax_link
.
getCompletedStateList
(),
[
'confirmed'
,
'delivered'
,
'started'
,
'stopped'
])
self
.
assertEquals
(
tax_link
.
getFrozenStateList
(),[
'delivered'
,
'stopped'
])
self
.
assertEquals
(
tax_link
.
getTradePhase
(),
'trade/tax'
)
self
.
assertEquals
(
tax_link
.
getDeliveryBuilderList
(),
[
"portal_deliveries/purchase_invoice_transaction_trade_model_builder"
,
"portal_deliveries/sale_invoice_transaction_trade_model_builder"
])
"portal_deliveries/sale_invoice_transaction_trade_model_builder"
])
account_link
=
getattr
(
business_process
,
"account_link"
,
None
)
account_link
=
getattr
(
business_process
,
"account_link"
,
None
)
...
@@ -713,8 +732,9 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
...
@@ -713,8 +732,9 @@ class StandardConfigurationMixin(TestLiveConfiguratorWorkflowMixin):
self
.
assertEquals
(
pay_link
.
getTradePhase
(),
'trade/payment'
)
self
.
assertEquals
(
pay_link
.
getTradePhase
(),
'trade/payment'
)
self
.
assertEquals
(
pay_link
.
getSuccessor
(),
None
)
self
.
assertEquals
(
pay_link
.
getSuccessor
(),
None
)
self
.
assertEquals
(
pay_link
.
getPredecessor
(),
"trade_state/trade/accounted"
)
self
.
assertEquals
(
pay_link
.
getPredecessor
(),
"trade_state/trade/accounted"
)
self
.
assertEquals
(
pay_link
.
getCompletedState
(),
None
)
self
.
assertEquals
(
pay_link
.
getCompletedStateList
(),
self
.
assertEquals
(
pay_link
.
getFrozenState
(),
None
)
[
'confirmed'
,
'delivered'
,
'started'
,
'stopped'
])
self
.
assertEquals
(
pay_link
.
getFrozenStateList
(),[
'delivered'
,
'stopped'
])
self
.
assertEquals
(
pay_link
.
getDeliveryBuilderList
(),
self
.
assertEquals
(
pay_link
.
getDeliveryBuilderList
(),
[
"portal_deliveries/payment_transaction_builder"
])
[
"portal_deliveries/payment_transaction_builder"
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment