]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/DB/MetaSetup/InvoiceItem.pm
Merge branch 'von-opendynamic'
[kivitendo-erp.git] / SL / DB / MetaSetup / InvoiceItem.pm
index e788b5f6c0c67bcd38cb6ece927c5d03c85d03d7..7cd853ec23e243941bdf7a6a955078b9a806a970 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;