X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FGLTransaction.pm;fp=SL%2FDB%2FMetaSetup%2FGLTransaction.pm;h=da199016281fc8df5d22dae761e05aa87120a969;hb=36bbcb55bea77b0795e2592abd51a454dcbe838e;hp=a7d25f7bf9755fa29b16e851c346bb649f941d82;hpb=3bc9f2e20fb338ebf28e0bf9e1f17c7ee29213de;p=kivitendo-erp.git 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' },