Commit ebcdc179 authored by Łukasz Nowak's avatar Łukasz Nowak

- set proper method name

 - update copyrights and set encoding on files


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26775 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d38a437b
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Copyright (c) 200é-2009 Nexedi SA and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
......@@ -41,9 +42,9 @@ class Copy(DeliverySolver):
No ASolver will be required afterwards
"""
def solve(self, movement):
def solveMovement(self, movement):
"""
Solve a delivery
Solves a movement
"""
movement.setQuantity(movement.getSimulationQuantity())
......
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
# Copyright (c) 2002-2009 Nexedi SA and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
......@@ -39,14 +40,14 @@ class DeliverySolver:
self.simulation_tool = simulation_tool
self.__dict__.update(kw)
def solve(self, movement):
def solveMovement(self, movement):
"""
Solve a delivery movement
Solves a delivery movement
"""
def solveDelivery(self, delivery):
"""
Solve the delivery itself
Solves the delivery itself
"""
# Default method is to adopt target dates
delivery.setStartDate(delivery.getTargetStartDate())
......
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2008 Nexedi SA and Contributors. All Rights Reserved.
# Copyright (c) 2008-2009 Nexedi SA and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solanes <jp@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
......@@ -31,14 +32,14 @@ from DeliverySolver import DeliverySolver
class Distribute(DeliverySolver):
"""
Update new values equaly on Simulation Movements.
Update new values equally on Simulation Movements.
"""
def solveDelivery(self, delivery):
for movement in delivery.getMovementList():
self.solve(movement)
def solve(self, movement):
def solveMovement(self, movement):
"""
Solve a delivery by reducing / increasing each simulation movement
it relates to
......
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