mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-07-30 08:08:15 -05:00
Fix division by zero error in tax report
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10348 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -632,7 +632,9 @@
|
||||
(gnc:account-get-type account) #f)))
|
||||
|
||||
(set! work-done (+ 1 work-done))
|
||||
(gnc:report-percent-done (* 100 (/ work-done work-to-do)))
|
||||
(gnc:report-percent-done (* 100 (if (> work-to-do 0)
|
||||
(/ work-done work-to-do)
|
||||
1)))
|
||||
(if (gnc:account-is-inc-exp? account)
|
||||
(let* ((children (gnc:account-get-children account))
|
||||
(to-special #f) ; clear special-splits-period
|
||||
|
||||
Reference in New Issue
Block a user