Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a53233e5

Von Sven Schöling vor mehr als 16 Jahren hinzugefügt

  • ID a53233e56a9d4001b47bcf412b4bfe46910d3117
  • Vorgänger 1b95831a
  • Nachfolger 04e9a474

Wechselkurse.

Zum einen den unsaeglichen Algorithmus zum setzen von exchangerate und forex im ganzen Porgramm geaendert.
Dann einen Bug mit der Angzeige der Wechselkurseingabe in oe.pl gefixt.
Ausserdem Bug 666 gefixt.

Unterschiede anzeigen:

bin/mozilla/oe.pl
336 336
  @values = map { $_ } @{ $form->{ALL_CURRENCIES} };
337 337
  %labels = map { $_ => $_ } @{ $form->{ALL_CURRENCIES} };
338 338
  $form->{currency}            = $form->{defaultcurrency} unless $form->{currency};
339
  $TMPL_VAR{show_exchangerate} = $form->{currency} ne $form->{defaultcurrency} && $form->{exchangerate};
339
  $TMPL_VAR{show_exchangerate} = $form->{currency} ne $form->{defaultcurrency};
340 340
  $TMPL_VAR{currencies}        = NTI($cgi->popup_menu('-name' => 'currency', '-default' => $form->{"currency"},
341 341
                                                      '-values' => \@values, '-labels' => \%labels)) if scalar @values;
342 342
  push @custom_hiddens, "forex";
......
492 492
  
493 493
  $buysell              = 'buy';
494 494
  $buysell              = 'sell' if ($form->{vc} eq 'vendor');
495
  $form->{exchangerate} = $exchangerate if 
496
    $form->{forex} = $exchangerate = $form->check_exchangerate(\%myconfig, $form->{currency}, $form->{transdate}, $buysell);
495
  $form->{forex}        = $form->check_exchangerate(\%myconfig, $form->{currency}, $form->{transdate}, $buysell);
496
  $form->{exchangerate} = $form->{forex} if $form->{forex};
497 497

  
498 498
  $exchangerate = $form->{exchangerate} || 1;
499 499

  
......
1494 1494
  &invoice_links;
1495 1495

  
1496 1496
  $form->{currency}     = $currency;
1497
  $form->{exchangerate} = "";
1498
  $form->{forex}        = "";
1499
  $form->{exchangerate} = $exchangerate
1500
    if (
1501
        $form->{forex} = (
1502
                    $exchangerate =
1503
                      $form->check_exchangerate(
1504
                      \%myconfig, $form->{currency}, $form->{invdate}, $buysell
1505
                      )));
1497
  $form->{forex}        = $form->check_exchangerate( \%myconfig, $form->{currency}, $form->{invdate}, $buysell);
1498
  $form->{exchangerate} = $form->{forex} || '';
1506 1499

  
1507 1500
  $form->{creditremaining} -= ($form->{oldinvtotal} - $form->{ordtotal});
1508 1501

  

Auch abrufbar als: Unified diff