Commit b2f7e979 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

Net Converted Quantity Divergence Tester should update quantity_unit too.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32199 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fc63f45d
......@@ -55,9 +55,5 @@ class NetConvertedQuantityDivergenceTester(FloatDivergenceTester):
decision_movement -- a delivery movement (decision)
"""
tested_property = 'net_converted_quantity'
prevision_value = self._getPropertyValue(prevision_movement, tested_property)
return {tested_property:prevision_value}
def _getPropertyValue(self, document, property):
return document.getNetConvertedQuantity()
return {'quantity':prevision_movement.getNetConvertedQuantity(),
'quantity_unit':prevision_movement.getQuantityUnit()}
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