Skip to content

Commit

Permalink
Bug 799262 - Failed import QIF investment
Browse files Browse the repository at this point in the history
the qif-action check should apply to investment transactions only.
  • Loading branch information
christopherlam committed Apr 2, 2024
1 parent 9f99889 commit b33b864
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions gnucash/import-export/qif-imp/qif-to-gnc.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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).
Expand Down

0 comments on commit b33b864

Please sign in to comment.