Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2e26ccd5

Von Bernd Blessmann vor mehr als 12 Jahren hinzugefügt

  • ID 2e26ccd536925a2f4d7a4e3975a778d9e452f30a
  • Vorgänger 3ed938a7
  • Nachfolger 7c7d58eb

Fix zu Bug 1775: Wechselkurs in Einkaufrechnung kann nicht eingegeben werden

Auch Zahlenformatierung repariert, wenn man das Datum von einem mit vorhandenem
Wechselkurs in eines ohne wechselt (Ver- und Einkauf).

Unterschiede anzeigen:

bin/mozilla/is.pl
485 485

  
486 486
  my ($recursive_call) = @_;
487 487

  
488
  $form->{exchangerate} = $form->parse_amount(\%myconfig, $form->{exchangerate}) unless $recursive_call;
489

  
490 488
  $form->{print_and_post} = 0         if $form->{second_run};
491 489
  my $taxincluded         = $form->{taxincluded} ? "checked" : '';
492 490
  $form->{update} = 1;
......
495 493

  
496 494
  $form->{taxincluded} ||= $taxincluded;
497 495

  
496
  if (!$form->{forex}) {        # read exchangerate from input field (not hidden)
497
    $form->{exchangerate} = $form->parse_amount(\%myconfig, $form->{exchangerate}) unless $recursive_call;
498
  }
498 499
  $form->{forex}        = $form->check_exchangerate(\%myconfig, $form->{currency}, $form->{invdate}, 'buy');
499 500
  $form->{exchangerate} = $form->{forex} if $form->{forex};
500 501

  

Auch abrufbar als: Unified diff