X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FVendor.pm;h=e3a1b93d41be5ba7ecb74c9dc09df18543d35b96;hb=3f90c9cac7fea1568957718eba46dfe5f9a621ce;hp=6ba58b5b3ef78f34586a20829e45c87bceecff14;hpb=b8b112a39bd601b0bc717646d78de470631da22a;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/Vendor.pm b/SL/DB/MetaSetup/Vendor.pm index 6ba58b5b3..e3a1b93d4 100644 --- a/SL/DB/MetaSetup/Vendor.pm +++ b/SL/DB/MetaSetup/Vendor.pm @@ -4,54 +4,56 @@ package SL::DB::Vendor; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); __PACKAGE__->meta->table('vendor'); __PACKAGE__->meta->columns( - id => { type => 'integer', not_null => 1, sequence => 'id' }, - name => { type => 'varchar', length => 75, not_null => 1 }, - department_1 => { type => 'varchar', length => 75 }, - department_2 => { type => 'varchar', length => 75 }, - street => { type => 'varchar', length => 75 }, - zipcode => { type => 'varchar', length => 10 }, - city => { type => 'varchar', length => 75 }, - country => { type => 'varchar', length => 75 }, - contact => { type => 'varchar', length => 75 }, - phone => { type => 'text' }, - fax => { type => 'varchar', length => 30 }, - homepage => { type => 'text' }, - email => { type => 'text' }, - notes => { type => 'text' }, - terms => { type => 'integer', default => '0' }, - taxincluded => { type => 'boolean' }, - vendornumber => { type => 'text' }, - cc => { type => 'text' }, - bcc => { type => 'text' }, - business_id => { type => 'integer' }, - taxnumber => { type => 'text' }, - discount => { type => 'float', precision => 4 }, - creditlimit => { type => 'numeric', precision => 5, scale => 15 }, - account_number => { type => 'varchar', length => 15 }, - bank_code => { type => 'varchar', length => 10 }, - bank => { type => 'text' }, - language => { type => 'varchar', length => 5 }, - itime => { type => 'timestamp', default => 'now()' }, - mtime => { type => 'timestamp' }, - obsolete => { type => 'boolean', default => 'false' }, - username => { type => 'varchar', length => 50 }, - user_password => { type => 'varchar', length => 12 }, - salesman_id => { type => 'integer' }, - v_customer_id => { type => 'text' }, - language_id => { type => 'integer' }, - payment_id => { type => 'integer' }, - taxzone_id => { type => 'integer', default => '0', not_null => 1 }, - greeting => { type => 'text' }, - ustid => { type => 'varchar', length => 14 }, - direct_debit => { type => 'boolean', default => 'false' }, - iban => { type => 'varchar', length => 100 }, - bic => { type => 'varchar', length => 100 }, - currency_id => { type => 'integer', not_null => 1 }, + account_number => { type => 'text' }, + bank => { type => 'text' }, + bank_code => { type => 'text' }, + bcc => { type => 'text' }, + bic => { type => 'text' }, + business_id => { type => 'integer' }, + cc => { type => 'text' }, + city => { type => 'text' }, + contact => { type => 'text' }, + country => { type => 'text' }, + creditlimit => { type => 'numeric', precision => 15, scale => 5 }, + currency_id => { type => 'integer', not_null => 1 }, + delivery_term_id => { type => 'integer' }, + department_1 => { type => 'text' }, + department_2 => { type => 'text' }, + depositor => { type => 'text' }, + direct_debit => { type => 'boolean', default => 'false' }, + discount => { type => 'float', scale => 4 }, + email => { type => 'text' }, + fax => { type => 'text' }, + gln => { type => 'text' }, + greeting => { type => 'text' }, + homepage => { type => 'text' }, + iban => { type => 'text' }, + id => { type => 'integer', not_null => 1, sequence => 'id' }, + itime => { type => 'timestamp', default => 'now()' }, + language => { type => 'text' }, + language_id => { type => 'integer' }, + mtime => { type => 'timestamp' }, + name => { type => 'text', not_null => 1 }, + notes => { type => 'text' }, + obsolete => { type => 'boolean', default => 'false' }, + payment_id => { type => 'integer' }, + phone => { type => 'text' }, + salesman_id => { type => 'integer' }, + street => { type => 'text' }, + taxincluded => { type => 'boolean' }, + taxnumber => { type => 'text' }, + taxzone_id => { type => 'integer', not_null => 1 }, + user_password => { type => 'text' }, + username => { type => 'text' }, + ustid => { type => 'text' }, + v_customer_id => { type => 'text' }, + vendornumber => { type => 'text' }, + zipcode => { type => 'text' }, ); __PACKAGE__->meta->primary_key_columns([ 'id' ]); @@ -69,6 +71,11 @@ __PACKAGE__->meta->foreign_keys( key_columns => { currency_id => 'id' }, }, + delivery_term => { + class => 'SL::DB::DeliveryTerm', + key_columns => { delivery_term_id => 'id' }, + }, + language_obj => { class => 'SL::DB::Language', key_columns => { language_id => 'id' }, @@ -78,9 +85,12 @@ __PACKAGE__->meta->foreign_keys( class => 'SL::DB::PaymentTerm', key_columns => { payment_id => 'id' }, }, -); -# __PACKAGE__->meta->initialize; + taxzone => { + class => 'SL::DB::TaxZone', + key_columns => { taxzone_id => 'id' }, + }, +); 1; ;