]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/Invoice.pm
posaune
[mfinanz.git] / SL / DB / Invoice.pm
index 8bfc918e83bc6bb239ffd58cf2b1823c138f7327..239280b2a27db8e38338cb0074a3760af38d0bc9 100644 (file)
@@ -77,6 +77,7 @@ sub _before_save_set_invnumber {
 
 sub items { goto &invoiceitems; }
 sub add_items { goto &add_invoiceitems; }
+sub record_number { goto &invnumber; };
 
 sub is_sales {
   # For compatibility with Order, DeliveryOrder
@@ -336,6 +337,10 @@ sub displayable_type {
   return t8('Invoice');
 }
 
+sub displayable_name {
+  join ' ', grep $_, map $_[0]->$_, qw(displayable_type record_number);
+};
+
 sub abbreviation {
   my ($self) = @_;