X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FDB%2FMetaSetup%2FPeriodicInvoice.pm;h=3e6f1eabcc64eed4aaf3cba542089d7dfae5b0c1;hb=300dc61894ebcb800a69eae3e81195d3c337747d;hp=11822c1c7aa3f4a4c41215276ba9cab44cee7375;hpb=b8b112a39bd601b0bc717646d78de470631da22a;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/PeriodicInvoice.pm b/SL/DB/MetaSetup/PeriodicInvoice.pm index 11822c1c7..3e6f1eabc 100644 --- a/SL/DB/MetaSetup/PeriodicInvoice.pm +++ b/SL/DB/MetaSetup/PeriodicInvoice.pm @@ -9,11 +9,11 @@ use base qw(SL::DB::Object); __PACKAGE__->meta->table('periodic_invoices'); __PACKAGE__->meta->columns( - id => { type => 'integer', not_null => 1, sequence => 'id' }, - config_id => { type => 'integer', not_null => 1 }, ar_id => { type => 'integer', not_null => 1 }, - period_start_date => { type => 'date', not_null => 1 }, + config_id => { type => 'integer', not_null => 1 }, + id => { type => 'integer', not_null => 1, sequence => 'id' }, itime => { type => 'timestamp', default => 'now()' }, + period_start_date => { type => 'date', not_null => 1 }, ); __PACKAGE__->meta->primary_key_columns([ 'id' ]); @@ -25,9 +25,12 @@ __PACKAGE__->meta->foreign_keys( class => 'SL::DB::Invoice', key_columns => { ar_id => 'id' }, }, -); -# __PACKAGE__->meta->initialize; + config => { + class => 'SL::DB::PeriodicInvoicesConfig', + key_columns => { config_id => 'id' }, + }, +); 1; ;