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::PurchaseInvoice;
 
   7 use base qw(SL::DB::Object);
 
   9 __PACKAGE__->meta->setup(
 
  13     id                      => { type => 'integer', not_null => 1, sequence => 'glid' },
 
  14     invnumber               => { type => 'text', not_null => 1 },
 
  15     transdate               => { type => 'date', default => 'now' },
 
  16     gldate                  => { type => 'date', default => 'now' },
 
  17     vendor_id               => { type => 'integer' },
 
  18     taxincluded             => { type => 'boolean', default => 'false' },
 
  19     amount                  => { type => 'numeric', precision => 5, scale => 15 },
 
  20     netamount               => { type => 'numeric', precision => 5, scale => 15 },
 
  21     paid                    => { type => 'numeric', precision => 5, scale => 15 },
 
  22     datepaid                => { type => 'date' },
 
  23     duedate                 => { type => 'date' },
 
  24     invoice                 => { type => 'boolean', default => 'false' },
 
  25     ordnumber               => { type => 'text' },
 
  26     curr                    => { type => 'character', length => 3 },
 
  27     notes                   => { type => 'text' },
 
  28     employee_id             => { type => 'integer' },
 
  29     quonumber               => { type => 'text' },
 
  30     intnotes                => { type => 'text' },
 
  31     department_id           => { type => 'integer', default => '0' },
 
  32     itime                   => { type => 'timestamp', default => 'now()' },
 
  33     mtime                   => { type => 'timestamp' },
 
  34     shipvia                 => { type => 'text' },
 
  35     cp_id                   => { type => 'integer' },
 
  36     language_id             => { type => 'integer' },
 
  37     payment_id              => { type => 'integer' },
 
  38     storno                  => { type => 'boolean', default => 'false' },
 
  39     taxzone_id              => { type => 'integer' },
 
  40     type                    => { type => 'text' },
 
  41     orddate                 => { type => 'date' },
 
  42     quodate                 => { type => 'date' },
 
  43     globalproject_id        => { type => 'integer' },
 
  44     transaction_description => { type => 'text' },
 
  45     storno_id               => { type => 'integer' },
 
  46     notes_bottom            => { type => 'text' },
 
  49   primary_key_columns => [ 'id' ],
 
  51   allow_inline_column_values => 1,
 
  55       class       => 'SL::DB::Project',
 
  56       key_columns => { globalproject_id => 'id' },
 
  60       class       => 'SL::DB::PurchaseInvoice',
 
  61       key_columns => { storno_id => 'id' },
 
  65       class       => 'SL::DB::Vendor',
 
  66       key_columns => { vendor_id => 'id' },