Fix difference split

issue3101
review741003
(transplanted from c86514d3c5297ee51e25c358035357c0afab8d93)
This commit is contained in:
Cédric Krier committed 2013-03-31 23:35:47 +02:00
1 parent c3e9ba5e89
commit 55d67ce5e9
1 file changed
+1 -1
+1 -1
View File
@@ -138,7 +138,7 @@ class ShipmentIn(Model):
move = cost['move']
quantity = Decimal(str(move.quantity))
if exp * quantity < difference:
cost['unit_shipment_cost'] = unit_shipment_cost + exp
cost['unit_shipment_cost'] += exp
difference -= exp * quantity
if difference < exp:
break