signature => { type => 'text' },
sonumber => { type => 'text' },
sqnumber => { type => 'text' },
+ stocktaking_bin_id => { type => 'integer' },
+ stocktaking_cutoff_date => { type => 'date' },
+ stocktaking_warehouse_id => { type => 'integer' },
taxnumber => { type => 'text' },
templates => { type => 'text' },
transfer_default => { type => 'boolean', default => 'true' },
key_columns => { requirement_spec_section_order_part_id => 'id' },
},
+ stocktaking_bin => {
+ class => 'SL::DB::Bin',
+ key_columns => { stocktaking_bin_id => 'id' },
+ },
+
+ stocktaking_warehouse => {
+ class => 'SL::DB::Warehouse',
+ key_columns => { stocktaking_warehouse_id => 'id' },
+ },
+
warehouse => {
class => 'SL::DB::Warehouse',
key_columns => { warehouse_id => 'id' },
--- /dev/null
+-- @tag: add_stocktaking_preselects_client_config_default
+-- @description: Konfigurations-Optionen für Vorbelegungen zur Inventur
+-- @depends: warehouse
+ALTER TABLE defaults ADD COLUMN stocktaking_warehouse_id INTEGER REFERENCES warehouse(id);
+ALTER TABLE defaults ADD COLUMN stocktaking_bin_id INTEGER REFERENCES bin(id);
+ALTER TABLE defaults ADD COLUMN stocktaking_cutoff_date DATE;