Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[assistant-stock-transaction] refactor: centralize price calculator
Price was being computed in 3 places: the stock_value page, the summary-table info list, and the final pricedb creation function. This commit centralizes it into 1 function which returns std::nullopt if the price is not computable. Also fixes price display to follow global pref general/force-price-decimal
- Loading branch information
1 parent
9a8bc8f
commit 6ba0f84
Showing
1 changed file
with
34 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters