mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 798085 - Incorrect transactions import of deposit with large number amount
Quicken 2005 introduces U amount which sometimes differs from T amount. U amount has larger range, and must override T amount whenever they're not equal.
This commit is contained in:
parent
ffa2f606e3
commit
dc4a004b11
@ -135,6 +135,12 @@
|
||||
(unread-char c1)
|
||||
#f))))
|
||||
|
||||
(define (qif-split-set-amount split value override?)
|
||||
(when (and split
|
||||
(not-bad-numeric-string? value)
|
||||
(or override? (not (qif-split:amount split))))
|
||||
(qif-split:set-amount! split value)))
|
||||
|
||||
(qif-file:set-path! self path)
|
||||
(if (not (access? path R_OK))
|
||||
;; A UTF-8 encoded path won't succeed on some systems, such as
|
||||
@ -261,9 +267,13 @@
|
||||
|
||||
;; T : total amount
|
||||
((#\T)
|
||||
(if (and default-split
|
||||
(not-bad-numeric-string? value))
|
||||
(qif-split:set-amount! default-split value)))
|
||||
(qif-split-set-amount default-split value #f))
|
||||
|
||||
;; U : total amount (handle larger amount
|
||||
;; than T; present in Quicken 2005
|
||||
;; exports). See bug 798085
|
||||
((#\U)
|
||||
(qif-split-set-amount default-split value #t))
|
||||
|
||||
;; P : payee
|
||||
((#\P)
|
||||
|
Loading…
Reference in New Issue
Block a user