[Erp5-report] r33551 kazuhiko - /erp5/trunk/products/ERP5/Document/PaymentSimulationRule.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Mar 10 06:28:54 CET 2010


Author: kazuhiko
Date: Wed Mar 10 06:28:53 2010
New Revision: 33551

URL: http://svn.erp5.org?rev=33551&view=rev
Log:
set peyment_mode in simulation movements.

Modified:
    erp5/trunk/products/ERP5/Document/PaymentSimulationRule.py

Modified: erp5/trunk/products/ERP5/Document/PaymentSimulationRule.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/PaymentSimulationRule.py?rev=33551&r1=33550&r2=33551&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/PaymentSimulationRule.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/PaymentSimulationRule.py [utf8] Wed Mar 10 06:28:53 2010
@@ -104,6 +104,7 @@
         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 @@
           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 @@
           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)




More information about the Erp5-report mailing list