Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 084d1390

Von Sven Schöling vor mehr als 15 Jahren hinzugefügt

  • ID 084d1390974678cedb644ba2142243c9d589df74
  • Vorgänger 96d3ef85
  • Nachfolger 0975a120

Bugfix 702 (partiell)

Unterschiede anzeigen:

bin/mozilla/oe.pl
248 248

  
249 249
  $form->{formname} ||= $form->{type};
250 250

  
251
  # format discounts if values come from db. either as single id, or as a collective order
252
  my $format_discounts = $form->{id} || $form->{convert_from_oe_ids};
253

  
251 254
  for my $i (1 .. $form->{rowcount}) {
252 255
    $form->{"reqdate_$i"} ||= $form->{"deliverydate_$i"};
253
    $form->{"discount_$i"}  = $form->format_amount(\%myconfig, $form->{"discount_$i"} * ($form->{id} ? 100 : 1));
256
    $form->{"discount_$i"}  = $form->format_amount(\%myconfig, $form->{"discount_$i"} * ($format_discounts ? 100 : 1));
254 257
    $form->{"sellprice_$i"} = $form->format_amount(\%myconfig, $form->{"sellprice_$i"});
255 258
    $form->{"qty_$i"}       = $form->format_amount(\%myconfig, $form->{"qty_$i"});
256 259
  }

Auch abrufbar als: Unified diff