Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b632cee8

Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt

  • ID b632cee8434442efd8ae3962126c34123172daac
  • Vorgänger ca055619
  • Nachfolger 6858b66b

InvoiceItem, OrderItem, DeliveryOrderItem: diverse Fremdschlüssel eingeführt

Unterschiede anzeigen:

SL/DB/InvoiceItem.pm
12 12
);
13 13

  
14 14
__PACKAGE__->meta->add_relationship(
15
  part => {
16
    type         => 'one to one',
17
    class        => 'SL::DB::Part',
18
    column_map   => { parts_id => 'id' },
19
  },
20
  price_factor_obj => {
21
    type           => 'one to one',
22
    class          => 'SL::DB::PriceFactor',
23
    column_map     => { price_factor_id => 'id' },
24
  },
25 15
  unit_obj       => {
26 16
    type         => 'one to one',
27 17
    class        => 'SL::DB::Unit',
......
34 24

  
35 25
__PACKAGE__->meta->initialize;
36 26

  
27
sub part {
28
  # canonial alias for parts.
29
  goto &parts;
30
}
31

  
37 32
1;

Auch abrufbar als: Unified diff