]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/MetaSetup/PaymentTerm.pm
Bei Kunden/Lieferanten Recht customer_vendor_all_edit prüfen
[mfinanz.git] / SL / DB / MetaSetup / PaymentTerm.pm
index cba2de7d249466241d63a9f19f2b4ce1537184cf..bc0587e7ce39c721a616fd8413c5b34e49267499 100644 (file)
@@ -4,17 +4,18 @@ package SL::DB::PaymentTerm;
 
 use strict;
 
-use base qw(SL::DB::Object);
+use parent qw(SL::DB::Object);
 
 __PACKAGE__->meta->table('payment_terms');
 
 __PACKAGE__->meta->columns(
+  auto_calculation => { type => 'boolean', not_null => 1 },
   description      => { type => 'text' },
   description_long => { type => 'text' },
   id               => { type => 'integer', not_null => 1, sequence => 'id' },
   itime            => { type => 'timestamp', default => 'now()' },
   mtime            => { type => 'timestamp' },
-  percent_skonto   => { type => 'float', precision => 4 },
+  percent_skonto   => { type => 'float', scale => 4 },
   ranking          => { type => 'integer' },
   sortkey          => { type => 'integer', not_null => 1 },
   terms_netto      => { type => 'integer' },