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::InvoiceItem;
 
   7 use parent qw(SL::DB::Object);
 
   9 __PACKAGE__->meta->table('invoice');
 
  11 __PACKAGE__->meta->columns(
 
  12   active_discount_source => { type => 'text', default => '', not_null => 1 },
 
  13   active_price_source    => { type => 'text', default => '', not_null => 1 },
 
  14   allocated              => { type => 'float', precision => 4, scale => 4 },
 
  15   assemblyitem           => { type => 'boolean', default => 'false' },
 
  16   base_qty               => { type => 'float', precision => 4, scale => 4 },
 
  17   cusordnumber           => { type => 'text' },
 
  18   deliverydate           => { type => 'date' },
 
  19   description            => { type => 'text' },
 
  20   discount               => { type => 'float', precision => 4, scale => 4 },
 
  21   donumber               => { type => 'text' },
 
  22   fxsellprice            => { type => 'numeric', precision => 15, scale => 5 },
 
  23   id                     => { type => 'integer', not_null => 1, sequence => 'invoiceid' },
 
  24   itime                  => { type => 'timestamp', default => 'now()' },
 
  25   lastcost               => { type => 'numeric', precision => 15, scale => 5 },
 
  26   longdescription        => { type => 'text' },
 
  27   marge_percent          => { type => 'numeric', precision => 15, scale => 5 },
 
  28   marge_price_factor     => { type => 'numeric', default => 1, precision => 15, scale => 5 },
 
  29   marge_total            => { type => 'numeric', precision => 15, scale => 5 },
 
  30   mtime                  => { type => 'timestamp' },
 
  31   ordnumber              => { type => 'text' },
 
  32   parts_id               => { type => 'integer' },
 
  33   position               => { type => 'integer', not_null => 1 },
 
  34   price_factor           => { type => 'numeric', default => 1, precision => 15, scale => 5 },
 
  35   price_factor_id        => { type => 'integer' },
 
  36   pricegroup_id          => { type => 'integer' },
 
  37   project_id             => { type => 'integer' },
 
  38   qty                    => { type => 'numeric', precision => 25, scale => 5 },
 
  39   sellprice              => { type => 'numeric', precision => 15, scale => 5 },
 
  40   serialnumber           => { type => 'text' },
 
  41   subtotal               => { type => 'boolean', default => 'false' },
 
  42   trans_id               => { type => 'integer' },
 
  43   transdate              => { type => 'text' },
 
  44   unit                   => { type => 'varchar', length => 20 },
 
  47 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
 
  49 __PACKAGE__->meta->allow_inline_column_values(1);
 
  51 __PACKAGE__->meta->foreign_keys(
 
  53     class       => 'SL::DB::Part',
 
  54     key_columns => { parts_id => 'id' },
 
  58     class       => 'SL::DB::PriceFactor',
 
  59     key_columns => { price_factor_id => 'id' },
 
  63     class       => 'SL::DB::Pricegroup',
 
  64     key_columns => { pricegroup_id => 'id' },
 
  68     class       => 'SL::DB::Project',
 
  69     key_columns => { project_id => 'id' },
 
  73     class       => 'SL::DB::Unit',
 
  74     key_columns => { unit => 'name' },