X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FDunningConfig.pm;h=ef4c594295ad527893002f8c7b6a350912bdaec6;hb=660c7e5312f7fae7766b731f7001e5e8197c6887;hp=602ae8ea5ba4a72fd211a8e6a8388e2c3c2f3f99;hpb=b8b112a39bd601b0bc717646d78de470631da22a;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/DunningConfig.pm b/SL/DB/MetaSetup/DunningConfig.pm index 602ae8ea5..ef4c59429 100644 --- a/SL/DB/MetaSetup/DunningConfig.pm +++ b/SL/DB/MetaSetup/DunningConfig.pm @@ -4,45 +4,29 @@ package SL::DB::DunningConfig; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); __PACKAGE__->meta->table('dunning_config'); __PACKAGE__->meta->columns( - id => { type => 'integer', not_null => 1, sequence => 'id' }, - dunning_level => { type => 'integer' }, - dunning_description => { type => 'text' }, 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' }, - terms => { type => 'integer' }, - payment_terms => { type => 'integer' }, - fee => { type => 'numeric', precision => 5, scale => 15 }, - interest_rate => { type => 'numeric', precision => 5, scale => 15 }, + email_attachment => { type => 'boolean' }, email_body => { type => 'text' }, email_subject => { type => 'text' }, - email_attachment => { type => 'boolean' }, + 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' }, template => { type => 'text' }, - create_invoices_for_fees => { type => 'boolean', default => 'true' }, + terms => { type => 'integer' }, ); __PACKAGE__->meta->primary_key_columns([ 'id' ]); -__PACKAGE__->meta->relationships( - ar => { - class => 'SL::DB::Invoice', - column_map => { id => 'dunning_config_id' }, - type => 'one to many', - }, - - dunning => { - class => 'SL::DB::Dunning', - column_map => { id => 'dunning_config_id' }, - type => 'one to many', - }, -); - -# __PACKAGE__->meta->initialize; - 1; ;