diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ir.pl | 7 | ||||
-rw-r--r-- | bin/is.pl | 6 | ||||
-rw-r--r-- | bin/oe.pl | 6 |
3 files changed, 9 insertions, 10 deletions
@@ -819,7 +819,6 @@ sub update { if ( $form->{import_text} ) { &import_text; } - $form->{exchangerate} = $form->parse_amount( \%myconfig, $form->{exchangerate} ); @@ -953,9 +952,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; @@ -974,9 +974,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; @@ -1048,9 +1048,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; |