Commit 36bac724 authored by Tatuya Kamada's avatar Tatuya Kamada

2010-09-28 tatuya

* Fix a issue that all the base contribution are not copied when change the resource on a movement.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38773 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 828a7dd7
...@@ -54,12 +54,10 @@ ...@@ -54,12 +54,10 @@
\n \n
resource = movement.getResourceValue()\n resource = movement.getResourceValue()\n
if resource is not None:\n if resource is not None:\n
# if the movement already have a base contribution which is valid for this resource, don\'t change it\n # We can over-write base contribution list always.\n
movement_base_contribution = movement.getBaseContribution()\n # Because when we change the resource, we need to set all the base contribution into movement.\n
if movement_base_contribution and movement_base_contribution in resource.getBaseContributionList():\n # Imagine that we buy a product which have complex tax definitions with discounting.\n
return\n movement.setBaseContributionList(resource.getBaseContributionList())\n
# otherwise initialise to the default base contribution\n
movement.setBaseContribution(resource.getDefaultBaseContribution())\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -110,7 +108,6 @@ if resource is not None:\n ...@@ -110,7 +108,6 @@ if resource is not None:\n
<string>_getattr_</string> <string>_getattr_</string>
<string>resource</string> <string>resource</string>
<string>None</string> <string>None</string>
<string>movement_base_contribution</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
2010-09-28 tatuya
* Fix a issue that all the base contribution are not copied when change the resource on a movement.
2010-09-28 tatuya 2010-09-28 tatuya
* Stop overwriting a value by movement_resource_interaraction_workflow when the categories are already set a valid value as the new resource. * Stop overwriting a value by movement_resource_interaraction_workflow when the categories are already set a valid value as the new resource.
......
867 868
\ No newline at end of file \ No newline at end of file
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