Rose-Models Einkauf/Verkauf: Relationships für angepasste Lieferadressen
[kivitendo-erp.git] / SL / DB / PurchaseInvoice.pm
index 61d9355..2457cde 100644 (file)
@@ -23,6 +23,12 @@ __PACKAGE__->meta->add_relationship(
     column_map      => { id => 'ap_id' },
     manager_args    => { with_objects => [ 'sepa_export' ] }
   },
+  custom_shipto     => {
+    type            => 'one to one',
+    class           => 'SL::DB::Shipto',
+    column_map      => { id => 'trans_id' },
+    query_args      => [ module => 'AP' ],
+  },
 );
 
 __PACKAGE__->meta->initialize;