[kmymoney] [Bug 491828] Currency settings show incorrect

2024-08-20 Thread Ralf Habacker via KMyMoney-devel
https://bugs.kde.org/show_bug.cgi?id=491828

--- Comment #9 from Ralf Habacker  ---
This issue does not occur with a basic Qt test case. Running the following
tests build with MinGW as simple qt console app

const QLocale btc("BTC");
QCOMPARE(btc.toCurrencyString(double(1e-1), "BTC", 1),
QString("0.1BTC"));
QCOMPARE(btc.toCurrencyString(double(1e-2), "BTC", 2),
QString("0.01BTC"));
QCOMPARE(btc.toCurrencyString(double(1e-3), "BTC", 3),
QString("0.001BTC"));
QCOMPARE(btc.toCurrencyString(double(1e-4), "BTC", 4),
QString("0.0001BTC"));
QCOMPARE(btc.toCurrencyString(double(1e-5), "BTC", 5),
QString("0.1BTC"));
QCOMPARE(btc.toCurrencyString(double(1e-6), "BTC", 6),
QString("0.01BTC"));
QCOMPARE(btc.toCurrencyString(double(1e-7), "BTC", 7),
QString("0.001BTC"));
QCOMPARE(btc.toCurrencyString(double(1e-8), "BTC", 8),
QString("0.0001BTC"));

 does not fail. There must be something different in kmymoney.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[kmymoney] [Bug 491828] Currency settings show incorrect

2024-08-20 Thread Bug Janitor Service via KMyMoney-devel
https://bugs.kde.org/show_bug.cgi?id=491828

Bug Janitor Service  changed:

   What|Removed |Added

 Status|CONFIRMED   |ASSIGNED

--- Comment #10 from Bug Janitor Service  ---
A possibly relevant merge request was started @
https://invent.kde.org/office/kmymoney/-/merge_requests/226

-- 
You are receiving this mail because:
You are the assignee for the bug.

[kmymoney] [Bug 491828] Currency settings show incorrect

2024-08-20 Thread Ralf Habacker via KMyMoney-devel
https://bugs.kde.org/show_bug.cgi?id=491828

--- Comment #11 from Ralf Habacker  ---
(In reply to Bug Janitor Service from comment #10)
> A possibly relevant merge request was started @
> https://invent.kde.org/office/kmymoney/-/merge_requests/226

Sorry, I used wrong bug number, please ignore this comment.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[kmymoney] [Bug 491914] mymoneyfinancialcalculator-test fails with mingw-builds

2024-08-20 Thread Ralf Habacker via KMyMoney-devel
https://bugs.kde.org/show_bug.cgi?id=491914

Ralf Habacker  changed:

   What|Removed |Added

 Status|REPORTED|ASSIGNED
 Ever confirmed|0   |1

--- Comment #2 from Ralf Habacker  ---
A possibly relevant merge request was started
@https://invent.kde.org/office/kmymoney/-/merge_requests/226

-- 
You are receiving this mail because:
You are the assignee for the bug.

[kmymoney] [Bug 491914] mymoneyfinancialcalculator-test fails with mingw-builds

2024-08-20 Thread Ralf Habacker via KMyMoney-devel
https://bugs.kde.org/show_bug.cgi?id=491914

Ralf Habacker  changed:

   What|Removed |Added

   Version Fixed In||5.2
 Status|ASSIGNED|RESOLVED
  Latest Commit||https://invent.kde.org/offi
   ||ce/kmymoney/-/commit/e73bd3
   ||872e565ca6af122cda212f5df68
   ||4fab23f
 Resolution|--- |FIXED

--- Comment #3 from Ralf Habacker  ---
Git commit e73bd3872e565ca6af122cda212f5df684fab23f by Ralf Habacker.
Committed on 20/08/2024 at 10:19.
Pushed by tbaumgart into branch 'master'.

Fix 'mymoneyfinancialcalculator-test fails with mingw-builds'
FIXED-IN:5.2

M  +4-4kmymoney/mymoney/tests/mymoneyfinancialcalculator-test.cpp

https://invent.kde.org/office/kmymoney/-/commit/e73bd3872e565ca6af122cda212f5df684fab23f

-- 
You are receiving this mail because:
You are the assignee for the bug.

[kmymoney] [Bug 488491] Make 5.2 release

2024-08-20 Thread Ralf Habacker via KMyMoney-devel
https://bugs.kde.org/show_bug.cgi?id=488491
Bug 488491 depends on bug 491914, which changed state.

Bug 491914 Summary: mymoneyfinancialcalculator-test fails with mingw-builds
https://bugs.kde.org/show_bug.cgi?id=491914

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

-- 
You are receiving this mail because:
You are the assignee for the bug.

[kmymoney] [Bug 491889] Building kmymoney5 from stable branch fails with gpgme 1.23.2

2024-08-20 Thread Ralf Habacker via KMyMoney-devel
https://bugs.kde.org/show_bug.cgi?id=491889

--- Comment #2 from Ralf Habacker  ---
The solution is to replace the call to seek() with rewind(), which was added
with qgpgme 1.12 in May 2018 (see
https://github.com/gpg/gpgme/commit/618aa7f08db41911f25632d9fba23bca80908ebe).

-- 
You are receiving this mail because:
You are the assignee for the bug.

[kmymoney] [Bug 491828] Currency settings show incorrect

2024-08-20 Thread Thomas Baumgart via KMyMoney-devel
https://bugs.kde.org/show_bug.cgi?id=491828

Thomas Baumgart  changed:

   What|Removed |Added

  Latest Commit||https://invent.kde.org/offi
   ||ce/kmymoney/-/commit/2b8025
   ||94c5ecb94f75f472c11ebdd4a52
   ||0eb8984
 Status|ASSIGNED|RESOLVED
   Version Fixed In||5.2
 Resolution|--- |FIXED

--- Comment #12 from Thomas Baumgart  ---
Git commit 2b802594c5ecb94f75f472c11ebdd4a520eb8984 by Thomas Baumgart.
Committed on 20/08/2024 at 15:47.
Pushed by tbaumgart into branch 'master'.

Improve detection of currency formatting

QLocale::toCurrencyString() returns different strings on Windows and
Linux when using a value without fraction (e.g. 100). On Linux the
output in locale de_DE was "100 €" and the same code on Windows returned
"100,00 €". That caused the existing implementation of the format
detection to fail.

Changing the test value to 123.45 and enhancing the regex to extract the
parts solves the issue.
FIXED-IN: 5.2

M  +4-3kmymoney/mymoney/mymoneymoney.cpp

https://invent.kde.org/office/kmymoney/-/commit/2b802594c5ecb94f75f472c11ebdd4a520eb8984

-- 
You are receiving this mail because:
You are the assignee for the bug.

[kmymoney] [Bug 491828] Currency settings show incorrect

2024-08-20 Thread Tony via KMyMoney-devel
https://bugs.kde.org/show_bug.cgi?id=491828

Tony  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |---

--- Comment #13 from Tony  ---
I confirm that the Currency Editor and the Transaction Reports are fixed. The
Balance field of the Ledger shows only two digits instead of eight for the
Bitcoin account. I think it showed the £ symbol in front of it in the Windows
3407 build. (I just deleted it so I can't confirm it.)

I'm unsure whether I should re-open this or submit a new ticket. If you prefer
a new ticket I can create it.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[kmymoney] [Bug 491963] New: LibOFX fails to find opensp.dcl and ofx160.dtd in snap image

2024-08-20 Thread bugzilla_noreply--- via KMyMoney-devel
https://bugs.kde.org/show_bug.cgi?id=491963

Bug ID: 491963
   Summary: LibOFX fails to find opensp.dcl and ofx160.dtd in snap
image
Classification: Applications
   Product: kmymoney
   Version: 5.1.3
  Platform: Snap
OS: Linux
Status: REPORTED
  Severity: minor
  Priority: NOR
 Component: importer
  Assignee: kmymoney-devel@kde.org
  Reporter: dburgess.j...@gmail.com
  Target Milestone: ---

***
If you're not sure this is actually a bug, instead post about it at
https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see
https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
The snap is reporting missing DTD files.   I performed a manual check and found
them in /snap/kmymoney/2//usr/share/libofx7/libofx.   It looks like this
problem also occurred for appimages, and was fixed in [Bug ID
416827](https://bugs.kde.org/show_bug.cgi?id=416827).  I'm guessing that the
bug fix needs to be extended to include snaps.

STEPS TO REPRODUCE
1. Start the snap and import an OFX file
2. 
3. 

OBSERVED RESULT
LibOFX INFO: libofx_proc_file(): File format not specified, autodetecting...
LibOFX INFO: libofx_proc_file(): Detected file format: OFX (Open Financial
eXchange (OFX or QFX))
LibOFX INFO: sanitize_proprietary_tags() removed: 7492
LibOFX ERROR: find_dtd():Unable to find the DTD named opensp.dcl
LibOFX ERROR: find_dtd():Unable to find the DTD named ofx160.dtd
LibOFX ERROR: ofx_proc_file(): FATAL: Missing DTD, aborting

EXPECTED RESULT
File is imported without problems

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are the assignee for the bug.

[kmymoney] [Bug 426448] kmymoney build from binary factory could not create slave on Windows

2024-08-20 Thread Bug Janitor Service via KMyMoney-devel
https://bugs.kde.org/show_bug.cgi?id=426448

--- Comment #4 from Bug Janitor Service  ---
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days.
Please provide the requested information, then set the bug status to REPORTED.
If there is no change for at least 30 days, it will be automatically closed as
RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!

-- 
You are receiving this mail because:
You are the assignee for the bug.

[kmymoney] [Bug 439866] QIODevice::read (QFile, "...\bin\data\checkprinting\check_template.html"): device not open

2024-08-20 Thread Bug Janitor Service via KMyMoney-devel
https://bugs.kde.org/show_bug.cgi?id=439866

--- Comment #2 from Bug Janitor Service  ---
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days.
Please provide the requested information, then set the bug status to REPORTED.
If there is no change for at least 30 days, it will be automatically closed as
RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!

-- 
You are receiving this mail because:
You are the assignee for the bug.

[kmymoney] [Bug 491828] Currency settings show incorrect

2024-08-20 Thread Ralf Habacker via KMyMoney-devel
https://bugs.kde.org/show_bug.cgi?id=491828

--- Comment #14 from Ralf Habacker  ---
(In reply to Tony from comment #13)
> I confirm that the Currency Editor and the Transaction Reports are fixed.
> The Balance field of the Ledger shows only two digits instead of eight for
> the Bitcoin account. I think it showed the £ symbol in front of it in the
> Windows 3407 build. (I just deleted it so I can't confirm it.)

In analyzing this problem, I found that I need to make the changes mentioned in
comment 8 before using commit
https://invent.kde.org/office/kmymoney/-/commit/2b802594c5ecb94f75f472c11ebdd4a520eb8984
to fix this problem as well.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[kmymoney] [Bug 439866] QIODevice::read (QFile, "...\bin\data\checkprinting\check_template.html"): device not open

2024-08-20 Thread Ralf Habacker via KMyMoney-devel
https://bugs.kde.org/show_bug.cgi?id=439866

Ralf Habacker  changed:

   What|Removed |Added

 Resolution|WAITINGFORINFO  |FIXED
 Status|NEEDSINFO   |RESOLVED

--- Comment #3 from Ralf Habacker  ---
(In reply to Ralf Habacker from comment #1)
> The binary build system has been switched to the use of gitlab-CI/Craft. It 
> should be checked whether this problem still exists.

With binary builds from the 5.1 branch
(https://cdn.kde.org/ci-builds/office/kmymoney/5.1/windows/) the issue cannot
be reproduced anymore.

-- 
You are receiving this mail because:
You are the assignee for the bug.