Fixed calculation of client an team increments

remotes/origin/enhancement/email-actions
Jesús Espino 2013-05-08 11:20:50 +02:00
parent bc6117d644
commit 1a0b9c90a9
1 changed files with 6 additions and 3 deletions

View File

@ -313,8 +313,9 @@ class Milestone(models.Model):
@property
def client_increment_points(self):
user_stories = UserStory.objects.filter(
created_date__gt=self.estimated_start,
created_date__gte=self.estimated_start,
created_date__lt=self.estimated_finish,
project_id = self.project_id,
client_requirement=True,
team_requirement=False
)
@ -324,8 +325,9 @@ class Milestone(models.Model):
@property
def team_increment_points(self):
user_stories = UserStory.objects.filter(
created_date__gt=self.estimated_start,
created_date__gte=self.estimated_start,
created_date__lt=self.estimated_finish,
project_id = self.project_id,
client_requirement=False,
team_requirement=True
)
@ -335,8 +337,9 @@ class Milestone(models.Model):
@property
def shared_increment_points(self):
user_stories = UserStory.objects.filter(
created_date__gt=self.estimated_start,
created_date__gte=self.estimated_start,
created_date__lt=self.estimated_finish,
project_id = self.project_id,
client_requirement=True,
team_requirement=True
)