X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FPaymentTerm.pm;h=eb7647113be905b559638ca33cc6618cc7bf0c36;hb=79dc6c16897945652994f9d2d354f1d6477d81a6;hp=83bd6d289d4b1c5c88c14de1246d1fce3e557d31;hpb=4bcf880408fcc4270084f36520d4fd2cfd509fbc;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/PaymentTerm.pm b/SL/DB/MetaSetup/PaymentTerm.pm index 83bd6d289..eb7647113 100644 --- a/SL/DB/MetaSetup/PaymentTerm.pm +++ b/SL/DB/MetaSetup/PaymentTerm.pm @@ -4,28 +4,29 @@ package SL::DB::PaymentTerm; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); __PACKAGE__->meta->table('payment_terms'); __PACKAGE__->meta->columns( - id => { type => 'integer', not_null => 1, sequence => 'id' }, - description => { type => 'text' }, - description_long => { type => 'text' }, - terms_netto => { type => 'integer' }, - terms_skonto => { type => 'integer' }, - percent_skonto => { type => 'float', precision => 4 }, - itime => { type => 'timestamp', default => 'now()' }, - mtime => { type => 'timestamp' }, - ranking => { type => 'integer' }, - sortkey => { type => 'integer', not_null => 1 }, + auto_calculation => { type => 'boolean', not_null => 1 }, + description => { type => 'text' }, + description_long => { type => 'text' }, + description_long_invoice => { type => 'text' }, + id => { type => 'integer', not_null => 1, sequence => 'id' }, + itime => { type => 'timestamp', default => 'now()' }, + mtime => { type => 'timestamp' }, + obsolete => { type => 'boolean', default => 'false' }, + percent_skonto => { type => 'float', scale => 4 }, + ranking => { type => 'integer' }, + sortkey => { type => 'integer', not_null => 1 }, + terms_netto => { type => 'integer' }, + terms_skonto => { type => 'integer' }, ); __PACKAGE__->meta->primary_key_columns([ 'id' ]); __PACKAGE__->meta->allow_inline_column_values(1); -# __PACKAGE__->meta->initialize; - 1; ;