Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c24f46f5

Von Werner Hahn vor mehr als 7 Jahren hinzugefügt

  • ID c24f46f54b295efd8315768d624eb0e87d91cc2c
  • Vorgänger 8fe07618
  • Nachfolger a4dc1973

Shopmodul: ShopOrder

Conflicts:
SL/DB/MetaSetup/ShopOrder.pm
SL/DB/MetaSetup/ShopOrderItem.pm

Unterschiede anzeigen:

SL/DB/MetaSetup/ShopOrder.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::ShopOrder;
4
#package SL::DB::ShopOrder;
5

  
6
use strict;
7

  
8
use parent qw(SL::DB::Object);
9

  
10
__PACKAGE__->meta->table('shop_orders');
11

  
12
__PACKAGE__->meta->columns(
13
  amount                 => { type => 'numeric', precision => 15, scale => 5 },
14
  billing_city           => { type => 'text' },
15
  billing_company        => { type => 'text' },
16
  billing_country        => { type => 'text' },
17
  billing_department     => { type => 'text' },
18
  billing_email          => { type => 'text' },
19
  billing_fax            => { type => 'text' },
20
  billing_firstname      => { type => 'text' },
21
  billing_greeting       => { type => 'text' },
22
  billing_lastname       => { type => 'text' },
23
  billing_phone          => { type => 'text' },
24
  billing_street         => { type => 'text' },
25
  billing_vat            => { type => 'text' },
26
  billing_zipcode        => { type => 'text' },
27
  customer_city          => { type => 'text' },
28
  customer_company       => { type => 'text' },
29
  customer_country       => { type => 'text' },
30
  customer_department    => { type => 'text' },
31
  customer_email         => { type => 'text' },
32
  customer_fax           => { type => 'text' },
33
  customer_firstname     => { type => 'text' },
34
  customer_greeting      => { type => 'text' },
35
  customer_lastname      => { type => 'text' },
36
  customer_newsletter    => { type => 'boolean' },
37
  customer_phone         => { type => 'text' },
38
  customer_street        => { type => 'text' },
39
  customer_vat           => { type => 'text' },
40
  customer_zipcode       => { type => 'text' },
41
  delivery_city          => { type => 'text' },
42
  delivery_company       => { type => 'text' },
43
  delivery_country       => { type => 'text' },
44
  delivery_department    => { type => 'text' },
45
  delivery_email         => { type => 'text' },
46
  delivery_fax           => { type => 'text' },
47
  delivery_firstname     => { type => 'text' },
48
  delivery_greeting      => { type => 'text' },
49
  delivery_lastname      => { type => 'text' },
50
  delivery_phone         => { type => 'text' },
51
  delivery_street        => { type => 'text' },
52
  delivery_vat           => { type => 'text' },
53
  delivery_zipcode       => { type => 'text' },
54
  host                   => { type => 'text' },
55
  id                     => { type => 'serial', not_null => 1 },
56
  itime                  => { type => 'timestamp', default => 'now()' },
57
  kivi_customer_id       => { type => 'integer' },
58
  mtime                  => { type => 'timestamp' },
59
  netamount              => { type => 'numeric', precision => 15, scale => 5 },
60
  oe_transid             => { type => 'integer' },
61
  order_date             => { type => 'timestamp' },
62
  payment_description    => { type => 'text' },
63
  payment_id             => { type => 'integer' },
64
  remote_ip              => { type => 'text' },
65
  sepa_account_holder    => { type => 'text' },
66
  sepa_bic               => { type => 'text' },
67
  sepa_iban              => { type => 'text' },
68
  shipping_costs         => { type => 'numeric', precision => 15, scale => 5 },
69
  shipping_costs_id      => { type => 'integer' },
70
  shipping_costs_net     => { type => 'numeric', precision => 15, scale => 5 },
71
  shop_c_billing_id      => { type => 'integer' },
72
  shop_c_billing_number  => { type => 'text' },
73
  shop_c_delivery_id     => { type => 'integer' },
74
  shop_c_delivery_number => { type => 'text' },
75
  shop_customer_comment  => { type => 'text' },
76
  shop_customer_id       => { type => 'integer' },
77
  shop_customer_number   => { type => 'text' },
78
  shop_data              => { type => 'text' },
79
  shop_id                => { type => 'integer' },
80
  shop_ordernumber       => { type => 'text' },
81
  shop_trans_id          => { type => 'integer', not_null => 1 },
82
  tax_included           => { type => 'boolean' },
83
  transfer_date          => { type => 'date' },
84
  transferred            => { type => 'boolean', default => 'false' },
85
);
86

  
87
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
88

  
89
__PACKAGE__->meta->allow_inline_column_values(1);
90

  
91
1;
92
;
SL/DB/MetaSetup/ShopOrderItem.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::ShopOrderItem;
4
#package SL::DB::ShopOrderItem;
5

  
6
use strict;
7

  
8
use parent qw(SL::DB::Object);
9

  
10
__PACKAGE__->meta->table('shop_order_items');
11

  
12
__PACKAGE__->meta->columns(
13
  description   => { type => 'text' },
14
  id            => { type => 'serial', not_null => 1 },
15
  partnumber    => { type => 'text' },
16
  position      => { type => 'integer' },
17
  price         => { type => 'numeric', precision => 15, scale => 5 },
18
  quantity      => { type => 'numeric', precision => 25, scale => 5 },
19
  shop_id       => { type => 'integer' },
20
  shop_order_id => { type => 'integer' },
21
  shop_trans_id => { type => 'integer', not_null => 1 },
22
  tax_rate      => { type => 'numeric', precision => 15, scale => 2 },
23
);
24

  
25
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
26

  
27
__PACKAGE__->meta->foreign_keys(
28
  shop_order => {
29
    class       => 'SL::DB::ShopOrder',
30
    key_columns => { shop_order_id => 'id' },
31
  },
32
);
33

  
34
1;
35
;

Auch abrufbar als: Unified diff