Auftrags-Controller: Menge vor Preisquellenermittlung auf 1, wenn ungesetzt
[kivitendo-erp.git] / SL / DB / MetaSetup / PriceRule.pm
index 00469ad..889dde7 100644 (file)
@@ -4,20 +4,21 @@ package SL::DB::PriceRule;
 
 use strict;
 
-use base qw(SL::DB::Object);
+use parent qw(SL::DB::Object);
 
 __PACKAGE__->meta->table('price_rules');
 
 __PACKAGE__->meta->columns(
-  discount => { type => 'numeric', precision => 15, scale => 5 },
-  id       => { type => 'serial', not_null => 1 },
-  itime    => { type => 'timestamp' },
-  mtime    => { type => 'timestamp' },
-  name     => { type => 'text' },
-  obsolete => { type => 'boolean', default => 'false', not_null => 1 },
-  price    => { type => 'numeric', precision => 15, scale => 5 },
-  priority => { type => 'integer', default => 3, not_null => 1 },
-  type     => { type => 'text' },
+  discount  => { type => 'numeric', precision => 15, scale => 5 },
+  id        => { type => 'serial', not_null => 1 },
+  itime     => { type => 'timestamp' },
+  mtime     => { type => 'timestamp' },
+  name      => { type => 'text' },
+  obsolete  => { type => 'boolean', default => 'false', not_null => 1 },
+  price     => { type => 'numeric', precision => 15, scale => 5 },
+  priority  => { type => 'integer', default => 3, not_null => 1 },
+  reduction => { type => 'numeric', precision => 15, scale => 5 },
+  type      => { type => 'text' },
 );
 
 __PACKAGE__->meta->primary_key_columns([ 'id' ]);