Commit f61f6c93 authored by Alain Takoudjou's avatar Alain Takoudjou

Do not play with next_date

Changing next_date in certain case cause simulation to create compensation. As compensation is disallowed in commit a2f258eea0a8e58929b61e2ca2ee753c623cf510, changing nexte_date in this cause undesired behavior because of wrong date.
parent 54d5c898
......@@ -150,8 +150,6 @@ class SubscriptionItem(Item, CompositionMixin, MovementGeneratorMixin,
id_index = 0
while current_date < stop_date:
next_date = self.getNextPeriodicalDate(current_date)
if next_date > stop_date:
next_date = stop_date
generated_movement = newTempMovement(self, 'subscription_%s' % id_index)
generated_movement._edit( aggregate_value=self,
resource=resource,
......
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