Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9aa4d575

Von Jan Büren vor mehr als 1 Jahr hinzugefügt

  • ID 9aa4d575a8fa7d8fb94967b765ff118aab61c330
  • Vorgänger 30b348e0
  • Nachfolger 2a9b1b12

Buchungsmasken: Wert des Wechselkurs auf valide Inhalte vor Buchung prüfen

Unterschiede anzeigen:

bin/mozilla/ar.pl
780 780
  $form->error($locale->text('Zero amount posting!'))
781 781
    unless grep $_*1, map $form->parse_amount(\%myconfig, $form->{"amount_$_"}), 1..$form->{rowcount};
782 782

  
783
  $form->isblank("exchangerate", $locale->text('Exchangerate missing!'))
784
    if ($form->{defaultcurrency} && ($form->{currency} ne $form->{defaultcurrency}));
783
  if ($form->{defaultcurrency} && ($form->{currency} ne $form->{defaultcurrency})) {
784
    $form->isblank("exchangerate", $locale->text('Exchangerate missing!'));
785
    $form->error($locale->text('Cannot post invoice with negative exchange rate'))
786
      unless ($form->parse_amount(\%myconfig, $form->{"exchangerate"}) > 0);
787
  }
785 788

  
786 789
  delete($form->{AR});
787 790

  

Auch abrufbar als: Unified diff