X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FOrder.pm;h=b9959aa7e2c9437adddecf656f1c3ef72718366f;hb=1c127236bd8d41997a8566651e9361623c308aa3;hp=b5e8c90f8175b0688bb3e3dcea50a589175ac715;hpb=0ca820f691552aafda8e0f3e8dedad3af3dbb2ce;p=kivitendo-erp.git diff --git a/SL/DB/Order.pm b/SL/DB/Order.pm index b5e8c90f8..b9959aa7e 100644 --- a/SL/DB/Order.pm +++ b/SL/DB/Order.pm @@ -31,31 +31,6 @@ __PACKAGE__->meta->add_relationship( class => 'SL::DB::PeriodicInvoicesConfig', column_map => { id => 'oe_id' }, }, - payment_term => { - type => 'one to one', - class => 'SL::DB::PaymentTerm', - column_map => { payment_id => 'id' }, - }, - contact => { - type => 'one to one', - class => 'SL::DB::Contact', - column_map => { cp_id => 'cp_id' }, - }, - shipto => { - type => 'one to one', - class => 'SL::DB::Shipto', - column_map => { shipto_id => 'shipto_id' }, - }, - department => { - type => 'one to one', - class => 'SL::DB::Department', - column_map => { department_id => 'id' }, - }, - language => { - type => 'one to one', - class => 'SL::DB::Language', - column_map => { language_id => 'id' }, - }, ); __PACKAGE__->meta->initialize; @@ -93,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 {