]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/MetaSetup/Invoice.pm
Merge branch 'master' of github.com:kivitendo/kivitendo-erp
[mfinanz.git] / SL / DB / MetaSetup / Invoice.pm
index 72aaa4505ede5b8293bfb3ffd1d367348de57d86..ac7f6716fcb637b05c4beb4b09aa68d0ef5f2558 100644 (file)
@@ -9,7 +9,7 @@ use base qw(SL::DB::Object);
 __PACKAGE__->meta->table('ar');
 
 __PACKAGE__->meta->columns(
-  amount                    => { type => 'numeric', precision => 15, scale => 5 },
+  amount                    => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
   cp_id                     => { type => 'integer' },
   currency_id               => { type => 'integer', not_null => 1 },
   cusordnumber              => { type => 'text' },
@@ -37,11 +37,11 @@ __PACKAGE__->meta->columns(
   marge_percent             => { type => 'numeric', precision => 15, scale => 5 },
   marge_total               => { type => 'numeric', precision => 15, scale => 5 },
   mtime                     => { type => 'timestamp' },
-  netamount                 => { type => 'numeric', precision => 15, scale => 5 },
+  netamount                 => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
   notes                     => { type => 'text' },
   orddate                   => { type => 'date' },
   ordnumber                 => { type => 'text' },
-  paid                      => { type => 'numeric', precision => 15, scale => 5 },
+  paid                      => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
   payment_id                => { type => 'integer' },
   quodate                   => { type => 'date' },
   quonumber                 => { type => 'text' },