X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Fcp.pl;h=195a05153b7448cc0c72dfdaa2333a7b30b3aab7;hb=fe73e0d261229f181e8133283b530509773d2151;hp=58c9a73aa77440df3fa150e96b7d468bce7f04a7;hpb=8c7e44938a661e035f62840e1e177353240ace5d;p=kivitendo-erp.git
diff --git a/bin/mozilla/cp.pl b/bin/mozilla/cp.pl
index 58c9a73aa..195a05153 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}) {
@@ -245,82 +235,82 @@ sub form_header {
-
-
- |
-
-
- $department
-
- | . $locale->text('Account') . qq| |
-
-
- |
-
-
- | . $locale->text('Date') . qq| |
+
+
+ |
+
+
- |
-
+
+
+ |
+
|
@@ -579,13 +569,8 @@ sub update {
}
}
- $form->{exchangerate} = $exchangerate
- if (
- $form->{forex} = (
- $exchangerate =
- $form->check_exchangerate(
- \%myconfig, $form->{currency}, $form->{datepaid}, $buysell
- )));
+ $form->{forex} = $form->check_exchangerate( \%myconfig, $form->{currency}, $form->{datepaid}, $buysell);
+ $form->{exchangerate} = $form->{forex} if $form->{forex};
$amount = $form->{amount} = $form->parse_amount(\%myconfig, $form->{amount});
@@ -637,7 +622,7 @@ sub update {
}
# Modified by J.Zach, see abovev
- $amount += $form->{"paid_$i"};
+ $amount += $form->{"paid_$i"};
} else {
$form->{"paid_$i"} = "";
@@ -651,7 +636,7 @@ sub update {
}
# Line added by J.Zach, see above
- $form->{amount}=$amount;
+ $form->{amount}=$amount;
&form_header;
&list_invoices;
@@ -784,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;