X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/d623e974c5f456dab9a691df3fb57c6dba1e1865..a3ae31c:/bin/mozilla/ap.pl diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index 581142f83..e566ea6f7 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -198,7 +198,7 @@ sub form_header { $main::auth->assert('general_ledger'); $form->{title_} = $form->{title}; - $form->{title} = $locale->text($form->{title} .' Accounts Payables Transaction'); + $form->{title} = $form->{title} eq 'Add' ? $locale->text('Add Accounts Payables Transaction') : $locale->text('Edit Accounts Payables Transaction'); # type=submit $locale->text('Add Accounts Payables Transaction') # type=submit $locale->text('Edit Accounts Payables Transaction') @@ -621,6 +621,9 @@ sub post { my $closedto = $form->datetonum($form->{closedto}, \%myconfig); my $transdate = $form->datetonum($form->{transdate}, \%myconfig); + + $form->error($locale->text('Cannot post transaction above the maximum future booking date!')) + if ($form->date_max_future($form->{"transdate"}, \%myconfig)); $form->error($locale->text('Cannot post transaction for a closed period!')) if ($form->date_closed($form->{"transdate"}, \%myconfig)); my $zero_amount_posting = 1;