Revize 2488
Přidáno uživatelem David Raška před více než 9 roky(ů)
freenetis/branches/1.2/application/controllers/work_reports.php | ||
---|---|---|
public function __construct()
|
||
{
|
||
parent::__construct();
|
||
|
||
|
||
// works are not enabled
|
||
if (!Settings::get('works_enabled'))
|
||
Controller::error (ACCESS);
|
||
... | ... | |
* @param string $order_by
|
||
* @param string $order_by_direction
|
||
* @param integer $page_word
|
||
* @param integer $page
|
||
* @param integer $page
|
||
*/
|
||
public function show_all(
|
||
$limit_results = 20, $order_by = 'id', $order_by_direction = 'ASC',
|
||
$limit_results = 20, $order_by = 'id', $order_by_direction = 'DESC',
|
||
$page_word = null, $page = 1)
|
||
{
|
||
// acccess control
|
||
... | ... | |
/* Approved */
|
||
|
||
$approved = $work_report->get_approved_work_reports_of_user($user->id);
|
||
|
||
|
||
foreach ($approved as $approve)
|
||
{
|
||
$approved_stats['hours'] += $approve->hours;
|
freenetis/branches/1.2/application/models/job_report.php | ||
---|---|---|
WHERE r.concept = 0 AND r.user_id = ?
|
||
GROUP BY r.id
|
||
HAVING state ' . ($lower ? '<' : '=') . ' ?
|
||
ORDER BY r.id DESC
|
||
', __('Payment by cash'), $user_id, $state);
|
||
}
|
||
|
Také k dispozici: Unified diff
Upravy:
refs #944: Razeni vykazu od nejnovejsich