portfolio icon indicating copy to clipboard operation
portfolio copied to clipboard

Added fees to account transfer dialog

Open RomanLangrehr opened this issue 1 year ago • 5 comments

Let the user add fees for account transfers: image

RomanLangrehr avatar Jun 25 '23 17:06 RomanLangrehr

Does it really have no impact on client filters, reports on fees, etc? I haven't had the time to look into the details, but I pretty much expect that the newly introduced fees require changes in the code that reports, filters, and selects on fees.

buchen avatar Jun 25 '23 19:06 buchen

I think that definitely has an impact on the filters and so on. (See https://github.com/buchen/portfolio/pull/3272)

Fees could also be specified in foreign currency.

Furthermore, we had also talked in a meeting that we wanted to include rebookings via importer with this problem.

  • See FlatEx foreign exchange business as example
    • https://forum.portfolio-performance.info/t/pdf-import-von-flatex/1752/191
    • https://forum.portfolio-performance.info/t/pdf-import-von-flatex/1752/192

@RomanLangrehr Can you see if you could also integrate the test for the UI here? As an example for the tests, you could take a few here and include them. (https://github.com/buchen/portfolio/pull/3370)

Nirus2000 avatar Jun 28 '23 04:06 Nirus2000

@buchen @Nirus2000 I missed that I have to make changes to the ClientPerformanceSnapshot to take into account the fees in transactions (for the calculation of fees and for the calculation of foreign currency gains/losses). I fixed that now. But I don't think any of the client filters need adaption (as far as I know there is no filter working based on fees).

I will add more unit tests (for the AccountTransferModel and the ClientPerformanceSnapshot ) when I have time

The motivation for me to add this feature was also to import automtically forex transactions in the future (for example from Interactive Brokers) and they typically include fees.

RomanLangrehr avatar Jun 28 '23 22:06 RomanLangrehr

Hello @RomanLangrehr

The motivation for me to add this feature was also to import automtically forex transactions in the future (for example from Interactive Brokers) and they typically include fees.

Yes, that's right. In the IB-Flex-Query Importer there are already test files with these transactions, which could not be processed yet, because this function does not exist yet. (Example testIBFlexStatementFile19.xml) So... could you see if you can integrate this part or if we should implement it in a separate PR?

Nirus2000 avatar Jun 29 '23 05:06 Nirus2000

I’m very suspicious of this introducing unintended side effects.

Furthermore, UI-wise, how would the user distinguish between the two “fee” fields? If the accounts are of different currencies, OK, you can guess it from the currency; but for transfers without currency exchange?

chirlu avatar Nov 17 '23 20:11 chirlu