Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9aa4d575

Von Jan Büren vor fast 2 Jahren hinzugefügt

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

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

Unterschiede anzeigen:

bin/mozilla/ap.pl
834 834

  
835 835
  $form->error($locale->text('Zero amount posting!')) if $zero_amount_posting;
836 836

  
837
  $form->isblank("exchangerate", $locale->text('Exchangerate missing!'))
838
    if ($form->{defaultcurrency} && ($form->{currency} ne $form->{defaultcurrency}));
837
  if ($form->{defaultcurrency} && ($form->{currency} ne $form->{defaultcurrency})) {
838
    $form->isblank("exchangerate", $locale->text('Exchangerate missing!'));
839
    $form->error($locale->text('Cannot post invoice with negative exchange rate'))
840
      unless ($form->parse_amount(\%myconfig, $form->{"exchangerate"}) > 0);
841
  }
842

  
839 843
  delete($form->{AP});
840 844

  
841 845
  for my $i (1 .. $form->{paidaccounts}) {

Auch abrufbar als: Unified diff