Fehler beim CSV Import

Beim CSV Import scheint sich ein Fehler eingeschlichen zu haben. Dieser tritt auf, wenn man einen Kauf mit einer Währungsumrechnung importiert.

Ohne Währungsumrechnung (Wechselkurs=1) wird im Feld Bruttobetrag ein negativer Wert erwartet.

Mit Währungsumrechnung (Wechselkurs <>1) erhält mein seit Neustem eine Fehlermeldung, wenn der Bruttobetrag negativ ist. Setzt man einen positiven Wert ein, funktioniert es.

Import Test for negative Numbers.csv (375 Bytes)

@Sn1kk3r5
Zum Kommentar von @Sn1kk3r5:”PP in general doesn’t support negative values!”

That is not quiet correct. At least the importer is accepting negative values in a csv-file, but not in the specific case I have described on Github.
I have added two bookings in a csv-file with only one difference: the negative sign in front of Gross Amount in row 2 (first booking). Both bookings have negative Values under “Net Value settl. Currency”.
Row 2 will cause an error message.
Row 3 will be correctly imported.
(interesting fact: if the exchange rate =1, the same negative value under Gross Amount is imported correctly)
I believe that is not a very logic behavior of the csv-importer and makes it very difficult to set the csv-format correctly in the beginning.

@hporten I have added the requested test file to demonstrate the issue.

No support doesn’t mean, not possible.

For your reference:

PR: PR: Allow negative values (on CSV import, and in UI) by aanno · Pull Request #5445 · portfolio-performance/portfolio · GitHub
Issue: Allow Negative Tax and Fee (Credits) · Issue #3450 · portfolio-performance/portfolio · GitHub

General discussion: Dividends with Imputation Credits