Revision 4bcf8804
Von Sven Schöling vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/PaymentTerm.pm | ||
---|---|---|
25 | 25 |
|
26 | 26 |
__PACKAGE__->meta->allow_inline_column_values(1); |
27 | 27 |
|
28 |
__PACKAGE__->meta->relationships( |
|
29 |
ap => { |
|
30 |
class => 'SL::DB::PurchaseInvoice', |
|
31 |
column_map => { id => 'payment_id' }, |
|
32 |
type => 'one to many', |
|
33 |
}, |
|
34 |
|
|
35 |
ar => { |
|
36 |
class => 'SL::DB::Invoice', |
|
37 |
column_map => { id => 'payment_id' }, |
|
38 |
type => 'one to many', |
|
39 |
}, |
|
40 |
|
|
41 |
customer => { |
|
42 |
class => 'SL::DB::Customer', |
|
43 |
column_map => { id => 'payment_id' }, |
|
44 |
type => 'one to many', |
|
45 |
}, |
|
46 |
|
|
47 |
oe => { |
|
48 |
class => 'SL::DB::Order', |
|
49 |
column_map => { id => 'payment_id' }, |
|
50 |
type => 'one to many', |
|
51 |
}, |
|
52 |
|
|
53 |
parts => { |
|
54 |
class => 'SL::DB::Part', |
|
55 |
column_map => { id => 'payment_id' }, |
|
56 |
type => 'one to many', |
|
57 |
}, |
|
58 |
); |
|
59 |
|
|
60 | 28 |
# __PACKAGE__->meta->initialize; |
61 | 29 |
|
62 | 30 |
1; |
Auch abrufbar als: Unified diff
MetaSetup: Folgerun um die Foreign Keys umzudrehen