Merge branch 'von-opendynamic'
[kivitendo-erp.git] / SL / DB / MetaSetup / InvoiceItem.pm
index e788b5f..7cd853e 100644 (file)
@@ -16,6 +16,7 @@ __PACKAGE__->meta->columns(
   deliverydate       => { type => 'date' },
   description        => { type => 'text' },
   discount           => { type => 'float', scale => 4 },
+  donumber           => { type => 'text' },
   fxsellprice        => { type => 'numeric', precision => 15, scale => 5 },
   id                 => { type => 'integer', not_null => 1, sequence => 'invoiceid' },
   itime              => { type => 'timestamp', default => 'now()' },
@@ -64,6 +65,11 @@ __PACKAGE__->meta->foreign_keys(
     class       => 'SL::DB::Project',
     key_columns => { project_id => 'id' },
   },
+
+  unit_obj => {
+    class       => 'SL::DB::Unit',
+    key_columns => { unit => 'name' },
+  },
 );
 
 1;