Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b8b112a3

Von Sven Schöling vor mehr als 11 Jahren hinzugefügt

  • ID b8b112a39bd601b0bc717646d78de470631da22a
  • Vorgänger c0931303
  • Nachfolger 2d7e4203

MetaSetup neu generiert

Unterschiede anzeigen:

SL/DB/MetaSetup/DunningConfig.pm
6 6

  
7 7
use base qw(SL::DB::Object);
8 8

  
9
__PACKAGE__->meta->setup(
10
  table   => 'dunning_config',
11

  
12
  columns => [
13
    id                       => { type => 'integer', not_null => 1, sequence => 'id' },
14
    dunning_level            => { type => 'integer' },
15
    dunning_description      => { type => 'text' },
16
    active                   => { type => 'boolean' },
17
    auto                     => { type => 'boolean' },
18
    email                    => { type => 'boolean' },
19
    terms                    => { type => 'integer' },
20
    payment_terms            => { type => 'integer' },
21
    fee                      => { type => 'numeric', precision => 5, scale => 15 },
22
    interest_rate            => { type => 'numeric', precision => 5, scale => 15 },
23
    email_body               => { type => 'text' },
24
    email_subject            => { type => 'text' },
25
    email_attachment         => { type => 'boolean' },
26
    template                 => { type => 'text' },
27
    create_invoices_for_fees => { type => 'boolean', default => 'true' },
28
  ],
29

  
30
  primary_key_columns => [ 'id' ],
9
__PACKAGE__->meta->table('dunning_config');
10

  
11
__PACKAGE__->meta->columns(
12
  id                       => { type => 'integer', not_null => 1, sequence => 'id' },
13
  dunning_level            => { type => 'integer' },
14
  dunning_description      => { type => 'text' },
15
  active                   => { type => 'boolean' },
16
  auto                     => { type => 'boolean' },
17
  email                    => { type => 'boolean' },
18
  terms                    => { type => 'integer' },
19
  payment_terms            => { type => 'integer' },
20
  fee                      => { type => 'numeric', precision => 5, scale => 15 },
21
  interest_rate            => { type => 'numeric', precision => 5, scale => 15 },
22
  email_body               => { type => 'text' },
23
  email_subject            => { type => 'text' },
24
  email_attachment         => { type => 'boolean' },
25
  template                 => { type => 'text' },
26
  create_invoices_for_fees => { type => 'boolean', default => 'true' },
27
);
28

  
29
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
30

  
31
__PACKAGE__->meta->relationships(
32
  ar => {
33
    class      => 'SL::DB::Invoice',
34
    column_map => { id => 'dunning_config_id' },
35
    type       => 'one to many',
36
  },
37

  
38
  dunning => {
39
    class      => 'SL::DB::Dunning',
40
    column_map => { id => 'dunning_config_id' },
41
    type       => 'one to many',
42
  },
31 43
);
32 44

  
45
# __PACKAGE__->meta->initialize;
46

  
33 47
1;
34 48
;

Auch abrufbar als: Unified diff