Revision 201c9038
Von Kivitendo Admin vor etwa 8 Jahren hinzugefügt
SL/DB/DeliveryOrderItem.pm | ||
---|---|---|
19 | 19 |
|
20 | 20 |
__PACKAGE__->meta->make_manager_class; |
21 | 21 |
|
22 |
__PACKAGE__->meta->add_relationship( |
|
23 |
delivery_order_stock_entries => { |
|
24 |
type => 'one to many', |
|
25 |
class => 'SL::DB::DeliveryOrderItemsStock', |
|
26 |
column_map => { id => 'delivery_order_item_id' }, |
|
27 |
manager_args => { |
|
28 |
with_objects => [ 'inventory' ] |
|
29 |
}, |
|
30 |
}, |
|
31 |
); |
|
32 |
|
|
22 | 33 |
__PACKAGE__->meta->initialize; |
23 | 34 |
|
24 | 35 |
__PACKAGE__->configure_acts_as_list(group_by => [qw(delivery_order_id)]); |
Auch abrufbar als: Unified diff
Relationship delivery_order_stock_entries für DeliveryOrderItem