]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/MetaSetup/Vendor.pm
Merge branch 'master' of github.com:kivitendo/kivitendo-erp
[mfinanz.git] / SL / DB / MetaSetup / Vendor.pm
index cc9366339214dd9e04219115c4bbd98955c136f2..14fb4a929081e9341112a3c32c4792a1c9173f1f 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' },