Appearance
Wovosoft\BkbOffices\Models\RegionalAuditOffice
| Title | Description |
|---|---|
| uses table | offices |
| Purpose | Distinguishes the Regional Audit Offices from other Offices by office type rao |
This model has relationship with DivisionalAuditOffice which is defined by divisionalAuditOffice (belongsTo) methods.
Get Divisional Audit Office
$rao = \Wovosoft\BkbOffices\Models\RegionalAuditOffice::first();
$rao->divisionalAuditOffice; // returns divisional audit office of the RAO
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