modules/OSSSoldServices/OSSSoldServices.php
<?php
/**
* OSSSoldServices CRMEntity class.
*
* @copyright YetiForce S.A.
* @license YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)
*/
include_once 'modules/Vtiger/CRMEntity.php';
class OSSSoldServices extends Vtiger_CRMEntity
{
public $table_name = 'vtiger_osssoldservices';
public $table_index = 'osssoldservicesid';
public $column_fields = [];
protected $lockFields = ['ssservicesstatus' => ['PLL_ACCEPTED', 'PLL_CANCELLED']];
/** Indicator if this is a custom module or standard module */
public $IsCustomModule = true;
/**
* Mandatory table for supporting custom fields.
*/
public $customFieldTable = ['vtiger_osssoldservicescf', 'osssoldservicesid'];
/**
* Mandatory for Saving, Include tables related to this module.
*/
public $tab_name = ['vtiger_crmentity', 'vtiger_osssoldservices', 'vtiger_osssoldservicescf'];
/**
* Mandatory for Saving, Include tablename and tablekey columnname here.
*/
public $tab_name_index = [
'vtiger_crmentity' => 'crmid',
'vtiger_osssoldservices' => 'osssoldservicesid',
'vtiger_osssoldservicescf' => 'osssoldservicesid', ];
public $list_fields_name = [
// Format: Field Label => fieldname
'Product Name' => 'productname',
'Category' => 'pscategory',
'Assigned To' => 'assigned_user_id',
'Date Sold' => 'datesold',
'LBL_ssservicesstatus' => 'ssservicesstatus',
];
/**
* @var string[] List of fields in the RelationListView
*/
public $relationFields = [];
// For Popup listview and UI type support
public $search_fields = [
'Product Name' => ['ossoutsourcedservices' => 'productname'],
'Category' => ['ossoutsourcedservices' => 'pscategory'],
'Sub Category' => ['ossoutsourcedservices' => 'pssubcategory'],
'Assigned To' => ['crmentity', 'smownerid'],
'Date Sold' => ['ossoutsourcedservices' => 'datesold'],
'LBL_ssservicesstatus' => ['ossoutsourcedservices' => 'ssservicesstatus'],
];
public $search_fields_name = [];
// For Popup window record selection
public $popup_fields = ['productname'];
// For Alphabetical search
public $def_basicsearch_col = 'productname';
// Column value to use on detail view record text display
public $def_detailview_recname = 'productname';
// Callback function list during Importing
public $special_functions = ['set_import_assigned_user'];
public $default_order_by = '';
public $default_sort_order = 'ASC';
// Used when enabling/disabling the mandatory fields for the module.
// Refers to vtiger_field.fieldname values.
public $mandatory_fields = ['createdtime', 'modifiedtime', 'productname'];
}