Appearance
Wovosoft\BkbOffices\Models\DivisionalAuditOffice
| Title | Description |
|---|---|
| uses table | offices |
| Purpose | Distinguishes the Divisional Audit Offices from other Offices by office type dao |
This model has relationship with RegionalAuditOffice which is defined by regionalAuditOffices (hasMany) methods.
Get Regional Audit Offices
$dao = \Wovosoft\BkbOffices\Models\DivisionalAuditOffice::first();
$dao->regionalAuditOffices; // returns regional audit offices of the DAO
N.B.: type is automatically initiated when creating/updating new CrmRmOffice instance.
Checking type
There are custom attributes to check the type of Office Type
is_branchis_corporate_branchis_div_officeis_dao_officeis_rao_officeis_crm_rm_officeis_head_office