X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/09d797956bc122ecb1dbe8a6adabcbbc524455be..001155e424a519b543499cdb1f1841f48cfae352:/SL/IS.pm diff --git a/SL/IS.pm b/SL/IS.pm index 1398ed872..29886a5bb 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -1174,6 +1174,17 @@ sub post_invoice { Common::webdav_folder($form); + if ($form->{convert_from_ar_ids}) { + RecordLinks->create_links('dbh' => $dbh, + 'mode' => 'ids', + 'from_table' => 'ar', + 'from_ids' => $form->{convert_from_ar_ids}, + 'to_table' => 'ar', + 'to_id' => $form->{id}, + ); + delete $form->{convert_from_ar_ids}; + } + # Link this record to the records it was created from. RecordLinks->create_links('dbh' => $dbh, 'mode' => 'ids',