Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 1a9c2aa4

Von Jan Büren vor etwa 2 Jahren hinzugefügt

  • ID 1a9c2aa491d4b03de7d7668c77563b88fc9779b9
  • Vorgänger afc18fdc
  • Nachfolger 61cea27c

Nummerkreise für Artikel, eindeutig ja, aber auch eigenständig

Ansonsten werden Erzeugnis oder Sortimentsnummer einfach aus
den Warennummernkreis befüllt. Richtige Analyse in 5fcefdf78916e0bd3,
aber beide Anforderungen können in dem Helper erfüllt werden

Unterschiede anzeigen:

SL/DB/Helper/TransNumberGenerator.pm
34 34
              rma_delivery_order      => { number_column => 'donumber',       number_range_column => 'rdonumber',      scoping => \&do_scoping,    },
35 35
              customer                => { number_column => 'customernumber', number_range_column => 'customernumber',                             },
36 36
              vendor                  => { number_column => 'vendornumber',   number_range_column => 'vendornumber',                               },
37
              part                    => { number_column => 'partnumber',     number_range_column => 'articlenumber',  scoping => \&parts_scoping, },
38
              service                 => { number_column => 'partnumber',     number_range_column => 'servicenumber',  scoping => \&parts_scoping, },
39
              assembly                => { number_column => 'partnumber',     number_range_column => 'assemblynumber', scoping => \&parts_scoping, },
40
              assortment              => { number_column => 'partnumber',     number_range_column => 'assortmentnumber', scoping => \&parts_scoping, },
37
              part                    => { number_column => 'partnumber',     number_range_column => 'articlenumber',                              },
38
              service                 => { number_column => 'partnumber',     number_range_column => 'servicenumber',                              },
39
              assembly                => { number_column => 'partnumber',     number_range_column => 'assemblynumber',                             },
40
              assortment              => { number_column => 'partnumber',     number_range_column => 'assortmentnumber',                           },
41 41
            );
42 42

  
43 43
sub get_next_trans_number {
......
100 100
  my $range_table    = ($business ? $business : SL::DB::Default->get)->load(for_update => 1);
101 101

  
102 102
  my $start_number   = $range_table->$number_range_column;
103
  $start_number      = $range_table->articlenumber if ($number_range_column =~ /^(assemblynumber|assortmentnumber)$/) && (length($start_number)//0 < 1);
104 103
  my $sequence       = SL::PrefixedNumber->new(number => $start_number // 0);
105 104

  
106 105
  if (!$fill_holes_in_range) {

Auch abrufbar als: Unified diff