From: Moritz Bunkus Date: Thu, 31 Jan 2013 11:31:45 +0000 (+0100) Subject: Invoice-Model: Verknüpfung zu Stornorechnungen "storno_invoices" X-Git-Tag: release-3.1.0beta1~654 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=1d0a5eeee10af9d35aeb7ace87c09ab4e05758c5;p=kivitendo-erp.git Invoice-Model: Verknüpfung zu Stornorechnungen "storno_invoices" Rechnungen, die $self storniert haben -- sprich User war in $self und hat dort auf "Storno" gedrückt. --- diff --git a/SL/DB/Invoice.pm b/SL/DB/Invoice.pm index b164c0351..516352e8a 100644 --- a/SL/DB/Invoice.pm +++ b/SL/DB/Invoice.pm @@ -28,6 +28,11 @@ __PACKAGE__->meta->add_relationship( with_objects => [ 'part' ] } }, + storno_invoices => { + type => 'one to many', + class => 'SL::DB::Invoice', + column_map => { id => 'storno_id' }, + }, ); __PACKAGE__->meta->initialize;