X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/52e39117f738d3b3a3ff0a9f25c3e08d2225b5fc..464f44a:/SL/DB/MetaSetup/Vendor.pm diff --git a/SL/DB/MetaSetup/Vendor.pm b/SL/DB/MetaSetup/Vendor.pm index 8367137a3..3a3c2a413 100644 --- a/SL/DB/MetaSetup/Vendor.pm +++ b/SL/DB/MetaSetup/Vendor.pm @@ -26,7 +26,7 @@ __PACKAGE__->meta->columns( department_2 => { type => 'text' }, depositor => { type => 'text' }, direct_debit => { type => 'boolean', default => 'false' }, - discount => { type => 'float', scale => 4 }, + discount => { type => 'float', precision => 4, scale => 4 }, email => { type => 'text' }, fax => { type => 'text' }, greeting => { type => 'text' }, @@ -46,8 +46,7 @@ __PACKAGE__->meta->columns( street => { type => 'text' }, taxincluded => { type => 'boolean' }, taxnumber => { type => 'text' }, - taxzone_id => { type => 'integer', default => '0', not_null => 1 }, - terms => { type => 'integer', default => '0' }, + taxzone_id => { type => 'integer', not_null => 1 }, user_password => { type => 'text' }, username => { type => 'text' }, ustid => { type => 'text' }, @@ -85,6 +84,11 @@ __PACKAGE__->meta->foreign_keys( class => 'SL::DB::PaymentTerm', key_columns => { payment_id => 'id' }, }, + + taxzone => { + class => 'SL::DB::TaxZone', + key_columns => { taxzone_id => 'id' }, + }, ); 1;