X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/6c0095f1ec3bff00c172cc2c7649e757960da9fd..bd218b6785fca3d569b3217186007044c621e8ba:/SL/DB/Helper/Payment.pm diff --git a/SL/DB/Helper/Payment.pm b/SL/DB/Helper/Payment.pm index 55f9029e8..2cf8db981 100644 --- a/SL/DB/Helper/Payment.pm +++ b/SL/DB/Helper/Payment.pm @@ -58,10 +58,10 @@ sub pay_invoice { } my $transdate_obj; - if (ref($params{transdate} eq 'DateTime')) { + if (ref($params{transdate}) eq 'DateTime') { $transdate_obj = $params{transdate}; } else { - $transdate_obj = $::locale->parse_date_to_object($params{transdate}); + $transdate_obj = $::locale->parse_date_to_object($params{transdate}); }; croak t8('Illegal date') unless ref $transdate_obj; @@ -886,6 +886,7 @@ invoice is assumed to be the payment currency. If successful the return value will be 1 in scalar context or in list context the two ids (acc_trans_id) of the newly created bookings. + =item C Returns a chart object which is the chart of the invoice with link AR or AP.