]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/Invoice.pm
Funktion 'is_sales' in SL::DB::{Invoice,PurchaseInvoice}
[mfinanz.git] / SL / DB / Invoice.pm
index b3adee7349244f260e85f5d340289ff77fe65c5a..f75a6cd65b5013a0918ea7b3a07a622b76a9f9fa 100644 (file)
@@ -37,6 +37,12 @@ __PACKAGE__->meta->initialize;
 sub items        { goto &invoiceitems; }
 sub payment_term { goto &payment;      }
 
+sub is_sales {
+  # For compatibility with Order, DeliveryOrder
+  croak 'not an accessor' if @_ > 1;
+  return 1;
+}
+
 # it is assumed, that ordnumbers are unique here.
 sub first_order_by_ordnumber {
   my $self = shift;