From 28b3276ca12390954e40f29ce91fe732f6183bfa Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 28 Jan 2013 14:55:25 +0100 Subject: [PATCH] =?utf8?q?Debitoren-/Kreditoren-/Dialogbuchungen:=20Fremds?= =?utf8?q?chl=C3=BCsselspalte=20"department=5Fid"=20nicht=20mit=20"0"=20sc?= =?utf8?q?hreiben?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Conflicts: SL/AP.pm --- SL/AP.pm | 1 - SL/AR.pm | 1 - SL/GL.pm | 3 +-- 3 files changed, 1 insertion(+), 4 deletions(-) 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); -- 2.20.1