Revision 1ca5fd88
SL/DB/Helper/FlattenToForm.pm | ||
---|---|---|
28 | 28 |
}; |
29 | 29 |
|
30 | 30 |
if (_has($self, 'transdate')) { |
31 |
my $transdate_idx = ref($self) eq 'SL::DB::Order' ? ($self->quotation ? 'quodate' : 'orddate') |
|
32 |
: ref($self) eq 'SL::DB::Invoice' ? 'invdate' |
|
31 |
my $transdate_idx = ref($self) eq 'SL::DB::Order' ? ($self->quotation ? 'quodate' : 'orddate')
|
|
32 |
: ref($self) eq 'SL::DB::Invoice' ? 'invdate'
|
|
33 | 33 |
: ref($self) eq 'SL::DB::DeliveryOrder' ? 'dodate' |
34 |
: 'transdate'; |
|
34 |
: 'transdate';
|
|
35 | 35 |
$form->{$transdate_idx} = $self->transdate->to_lxoffice; |
36 | 36 |
} |
37 | 37 |
|
Auch abrufbar als: Unified diff
Kosmetik (Einrückungen für ternären Operator)