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     notes                   => { type => 'text' },
 
  27     employee_id             => { type => 'integer' },
 
  28     quonumber               => { type => 'text' },
 
  29     intnotes                => { type => 'text' },
 
  30     department_id           => { type => 'integer' },
 
  31     itime                   => { type => 'timestamp', default => 'now()' },
 
  32     mtime                   => { type => 'timestamp' },
 
  33     shipvia                 => { type => 'text' },
 
  34     cp_id                   => { type => 'integer' },
 
  35     language_id             => { type => 'integer' },
 
  36     payment_id              => { type => 'integer' },
 
  37     storno                  => { type => 'boolean', default => 'false' },
 
  38     taxzone_id              => { type => 'integer' },
 
  39     type                    => { type => 'text' },
 
  40     orddate                 => { type => 'date' },
 
  41     quodate                 => { type => 'date' },
 
  42     globalproject_id        => { type => 'integer' },
 
  43     transaction_description => { type => 'text' },
 
  44     storno_id               => { type => 'integer' },
 
  45     direct_debit            => { type => 'boolean', default => 'false' },
 
  46     deliverydate            => { type => 'date' },
 
  47     currency_id             => { type => 'integer', not_null => 1 },
 
  50   primary_key_columns => [ 'id' ],
 
  52   allow_inline_column_values => 1,
 
  56       class       => 'SL::DB::Contact',
 
  57       key_columns => { cp_id => 'cp_id' },
 
  61       class       => 'SL::DB::Currency',
 
  62       key_columns => { currency_id => 'id' },
 
  66       class       => 'SL::DB::Department',
 
  67       key_columns => { department_id => 'id' },
 
  71       class       => 'SL::DB::Employee',
 
  72       key_columns => { employee_id => 'id' },
 
  76       class       => 'SL::DB::Project',
 
  77       key_columns => { globalproject_id => 'id' },
 
  81       class       => 'SL::DB::Language',
 
  82       key_columns => { language_id => 'id' },
 
  86       class       => 'SL::DB::PaymentTerm',
 
  87       key_columns => { payment_id => 'id' },
 
  91       class       => 'SL::DB::PurchaseInvoice',
 
  92       key_columns => { storno_id => 'id' },
 
  96       class       => 'SL::DB::Vendor',
 
  97       key_columns => { vendor_id => 'id' },