X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FOrder.pm;h=b9959aa7e2c9437adddecf656f1c3ef72718366f;hb=1c127236bd8d41997a8566651e9361623c308aa3;hp=b3edda5dc85dfb72504a66a229e2694b786eace5;hpb=27bb493fc0d42c426ea9c30617650f71182dcdb5;p=kivitendo-erp.git diff --git a/SL/DB/Order.pm b/SL/DB/Order.pm index b3edda5dc..b9959aa7e 100644 --- a/SL/DB/Order.pm +++ b/SL/DB/Order.pm @@ -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 {