X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FInvoice.pm;h=9b10c938c6992b8d3880440a1350fffe7531917d;hb=0c564932ee0502911972f31f33a6041cfab5e98b;hp=b80cee70aa0b28c801b8adb43974ef21be1f8fb1;hpb=078c976936963bc3339c6c4438bda54a40a144f4;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/Invoice.pm b/SL/DB/MetaSetup/Invoice.pm index b80cee70a..9b10c938c 100644 --- a/SL/DB/MetaSetup/Invoice.pm +++ b/SL/DB/MetaSetup/Invoice.pm @@ -4,12 +4,12 @@ package SL::DB::Invoice; use strict; -use base qw(SL::DB::Object); +use parent 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' }, @@ -51,9 +51,9 @@ __PACKAGE__->meta->columns( shipvia => { type => 'text' }, storno => { type => 'boolean', default => 'false' }, storno_id => { type => 'integer' }, + tax_point => { type => 'date' }, taxincluded => { type => 'boolean' }, - taxzone_id => { type => 'integer' }, - terms => { type => 'integer', default => '0' }, + taxzone_id => { type => 'integer', not_null => 1 }, transaction_description => { type => 'text' }, transdate => { type => 'date', default => 'now' }, type => { type => 'text' },