X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FDB%2FPurchaseInvoice.pm;h=da34a27b8a496d8abd30f891bc913532d0c4af8d;hb=91c1ec0e564107fc9c99d4938f6f7831c43ce27d;hp=5123d681ec2ba93ad0783a4eb21ce396e2915cbe;hpb=f9c7abfae65b79945beb7e9260942bc94876248a;p=kivitendo-erp.git diff --git a/SL/DB/PurchaseInvoice.pm b/SL/DB/PurchaseInvoice.pm index 5123d681e..da34a27b8 100644 --- a/SL/DB/PurchaseInvoice.pm +++ b/SL/DB/PurchaseInvoice.pm @@ -2,6 +2,8 @@ package SL::DB::PurchaseInvoice; use strict; +use Carp; + use SL::DB::MetaSetup::PurchaseInvoice; use SL::DB::Manager::PurchaseInvoice; use SL::DB::Helper::LinkedRecords; @@ -19,4 +21,10 @@ __PACKAGE__->meta->initialize; sub items { goto &invoiceitems; } +sub is_sales { + # For compatibility with Order, DeliveryOrder + croak 'not an accessor' if @_ > 1; + return 0; +} + 1;