projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Form::_dbconnect_options nach SL::DBConnect::get_options verschoben
[kivitendo-erp.git]
/
SL
/
DB
/
OrderItem.pm
diff --git
a/SL/DB/OrderItem.pm
b/SL/DB/OrderItem.pm
index
7372f81
..
862a215
100644
(file)
--- a/
SL/DB/OrderItem.pm
+++ b/
SL/DB/OrderItem.pm
@@
-17,7
+17,7
@@
use SL::DB::Helper::CustomVariables (
__PACKAGE__->meta->add_relationship(
unit_obj => {
__PACKAGE__->meta->add_relationship(
unit_obj => {
- type => '
one
to one',
+ type => '
many
to one',
class => 'SL::DB::Unit',
column_map => { unit => 'name' },
},
class => 'SL::DB::Unit',
column_map => { unit => 'name' },
},
@@
-39,14
+39,4
@@
sub shipped_qty {
return sum(map { AM->convert_unit($_->unit => $self->unit) * $_->qty } @doi);
}
return sum(map { AM->convert_unit($_->unit => $self->unit) * $_->qty } @doi);
}
-sub part {
- # canonial alias for parts.
- goto &parts;
-}
-
-sub order {
- # canonial alias for trans.
- goto &trans;
-}
-
1;
1;