X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/3f9f158f2b1adbb6ad47906d16776331d7cf9993..2b69a6ac3bb750d39c4a2534d878b546ff649a35:/SL/DB/MetaSetup/Vendor.pm diff --git a/SL/DB/MetaSetup/Vendor.pm b/SL/DB/MetaSetup/Vendor.pm index 8367137a3..0b57e83f1 100644 --- a/SL/DB/MetaSetup/Vendor.pm +++ b/SL/DB/MetaSetup/Vendor.pm @@ -46,7 +46,7 @@ __PACKAGE__->meta->columns( street => { type => 'text' }, taxincluded => { type => 'boolean' }, taxnumber => { type => 'text' }, - taxzone_id => { type => 'integer', default => '0', not_null => 1 }, + taxzone_id => { type => 'integer', not_null => 1 }, terms => { type => 'integer', default => '0' }, user_password => { type => 'text' }, username => { type => 'text' }, @@ -85,6 +85,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;