weightunit => { type => 'varchar', length => 5 },
businessnumber => { type => 'text' },
version => { type => 'varchar', length => 8 },
- curr => { type => 'text' },
closedto => { type => 'date' },
revtrans => { type => 'boolean', default => 'false' },
ponumber => { type => 'text' },
assemblynumber => { type => 'text' },
warehouse_id => { type => 'integer' },
bin_id => { type => 'integer' },
+ currency_id => { type => 'integer', not_null => 1 },
],
primary_key_columns => [ 'id' ],
+ allow_inline_column_values => 1,
+
foreign_keys => [
bin => {
class => 'SL::DB::Bin',
warehouse => {
class => 'SL::DB::Warehouse',
key_columns => { warehouse_id => 'id' },
+
+ currency => {
+ class => 'SL::DB::Currency',
+ key_columns => { currency_id => 'id' },
},
],
);