X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FBusiness.pm;h=64adf69ceb7600339e654c2dd6cd52f67e3c34c2;hb=9b92c0c6d139606ffbeee21abff016acb019cca1;hp=d04b2bc052fbfd68925952b3d09bbe2d10831451;hpb=b8b112a39bd601b0bc717646d78de470631da22a;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/Business.pm b/SL/DB/MetaSetup/Business.pm index d04b2bc05..64adf69ce 100644 --- a/SL/DB/MetaSetup/Business.pm +++ b/SL/DB/MetaSetup/Business.pm @@ -4,25 +4,23 @@ package SL::DB::Business; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); __PACKAGE__->meta->table('business'); __PACKAGE__->meta->columns( - id => { type => 'integer', not_null => 1, sequence => 'id' }, - description => { type => 'text' }, - discount => { type => 'float', precision => 4 }, customernumberinit => { type => 'text' }, - salesman => { type => 'boolean', default => 'false' }, + description => { type => 'text' }, + discount => { type => 'float', scale => 4 }, + id => { type => 'integer', not_null => 1, sequence => 'id' }, itime => { type => 'timestamp', default => 'now()' }, mtime => { type => 'timestamp' }, + salesman => { type => 'boolean', default => 'false' }, ); __PACKAGE__->meta->primary_key_columns([ 'id' ]); __PACKAGE__->meta->allow_inline_column_values(1); -# __PACKAGE__->meta->initialize; - 1; ;