mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-08-14 06:54:43 -05:00
Bug #527459: Add QIF importer support for voided transactions.
BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17075 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
;;; Copyright 2000-2001 Bill Gribble <grib@billgribble.com>
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
(use-modules (srfi srfi-13))
|
||||
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; qif-import:find-or-make-acct
|
||||
@@ -745,6 +747,12 @@
|
||||
(xaccSplitSetParent commission-split gnc-xtn)
|
||||
(xaccSplitSetAccount commission-split
|
||||
commission-acct)))))))
|
||||
|
||||
;; QIF indicates a void transaction by starting the payee with "**VOID**".
|
||||
(if (and (string? qif-payee)
|
||||
(string-prefix? "**VOID**" qif-payee))
|
||||
(xaccTransVoid gnc-xtn "QIF"))
|
||||
|
||||
;; return the modified transaction (though it's ignored).
|
||||
gnc-xtn))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user