Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision cb4ccd7e

Von Sven Schöling vor etwa 19 Jahren hinzugefügt

  • ID cb4ccd7ed0bac4752dc4f7cf549a447e4bb07463
  • Vorgänger 99b9d833
  • Nachfolger 981b670e

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)

Unterschiede anzeigen:

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
bin/mozilla/oe.pl
140 140
  # if multiple rowcounts (== collective order) then check if the
141 141
  # there were more than one customer (in that case OE::retrieve removes 
142 142
  # the content from the field)
143
  if ($form->{rowcount} && $form->{type} eq 'sales_order' && $form->{customer} eq '') {
143
  if ($form->{rowcount} && $form->{type} eq 'sales_order' && defined $form->{customer} && $form->{customer} eq '') {
144 144
#    $main::lxdebug->message(0, "Detected Edit order with concurrent customers");
145 145
    $form->error($locale->text('Collective Orders only work for orders from one customer!'));
146 146
  }

Auch abrufbar als: Unified diff