1 # This file has been auto-generated. Do not modify it; it will be overwritten
 
   2 # by rose_auto_create_model.pl automatically.
 
   3 package SL::DB::DeliveryOrder;
 
   7 use base qw(SL::DB::Object);
 
   9 __PACKAGE__->meta->setup(
 
  10   table   => 'delivery_orders',
 
  13     id                      => { type => 'integer', not_null => 1, sequence => 'id' },
 
  14     donumber                => { type => 'text', not_null => 1 },
 
  15     ordnumber               => { type => 'text' },
 
  16     transdate               => { type => 'date', default => 'now()' },
 
  17     vendor_id               => { type => 'integer' },
 
  18     customer_id             => { type => 'integer' },
 
  19     reqdate                 => { type => 'date' },
 
  20     shippingpoint           => { type => 'text' },
 
  21     notes                   => { type => 'text' },
 
  22     intnotes                => { type => 'text' },
 
  23     employee_id             => { type => 'integer' },
 
  24     closed                  => { type => 'boolean', default => 'false' },
 
  25     delivered               => { type => 'boolean', default => 'false' },
 
  26     cusordnumber            => { type => 'text' },
 
  27     oreqnumber              => { type => 'text' },
 
  28     department_id           => { type => 'integer' },
 
  29     shipvia                 => { type => 'text' },
 
  30     cp_id                   => { type => 'integer' },
 
  31     language_id             => { type => 'integer' },
 
  32     shipto_id               => { type => 'integer' },
 
  33     globalproject_id        => { type => 'integer' },
 
  34     salesman_id             => { type => 'integer' },
 
  35     transaction_description => { type => 'text' },
 
  36     is_sales                => { type => 'boolean' },
 
  37     itime                   => { type => 'timestamp', default => 'now()' },
 
  38     mtime                   => { type => 'timestamp' },
 
  39     taxzone_id              => { type => 'integer' },
 
  40     taxincluded             => { type => 'boolean' },
 
  41     terms                   => { type => 'integer' },
 
  42     curr                    => { type => 'text' },
 
  45   primary_key_columns => [ 'id' ],
 
  47   allow_inline_column_values => 1,
 
  51       class       => 'SL::DB::Contact',
 
  52       key_columns => { cp_id => 'cp_id' },
 
  56       class       => 'SL::DB::Customer',
 
  57       key_columns => { customer_id => 'id' },
 
  61       class       => 'SL::DB::Employee',
 
  62       key_columns => { employee_id => 'id' },
 
  66       class       => 'SL::DB::Project',
 
  67       key_columns => { globalproject_id => 'id' },
 
  71       class       => 'SL::DB::Language',
 
  72       key_columns => { language_id => 'id' },
 
  76       class       => 'SL::DB::Employee',
 
  77       key_columns => { salesman_id => 'id' },
 
  81       class       => 'SL::DB::Vendor',
 
  82       key_columns => { vendor_id => 'id' },