check_currency sicherer gemacht und eine aufrufschwäche in do.pl beseitigt.
my ($self, $myconfig, $currency, $transdate, $fld) = @_;
my ($self, $myconfig, $currency, $transdate, $fld) = @_;
+ if ($fld !~/^buy|sell$/) {
+ $self->error('Fatal: check_exchangerate called with invalid buy/sell argument');
+ }
+
unless ($transdate) {
$main::lxdebug->leave_sub();
return "";
unless ($transdate) {
$main::lxdebug->leave_sub();
return "";
$form->{title} = $locale->text('Add Vendor Invoice');
$form->{script} = 'ir.pl';
$script = "ir";
$form->{title} = $locale->text('Add Vendor Invoice');
$form->{script} = 'ir.pl';
$script = "ir";
} else {
$form->{title} = $locale->text('Add Sales Invoice');
} else {
$form->{title} = $locale->text('Add Sales Invoice');