YetiForceCompany/YetiForceCRM

View on GitHub
modules/SSalesProcesses/ConfigTemplate.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php
/**
 * SSalesProcesses module config.
 *
 * @copyright YetiForce S.A.
 * @license   YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)
 */
return [
    'COLUMNS_IN_HIERARCHY' => [
        'default' => [],
        'description' => 'Columns visible in Sales hierarchy [$label => $columnName]',
    ],
    'MAX_HIERARCHY_DEPTH' => [
        'default' => 50,
        'description' => 'Max depth of hierarchy',
        'validation' => '\App\Validator::naturalNumber'
    ],
    'COUNT_IN_HIERARCHY' => [
        'default' => true,
        'description' => 'Count Sales in hierarchy',
        'validation' => '\App\Validator::bool',
        'sanitization' => '\App\Purifier::bool'
    ],
    'SHOW_SUMMARY_PRODUCTS_SERVICES' => [
        'default' => true,
        'description' => 'Show summary products services bookmark',
        'validation' => '\App\Validator::bool',
        'sanitization' => '\App\Purifier::bool'
    ],
];