Revision bc5c9dac
Von Peter Schulgin vor fast 11 Jahren hinzugefügt
bin/mozilla/oe.pl | ||
---|---|---|
1355 | 1355 |
$exchangerate = $form->check_exchangerate(\%myconfig, $form->{currency}, $orddate, $buysell); |
1356 | 1356 |
|
1357 | 1357 |
if (!$exchangerate) { |
1358 |
&backorder_exchangerate($orddate, $buysell); |
|
1359 |
::end_of_request(); |
|
1358 |
$exchangerate = 0; |
|
1360 | 1359 |
} |
1361 | 1360 |
} |
1362 | 1361 |
|
... | ... | |
1447 | 1446 |
$main::lxdebug->leave_sub(); |
1448 | 1447 |
} |
1449 | 1448 |
|
1450 |
sub backorder_exchangerate { |
|
1451 |
$main::lxdebug->enter_sub(); |
|
1452 |
|
|
1453 |
my $form = $main::form; |
|
1454 |
my $locale = $main::locale; |
|
1455 |
|
|
1456 |
check_oe_access(); |
|
1457 |
|
|
1458 |
my ($orddate, $buysell) = @_; |
|
1459 |
|
|
1460 |
$form->header; |
|
1461 |
|
|
1462 |
print qq| |
|
1463 |
<form method=post action=$form->{script}> |
|
1464 |
|; |
|
1465 |
|
|
1466 |
# delete action variable |
|
1467 |
map { delete $form->{$_} } qw(action header exchangerate); |
|
1468 |
|
|
1469 |
foreach my $key (keys %$form) { |
|
1470 |
next if (($key eq 'login') || ($key eq 'password') || ('' ne ref $form->{$key})); |
|
1471 |
$form->{$key} =~ s/\"/"/g; |
|
1472 |
print qq|<input type=hidden name=$key value="$form->{$key}">\n|; |
|
1473 |
} |
|
1474 |
|
|
1475 |
$form->{title} = $locale->text('Add Exchangerate'); |
|
1476 |
|
|
1477 |
print qq| |
|
1478 |
|
|
1479 |
<input type=hidden name=exchangeratedate value=$orddate> |
|
1480 |
<input type=hidden name=buysell value=$buysell> |
|
1481 |
|
|
1482 |
<table width=100%> |
|
1483 |
<tr><th class=listtop>$form->{title}</th></tr> |
|
1484 |
<tr height="5"></tr> |
|
1485 |
<tr> |
|
1486 |
<td> |
|
1487 |
<table> |
|
1488 |
<tr> |
|
1489 |
<th align=right>| . $locale->text('Currency') . qq|</th> |
|
1490 |
<td>$form->{currency}</td> |
|
1491 |
</tr> |
|
1492 |
<tr> |
|
1493 |
<th align=right>| . $locale->text('Date') . qq|</th> |
|
1494 |
<td>$orddate</td> |
|
1495 |
</tr> |
|
1496 |
<tr> |
|
1497 |
<th align=right>| . $locale->text('Exchangerate') . qq|</th> |
|
1498 |
<td><input name=exchangerate size=11></td> |
|
1499 |
</tr> |
|
1500 |
</table> |
|
1501 |
</td> |
|
1502 |
</tr> |
|
1503 |
</table> |
|
1504 |
|
|
1505 |
<hr size=3 noshade> |
|
1506 |
|
|
1507 |
<br> |
|
1508 |
<input type=hidden name=nextsub value=save_exchangerate> |
|
1509 |
|
|
1510 |
<input name=action class=submit type=submit value="| |
|
1511 |
. $locale->text('Continue') . qq|"> |
|
1512 |
|
|
1513 |
</form> |
|
1514 |
|; |
|
1515 |
|
|
1516 |
$main::lxdebug->leave_sub(); |
|
1517 |
} |
|
1518 |
|
|
1519 | 1449 |
sub save_exchangerate { |
1520 | 1450 |
$main::lxdebug->enter_sub(); |
1521 | 1451 |
|
Auch abrufbar als: Unified diff
Keine zwischenabfrage nach Wechselkurs im Workflow Auftrag->Rechnung
Behebt #2141
Komplette Funktion "backorder_exchangerate" entfernt.
Die eingabe des Wechselkursere wird druch setzten auf "0" erzwungen