]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/MetaSetup/PurchaseInvoice.pm
Merge branch 'master' of github.com:kivitendo/kivitendo-erp
[mfinanz.git] / SL / DB / MetaSetup / PurchaseInvoice.pm
index 75040bae64c83e8c9efde9dac6bd44aea7313370..e484fb933954c0aab0dc5d9c42c4bed8392f81ee 100644 (file)
@@ -43,17 +43,25 @@ __PACKAGE__->meta->setup(
     transaction_description => { type => 'text' },
     storno_id               => { type => 'integer' },
     direct_debit            => { type => 'boolean', default => 'false' },
+    deliverydate            => { type => 'date' },
     currency_id             => { type => 'integer', not_null => 1 },
   ],
 
   primary_key_columns => [ 'id' ],
 
+  allow_inline_column_values => 1,
+
   foreign_keys => [
     contact => {
       class       => 'SL::DB::Contact',
       key_columns => { cp_id => 'cp_id' },
     },
 
+    currency => {
+      class       => 'SL::DB::Currency',
+      key_columns => { currency_id => 'id' },
+    },
+
     department => {
       class       => 'SL::DB::Department',
       key_columns => { department_id => 'id' },