Code:
global $mod_strings;
$popupMeta = array('moduleMain' => 'Account',
'varName' => 'ACCOUNT',
'orderBy' => 'name',
'whereClauses' =>
array('name' => 'accounts.name',
'billing_address_city' => 'accounts.billing_address_city',
'phone_office' => 'accounts.phone_office'),
'account_type' => 'accounts.account_type'),
'searchInputs' =>
array('name', 'billing_address_city', 'phone_office', 'account_type'),
'create' =>
array('formBase' => 'AccountFormBase.php',
'formBaseClass' => 'AccountFormBase',
'getFormBodyParams' => array('','','AccountSave'),
'createButton' => $mod_strings['LNK_NEW_ACCOUNT']
),
'listviewdefs' => array(
'NAME' => array(
width' => '40',
'label' => 'LBL_LIST_ACCOUNT_NAME',
'link' => true,
'default' => true,
),
'BILLING_ADDRESS_STREET' => array(
'width' => '10',
'label' => 'LBL_BILLING_ADDRESS_STREET',
'default' => false,
),
'BILLING_ADDRESS_CITY' => array(
'width' => '10',
'label' => 'LBL_LIST_CITY',
'default' => true,
),
'BILLING_ADDRESS_STATE' => array(
'width' => '7',
'label' => 'LBL_STATE',
'default' => true,
),
'BILLING_ADDRESS_POSTALCODE' => array(
'width' => '10',
'label' => 'LBL_BILLING_ADDRESS_POSTALCODE',
'default' => false,
),
'BILLING_ADDRESS_COUNTRY' => array(
'width' => '10',
'label' => 'LBL_COUNTRY',
'default' => true,
),
'PHONE_OFFICE' => array(
'width' => '10',
'label' => 'LBL_LIST_PHONE',
'default' => false),
),
'ASSIGNED_USER_NAME' => array(
'width' => '2',
'label' => 'LBL_LIST_ASSIGNED_USER',
'default' => true,
),
'ACCOUNT_TYPE' => array(
'width' => '10',
'label' => 'LBL_TYPE',
'default' => true,
),
),
'searchdefs' => array(
'name',
'billing_address_city',
'billing_address_state',
'billing_address_country',
]'account_type',
array('name' => 'assigned_user_id', 'label'=>'LBL_ASSIGNED_TO', 'type' => 'enum', 'function' => array('name' => 'get_user_array', 'params' => array(false))),
)
); These changes will add the column 'Type' in the 'Account List'.
Bookmarks