Commit 1d17e68b authored by Yusei Tahara's avatar Yusei Tahara

2010-09-30 yusei

* Update movement_resource_interaction_workflow and set quantity unit value to movement forcedly if current value is acquired from resource.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38790 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5662b857
...@@ -54,6 +54,9 @@ ...@@ -54,6 +54,9 @@
\n \n
resource = movement.getResourceValue()\n resource = movement.getResourceValue()\n
if resource is not None:\n if resource is not None:\n
# quantity unit can be acquired from resource.\n
# (Amount class has getQuantityUnit method for backward compatibility and it tries to acquire value from resource).\n
if movement.hasCategory(\'quantity_unit\'):\n
# if the movement already have a quantity unit which is valid for this resource, don\'t change it\n # if the movement already have a quantity unit which is valid for this resource, don\'t change it\n
movement_quantity_unit = movement.getQuantityUnit()\n movement_quantity_unit = movement.getQuantityUnit()\n
if movement_quantity_unit and movement_quantity_unit in resource.getQuantityUnitList():\n if movement_quantity_unit and movement_quantity_unit in resource.getQuantityUnitList():\n
......
2010-09-30 yusei
* Update movement_resource_interaction_workflow and set quantity unit value to movement forcedly if current value is acquired from resource.
2010-09-28 tatuya 2010-09-28 tatuya
* Fix a issue that all the base contribution are not copied when change the resource on a movement. * Fix a issue that all the base contribution are not copied when change the resource on a movement.
......
868 869
\ 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