From: Moritz Bunkus Date: Tue, 30 Apr 2013 12:43:43 +0000 (+0200) Subject: Relationships 'sepa_export_items' in Invoice & PurchaseInvoice X-Git-Tag: release-3.1.0beta1~442 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=fc1490e86f04bef1712a767ff53b4293abdb5aaf;p=kivitendo-erp.git Relationships 'sepa_export_items' in Invoice & PurchaseInvoice --- diff --git a/SL/DB/Invoice.pm b/SL/DB/Invoice.pm index 0d21ef8b2..09c7f86e7 100644 --- a/SL/DB/Invoice.pm +++ b/SL/DB/Invoice.pm @@ -33,6 +33,12 @@ __PACKAGE__->meta->add_relationship( class => 'SL::DB::Invoice', column_map => { id => 'storno_id' }, }, + sepa_export_items => { + type => 'one to many', + class => 'SL::DB::SepaExportItem', + column_map => { id => 'ar_id' }, + manager_args => { with_objects => [ 'sepa_export' ] } + }, ); __PACKAGE__->meta->initialize; diff --git a/SL/DB/PurchaseInvoice.pm b/SL/DB/PurchaseInvoice.pm index 42285335a..f74ee19e1 100644 --- a/SL/DB/PurchaseInvoice.pm +++ b/SL/DB/PurchaseInvoice.pm @@ -17,6 +17,12 @@ __PACKAGE__->meta->add_relationship( column_map => { id => 'trans_id' }, manager_args => { with_objects => [ 'part' ] } }, + sepa_export_items => { + type => 'one to many', + class => 'SL::DB::SepaExportItem', + column_map => { id => 'ap_id' }, + manager_args => { with_objects => [ 'sepa_export' ] } + }, ); __PACKAGE__->meta->initialize;