S:C:YearEndTransactions: Warnung vermeiden: Variablen waren schon deklariert
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Fri, 4 Oct 2019 17:07:29 +0000 (19:07 +0200)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Fri, 4 Oct 2019 17:09:41 +0000 (19:09 +0200)
SL/Controller/YearEndTransactions.pm

index 658cf42..00dea4b 100644 (file)
@@ -364,7 +364,7 @@ sub _year_end_bookings {
       };
     };
 
-    my $debit_cb_acc = SL::DB::AccTransaction->new(
+    $debit_cb_acc = SL::DB::AccTransaction->new(
       transdate      => $cb_date,
       ob_transaction => 0,
       cb_transaction => 1,
@@ -374,7 +374,7 @@ sub _year_end_bookings {
       taxkey         => 0,
       amount         => $pl_debit_balance,
     );
-    my $credit_cb_acc = SL::DB::AccTransaction->new(
+    $credit_cb_acc = SL::DB::AccTransaction->new(
       transdate      => $cb_date,
       ob_transaction => 0,
       cb_transaction => 1,