Revision 2a052485
Von Sven Schöling vor mehr als 13 Jahren hinzugefügt
SL/DB/Customer.pm | ||
---|---|---|
12 | 12 |
class => 'SL::DB::Shipto', |
13 | 13 |
column_map => { id => 'trans_id' }, |
14 | 14 |
manager_args => { sort_by => 'lower(shipto.shiptoname)' }, |
15 |
query_args => [ 'shipto.module' => 'CT' ],
|
|
15 |
query_args => [ 'module' => 'CT' ], |
|
16 | 16 |
}, |
17 | 17 |
business => { |
18 | 18 |
type => 'one to one', |
... | ... | |
24 | 24 |
__PACKAGE__->meta->make_manager_class; |
25 | 25 |
__PACKAGE__->meta->initialize; |
26 | 26 |
|
27 |
sub short_address { |
|
28 |
my ($self) = @_; |
|
29 |
|
|
30 |
return join ', ', grep { $_ } $self->street, $self->zipcode, $self->city; |
|
31 |
} |
|
32 |
|
|
27 | 33 |
1; |
Auch abrufbar als: Unified diff
SL::DB::Customer: Fehler in der shipto Relation.