Unterstützung für andere Datenbankencodings als Unicode/UTF-8 entfernt
[kivitendo-erp.git] / SL / DB / MetaSetup / Vendor.pm
index cc93663..14fb4a9 100644 (file)
@@ -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' },