Revision 6571181b
Von Tamino Steinert vor etwa 1 Jahr hinzugefügt
SL/DB/Part.pm | ||
---|---|---|
$self->variant_property_values) . "]";
|
||
}
|
||
|
||
sub variant_value {
|
||
my ($self, $variant_property) = @_;
|
||
|
||
my %property_id_to_values =
|
||
map {$_->variant_property_id => $_}
|
||
@{$self->variant_property_values};
|
||
|
||
my $property_value = $property_id_to_values{$variant_property->id};
|
||
|
||
return $property_value && $property_value->displayable_name();
|
||
}
|
||
|
||
sub init_onhandqty {
|
||
my ($self) = @_;
|
||
my $qty = SL::Helper::Inventory::get_onhand(part => $self->id) || 0;
|
Auch abrufbar als: Unified diff
Varianten: Varianten Eigenschaften zum Stammartikel hinzufügen