Revision cb4ccd7e
Von Sven Schöling vor etwa 19 Jahren hinzugefügt
SL/OE.pm | ||
---|---|---|
586 | 586 |
my $query, @ids; |
587 | 587 |
|
588 | 588 |
# translate the ids (given by id_# and trans_id_#) into one array of ids, so we can join them later |
589 |
map { push @ids, $form->{"trans_id_$_"} if ($form->{"id_$_"}) } (1 .. $form->{"rowcount"}); |
|
589 |
map { push @ids, $form->{"trans_id_$_"} if ($form->{"id_$_"} and $form->{"trans_id_$_"}) } (1 .. $form->{"rowcount"});
|
|
590 | 590 |
|
591 | 591 |
# if called in multi id mode, and still only got one id, switch back to single id |
592 | 592 |
if ($form->{"rowcount"} and $#ids == 0) { |
... | ... | |
662 | 662 |
$ref = $sth->fetchrow_hashref(NAME_lc); |
663 | 663 |
map { $form->{$_} = $ref->{$_} } keys %$ref; |
664 | 664 |
|
665 |
# destroy all entries for multiple ids that yield different information
|
|
665 |
# set all entries for multiple ids blank that yield different information
|
|
666 | 666 |
while ($ref = $sth->fetchrow_hashref(NAME_lc)) { |
667 |
map { undef $form->{$_} if ($ref->{$_} ne $form->{$_}) } keys %$ref;
|
|
667 |
map { $form->{$_} = '' if ($ref->{$_} ne $form->{$_}) } keys %$ref;
|
|
668 | 668 |
} |
669 | 669 |
|
670 | 670 |
# if not given, fill transdate with current_date |
Auch abrufbar als: Unified diff
Fix fuer Bug 224 (Rechnung -> Auftrag)
Bugfix Verkauf -> Berichte -> Angebote -> Workflow Angebot -> Auftrag (fuer mehr als ein item)
Bugfix Verkauf -> Berichte -> Angebote -> Workflow Angebot -> Auftrag" (fuer genau ein item)