X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fcp.pl;h=6a21edecbbf1990eed7f7a3320ebeb7d85702136;hb=b65cc47a206d0b5df78123d9b36c1867928bf684;hp=553c8383f717ca521e2eabdfb09b672ec652bec6;hpb=a53233e56a9d4001b47bcf412b4bfe46910d3117;p=kivitendo-erp.git
diff --git a/bin/mozilla/cp.pl b/bin/mozilla/cp.pl
index 553c8383f..6a21edecb 100644
--- a/bin/mozilla/cp.pl
+++ b/bin/mozilla/cp.pl
@@ -182,16 +182,6 @@ sub form_header {
# $locale->text('AR')
# $locale->text('AP')
- $department = qq|
-
- | . $locale->text('Department') . qq| |
-
-
-
- |
-
-| if $form->{selectdepartment};
-
$form->{jsscript} = 1;
$jsscript = "";
if ($form->{jsscript}) {
@@ -779,7 +769,7 @@ sub check_form {
$datepaid = $form->datetonum($form->{datepaid}, \%myconfig);
$form->error($locale->text('Cannot process payment for a closed period!'))
- if ($datepaid <= $closedto);
+ if ($form->date_closed($form->{"datepaid"}, \%myconfig));
$amount = $form->parse_amount(\%myconfig, $form->{amount});
$form->{amount} = $amount;