]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/Invoice.pm
warnings
[mfinanz.git] / SL / DB / Invoice.pm
index f75a6cd65b5013a0918ea7b3a07a622b76a9f9fa..516352e8aea9f9c397b979e9aa6beebda705c909 100644 (file)
@@ -25,17 +25,21 @@ __PACKAGE__->meta->add_relationship(
     class        => 'SL::DB::InvoiceItem',
     column_map   => { id => 'trans_id' },
     manager_args => {
-      with_objects => [ 'parts' ]
+      with_objects => [ 'part' ]
     }
   },
+  storno_invoices => {
+    type          => 'one to many',
+    class         => 'SL::DB::Invoice',
+    column_map    => { id => 'storno_id' },
+  },
 );
 
 __PACKAGE__->meta->initialize;
 
 # methods
 
-sub items        { goto &invoiceitems; }
-sub payment_term { goto &payment;      }
+sub items { goto &invoiceitems; }
 
 sub is_sales {
   # For compatibility with Order, DeliveryOrder