Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 75603a22

Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt

  • ID 75603a224c1bc962d18e9398972fa3bf2ff77f87
  • Vorgänger 665fb6bc
  • Nachfolger 2d881637

Rose-Model Wiederkehrende Rechnungen: Foreign Key "order" nennen, nicht "oe"

Unterschiede anzeigen:

SL/DB/MetaSetup/PeriodicInvoicesConfig.pm
32 32
      key_columns => { ar_chart_id => 'id' },
33 33
    },
34 34

  
35
    oe => {
35
    order => {
36 36
      class       => 'SL::DB::Order',
37 37
      key_columns => { oe_id => 'id' },
38 38
    },
SL/DB/PeriodicInvoicesConfig.pm
4 4

  
5 5
use SL::DB::MetaSetup::PeriodicInvoicesConfig;
6 6

  
7
__PACKAGE__->meta->add_relationships(
8
  order        => {
9
    type       => 'many to one',
10
    class      => 'SL::DB::Order',
11
    column_map => { oe_id => 'id' },
12
  },
13
);
14

  
15
__PACKAGE__->meta->initialize;
16

  
17 7
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
18 8
__PACKAGE__->meta->make_manager_class;
19 9

  
scripts/rose_auto_create_model.pl
52 52
  orderitems           => { parts => 'part', trans => 'order', },
53 53
  delivery_order_items => { parts => 'part' },
54 54
  invoice              => { parts => 'part' },
55

  
56
  periodic_invoices_configs => { oe => 'order' },
55 57
);
56 58

  
57 59
sub setup {

Auch abrufbar als: Unified diff