Merge branch 'master' into dev
[kivitendo-erp.git] / SL / DB / MetaSetup / AccTransaction.pm
index 649b464..db89491 100644 (file)
@@ -26,12 +26,12 @@ __PACKAGE__->meta->setup(
     taxkey         => { type => 'integer' },
     itime          => { type => 'timestamp', default => 'now()' },
     mtime          => { type => 'timestamp' },
+    tax_id         => { type => 'integer', not_null => 1 },
+    chart_link     => { type => 'text', not_null => 1 },
   ],
 
   primary_key_columns => [ 'acc_trans_id' ],
 
-  allow_inline_column_values => 1,
-
   foreign_keys => [
     chart => {
       class       => 'SL::DB::Chart',
@@ -42,6 +42,11 @@ __PACKAGE__->meta->setup(
       class       => 'SL::DB::Project',
       key_columns => { project_id => 'id' },
     },
+
+    tax => {
+      class       => 'SL::DB::Tax',
+      key_columns => { tax_id => 'id' },
+    },
   ],
 );