X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FVendor.pm;h=0b57e83f17da06cac75ec42d6d0ca07163c2c1aa;hb=d860b41d55abbf46fa8b94ec445aca3a2bb4e0d6;hp=9a113fa7e8c28eccd289d34182f2a92eb2f89de4;hpb=574855561514a864f554776c421e7037196e714d;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/Vendor.pm b/SL/DB/MetaSetup/Vendor.pm index 9a113fa7e..0b57e83f1 100644 --- a/SL/DB/MetaSetup/Vendor.pm +++ b/SL/DB/MetaSetup/Vendor.pm @@ -34,7 +34,7 @@ __PACKAGE__->meta->columns( iban => { type => 'text' }, id => { type => 'integer', not_null => 1, sequence => 'id' }, itime => { type => 'timestamp', default => 'now()' }, - language => { type => 'varchar', length => 5 }, + language => { type => 'text' }, language_id => { type => 'integer' }, mtime => { type => 'timestamp' }, name => { type => 'text', not_null => 1 }, @@ -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;