Revision 73d810a4
Von Sven Schöling vor mehr als 11 Jahren hinzugefügt
SL/DB/Helper/TransNumberGenerator.pm | ||
---|---|---|
8 | 8 |
use Carp; |
9 | 9 |
use List::Util qw(max); |
10 | 10 |
|
11 |
use SL::DB::Default; |
|
12 | 11 |
use SL::PrefixedNumber; |
13 | 12 |
|
14 | 13 |
sub oe_scoping { |
... | ... | |
55 | 54 |
my @numbers = map { $_->$number_column } @{ $self->_get_manager_class->get_all(%conditions) }; |
56 | 55 |
my %numbers_in_use = map { ( $_ => 1 ) } @numbers; |
57 | 56 |
|
57 |
require SL::DB::Default; |
|
58 | 58 |
my $defaults = SL::DB::Default->get; |
59 | 59 |
$number_range_column = 'articlenumber' if $number_range_column eq 'assemblynumber' and length($defaults->$number_range_column) < 1; |
60 | 60 |
my $sequence = SL::PrefixedNumber->new(number => $defaults->$number_range_column); |
Auch abrufbar als: Unified diff
In Helper kein use SL::DB::Object