]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/Invoice.pm
Email: Kosmetik
[mfinanz.git] / SL / DB / Invoice.pm
index 0e9616651530f3243daae5e105f3294aef0a0bb4..f0f3d0a1d0ca1948bb042bd7b959f56ab2b51862 100644 (file)
@@ -63,6 +63,7 @@ sub _before_save_set_invnumber {
 # methods
 
 sub items { goto &invoiceitems; }
+sub add_items { goto &add_invoiceitems; }
 
 sub items_sorted {
   my ($self) = @_;
@@ -320,6 +321,15 @@ sub date {
   goto &transdate;
 }
 
+sub transactions {
+  my ($self) = @_;
+
+  return unless $self->id;
+
+  require SL::DB::AccTransaction;
+  SL::DB::Manager::AccTransaction->get_all(query => [ trans_id => $self->id ]);
+}
+
 1;
 
 __END__