From 5e0340560a90648da0a1685df84856e2c5d4e7bf Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Sat, 15 Aug 2020 16:19:37 +0800 Subject: [PATCH] [html-utilities] gnc:owner-report-text can accepts enddate --- gnucash/report/html-utilities.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnucash/report/html-utilities.scm b/gnucash/report/html-utilities.scm index 5f44213d23..3967ec5be7 100644 --- a/gnucash/report/html-utilities.scm +++ b/gnucash/report/html-utilities.scm @@ -94,7 +94,7 @@ (else "")))) -(define (gnc:owner-report-text owner acc) +(define* (gnc:owner-report-text owner acc #:optional date) (let* ((end-owner (gncOwnerGetEndOwner owner)) (type (gncOwnerGetType end-owner))) (gnc-build-url @@ -105,6 +105,7 @@ ((eqv? type GNC-OWNER-EMPLOYEE) "owner=e:") (else "unknown-type=")) (gncOwnerReturnGUID end-owner) + (if date (format #f "&enddate=~a" date) "") (if (null? acc) "" (string-append "&acct=" (gncAccountGetGUID acc)))) "")))