lib/taskjuggler/reports/StatusSheetReport.rb in taskjuggler-0.0.11 vs lib/taskjuggler/reports/StatusSheetReport.rb in taskjuggler-0.1.0
- old
+ new
@@ -85,10 +85,11 @@
'loadUnit' => a('loadUnit'),
'numberFormat' => a('numberFormat'),
'timeFormat' => a('timeFormat'),
'currencyFormat' => a('currencyFormat'),
'start' => a('start'), 'end' => a('end'),
+ 'hideJournalEntry' => a('hideJournalEntry'),
'costAccount' => a('costAccount'),
'revenueAccount' => a('revenueAccount') }
resourceList.query = Query.new(queryAttrs)
resourceList.sort!
@@ -121,12 +122,13 @@
@managers << (manager = ManagerStatusRecord.new(resource))
topLevelTasks.each do |task|
# Get a list of all the current Journal entries for this task and
# all it's sub tasks.
- entries = @project['journal'].currentEntriesR(a('end'), task,
- 0, a('start') + 1)
+ entries = @project['journal'].
+ currentEntriesR(a('end'), task, 0, a('start') + 1,
+ resourceList.query.hideJournalEntry)
next if entries.empty?
manager.responsibilities << ManagerResponsibilities.new(task, entries)
end
# Sort the responsibilities list according to the original taskList.
@@ -181,9 +183,12 @@
end
end
@file << "\n"
end
@file << " # author #{entry.author.fullId}\n" if entry.author
+ unless entry.flags.empty?
+ @file << " # flags #{entry.flags.join(', ')}\n"
+ end
if entry.summary
@file << " # summary -8<-\n" +
indentBlock(4, entry.summary.richText.inputText) +
" # ->8-\n"
end