Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c25824ca

Von Tamino Steinert vor 11 Monaten hinzugefügt

  • ID c25824ca1bbf1662c39f827ba97d68f75fe75ec9
  • Vorgänger b16967fa
  • Nachfolger eb82b54d

Varianten: Varianten Eigenschaften im Namen anzeigen

Unterschiede anzeigen:

SL/DB/Part.pm
21 21
);
22 22
use SL::DB::Helper::DisplayableNamePreferences (
23 23
  title   => t8('Article'),
24
  options => [ {name => 'partnumber',  title => t8('Part Number')     },
25
               {name => 'description', title => t8('Description')    },
26
               {name => 'notes',       title => t8('Notes')},
27
               {name => 'ean',         title => t8('EAN')            }, ],
24
  options => [
25
    {name => 'partnumber',     title => t8('Part Number')},
26
    {name => 'description',    title => t8('Description')},
27
    {name => 'variant_values', title => t8('Varaint Values')},
28
    {name => 'notes',          title => t8('Notes')},
29
    {name => 'ean',            title => t8('EAN')},
30
  ],
28 31
);
29 32

  
30 33

  
......
631 634
  return 1;
632 635
}
633 636

  
634
sub init_onhandqty{
637
sub variant_values {
638
  my ($self) = @_;
639
  return unless $self->is_variant;
640
  return join(" ",
641
    map {"[" . $_->variant_property->abbreviation . ":" . $_->abbreviation . "]"}
642
    $self->variant_property_values);
643
}
644

  
645
sub init_onhandqty {
635 646
  my ($self) = @_;
636 647
  my $qty = SL::Helper::Inventory::get_onhand(part => $self->id) || 0;
637 648
  return $qty;
638 649
}
639 650

  
640
sub init_stockqty{
651
sub init_stockqty {
641 652
  my ($self) = @_;
642 653
  my $qty = SL::Helper::Inventory::get_stock(part => $self->id) || 0;
643 654
  return $qty;

Auch abrufbar als: Unified diff