[GNC] Invoice report error

Christopher Lam christopher.lck at gmail.com
Thu Sep 19 21:11:18 EDT 2019


This particular issue can be solved by the following patch to
owner-report.scm.

modified   gnucash/report/business-reports/owner-report.scm
@@ -748,8 +748,8 @@
      (end-date (gnc:time64-end-day-time
                (gnc:date-option-absolute-time
                (opt-val gnc:pagename-general optname-to-date))))
-     (book (gnc-account-get-book account))
+     (book (gnc-get-current-book))
     (date-format (if (not (null? book)) (gnc:options-fancy-date book)))

On Sat, 14 Sep 2019 at 06:13, Michiel Uitdehaag <michiel at uitdehaag.org>
wrote:

> I select 'invoice Report' from the Customer context menu. Which report it
> is actually I don't know.
>
> The problem is/was that there was no A/R account. I can understand that
> programming a correct prerequisites check into the report in Scheme might
> be complex, but the error message is completely unclear.
>
> I am currently running into consistent segfaults with my local builds on
> Ubuntu 16.04, so it is kinda frustrating to work with.
>
> Regards,
>
> Michiel
>
> Op 14 sep. 2019 7:48 a.m. schreef Christopher Lam <
> christopher.lck at gmail.com>:
>
> This is not an invoice-report. This is either customer, vendor or job
> report.
> There must be something unusual in the AP/AR account selection in the
> General tab in options.
> Or there may be something from a previous installation which must be
> cleared properly.
>
> On Sat, 14 Sep 2019 at 05:32, michielu <gnucash at uitdehaag.org> wrote:
>
> I just compiled and installed the 3.7 Gnucash version as offered on the
> front-page.
>
> When I try to run an invoice report on my existing gnucash file, I get:
> In ice-9/boot-9.scm:
>  157: 17 [catch #t #<catch-closure 2b66580> ...]
> In unknown file:
>    ?: 16 [apply-smob/1 #<catch-closure 2b66580>]
> In {INSTALL}/gnucash-3.7/libgnucash/app-utils/c-interface.scm:
>   22: 15 [gnc:call-with-error-handling "(gnc:report-run 0)" ()]
> In ice-9/boot-9.scm:
>  157: 14 [catch #t ...]
> In {INSTALL}/gnucash-3.7/libgnucash/app-utils/c-interface.scm:
>   27: 13 [#<procedure 41fa300 at
> {INSTALL}/gnucash-3.7/libgnucash/app-utils/c-interface.scm:23:6 ()>]
> In unknown file:
>    ?: 12 [eval-string "(gnc:report-run 0)" #<undefined>]
> In ice-9/boot-9.scm:
> 2401: 11 [save-module-excursion #<procedure 41fa270 at
> ice-9/eval-string.scm:65:9 ()>]
> In ice-9/eval-string.scm:
>   44: 10 [read-and-eval #<input: string 35ef410> #:lang ...]
>   37: 9 [lp (gnc:report-run 0)]
> In {INSTALL}/gnucash-3.7/gnucash/report/report-system/report.scm:
>  776: 8 [gnc:report-run 0]
> In {INSTALL}/gnucash-3.7/libgnucash/app-utils/c-interface.scm:
>   64: 7 [gnc:backtrace-if-exception #<procedure 41fa060 at
> {INSTALL}/gnucash-3.7/gnucash/report/report-system/report.scm:777:5 ()>]
>   22: 6 [gnc:call-with-error-handling #<procedure 41fa060 at
> {INSTALL}/gnucash-3.7/gnucash/report/report-system/report.scm:777:5 ()>
> ...]
> In ice-9/boot-9.scm:
>  157: 5 [catch #t ...]
> In {INSTALL}/gnucash-3.7/libgnucash/app-utils/c-interface.scm:
>   26: 4 [#<procedure 41fa030 at
> {INSTALL}/gnucash-3.7/libgnucash/app-utils/c-interface.scm:23:6 ()>]
> In /home/michiel/dev/gnucash-3.7/gnucash/report/report-system/report.scm:
>  780: 3 [#<procedure 41fa060 at
> {INSTALL}/gnucash-3.7/gnucash/report/report-system/report.scm:777:5 ()>]
>  754: 2 [gnc:report-render-html # #t]
> In {INSTALL}/gnucash-3.7/gnucash/report/business-reports/owner-report.scm:
>  740: 1 [reg-renderer #]
> In unknown file:
>    ?: 0 [gnc-account-get-book #f]
>
> ERROR: In procedure gnc-account-get-book: Wrong type argument in position
> 1:
> #f
>
>
>
>
> --
> Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-User-f1415819.html
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>
>
>


More information about the gnucash-user mailing list