Revision d2b3f1ee
Von Bernd Bleßmann vor 8 Monaten hinzugefügt
SL/DB/StockCounting.pm | ||
---|---|---|
|
||
use SL::Locale::String qw(t8);
|
||
|
||
__PACKAGE__->meta->add_relationship(
|
||
stock_counting_items => {
|
||
type => 'one to many',
|
||
class => 'SL::DB::StockCountingItem',
|
||
column_map => { id => 'counting_id' },
|
||
},
|
||
);
|
||
|
||
__PACKAGE__->meta->initialize;
|
||
|
||
sub items { goto &stock_counting_items; }
|
||
sub add_items { goto &add_stock_counting_items; }
|
||
|
||
sub validate {
|
||
my ($self) = @_;
|
||
|
Auch abrufbar als: Unified diff
S:D:StockCounting: Rose-Beziehung zu Items