X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/82515b2d93dc5632f24d6e0b6f8f05f3fd19fbb0..6fd01c3dd7476e488515f60da87e9c35063f6cc9:/SL/DB/Order.pm diff --git a/SL/DB/Order.pm b/SL/DB/Order.pm index 309b5061f..8d321661d 100644 --- a/SL/DB/Order.pm +++ b/SL/DB/Order.pm @@ -1,5 +1,6 @@ package SL::DB::Order; +use utf8; use strict; use SL::RecordLinks; @@ -8,9 +9,6 @@ use SL::DB::MetaSetup::Order; use SL::DB::Manager::Order; use SL::DB::Invoice; -__PACKAGE__->attr_number($_, places => -2) for qw(amount netamount marge_total marge_percent); -__PACKAGE__->attr_date($_) for qw(transdate reqdate); - __PACKAGE__->meta->add_relationship( orderitems => { type => 'one to many', @@ -19,7 +17,17 @@ __PACKAGE__->meta->add_relationship( manager_args => { with_objects => [ 'part' ] } - } + }, + periodic_invoices_config => { + type => 'one to one', + class => 'SL::DB::PeriodicInvoicesConfig', + column_map => { id => 'oe_id' }, + }, + periodic_invoices => { + type => 'one to many', + class => 'SL::DB::PeriodicInvoice', + column_map => { id => 'oe_id' }, + }, ); __PACKAGE__->meta->initialize; @@ -101,6 +109,6 @@ Nothing here yet. =head1 AUTHOR - Sven Schöling +Sven Schöling =cut