Revision 1a16973b
Von Sven Schöling vor mehr als 15 Jahren hinzugefügt
SL/Form.pm | ||
---|---|---|
1628 | 1628 |
|
1629 | 1629 |
my ($self, $myconfig, $currency, $transdate, $fld) = @_; |
1630 | 1630 |
|
1631 |
if ($fld !~/^buy|sell$/) { |
|
1632 |
$self->error('Fatal: check_exchangerate called with invalid buy/sell argument'); |
|
1633 |
} |
|
1634 |
|
|
1631 | 1635 |
unless ($transdate) { |
1632 | 1636 |
$main::lxdebug->leave_sub(); |
1633 | 1637 |
return ""; |
bin/mozilla/do.pl | ||
---|---|---|
655 | 655 |
$form->{title} = $locale->text('Add Vendor Invoice'); |
656 | 656 |
$form->{script} = 'ir.pl'; |
657 | 657 |
$script = "ir"; |
658 |
$buysell = 'sell'; |
|
658 | 659 |
|
659 | 660 |
} else { |
660 | 661 |
$form->{title} = $locale->text('Add Sales Invoice'); |
Auch abrufbar als: Unified diff
Bug 905.
check_currency sicherer gemacht und eine aufrufschwäche in do.pl beseitigt.