? $exchangerate
: $form->parse_amount($myconfig, $form->{exchangerate});
+ $form->{exchangerate} = 1 unless ($form->{exchangerate} * 1);
+
for my $i (1 .. $form->{rowcount}) {
$form->{"qty_$i"} = $form->parse_amount($myconfig, $form->{"qty_$i"});
return $rc;
}
-sub has_storno {
- $main::lxdebug->enter_sub();
-
- my ($self, $myconfig, $form) = @_;
-
- $main::lxdebug->leave_sub() and return 0 unless ($form->{id});
-
- my $dbh = $form->dbconnect($myconfig);
-
- my $query = qq|SELECT storno FROM ap WHERE id = ?|;
- my ($result) = selectrow_query($form, $dbh, $query, $form->{id});
-
- $dbh->disconnect();
-
- $main::lxdebug->leave_sub();
-
- return $result;
-}
-
1;