Commit 741b7d66 authored by Romain Courteaud's avatar Romain Courteaud

Day is enough precise for MRP.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4145 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ad0be1ff
......@@ -201,8 +201,8 @@ class OrderBuilder(XMLObject, Amount, Predicate):
# section_uid=self.getDestinationSectionUid())
max_delay = resource.getMaxDelay(0)
movement.edit(
start_date=stop_date-max_delay,
stop_date=stop_date,
start_date=DateTime((stop_date-max_delay.Date())),
stop_date=DateTime(stop_date.Date()),
quantity=min_flow-inventory_item.inventory,
quantity_unit=resource.getQuantityUnit()
# XXX FIXME define on a supply line
......
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