Auch noch Buecherkontrolle
authorPhilip Reetz <p.reetz@linet-services.de>
Wed, 19 Mar 2008 17:58:50 +0000 (17:58 +0000)
committerPhilip Reetz <p.reetz@linet-services.de>
Wed, 19 Mar 2008 17:58:50 +0000 (17:58 +0000)
bin/mozilla/cp.pl

index 553c838..d341ffd 100644 (file)
@@ -779,7 +779,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;