visibility offres at timewriting
This commit is contained in:
@@ -47,8 +47,8 @@ class Offer extends BaseModel {
|
|||||||
public static function getOffersWithoutProject( )
|
public static function getOffersWithoutProject( )
|
||||||
{
|
{
|
||||||
$offersWithoutProject = Offer::orderBy('startdate')
|
$offersWithoutProject = Offer::orderBy('startdate')
|
||||||
->whereNull('rejectdate')
|
// ->whereNull('rejectdate')
|
||||||
->whereNull('project_id')
|
// ->whereNull('project_id')
|
||||||
->whereArchive('F')
|
->whereArchive('F')
|
||||||
->get();
|
->get();
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,8 @@ class EmployeehoursMonthly {
|
|||||||
JOIN users USR
|
JOIN users USR
|
||||||
ON USR.id = EMH.employee_id
|
ON USR.id = EMH.employee_id
|
||||||
WHERE MONTH(hourdate) = {$month}
|
WHERE MONTH(hourdate) = {$month}
|
||||||
AND YEAR(hourdate) = {$year} ";
|
AND YEAR(hourdate) = {$year}
|
||||||
|
AND reportable = 'T' ";
|
||||||
if( $employeeID != 0 ) $sql.="AND USR.id = {$employeeID} ";
|
if( $employeeID != 0 ) $sql.="AND USR.id = {$employeeID} ";
|
||||||
$sql.="
|
$sql.="
|
||||||
UNION
|
UNION
|
||||||
|
|||||||
Reference in New Issue
Block a user