X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/a7e924f559065d898ed12d8c44cbfa727a5b3b77..6454c25f66fd37513e8f8e94167c019e372c3ef7:/SL/CVar.pm diff --git a/SL/CVar.pm b/SL/CVar.pm index cb1cd658f..0a91c59f6 100644 --- a/SL/CVar.pm +++ b/SL/CVar.pm @@ -739,6 +739,8 @@ sub parse { return $::form->parse_amount(\%::myconfig, $value) if $config->{type} eq 'number'; return DateTime->from_lxoffice($value) if $config->{type} eq 'date'; return !ref $value ? SL::DB::Manager::Customer->find_by(id => $value * 1) : $value if $config->{type} eq 'customer'; + return !ref $value ? SL::DB::Manager::Vendor->find_by(id => $value * 1) : $value if $config->{type} eq 'vendor'; + return !ref $value ? SL::DB::Manager::Part->find_by(id => $value * 1) : $value if $config->{type} eq 'part'; return $value; }