Revision 45a48bed
Von Sven Schöling vor fast 13 Jahren hinzugefügt
SL/DB/Customer.pm | ||
---|---|---|
26 | 26 |
column_map => { id => 'cp_cv_id' }, |
27 | 27 |
manager_args => { sort_by => 'lower(contacts.cp_name)' }, |
28 | 28 |
}, |
29 |
business => { |
|
30 |
type => 'one to one', |
|
31 |
class => 'SL::DB::Business', |
|
32 |
column_map => { business_id => 'id' }, |
|
33 |
}, |
|
34 | 29 |
); |
35 | 30 |
|
36 | 31 |
__PACKAGE__->meta->initialize; |
SL/DB/MetaSetup/Customer.pm | ||
---|---|---|
51 | 51 |
taxzone_id => { type => 'integer', default => '0', not_null => 1 }, |
52 | 52 |
greeting => { type => 'text' }, |
53 | 53 |
ustid => { type => 'text' }, |
54 |
direct_debit => { type => 'boolean', default => 'false' }, |
|
54 | 55 |
iban => { type => 'varchar', length => 100 }, |
55 | 56 |
bic => { type => 'varchar', length => 100 }, |
56 |
direct_debit => { type => 'boolean', default => 'false' },
|
|
57 |
curr => { type => 'character', length => 3 },
|
|
57 | 58 |
], |
58 | 59 |
|
59 | 60 |
primary_key_columns => [ 'id' ], |
60 | 61 |
|
61 |
allow_inline_column_values => 1, |
|
62 |
foreign_keys => [ |
|
63 |
business => { |
|
64 |
class => 'SL::DB::Business', |
|
65 |
key_columns => { business_id => 'id' }, |
|
66 |
}, |
|
67 |
|
|
68 |
language_obj => { |
|
69 |
class => 'SL::DB::Language', |
|
70 |
key_columns => { language_id => 'id' }, |
|
71 |
}, |
|
72 |
|
|
73 |
payment => { |
|
74 |
class => 'SL::DB::PaymentTerm', |
|
75 |
key_columns => { payment_id => 'id' }, |
|
76 |
}, |
|
77 |
], |
|
62 | 78 |
); |
63 | 79 |
|
64 | 80 |
1; |
SL/DB/MetaSetup/Vendor.pm | ||
---|---|---|
54 | 54 |
direct_debit => { type => 'boolean', default => 'false' }, |
55 | 55 |
iban => { type => 'varchar', length => 100 }, |
56 | 56 |
bic => { type => 'varchar', length => 100 }, |
57 |
curr => { type => 'character', length => 3 }, |
|
57 | 58 |
], |
58 | 59 |
|
59 | 60 |
primary_key_columns => [ 'id' ], |
Auch abrufbar als: Unified diff
rdbo models: customer und vendor nach de8868c und 4c4939d0.