Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a88b876c

Von Udo Spallek vor etwa 18 Jahren hinzugefügt

  • ID a88b876c3d2941bdcd9429e887efcab2968c9285
  • Vorgänger 7ab5a4f6
  • Nachfolger c63f2718

Fehler abfangen, wenn keine Beträge gebucht werden (leere Buchung)

Unterschiede anzeigen:

bin/mozilla/gl.pl
if ($form->round_amount($debit, 2) != $form->round_amount($credit, 2)) {
$form->error($locale->text('Out of balance transaction!'));
}
if ($form->round_amount($debit, 2) + $form->round_amount($credit, 2) == 0) {
$form->error($locale->text('Empty transaction!'));
}
if (($errno = GL->post_transaction(\%myconfig, \%$form)) <= -1) {
$errno *= -1;
$err[1] = $locale->text('Cannot have a value in both Debit and Credit!');

Auch abrufbar als: Unified diff