]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/DB/MetaSetup/InvoiceItem.pm
Lieferscheine -> Rechnungen wandeln: Lieferscheinnummer in jeder Rechnungsposition...
[kivitendo-erp.git] / SL / DB / MetaSetup / InvoiceItem.pm
index d527f76f53497cbfb9fd14c1ff8d2c719929c204..1d73b7357bc3726630fba188be4cfce1176f6c54 100644 (file)
@@ -17,6 +17,7 @@ __PACKAGE__->meta->columns(
   description        => { type => 'text' },
   discount           => { type => 'float', precision => 4 },
   fxsellprice        => { type => 'numeric', precision => 5, scale => 15 },
+  donumber           => { type => 'text' },
   id                 => { type => 'integer', not_null => 1, sequence => 'invoiceid' },
   itime              => { type => 'timestamp', default => 'now()' },
   lastcost           => { type => 'numeric', precision => 5, scale => 15 },
@@ -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;