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

  
1078
  $form->isblank("exchangerate", $locale->text('Exchangerate missing!'))
1079
    if ($form->{currency} ne $form->{defaultcurrency});
1078
  if ($form->{currency} ne $form->{defaultcurrency}) {
1079
    $form->isblank("exchangerate", $locale->text('Exchangerate missing!'));
1080
    $form->error($locale->text('Cannot post invoice with negative exchange rate'))
1081
      unless ($form->parse_amount(\%myconfig, $form->{"exchangerate"}) > 0);
1082
  }
1083

  
1080 1084
  # advance payment allows only one tax
1081 1085
  if ($form->{type} eq 'invoice_for_advance_payment') {
1082 1086
    my @current_taxaccounts = (split(/ /, $form->{taxaccounts}));

Auch abrufbar als: Unified diff