Accepting request 1176918 from Office

- Included upstream fix for broken qif import
  * gnucash-fix-qif-import.patch

OBS-URL: https://build.opensuse.org/request/show/1176918
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnucash?expand=0&rev=106
This commit is contained in:
Ana Guerrero 2024-05-27 09:55:45 +00:00 committed by Git OBS Bridge
commit 9c27c4db3f
3 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,32 @@
See https://github.com/Gnucash/gnucash/commit/b33b864c2fa0ba72d1940465e7fa962dd36833c9
--- gnucash-5.6/gnucash/import-export/qif-imp/qif-to-gnc.scm.orig 2024-04-02 23:12:50.335306666 +0200
+++ gnucash-5.6/gnucash/import-export/qif-imp/qif-to-gnc.scm 2024-04-01 23:13:12.071450498 +0200
@@ -596,13 +596,6 @@
(else
(apply xaccTransSetDate gnc-xtn (qif-xtn:date qif-xtn))))
- (unless qif-action
- (qif-import:log progress-dialog "qif-import:qif-xtn-to-gnc-xtn"
- (format #f (G_ "Missing QIF investment action for transaction dated ~a.")
- (qof-print-date (qif-date-to-time64 qif-date))))
- (throw 'missing-action "qif-import:qif-xtn-to-gnc-xtn" "Missing investment action."
- #f #f))
-
;; fixme: bug #105
(if qif-payee
(xaccTransSetDescription gnc-xtn qif-payee))
@@ -743,6 +736,13 @@
(if (not num-shares) (set! num-shares (gnc-numeric-zero)))
+ (unless qif-action
+ (qif-import:log progress-dialog "qif-import:qif-xtn-to-gnc-xtn"
+ (format #f (G_ "Missing QIF investment action for transaction dated ~a.")
+ (qof-print-date (qif-date-to-time64 qif-date))))
+ (throw 'missing-action "qif-import:qif-xtn-to-gnc-xtn" "Missing investment action."
+ #f #f))
+
;; Determine the extended price of all shares without commission.
(if xtn-amt
;; Adjust for commission (if any).

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue May 21 08:58:50 UTC 2024 - Peter Conrad <conrad@quisquis.de>
- Included upstream fix for broken qif import
* gnucash-fix-qif-import.patch
-------------------------------------------------------------------
Thu Apr 25 20:18:50 UTC 2024 - Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fastmail.net>

View File

@ -48,6 +48,7 @@ Patch0: gnucash-cpan-warning.patch
# PATCH-FIX-UPSTREAM gnucash-libm.patch gh#gnucash/gnucash#632 dimstar@opensuse.org -- Link libm: gnucash uses e.g. log10 without explicitly requesting libm
Patch1: gnucash-libm.patch
Patch2: gnucash-4.1-fix-gtest-path.patch
Patch3: gnucash-fix-qif-import.patch
BuildRequires: cmake >= 3.14
BuildRequires: doxygen