<?php

namespace App\Support;

final class SystemReferenceGenerator
{
    public const DEPARTMENT = 'DEP';

    public const POSITION = 'POS';

    public const EMPLOYEE = 'EMP';

    public const WAREHOUSE = 'WH';

    public const SECTION = 'SEC';

    public const CATEGORY = 'CAT';

    public const ITEM = 'ITM';

    public const SUPPLIER = 'SUP';

    public const PURCHASE_ORDER = 'PO';

    public const GOODS_RECEIPT = 'GR';

    public const CUSTOMER = 'CUS';

    public const SALES_ORDER = 'SO';

    public const SALES_RETURN = 'RET';

    public const TRANSFER = 'XFER';

    public const CANDIDATE = 'CAND';

    public const CANDIDATE_CV = 'CV';

    public const JOB_REQUEST = 'JR';

    public const VACANCY = 'VAC';

    public const APPLICATION = 'APP';

    public const INTERVIEW = 'INT';

    public const INTERVIEW_SCORECARD = 'ISC';

    public const OFFER_LETTER = 'OFR';

    public const HIRING = 'HIRE';

    public const ONBOARDING = 'ONB';

    public static function format(string $prefix, int $id): string
    {
        return $prefix.'-'.$id;
    }
}
