From: Moritz Bunkus Date: Mon, 28 Jan 2013 13:55:25 +0000 (+0100) Subject: Debitoren-/Kreditoren-/Dialogbuchungen: Fremdschlüsselspalte "department_id" nicht... X-Git-Tag: release-3.1.0beta1~668 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=28b3276ca12390954e40f29ce91fe732f6183bfa;p=kivitendo-erp.git Debitoren-/Kreditoren-/Dialogbuchungen: Fremdschlüsselspalte "department_id" nicht mit "0" schreiben Conflicts: SL/AP.pm --- diff --git a/SL/AP.pm b/SL/AP.pm index 3c8e2404f..44ddc110c 100644 --- a/SL/AP.pm +++ b/SL/AP.pm @@ -58,7 +58,6 @@ sub post_transaction { delete $form->{currency} unless $form->{defaultcurrency}; ($null, $form->{department_id}) = split(/--/, $form->{department}); - $form->{department_id} *= 1; if ($form->{currency} eq $form->{defaultcurrency}) { $form->{exchangerate} = 1; diff --git a/SL/AR.pm b/SL/AR.pm index 26c0bca1e..5b82ff108 100644 --- a/SL/AR.pm +++ b/SL/AR.pm @@ -143,7 +143,6 @@ sub post_transaction { # update department ($null, $form->{department_id}) = split(/--/, $form->{department}); - $form->{department_id} *= 1; # amount for AR account $form->{receivables} = $form->round_amount($form->{amount}, 2) * -1; diff --git a/SL/GL.pm b/SL/GL.pm index 7bcb47509..bf9e1c96c 100644 --- a/SL/GL.pm +++ b/SL/GL.pm @@ -109,7 +109,6 @@ sub post_transaction { } my ($null, $department_id) = split(/--/, $form->{department}); - $department_id *= 1; $form->{ob_transaction} *= 1; $form->{cb_transaction} *= 1; @@ -122,7 +121,7 @@ sub post_transaction { WHERE id = ?|; @values = ($form->{reference}, $form->{description}, $form->{notes}, - conv_date($form->{transdate}), $department_id, $form->{taxincluded} ? 't' : 'f', + conv_date($form->{transdate}), conv_i($department_id), $form->{taxincluded} ? 't' : 'f', $form->{storno} ? 't' : 'f', conv_i($form->{storno_id}), $form->{ob_transaction} ? 't' : 'f', $form->{cb_transaction} ? 't' : 'f', conv_i($form->{id})); do_query($form, $dbh, $query, @values);