From: Moritz Bunkus Date: Mon, 3 Jan 2011 15:53:40 +0000 (+0100) Subject: Kontonummern müssen nicht numerisch sein X-Git-Tag: release-2.6.2beta1~6^2~1 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=4bb7391d54000e1b5f230969ee0ebfbe1afaefc2;p=kivitendo-erp.git Kontonummern müssen nicht numerisch sein Fix für Bug 1530. --- diff --git a/SL/AR.pm b/SL/AR.pm index a4d100039..1754fe6ea 100644 --- a/SL/AR.pm +++ b/SL/AR.pm @@ -171,7 +171,7 @@ sub post_transaction { # insert detail records in acc_trans $query = qq|INSERT INTO acc_trans (trans_id, chart_id, amount, transdate, project_id, taxkey) VALUES (?, (SELECT c.id FROM chart c WHERE c.accno = ?), ?, ?, ?, ?)|; - @values = (conv_i($form->{id}), conv_i($form->{AR_amounts}{"amount_$i"}), conv_i($form->{"amount_$i"}), conv_date($form->{transdate}), $project_id, + @values = (conv_i($form->{id}), $form->{AR_amounts}{"amount_$i"}, conv_i($form->{"amount_$i"}), conv_date($form->{transdate}), $project_id, conv_i($form->{"taxkey_$i"})); do_query($form, $dbh, $query, @values); @@ -179,7 +179,7 @@ sub post_transaction { # insert detail records in acc_trans $query = qq|INSERT INTO acc_trans (trans_id, chart_id, amount, transdate, project_id, taxkey) VALUES (?, (SELECT c.id FROM chart c WHERE c.accno = ?), ?, ?, ?, ?)|; - @values = (conv_i($form->{id}), conv_i($form->{AR_amounts}{"tax_$i"}), conv_i($form->{"tax_$i"}), conv_date($form->{transdate}), $project_id, + @values = (conv_i($form->{id}), $form->{AR_amounts}{"tax_$i"}, conv_i($form->{"tax_$i"}), conv_date($form->{transdate}), $project_id, conv_i($form->{"taxkey_$i"})); do_query($form, $dbh, $query, @values); }