]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/DB/DeliveryOrder.pm
Paginates nur anzeigen, wenn mindestens 2 Seiten.
[kivitendo-erp.git] / SL / DB / DeliveryOrder.pm
index 724a01d7bbf9f02bcf8066435a8cdd224e7953df..b65bf3eb6960e9343ba78bf8705e9360cb12a068 100644 (file)
@@ -15,6 +15,14 @@ __PACKAGE__->meta->add_relationship(orderitems => { type         => 'one to many
                                                     column_map   => { id => 'trans_id' },
                                                     manager_args => { with_objects => [ 'part' ] }
                                                   },
+                                    shipto => { type       => 'one to one',
+                                                class      => 'SL::DB::Shipto',
+                                                column_map => { shipto_id => 'shipto_id' },
+                                              },
+                                    department => { type       => 'one to one',
+                                                    class      => 'SL::DB::Department',
+                                                    column_map => { department_id => 'id' },
+                                                  },
                                    );
 
 __PACKAGE__->meta->initialize;