summaryrefslogtreecommitdiff
path: root/bin/is.pl
diff options
context:
space:
mode:
Diffstat (limited to 'bin/is.pl')
-rwxr-xr-xbin/is.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/is.pl b/bin/is.pl
index 3338018a..f615a234 100755
--- a/bin/is.pl
+++ b/bin/is.pl
@@ -951,9 +951,9 @@ sub update {
for ( keys %{ $form->{item_list}[0] } ) {
$form->{"${_}_$i"} = $form->{item_list}[0]{$_};
}
-
- $form->{"discount_$i"} = $form->{discount} * 100;
-
+ if (! defined $form->{"discount_$i"}){
+ $form->{"discount_$i"} = $form->{discount} * 100;
+ }
if ($sellprice) {
$form->{"sellprice_$i"} = $sellprice;