X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/d06d918a16ba787a440fa6c6f77af81855b6bf68..0bbfb33b6aa8e38bb6c81d1684ab7d08e5b5c5af:/SL/IS.pm diff --git a/SL/IS.pm b/SL/IS.pm index d91a36b8b..3936e92e1 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -529,8 +529,12 @@ sub post_invoice { } $form->{defaultcurrency} = $form->get_default_currency($myconfig); - - ($null, $form->{department_id}) = split(/--/, $form->{department}); + # Seit neuestem wird die department_id schon übergeben UND $form->department nicht mehr + # korrekt zusammengebaut. Sehr wahrscheinlich beim Umstieg auf T8 kaputt gegangen + # Ich lass den Code von 2005 erstmal noch stehen ;-) jb 03-2011 + if (!$form->{department_id}){ + ($null, $form->{department_id}) = split(/--/, $form->{department}); + } my $all_units = AM->retrieve_units($myconfig, $form);