Revision b5b366c9
Von Moritz Bunkus vor etwa 3 Jahren hinzugefügt
SL/DB/MetaSetup/Invoice.pm | ||
---|---|---|
10 | 10 |
|
11 | 11 |
__PACKAGE__->meta->columns( |
12 | 12 |
amount => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 }, |
13 |
billing_address_id => { type => 'integer' }, |
|
13 | 14 |
cp_id => { type => 'integer' }, |
14 | 15 |
currency_id => { type => 'integer', not_null => 1 }, |
15 | 16 |
cusordnumber => { type => 'text' }, |
... | ... | |
64 | 65 |
__PACKAGE__->meta->allow_inline_column_values(1); |
65 | 66 |
|
66 | 67 |
__PACKAGE__->meta->foreign_keys( |
68 |
billing_address => { |
|
69 |
class => 'SL::DB::AdditionalBillingAddress', |
|
70 |
key_columns => { billing_address_id => 'id' }, |
|
71 |
}, |
|
72 |
|
|
67 | 73 |
contact => { |
68 | 74 |
class => 'SL::DB::Contact', |
69 | 75 |
key_columns => { cp_id => 'cp_id' }, |
Auch abrufbar als: Unified diff
Zusätzliche Rechnungsadressen: Datenbankupgrade, MetaSetup, Rose-Models