From 1d0a5eeee10af9d35aeb7ace87c09ab4e05758c5 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 31 Jan 2013 12:31:45 +0100 Subject: [PATCH] =?utf8?q?Invoice-Model:=20Verkn=C3=BCpfung=20zu=20Stornor?= =?utf8?q?echnungen=20"storno=5Finvoices"?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Rechnungen, die $self storniert haben -- sprich User war in $self und hat dort auf "Storno" gedrückt. --- SL/DB/Invoice.pm | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.20.1