Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9dd784ba

Von Stephan Köhler vor fast 19 Jahren hinzugefügt

  • ID 9dd784ba657cfa9177742883effdbd065ce2525b
  • Vorgänger 5cbbffe2
  • Nachfolger f4f458e9

Merge von 685 aus unstable: Bugfix Preisgruppen
Problem bei Preisgruppen und Kommabetraegen und individuellen Preisen geloest

Unterschiede anzeigen:

bin/mozilla/io.pl
425 425
  my $rowcount = shift;
426 426
  $lxdebug->enter_sub();
427 427
  for $j (1 .. $rowcount) {
428

  
429 428
    my $pricegroup_old = $form->{"pricegroup_old_$i"};
430 429
    if ($form->{PRICES}{$j}) {
431 430
      $len    = 0;
......
443 442
          qq|<option value="$price--$pricegroup_id"$item->{selected}>$pricegroup</option>\n|;
444 443

  
445 444
        $len += 1;
445
        map {
446
              $form->{"${_}_$j"} =
447
              $form->format_amount(\%myconfig, $form->{"${_}_$j"})
448
             } qw(sellprice price_new price_old);
446 449

  
447 450
        # set new selectedpricegroup_id and prices for "Preis"
448
        if ($item->{selected}) {
451
        if ($item->{selected} && ($pricegroup_id != 0)) {
449 452
          $form->{"pricegroup_old_$j"} = $pricegroup_id;
450 453
          $form->{"price_new_$j"}      = $price;
451 454
          $form->{"sellprice_$j"}      = $price;
452 455
        }
453
        if ($len >= 1) {
456
        if ($pricegroup_id == 0) {
457
          $form->{"price_new_$j"} = $form->{"sellprice_$j"};
458
        }
459
        if ($len > 1) {
454 460
          $form->{"prices_$j"} = $prices;
455 461
        }
456 462
      }
457 463
    }
458 464
  }
459

  
460 465
  $lxdebug->leave_sub();
461 466
}
462 467

  

Auch abrufbar als: Unified diff