- qq|<td align=right><input name="qty_$i" size=5 value=|
- . $form->format_amount(\%myconfig, $form->{"qty_$i"}, 0)
- . qq|></td>|;
+ qq|<td align=right><input name="qty_$i" size=5 value=|.
+ $form->format_amount(\%myconfig, $form->{"qty_$i"}, $qty_dec)
+ .qq|></td>|;