From: Bernd Blessmann Date: Wed, 31 Aug 2011 08:25:16 +0000 (+0200) Subject: gldate bei Zahlungen bei Kreditorenbuchungen auf current_date setzen X-Git-Tag: release-2.7.0beta1~318 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=edc3ebb407771b5538e6938a417605ccc90e3aa1;p=kivitendo-erp.git gldate bei Zahlungen bei Kreditorenbuchungen auf current_date setzen --- diff --git a/SL/AP.pm b/SL/AP.pm index 79a93fe3a..7b0bc12b7 100644 --- a/SL/AP.pm +++ b/SL/AP.pm @@ -288,7 +288,7 @@ sub post_transaction { $form->{payables} = $amount; # add payment - my $gldate = (conv_date($form->{"gldate_$i"}))? conv_date($form->{"gldate_$i"}) : conv_date($form->{"gldate"}); + my $gldate = (conv_date($form->{"gldate_$i"}))? conv_date($form->{"gldate_$i"}) : conv_date($form->current_date($myconfig)); $query = qq|INSERT INTO acc_trans (trans_id, chart_id, amount, transdate, gldate, source, memo, project_id, taxkey) | . qq|VALUES (?, (SELECT id FROM chart WHERE accno = ?), ?, ?, ?, ?, ?, ?, | .