X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/7bc8df16096d7507322b4505f40e092e9a3f908c..e09347c89ca119213c4d8ba43083653cda793399:/SL/IR.pm diff --git a/SL/IR.pm b/SL/IR.pm index c59f9eee8..02b2fa680 100644 --- a/SL/IR.pm +++ b/SL/IR.pm @@ -39,6 +39,7 @@ use SL::ARAP; use SL::Common; use SL::DBUtils; use SL::DO; +use SL::GenericTranslations; use SL::MoreCommon; use List::Util qw(min); @@ -1147,6 +1148,10 @@ sub vendor_details { 'trans_id' => $form->{vendor_id}); map { $form->{"vc_cvar_$_->{name}"} = $_->{value} } @{ $custom_variables }; + $form->{cp_greeting} = GenericTranslations->get('dbh' => $dbh, + 'translation_type' => 'greetings::' . ($form->{cp_gender} eq 'f' ? 'female' : 'male'), + 'allow_fallback' => 1); + $dbh->disconnect(); $main::lxdebug->leave_sub();