X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FPeriodicInvoicesConfig.pm;h=e914a6449650302c8de2012fc0282d741620d87e;hb=53fcb212544cf90957c5e6a3b3a1a36af395b273;hp=2beb87ab01749cf3668553c20d51e0dac56112e2;hpb=4bcf880408fcc4270084f36520d4fd2cfd509fbc;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/PeriodicInvoicesConfig.pm b/SL/DB/MetaSetup/PeriodicInvoicesConfig.pm index 2beb87ab0..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,7 +31,7 @@ __PACKAGE__->meta->foreign_keys( key_columns => { ar_chart_id => 'id' }, }, - oe => { + order => { class => 'SL::DB::Order', key_columns => { oe_id => 'id' }, }, @@ -42,7 +42,5 @@ __PACKAGE__->meta->foreign_keys( }, ); -# __PACKAGE__->meta->initialize; - 1; ;