Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

employee modal - 500 error #1474

Open
AiFxApp opened this issue May 3, 2022 · 1 comment
Open

employee modal - 500 error #1474

AiFxApp opened this issue May 3, 2022 · 1 comment

Comments

@AiFxApp
Copy link

AiFxApp commented May 3, 2022

Cant view employee modal - 500 error

When clicking in an employees to view or possibly add details i get this:
image

@AiFxApp
Copy link
Author

AiFxApp commented May 3, 2022

App\Helpers\HolidayHelper::getNumberOfDaysLeftToEarn(): Argument #1 ($ptoPolicy) must be of type App\Models\Company\CompanyPTOPolicy, null given,

C:\officelife-main\app\Helpers\HolidayHelper
.php

: 34

     */

    public static function getHolidaysEarnedEachMonth(Employee $employee): float

    {

        return $employee->amount_of_allowed_holidays / 12;

    }



    /**

     * Return the number of days that an employee will earn as holidays from

     * today til the end of the year.

     *

     * @param CompanyPTOPolicy $ptoPolicy

     * @param Employee $employee

     *

     * @return float

     */

   LINE 34>>  public static function getNumberOfDaysLeftToEarn(CompanyPTOPolicy $ptoPolicy, Employee $employee): float

    {```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant