projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Part-Manager: leere Strings im Typenfilter ignorieren
[kivitendo-erp.git]
/
SL
/
DB
/
DeliveryOrderItem.pm
diff --git
a/SL/DB/DeliveryOrderItem.pm
b/SL/DB/DeliveryOrderItem.pm
index
e832ddb
..
3c5eef8
100644
(file)
--- a/
SL/DB/DeliveryOrderItem.pm
+++ b/
SL/DB/DeliveryOrderItem.pm
@@
-7,17
+7,24
@@
use SL::DB::Helper::CustomVariables (
sub_module => 'delivery_order_item',
cvars_alias => 1,
overloads => {
sub_module => 'delivery_order_item',
cvars_alias => 1,
overloads => {
- parts_id => 'SL::DB::Part',
+ parts_id => {
+ class => 'SL::DB::Part',
+ module => 'IC',
+ }
},
);
__PACKAGE__->meta->make_manager_class;
},
);
__PACKAGE__->meta->make_manager_class;
+__PACKAGE__->meta->add_relationship(
+ unit_obj => {
+ type => 'many to one',
+ class => 'SL::DB::Unit',
+ column_map => { unit => 'name' },
+ },
+);
-# methods
+__PACKAGE__->meta->initialize;
-sub part {
- # canonial alias for parts.
- return shift->parts;
-}
+# methods
1;
1;