portfolio-performance / portfolio

Track and evaluate the performance of your investment portfolio across stocks, cryptocurrencies, and other assets.
http://www.portfolio-performance.info
Eclipse Public License 1.0
2.87k stars 592 forks source link

comdirect Ertragsgutschrift and Steuermitteilung do not work togehter #2611

Closed fmms closed 2 years ago

fmms commented 2 years ago

Describe the bug At comdirect one gets two documents for a dividend payed.

200 411 33 Dorfstraße 12345 Entenhausen
abweichend wirtschaftlich Berechtigter

                                          ----                    

c o m d i r e c t

2 5 4 5 1 Q u i c k b o r n
0 1 0 1 0288

T e le f o n : 0 4 1 0 6 - 7 0 8 25 00

H e r r n D a t u m : 3 1 . 1 2 .2021 F e li x M ö l l e r D e p o t n u m m er: 4 4 4 4 4 4 4 44
Dorfstraße
12345 Musterdorf R e f e r e n z - N u mmer: 1 R I H I H N K L PV001JQ

Steuerliche Behandlung: Ausländische Investment-Ausschüttung vom 31.12.2021
Stk. 81,921 ISHS-EO C.BD L.C.U.ETFEOD , WKN / ISIN: 778928 / IE0032523478
Z u Ih r e n G u n s t e n v o r S te u e r n : E U R 18,3 9

S te u e rb e m e ss u n g s g r u n d la g e ( 1 ) E U R 1 8 , 3 9

K ap i ta le r tr a gs t e ue r ( 2 ) E U R - 4 , 4 9
S ol id a ri tä t sz u s c hl a g E U R - 0 , 2 4
K irc h e n s te u e r _E _U R -_ 0 , _4 _1
ab g e f ü h rt e S t e u er n _E _U R -__5,1 4_

Zu Ih r e n G u n s t e n n a c h S t e u er n : E U R 13,2 5

Die Gutschrift erfolgt mit Valuta 31.12.2021 auf Konto EUR mit der IBAN DE04 1234 1234 1234 1234 12

(1) siehe "Hinweise zur Ermittlung der Steuerbemessungsgrundlage" auf der Folgeseite
(2) Durch die Berücksichtigung der Kirchensteuer (8% bzw. 9%) als Sonderausgabe reduziert sich der Kapitalertragsteuersatz auf 24,51% bzw. 24,45%.
KEINE STEUERBESCHEINIGUNG ... Bisher einbehaltene bzw. angerechnete Steuer in EUR (4) in 2021 einbehaltene einbehaltener einbehaltene angerechneteKapitalertragsteuer Solidaritätszuschlag Kirchensteuer ausländische Quellensteuer vor Ermittlung 388,41 21,36 34,95 34,22 nach Ermittlung 392,90 21,60 35,36 34,22
Verrechnungssalden in EUR (4) 2021 Gewinne / Verluste sonstige anrechenbare verfügbarerin aus Aktien Gewinne / Verluste ausländische Quellensteuer Freistellungsauftrag vor Ermittlung -1.234,56 1.234,56 0,00 0,00 nach Ermittlung -1.234,56 1.234,56 0,00 0,00 Hinweise zur Ermittlung der Steuerbemessungsgrundlage:

I n v e st m e n t -A u s s c h ü tt un g E U R 1 8 , 3 9
T ei lf re is t e llu n g (0 % ) _E U R 0 _, _0 _0
S te u e r b e m e s s u n g s g r u n d la g e v o r V er l u s tv e r re c h n u n g E U R 1 8 , 3 9

Ihre comdirect
Diese Abrechnung ist maschinell erstellt und wird nicht unterschrieben.

(4) Die ausgewiesenen EUR-Beträge spiegeln den Stand zum Abrechnungszeitpunkt wider.
KEINE STEUERBESCHEINIGUNG

- Ertragsgutschrift

PDFBox Version: 1.8.16

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 25449 Quickborn

Depotnr.: 1234123412 10288 010 BLZ: 200 411 33 Herrn

Felix Möller

Dorfstraße

12345 Entenhausen
31.12.2021 USt-ID-Nr.: DE812279461
Rechnungsnummer: 567996058551DCD2
G u t s c h ri f t fä ll ig e r W e r t p a p i e r -E r tr ä g e
Ertragsgutschrift
Depotbestand Wertpapier-Bezeichnung WKN/ISIN p e r 1 5. 1 2 .2 0 2 1 i Sh s - E O C o rp Bd La r . Ca p U . ET F 77 8 92 8 S TK 81 , 9 2 1 R e g i s te r e d S ha r e s o . N. I E 0 0 3 2 52 3 47 8 Emissionsland: IRLAND
EUR 0,2245 Ausschüttung pro Stück für Geschäftsjahr 01.03.21 bis 28.02.22
zahlbar ab 31.12.2021
Abrechnung Ertragsgutschrift
Bruttobetrag: EUR 18,39
Verrechnung über Konto (IBAN) Valuta Zu Ihren Gunsten vor Steuern
DE04 1234 4567 1234 1234 40 EUR 31.12.2021 EUR 18,39
Information zur steuerlichen Behandlung dieses Geschäftsvorganges und den auf
Ihrem Konto gebuchten Endbetrag finden Sie auf der separaten Steuermitteilung
(Referenz-Nr. 1RIHIHNKLPV001JQ).
Ihre comdirect

*Diese Abrechnung wird von der Bank nicht unterschrieben
DD762/11/09



When importing both documents at the same time, I get:
<img width="597" alt="image" src="https://user-images.githubusercontent.com/908734/147858711-5f2d963d-5780-4582-8f69-846276d604b3.png">

**To Reproduce**
Steps to reproduce the behavior:
1. Go to File -> Import -> PDF Bankdocuments
2. Select both files of the debug above
3. Click open
4. See error
<img width="597" alt="image" src="https://user-images.githubusercontent.com/908734/147858762-96a9e980-6235-4221-bdb4-d3ae9b2f56cd.png">
5. The error message aborts the whole process even if a dozen good documents are about to be imported.

**Expected behavior**
I think there are two options:
- work correctly if "Steuermitteilung" and "Ertragsgutschrift"are loaded
- give hint to the user that "Ertragsgutschrift" is not needed and the "Steuermitteilung" contains everything needed -- at least I think so.

**Screenshots**
no more

**Desktop (please complete the following information):**
 - OS:  macOS
 - Version 0.56.2 (Dez. 2021)
Nirus2000 commented 2 years ago

done.