Revision d2b3f1ee
Von Bernd Bleßmann vor 5 Monaten hinzugefügt
SL/DB/StockCounting.pm | ||
---|---|---|
12 | 12 |
|
13 | 13 |
use SL::Locale::String qw(t8); |
14 | 14 |
|
15 |
__PACKAGE__->meta->add_relationship( |
|
16 |
stock_counting_items => { |
|
17 |
type => 'one to many', |
|
18 |
class => 'SL::DB::StockCountingItem', |
|
19 |
column_map => { id => 'counting_id' }, |
|
20 |
}, |
|
21 |
); |
|
22 |
|
|
15 | 23 |
__PACKAGE__->meta->initialize; |
16 | 24 |
|
25 |
sub items { goto &stock_counting_items; } |
|
26 |
sub add_items { goto &add_stock_counting_items; } |
|
27 |
|
|
17 | 28 |
sub validate { |
18 | 29 |
my ($self) = @_; |
19 | 30 |
|
Auch abrufbar als: Unified diff
S:D:StockCounting: Rose-Beziehung zu Items