Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 325c539c

Von Moritz Bunkus vor fast 11 Jahren hinzugefügt

  • ID 325c539c21187087e5540646c3c4e9cabd52ee84
  • Vorgänger a60c6759
  • Nachfolger c6bdeb99

Rose-Models Einkauf/Verkauf: Relationships für angepasste Lieferadressen

Unterschiede anzeigen:

SL/DB/DeliveryOrder.pm
17 17
                                                    column_map   => { id => 'delivery_order_id' },
18 18
                                                    manager_args => { with_objects => [ 'part' ] }
19 19
                                                  },
20
                                    custom_shipto => {
21
                                      type        => 'one to one',
22
                                      class       => 'SL::DB::Shipto',
23
                                      column_map  => { id => 'trans_id' },
24
                                      query_args  => [ module => 'DO' ],
25
                                    },
20 26
                                   );
21 27

  
22 28
__PACKAGE__->meta->initialize;
SL/DB/Invoice.pm
38 38
    column_map      => { id => 'ar_id' },
39 39
    manager_args    => { with_objects => [ 'sepa_export' ] }
40 40
  },
41
  custom_shipto     => {
42
    type            => 'one to one',
43
    class           => 'SL::DB::Shipto',
44
    column_map      => { id => 'trans_id' },
45
    query_args      => [ module => 'AR' ],
46
  },
41 47
);
42 48

  
43 49
__PACKAGE__->meta->initialize;
SL/DB/Order.pm
30 30
    class                  => 'SL::DB::PeriodicInvoicesConfig',
31 31
    column_map             => { id => 'oe_id' },
32 32
  },
33
  custom_shipto            => {
34
    type                   => 'one to one',
35
    class                  => 'SL::DB::Shipto',
36
    column_map             => { id => 'trans_id' },
37
    query_args             => [ module => 'OE' ],
38
  },
33 39
);
34 40

  
35 41
__PACKAGE__->meta->initialize;
SL/DB/PurchaseInvoice.pm
23 23
    column_map      => { id => 'ap_id' },
24 24
    manager_args    => { with_objects => [ 'sepa_export' ] }
25 25
  },
26
  custom_shipto     => {
27
    type            => 'one to one',
28
    class           => 'SL::DB::Shipto',
29
    column_map      => { id => 'trans_id' },
30
    query_args      => [ module => 'AP' ],
31
  },
26 32
);
27 33

  
28 34
__PACKAGE__->meta->initialize;

Auch abrufbar als: Unified diff