X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FVendor.pm;h=e3a1b93d41be5ba7ecb74c9dc09df18543d35b96;hb=c59e85c3a7538b1279e25022a6cf431ca1dee700;hp=8367137a351ade37efc9a71ec591f5117371ef7c;hpb=fa7fc7eeb3ca718914affee06c0629a08d571288;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/Vendor.pm b/SL/DB/MetaSetup/Vendor.pm index 8367137a3..e3a1b93d4 100644 --- a/SL/DB/MetaSetup/Vendor.pm +++ b/SL/DB/MetaSetup/Vendor.pm @@ -4,7 +4,7 @@ package SL::DB::Vendor; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); __PACKAGE__->meta->table('vendor'); @@ -29,6 +29,7 @@ __PACKAGE__->meta->columns( discount => { type => 'float', scale => 4 }, email => { type => 'text' }, fax => { type => 'text' }, + gln => { type => 'text' }, greeting => { type => 'text' }, homepage => { type => 'text' }, iban => { type => 'text' }, @@ -46,8 +47,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 +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;