]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/DB/MetaSetup/Vendor.pm
MetaSetup für discount in Vendor
[kivitendo-erp.git] / SL / DB / MetaSetup / Vendor.pm
index 8367137a351ade37efc9a71ec591f5117371ef7c..6a0969fdf34f15c74d2edfa39ae50e96e38c27d0 100644 (file)
@@ -46,8 +46,7 @@ __PACKAGE__->meta->columns(
   street           => { type => 'text' },
   taxincluded      => { type => 'boolean' },
   taxnumber        => { type => 'text' },
-  taxzone_id       => { type => 'integer', default => '0', not_null => 1 },
-  terms            => { type => 'integer', default => '0' },
+  taxzone_id       => { type => 'integer', not_null => 1 },
   user_password    => { type => 'text' },
   username         => { type => 'text' },
   ustid            => { type => 'text' },
@@ -85,6 +84,11 @@ __PACKAGE__->meta->foreign_keys(
     class       => 'SL::DB::PaymentTerm',
     key_columns => { payment_id => 'id' },
   },
+
+  taxzone => {
+    class       => 'SL::DB::TaxZone',
+    key_columns => { taxzone_id => 'id' },
+  },
 );
 
 1;