X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FOrder.pm;h=b9959aa7e2c9437adddecf656f1c3ef72718366f;hb=feacad49259a8288edefa4c771fc028dd6380ca0;hp=b23e1da82cfdc22a8845aedb37f782e6928af008;hpb=8b7b7b3f6252786b38bb6c9357fc00a08750b8db;p=kivitendo-erp.git diff --git a/SL/DB/Order.pm b/SL/DB/Order.pm index b23e1da82..b9959aa7e 100644 --- a/SL/DB/Order.pm +++ b/SL/DB/Order.pm @@ -23,7 +23,7 @@ __PACKAGE__->meta->add_relationship( class => 'SL::DB::OrderItem', column_map => { id => 'trans_id' }, manager_args => { - with_objects => [ 'parts' ] + with_objects => [ 'part' ] } }, periodic_invoices_config => { @@ -37,8 +37,7 @@ __PACKAGE__->meta->initialize; # methods -sub items { goto &orderitems; } -sub payment_terms { goto &payment; } +sub items { goto &orderitems; } sub type { my $self = shift; @@ -69,7 +68,7 @@ sub displayable_type { sub is_sales { croak 'not an accessor' if @_ > 1; - return shift->customer_id; + return !!shift->customer_id; } sub invoices {