Revision 084d1390
Von Sven Schöling vor mehr als 15 Jahren hinzugefügt
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
Bugfix 702 (partiell)