Qore relation
This is the module that adds company and relation resources to Qore.works.
Installation
- Install the package via composer:
bash
composer require qore-works-business/qore-relation- Add the plugin to the plugins() section of the applications panel service provider:
php
use QoreWorksBusiness\QoreRelation\QoreRelationPlugin;
class QorePanelServiceProvider extends QorePanelServiceProviderBase
{
public function panel(QorePanel|Panel $panel): QorePanel
return parent::panel($panel)
// ....
->plugins([
QoreRelationPlugin::make(),
]);
}Features
Companies
Set the default company type that is preselected
Possible values
| Value | Description |
|---|---|
| CompanyType::CUSTOMER | Company type: customer |
| CompanyType::LEAD | Company type: lead |
| CompanyType::SUPPLIER | Company type: supplier |
default: CompanyType::CUSTOMER
Example
php
QoreRelationPlugin::make()->setDefaultCompanyType(CompanyType::LEAD),Persons
Show/hide the possibility to create a platform user
Possible values
| Value | Description |
|---|---|
| true | Show the default option to create a platform user |
| false | Don't shouw the option to create a platform user |
default: true
Example
php
QoreRelationPlugin::make()->setCanCreatePlatformUserFromPerson(false)