Mahnungs-Tabelle: Fremdschlüsselverknüpfung auf Rechnungstabelle
[kivitendo-erp.git] / SL / DB / MetaSetup / Dunning.pm
index a0098e7..ee6ab4e 100644 (file)
@@ -33,10 +33,15 @@ __PACKAGE__->meta->foreign_keys(
     key_columns => { dunning_config_id => 'id' },
   },
 
-  fee_interest_ar => {
+  fee_interest_invoice => {
     class       => 'SL::DB::Invoice',
     key_columns => { fee_interest_ar_id => 'id' },
   },
+
+  invoice => {
+    class       => 'SL::DB::Invoice',
+    key_columns => { trans_id => 'id' },
+  },
 );
 
 1;