From 6939876fa38ad6ccf1e41522b9321ed938d90d28 Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Wed, 10 Mar 2010 05:28:53 +0000 Subject: [PATCH] set peyment_mode in simulation movements. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33551 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/PaymentSimulationRule.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/product/ERP5/Document/PaymentSimulationRule.py b/product/ERP5/Document/PaymentSimulationRule.py index f1240cc50f..6fc7e60089 100644 --- a/product/ERP5/Document/PaymentSimulationRule.py +++ b/product/ERP5/Document/PaymentSimulationRule.py @@ -104,6 +104,7 @@ class PaymentSimulationRule(Rule, PredicateMatrix): start_date = aggregated_ammount.getStartDate() stop_date = aggregated_ammount.getStopDate() quantity = aggregated_ammount.getQuantity() + payment_mode = payment_condition.getPaymentMode() # one for payable prevision_line = kw.copy() @@ -112,6 +113,7 @@ class PaymentSimulationRule(Rule, PredicateMatrix): stop_date=stop_date, source=input_movement.getSource(), destination=input_movement.getDestination(), + payment_mode=payment_mode, quantity=-quantity ) prevision_list.append(prevision_line) @@ -125,6 +127,7 @@ class PaymentSimulationRule(Rule, PredicateMatrix): stop_date=stop_date, source=payment_rule_cell_line.getSource(), destination=payment_rule_cell_line.getDestination(), + payment_mode=payment_mode, quantity=quantity ) prevision_list.append(prevision_line) -- 2.30.9