X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/b8b112a39bd601b0bc717646d78de470631da22a..ada964d139eb652502bbdec96adf8634e49d8872:/SL/DB/MetaSetup/PeriodicInvoicesConfig.pm?ds=inline diff --git a/SL/DB/MetaSetup/PeriodicInvoicesConfig.pm b/SL/DB/MetaSetup/PeriodicInvoicesConfig.pm index 414918a64..e914a6449 100644 --- a/SL/DB/MetaSetup/PeriodicInvoicesConfig.pm +++ b/SL/DB/MetaSetup/PeriodicInvoicesConfig.pm @@ -9,18 +9,18 @@ use base qw(SL::DB::Object); __PACKAGE__->meta->table('periodic_invoices_configs'); __PACKAGE__->meta->columns( + active => { type => 'boolean', default => 'true' }, + ar_chart_id => { type => 'integer', not_null => 1 }, + copies => { type => 'integer' }, + end_date => { type => 'date' }, + extend_automatically_by => { type => 'integer' }, id => { type => 'integer', not_null => 1, sequence => 'id' }, oe_id => { type => 'integer', not_null => 1 }, periodicity => { type => 'varchar', length => 10, not_null => 1 }, print => { type => 'boolean', default => 'false' }, printer_id => { type => 'integer' }, - copies => { type => 'integer' }, - active => { type => 'boolean', default => 'true' }, - terminated => { type => 'boolean', default => 'false' }, start_date => { type => 'date' }, - end_date => { type => 'date' }, - ar_chart_id => { type => 'integer', not_null => 1 }, - extend_automatically_by => { type => 'integer' }, + terminated => { type => 'boolean', default => 'false' }, ); __PACKAGE__->meta->primary_key_columns([ 'id' ]); @@ -31,22 +31,16 @@ __PACKAGE__->meta->foreign_keys( key_columns => { ar_chart_id => 'id' }, }, - oe => { + order => { class => 'SL::DB::Order', key_columns => { oe_id => 'id' }, }, -); -__PACKAGE__->meta->relationships( - ars => { - map_class => 'SL::DB::PeriodicInvoice', - map_from => 'config', - map_to => 'ar', - type => 'many to many', + printer => { + class => 'SL::DB::Printer', + key_columns => { printer_id => 'id' }, }, ); -# __PACKAGE__->meta->initialize; - 1; ;