Revision 91bd08d8
Von Moritz Bunkus vor fast 12 Jahren hinzugefügt
SL/DB/Invoice.pm | ||
---|---|---|
28 | 28 |
with_objects => [ 'part' ] |
29 | 29 |
} |
30 | 30 |
}, |
31 |
payment_term => { |
|
32 |
type => 'one to one', |
|
33 |
class => 'SL::DB::PaymentTerm', |
|
34 |
column_map => { payment_id => 'id' }, |
|
35 |
}, |
|
36 |
contact => { |
|
37 |
type => 'one to one', |
|
38 |
class => 'SL::DB::Contact', |
|
39 |
column_map => { cp_id => 'cp_id' }, |
|
40 |
}, |
|
41 |
shipto => { |
|
42 |
type => 'one to one', |
|
43 |
class => 'SL::DB::Shipto', |
|
44 |
column_map => { shipto_id => 'shipto_id' }, |
|
45 |
}, |
|
46 |
department => { |
|
47 |
type => 'one to one', |
|
48 |
class => 'SL::DB::Department', |
|
49 |
column_map => { department_id => 'id' }, |
|
50 |
}, |
|
51 |
language => { |
|
52 |
type => 'one to one', |
|
53 |
class => 'SL::DB::Language', |
|
54 |
column_map => { language_id => 'id' }, |
|
55 |
}, |
|
56 |
employee => { |
|
57 |
type => 'one to one', |
|
58 |
class => 'SL::DB::Employee', |
|
59 |
column_map => { employee_id => 'id' }, |
|
60 |
}, |
|
61 | 31 |
); |
62 | 32 |
|
63 | 33 |
__PACKAGE__->meta->initialize; |
64 | 34 |
|
65 | 35 |
# methods |
66 | 36 |
|
67 |
sub items { goto &invoiceitems; } |
|
37 |
sub items { goto &invoiceitems; } |
|
38 |
sub payment_term { goto &payment; } |
|
68 | 39 |
|
69 | 40 |
# it is assumed, that ordnumbers are unique here. |
70 | 41 |
sub first_order_by_ordnumber { |
Auch abrufbar als: Unified diff
Diverse Fremdschlüssel für Tabellen ar und ap