X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/89c9ff022d3f13e27ba6bda085df15707fcfb0eb..03ff37cb621e68f7d224d2520099ee86f612f833:/SL/DB/PurchaseInvoice.pm 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;