本文整理汇总了PHP中task::hasToPay方法的典型用法代码示例。如果您正苦于以下问题:PHP task::hasToPay方法的具体用法?PHP task::hasToPay怎么用?PHP task::hasToPay使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类task
的用法示例。
在下文中一共展示了task::hasToPay方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
</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>
示例2: next
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();