Skip to content

Qore relation

This is the module that adds company and relation resources to Qore.works.

Installation

  1. Install the package via composer:
bash
composer require qore-works-business/qore-relation
  1. 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

ValueDescription
CompanyType::CUSTOMERCompany type: customer
CompanyType::LEADCompany type: lead
CompanyType::SUPPLIERCompany type: supplier

default: CompanyType::CUSTOMER

Example

php
QoreRelationPlugin::make()->setDefaultCompanyType(CompanyType::LEAD),

Persons

Show/hide the possibility to create a platform user

Possible values

ValueDescription
trueShow the default option to create a platform user
falseDon't shouw the option to create a platform user

default: true

Example

php
QoreRelationPlugin::make()->setCanCreatePlatformUserFromPerson(false)