Commit 507a3ca0 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

do not consider business_path's source or destination for payable movement.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32283 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f60f2922
......@@ -107,8 +107,9 @@ class PaymentRuleMovementGenerator(MovementGeneratorMixin):
# Payment Rule does not work with Business Path
if business_path is None:
continue
kw = self._getPropertyAndCategoryList(input_movement, business_path,
rule)
# Since we need to consider business_path only for bank movement,
# not for payable movement, we pass None as business_path here.
kw = self._getPropertyAndCategoryList(input_movement, None, rule)
kw.update({'order':None, 'delivery':None})
quantity = kw.pop('quantity', 0)
efficiency = business_path.getEfficiency()
......
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