X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/9abe55389f132196df8ed7cf236090dd78ef7061..0395c0364adb8fde7442c6b11ab064e406fd7776:/SL/DB/PurchaseInvoice.pm diff --git a/SL/DB/PurchaseInvoice.pm b/SL/DB/PurchaseInvoice.pm index a54f1bd4c..d5955c57c 100644 --- a/SL/DB/PurchaseInvoice.pm +++ b/SL/DB/PurchaseInvoice.pm @@ -31,6 +31,13 @@ __PACKAGE__->meta->add_relationship( column_map => { id => 'trans_id' }, query_args => [ module => 'AP' ], }, + transactions => { + type => 'one to many', + class => 'SL::DB::AccTransaction', + column_map => { id => 'trans_id' }, + manager_args => { with_objects => [ 'chart' ], + sort_by => 'acc_trans_id ASC' } + }, ); __PACKAGE__->meta->initialize;