Revision ed915d11
Von Jan Büren vor mehr als 2 Jahren hinzugefügt
| bin/mozilla/ar.pl | ||
|---|---|---|
|   $form->error($locale->text('Zero amount posting!'))
 | ||
|     unless grep $_*1, map $form->parse_amount(\%myconfig, $form->{"amount_$_"}), 1..$form->{rowcount};
 | ||
|  | ||
|   $form->isblank("exchangerate", $locale->text('Exchangerate missing!'))
 | ||
|     if ($form->{defaultcurrency} && ($form->{currency} ne $form->{defaultcurrency}));
 | ||
|   if ($form->{defaultcurrency} && ($form->{currency} ne $form->{defaultcurrency})) {
 | ||
|     $form->isblank("exchangerate", $locale->text('Exchangerate missing!'));
 | ||
|     $form->error($locale->text('Cannot post invoice with negative exchange rate'))
 | ||
|       unless ($form->parse_amount(\%myconfig, $form->{"exchangerate"}) > 0);
 | ||
|   }
 | ||
|  | ||
|   delete($form->{AR});
 | ||
|  | ||
Auch abrufbar als: Unified diff
Buchungsmasken: Wert des Wechselkurs auf valide Inhalte vor Buchung prüfen