Bug 477688 - Problem with precision when doing internal transfer of bitcoin
Summary: Problem with precision when doing internal transfer of bitcoin
Status: RESOLVED FIXED
Alias: None
Product: skrooge
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Stephane MANKOWSKI
URL:
Keywords:
: 453466 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-11-28 20:14 UTC by ffffff
Modified: 2024-01-07 13:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ffffff 2023-11-28 20:14:36 UTC
Hi!

When I try to transfer money from one account with some currency to an account with bitcoin currency a pop-up dialog appears where I can specify the amount in the target account's currency. However the precision in the dialog is up to 0.0001 while I need to enter with precision 0.00000001 (mBTC precision).

I can enter 0.00000001 as amount when I create just a normal operation (income/expense) but after creating this transaction the amount will be displayed as 0.0000.

I'm not sure how can I handle this?

Thanks

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Stephane MANKOWSKI 2023-11-30 21:46:08 UTC
Do you know that you can change the number of digit of you bitcoin unit from the unit page ?
This should fix your issue if you increase the number of digit as expected.
Regards.
Comment 2 ffffff 2023-12-02 21:09:48 UTC
That helped, thank you! I didn't know about this feature.

However, there is one last issue: only in the "Amount entered" column in the "Operations" page it is possible to see the values with more digits. The summary below the table view that shows the sum of selected operations still shows values with only 2 digits precision. The same problem is with the "Accounts" page where the column "Amount entered" shows only 2 digits after comma. This makes it difficult to know what is the current state of the account. The only place that it can be seen is in the dashboard in the "Accounts" widget. It would be great to have this in all places!
Comment 3 Stephane MANKOWSKI 2023-12-10 13:02:35 UTC
ok
Comment 4 Stephane MANKOWSKI 2024-01-07 13:23:39 UTC
Git commit e15906104cebc67dbecee8cb9af865a183db80da by Stephane MANKOWSKI.
Committed on 07/01/2024 at 14:23.
Pushed by smankowski into branch 'master'.

Problem with precision when doing internal transfer of bitcoin

M  +1    -0    CHANGELOG
M  +10   -5    plugins/generic/skg_selectall/skgselectallplugin.cpp
M  +4    -0    skgbankgui/skgobjectmodel.cpp
M  +12   -5    skgbankmodeler/skgdocumentbank.cpp
M  +4    -2    skgbankmodeler/skgdocumentbank.h
M  +4    -2    skgbasemodeler/skgdocument.cpp
M  +4    -2    skgbasemodeler/skgdocument.h

https://invent.kde.org/office/skrooge/-/commit/e15906104cebc67dbecee8cb9af865a183db80da
Comment 5 Stephane MANKOWSKI 2024-01-07 13:25:43 UTC
*** Bug 453466 has been marked as a duplicate of this bug. ***