projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c75d178
)
Invoice-Model: Verknüpfung zu Stornorechnungen "storno_invoices"
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Thu, 31 Jan 2013 11:31:45 +0000
(12:31 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Fri, 1 Feb 2013 12:39:10 +0000
(13:39 +0100)
Rechnungen, die $self storniert haben -- sprich User war in $self und
hat dort auf "Storno" gedrückt.
SL/DB/Invoice.pm
patch
|
blob
|
history
diff --git
a/SL/DB/Invoice.pm
b/SL/DB/Invoice.pm
index
b164c03
..
516352e
100644
(file)
--- 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;