I'm trying to add new fields to customer company. Recently I added new fields to customers using the config.pm and I looked for how to do the same with companies without success.
I have seen / otrs / Kernel / System / CustomerCompany.pm this but I can't enter the correct format in Config.pm
Code: Select all
# config options
$Self->{CustomerCompanyTable} = $Self->{ConfigObject}->Get('CustomerCompany')->{Params}->{Table}
|| die "Need CustomerCompany->Params->Table in Kernel/Config.pm!";
$Self->{CustomerCompanyKey}
= $Self->{ConfigObject}->Get('CustomerCompany')->{CustomerCompanyKey}
|| $Self->{ConfigObject}->Get('CustomerCompany')->{Key}
|| die "Need CustomerCompany->CustomerCompanyKey in Kernel/Config.pm!";
$Self->{CustomerCompanyMap} = $Self->{ConfigObject}->Get('CustomerCompany')->{Map}
|| die "Need CustomerCompany->Map in Kernel/Config.pm!";
$Self->{CustomerCompanyValid}
= $Self->{ConfigObject}->Get('CustomerCompany')->{'CustomerCompanyValid'};
$Self->{SearchListLimit}
= $Self->{ConfigObject}->Get('CustomerCompany')->{'CustomerCompanySearchListLimit'};
$Self->{SearchPrefix}
= $Self->{ConfigObject}->Get('CustomerCompany')->{'CustomerCompanySearchPrefix'};
if ( !defined( $Self->{SearchPrefix} ) ) {
$Self->{SearchPrefix} = '';
}
$Self->{SearchSuffix}
= $Self->{ConfigObject}->Get('CustomerCompany')->{'CustomerCompanySearchSuffix'};
if ( !defined( $Self->{SearchSuffix} ) ) {
$Self->{SearchSuffix} = '*';
}
Regards,
Miguel.