projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Standardstundensatz in Tabelle defaults speichern, nicht in Konfigurationsdatei
[kivitendo-erp.git]
/
SL
/
DB
/
CustomVariable.pm
diff --git
a/SL/DB/CustomVariable.pm
b/SL/DB/CustomVariable.pm
index
6073925
..
dd32ef9
100644
(file)
--- a/
SL/DB/CustomVariable.pm
+++ b/
SL/DB/CustomVariable.pm
@@
-15,7
+15,7
@@
sub value {
my $self = $_[0];
my $type = $self->config->type;
my $self = $_[0];
my $type = $self->config->type;
- goto &bool_value if $type eq 'bool
ean
';
+ goto &bool_value if $type eq 'bool';
goto ×tamp_value if $type eq 'timestamp';
goto &number_value if $type eq 'number';
goto ×tamp_value if $type eq 'timestamp';
goto &number_value if $type eq 'number';
@@
-70,8
+70,8
@@
sub value_as_text {
require SL::DB::Part;
my $id = int($self->number_value);
require SL::DB::Part;
my $id = int($self->number_value);
- my $
vendor
= $id ? SL::DB::Part->new(id => $id)->load() : 0;
- return $
vendor ? $vendor->name
: '';
+ my $
part
= $id ? SL::DB::Part->new(id => $id)->load() : 0;
+ return $
part ? $part->description
: '';
}
goto &text_value; # text, textfield, date and select
}
goto &text_value; # text, textfield, date and select