From: Sven Schöling Date: Mon, 23 Jun 2014 11:25:36 +0000 (+0200) Subject: SL::DB::Invoice: Verknüpfung auf die Buchungsobjekte X-Git-Tag: release-3.2.0beta~411^2~36 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=2aecf487d4afd29f13007b927fec624c2f45d3ce;p=kivitendo-erp.git SL::DB::Invoice: Verknüpfung auf die Buchungsobjekte --- diff --git a/SL/DB/Invoice.pm b/SL/DB/Invoice.pm index 0e9616651..502654ba2 100644 --- a/SL/DB/Invoice.pm +++ b/SL/DB/Invoice.pm @@ -320,6 +320,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__