diff --git a/product/ERP5/Document/PaymentRule.py b/product/ERP5/Document/PaymentRule.py index fb8742533155b26ea8d493a5f252ab84d6694488..275e03ea03226358cb20031dc0c8065fa3931021 100644 --- a/product/ERP5/Document/PaymentRule.py +++ b/product/ERP5/Document/PaymentRule.py @@ -70,8 +70,7 @@ class PaymentRule(Rule): return [] # Since we need to consider business_path only for bank movement, # not for payable movement, we pass None as business_path here. - kw = self._getExpandablePropertyDict(applied_rule, None, - business_path) + kw = self._getExpandablePropertyDict(applied_rule, input_movement, None) kw['start_date'] = business_path.getExpectedStartDate(input_movement) kw['stop_date'] = business_path.getExpectedStopDate(input_movement) quantity = business_path.getExpectedQuantity(input_movement)