YetiForceCompany/YetiForceCRM

View on GitHub
modules/PaymentsOut/PaymentsOut.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php
/**
 * OSSMailScanner 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 PaymentsOut extends Vtiger_CRMEntity
{
    public $table_name = 'vtiger_paymentsout';
    public $table_index = 'paymentsoutid';
    public $column_fields = [];

    /** Indicator if this is a custom module or standard module */
    public $IsCustomModule = true;

    /**
     * Mandatory table for supporting custom fields.
     */
    public $customFieldTable = ['vtiger_paymentsoutcf', 'paymentsoutid'];

    /**
     * Mandatory for Saving, Include tables related to this module.
     */
    public $tab_name = ['vtiger_crmentity', 'vtiger_paymentsout', 'vtiger_paymentsoutcf'];

    /**
     * Mandatory for Saving, Include tablename and tablekey columnname here.
     */
    public $tab_name_index = [
        'vtiger_crmentity' => 'crmid',
        'vtiger_paymentsout' => 'paymentsoutid',
        'vtiger_paymentsoutcf' => 'paymentsoutid', ];

    public $list_fields_name = [
        'LBL_PAYMENTSNO' => 'paymentsno',
        'LBL_PAYMENTSNAME' => 'paymentsname',
        'LBL_PAYMENTSVALUE' => 'paymentsvalue',
        'LBL_PAYMENTSCURRENCY' => 'paymentscurrency',
        'LBL_PAYMENTSSTATUS' => 'paymentsout_status',
    ];

    /**
     * @var string[] List of fields in the RelationListView
     */
    public $relationFields = [];

    // For Popup listview and UI type support
    public $search_fields = [
        'LBL_PAYMENTSVALUE' => ['paymentsout', 'paymentsvalue'],
        'LBL_PAYMENTSNO' => ['paymentsout', 'paymentsno'],
        'LBL_PAYMENTSNAME' => ['paymentsout', 'paymentsname'],
    ];
    public $search_fields_name = [];
    // For Popup window record selection
    public $popup_fields = ['paymentsname'];
    // For Alphabetical search
    public $def_basicsearch_col = 'paymentsname';
    // Column value to use on detail view record text display
    public $def_detailview_recname = 'paymentsname';
    // 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', 'paymentsname'];
}