Revision 084d1390
Von Sven Schöling vor etwa 16 Jahren hinzugefügt
bin/mozilla/oe.pl | ||
---|---|---|
|
||
$form->{formname} ||= $form->{type};
|
||
|
||
# format discounts if values come from db. either as single id, or as a collective order
|
||
my $format_discounts = $form->{id} || $form->{convert_from_oe_ids};
|
||
|
||
for my $i (1 .. $form->{rowcount}) {
|
||
$form->{"reqdate_$i"} ||= $form->{"deliverydate_$i"};
|
||
$form->{"discount_$i"} = $form->format_amount(\%myconfig, $form->{"discount_$i"} * ($form->{id} ? 100 : 1));
|
||
$form->{"discount_$i"} = $form->format_amount(\%myconfig, $form->{"discount_$i"} * ($format_discounts ? 100 : 1));
|
||
$form->{"sellprice_$i"} = $form->format_amount(\%myconfig, $form->{"sellprice_$i"});
|
||
$form->{"qty_$i"} = $form->format_amount(\%myconfig, $form->{"qty_$i"});
|
||
}
|
Auch abrufbar als: Unified diff
Bugfix 702 (partiell)