From: Niclas Zimmermann Date: Tue, 19 Feb 2013 11:03:47 +0000 (+0100) Subject: tax_id/taxkey bei SEPA-Überweisungen X-Git-Tag: release-3.1.0beta1~610 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=2d881637843afa5483ddf7c22b8dafd22c5305c0;p=kivitendo-erp.git tax_id/taxkey bei SEPA-Überweisungen Bei SEPA-Überweisungen wird jetzt auch tax_id und taxkey in die acc_trans geschrieben. Behebt Bug #2169. --- diff --git a/SL/SEPA.pm b/SL/SEPA.pm index e07fdcaf5..ea3531291 100644 --- a/SL/SEPA.pm +++ b/SL/SEPA.pm @@ -357,8 +357,8 @@ sub post_payment { AND ((c.link LIKE '%:${ARAP}') OR (c.link LIKE '${ARAP}:%') OR (c.link = '${ARAP}')) LIMIT 1| ], - 'add_acc_trans' => [ qq|INSERT INTO acc_trans (trans_id, chart_id, amount, transdate, gldate, source, memo) - VALUES (?, ?, ?, ?, current_date, ?, '')| ], + 'add_acc_trans' => [ qq|INSERT INTO acc_trans (trans_id, chart_id, amount, transdate, gldate, source, memo, taxkey, tax_id) + VALUES (?, ?, ?, ?, current_date, ?, '', 0, (SELECT id FROM tax WHERE taxkey=0 LIMIT 1))| ], 'update_arap' => [ qq|UPDATE ${arap} SET paid = paid + ?