X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/82515b2d93dc5632f24d6e0b6f8f05f3fd19fbb0..b320453d39fd9ff512debf8c76e770a59aadfa6d:/SL/DB/Invoice.pm diff --git a/SL/DB/Invoice.pm b/SL/DB/Invoice.pm index cc488829f..993920c01 100644 --- a/SL/DB/Invoice.pm +++ b/SL/DB/Invoice.pm @@ -10,10 +10,6 @@ use List::Util qw(first); use SL::DB::MetaSetup::Invoice; use SL::DB::Manager::Invoice; -__PACKAGE__->attr_number($_, places => -2) for qw(amount netamount paid marge_total marge_percent taxamount); -__PACKAGE__->attr_date($_) for qw(transdate gldate datepaid duedate deliverydate orddate quodate); -__PACKAGE__->attr_percent($_) for qw(abschlag_percentage); - __PACKAGE__->meta->add_relationship( invoiceitems => { type => 'one to many', @@ -59,4 +55,6 @@ sub taxamount { return $self->amount - $self->netamount; } +__PACKAGE__->meta->make_attr_helpers(taxamount => 'numeric(15,5)'); + 1;