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/ir.pl
916 916
  $form->error($locale->text('Cannot post invoice for a closed period!'))
917 917
    if ($invdate <= $closedto);
918 918

  
919
  $form->isblank("exchangerate", $locale->text('Exchangerate missing!'))
920
    if ($form->{currency} ne $form->{defaultcurrency});
921

  
919
  if ($form->{currency} ne $form->{defaultcurrency}) {
920
    $form->isblank("exchangerate", $locale->text('Exchangerate missing!'));
921
    $form->error($locale->text('Cannot post invoice with negative exchange rate'))
922
      unless ($form->parse_amount(\%myconfig, $form->{"exchangerate"}) > 0);
923
  }
922 924
  my $i;
923 925
  for $i (1 .. $form->{paidaccounts}) {
924 926
    if ($form->parse_amount(\%myconfig, $form->{"paid_$i"})) {

Auch abrufbar als: Unified diff