X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/9f5bccd896bc0684521e270ec9a158dba097aa99..aa1a40e9141fd718e85e6e92f78adf301f53cf1f:/SL/DB/MetaSetup/Default.pm diff --git a/SL/DB/MetaSetup/Default.pm b/SL/DB/MetaSetup/Default.pm index d6b6b8458..cbacbf4ee 100644 --- a/SL/DB/MetaSetup/Default.pm +++ b/SL/DB/MetaSetup/Default.pm @@ -70,26 +70,42 @@ __PACKAGE__->meta->setup( warehouse_id => { type => 'integer' }, bin_id => { type => 'integer' }, currency_id => { type => 'integer', not_null => 1 }, - ], + show_weight => { type => 'boolean', default => 'false', not_null => 1 }, + transfer_default => { type => 'boolean', default => 'true' }, + transfer_default_use_master_default_bin => { type => 'boolean', default => 'false' }, + transfer_default_ignore_onhand => { type => 'boolean', default => 'false' }, + warehouse_id_ignore_onhand => { type => 'integer' }, + bin_id_ignore_onhand => { type => 'integer' }, + ], primary_key_columns => [ 'id' ], allow_inline_column_values => 1, - foreign_keys => [ bin => { class => 'SL::DB::Bin', key_columns => { bin_id => 'id' }, }, - warehouse => { - class => 'SL::DB::Warehouse', - key_columns => { warehouse_id => 'id' }, + bin_obj => { + class => 'SL::DB::Bin', + key_columns => { bin_id_ignore_onhand => 'id' }, }, + currency => { class => 'SL::DB::Currency', key_columns => { currency_id => 'id' }, }, + + warehouse => { + class => 'SL::DB::Warehouse', + key_columns => { warehouse_id => 'id' }, + }, + + warehouse_obj => { + class => 'SL::DB::Warehouse', + key_columns => { warehouse_id_ignore_onhand => 'id' }, + }, ], );