forked from planio/redmine_spent_time_column
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Calculated spent time = Estimated time * % Done - Divergent time = Spent time - Calculated spent time - Remaining time = Estimated time - (Estimated time * % Done)
- Loading branch information
Jan Schulz-Hofen
committed
Jul 7, 2011
1 parent
8081977
commit 41dfdb4
Showing
48 changed files
with
219 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'bg': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'bs': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'ca': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'cs': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'da': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'de': | ||
label_calculated_spent_hours: Rechnerisch aufgewendete Zeit | ||
label_divergent_hours: Zeitabweichung | ||
label_remaining_hours: Verbleibende Zeit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'el': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'en-GB': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
en: | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'es': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'eu': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'fa': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'fi': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'fr': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'gl': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'he': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'hr': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'hu': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'id': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'it': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'ja': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'ko': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'lt': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'lv': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'mk': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'mn': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'nl': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'no': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'pl': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'pt-BR': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'pt': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'ro': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'ru': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'sk': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'sl': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'sr-YU': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'sr': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'sv': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'th': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'tr': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'uk': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'vi': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'zh-TW': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
'zh': | ||
label_calculated_spent_hours: Calculated spent time | ||
label_divergent_hours: Divergent time | ||
label_remaining_hours: Remaining time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module RedmineSpentTimeColumn | ||
module Patches | ||
module IssuePatch | ||
|
||
def calculated_spent_hours | ||
@calculated_spent_hours ||= self_and_descendants.sum("estimated_hours * done_ratio / 100").to_f || 0.0 | ||
end | ||
|
||
def divergent_hours | ||
@divergent_hours ||= spent_hours - calculated_spent_hours | ||
end | ||
|
||
def remaining_hours | ||
@remaining_hours ||= self_and_descendants.sum("estimated_hours - (estimated_hours * done_ratio / 100)").to_f || 0.0 | ||
end | ||
|
||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters