Verknüpfung zu PaymentTerm-Model
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 10 Nov 2010 15:54:14 +0000 (16:54 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 12 Jan 2011 15:18:29 +0000 (16:18 +0100)
SL/DB/Order.pm

index e84f8a2..267b913 100644 (file)
@@ -30,6 +30,11 @@ __PACKAGE__->meta->add_relationship(
     class                  => 'SL::DB::PeriodicInvoice',
     column_map             => { id => 'oe_id' },
   },
+  payment_term => {
+    type       => 'one to one',
+    class      => 'SL::DB::PaymentTerm',
+    column_map => { payment_id => 'id' },
+  },
 );
 
 __PACKAGE__->meta->initialize;