1 # This file has been auto-generated. Do not modify it; it will be overwritten
 
   2 # by rose_auto_create_model.pl automatically.
 
   7 use parent qw(SL::DB::Object);
 
   9 __PACKAGE__->meta->table('oe');
 
  11 __PACKAGE__->meta->columns(
 
  12   amount                  => { type => 'numeric', precision => 15, scale => 5 },
 
  13   billing_address_id      => { type => 'integer' },
 
  14   closed                  => { type => 'boolean', default => 'false' },
 
  15   cp_id                   => { type => 'integer' },
 
  16   currency_id             => { type => 'integer', not_null => 1 },
 
  17   cusordnumber            => { type => 'text' },
 
  18   customer_id             => { type => 'integer' },
 
  19   delivered               => { type => 'boolean', default => 'false' },
 
  20   delivery_customer_id    => { type => 'integer' },
 
  21   delivery_term_id        => { type => 'integer' },
 
  22   delivery_vendor_id      => { type => 'integer' },
 
  23   department_id           => { type => 'integer' },
 
  24   employee_id             => { type => 'integer' },
 
  25   exchangerate            => { type => 'numeric', precision => 15, scale => 5 },
 
  26   expected_billing_date   => { type => 'date' },
 
  27   globalproject_id        => { type => 'integer' },
 
  28   id                      => { type => 'integer', not_null => 1, sequence => 'id' },
 
  29   intnotes                => { type => 'text' },
 
  30   itime                   => { type => 'timestamp', default => 'now()' },
 
  31   language_id             => { type => 'integer' },
 
  32   marge_percent           => { type => 'numeric', precision => 15, scale => 5 },
 
  33   marge_total             => { type => 'numeric', precision => 15, scale => 5 },
 
  34   mtime                   => { type => 'timestamp' },
 
  35   netamount               => { type => 'numeric', precision => 15, scale => 5 },
 
  36   notes                   => { type => 'text' },
 
  37   order_probability       => { type => 'integer', default => '0', not_null => 1 },
 
  38   ordnumber               => { type => 'text', not_null => 1 },
 
  39   payment_id              => { type => 'integer' },
 
  40   proforma                => { type => 'boolean', default => 'false' },
 
  41   quonumber               => { type => 'text' },
 
  42   quotation               => { type => 'boolean', default => 'false' },
 
  43   reqdate                 => { type => 'date' },
 
  44   salesman_id             => { type => 'integer' },
 
  45   shippingpoint           => { type => 'text' },
 
  46   shipto_id               => { type => 'integer' },
 
  47   shipvia                 => { type => 'text' },
 
  48   tax_point               => { type => 'date' },
 
  49   taxincluded             => { type => 'boolean' },
 
  50   taxzone_id              => { type => 'integer', not_null => 1 },
 
  51   transaction_description => { type => 'text' },
 
  52   transdate               => { type => 'date', default => 'now' },
 
  53   vendor_id               => { type => 'integer' },
 
  56 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
 
  58 __PACKAGE__->meta->allow_inline_column_values(1);
 
  60 __PACKAGE__->meta->foreign_keys(
 
  62     class       => 'SL::DB::AdditionalBillingAddress',
 
  63     key_columns => { billing_address_id => 'id' },
 
  67     class       => 'SL::DB::Contact',
 
  68     key_columns => { cp_id => 'cp_id' },
 
  72     class       => 'SL::DB::Currency',
 
  73     key_columns => { currency_id => 'id' },
 
  77     class       => 'SL::DB::Customer',
 
  78     key_columns => { customer_id => 'id' },
 
  81   delivery_customer => {
 
  82     class       => 'SL::DB::Customer',
 
  83     key_columns => { delivery_customer_id => 'id' },
 
  87     class       => 'SL::DB::DeliveryTerm',
 
  88     key_columns => { delivery_term_id => 'id' },
 
  92     class       => 'SL::DB::Vendor',
 
  93     key_columns => { delivery_vendor_id => 'id' },
 
  97     class       => 'SL::DB::Department',
 
  98     key_columns => { department_id => 'id' },
 
 102     class       => 'SL::DB::Employee',
 
 103     key_columns => { employee_id => 'id' },
 
 107     class       => 'SL::DB::Project',
 
 108     key_columns => { globalproject_id => 'id' },
 
 112     class       => 'SL::DB::Language',
 
 113     key_columns => { language_id => 'id' },
 
 117     class       => 'SL::DB::PaymentTerm',
 
 118     key_columns => { payment_id => 'id' },
 
 122     class       => 'SL::DB::Employee',
 
 123     key_columns => { salesman_id => 'id' },
 
 127     class       => 'SL::DB::Shipto',
 
 128     key_columns => { shipto_id => 'shipto_id' },
 
 132     class       => 'SL::DB::TaxZone',
 
 133     key_columns => { taxzone_id => 'id' },
 
 137     class       => 'SL::DB::Vendor',
 
 138     key_columns => { vendor_id => 'id' },