X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FDunningConfig.pm;h=e7378646fafca6be8534253ae455d639045c3489;hb=0c564932ee0502911972f31f33a6041cfab5e98b;hp=c6702657e76288d9820f2170b44ce35b5b0307bc;hpb=4fd22b569d4436293e0a9d364d7356b5bfc503e5;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/DunningConfig.pm b/SL/DB/MetaSetup/DunningConfig.pm index c6702657e..e7378646f 100644 --- a/SL/DB/MetaSetup/DunningConfig.pm +++ b/SL/DB/MetaSetup/DunningConfig.pm @@ -4,31 +4,30 @@ package SL::DB::DunningConfig; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); -__PACKAGE__->meta->setup( - table => 'dunning_config', +__PACKAGE__->meta->table('dunning_config'); - columns => [ - id => { type => 'integer', not_null => 1, sequence => 'id' }, - dunning_level => { type => 'integer' }, - dunning_description => { type => 'text' }, - active => { type => 'boolean' }, - auto => { type => 'boolean' }, - email => { type => 'boolean' }, - terms => { type => 'integer' }, - payment_terms => { type => 'integer' }, - fee => { type => 'numeric', precision => 5, scale => 15 }, - interest_rate => { type => 'numeric', precision => 5, scale => 15 }, - email_body => { type => 'text' }, - email_subject => { type => 'text' }, - email_attachment => { type => 'boolean' }, - template => { type => 'text' }, - create_invoices_for_fees => { type => 'boolean', default => 'true' }, - ], - - primary_key_columns => [ 'id' ], +__PACKAGE__->meta->columns( + active => { type => 'boolean' }, + auto => { type => 'boolean' }, + create_invoices_for_fees => { type => 'boolean', default => 'true' }, + dunning_description => { type => 'text' }, + dunning_level => { type => 'integer' }, + email => { type => 'boolean' }, + email_attachment => { type => 'boolean' }, + email_body => { type => 'text' }, + email_subject => { type => 'text' }, + fee => { type => 'numeric', precision => 15, scale => 5 }, + id => { type => 'integer', not_null => 1, sequence => 'id' }, + interest_rate => { type => 'numeric', precision => 15, scale => 5 }, + payment_terms => { type => 'integer' }, + print_original_invoice => { type => 'boolean' }, + template => { type => 'text' }, + terms => { type => 'integer' }, ); +__PACKAGE__->meta->primary_key_columns([ 'id' ]); + 1; ;