afadil / wealthfolio

A Beautiful Private and Secure Desktop Investment Tracking Application
https://wealthfolio.app
GNU Affero General Public License v3.0
4.4k stars 227 forks source link

Withdrawals and Transfers Out don't follow same logic as Deposits and Transfers in #45

Open szvsw opened 2 months ago

szvsw commented 2 months ago

Sorry if I am missing something, but I was trying to set up my normal checking account and ran into a pretty confusing issue, which is undocumented. For deposits, I've been setting the symbol as $CASH-USD, the unit price = the amount deposited, and the quantity = 1. The quantity and unit price get multiplied to determine the amount. However, for withdrawals/transfers out, it determines the value solely based off of the quantity.

This seems odd to me. Maybe I am missing the rationale for it.

https://github.com/afadil/wealthfolio/blob/d5870c4e17f8f8f695fb409b6d42998659851fd5/src-tauri/src/portfolio/portfolio_service.rs#L418