Revision a88b876c
Von Udo Spallek vor fast 18 Jahren hinzugefügt
bin/mozilla/gl.pl | ||
---|---|---|
1681 | 1681 |
if ($form->round_amount($debit, 2) != $form->round_amount($credit, 2)) { |
1682 | 1682 |
$form->error($locale->text('Out of balance transaction!')); |
1683 | 1683 |
} |
1684 |
|
|
1685 |
if ($form->round_amount($debit, 2) + $form->round_amount($credit, 2) == 0) { |
|
1686 |
$form->error($locale->text('Empty transaction!')); |
|
1687 |
} |
|
1688 |
|
|
1684 | 1689 |
if (($errno = GL->post_transaction(\%myconfig, \%$form)) <= -1) { |
1685 | 1690 |
$errno *= -1; |
1686 | 1691 |
$err[1] = $locale->text('Cannot have a value in both Debit and Credit!'); |
Auch abrufbar als: Unified diff
Fehler abfangen, wenn keine Beträge gebucht werden (leere Buchung)