Skip to content

Commit

Permalink
Kosmetik (Einrückungen für ternären Operator)
Browse files Browse the repository at this point in the history
  • Loading branch information
kivijan authored and jbueren committed Jan 4, 2025
1 parent 9f5df20 commit 48fa6dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SL/DB/Helper/FlattenToForm.pm
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ sub flatten_to_form {
};

if (_has($self, 'transdate')) {
my $transdate_idx = ref($self) eq 'SL::DB::Order' ? ($self->quotation ? 'quodate' : 'orddate')
: ref($self) eq 'SL::DB::Invoice' ? 'invdate'
my $transdate_idx = ref($self) eq 'SL::DB::Order' ? ($self->quotation ? 'quodate' : 'orddate')
: ref($self) eq 'SL::DB::Invoice' ? 'invdate'
: ref($self) eq 'SL::DB::DeliveryOrder' ? 'dodate'
: 'transdate';
: 'transdate';
$form->{$transdate_idx} = $self->transdate->to_lxoffice;
}

Expand Down

0 comments on commit 48fa6dc

Please sign in to comment.