Christian Stimming's report patch.

Fixes bug with warnings in commodity-utilities.scm.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3642 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas 2001-02-12 22:27:29 +00:00
parent f5ead6d71d
commit 520d406352

View File

@ -108,10 +108,10 @@
;; resolve the exchange rate to this currency.
(warn "can't calculate rate for "
(gnc:commodity-value->string
(list (car pair) (caadr pair)))
(list (car pair) ((caadr pair) 'total #f)))
" = "
(gnc:commodity-value->string
(list (car otherlist) (cdadr pair)))
(list (car otherlist) ((cdadr pair) 'total #f)))
" to "
(gnc:commodity-value->string
(list report-commodity (gnc:numeric-zero))))
@ -122,10 +122,11 @@
;; better thing to do in this case.
(warn "Oops - exchange rate ambiguity error: "
(gnc:commodity-value->string
(list (car pair) (caadr pair)))
(list (car pair) ((caadr pair) 'total #f)))
" = "
(gnc:commodity-value->string
(list (car otherlist) (cdadr pair))))
(list (car otherlist)
((cdadr pair) 'total #f))))
(let
;; Usual case: one of pair-{a,b} was found
;; in reportlist, i.e. this transaction