X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/aeb4f5d5d87753fbdf0d4ec520301ef90354a70a..7635f647ec7dcdef51684b21601ee0930ea2bc5b:/SL/DB/MetaSetup/Vendor.pm diff --git a/SL/DB/MetaSetup/Vendor.pm b/SL/DB/MetaSetup/Vendor.pm index 387b2d857..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 => 'character', length => 3 }, + 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' },