Ein-/Verkauf: Belegnummern von uns erzeugter Belege nicht ändern können
[kivitendo-erp.git] / SL / DB / MetaSetup / GLTransaction.pm
index db03441..80c7e85 100644 (file)
@@ -4,17 +4,19 @@ package SL::DB::GLTransaction;
 
 use strict;
 
-use base qw(SL::DB::Object);
+use parent qw(SL::DB::Object);
 
 __PACKAGE__->meta->table('gl');
 
 __PACKAGE__->meta->columns(
   cb_transaction => { type => 'boolean' },
+  deliverydate   => { type => 'date' },
   department_id  => { type => 'integer' },
   description    => { type => 'text' },
   employee_id    => { type => 'integer' },
   gldate         => { type => 'date', default => 'now' },
   id             => { type => 'integer', not_null => 1, sequence => 'glid' },
+  imported       => { type => 'boolean', default => 'false' },
   itime          => { type => 'timestamp', default => 'now()' },
   mtime          => { type => 'timestamp' },
   notes          => { type => 'text' },
@@ -22,6 +24,7 @@ __PACKAGE__->meta->columns(
   reference      => { type => 'text' },
   storno         => { type => 'boolean', default => 'false' },
   storno_id      => { type => 'integer' },
+  tax_point      => { type => 'date' },
   taxincluded    => { type => 'boolean' },
   transdate      => { type => 'date', default => 'now' },
   type           => { type => 'text' },
@@ -42,11 +45,6 @@ __PACKAGE__->meta->foreign_keys(
     key_columns => { employee_id => 'id' },
   },
 
-  employee_obj => {
-    class       => 'SL::DB::Employee',
-    key_columns => { employee_id => 'id' },
-  },
-
   storno_obj => {
     class       => 'SL::DB::GLTransaction',
     key_columns => { storno_id => 'id' },