Esempio n. 1
0
</nobr></td>
      <td><?php 
    echo $toolInst->formatCurrency($taskInst->fixedPrice);
    ?>
</td>
    </tr>
  <?php 
}
?>
    <tr class="light">
      <td><nobr><?php 
echo $lang['tasks_hasToPay'];
?>
</nobr></td>
      <td><?php 
echo $taskInst->hasToPay() ? $lang['common_yes'] : $lang['common_no'];
?>
</td>
    </tr>
  <tr class="light">
    <td><?php 
echo $lang['common_priority'];
?>
</td>
    <td><span class="<?php 
echo $taskInst->getPriorityStyle();
?>
"><?php 
echo $taskInst->getPriorityName();
?>
</span></td>
Esempio n. 2
0
         echo "<td class=list{$stylePrivate} align=right>" . $toolInst->formatTime($jobInst->getSummary()) . "</td>";
         echo "</tr>";
         next($jobList);
     }
 }
 // calculate task summary
 if ($taskInst->isfixedPrice()) {
     $taskCosts = $taskInst->fixedPrice;
 } else {
     $taskCosts = $toolInst->deductibleSeconds($taskSum) / 3600 * $taskInst->getRate();
 }
 // calculate customer part
 $customerTaskCosts = 0;
 $customerTaskSummary = 0;
 $customerTaskSummaryRounded = 0;
 if ($taskInst->hasToPay()) {
     $customerTaskCosts = $taskCosts;
     $customerTaskSummary = $taskSum;
     $customerTaskSummaryRounded = $toolInst->deductibleSeconds($taskSum);
 }
 // determine summaries for completed jobs (not only the shown jobs)
 $completeTaskSummary = $taskInst->getSummary();
 $completeTaskCustomerSummary = $taskInst->getCustomerSummary();
 // add summaries to overall summaries
 $costs += $taskCosts;
 $summary += $taskSum;
 $summaryRounded += $toolInst->deductibleSeconds($taskSum);
 $customerCosts += $customerTaskCosts;
 $customerSummary += $customerTaskSummary;
 $customerSummaryRounded += $customerTaskSummaryRounded;
 $completeCosts += $taskInst->getCosts();