MetaSetup: Spalten- und Fremdschlüsselnamen alphabetisch sortieren
[kivitendo-erp.git] / SL / DB / MetaSetup / Order.pm
index 467b5b4..249ea62 100644 (file)
@@ -9,42 +9,42 @@ use base qw(SL::DB::Object);
 __PACKAGE__->meta->table('oe');
 
 __PACKAGE__->meta->columns(
-  id                      => { type => 'integer', not_null => 1, sequence => 'id' },
-  ordnumber               => { type => 'text', not_null => 1 },
-  transdate               => { type => 'date', default => 'now' },
-  vendor_id               => { type => 'integer' },
-  customer_id             => { type => 'integer' },
   amount                  => { type => 'numeric', precision => 5, scale => 15 },
-  netamount               => { type => 'numeric', precision => 5, scale => 15 },
-  reqdate                 => { type => 'date' },
-  taxincluded             => { type => 'boolean' },
-  shippingpoint           => { type => 'text' },
-  notes                   => { type => 'text' },
-  employee_id             => { type => 'integer' },
   closed                  => { type => 'boolean', default => 'false' },
-  quotation               => { type => 'boolean', default => 'false' },
-  quonumber               => { type => 'text' },
+  cp_id                   => { type => 'integer' },
+  currency_id             => { type => 'integer', not_null => 1 },
   cusordnumber            => { type => 'text' },
-  intnotes                => { type => 'text' },
+  customer_id             => { type => 'integer' },
+  delivered               => { type => 'boolean', default => 'false' },
+  delivery_customer_id    => { type => 'integer' },
+  delivery_vendor_id      => { type => 'integer' },
   department_id           => { type => 'integer' },
+  employee_id             => { type => 'integer' },
+  globalproject_id        => { type => 'integer' },
+  id                      => { type => 'integer', not_null => 1, sequence => 'id' },
+  intnotes                => { type => 'text' },
   itime                   => { type => 'timestamp', default => 'now()' },
-  mtime                   => { type => 'timestamp' },
-  shipvia                 => { type => 'text' },
-  cp_id                   => { type => 'integer' },
   language_id             => { type => 'integer' },
+  marge_percent           => { type => 'numeric', precision => 5, scale => 15 },
+  marge_total             => { type => 'numeric', precision => 5, scale => 15 },
+  mtime                   => { type => 'timestamp' },
+  netamount               => { type => 'numeric', precision => 5, scale => 15 },
+  notes                   => { type => 'text' },
+  ordnumber               => { type => 'text', not_null => 1 },
   payment_id              => { type => 'integer' },
-  delivery_customer_id    => { type => 'integer' },
-  delivery_vendor_id      => { type => 'integer' },
-  taxzone_id              => { type => 'integer' },
   proforma                => { type => 'boolean', default => 'false' },
-  shipto_id               => { type => 'integer' },
-  delivered               => { type => 'boolean', default => 'false' },
-  globalproject_id        => { type => 'integer' },
+  quonumber               => { type => 'text' },
+  quotation               => { type => 'boolean', default => 'false' },
+  reqdate                 => { type => 'date' },
   salesman_id             => { type => 'integer' },
+  shippingpoint           => { type => 'text' },
+  shipto_id               => { type => 'integer' },
+  shipvia                 => { type => 'text' },
+  taxincluded             => { type => 'boolean' },
+  taxzone_id              => { type => 'integer' },
   transaction_description => { type => 'text' },
-  marge_total             => { type => 'numeric', precision => 5, scale => 15 },
-  marge_percent           => { type => 'numeric', precision => 5, scale => 15 },
-  currency_id             => { type => 'integer', not_null => 1 },
+  transdate               => { type => 'date', default => 'now' },
+  vendor_id               => { type => 'integer' },
 );
 
 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
@@ -118,7 +118,5 @@ __PACKAGE__->meta->foreign_keys(
   },
 );
 
-# __PACKAGE__->meta->initialize;
-
 1;
 ;