From: Sven Schöling Date: Tue, 25 Jun 2013 09:39:20 +0000 (+0200) Subject: MetaSetup update für gl aus add_fk_to_gl.sql X-Git-Tag: release-3.1.0beta1~268 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=36bbcb55bea77b0795e2592abd51a454dcbe838e;p=kivitendo-erp.git MetaSetup update für gl aus add_fk_to_gl.sql --- diff --git a/SL/DB/MetaSetup/GLTransaction.pm b/SL/DB/MetaSetup/GLTransaction.pm index a7d25f7bf..da1990162 100644 --- a/SL/DB/MetaSetup/GLTransaction.pm +++ b/SL/DB/MetaSetup/GLTransaction.pm @@ -17,7 +17,7 @@ __PACKAGE__->meta->setup( gldate => { type => 'date', default => 'now' }, employee_id => { type => 'integer' }, notes => { type => 'text' }, - department_id => { type => 'integer', default => '0' }, + department_id => { type => 'integer' }, taxincluded => { type => 'boolean' }, itime => { type => 'timestamp', default => 'now()' }, mtime => { type => 'timestamp' }, @@ -33,6 +33,11 @@ __PACKAGE__->meta->setup( allow_inline_column_values => 1, foreign_keys => [ + department => { + class => 'SL::DB::Department', + key_columns => { department_id => 'id' }, + }, + storno_obj => { class => 'SL::DB::GLTransaction', key_columns => { storno_id => 'id' },