X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FVendor.pm;h=14fb4a929081e9341112a3c32c4792a1c9173f1f;hb=dbda14c263efd93aca3b7114015a47d86b8581e3;hp=cc9366339214dd9e04219115c4bbd98955c136f2;hpb=fcbb613d03379b265cb0df7ce0b553ee630d52f3;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/Vendor.pm b/SL/DB/MetaSetup/Vendor.pm index cc9366339..14fb4a929 100644 --- a/SL/DB/MetaSetup/Vendor.pm +++ b/SL/DB/MetaSetup/Vendor.pm @@ -29,7 +29,6 @@ __PACKAGE__->meta->setup( vendornumber => { type => 'text' }, cc => { type => 'text' }, bcc => { type => 'text' }, - gifi_accno => { type => 'text' }, business_id => { type => 'integer' }, taxnumber => { type => 'text' }, discount => { type => 'float', precision => 4 }, @@ -53,7 +52,7 @@ __PACKAGE__->meta->setup( iban => { type => 'varchar', length => 100 }, bic => { type => 'varchar', length => 100 }, direct_debit => { type => 'boolean', default => 'false' }, - curr => { type => 'text' }, + currency_id => { type => 'integer', not_null => 1 }, ], primary_key_columns => [ 'id' ], @@ -66,6 +65,11 @@ __PACKAGE__->meta->setup( key_columns => { business_id => 'id' }, }, + currency => { + class => 'SL::DB::Currency', + key_columns => { currency_id => 'id' }, + }, + language_obj => { class => 'SL::DB::Language', key_columns => { language_id => 'id' },