Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 7ade1b95

Von Moritz Bunkus vor mehr als 13 Jahren hinzugefügt

  • ID 7ade1b958af3fdd2b7532973da0e7825d23eda96
  • Vorgänger 4229e3b8
  • Nachfolger feef731c

Model SL::DB::Prices in SL::DB::Price umbenannt

Conflicts:

SL/DB/Helper/Mappings.pm
SL/DB/Part.pm

Unterschiede anzeigen:

SL/DB/Helper/ALL.pm
56 56
use SL::DB::PeriodicInvoicesConfig;
57 57
use SL::DB::PriceFactor;
58 58
use SL::DB::Pricegroup;
59
use SL::DB::Prices;
59
use SL::DB::Price;
60 60
use SL::DB::Printer;
61 61
use SL::DB::Project;
62 62
use SL::DB::PurchaseInvoice;
SL/DB/Helper/Mappings.pm
77 77
  payment_terms                  => 'payment_term',
78 78
  periodic_invoices              => 'periodic_invoice',
79 79
  periodic_invoices_configs      => 'periodic_invoices_config',
80
  prices                         => 'prices',
80
  prices                         => 'price',
81 81
  price_factors                  => 'price_factor',
82 82
  pricegroup                     => 'pricegroup',
83 83
  printers                       => 'Printer',
SL/DB/MetaSetup/Price.pm
1
# This file has been auto-generated. Do not modify it; it will be overwritten
2
# by rose_auto_create_model.pl automatically.
3
package SL::DB::Price;
4

  
5
use strict;
6

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

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

  
12
  columns => [
13
    parts_id      => { type => 'integer' },
14
    pricegroup_id => { type => 'integer' },
15
    price         => { type => 'numeric', precision => 5, scale => 15 },
16
    id            => { type => 'serial', not_null => 1 },
17
  ],
18

  
19
  primary_key_columns => [ 'id' ],
20

  
21
  foreign_keys => [
22
    parts => {
23
      class       => 'SL::DB::Part',
24
      key_columns => { parts_id => 'id' },
25
    },
26

  
27
    pricegroup => {
28
      class       => 'SL::DB::Pricegroup',
29
      key_columns => { pricegroup_id => 'id' },
30
    },
31
  ],
32
);
33

  
34
1;
35
;
SL/DB/MetaSetup/Prices.pm
1
# This file has been auto-generated. Do not modify it; it will be overwritten
2
# by rose_auto_create_model.pl automatically.
3
package SL::DB::Prices;
4

  
5
use strict;
6

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

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

  
12
  columns => [
13
    parts_id      => { type => 'integer' },
14
    pricegroup_id => { type => 'integer' },
15
    price         => { type => 'numeric', precision => 5, scale => 15 },
16
    id            => { type => 'serial', not_null => 1 },
17
  ],
18

  
19
  primary_key_columns => [ 'id' ],
20

  
21
  foreign_keys => [
22
    parts => {
23
      class       => 'SL::DB::Part',
24
      key_columns => { parts_id => 'id' },
25
    },
26

  
27
    pricegroup => {
28
      class       => 'SL::DB::Pricegroup',
29
      key_columns => { pricegroup_id => 'id' },
30
    },
31
  ],
32
);
33

  
34
1;
35
;
SL/DB/Part.pm
31 31
    class        => 'SL::DB::PriceFactor',
32 32
    column_map   => { price_factor_id => 'id' },
33 33
  },
34
  prices         => {
35
    type         => 'one to many',
36
    class        => 'SL::DB::Price',
37
    column_map   => { id => 'parts_id' },
38
  },
34 39
);
35 40

  
36 41
__PACKAGE__->meta->initialize;
SL/DB/Price.pm
1
# This file has been auto-generated only because it didn't exist.
2
# Feel free to modify it at will; it will not be overwritten automatically.
3

  
4
package SL::DB::Price;
5

  
6
use strict;
7

  
8
use SL::DB::MetaSetup::Price;
9

  
10
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
11
__PACKAGE__->meta->make_manager_class;
12

  
13
1;
SL/DB/Prices.pm
1
# This file has been auto-generated only because it didn't exist.
2
# Feel free to modify it at will; it will not be overwritten automatically.
3

  
4
package SL::DB::Prices;
5

  
6
use strict;
7

  
8
use SL::DB::MetaSetup::Prices;
9

  
10
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
11
__PACKAGE__->meta->make_manager_class;
12

  
13
1;

Auch abrufbar als: Unified diff