Diverse wijzigingen
This commit is contained in:
@@ -56,7 +56,9 @@ class Employeetarget extends BaseModel {
|
||||
|
||||
if( $monthTarget->count() == 0 ) return 0;
|
||||
|
||||
return $monthTarget->first()->target;
|
||||
$monthtarget = $monthTarget->first();
|
||||
|
||||
return $monthtarget->target;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -27,4 +27,13 @@ class Vat extends BaseModel {
|
||||
return $vats;
|
||||
}
|
||||
|
||||
public static function getCurrentVat()
|
||||
{
|
||||
$currentVat = Vat::whereActive('T')->whereArchive('F')->first();
|
||||
|
||||
if( ! $currentVat) return 0;
|
||||
|
||||
return $currentVat->vatrate;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user