]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/DB/MetaSetup/Business.pm
Verkauf/Rechnungen/Massenerstellung: keine Zahlungsbedingungen
[kivitendo-erp.git] / SL / DB / MetaSetup / Business.pm
index d04b2bc052fbfd68925952b3d09bbe2d10831451..64adf69ceb7600339e654c2dd6cd52f67e3c34c2 100644 (file)
@@ -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;
 ;