X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/a36ab47a71cde9bb7eda8f01caa823cdedc36208..627b91c86f6cace3cb63ab28ddfcaf7bcce6010a:/SL/AP.pm 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 = ?), ?, ?, ?, ?, ?, ?, | .