Changeset 1638
- Timestamp:
- 02/25/10 15:33:31 (5 months ago)
- Location:
- trunk/plugins/ullTimePlugin/modules/ullTime
- Files:
-
- 2 modified
-
lib/BaseUllTimeActions.class.php (modified) (3 diffs)
-
templates/listSuccess.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/ullTimePlugin/modules/ullTime/lib/BaseUllTimeActions.class.php
r1608 r1638 626 626 $calendarWeek = null; 627 627 $week = null; 628 $this->totals = array('time' => 0, 'project' => 0 );628 $this->totals = array('time' => 0, 'project' => 0, 'delta' => 0); 629 629 630 630 foreach($rawDates as $date => $day) … … 648 648 $week['sum_project'] = 0; 649 649 $week['sum_time'] = 0; 650 $week['sum_delta'] = 0; 650 651 $week['future'] = true; 651 652 } … … 664 665 $week['sum_project'] += $sumProject; 665 666 $this->totals['project'] += $sumProject; 667 668 $sumDelta = $sumTime - $sumProject; 669 $week['dates'][$date]['sum_delta'] = $sumDelta; 670 $week['sum_delta'] += $sumDelta; 671 $this->totals['project'] += $sumDelta; 666 672 667 673 // mark future dates -
trunk/plugins/ullTimePlugin/modules/ullTime/templates/listSuccess.php
r1605 r1638 20 20 <th class="color_dark_bg"><?php echo __('Project reporting', null, 'ullTimeMessages') ?></th> 21 21 <th class="color_dark_bg"><?php echo __('Total', null, 'common') ?></th> 22 <th class="color_dark_bg"><?php echo __('Difference', null, 'ullTimeMessages')?></th> 22 23 </tr> 23 24 </thead> … … 63 64 array('action' => 'createProject', 'date' => $day['date'], 'period' => null)) ?></td> 64 65 <td class='ull_time_list_time_column'><?php echo $time_duration_widget->render(null, $day['sum_project']) ?></td> 66 <td class='ull_time_list_time_column'><?php echo $time_duration_widget->render(null, $day['sum_delta']) ?></td> 65 67 </tr> 66 68 <?php endforeach ?> … … 78 80 <?php 79 81 echo $time_duration_widget_with_zero->render(null, $calendar_week['sum_project']); 82 ?> 83 </td> 84 <td> 85 <?php 86 echo $time_duration_widget_with_zero->render(null, $calendar_week['sum_delta']); 80 87 ?> 81 88 </td>
