Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision fd8558c8

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

  • ID fd8558c8cfd92d3399401a7ca27cbb0faf2a021d
  • Vorgänger e01d7de0
  • Nachfolger a93cb8e0

Nachtrag zu Bug 220, Rabatt wurde nur fuer ein einzelnes Item berechnet.
Korrektur bei Angeboten

Unterschiede anzeigen:

SL/OE.pm
$dec = length $dec;
my $decimalplaces = ($dec > 2) ? $dec : 2;
my $discount =
$form->round_amount(
$sellprice * $form->parse_amount($myconfig,
$form->{"discount_$i"}) / 100,
$decimalplaces);
my $i_discount = $form->round_amount($sellprice *
$form->parse_amount($myconfig, $form->{"discount_$i"}) / 100, $decimalplaces);
my $discount = $form->round_amount($form->{"qty_$i"} * $i_discount, $decimalplaces);
# keep a netprice as well, (sellprice - discount)
$form->{"netprice_$i"} = $sellprice - $discount;
#$form->{"netprice_$i"} = $sellprice - $discount;
$form->{"netprice_$i"} = $sellprice - $i_discount;
my $linetotal =
$form->round_amount($form->{"qty_$i"} * $form->{"netprice_$i"}, 2);

Auch abrufbar als: Unified diff