From 4858eee496c36d20673f0e2bcb680abc887fb8ba Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Fri, 26 Jun 2020 18:30:51 +0200 Subject: [PATCH] Konjunkturpaket - SKR03 neues Konto Skonti 5% --- sql/Pg-upgrade2/konjunkturpaket_2020_SKR03.sql | 3 +++ t/tax/tax.t | 2 ++ 2 files changed, 5 insertions(+) diff --git a/sql/Pg-upgrade2/konjunkturpaket_2020_SKR03.sql b/sql/Pg-upgrade2/konjunkturpaket_2020_SKR03.sql index 8925d10c4..8ff52d69d 100644 --- a/sql/Pg-upgrade2/konjunkturpaket_2020_SKR03.sql +++ b/sql/Pg-upgrade2/konjunkturpaket_2020_SKR03.sql @@ -34,6 +34,9 @@ IF ( select coa from defaults ) = 'Germany-DATEV-SKR03EU' THEN INSERT INTO chart (accno, description, charttype, category, link, taxkey_id, pos_bwa, pos_bilanz, pos_eur, datevautomatik) VALUES ('8732','Gewährte Skonti 5% USt','A', 'I', 'AR_paid', 2, 1, null,1, 't'); + INSERT INTO chart (accno, description, charttype, category, link, taxkey_id, pos_bwa, pos_bilanz, pos_eur, datevautomatik) + VALUES ('3732','Erhaltene Skonti 5 % Vorsteuer','A', 'E', 'AP_paid', 8, 4, null, null, 't'); + -- SKR03 -- datev reactivated the previously reserved chart 1775 in 2020, but it still exists in kivitendo (at least for SKR03) with a taxkey starting from 2007 and pointing to the existing automatic tax chart 1775 -- so we don't need to to anything! diff --git a/t/tax/tax.t b/t/tax/tax.t index 4096b2abb..e0231c619 100644 --- a/t/tax/tax.t +++ b/t/tax/tax.t @@ -14,10 +14,12 @@ use SL::DB::Vendor; use SL::DB::Invoice; use SL::DB::GLTransaction; use SL::DB::Part; +use SL::DB::PaymentTerm; use SL::DBUtils qw(selectall_hashref_query); use SL::Dev::Record qw(:ALL); use SL::Dev::CustomerVendor qw(new_customer new_vendor); use SL::Dev::Part qw(new_part); +use SL::Dev::Payment qw(create_payment_terms); use Data::Dumper; Support::TestSetup::login(); -- 2.20.1