]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/MetaSetup/Invoice.pm
Revert "SL::DB::Part: displayable_name als Alias für long_description"
[mfinanz.git] / SL / DB / MetaSetup / Invoice.pm
index f024a75e838ed2b2da350281e3e8c2f4bb217f1b..72aaa4505ede5b8293bfb3ffd1d367348de57d86 100644 (file)
@@ -52,7 +52,7 @@ __PACKAGE__->meta->columns(
   storno                    => { type => 'boolean', default => 'false' },
   storno_id                 => { type => 'integer' },
   taxincluded               => { type => 'boolean' },
-  taxzone_id                => { type => 'integer' },
+  taxzone_id                => { type => 'integer', not_null => 1 },
   terms                     => { type => 'integer', default => '0' },
   transaction_description   => { type => 'text' },
   transdate                 => { type => 'date', default => 'now' },
@@ -128,6 +128,11 @@ __PACKAGE__->meta->foreign_keys(
     class       => 'SL::DB::Invoice',
     key_columns => { storno_id => 'id' },
   },
+
+  taxzone => {
+    class       => 'SL::DB::TaxZone',
+    key_columns => { taxzone_id => 'id' },
+  },
 );
 
 1;