# retrieve order/quotation
$form->{webdav} = $webdav;
+
# set jscalendar
$form->{jscalendar} = $jscalendar;
qw(partnumber description unit);
$form->{rowcount} = $i;
}
+ } elsif ($form->{rowcount}) {
+ for my $i (1 .. $form->{rowcount}) {
+ $form->{"discount_$i"} =
+ $form->format_amount(\%myconfig, $form->{"discount_$i"} * 100);
+
+ ($dec) = ($form->{"sellprice_$i"} =~ /\.(\d+)/);
+ $dec = length $dec;
+ $decimalplaces = ($dec > 2) ? $dec : 2;
+
+ $form->{"sellprice_$i"} =
+ $form->format_amount(\%myconfig, $form->{"sellprice_$i"},
+ $decimalplaces);
+ $form->{"qty_$i"} = $form->format_amount(\%myconfig, $form->{"qty_$i"});
+
+ map { $form->{"${_}_$i"} =~ s/\"/"/g }
+ qw(partnumber description unit);
+ }
}
$lxdebug->leave_sub();
IS->get_pricegroups_for_parts(\%myconfig, \%$form);
# build up html code for prices_$i
- set_pricegroup();
+ &set_pricegroup($i);
}
&display_form;
}
}
}
+
+
$lxdebug->leave_sub();
}